Easy Digital Downloads - Version 3.0.3

Version Description

Download this release

Release Info

Developer cklosows
Plugin Icon 128x128 Easy Digital Downloads
Version 3.0.3
Comparing to
See all releases

Code changes from version 3.0.2.1 to 3.0.3

assets/css/admin/tax-rates/_add.scss CHANGED
@@ -8,6 +8,12 @@
8
  padding: 4px;
9
  }
10
 
 
 
 
 
 
 
11
  @media screen and (max-width: $break-medium) {
12
  display: block;
13
 
8
  padding: 4px;
9
  }
10
 
11
+ #tax_rate_region_global {
12
+ margin-right: 4px;
13
+ margin-bottom: 8px;
14
+ }
15
+
16
+
17
  @media screen and (max-width: $break-medium) {
18
  display: block;
19
 
assets/css/edd-admin-tax-rates-rtl.min.css CHANGED
@@ -1 +1 @@
1
- #edd-admin-tax-rates{margin:1em 0 0}#edd-admin-tax-rates table{border-collapse:collapse}#edd-admin-tax-rates .tablenav.top{display:flex;justify-content:space-between}#edd-admin-tax-rates .edd-admin-tax-rates__tablenav--left{display:inline-flex}#edd-admin-tax-rates th:not(.check-column){padding:15px 10px;width:unset}#edd-admin-tax-rates .chosen-container{width:100%!important}#edd-admin-tax-rates tbody tr:not(:last-of-type){border-bottom:1px solid #e0e0e0}#edd-admin-tax-rates tfoot.add-new th{font-weight:400;padding:12px 8px 10px}#edd-admin-tax-rates .edd-tax-rate-row--inactive,#edd-admin-tax-rates .edd-tax-rate-row--is-empty+.edd-tax-rate-row--is-empty{display:none}#edd-admin-tax-rates .has-inactive .edd-tax-rate-row--inactive{display:table-row}#edd-admin-tax-rates .edd-tax-rate-row--is-empty td{background-color:#f9f9f9}#edd-admin-tax-rates .edd-tax-rate-row--inactive td{color:#999;background-color:#f9f9f9}#edd-admin-tax-rates .edd-tax-rate-table-add{background-color:#f9f9f9}@media screen and (max-width:782px){#edd-admin-tax-rates tfoot:not(.add-new) th:not(.edd-tax-rates-table-rate),#edd-admin-tax-rates thead th:not(.edd-tax-rates-table-rate){display:none}#edd-admin-tax-rates .edd-tax-rate-row,#edd-admin-tax-rates tfoot:not(.add-new) tr,#edd-admin-tax-rates thead tr{display:-ms-grid;display:grid;-ms-grid-columns:2.5em 1fr;grid-template-columns:2.5em 1fr;-ms-grid-rows:1fr;grid-template-rows:1fr;grid-gap:0 16px}#edd-admin-tax-rates th.edd-tax-rates-table-rate{padding-right:12px}#edd-admin-tax-rates .edd-tax-rates-table-checkbox{-ms-grid-row:1;-ms-grid-row-span:4;grid-row:1/5}#edd-admin-tax-rates tbody td{padding-right:35%!important}#edd-admin-tax-rates td:before{content:attr(data-colname);display:block;width:32%;position:absolute}#edd-admin-tax-rates .tablenav.top{flex-wrap:wrap}#edd-admin-tax-rates .edd-admin-tax-rates__tablenav--left{margin-bottom:16px}#edd-admin-tax-rates .edd-admin-tax-rates__tablenav--left select{margin-left:6px}}.edd-tax-rate-table-add th input[type=number],.edd-tax-rate-table-add th input[type=text],.edd-tax-rate-table-add th select{width:100%;margin:0;padding:4px}@media screen and (max-width:782px){.edd-tax-rate-table-add,.edd-tax-rate-table-add th{display:block}.edd-tax-rate-table-add .screen-reader-text{display:block;width:unset;clip:unset;height:unset;clip-path:unset;margin:0 0 12px;position:relative}}
1
+ #edd-admin-tax-rates{margin:1em 0 0}#edd-admin-tax-rates table{border-collapse:collapse}#edd-admin-tax-rates .tablenav.top{display:flex;justify-content:space-between}#edd-admin-tax-rates .edd-admin-tax-rates__tablenav--left{display:inline-flex}#edd-admin-tax-rates th:not(.check-column){padding:15px 10px;width:unset}#edd-admin-tax-rates .chosen-container{width:100%!important}#edd-admin-tax-rates tbody tr:not(:last-of-type){border-bottom:1px solid #e0e0e0}#edd-admin-tax-rates tfoot.add-new th{font-weight:400;padding:12px 8px 10px}#edd-admin-tax-rates .edd-tax-rate-row--inactive,#edd-admin-tax-rates .edd-tax-rate-row--is-empty+.edd-tax-rate-row--is-empty{display:none}#edd-admin-tax-rates .has-inactive .edd-tax-rate-row--inactive{display:table-row}#edd-admin-tax-rates .edd-tax-rate-row--is-empty td{background-color:#f9f9f9}#edd-admin-tax-rates .edd-tax-rate-row--inactive td{color:#999;background-color:#f9f9f9}#edd-admin-tax-rates .edd-tax-rate-table-add{background-color:#f9f9f9}@media screen and (max-width:782px){#edd-admin-tax-rates tfoot:not(.add-new) th:not(.edd-tax-rates-table-rate),#edd-admin-tax-rates thead th:not(.edd-tax-rates-table-rate){display:none}#edd-admin-tax-rates .edd-tax-rate-row,#edd-admin-tax-rates tfoot:not(.add-new) tr,#edd-admin-tax-rates thead tr{display:-ms-grid;display:grid;-ms-grid-columns:2.5em 1fr;grid-template-columns:2.5em 1fr;-ms-grid-rows:1fr;grid-template-rows:1fr;grid-gap:0 16px}#edd-admin-tax-rates th.edd-tax-rates-table-rate{padding-right:12px}#edd-admin-tax-rates .edd-tax-rates-table-checkbox{-ms-grid-row:1;-ms-grid-row-span:4;grid-row:1/5}#edd-admin-tax-rates tbody td{padding-right:35%!important}#edd-admin-tax-rates td:before{content:attr(data-colname);display:block;width:32%;position:absolute}#edd-admin-tax-rates .tablenav.top{flex-wrap:wrap}#edd-admin-tax-rates .edd-admin-tax-rates__tablenav--left{margin-bottom:16px}#edd-admin-tax-rates .edd-admin-tax-rates__tablenav--left select{margin-left:6px}}.edd-tax-rate-table-add th input[type=number],.edd-tax-rate-table-add th input[type=text],.edd-tax-rate-table-add th select{width:100%;margin:0;padding:4px}.edd-tax-rate-table-add #tax_rate_region_global{margin-left:4px;margin-bottom:8px}@media screen and (max-width:782px){.edd-tax-rate-table-add,.edd-tax-rate-table-add th{display:block}.edd-tax-rate-table-add .screen-reader-text{display:block;width:unset;clip:unset;height:unset;clip-path:unset;margin:0 0 12px;position:relative}}
assets/css/edd-admin-tax-rates.min.css CHANGED
@@ -1 +1 @@
1
- #edd-admin-tax-rates{margin:1em 0 0}#edd-admin-tax-rates table{border-collapse:collapse}#edd-admin-tax-rates .tablenav.top{display:flex;justify-content:space-between}#edd-admin-tax-rates .edd-admin-tax-rates__tablenav--left{display:inline-flex}#edd-admin-tax-rates th:not(.check-column){padding:15px 10px;width:unset}#edd-admin-tax-rates .chosen-container{width:100%!important}#edd-admin-tax-rates tbody tr:not(:last-of-type){border-bottom:1px solid #e0e0e0}#edd-admin-tax-rates tfoot.add-new th{font-weight:400;padding:12px 8px 10px}#edd-admin-tax-rates .edd-tax-rate-row--inactive,#edd-admin-tax-rates .edd-tax-rate-row--is-empty+.edd-tax-rate-row--is-empty{display:none}#edd-admin-tax-rates .has-inactive .edd-tax-rate-row--inactive{display:table-row}#edd-admin-tax-rates .edd-tax-rate-row--is-empty td{background-color:#f9f9f9}#edd-admin-tax-rates .edd-tax-rate-row--inactive td{color:#999;background-color:#f9f9f9}#edd-admin-tax-rates .edd-tax-rate-table-add{background-color:#f9f9f9}@media screen and (max-width:782px){#edd-admin-tax-rates tfoot:not(.add-new) th:not(.edd-tax-rates-table-rate),#edd-admin-tax-rates thead th:not(.edd-tax-rates-table-rate){display:none}#edd-admin-tax-rates .edd-tax-rate-row,#edd-admin-tax-rates tfoot:not(.add-new) tr,#edd-admin-tax-rates thead tr{display:-ms-grid;display:grid;-ms-grid-columns:2.5em 1fr;grid-template-columns:2.5em 1fr;-ms-grid-rows:1fr;grid-template-rows:1fr;grid-gap:0 16px}#edd-admin-tax-rates th.edd-tax-rates-table-rate{padding-left:12px}#edd-admin-tax-rates .edd-tax-rates-table-checkbox{-ms-grid-row:1;-ms-grid-row-span:4;grid-row:1/5}#edd-admin-tax-rates tbody td{padding-left:35%!important}#edd-admin-tax-rates td:before{content:attr(data-colname);display:block;width:32%;position:absolute}#edd-admin-tax-rates .tablenav.top{flex-wrap:wrap}#edd-admin-tax-rates .edd-admin-tax-rates__tablenav--left{margin-bottom:16px}#edd-admin-tax-rates .edd-admin-tax-rates__tablenav--left select{margin-right:6px}}.edd-tax-rate-table-add th input[type=number],.edd-tax-rate-table-add th input[type=text],.edd-tax-rate-table-add th select{width:100%;margin:0;padding:4px}@media screen and (max-width:782px){.edd-tax-rate-table-add,.edd-tax-rate-table-add th{display:block}.edd-tax-rate-table-add .screen-reader-text{display:block;width:unset;clip:unset;height:unset;clip-path:unset;margin:0 0 12px;position:relative}}
1
+ #edd-admin-tax-rates{margin:1em 0 0}#edd-admin-tax-rates table{border-collapse:collapse}#edd-admin-tax-rates .tablenav.top{display:flex;justify-content:space-between}#edd-admin-tax-rates .edd-admin-tax-rates__tablenav--left{display:inline-flex}#edd-admin-tax-rates th:not(.check-column){padding:15px 10px;width:unset}#edd-admin-tax-rates .chosen-container{width:100%!important}#edd-admin-tax-rates tbody tr:not(:last-of-type){border-bottom:1px solid #e0e0e0}#edd-admin-tax-rates tfoot.add-new th{font-weight:400;padding:12px 8px 10px}#edd-admin-tax-rates .edd-tax-rate-row--inactive,#edd-admin-tax-rates .edd-tax-rate-row--is-empty+.edd-tax-rate-row--is-empty{display:none}#edd-admin-tax-rates .has-inactive .edd-tax-rate-row--inactive{display:table-row}#edd-admin-tax-rates .edd-tax-rate-row--is-empty td{background-color:#f9f9f9}#edd-admin-tax-rates .edd-tax-rate-row--inactive td{color:#999;background-color:#f9f9f9}#edd-admin-tax-rates .edd-tax-rate-table-add{background-color:#f9f9f9}@media screen and (max-width:782px){#edd-admin-tax-rates tfoot:not(.add-new) th:not(.edd-tax-rates-table-rate),#edd-admin-tax-rates thead th:not(.edd-tax-rates-table-rate){display:none}#edd-admin-tax-rates .edd-tax-rate-row,#edd-admin-tax-rates tfoot:not(.add-new) tr,#edd-admin-tax-rates thead tr{display:-ms-grid;display:grid;-ms-grid-columns:2.5em 1fr;grid-template-columns:2.5em 1fr;-ms-grid-rows:1fr;grid-template-rows:1fr;grid-gap:0 16px}#edd-admin-tax-rates th.edd-tax-rates-table-rate{padding-left:12px}#edd-admin-tax-rates .edd-tax-rates-table-checkbox{-ms-grid-row:1;-ms-grid-row-span:4;grid-row:1/5}#edd-admin-tax-rates tbody td{padding-left:35%!important}#edd-admin-tax-rates td:before{content:attr(data-colname);display:block;width:32%;position:absolute}#edd-admin-tax-rates .tablenav.top{flex-wrap:wrap}#edd-admin-tax-rates .edd-admin-tax-rates__tablenav--left{margin-bottom:16px}#edd-admin-tax-rates .edd-admin-tax-rates__tablenav--left select{margin-right:6px}}.edd-tax-rate-table-add th input[type=number],.edd-tax-rate-table-add th input[type=text],.edd-tax-rate-table-add th select{width:100%;margin:0;padding:4px}.edd-tax-rate-table-add #tax_rate_region_global{margin-right:4px;margin-bottom:8px}@media screen and (max-width:782px){.edd-tax-rate-table-add,.edd-tax-rate-table-add th{display:block}.edd-tax-rate-table-add .screen-reader-text{display:block;width:unset;clip:unset;height:unset;clip-path:unset;margin:0 0 12px;position:relative}}
assets/js/admin/orders/order-overview/views/base.js CHANGED
@@ -143,13 +143,10 @@ export const Base = wp.Backbone.View.extend( {
143
  return;
144
  }
145
 
146
- // Attempt to find the caret position.
147
- if ( ! target.selectionStart ) {
148
- return;
149
- }
150
-
151
  try {
152
- this.focusedElCaretPos = target.selectionStart;
 
 
153
  } catch ( error ) {
154
  this.focusedElCaretPos = target.value.length;
155
  }
143
  return;
144
  }
145
 
 
 
 
 
 
146
  try {
147
+ if ( target.selectionStart ) {
148
+ this.focusedElCaretPos = target.selectionStart;
149
+ }
150
  } catch ( error ) {
151
  this.focusedElCaretPos = target.value.length;
152
  }
assets/js/admin/settings/tax-rates/views/table-add.js CHANGED
@@ -92,7 +92,21 @@ const TableAdd = wp.Backbone.View.extend( {
92
  * @param {Object} event Event.
93
  */
94
  setCountry: function( event ) {
95
- this.model.set( 'country', event.target.options[ event.target.selectedIndex ].value );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
96
  },
97
 
98
  /**
@@ -118,8 +132,11 @@ const TableAdd = wp.Backbone.View.extend( {
118
  * @param {Object} event Event.
119
  */
120
  setGlobal: function( event ) {
121
- this.model.set( 'global', event.target.checked );
122
- this.model.set( 'region', '' );
 
 
 
123
  },
124
 
125
  /**
@@ -163,19 +180,34 @@ const TableAdd = wp.Backbone.View.extend( {
163
  return;
164
  }
165
 
 
 
 
 
 
 
 
 
 
 
 
166
  const existingCountryWide = this.collection.where( {
167
- region: this.model.get( 'region' ),
168
- country: this.model.get( 'country' ),
169
- global: '' === this.model.get( 'region' ),
170
  status: 'active',
171
  } );
172
 
173
  if ( existingCountryWide.length > 0 ) {
174
- const regionString = '' === this.model.get( 'region' )
 
 
 
 
175
  ? ''
176
- : ': ' + this.model.get( 'region' );
177
 
178
- const taxRateString = this.model.get( 'country' ) + regionString;
179
 
180
  alert( i18n.duplicateRate.replace( '%s', `"${ taxRateString }"` ) );
181
 
92
  * @param {Object} event Event.
93
  */
94
  setCountry: function( event ) {
95
+ let country = event.target.options[ event.target.selectedIndex ].value;
96
+ let regionGlobalCheckbox = document.getElementById( "tax_rate_region_global" );
97
+ if ( 'all' === country ) {
98
+ country = '*';
99
+ regionGlobalCheckbox.checked = true;
100
+ this.model.set( 'region', '' );
101
+ this.model.set( 'global', true );
102
+ regionGlobalCheckbox.readOnly = true;
103
+ regionGlobalCheckbox.disabled = true;
104
+ } else {
105
+ regionGlobalCheckbox.disabled = false;
106
+ regionGlobalCheckbox.readOnly = false;
107
+ }
108
+
109
+ this.model.set( 'country', country );
110
  },
111
 
112
  /**
132
  * @param {Object} event Event.
133
  */
134
  setGlobal: function( event ) {
135
+ let isChecked = event.target.checked;
136
+ this.model.set( 'global', isChecked );
137
+ if ( true === isChecked ) {
138
+ this.model.set( 'region', '' );
139
+ }
140
  },
141
 
142
  /**
180
  return;
181
  }
182
 
183
+ let addingRegion = this.model.get( 'region' );
184
+ let addingCountry = this.model.get( 'country' );
185
+ let addingGlobal = '' === this.model.get( 'region' );
186
+
187
+ // For the purposes of this query, the * is really an empty query.
188
+ if ( '*' === addingCountry ) {
189
+ addingCountry = '';
190
+ addingRegion = '';
191
+ addingGlobal = false;
192
+ }
193
+
194
  const existingCountryWide = this.collection.where( {
195
+ region: addingRegion,
196
+ country: addingCountry,
197
+ global: addingGlobal,
198
  status: 'active',
199
  } );
200
 
201
  if ( existingCountryWide.length > 0 ) {
202
+ const countryString = '' === addingCountry
203
+ ? '*'
204
+ : addingCountry;
205
+
206
+ const regionString = '' === addingRegion
207
  ? ''
208
+ : ': ' + addingRegion;
209
 
210
+ const taxRateString = countryString + regionString;
211
 
212
  alert( i18n.duplicateRate.replace( '%s', `"${ taxRateString }"` ) );
213
 
assets/js/edd-admin-orders.js CHANGED
@@ -1 +1 @@
1
- !function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=182)}({1:function(t,e){t.exports=jQuery},10:function(t,e,n){var r=n(183),o=n(184),i=n(185),u=n(186);t.exports=function(t){return r(t)||o(t)||i(t)||u()},t.exports.__esModule=!0,t.exports.default=t.exports},11:function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},12:function(t,e){function n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}t.exports=function(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},13:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=Backbone.Model.extend({defaults:{id:0,objectId:0,objectType:"",typeId:0,type:"",description:"",subtotal:0,tax:0,total:0,dateCreated:"",dateModified:"",uuid:""},getAmount:function(){return this.get("subtotal")},getTax:function(){return this.get("tax")},getTotal:function(){return this.get("subtotal")+this.get("tax")},updateTax:function(){var t=this.get("state"),e=t.get("hasTax");if("none"!==e&&""!==e.country&&""!==e.rate){var n=t.get("formatters").number,r=e.rate/100;t.get("adjustments").getByType("fee").forEach((function(t){if(!1!==t.get("isTaxable")){var e=t.getAmount(),o=n.unformat(e*r);t.set("tax",o)}}))}}})},14:function(t,e,n){"use strict";(function(t,r){n.d(e,"a",(function(){return o}));var o=function(e){e.tooltip({content:function(){return t(this).prop("title")},tooltipClass:"edd-ui-tooltip",position:{my:"center top",at:"center bottom+10",collision:"flipfit"},hide:{duration:200},show:{duration:200}})};r(document).ready((function(t){o(t(".edd-help-tip"))}))}).call(this,n(1),n(1))},15:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(13),o=n(16),i=Backbone.Collection.extend({comparator:"type",initialize:function(){this.getByType=this.getByType.bind(this)},model:function(t,e){var n;switch(t.type){case"discount":n=new o.a(t,e);break;default:n=new r.a(t,e)}return n},modelId:function(t){return"".concat(t.type,"-").concat(t.typeId,"-").concat(t.description)},has:function(t){return void 0!==this.findWhere({typeId:t.get("typeId")})},getByType:function(t){return this.where({type:t})}})},16:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(2),o=n.n(r),i=n(13);function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var c=i.a.extend({defaults:a(a({},i.a.prototype.defaults),{},{type:"discount"}),idAttribute:"typeId",getAmount:function(){var t=this,e=0,n=this.get("state");if(!1===n.get("isAdding"))return i.a.prototype.getAmount.apply(this,arguments);var r=n.get("items"),o=r.models,u=n.get("formatters"),a=u.number;return o.forEach((function(n){var r=n.get("adjustments").findWhere({typeId:t.get("typeId")});void 0!==r&&(e+=a.unformat(a.format(r.get("subtotal"))))})),e},getTotal:function(){return this.getAmount()}})},160:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return i}));var r=n(171),o=n(163),i=wp.Backbone.View.extend({el:"#edd-order-overview",events:{"click .toggle-row":"onToggleRow"},render:function(){return this.views.add(new r.a(this.options)),document.getElementById("edd-order-overview-actions")&&this.views.add(new o.a(this.options)),this},onToggleRow:function(e){e.preventDefault(),t(e.target).closest("tr").toggleClass("is-expanded")}})}).call(this,n(1))},161:function(t,e){function n(e){return t.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},162:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return i}));var r=n(4),o=n(7),i=o.a.extend({el:"#edd-admin-order-copy-download-link-dialog",template:wp.template("edd-admin-order-copy-download-link"),initialize:function(){o.a.prototype.initialize.apply(this,arguments),this.link=!1,this.addEvents({"click #close":"closeDialog"}),this.fetchLink.call(this)},prepare:function(){return{link:this.link}},render:function(){r.a.prototype.render.apply(this,arguments);var t=this.el,e=this.link;!1!==e&&""!==e&&t.querySelector("#link").select()},fetchLink:function(){var e=this,n=this.options,r=n.orderId,o=n.productId,i=n.priceId;t.ajax({type:"POST",url:ajaxurl,data:{action:"edd_get_file_download_link",payment_id:r,download_id:o,price_id:i}}).done((function(t){t=t.trim(),["-1","-2","-3","-4",""].includes(t)?e.link="":e.link=t.trim()})).done((function(){return e.render()}))}})}).call(this,n(1))},163:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return a}));var r=n(14),o=n(164),i=n(165),u=n(166),a=wp.Backbone.View.extend({el:"#edd-order-overview-actions",template:wp.template("edd-admin-order-actions"),events:{"click #add-item":"onAddOrderItem","click #add-discount":"onAddOrderDiscount","click #add-adjustment":"onAddOrderAdjustment"},render:function(){return wp.Backbone.View.prototype.render.apply(this,arguments),Object(r.a)(t(".edd-help-tip")),this},onAddOrderItem:function(t){t.preventDefault(),new o.a(this.options).openDialog().render()},onAddOrderDiscount:function(t){t.preventDefault(),new i.a(this.options).openDialog().render()},onAddOrderAdjustment:function(t){t.preventDefault(),new u.a(this.options).openDialog().render()}})}).call(this,n(1))},164:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return l}));var r=n(2),o=n.n(r),i=n(8),u=n.n(i),a=n(4),c=n(7),s=n(17);function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l=c.a.extend({el:"#edd-admin-order-add-item-dialog",template:wp.template("edd-admin-order-form-add-order-item"),initialize:function(){c.a.prototype.initialize.apply(this,arguments),this.addEvents({"change #download":"onChangeDownload","change #quantity":"onChangeQuantity","change #auto-calculate":"onAutoCalculateToggle","keyup #amount":"onChangeAmount","keyup #tax":"onChangeTax","keyup #subtotal":"onChangeSubtotal","click #set-address":"onSetAddress","submit form":"onAdd"});var t=this.options.state,e=u()();this.model=new s.a({id:e,orderId:e,state:t,error:!1}),this.listenTo(this.model,"change",this.render),this.listenTo(t,"change:isFetching",this.render),this.listenTo(t.get("items"),"add",this.closeDialog)},prepare:function(){var t=this.model,e=this.options,n=e.state,r=n.get("formatters"),o=r.number,i=t.get("quantity"),u=o.format(t.get("amount")*i),c=o.format(t.get("tax")*i),s=o.format(t.get("subtotal")*i);!0===t.get("_isAdjustingManually")&&(u=t.get("amountManual"),c=t.get("taxManual"),s=t.get("subtotalManual"));var f=!1===n.get("isFetching")&&!0===n.get("items").has(t),l=t.get("_isAdjustingManually"),p=t.get("error"),h=a.a.prototype.prepare.apply(this,arguments);return d(d({},h),{},{amountManual:u,taxManual:c,subtotalManual:s,state:d(d({},h.state),{},{isAdjustingManually:l,isDuplicate:f,error:p})})},onChangeDownload:function(t){var e=t.target,n=e.options,r=e.selectedIndex,o=this.model,i=this.options.state,u=i.get("formatters").number,a=n[r],c=a.value,s=null,f=c.split("_");c=parseInt(f[0]),f[1]&&(s=parseInt(f[1])),i.set("isFetching",!0),o.set({productId:c,priceId:s,productName:a.text,error:!1}),o.getAmounts({country:i.getTaxCountry(),region:i.getTaxRegion(),products:i.get("items").map((function(t){return{id:t.get("productId"),quantity:t.get("quantity"),options:{price_id:t.get("priceId")}}})),discountIds:i.get("adjustments").pluck("typeId")}).fail((function(t){var e=t.message;i.set("isFetching",!1),o.set({error:e,productId:0,priceId:null,productName:""})})).then((function(t){var e=t.amount,n=t.tax,r=t.subtotal,a=t.total;o.set({amount:e,tax:n,subtotal:r,total:a,amountManual:u.format(e),taxManual:u.format(n),subtotalManual:u.format(r)}),i.set("isFetching",!1)}))},onChangeQuantity:function(t){this.model.set("quantity",parseInt(t.target.value))},onChangeAmount:function(t){this.model.set("amountManual",t.target.value)},onChangeTax:function(t){this.model.set("taxManual",t.target.value)},onChangeSubtotal:function(t){this.model.set("subtotalManual",t.target.value)},onAutoCalculateToggle:function(t){t.preventDefault(),this.model.set({_isAdjustingManually:!t.target.checked})},onSetAddress:function(e){e.preventDefault(),this.closeDialog();var n=t('[href="#edd_general_address"]');n&&(n.trigger("click"),t("#edd_order_address_country").trigger("focus"))},onAdd:function(t){var e=this;t.preventDefault();var n=this.model,r=this.options.state,o=r.get("formatters").number;if(r.set("isFetching",!0),!0===n.get("_isAdjustingManually"))n.set({amount:o.unformat(n.get("amountManual")),tax:o.unformat(n.get("taxManual")),subtotal:o.unformat(n.get("subtotalManual"))});else{var i=n.get("quantity");n.set({tax:n.get("tax")*i,subtotal:n.get("subtotal")*i})}var u=r.get("items");u.add(n,{silent:!0}),u.updateAmounts().fail((function(t){var e=t.message;u.remove(n,{silent:!0}),r.set("isFetching",!1),n.set("error",e)})).done((function(){e.stopListening(n),u.trigger("add",n),r.set("isFetching",!1)}))}})}).call(this,n(1))},165:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(2),o=n.n(r),i=n(8),u=n.n(i),a=n(7),c=n(4),s=n(16);function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l=a.a.extend({el:"#edd-admin-order-add-discount-dialog",template:wp.template("edd-admin-order-form-add-order-discount"),events:{"submit form":"onAdd","change #discount":"onChangeDiscount"},initialize:function(){a.a.prototype.initialize.apply(this,arguments);var t=this.options.state;this.model=new s.a({id:u()(),typeId:u()(),state:t}),this.listenTo(this.model,"change",this.render),this.listenTo(t.get("adjustments"),"add",this.closeDialog)},prepare:function(){var t=this.model,e=this.options,n=e.state,r=n.get("adjustments").has(t);return d(d({},c.a.prototype.prepare.apply(this,arguments)),{},{_isDuplicate:r})},onChangeDiscount:function(t){var e=t.target,n=e.selectedIndex,r=e.options,o=this.model;t.preventDefault();var i=r[n],u=i.dataset;if(""===i.value)return o.set(s.a.prototype.defaults);o.set({typeId:parseInt(i.value),description:u.code})},onAdd:function(t){var e=this;t.preventDefault();var n=this.model,r=this.options.state;r.set("isFetching",!0);var o=r.get("items"),i=r.get("adjustments");i.add(n,{silent:!0}),o.updateAmounts().done((function(){e.stopListening(n),i.trigger("add",n),r.set("isFetching",!1)}))}})},166:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return l}));var r=n(2),o=n.n(r),i=n(8),u=n.n(i),a=n(4),c=n(7),s=n(13);function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l=c.a.extend({el:"#edd-admin-order-add-adjustment-dialog",template:wp.template("edd-admin-order-form-add-order-adjustment"),initialize:function(){c.a.prototype.initialize.apply(this,arguments),this.addEvents({"change #object_type":"onChangeObjectType",'change [name="type"]':"onChangeType","keyup #amount":"onChangeAmount","change #no-tax":"onHasTaxToggle","click #set-address":"onSetAddress","keyup #description":"onChangeDescription","submit form":"onAdd"});var t=this.options.state;this.model=new s.a({id:u()(),objectId:u()(),typeId:u()(),objectType:"order",type:"fee",amountManual:"",isTaxed:!0,state:t}),this.listenTo(this.model,"change",this.render),this.listenTo(t.get("adjustments"),"add",this.closeDialog)},prepare:function(){this.model;var t=this.options,e=t.state;return d(d({},a.a.prototype.prepare.apply(this,arguments)),{},{orderItems:e.get("items").models.map((function(t){return{id:t.get("id"),productName:t.get("productName")}}))})},onChangeObjectType:function(t){var e=t.target,n=e.options[e.selectedIndex],r=n.value,o=this.model.get("objectId");"order_item"===r?(o=n.dataset.orderItemId,this.model.set({objectId:o,objectType:r})):this.model.set({objectType:r,objectId:o})},onChangeType:function(t){var e=t.target.value;this.model.set("type",e),"credit"===e&&(this.model.set("objectId",0),this.model.set("objectType","order"))},onChangeAmount:function(t){var e=t.target;t.preventDefault();var n=this.options.state,r=n.get("formatters").number,o=e.value,i=r.unformat(o),u=0,a=n.get("hasTax");!0===this.model.get("isTaxed")&&"fee"===this.model.get("type")&&"none"!==a&&""!==a.country&&""!==a.rate&&(u=i*(a.rate/100)),this.model.set({amountManual:o,subtotal:i,total:i,tax:r.unformat(r.format(u))})},onHasTaxToggle:function(t){t.preventDefault();var e=t.target.checked,n={isTaxed:e};!1===e&&(n.tax=0),this.model.set(n)},onSetAddress:function(e){e.preventDefault(),this.closeDialog();var n=t('[href="#edd_general_address"]');n&&(n.trigger("click"),t("#edd_order_address_country").trigger("focus"))},onChangeDescription:function(t){this.model.set("description",t.target.value)},onAdd:function(t){t.preventDefault();var e=this.model,n=this.options.state,r=n.get("adjustments"),o=n.get("items");if("order_item"===e.get("objectType")){var i=o.findWhere({id:e.get("objectId")});i.get("adjustments").add(e),i.trigger("change"),e.set("objectType","order_item")}else e.set("objectType","order");r.add(e),this.stopListening(e)}})}).call(this,n(1))},167:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return h}));var r=n(10),o=n.n(r),i=n(2),u=n.n(i),a=n(8),c=n.n(a),s=n(15),f=n(16),d=n(17);function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){u()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var h=Backbone.Collection.extend({model:d.a,preinitialize:function(t,e){this.options=e},has:function(t){return this.filter((function(e){return e.get("productId")+"_"+e.get("priceId")==t.get("productId")+"_"+t.get("priceId")})).length>0},updateAmounts:function(){var e=this.options.state,n=e.get("items"),r=new Backbone.Collection(e.get("adjustments").getByType("discount")),i={country:e.getTaxCountry(),region:e.getTaxRegion(),products:n.map((function(t){return{id:t.get("productId"),quantity:t.get("quantity"),options:{price_id:t.get("priceId")}}})),discountIds:r.pluck("typeId")},u=[];return n.models.forEach((function(t){var e=t.getAmounts(i);e.done((function(e){var n=e.adjustments.map((function(e){return new f.a(p(p({},e),{},{id:c()(),objectId:t.get("id")}))})),r=t.get("adjustments").filter((function(t){return["fee","credit"].includes(t.type)}));t.set("adjustments",new s.a([].concat(o()(n),o()(r))))})).done((function(e){return t.setAmounts(e)})),u.push(e)})),t.when.apply(t,u)}})}).call(this,n(1))},17:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(10),o=n.n(r),i=n(15),u=Backbone.Model.extend({defaults:{id:0,orderId:0,productId:0,productName:"",priceId:null,cartIndex:0,type:"download",status:"",statusLabel:"",quantity:1,amount:0,subtotal:0,discount:0,tax:0,total:0,dateCreated:"",dateModified:"",uuid:"",amountManual:0,taxManual:0,subtotalManual:0,_isAdjustingManually:!1,adjustments:new i.a},getSubtotal:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.get("state"),n=this.get("subtotal");return!1===e.get("isAdding")?n:!0===e.hasInclusiveTax()&&!1===t?n-this.getTax():n},getDiscountAmount:function(){var t=0,e=this.get("adjustments").getByType("discount");return 0===e.length?this.get("discount"):(e.forEach((function(e){t+=+e.get("subtotal")})),t)},getTax:function(){var t=this.get("state"),e=this.get("tax");if(!1===t.get("isAdding"))return e;var n=t.get("formatters").number;return n.unformat(n.format(e))},getTotal:function(){var t=this.get("state");return!1===t.get("isAdding")?this.get("total"):!0===t.hasInclusiveTax()?this.get("subtotal")-this.getDiscountAmount():this.get("subtotal")-this.getDiscountAmount()+this.getTax()},getAmounts:function(t){var e=t.country,n=void 0===e?"":e,r=t.region,i=void 0===r?"":r,u=t.products,a=void 0===u?[]:u,c=t.discountIds,s=void 0===c?[]:c,f=window.eddAdminOrderOverview.nonces.edd_admin_order_get_item_amounts,d=_.clone(this.attributes),l=d.productId,p=d.priceId,h=d.quantity,v=d.amount,g=d.tax,y=d.subtotal;return wp.ajax.send("edd-admin-order-get-item-amounts",{data:{nonce:f,productId:l,priceId:p,quantity:h,amount:v,tax:g,subtotal:y,country:n,region:i,products:_.uniq([].concat(o()(a),[{id:l,quantity:h,options:{price_id:p}}]),(function(t){var e=t.id,n=t.options.price_id;return"".concat(e,"_").concat(n)})),discounts:_.uniq(s)}})},setAmounts:function(t){var e=t.amount,n=void 0===e?0:e,r=t.discount,o=void 0===r?0:r,i=t.tax,u=void 0===i?0:i,a=t.subtotal,c=void 0===a?0:a,s=t.total,f=void 0===s?0:s;!0===this.get("_isAdjustingManually")?this.set({discount:o}):this.set({amount:n,discount:o,tax:u,subtotal:c,total:f})}})},171:function(t,e,n){"use strict";n.d(e,"a",(function(){return N}));var r=n(2),o=n.n(r),i=n(4),u=n(162);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var s=i.a.extend({tagName:"tr",template:wp.template("edd-admin-order-item"),events:{"click .delete":"onDelete","click .copy-download-link":"onCopyDownloadLink"},initialize:function(){this.listenTo(this.model,"change",this.render)},prepare:function(){var t=this.model,e=this.options,n=e.state,r=n.get("formatters"),o=r.currency,u=t.getSubtotal(),a=t.getDiscountAmount(),s=t.get("_isAdjustingManually"),f=t.getTax();return c(c({},i.a.prototype.prepare.apply(this,arguments)),{},{discount:a,amountCurrency:o.format(t.get("amount")),subtotal:u,subtotalCurrency:o.format(u),tax:f,taxCurrency:o.format(f),total:t.getTotal(),config:{isAdjustingManually:s},adjustments:t.get("adjustments").toJSON()})},onDelete:function(t){t.preventDefault();var e=this.model,n=this.options.state;n.get("items").remove(e),n.get("items").updateAmounts()},onCopyDownloadLink:function(t){t.preventDefault(),this.options;var e=this.model;new u.a({orderId:e.get("orderId"),productId:e.get("productId"),priceId:e.get("priceId")}).openDialog().render()}});function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l=wp.Backbone.View.extend({tagName:"tr",template:wp.template("edd-admin-order-no-items"),prepare:function(){this.model,this.options;var t=this.options.state,e=!0===t.get("hasQuantity")?4:3;return d(d({},i.a.prototype.prepare.apply(this,arguments)),{},{config:{colspan:e}})}});function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var v=wp.Backbone.View.extend({tagName:"tbody",className:"edd-order-overview-summary__items",initialize:function(){var t=this.options.state,e=t.get("items");t.get("adjustments"),this.listenTo(e,"add",this.render),this.listenTo(e,"remove",this.remove)},render:function(){var t=this,e=this.options.state.get("items");this.views.remove(),0===e.length?this.views.set(new l(h({},this.options))):_.each(e.models,(function(e){return t.add(e)}))},add:function(t){this.views.add(new s(h(h({},this.options),{},{model:t})))},remove:function(t){var e=null;this.views.get().forEach((function(n){n.model.get("id")===t.id&&(e=n)})),null!==e&&e.remove(),0===this.views.get().length&&this.views.set(new l(h({},this.options)))}}),g=wp.Backbone.View.extend({tagName:"tbody",className:"edd-order-overview-summary__subtotal",template:wp.template("edd-admin-order-subtotal"),initialize:function(){var t=this.options.state;this.listenTo(t.get("items"),"add remove change",this.render),this.listenTo(t.get("adjustments"),"add remove",this.render)},prepare:function(){var t=this.options.state,e=t.get("formatters"),n=e.currency,r=(e.number,!0===t.get("hasQuantity")?2:1),o=t.getSubtotal();return{state:t.toJSON(),config:{colspan:r},subtotal:o,subtotalCurrency:n.format(o)}}});function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?y(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var b=i.a.extend({tagName:"tr",className:"is-expanded",events:{"click .delete":"onDelete"},initialize:function(){switch(i.a.prototype.initialize.apply(this),this.model.get("type")){case"credit":case"fee":this.template=wp.template("edd-admin-order-adjustment");break;default:this.template=wp.template("edd-admin-order-adjustment-discount")}this.listenTo(this.model,"change",this.render)},prepare:function(){var t,e=this.model,n=(this.options,this.options.state),r=n.get("formatters"),o=r.currency,u=(r.number,!0===n.get("hasQuantity")?2:1);"order_item"===e.get("objectType")&&(t=_.first(n.get("items").filter((function(t){return void 0!==t.get("adjustments").findWhere({objectId:t.get("id")})}))));var a=e.getAmount(),c=e.getTotal();return m(m({},i.a.prototype.prepare.apply(this,arguments)),{},{config:{colspan:u},total:c,subtotal:a,orderItem:!!t&&t.toJSON(),totalCurrency:o.format(c),subtotalCurrency:o.format(a)})},onDelete:function(t){t.preventDefault();var e=this.options.state;e.get("adjustments").remove(this.model),e.get("items").updateAmounts()}});function w(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function O(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?w(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var j=wp.Backbone.View.extend({tagName:"tbody",className:"edd-order-overview-summary__adjustments",initialize:function(){var t=this.options.state,e=t.get("items"),n=t.get("adjustments");this.listenTo(t,"change:hasTax",this.render),this.listenTo(e,"change",this.render),this.listenTo(n,"add",this.render),this.listenTo(n,"remove",this.remove)},render:function(){var t=this,e=this.getAdjustments();this.views.remove(),_.each(e,(function(e){return t.add(e)}))},add:function(t){this.views.add(new b(O(O({},this.options),{},{model:t})))},remove:function(t){var e=null,n=this.views.get();n&&(n.forEach((function(n){n.model.id===t.id&&(e=n)})),null!==e&&e.remove())}}),x=j.extend({getAdjustments:function(){return this.options.state.get("adjustments").filter((function(t){return["discount","fee"].includes(t.get("type"))}))}}),P=n(10),A=n.n(P);function k(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function D(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?k(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var T=wp.Backbone.View.extend({tagName:"tbody",className:"edd-order-overview-summary__tax",template:wp.template("edd-admin-order-tax"),events:{"click #notice-tax-change .notice-dismiss":"onDismissTaxRateChange","click #notice-tax-change .update-amounts":"onUpdateAmounts"},initialize:function(){var t=this.options.state;this.listenTo(t,"change:hasTax",this.render),this.listenTo(t.get("items"),"add remove change",this.render),this.listenTo(t.get("adjustments"),"add remove",this.render)},prepare:function(){var t=this.options.state,e=t.get("formatters"),n=e.currency,r=(e.number,!0===t.get("hasQuantity")?2:1),o=t.getTax(),i=t.hasNewTaxRate(),u=[].concat(A()(t.get("items").models),A()(t.get("adjustments").getByType("fee")));return{state:D(D({},t.toJSON()),{},{hasNewTaxRate:i}),config:{colspan:r},tax:o,taxCurrency:n.format(o),hasTaxableItems:u.length>0}},onDismissTaxRateChange:function(){var t=this.options.state;t.set("hasTax",t.get("hasTax")),t.trigger("change:hasTax")},onUpdateAmounts:function(t){var e=this;t.preventDefault();var n=this.options.state;n.get("adjustments").getByType("fee").forEach((function(t){t.updateTax()})),n.get("items").updateAmounts().done((function(){e.onDismissTaxRateChange()}))}}),S=j.extend({getAdjustments:function(){return this.options.state.get("adjustments").getByType("credit")}});function I(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function E(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?I(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var C=wp.Backbone.View.extend({tagName:"tbody",className:"edd-order-overview-summary__total",template:wp.template("edd-admin-order-total"),initialize:function(){var t=this.options.state;this.listenTo(t,"change:hasTax",this.render),this.listenTo(t.get("items"),"add remove change",this.render),this.listenTo(t.get("adjustments"),"add remove",this.render)},prepare:function(){var t=this.options.state,e=t.get("formatters"),n=e.currency,r=(e.number,!0===t.get("hasQuantity")?2:1),o=t.getTotal(),i=t.getDiscount(),u=void 0!==t.get("items").findWhere({_isAdjustingManually:!0});return{state:E(E({},t.toJSON()),{},{hasManualAdjustment:u}),config:{colspan:r},total:o,discount:i,discountCurrency:n.format(i),totalCurrency:n.format(o)}}}),B=wp.Backbone.View.extend({template:wp.template("edd-admin-order-refund"),tagName:"tr",className:"is-expanded",prepare:function(){var t=this.model,e=this.options.state,n=e.get("formatters").currency;return{config:{colspan:!0===e.get("hasQuantity")?2:1},id:t.get("id"),number:t.get("number"),dateCreated:t.get("dateCreatedi18n"),totalCurrency:n.format(t.get("total"))}}});function M(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function z(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?M(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var R=wp.Backbone.View.extend({tagName:"tbody",className:"edd-order-overview-summary__refunds",template:wp.template("edd-admin-order-refunds"),render:function(){var t=this,e=this.options.state.get("refunds").models;_.each(e,(function(e){return t.views.add(new B(z(z({},t.options),{},{model:e})))}))}}),N=wp.Backbone.View.extend({el:"#edd-order-overview-summary",render:function(){return this.views.add(new v(this.options)),this.views.add(new g(this.options)),this.views.add(new x(this.options)),this.views.add(new T(this.options)),this.views.add(new S(this.options)),this.views.add(new C(this.options)),this.views.add(new R(this.options)),this}})},182:function(t,e,n){"use strict";n.r(e),function(t){var e=n(19),r=(n(190),n(3));Object(r.a)((function(){window.eddAdminOrderOverview&&(e.a.render(),function(){var n=e.a.options.state.get("items"),r=document.getElementById("edd-add-order-no-items-error"),o=document.getElementById("edd-add-order-customer-error"),i=document.getElementById("customer_id"),u=document.getElementById("edd_new_customer_email");function a(t){var e=!1;r&&(0===n.length?(r.style.display="block",e=!0):r.style.display="none"),o&&("0"===i.value&&""===u.value?(o.style.display="block",e=!0):o.style.display="none",!0===e&&t.preventDefault())}["edd-add-order-form","edd-edit-order-form"].forEach((function(t){var e=document.getElementById(t);e&&e.addEventListener("submit",a)})),n.on("add",(function(){r.style.display="none"})),t(i).on("change",(function(t){"0"!==t.target.value&&(o.style.display="none")})),u&&u.addEventListener("input",(function(t){""!==t.target.value&&(o.style.display="none")}))}()),0!==t(".edit-post-editor-regions__header").length&&t("div.update-nag, div#update-nag").insertAfter(t(".edit-post-editor-regions__header"))}))}.call(this,n(1))},183:function(t,e,n){var r=n(24);t.exports=function(t){if(Array.isArray(t))return r(t)},t.exports.__esModule=!0,t.exports.default=t.exports},184:function(t,e){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},185:function(t,e,n){var r=n(24);t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},186:function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},187:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},188:function(t,e){},189:function(t,e,n){"use strict";(function(t){var e=new(n(6).b);function r(){var n=0,r=0,o=0,i=!1,u=t("#edd-refund-order-dialog .edd-order-item-refund-input"),a=t("#edd-refund-order-dialog .edd-order-item-refund-input.readonly");u.prop("readonly",!0),t("#edd-refund-order-dialog .edd-order-item-refund-quantity").each((function(){if(parseInt(t(this).val())){var i=t(this).closest(".refunditem");if(i.find(".edd-order-item-refund-checkbox").prop("checked")){var u=0,a=e.unformat(i.find(".edd-order-item-refund-subtotal").val());i.find(".edd-order-item-refund-tax").length&&(u=e.unformat(i.find(".edd-order-item-refund-tax").val()));var c=a+u;i.find(".column-total span").text(e.format(c)),i.data("credit")&&(a*=-1,u*=-1,c*=-1),i.data("orderItem")&&(n+=a),r+=u,o+=c}else i.removeClass("refunded")}})),parseFloat(o)>0&&(i=!0),t("#edd-refund-submit-subtotal-amount").text(e.format(n)),t("#edd-refund-submit-tax-amount").text(e.format(r)),t("#edd-refund-submit-total-amount").text(e.format(o)),t("#edd-submit-refund-submit").attr("disabled",!i),u.prop("readonly",!1),a.prop("readonly",!0)}t(document.body).on("click",".edd-refund-order",(function(e){e.preventDefault(),t(this);var n={action:"edd_generate_refund_form",order_id:t('input[name="edd_payment_id"]').val()};t.ajax({type:"POST",data:n,url:ajaxurl,success:function(e){var n;return n=e.success?e.html:e.message,t("#edd-refund-order-dialog").dialog({position:{my:"top center",at:"center center-25%"},width:"75%",modal:!0,resizable:!1,draggable:!1,classes:{"ui-dialog":"edd-dialog"},closeText:eddAdminOrderOverview.i18n.closeText,open:function(e,r){t(this).html(n)},close:function(e,n){t(this).html(""),t(this).hasClass("did-refund")&&location.reload()}}),!1}}).fail((function(e){return t("#edd-refund-order-dialog").dialog({position:{my:"top center",at:"center center-25%"},width:"75%",modal:!0,resizable:!1,draggable:!1}).html(e.message),!1}))})),t(document.body).on("click",".ui-widget-overlay",(function(e){t("#edd-refund-order-dialog").dialog("close")})),t(document.body).on("change","#edd-refund-order-dialog #cb-select-all-1",(function(){var e=t(".edd-order-item-refund-checkbox"),n=t(this).prop("checked");e.each((function(){t(this).prop("checked",n).trigger("change")}))})),t(document.body).on("change",".edd-order-item-refund-checkbox",(function(){var e=t(this).parent().parent(),n=e.find(".edd-order-item-refund-quantity");n.length&&(t(this).prop("checked")?n.trigger("change"):(e.find(".edd-order-item-refund-input").prop("disabled",!0),r()))})),t(document.body).on("change","#edd-refund-order-dialog .edd-order-item-refund-input",(function(){var n=t(this).closest(".refunditem"),o=n.find(".edd-order-item-refund-quantity"),i=parseInt(o.val());if(i>0?n.addClass("refunded"):n.removeClass("refunded"),t(this).hasClass("edd-order-item-refund-quantity")){n.find(".edd-order-item-refund-input:not(.edd-order-item-refund-quantity)").prop("disabled",0===i),i>0&&o.prop("disabled",!1);var u=n.find(".edd-order-item-refund-subtotal"),a=n.find(".edd-order-item-refund-tax"),c=e.unformat(u.data("original")),s=a.length?e.unformat(a.data("original")):0,f=parseInt(o.data("max")),d=c/f*i,l=a.length?s/f*i:0;d>parseFloat(u.data("max"))&&(d=u.data("max")),a.length&&l>parseFloat(a.data("max"))&&(l=a.data("max")),u.val(e.format(d)),a.length&&a.val(e.format(l))}r()})),t(document.body).on("click","#edd-submit-refund-submit",(function(e){e.preventDefault(),t(".edd-submit-refund-message").removeClass("success").removeClass("fail"),t(this).removeClass("button-primary").attr("disabled",!0).addClass("updating-message"),t("#edd-submit-refund-status").hide();var n={action:"edd_process_refund_form",data:t("#edd-submit-refund-form").serialize(),order_id:t('input[name="edd_payment_id"]').val()};t.ajax({type:"POST",data:n,url:ajaxurl,success:function(e){var n=t(".edd-submit-refund-message"),r=t(".edd-submit-refund-url");e.success?(n.text(e.data.message).addClass("success"),r.attr("href",e.data.refund_url).show(),t("#edd-submit-refund-status").show(),r.focus(),t("#edd-refund-order-dialog").addClass("did-refund")):(n.html(e.data).addClass("fail"),r.hide(),t("#edd-submit-refund-status").show(),t("#edd-submit-refund-submit").attr("disabled",!1).removeClass("updating-message").addClass("button-primary"))}}).fail((function(e){var n=t(".edd-submit-refund-message"),r=t(".edd-submit-refund-url"),o=e.responseJSON;return n.text(o.data).addClass("fail"),r.hide(),t("#edd-submit-refund-status").show(),t("#edd-submit-refund-submit").attr("disabled",!1).removeClass("updating-message").addClass("button-primary"),!1}))})),t(document.body).on("click",".refund-items .toggle-row",(function(){t(this).closest("tr").toggleClass("is-expanded")}))}).call(this,n(1))},19:function(t,e,n){"use strict";var r,o=n(2),i=n.n(o),u=n(6),a=n(160),c=n(167),s=n(17),f=n(15),d=Backbone.Model.extend({defaults:{id:0,number:"",total:0,dateCreated:"",dateCreatedi18n:""}}),l=Backbone.Collection.extend({model:d}),p=Backbone.Model.extend({defaults:{isAdding:!1,isFetching:!1,hasQuantity:!1,hasTax:!1,items:[],adjustments:[],refunds:[],formatters:{currency:new u.a,number:new u.b}},getTaxCountry:function(){return!1!==this.get("hasTax")?this.get("hasTax").country:""},getTaxRegion:function(){return!1!==this.get("hasTax")?this.get("hasTax").region:""},getSubtotal:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!1===this.get("isAdding"))return this.get("order").subtotal;var e=this.get("items"),n=e.models;return n.reduce((function(e,n){return e+ +n.getSubtotal(t)}),0)},getDiscount:function(){return!1===this.get("isAdding")?this.get("order").discount:this.get("adjustments").getByType("discount").reduce((function(t,e){return t+ +e.getAmount()}),0)},getTax:function(){if(!1===this.get("isAdding"))return this.get("order").tax;var t=this.get("items").models,e=this.getFeesTax();return t.reduce((function(t,e){return t+ +e.getTax()}),e)},getFeesTax:function(){return!1===this.get("isAdding")?this.get("order").tax:this.get("adjustments").getByType("fee").reduce((function(t,e){return t+ +e.getTax()}),0)},getTotal:function(){if(!1===this.get("isAdding"))return this.get("order").total;var t=this.get("adjustments").models.reduce((function(t,e){return["discount","credit"].includes(e.get("type"))?t-+e.getAmount():t+ +e.get("subtotal")}),this.getSubtotal(!0));return!0===this.hasInclusiveTax()?t+this.getFeesTax():t+this.getTax()},hasNewTaxRate:function(){var t=this.get("hasTax");if(!1===t)return!1;var e=this.previous("hasTax");return!_.isEqual(t,e)},hasInclusiveTax:function(){return this.get("hasTax").inclusive}});function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){i()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}n(189),function(){if(window.eddAdminOrderOverview){var t=window.eddAdminOrderOverview,e=t.isAdding,n=t.isRefund,o=t.hasTax,i=t.hasQuantity,d=t.hasDiscounts,h=t.order,g=t.items,y=t.adjustments,m=t.refunds,_=new u.a({currency:h.currency,currencySymbol:h.currencySymbol}),b=new p({isAdding:"1"===e,isRefund:"1"===n,hasTax:"0"!==o&&o,hasQuantity:"1"===i,hasDiscounts:"1"===d,formatters:{currency:_,number:new u.b},order:h});b.set({items:new c.a(null,{state:b}),adjustments:new f.a(null,{state:b}),refunds:new l(null,{state:b})}),r=new a.a({state:b}),g.forEach((function(t){var e=new f.a(t.adjustments),n=new s.a(v(v({},t),{},{adjustments:e,state:b}));b.get("items").add(n)})),y.forEach((function(t){b.get("adjustments").add(v({state:b},t))})),m.forEach((function(t){b.get("refunds").add(v({state:b},t))}))}}(),e.a=r},190:function(t,e,n){"use strict";n(191),n(192),n(193)},191:function(t,e,n){"use strict";(function(t){var e=n(2),r=n.n(e),o=n(19),i=n(5),u=n(3);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){r()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var s={addresses:{0:{address:"",address2:"",city:"",region:"",postal_code:"",country:""}}};Object(u.a)((function(){function e(e,n,r){var o={action:"edd_get_shop_states",country:e.val(),nonce:e.data("nonce"),field_name:n,field_id:r};return t.post(ajaxurl,o)}function n(e){var n=t("#edd_order_address_region");t("#edd_order_address_region_chosen").remove(),"nostates"===e?n.replaceWith('<input type="text" name="edd_order_address[region]" id="edd_order_address_region" value="" class="wide-fat" style="max-width: none; width: 100%;" />'):(n.replaceWith(e),t("#edd_order_address_region").chosen(Object(i.a)(t("#edd_order_address_region"))))}function r(){e(t(this),"edd_order_address[region]","edd_order_address_region").done(n)}!function(){var e=o.a.options.state;if(!1!==e.get("hasTax")&&!1!==e.get("isAdding")){var n=document.getElementById("edd_order_address_country"),r=document.getElementById("edd_order_address_region");n&&r&&(t("#edd_order_address_country").on("change",_.debounce(i,250)),t("#edd-order-address").on("change","#edd_order_address_region",i),t("#edd-order-address").on("keyup","#edd_order_address_region",_.debounce(i,250)))}function i(){var n=t("#edd_order_address_country").val(),r=t("#edd_order_address_region").val(),o=document.getElementById("edd_get_tax_rate_nonce").value;wp.ajax.send("edd_get_tax_rate",{data:{nonce:o,country:n,region:r},success:function(t){var o=t.tax_rate;o*=100,e.set("hasTax",c(c({},e.get("hasTax")),{},{country:n,region:r,rate:o}))},error:function(){e.set("hasTax","none")}})}}(),t(".edd-payment-change-customer-input").on("change",(function(){var e={action:"edd_customer_addresses",customer_id:t(this).val(),nonce:t("#edd_add_order_nonce").val()};return t.post(ajaxurl,e,(function(e){var n=e.success,r=e.data;n?(s=c(c(c({},s),r),{},{addresses:c(c({},s.addresses),r.addresses)}),r.html?(t(".customer-address-select-wrap").show(),t(".customer-address-select-wrap .edd-form-group__control").html(r.html)):t(".customer-address-select-wrap").hide()):t(".customer-address-select-wrap").hide()}),"json"),!1})),t(document.body).on("change",".customer-address-select-wrap .add-order-customer-address-select",(function(){var o=t(this).val(),i=s.addresses[o];return t('#edd-add-order-form input[name="edd_order_address[address]"]').val(i.address),t('#edd-add-order-form input[name="edd_order_address[address2]"]').val(i.address2),t('#edd-add-order-form input[name="edd_order_address[postal_code]"]').val(i.postal_code),t('#edd-add-order-form input[name="edd_order_address[city]"]').val(i.city),t('#edd-add-order-form input[name="edd_order_address[address_id]"]').val(o),t("#edd_order_address_country").off("change",r),t("#edd_order_address_country").val(i.country).trigger("change").trigger("chosen:updated"),e(t("#edd_order_address_country"),"edd_order_address[region]","edd_order_address_region").done(n).done((function(e){t("#edd_order_address_region").val(i.region).trigger("change").trigger("chosen:updated")})),t("#edd_order_address_country").on("change",r),!1})),t("#edd_order_address_country").on("change",r)}))}).call(this,n(1))},192:function(t,e,n){"use strict";(function(t){var e=n(3);Object(e.a)((function(){t(".edd-payment-change-customer-input").on("change",(function(){var e={action:"edd_customer_details",customer_id:t(this).val(),nonce:t("#edd_customer_details_nonce").val()};""!==e.customer_id&&(t(".customer-details").css("display","none"),t("#customer-avatar").html('<span class="spinner is-active"></span>'),t.post(ajaxurl,e,(function(e){var n=e.success,r=e.data;n?(t(".customer-details").css("display","flex"),t(".customer-details-wrap").css("display","flex"),t("#customer-avatar").html(r.avatar),t(".customer-name").html(r.name),t(".customer-since span").html(r.date_created_i18n),t(".customer-record a").prop("href",r._links.self)):t(".customer-details-wrap").css("display","none")}),"json"))})),t(".edd-payment-change-customer-input").trigger("change"),t("#edd-customer-details").on("click",".edd-payment-new-customer, .edd-payment-new-customer-cancel",(function(e){e.preventDefault();var n=t(this).hasClass("edd-payment-new-customer"),r=t(this).hasClass("edd-payment-new-customer-cancel");n?(t(".order-customer-info").hide(),t(".new-customer").show()):r&&(t(".order-customer-info").show(),t(".new-customer").hide()),n=t("#edd-new-customer"),t(".new-customer").is(":visible")?n.val(1):n.val(0)}))}))}).call(this,n(1))},193:function(t,e,n){"use strict";(function(t){var e=n(3);Object(e.a)((function(){var e=t(".edd-order-resend-receipt-addresses");t(document.body).on("click","#edd-select-receipt-email",(function(t){t.preventDefault(),e.slideDown()})),t(document.body).on("change",".edd-order-resend-receipt-email",(function(){var e=t("input:radio.edd-order-resend-receipt-email:checked").val();t("#edd-select-receipt-email").data("email",e)})),t(document.body).on("click","#edd-select-receipt-email",(function(){if(confirm(edd_vars.resend_receipt)){var e=t(this).prop("href")+"&email="+t(this).data("email");window.location=e}})),t(document.body).on("click","#edd-resend-receipt",(function(){return confirm(edd_vars.resend_receipt)}))}))}).call(this,n(1))},2:function(t,e){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports},20:function(t,e,n){(function(t,r){var o;(function(){var i="Expected a function",u="__lodash_placeholder__",a=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],c="[object Arguments]",s="[object Array]",f="[object Boolean]",d="[object Date]",l="[object Error]",p="[object Function]",h="[object GeneratorFunction]",v="[object Map]",g="[object Number]",y="[object Object]",m="[object RegExp]",_="[object Set]",b="[object String]",w="[object Symbol]",O="[object WeakMap]",j="[object ArrayBuffer]",x="[object DataView]",P="[object Float32Array]",A="[object Float64Array]",k="[object Int8Array]",D="[object Int16Array]",T="[object Int32Array]",S="[object Uint8Array]",I="[object Uint16Array]",E="[object Uint32Array]",C=/\b__p \+= '';/g,B=/\b(__p \+=) '' \+/g,M=/(__e\(.*?\)|\b__t\)) \+\n'';/g,z=/&(?:amp|lt|gt|quot|#39);/g,R=/[&<>"']/g,N=RegExp(z.source),F=RegExp(R.source),L=/<%-([\s\S]+?)%>/g,W=/<%([\s\S]+?)%>/g,U=/<%=([\s\S]+?)%>/g,q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$=/^\w*$/,V=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Z=/[\\^$.*+?()[\]{}|]/g,Q=RegExp(Z.source),J=/^\s+/,K=/\s/,H=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,G=/\{\n\/\* \[wrapped with (.+)\] \*/,Y=/,? & /,X=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tt=/[()=,{}\[\]\/\s]/,et=/\\(\\)?/g,nt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rt=/\w*$/,ot=/^[-+]0x[0-9a-f]+$/i,it=/^0b[01]+$/i,ut=/^\[object .+?Constructor\]$/,at=/^0o[0-7]+$/i,ct=/^(?:0|[1-9]\d*)$/,st=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ft=/($^)/,dt=/['\n\r\u2028\u2029\\]/g,lt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",pt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ht="["+pt+"]",vt="["+lt+"]",gt="\\d+",yt="[a-z\\xdf-\\xf6\\xf8-\\xff]",mt="[^\\ud800-\\udfff"+pt+gt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",_t="\\ud83c[\\udffb-\\udfff]",bt="[^\\ud800-\\udfff]",wt="(?:\\ud83c[\\udde6-\\uddff]){2}",Ot="[\\ud800-\\udbff][\\udc00-\\udfff]",jt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",xt="(?:"+yt+"|"+mt+")",Pt="(?:"+jt+"|"+mt+")",At="(?:"+vt+"|"+_t+")?",kt="[\\ufe0e\\ufe0f]?"+At+"(?:\\u200d(?:"+[bt,wt,Ot].join("|")+")[\\ufe0e\\ufe0f]?"+At+")*",Dt="(?:"+["[\\u2700-\\u27bf]",wt,Ot].join("|")+")"+kt,Tt="(?:"+[bt+vt+"?",vt,wt,Ot,"[\\ud800-\\udfff]"].join("|")+")",St=RegExp("['’]","g"),It=RegExp(vt,"g"),Et=RegExp(_t+"(?="+_t+")|"+Tt+kt,"g"),Ct=RegExp([jt+"?"+yt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ht,jt,"$"].join("|")+")",Pt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ht,jt+xt,"$"].join("|")+")",jt+"?"+xt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",jt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",gt,Dt].join("|"),"g"),Bt=RegExp("[\\u200d\\ud800-\\udfff"+lt+"\\ufe0e\\ufe0f]"),Mt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,zt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Rt=-1,Nt={};Nt[P]=Nt[A]=Nt[k]=Nt[D]=Nt[T]=Nt[S]=Nt["[object Uint8ClampedArray]"]=Nt[I]=Nt[E]=!0,Nt[c]=Nt[s]=Nt[j]=Nt[f]=Nt[x]=Nt[d]=Nt[l]=Nt[p]=Nt[v]=Nt[g]=Nt[y]=Nt[m]=Nt[_]=Nt[b]=Nt[O]=!1;var Ft={};Ft[c]=Ft[s]=Ft[j]=Ft[x]=Ft[f]=Ft[d]=Ft[P]=Ft[A]=Ft[k]=Ft[D]=Ft[T]=Ft[v]=Ft[g]=Ft[y]=Ft[m]=Ft[_]=Ft[b]=Ft[w]=Ft[S]=Ft["[object Uint8ClampedArray]"]=Ft[I]=Ft[E]=!0,Ft[l]=Ft[p]=Ft[O]=!1;var Lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Wt=parseFloat,Ut=parseInt,qt="object"==typeof t&&t&&t.Object===Object&&t,$t="object"==typeof self&&self&&self.Object===Object&&self,Vt=qt||$t||Function("return this")(),Zt=e&&!e.nodeType&&e,Qt=Zt&&"object"==typeof r&&r&&!r.nodeType&&r,Jt=Qt&&Qt.exports===Zt,Kt=Jt&&qt.process,Ht=function(){try{return Qt&&Qt.require&&Qt.require("util").types||Kt&&Kt.binding&&Kt.binding("util")}catch(t){}}(),Gt=Ht&&Ht.isArrayBuffer,Yt=Ht&&Ht.isDate,Xt=Ht&&Ht.isMap,te=Ht&&Ht.isRegExp,ee=Ht&&Ht.isSet,ne=Ht&&Ht.isTypedArray;function re(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function oe(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++o<i;){var u=t[o];e(r,u,n(u),t)}return r}function ie(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function ue(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function ae(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function ce(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var u=t[n];e(u,n,t)&&(i[o++]=u)}return i}function se(t,e){return!(null==t||!t.length)&&_e(t,e,0)>-1}function fe(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1}function de(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function le(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function pe(t,e,n,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}function he(t,e,n,r){var o=null==t?0:t.length;for(r&&o&&(n=t[--o]);o--;)n=e(n,t[o],o,t);return n}function ve(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var ge=je("length");function ye(t,e,n){var r;return n(t,(function(t,n,o){if(e(t,n,o))return r=n,!1})),r}function me(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}function _e(t,e,n){return e==e?function(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}(t,e,n):me(t,we,n)}function be(t,e,n,r){for(var o=n-1,i=t.length;++o<i;)if(r(t[o],e))return o;return-1}function we(t){return t!=t}function Oe(t,e){var n=null==t?0:t.length;return n?Ae(t,e)/n:NaN}function je(t){return function(e){return null==e?void 0:e[t]}}function xe(t){return function(e){return null==t?void 0:t[e]}}function Pe(t,e,n,r,o){return o(t,(function(t,o,i){n=r?(r=!1,t):e(n,t,o,i)})),n}function Ae(t,e){for(var n,r=-1,o=t.length;++r<o;){var i=e(t[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n}function ke(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function De(t){return t?t.slice(0,Ze(t)+1).replace(J,""):t}function Te(t){return function(e){return t(e)}}function Se(t,e){return de(e,(function(e){return t[e]}))}function Ie(t,e){return t.has(e)}function Ee(t,e){for(var n=-1,r=t.length;++n<r&&_e(e,t[n],0)>-1;);return n}function Ce(t,e){for(var n=t.length;n--&&_e(e,t[n],0)>-1;);return n}function Be(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}var Me=xe({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"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","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"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","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),ze=xe({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Re(t){return"\\"+Lt[t]}function Ne(t){return Bt.test(t)}function Fe(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function Le(t,e){return function(n){return t(e(n))}}function We(t,e){for(var n=-1,r=t.length,o=0,i=[];++n<r;){var a=t[n];a!==e&&a!==u||(t[n]=u,i[o++]=n)}return i}function Ue(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function qe(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function $e(t){return Ne(t)?function(t){for(var e=Et.lastIndex=0;Et.test(t);)++e;return e}(t):ge(t)}function Ve(t){return Ne(t)?function(t){return t.match(Et)||[]}(t):function(t){return t.split("")}(t)}function Ze(t){for(var e=t.length;e--&&K.test(t.charAt(e)););return e}var Qe=xe({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),Je=function t(e){var n,r=(e=null==e?Vt:Je.defaults(Vt.Object(),e,Je.pick(Vt,zt))).Array,o=e.Date,K=e.Error,lt=e.Function,pt=e.Math,ht=e.Object,vt=e.RegExp,gt=e.String,yt=e.TypeError,mt=r.prototype,_t=lt.prototype,bt=ht.prototype,wt=e["__core-js_shared__"],Ot=_t.toString,jt=bt.hasOwnProperty,xt=0,Pt=(n=/[^.]+$/.exec(wt&&wt.keys&&wt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",At=bt.toString,kt=Ot.call(ht),Dt=Vt._,Tt=vt("^"+Ot.call(jt).replace(Z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Et=Jt?e.Buffer:void 0,Bt=e.Symbol,Lt=e.Uint8Array,qt=Et?Et.allocUnsafe:void 0,$t=Le(ht.getPrototypeOf,ht),Zt=ht.create,Qt=bt.propertyIsEnumerable,Kt=mt.splice,Ht=Bt?Bt.isConcatSpreadable:void 0,ge=Bt?Bt.iterator:void 0,xe=Bt?Bt.toStringTag:void 0,Ke=function(){try{var t=ti(ht,"defineProperty");return t({},"",{}),t}catch(t){}}(),He=e.clearTimeout!==Vt.clearTimeout&&e.clearTimeout,Ge=o&&o.now!==Vt.Date.now&&o.now,Ye=e.setTimeout!==Vt.setTimeout&&e.setTimeout,Xe=pt.ceil,tn=pt.floor,en=ht.getOwnPropertySymbols,nn=Et?Et.isBuffer:void 0,rn=e.isFinite,on=mt.join,un=Le(ht.keys,ht),an=pt.max,cn=pt.min,sn=o.now,fn=e.parseInt,dn=pt.random,ln=mt.reverse,pn=ti(e,"DataView"),hn=ti(e,"Map"),vn=ti(e,"Promise"),gn=ti(e,"Set"),yn=ti(e,"WeakMap"),mn=ti(ht,"create"),_n=yn&&new yn,bn={},wn=Ti(pn),On=Ti(hn),jn=Ti(vn),xn=Ti(gn),Pn=Ti(yn),An=Bt?Bt.prototype:void 0,kn=An?An.valueOf:void 0,Dn=An?An.toString:void 0;function Tn(t){if(Zu(t)&&!Mu(t)&&!(t instanceof Cn)){if(t instanceof En)return t;if(jt.call(t,"__wrapped__"))return Si(t)}return new En(t)}var Sn=function(){function t(){}return function(e){if(!Vu(e))return{};if(Zt)return Zt(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function In(){}function En(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function Cn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Bn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Mn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function zn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Rn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new zn;++e<n;)this.add(t[e])}function Nn(t){var e=this.__data__=new Mn(t);this.size=e.size}function Fn(t,e){var n=Mu(t),r=!n&&Bu(t),o=!n&&!r&&Fu(t),i=!n&&!r&&!o&&ta(t),u=n||r||o||i,a=u?ke(t.length,gt):[],c=a.length;for(var s in t)!e&&!jt.call(t,s)||u&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||ai(s,c))||a.push(s);return a}function Ln(t){var e=t.length;return e?t[zr(0,e-1)]:void 0}function Wn(t,e){return xi(mo(t),Hn(e,0,t.length))}function Un(t){return xi(mo(t))}function qn(t,e,n){(void 0!==n&&!Iu(t[e],n)||void 0===n&&!(e in t))&&Jn(t,e,n)}function $n(t,e,n){var r=t[e];jt.call(t,e)&&Iu(r,n)&&(void 0!==n||e in t)||Jn(t,e,n)}function Vn(t,e){for(var n=t.length;n--;)if(Iu(t[n][0],e))return n;return-1}function Zn(t,e,n,r){return er(t,(function(t,o,i){e(r,t,n(t),i)})),r}function Qn(t,e){return t&&_o(e,Oa(e),t)}function Jn(t,e,n){"__proto__"==e&&Ke?Ke(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Kn(t,e){for(var n=-1,o=e.length,i=r(o),u=null==t;++n<o;)i[n]=u?void 0:ya(t,e[n]);return i}function Hn(t,e,n){return t==t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}function Gn(t,e,n,r,o,i){var u,a=1&e,s=2&e,l=4&e;if(n&&(u=o?n(t,r,o,i):n(t)),void 0!==u)return u;if(!Vu(t))return t;var O=Mu(t);if(O){if(u=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&jt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!a)return mo(t,u)}else{var C=ri(t),B=C==p||C==h;if(Fu(t))return lo(t,a);if(C==y||C==c||B&&!o){if(u=s||B?{}:ii(t),!a)return s?function(t,e){return _o(t,ni(t),e)}(t,function(t,e){return t&&_o(e,ja(e),t)}(u,t)):function(t,e){return _o(t,ei(t),e)}(t,Qn(u,t))}else{if(!Ft[C])return o?t:{};u=function(t,e,n){var r,o=t.constructor;switch(e){case j:return po(t);case f:case d:return new o(+t);case x:return function(t,e){var n=e?po(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case P:case A:case k:case D:case T:case S:case"[object Uint8ClampedArray]":case I:case E:return ho(t,n);case v:return new o;case g:case b:return new o(t);case m:return function(t){var e=new t.constructor(t.source,rt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case _:return new o;case w:return r=t,kn?ht(kn.call(r)):{}}}(t,C,a)}}i||(i=new Nn);var M=i.get(t);if(M)return M;i.set(t,u),Gu(t)?t.forEach((function(r){u.add(Gn(r,e,n,r,t,i))})):Qu(t)&&t.forEach((function(r,o){u.set(o,Gn(r,e,n,o,t,i))}));var z=O?void 0:(l?s?Qo:Zo:s?ja:Oa)(t);return ie(z||t,(function(r,o){z&&(r=t[o=r]),$n(u,o,Gn(r,e,n,o,t,i))})),u}function Yn(t,e,n){var r=n.length;if(null==t)return!r;for(t=ht(t);r--;){var o=n[r],i=e[o],u=t[o];if(void 0===u&&!(o in t)||!i(u))return!1}return!0}function Xn(t,e,n){if("function"!=typeof t)throw new yt(i);return bi((function(){t.apply(void 0,n)}),e)}function tr(t,e,n,r){var o=-1,i=se,u=!0,a=t.length,c=[],s=e.length;if(!a)return c;n&&(e=de(e,Te(n))),r?(i=fe,u=!1):e.length>=200&&(i=Ie,u=!1,e=new Rn(e));t:for(;++o<a;){var f=t[o],d=null==n?f:n(f);if(f=r||0!==f?f:0,u&&d==d){for(var l=s;l--;)if(e[l]===d)continue t;c.push(f)}else i(e,d,r)||c.push(f)}return c}Tn.templateSettings={escape:L,evaluate:W,interpolate:U,variable:"",imports:{_:Tn}},Tn.prototype=In.prototype,Tn.prototype.constructor=Tn,En.prototype=Sn(In.prototype),En.prototype.constructor=En,Cn.prototype=Sn(In.prototype),Cn.prototype.constructor=Cn,Bn.prototype.clear=function(){this.__data__=mn?mn(null):{},this.size=0},Bn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Bn.prototype.get=function(t){var e=this.__data__;if(mn){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return jt.call(e,t)?e[t]:void 0},Bn.prototype.has=function(t){var e=this.__data__;return mn?void 0!==e[t]:jt.call(e,t)},Bn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=mn&&void 0===e?"__lodash_hash_undefined__":e,this},Mn.prototype.clear=function(){this.__data__=[],this.size=0},Mn.prototype.delete=function(t){var e=this.__data__,n=Vn(e,t);return!(n<0||(n==e.length-1?e.pop():Kt.call(e,n,1),--this.size,0))},Mn.prototype.get=function(t){var e=this.__data__,n=Vn(e,t);return n<0?void 0:e[n][1]},Mn.prototype.has=function(t){return Vn(this.__data__,t)>-1},Mn.prototype.set=function(t,e){var n=this.__data__,r=Vn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},zn.prototype.clear=function(){this.size=0,this.__data__={hash:new Bn,map:new(hn||Mn),string:new Bn}},zn.prototype.delete=function(t){var e=Yo(this,t).delete(t);return this.size-=e?1:0,e},zn.prototype.get=function(t){return Yo(this,t).get(t)},zn.prototype.has=function(t){return Yo(this,t).has(t)},zn.prototype.set=function(t,e){var n=Yo(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Rn.prototype.add=Rn.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Rn.prototype.has=function(t){return this.__data__.has(t)},Nn.prototype.clear=function(){this.__data__=new Mn,this.size=0},Nn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Nn.prototype.get=function(t){return this.__data__.get(t)},Nn.prototype.has=function(t){return this.__data__.has(t)},Nn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Mn){var r=n.__data__;if(!hn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new zn(r)}return n.set(t,e),this.size=n.size,this};var er=Oo(sr),nr=Oo(fr,!0);function rr(t,e){var n=!0;return er(t,(function(t,r,o){return n=!!e(t,r,o)})),n}function or(t,e,n){for(var r=-1,o=t.length;++r<o;){var i=t[r],u=e(i);if(null!=u&&(void 0===a?u==u&&!Xu(u):n(u,a)))var a=u,c=i}return c}function ir(t,e){var n=[];return er(t,(function(t,r,o){e(t,r,o)&&n.push(t)})),n}function ur(t,e,n,r,o){var i=-1,u=t.length;for(n||(n=ui),o||(o=[]);++i<u;){var a=t[i];e>0&&n(a)?e>1?ur(a,e-1,n,r,o):le(o,a):r||(o[o.length]=a)}return o}var ar=jo(),cr=jo(!0);function sr(t,e){return t&&ar(t,e,Oa)}function fr(t,e){return t&&cr(t,e,Oa)}function dr(t,e){return ce(e,(function(e){return Uu(t[e])}))}function lr(t,e){for(var n=0,r=(e=ao(e,t)).length;null!=t&&n<r;)t=t[Di(e[n++])];return n&&n==r?t:void 0}function pr(t,e,n){var r=e(t);return Mu(t)?r:le(r,n(t))}function hr(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":xe&&xe in ht(t)?function(t){var e=jt.call(t,xe),n=t[xe];try{t[xe]=void 0;var r=!0}catch(t){}var o=At.call(t);return r&&(e?t[xe]=n:delete t[xe]),o}(t):function(t){return At.call(t)}(t)}function vr(t,e){return t>e}function gr(t,e){return null!=t&&jt.call(t,e)}function yr(t,e){return null!=t&&e in ht(t)}function mr(t,e,n){for(var o=n?fe:se,i=t[0].length,u=t.length,a=u,c=r(u),s=1/0,f=[];a--;){var d=t[a];a&&e&&(d=de(d,Te(e))),s=cn(d.length,s),c[a]=!n&&(e||i>=120&&d.length>=120)?new Rn(a&&d):void 0}d=t[0];var l=-1,p=c[0];t:for(;++l<i&&f.length<s;){var h=d[l],v=e?e(h):h;if(h=n||0!==h?h:0,!(p?Ie(p,v):o(f,v,n))){for(a=u;--a;){var g=c[a];if(!(g?Ie(g,v):o(t[a],v,n)))continue t}p&&p.push(v),f.push(h)}}return f}function _r(t,e,n){var r=null==(t=gi(t,e=ao(e,t)))?t:t[Di(Wi(e))];return null==r?void 0:re(r,t,n)}function br(t){return Zu(t)&&hr(t)==c}function wr(t,e,n,r,o){return t===e||(null==t||null==e||!Zu(t)&&!Zu(e)?t!=t&&e!=e:function(t,e,n,r,o,i){var u=Mu(t),a=Mu(e),p=u?s:ri(t),h=a?s:ri(e),O=(p=p==c?y:p)==y,P=(h=h==c?y:h)==y,A=p==h;if(A&&Fu(t)){if(!Fu(e))return!1;u=!0,O=!1}if(A&&!O)return i||(i=new Nn),u||ta(t)?$o(t,e,n,r,o,i):function(t,e,n,r,o,i,u){switch(n){case x:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case j:return!(t.byteLength!=e.byteLength||!i(new Lt(t),new Lt(e)));case f:case d:case g:return Iu(+t,+e);case l:return t.name==e.name&&t.message==e.message;case m:case b:return t==e+"";case v:var a=Fe;case _:var c=1&r;if(a||(a=Ue),t.size!=e.size&&!c)return!1;var s=u.get(t);if(s)return s==e;r|=2,u.set(t,e);var p=$o(a(t),a(e),r,o,i,u);return u.delete(t),p;case w:if(kn)return kn.call(t)==kn.call(e)}return!1}(t,e,p,n,r,o,i);if(!(1&n)){var k=O&&jt.call(t,"__wrapped__"),D=P&&jt.call(e,"__wrapped__");if(k||D){var T=k?t.value():t,S=D?e.value():e;return i||(i=new Nn),o(T,S,n,r,i)}}return!!A&&(i||(i=new Nn),function(t,e,n,r,o,i){var u=1&n,a=Zo(t),c=a.length;if(c!=Zo(e).length&&!u)return!1;for(var s=c;s--;){var f=a[s];if(!(u?f in e:jt.call(e,f)))return!1}var d=i.get(t),l=i.get(e);if(d&&l)return d==e&&l==t;var p=!0;i.set(t,e),i.set(e,t);for(var h=u;++s<c;){var v=t[f=a[s]],g=e[f];if(r)var y=u?r(g,v,f,e,t,i):r(v,g,f,t,e,i);if(!(void 0===y?v===g||o(v,g,n,r,i):y)){p=!1;break}h||(h="constructor"==f)}if(p&&!h){var m=t.constructor,_=e.constructor;m==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof m&&m instanceof m&&"function"==typeof _&&_ instanceof _||(p=!1)}return i.delete(t),i.delete(e),p}(t,e,n,r,o,i))}(t,e,n,r,wr,o))}function Or(t,e,n,r){var o=n.length,i=o,u=!r;if(null==t)return!i;for(t=ht(t);o--;){var a=n[o];if(u&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++o<i;){var c=(a=n[o])[0],s=t[c],f=a[1];if(u&&a[2]){if(void 0===s&&!(c in t))return!1}else{var d=new Nn;if(r)var l=r(s,f,c,t,e,d);if(!(void 0===l?wr(f,s,3,r,d):l))return!1}}return!0}function jr(t){return!(!Vu(t)||(e=t,Pt&&Pt in e))&&(Uu(t)?Tt:ut).test(Ti(t));var e}function xr(t){return"function"==typeof t?t:null==t?Ja:"object"==typeof t?Mu(t)?Tr(t[0],t[1]):Dr(t):rc(t)}function Pr(t){if(!li(t))return un(t);var e=[];for(var n in ht(t))jt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Ar(t,e){return t<e}function kr(t,e){var n=-1,o=Ru(t)?r(t.length):[];return er(t,(function(t,r,i){o[++n]=e(t,r,i)})),o}function Dr(t){var e=Xo(t);return 1==e.length&&e[0][2]?hi(e[0][0],e[0][1]):function(n){return n===t||Or(n,t,e)}}function Tr(t,e){return si(t)&&pi(e)?hi(Di(t),e):function(n){var r=ya(n,t);return void 0===r&&r===e?ma(n,t):wr(e,r,3)}}function Sr(t,e,n,r,o){t!==e&&ar(e,(function(i,u){if(o||(o=new Nn),Vu(i))!function(t,e,n,r,o,i,u){var a=mi(t,n),c=mi(e,n),s=u.get(c);if(s)qn(t,n,s);else{var f=i?i(a,c,n+"",t,e,u):void 0,d=void 0===f;if(d){var l=Mu(c),p=!l&&Fu(c),h=!l&&!p&&ta(c);f=c,l||p||h?Mu(a)?f=a:Nu(a)?f=mo(a):p?(d=!1,f=lo(c,!0)):h?(d=!1,f=ho(c,!0)):f=[]:Ku(c)||Bu(c)?(f=a,Bu(a)?f=ca(a):Vu(a)&&!Uu(a)||(f=ii(c))):d=!1}d&&(u.set(c,f),o(f,c,r,i,u),u.delete(c)),qn(t,n,f)}}(t,e,u,n,Sr,r,o);else{var a=r?r(mi(t,u),i,u+"",t,e,o):void 0;void 0===a&&(a=i),qn(t,u,a)}}),ja)}function Ir(t,e){var n=t.length;if(n)return ai(e+=e<0?n:0,n)?t[e]:void 0}function Er(t,e,n){e=e.length?de(e,(function(t){return Mu(t)?function(e){return lr(e,1===t.length?t[0]:t)}:t})):[Ja];var r=-1;return e=de(e,Te(Go())),function(t,e){var r=t.length;for(t.sort((function(t,e){return function(t,e,n){for(var r=-1,o=t.criteria,i=e.criteria,u=o.length,a=n.length;++r<u;){var c=vo(o[r],i[r]);if(c)return r>=a?c:c*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}));r--;)t[r]=t[r].value;return t}(kr(t,(function(t,n,o){return{criteria:de(e,(function(e){return e(t)})),index:++r,value:t}})))}function Cr(t,e,n){for(var r=-1,o=e.length,i={};++r<o;){var u=e[r],a=lr(t,u);n(a,u)&&Wr(i,ao(u,t),a)}return i}function Br(t,e,n,r){var o=r?be:_e,i=-1,u=e.length,a=t;for(t===e&&(e=mo(e)),n&&(a=de(t,Te(n)));++i<u;)for(var c=0,s=e[i],f=n?n(s):s;(c=o(a,f,c,r))>-1;)a!==t&&Kt.call(a,c,1),Kt.call(t,c,1);return t}function Mr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==i){var i=o;ai(o)?Kt.call(t,o,1):Xr(t,o)}}return t}function zr(t,e){return t+tn(dn()*(e-t+1))}function Rr(t,e){var n="";if(!t||e<1||e>9007199254740991)return n;do{e%2&&(n+=t),(e=tn(e/2))&&(t+=t)}while(e);return n}function Nr(t,e){return wi(vi(t,e,Ja),t+"")}function Fr(t){return Ln(Ia(t))}function Lr(t,e){var n=Ia(t);return xi(n,Hn(e,0,n.length))}function Wr(t,e,n,r){if(!Vu(t))return t;for(var o=-1,i=(e=ao(e,t)).length,u=i-1,a=t;null!=a&&++o<i;){var c=Di(e[o]),s=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(o!=u){var f=a[c];void 0===(s=r?r(f,c,a):void 0)&&(s=Vu(f)?f:ai(e[o+1])?[]:{})}$n(a,c,s),a=a[c]}return t}var Ur=_n?function(t,e){return _n.set(t,e),t}:Ja,qr=Ke?function(t,e){return Ke(t,"toString",{configurable:!0,enumerable:!1,value:Va(e),writable:!0})}:Ja;function $r(t){return xi(Ia(t))}function Vr(t,e,n){var o=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var u=r(i);++o<i;)u[o]=t[o+e];return u}function Zr(t,e){var n;return er(t,(function(t,r,o){return!(n=e(t,r,o))})),!!n}function Qr(t,e,n){var r=0,o=null==t?r:t.length;if("number"==typeof e&&e==e&&o<=2147483647){for(;r<o;){var i=r+o>>>1,u=t[i];null!==u&&!Xu(u)&&(n?u<=e:u<e)?r=i+1:o=i}return o}return Jr(t,e,Ja,n)}function Jr(t,e,n,r){var o=0,i=null==t?0:t.length;if(0===i)return 0;for(var u=(e=n(e))!=e,a=null===e,c=Xu(e),s=void 0===e;o<i;){var f=tn((o+i)/2),d=n(t[f]),l=void 0!==d,p=null===d,h=d==d,v=Xu(d);if(u)var g=r||h;else g=s?h&&(r||l):a?h&&l&&(r||!p):c?h&&l&&!p&&(r||!v):!p&&!v&&(r?d<=e:d<e);g?o=f+1:i=f}return cn(i,4294967294)}function Kr(t,e){for(var n=-1,r=t.length,o=0,i=[];++n<r;){var u=t[n],a=e?e(u):u;if(!n||!Iu(a,c)){var c=a;i[o++]=0===u?0:u}}return i}function Hr(t){return"number"==typeof t?t:Xu(t)?NaN:+t}function Gr(t){if("string"==typeof t)return t;if(Mu(t))return de(t,Gr)+"";if(Xu(t))return Dn?Dn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Yr(t,e,n){var r=-1,o=se,i=t.length,u=!0,a=[],c=a;if(n)u=!1,o=fe;else if(i>=200){var s=e?null:No(t);if(s)return Ue(s);u=!1,o=Ie,c=new Rn}else c=e?[]:a;t:for(;++r<i;){var f=t[r],d=e?e(f):f;if(f=n||0!==f?f:0,u&&d==d){for(var l=c.length;l--;)if(c[l]===d)continue t;e&&c.push(d),a.push(f)}else o(c,d,n)||(c!==a&&c.push(d),a.push(f))}return a}function Xr(t,e){return null==(t=gi(t,e=ao(e,t)))||delete t[Di(Wi(e))]}function to(t,e,n,r){return Wr(t,e,n(lr(t,e)),r)}function eo(t,e,n,r){for(var o=t.length,i=r?o:-1;(r?i--:++i<o)&&e(t[i],i,t););return n?Vr(t,r?0:i,r?i+1:o):Vr(t,r?i+1:0,r?o:i)}function no(t,e){var n=t;return n instanceof Cn&&(n=n.value()),pe(e,(function(t,e){return e.func.apply(e.thisArg,le([t],e.args))}),n)}function ro(t,e,n){var o=t.length;if(o<2)return o?Yr(t[0]):[];for(var i=-1,u=r(o);++i<o;)for(var a=t[i],c=-1;++c<o;)c!=i&&(u[i]=tr(u[i]||a,t[c],e,n));return Yr(ur(u,1),e,n)}function oo(t,e,n){for(var r=-1,o=t.length,i=e.length,u={};++r<o;){var a=r<i?e[r]:void 0;n(u,t[r],a)}return u}function io(t){return Nu(t)?t:[]}function uo(t){return"function"==typeof t?t:Ja}function ao(t,e){return Mu(t)?t:si(t,e)?[t]:ki(sa(t))}var co=Nr;function so(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:Vr(t,e,n)}var fo=He||function(t){return Vt.clearTimeout(t)};function lo(t,e){if(e)return t.slice();var n=t.length,r=qt?qt(n):new t.constructor(n);return t.copy(r),r}function po(t){var e=new t.constructor(t.byteLength);return new Lt(e).set(new Lt(t)),e}function ho(t,e){var n=e?po(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function vo(t,e){if(t!==e){var n=void 0!==t,r=null===t,o=t==t,i=Xu(t),u=void 0!==e,a=null===e,c=e==e,s=Xu(e);if(!a&&!s&&!i&&t>e||i&&u&&c&&!a&&!s||r&&u&&c||!n&&c||!o)return 1;if(!r&&!i&&!s&&t<e||s&&n&&o&&!r&&!i||a&&n&&o||!u&&o||!c)return-1}return 0}function go(t,e,n,o){for(var i=-1,u=t.length,a=n.length,c=-1,s=e.length,f=an(u-a,0),d=r(s+f),l=!o;++c<s;)d[c]=e[c];for(;++i<a;)(l||i<u)&&(d[n[i]]=t[i]);for(;f--;)d[c++]=t[i++];return d}function yo(t,e,n,o){for(var i=-1,u=t.length,a=-1,c=n.length,s=-1,f=e.length,d=an(u-c,0),l=r(d+f),p=!o;++i<d;)l[i]=t[i];for(var h=i;++s<f;)l[h+s]=e[s];for(;++a<c;)(p||i<u)&&(l[h+n[a]]=t[i++]);return l}function mo(t,e){var n=-1,o=t.length;for(e||(e=r(o));++n<o;)e[n]=t[n];return e}function _o(t,e,n,r){var o=!n;n||(n={});for(var i=-1,u=e.length;++i<u;){var a=e[i],c=r?r(n[a],t[a],a,n,t):void 0;void 0===c&&(c=t[a]),o?Jn(n,a,c):$n(n,a,c)}return n}function bo(t,e){return function(n,r){var o=Mu(n)?oe:Zn,i=e?e():{};return o(n,t,Go(r,2),i)}}function wo(t){return Nr((function(e,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,u=o>2?n[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,u&&ci(n[0],n[1],u)&&(i=o<3?void 0:i,o=1),e=ht(e);++r<o;){var a=n[r];a&&t(e,a,r,i)}return e}))}function Oo(t,e){return function(n,r){if(null==n)return n;if(!Ru(n))return t(n,r);for(var o=n.length,i=e?o:-1,u=ht(n);(e?i--:++i<o)&&!1!==r(u[i],i,u););return n}}function jo(t){return function(e,n,r){for(var o=-1,i=ht(e),u=r(e),a=u.length;a--;){var c=u[t?a:++o];if(!1===n(i[c],c,i))break}return e}}function xo(t){return function(e){var n=Ne(e=sa(e))?Ve(e):void 0,r=n?n[0]:e.charAt(0),o=n?so(n,1).join(""):e.slice(1);return r[t]()+o}}function Po(t){return function(e){return pe(Ua(Ba(e).replace(St,"")),t,"")}}function Ao(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Sn(t.prototype),r=t.apply(n,e);return Vu(r)?r:n}}function ko(t){return function(e,n,r){var o=ht(e);if(!Ru(e)){var i=Go(n,3);e=Oa(e),n=function(t){return i(o[t],t,o)}}var u=t(e,n,r);return u>-1?o[i?e[u]:u]:void 0}}function Do(t){return Vo((function(e){var n=e.length,r=n,o=En.prototype.thru;for(t&&e.reverse();r--;){var u=e[r];if("function"!=typeof u)throw new yt(i);if(o&&!a&&"wrapper"==Ko(u))var a=new En([],!0)}for(r=a?r:n;++r<n;){var c=Ko(u=e[r]),s="wrapper"==c?Jo(u):void 0;a=s&&fi(s[0])&&424==s[1]&&!s[4].length&&1==s[9]?a[Ko(s[0])].apply(a,s[3]):1==u.length&&fi(u)?a[c]():a.thru(u)}return function(){var t=arguments,r=t[0];if(a&&1==t.length&&Mu(r))return a.plant(r).value();for(var o=0,i=n?e[o].apply(this,t):r;++o<n;)i=e[o].call(this,i);return i}}))}function To(t,e,n,o,i,u,a,c,s,f){var d=128&e,l=1&e,p=2&e,h=24&e,v=512&e,g=p?void 0:Ao(t);return function y(){for(var m=arguments.length,_=r(m),b=m;b--;)_[b]=arguments[b];if(h)var w=Ho(y),O=Be(_,w);if(o&&(_=go(_,o,i,h)),u&&(_=yo(_,u,a,h)),m-=O,h&&m<f){var j=We(_,w);return zo(t,e,To,y.placeholder,n,_,j,c,s,f-m)}var x=l?n:this,P=p?x[t]:t;return m=_.length,c?_=yi(_,c):v&&m>1&&_.reverse(),d&&s<m&&(_.length=s),this&&this!==Vt&&this instanceof y&&(P=g||Ao(P)),P.apply(x,_)}}function So(t,e){return function(n,r){return function(t,e,n,r){return sr(t,(function(t,o,i){e(r,n(t),o,i)})),r}(n,t,e(r),{})}}function Io(t,e){return function(n,r){var o;if(void 0===n&&void 0===r)return e;if(void 0!==n&&(o=n),void 0!==r){if(void 0===o)return r;"string"==typeof n||"string"==typeof r?(n=Gr(n),r=Gr(r)):(n=Hr(n),r=Hr(r)),o=t(n,r)}return o}}function Eo(t){return Vo((function(e){return e=de(e,Te(Go())),Nr((function(n){var r=this;return t(e,(function(t){return re(t,r,n)}))}))}))}function Co(t,e){var n=(e=void 0===e?" ":Gr(e)).length;if(n<2)return n?Rr(e,t):e;var r=Rr(e,Xe(t/$e(e)));return Ne(e)?so(Ve(r),0,t).join(""):r.slice(0,t)}function Bo(t){return function(e,n,o){return o&&"number"!=typeof o&&ci(e,n,o)&&(n=o=void 0),e=oa(e),void 0===n?(n=e,e=0):n=oa(n),function(t,e,n,o){for(var i=-1,u=an(Xe((e-t)/(n||1)),0),a=r(u);u--;)a[o?u:++i]=t,t+=n;return a}(e,n,o=void 0===o?e<n?1:-1:oa(o),t)}}function Mo(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=aa(e),n=aa(n)),t(e,n)}}function zo(t,e,n,r,o,i,u,a,c,s){var f=8&e;e|=f?32:64,4&(e&=~(f?64:32))||(e&=-4);var d=[t,e,o,f?i:void 0,f?u:void 0,f?void 0:i,f?void 0:u,a,c,s],l=n.apply(void 0,d);return fi(t)&&_i(l,d),l.placeholder=r,Oi(l,t,e)}function Ro(t){var e=pt[t];return function(t,n){if(t=aa(t),(n=null==n?0:cn(ia(n),292))&&rn(t)){var r=(sa(t)+"e").split("e");return+((r=(sa(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var No=gn&&1/Ue(new gn([,-0]))[1]==1/0?function(t){return new gn(t)}:Xa;function Fo(t){return function(e){var n=ri(e);return n==v?Fe(e):n==_?qe(e):function(t,e){return de(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Lo(t,e,n,o,a,c,s,f){var d=2&e;if(!d&&"function"!=typeof t)throw new yt(i);var l=o?o.length:0;if(l||(e&=-97,o=a=void 0),s=void 0===s?s:an(ia(s),0),f=void 0===f?f:ia(f),l-=a?a.length:0,64&e){var p=o,h=a;o=a=void 0}var v=d?void 0:Jo(t),g=[t,e,n,o,a,p,h,c,s,f];if(v&&function(t,e){var n=t[1],r=e[1],o=n|r,i=o<131,a=128==r&&8==n||128==r&&256==n&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!i&&!a)return t;1&r&&(t[2]=e[2],o|=1&n?0:4);var c=e[3];if(c){var s=t[3];t[3]=s?go(s,c,e[4]):c,t[4]=s?We(t[3],u):e[4]}(c=e[5])&&(s=t[5],t[5]=s?yo(s,c,e[6]):c,t[6]=s?We(t[5],u):e[6]),(c=e[7])&&(t[7]=c),128&r&&(t[8]=null==t[8]?e[8]:cn(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=o}(g,v),t=g[0],e=g[1],n=g[2],o=g[3],a=g[4],!(f=g[9]=void 0===g[9]?d?0:t.length:an(g[9]-l,0))&&24&e&&(e&=-25),e&&1!=e)y=8==e||16==e?function(t,e,n){var o=Ao(t);return function i(){for(var u=arguments.length,a=r(u),c=u,s=Ho(i);c--;)a[c]=arguments[c];var f=u<3&&a[0]!==s&&a[u-1]!==s?[]:We(a,s);if((u-=f.length)<n)return zo(t,e,To,i.placeholder,void 0,a,f,void 0,void 0,n-u);var d=this&&this!==Vt&&this instanceof i?o:t;return re(d,this,a)}}(t,e,f):32!=e&&33!=e||a.length?To.apply(void 0,g):function(t,e,n,o){var i=1&e,u=Ao(t);return function e(){for(var a=-1,c=arguments.length,s=-1,f=o.length,d=r(f+c),l=this&&this!==Vt&&this instanceof e?u:t;++s<f;)d[s]=o[s];for(;c--;)d[s++]=arguments[++a];return re(l,i?n:this,d)}}(t,e,n,o);else var y=function(t,e,n){var r=1&e,o=Ao(t);return function e(){var i=this&&this!==Vt&&this instanceof e?o:t;return i.apply(r?n:this,arguments)}}(t,e,n);return Oi((v?Ur:_i)(y,g),t,e)}function Wo(t,e,n,r){return void 0===t||Iu(t,bt[n])&&!jt.call(r,n)?e:t}function Uo(t,e,n,r,o,i){return Vu(t)&&Vu(e)&&(i.set(e,t),Sr(t,e,void 0,Uo,i),i.delete(e)),t}function qo(t){return Ku(t)?void 0:t}function $o(t,e,n,r,o,i){var u=1&n,a=t.length,c=e.length;if(a!=c&&!(u&&c>a))return!1;var s=i.get(t),f=i.get(e);if(s&&f)return s==e&&f==t;var d=-1,l=!0,p=2&n?new Rn:void 0;for(i.set(t,e),i.set(e,t);++d<a;){var h=t[d],v=e[d];if(r)var g=u?r(v,h,d,e,t,i):r(h,v,d,t,e,i);if(void 0!==g){if(g)continue;l=!1;break}if(p){if(!ve(e,(function(t,e){if(!Ie(p,e)&&(h===t||o(h,t,n,r,i)))return p.push(e)}))){l=!1;break}}else if(h!==v&&!o(h,v,n,r,i)){l=!1;break}}return i.delete(t),i.delete(e),l}function Vo(t){return wi(vi(t,void 0,zi),t+"")}function Zo(t){return pr(t,Oa,ei)}function Qo(t){return pr(t,ja,ni)}var Jo=_n?function(t){return _n.get(t)}:Xa;function Ko(t){for(var e=t.name+"",n=bn[e],r=jt.call(bn,e)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==t)return o.name}return e}function Ho(t){return(jt.call(Tn,"placeholder")?Tn:t).placeholder}function Go(){var t=Tn.iteratee||Ka;return t=t===Ka?xr:t,arguments.length?t(arguments[0],arguments[1]):t}function Yo(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Xo(t){for(var e=Oa(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,pi(o)]}return e}function ti(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return jr(n)?n:void 0}var ei=en?function(t){return null==t?[]:(t=ht(t),ce(en(t),(function(e){return Qt.call(t,e)})))}:uc,ni=en?function(t){for(var e=[];t;)le(e,ei(t)),t=$t(t);return e}:uc,ri=hr;function oi(t,e,n){for(var r=-1,o=(e=ao(e,t)).length,i=!1;++r<o;){var u=Di(e[r]);if(!(i=null!=t&&n(t,u)))break;t=t[u]}return i||++r!=o?i:!!(o=null==t?0:t.length)&&$u(o)&&ai(u,o)&&(Mu(t)||Bu(t))}function ii(t){return"function"!=typeof t.constructor||li(t)?{}:Sn($t(t))}function ui(t){return Mu(t)||Bu(t)||!!(Ht&&t&&t[Ht])}function ai(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&ct.test(t))&&t>-1&&t%1==0&&t<e}function ci(t,e,n){if(!Vu(n))return!1;var r=typeof e;return!!("number"==r?Ru(n)&&ai(e,n.length):"string"==r&&e in n)&&Iu(n[e],t)}function si(t,e){if(Mu(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Xu(t))||$.test(t)||!q.test(t)||null!=e&&t in ht(e)}function fi(t){var e=Ko(t),n=Tn[e];if("function"!=typeof n||!(e in Cn.prototype))return!1;if(t===n)return!0;var r=Jo(n);return!!r&&t===r[0]}(pn&&ri(new pn(new ArrayBuffer(1)))!=x||hn&&ri(new hn)!=v||vn&&"[object Promise]"!=ri(vn.resolve())||gn&&ri(new gn)!=_||yn&&ri(new yn)!=O)&&(ri=function(t){var e=hr(t),n=e==y?t.constructor:void 0,r=n?Ti(n):"";if(r)switch(r){case wn:return x;case On:return v;case jn:return"[object Promise]";case xn:return _;case Pn:return O}return e});var di=wt?Uu:ac;function li(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||bt)}function pi(t){return t==t&&!Vu(t)}function hi(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in ht(n))}}function vi(t,e,n){return e=an(void 0===e?t.length-1:e,0),function(){for(var o=arguments,i=-1,u=an(o.length-e,0),a=r(u);++i<u;)a[i]=o[e+i];i=-1;for(var c=r(e+1);++i<e;)c[i]=o[i];return c[e]=n(a),re(t,this,c)}}function gi(t,e){return e.length<2?t:lr(t,Vr(e,0,-1))}function yi(t,e){for(var n=t.length,r=cn(e.length,n),o=mo(t);r--;){var i=e[r];t[r]=ai(i,n)?o[i]:void 0}return t}function mi(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var _i=ji(Ur),bi=Ye||function(t,e){return Vt.setTimeout(t,e)},wi=ji(qr);function Oi(t,e,n){var r=e+"";return wi(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(H,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return ie(a,(function(n){var r="_."+n[0];e&n[1]&&!se(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(G);return e?e[1].split(Y):[]}(r),n)))}function ji(t){var e=0,n=0;return function(){var r=sn(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function xi(t,e){var n=-1,r=t.length,o=r-1;for(e=void 0===e?r:e;++n<e;){var i=zr(n,o),u=t[i];t[i]=t[n],t[n]=u}return t.length=e,t}var Pi,Ai,ki=(Pi=Pu((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(V,(function(t,n,r,o){e.push(r?o.replace(et,"$1"):n||t)})),e}),(function(t){return 500===Ai.size&&Ai.clear(),t})),Ai=Pi.cache,Pi);function Di(t){if("string"==typeof t||Xu(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Ti(t){if(null!=t){try{return Ot.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Si(t){if(t instanceof Cn)return t.clone();var e=new En(t.__wrapped__,t.__chain__);return e.__actions__=mo(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Ii=Nr((function(t,e){return Nu(t)?tr(t,ur(e,1,Nu,!0)):[]})),Ei=Nr((function(t,e){var n=Wi(e);return Nu(n)&&(n=void 0),Nu(t)?tr(t,ur(e,1,Nu,!0),Go(n,2)):[]})),Ci=Nr((function(t,e){var n=Wi(e);return Nu(n)&&(n=void 0),Nu(t)?tr(t,ur(e,1,Nu,!0),void 0,n):[]}));function Bi(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:ia(n);return o<0&&(o=an(r+o,0)),me(t,Go(e,3),o)}function Mi(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r-1;return void 0!==n&&(o=ia(n),o=n<0?an(r+o,0):cn(o,r-1)),me(t,Go(e,3),o,!0)}function zi(t){return null!=t&&t.length?ur(t,1):[]}function Ri(t){return t&&t.length?t[0]:void 0}var Ni=Nr((function(t){var e=de(t,io);return e.length&&e[0]===t[0]?mr(e):[]})),Fi=Nr((function(t){var e=Wi(t),n=de(t,io);return e===Wi(n)?e=void 0:n.pop(),n.length&&n[0]===t[0]?mr(n,Go(e,2)):[]})),Li=Nr((function(t){var e=Wi(t),n=de(t,io);return(e="function"==typeof e?e:void 0)&&n.pop(),n.length&&n[0]===t[0]?mr(n,void 0,e):[]}));function Wi(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}var Ui=Nr(qi);function qi(t,e){return t&&t.length&&e&&e.length?Br(t,e):t}var $i=Vo((function(t,e){var n=null==t?0:t.length,r=Kn(t,e);return Mr(t,de(e,(function(t){return ai(t,n)?+t:t})).sort(vo)),r}));function Vi(t){return null==t?t:ln.call(t)}var Zi=Nr((function(t){return Yr(ur(t,1,Nu,!0))})),Qi=Nr((function(t){var e=Wi(t);return Nu(e)&&(e=void 0),Yr(ur(t,1,Nu,!0),Go(e,2))})),Ji=Nr((function(t){var e=Wi(t);return e="function"==typeof e?e:void 0,Yr(ur(t,1,Nu,!0),void 0,e)}));function Ki(t){if(!t||!t.length)return[];var e=0;return t=ce(t,(function(t){if(Nu(t))return e=an(t.length,e),!0})),ke(e,(function(e){return de(t,je(e))}))}function Hi(t,e){if(!t||!t.length)return[];var n=Ki(t);return null==e?n:de(n,(function(t){return re(e,void 0,t)}))}var Gi=Nr((function(t,e){return Nu(t)?tr(t,e):[]})),Yi=Nr((function(t){return ro(ce(t,Nu))})),Xi=Nr((function(t){var e=Wi(t);return Nu(e)&&(e=void 0),ro(ce(t,Nu),Go(e,2))})),tu=Nr((function(t){var e=Wi(t);return e="function"==typeof e?e:void 0,ro(ce(t,Nu),void 0,e)})),eu=Nr(Ki),nu=Nr((function(t){var e=t.length,n=e>1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,Hi(t,n)}));function ru(t){var e=Tn(t);return e.__chain__=!0,e}function ou(t,e){return e(t)}var iu=Vo((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(e){return Kn(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Cn&&ai(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:ou,args:[o],thisArg:void 0}),new En(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(o)})),uu=bo((function(t,e,n){jt.call(t,n)?++t[n]:Jn(t,n,1)})),au=ko(Bi),cu=ko(Mi);function su(t,e){return(Mu(t)?ie:er)(t,Go(e,3))}function fu(t,e){return(Mu(t)?ue:nr)(t,Go(e,3))}var du=bo((function(t,e,n){jt.call(t,n)?t[n].push(e):Jn(t,n,[e])})),lu=Nr((function(t,e,n){var o=-1,i="function"==typeof e,u=Ru(t)?r(t.length):[];return er(t,(function(t){u[++o]=i?re(e,t,n):_r(t,e,n)})),u})),pu=bo((function(t,e,n){Jn(t,n,e)}));function hu(t,e){return(Mu(t)?de:kr)(t,Go(e,3))}var vu=bo((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),gu=Nr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&ci(t,e[0],e[1])?e=[]:n>2&&ci(e[0],e[1],e[2])&&(e=[e[0]]),Er(t,ur(e,1),[])})),yu=Ge||function(){return Vt.Date.now()};function mu(t,e,n){return e=n?void 0:e,Lo(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function _u(t,e){var n;if("function"!=typeof e)throw new yt(i);return t=ia(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}var bu=Nr((function(t,e,n){var r=1;if(n.length){var o=We(n,Ho(bu));r|=32}return Lo(t,r,e,n,o)})),wu=Nr((function(t,e,n){var r=3;if(n.length){var o=We(n,Ho(wu));r|=32}return Lo(e,r,t,n,o)}));function Ou(t,e,n){var r,o,u,a,c,s,f=0,d=!1,l=!1,p=!0;if("function"!=typeof t)throw new yt(i);function h(e){var n=r,i=o;return r=o=void 0,f=e,a=t.apply(i,n)}function v(t){return f=t,c=bi(y,e),d?h(t):a}function g(t){var n=t-s;return void 0===s||n>=e||n<0||l&&t-f>=u}function y(){var t=yu();if(g(t))return m(t);c=bi(y,function(t){var n=e-(t-s);return l?cn(n,u-(t-f)):n}(t))}function m(t){return c=void 0,p&&r?h(t):(r=o=void 0,a)}function _(){var t=yu(),n=g(t);if(r=arguments,o=this,s=t,n){if(void 0===c)return v(s);if(l)return fo(c),c=bi(y,e),h(s)}return void 0===c&&(c=bi(y,e)),a}return e=aa(e)||0,Vu(n)&&(d=!!n.leading,u=(l="maxWait"in n)?an(aa(n.maxWait)||0,e):u,p="trailing"in n?!!n.trailing:p),_.cancel=function(){void 0!==c&&fo(c),f=0,r=s=o=c=void 0},_.flush=function(){return void 0===c?a:m(yu())},_}var ju=Nr((function(t,e){return Xn(t,1,e)})),xu=Nr((function(t,e,n){return Xn(t,aa(e)||0,n)}));function Pu(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new yt(i);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var u=t.apply(this,r);return n.cache=i.set(o,u)||i,u};return n.cache=new(Pu.Cache||zn),n}function Au(t){if("function"!=typeof t)throw new yt(i);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Pu.Cache=zn;var ku=co((function(t,e){var n=(e=1==e.length&&Mu(e[0])?de(e[0],Te(Go())):de(ur(e,1),Te(Go()))).length;return Nr((function(r){for(var o=-1,i=cn(r.length,n);++o<i;)r[o]=e[o].call(this,r[o]);return re(t,this,r)}))})),Du=Nr((function(t,e){return Lo(t,32,void 0,e,We(e,Ho(Du)))})),Tu=Nr((function(t,e){return Lo(t,64,void 0,e,We(e,Ho(Tu)))})),Su=Vo((function(t,e){return Lo(t,256,void 0,void 0,void 0,e)}));function Iu(t,e){return t===e||t!=t&&e!=e}var Eu=Mo(vr),Cu=Mo((function(t,e){return t>=e})),Bu=br(function(){return arguments}())?br:function(t){return Zu(t)&&jt.call(t,"callee")&&!Qt.call(t,"callee")},Mu=r.isArray,zu=Gt?Te(Gt):function(t){return Zu(t)&&hr(t)==j};function Ru(t){return null!=t&&$u(t.length)&&!Uu(t)}function Nu(t){return Zu(t)&&Ru(t)}var Fu=nn||ac,Lu=Yt?Te(Yt):function(t){return Zu(t)&&hr(t)==d};function Wu(t){if(!Zu(t))return!1;var e=hr(t);return e==l||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Ku(t)}function Uu(t){if(!Vu(t))return!1;var e=hr(t);return e==p||e==h||"[object AsyncFunction]"==e||"[object Proxy]"==e}function qu(t){return"number"==typeof t&&t==ia(t)}function $u(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Vu(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Zu(t){return null!=t&&"object"==typeof t}var Qu=Xt?Te(Xt):function(t){return Zu(t)&&ri(t)==v};function Ju(t){return"number"==typeof t||Zu(t)&&hr(t)==g}function Ku(t){if(!Zu(t)||hr(t)!=y)return!1;var e=$t(t);if(null===e)return!0;var n=jt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ot.call(n)==kt}var Hu=te?Te(te):function(t){return Zu(t)&&hr(t)==m},Gu=ee?Te(ee):function(t){return Zu(t)&&ri(t)==_};function Yu(t){return"string"==typeof t||!Mu(t)&&Zu(t)&&hr(t)==b}function Xu(t){return"symbol"==typeof t||Zu(t)&&hr(t)==w}var ta=ne?Te(ne):function(t){return Zu(t)&&$u(t.length)&&!!Nt[hr(t)]},ea=Mo(Ar),na=Mo((function(t,e){return t<=e}));function ra(t){if(!t)return[];if(Ru(t))return Yu(t)?Ve(t):mo(t);if(ge&&t[ge])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[ge]());var e=ri(t);return(e==v?Fe:e==_?Ue:Ia)(t)}function oa(t){return t?(t=aa(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ia(t){var e=oa(t),n=e%1;return e==e?n?e-n:e:0}function ua(t){return t?Hn(ia(t),0,4294967295):0}function aa(t){if("number"==typeof t)return t;if(Xu(t))return NaN;if(Vu(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Vu(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=De(t);var n=it.test(t);return n||at.test(t)?Ut(t.slice(2),n?2:8):ot.test(t)?NaN:+t}function ca(t){return _o(t,ja(t))}function sa(t){return null==t?"":Gr(t)}var fa=wo((function(t,e){if(li(e)||Ru(e))_o(e,Oa(e),t);else for(var n in e)jt.call(e,n)&&$n(t,n,e[n])})),da=wo((function(t,e){_o(e,ja(e),t)})),la=wo((function(t,e,n,r){_o(e,ja(e),t,r)})),pa=wo((function(t,e,n,r){_o(e,Oa(e),t,r)})),ha=Vo(Kn),va=Nr((function(t,e){t=ht(t);var n=-1,r=e.length,o=r>2?e[2]:void 0;for(o&&ci(e[0],e[1],o)&&(r=1);++n<r;)for(var i=e[n],u=ja(i),a=-1,c=u.length;++a<c;){var s=u[a],f=t[s];(void 0===f||Iu(f,bt[s])&&!jt.call(t,s))&&(t[s]=i[s])}return t})),ga=Nr((function(t){return t.push(void 0,Uo),re(Pa,void 0,t)}));function ya(t,e,n){var r=null==t?void 0:lr(t,e);return void 0===r?n:r}function ma(t,e){return null!=t&&oi(t,e,yr)}var _a=So((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=At.call(e)),t[e]=n}),Va(Ja)),ba=So((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=At.call(e)),jt.call(t,e)?t[e].push(n):t[e]=[n]}),Go),wa=Nr(_r);function Oa(t){return Ru(t)?Fn(t):Pr(t)}function ja(t){return Ru(t)?Fn(t,!0):function(t){if(!Vu(t))return function(t){var e=[];if(null!=t)for(var n in ht(t))e.push(n);return e}(t);var e=li(t),n=[];for(var r in t)("constructor"!=r||!e&&jt.call(t,r))&&n.push(r);return n}(t)}var xa=wo((function(t,e,n){Sr(t,e,n)})),Pa=wo((function(t,e,n,r){Sr(t,e,n,r)})),Aa=Vo((function(t,e){var n={};if(null==t)return n;var r=!1;e=de(e,(function(e){return e=ao(e,t),r||(r=e.length>1),e})),_o(t,Qo(t),n),r&&(n=Gn(n,7,qo));for(var o=e.length;o--;)Xr(n,e[o]);return n})),ka=Vo((function(t,e){return null==t?{}:function(t,e){return Cr(t,e,(function(e,n){return ma(t,n)}))}(t,e)}));function Da(t,e){if(null==t)return{};var n=de(Qo(t),(function(t){return[t]}));return e=Go(e),Cr(t,n,(function(t,n){return e(t,n[0])}))}var Ta=Fo(Oa),Sa=Fo(ja);function Ia(t){return null==t?[]:Se(t,Oa(t))}var Ea=Po((function(t,e,n){return e=e.toLowerCase(),t+(n?Ca(e):e)}));function Ca(t){return Wa(sa(t).toLowerCase())}function Ba(t){return(t=sa(t))&&t.replace(st,Me).replace(It,"")}var Ma=Po((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),za=Po((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Ra=xo("toLowerCase"),Na=Po((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),Fa=Po((function(t,e,n){return t+(n?" ":"")+Wa(e)})),La=Po((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Wa=xo("toUpperCase");function Ua(t,e,n){return t=sa(t),void 0===(e=n?void 0:e)?function(t){return Mt.test(t)}(t)?function(t){return t.match(Ct)||[]}(t):function(t){return t.match(X)||[]}(t):t.match(e)||[]}var qa=Nr((function(t,e){try{return re(t,void 0,e)}catch(t){return Wu(t)?t:new K(t)}})),$a=Vo((function(t,e){return ie(e,(function(e){e=Di(e),Jn(t,e,bu(t[e],t))})),t}));function Va(t){return function(){return t}}var Za=Do(),Qa=Do(!0);function Ja(t){return t}function Ka(t){return xr("function"==typeof t?t:Gn(t,1))}var Ha=Nr((function(t,e){return function(n){return _r(n,t,e)}})),Ga=Nr((function(t,e){return function(n){return _r(t,n,e)}}));function Ya(t,e,n){var r=Oa(e),o=dr(e,r);null!=n||Vu(e)&&(o.length||!r.length)||(n=e,e=t,t=this,o=dr(e,Oa(e)));var i=!(Vu(n)&&"chain"in n&&!n.chain),u=Uu(t);return ie(o,(function(n){var r=e[n];t[n]=r,u&&(t.prototype[n]=function(){var e=this.__chain__;if(i||e){var n=t(this.__wrapped__),o=n.__actions__=mo(this.__actions__);return o.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,le([this.value()],arguments))})})),t}function Xa(){}var tc=Eo(de),ec=Eo(ae),nc=Eo(ve);function rc(t){return si(t)?je(Di(t)):function(t){return function(e){return lr(e,t)}}(t)}var oc=Bo(),ic=Bo(!0);function uc(){return[]}function ac(){return!1}var cc,sc=Io((function(t,e){return t+e}),0),fc=Ro("ceil"),dc=Io((function(t,e){return t/e}),1),lc=Ro("floor"),pc=Io((function(t,e){return t*e}),1),hc=Ro("round"),vc=Io((function(t,e){return t-e}),0);return Tn.after=function(t,e){if("function"!=typeof e)throw new yt(i);return t=ia(t),function(){if(--t<1)return e.apply(this,arguments)}},Tn.ary=mu,Tn.assign=fa,Tn.assignIn=da,Tn.assignInWith=la,Tn.assignWith=pa,Tn.at=ha,Tn.before=_u,Tn.bind=bu,Tn.bindAll=$a,Tn.bindKey=wu,Tn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Mu(t)?t:[t]},Tn.chain=ru,Tn.chunk=function(t,e,n){e=(n?ci(t,e,n):void 0===e)?1:an(ia(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var i=0,u=0,a=r(Xe(o/e));i<o;)a[u++]=Vr(t,i,i+=e);return a},Tn.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,o=[];++e<n;){var i=t[e];i&&(o[r++]=i)}return o},Tn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=r(t-1),n=arguments[0],o=t;o--;)e[o-1]=arguments[o];return le(Mu(n)?mo(n):[n],ur(e,1))},Tn.cond=function(t){var e=null==t?0:t.length,n=Go();return t=e?de(t,(function(t){if("function"!=typeof t[1])throw new yt(i);return[n(t[0]),t[1]]})):[],Nr((function(n){for(var r=-1;++r<e;){var o=t[r];if(re(o[0],this,n))return re(o[1],this,n)}}))},Tn.conforms=function(t){return function(t){var e=Oa(t);return function(n){return Yn(n,t,e)}}(Gn(t,1))},Tn.constant=Va,Tn.countBy=uu,Tn.create=function(t,e){var n=Sn(t);return null==e?n:Qn(n,e)},Tn.curry=function t(e,n,r){var o=Lo(e,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return o.placeholder=t.placeholder,o},Tn.curryRight=function t(e,n,r){var o=Lo(e,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return o.placeholder=t.placeholder,o},Tn.debounce=Ou,Tn.defaults=va,Tn.defaultsDeep=ga,Tn.defer=ju,Tn.delay=xu,Tn.difference=Ii,Tn.differenceBy=Ei,Tn.differenceWith=Ci,Tn.drop=function(t,e,n){var r=null==t?0:t.length;return r?Vr(t,(e=n||void 0===e?1:ia(e))<0?0:e,r):[]},Tn.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?Vr(t,0,(e=r-(e=n||void 0===e?1:ia(e)))<0?0:e):[]},Tn.dropRightWhile=function(t,e){return t&&t.length?eo(t,Go(e,3),!0,!0):[]},Tn.dropWhile=function(t,e){return t&&t.length?eo(t,Go(e,3),!0):[]},Tn.fill=function(t,e,n,r){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&ci(t,e,n)&&(n=0,r=o),function(t,e,n,r){var o=t.length;for((n=ia(n))<0&&(n=-n>o?0:o+n),(r=void 0===r||r>o?o:ia(r))<0&&(r+=o),r=n>r?0:ua(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},Tn.filter=function(t,e){return(Mu(t)?ce:ir)(t,Go(e,3))},Tn.flatMap=function(t,e){return ur(hu(t,e),1)},Tn.flatMapDeep=function(t,e){return ur(hu(t,e),1/0)},Tn.flatMapDepth=function(t,e,n){return n=void 0===n?1:ia(n),ur(hu(t,e),n)},Tn.flatten=zi,Tn.flattenDeep=function(t){return null!=t&&t.length?ur(t,1/0):[]},Tn.flattenDepth=function(t,e){return null!=t&&t.length?ur(t,e=void 0===e?1:ia(e)):[]},Tn.flip=function(t){return Lo(t,512)},Tn.flow=Za,Tn.flowRight=Qa,Tn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var o=t[e];r[o[0]]=o[1]}return r},Tn.functions=function(t){return null==t?[]:dr(t,Oa(t))},Tn.functionsIn=function(t){return null==t?[]:dr(t,ja(t))},Tn.groupBy=du,Tn.initial=function(t){return null!=t&&t.length?Vr(t,0,-1):[]},Tn.intersection=Ni,Tn.intersectionBy=Fi,Tn.intersectionWith=Li,Tn.invert=_a,Tn.invertBy=ba,Tn.invokeMap=lu,Tn.iteratee=Ka,Tn.keyBy=pu,Tn.keys=Oa,Tn.keysIn=ja,Tn.map=hu,Tn.mapKeys=function(t,e){var n={};return e=Go(e,3),sr(t,(function(t,r,o){Jn(n,e(t,r,o),t)})),n},Tn.mapValues=function(t,e){var n={};return e=Go(e,3),sr(t,(function(t,r,o){Jn(n,r,e(t,r,o))})),n},Tn.matches=function(t){return Dr(Gn(t,1))},Tn.matchesProperty=function(t,e){return Tr(t,Gn(e,1))},Tn.memoize=Pu,Tn.merge=xa,Tn.mergeWith=Pa,Tn.method=Ha,Tn.methodOf=Ga,Tn.mixin=Ya,Tn.negate=Au,Tn.nthArg=function(t){return t=ia(t),Nr((function(e){return Ir(e,t)}))},Tn.omit=Aa,Tn.omitBy=function(t,e){return Da(t,Au(Go(e)))},Tn.once=function(t){return _u(2,t)},Tn.orderBy=function(t,e,n,r){return null==t?[]:(Mu(e)||(e=null==e?[]:[e]),Mu(n=r?void 0:n)||(n=null==n?[]:[n]),Er(t,e,n))},Tn.over=tc,Tn.overArgs=ku,Tn.overEvery=ec,Tn.overSome=nc,Tn.partial=Du,Tn.partialRight=Tu,Tn.partition=vu,Tn.pick=ka,Tn.pickBy=Da,Tn.property=rc,Tn.propertyOf=function(t){return function(e){return null==t?void 0:lr(t,e)}},Tn.pull=Ui,Tn.pullAll=qi,Tn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Br(t,e,Go(n,2)):t},Tn.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Br(t,e,void 0,n):t},Tn.pullAt=$i,Tn.range=oc,Tn.rangeRight=ic,Tn.rearg=Su,Tn.reject=function(t,e){return(Mu(t)?ce:ir)(t,Au(Go(e,3)))},Tn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,o=[],i=t.length;for(e=Go(e,3);++r<i;){var u=t[r];e(u,r,t)&&(n.push(u),o.push(r))}return Mr(t,o),n},Tn.rest=function(t,e){if("function"!=typeof t)throw new yt(i);return Nr(t,e=void 0===e?e:ia(e))},Tn.reverse=Vi,Tn.sampleSize=function(t,e,n){return e=(n?ci(t,e,n):void 0===e)?1:ia(e),(Mu(t)?Wn:Lr)(t,e)},Tn.set=function(t,e,n){return null==t?t:Wr(t,e,n)},Tn.setWith=function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:Wr(t,e,n,r)},Tn.shuffle=function(t){return(Mu(t)?Un:$r)(t)},Tn.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&ci(t,e,n)?(e=0,n=r):(e=null==e?0:ia(e),n=void 0===n?r:ia(n)),Vr(t,e,n)):[]},Tn.sortBy=gu,Tn.sortedUniq=function(t){return t&&t.length?Kr(t):[]},Tn.sortedUniqBy=function(t,e){return t&&t.length?Kr(t,Go(e,2)):[]},Tn.split=function(t,e,n){return n&&"number"!=typeof n&&ci(t,e,n)&&(e=n=void 0),(n=void 0===n?4294967295:n>>>0)?(t=sa(t))&&("string"==typeof e||null!=e&&!Hu(e))&&!(e=Gr(e))&&Ne(t)?so(Ve(t),0,n):t.split(e,n):[]},Tn.spread=function(t,e){if("function"!=typeof t)throw new yt(i);return e=null==e?0:an(ia(e),0),Nr((function(n){var r=n[e],o=so(n,0,e);return r&&le(o,r),re(t,this,o)}))},Tn.tail=function(t){var e=null==t?0:t.length;return e?Vr(t,1,e):[]},Tn.take=function(t,e,n){return t&&t.length?Vr(t,0,(e=n||void 0===e?1:ia(e))<0?0:e):[]},Tn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?Vr(t,(e=r-(e=n||void 0===e?1:ia(e)))<0?0:e,r):[]},Tn.takeRightWhile=function(t,e){return t&&t.length?eo(t,Go(e,3),!1,!0):[]},Tn.takeWhile=function(t,e){return t&&t.length?eo(t,Go(e,3)):[]},Tn.tap=function(t,e){return e(t),t},Tn.throttle=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new yt(i);return Vu(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ou(t,e,{leading:r,maxWait:e,trailing:o})},Tn.thru=ou,Tn.toArray=ra,Tn.toPairs=Ta,Tn.toPairsIn=Sa,Tn.toPath=function(t){return Mu(t)?de(t,Di):Xu(t)?[t]:mo(ki(sa(t)))},Tn.toPlainObject=ca,Tn.transform=function(t,e,n){var r=Mu(t),o=r||Fu(t)||ta(t);if(e=Go(e,4),null==n){var i=t&&t.constructor;n=o?r?new i:[]:Vu(t)&&Uu(i)?Sn($t(t)):{}}return(o?ie:sr)(t,(function(t,r,o){return e(n,t,r,o)})),n},Tn.unary=function(t){return mu(t,1)},Tn.union=Zi,Tn.unionBy=Qi,Tn.unionWith=Ji,Tn.uniq=function(t){return t&&t.length?Yr(t):[]},Tn.uniqBy=function(t,e){return t&&t.length?Yr(t,Go(e,2)):[]},Tn.uniqWith=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?Yr(t,void 0,e):[]},Tn.unset=function(t,e){return null==t||Xr(t,e)},Tn.unzip=Ki,Tn.unzipWith=Hi,Tn.update=function(t,e,n){return null==t?t:to(t,e,uo(n))},Tn.updateWith=function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:to(t,e,uo(n),r)},Tn.values=Ia,Tn.valuesIn=function(t){return null==t?[]:Se(t,ja(t))},Tn.without=Gi,Tn.words=Ua,Tn.wrap=function(t,e){return Du(uo(e),t)},Tn.xor=Yi,Tn.xorBy=Xi,Tn.xorWith=tu,Tn.zip=eu,Tn.zipObject=function(t,e){return oo(t||[],e||[],$n)},Tn.zipObjectDeep=function(t,e){return oo(t||[],e||[],Wr)},Tn.zipWith=nu,Tn.entries=Ta,Tn.entriesIn=Sa,Tn.extend=da,Tn.extendWith=la,Ya(Tn,Tn),Tn.add=sc,Tn.attempt=qa,Tn.camelCase=Ea,Tn.capitalize=Ca,Tn.ceil=fc,Tn.clamp=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=aa(n))==n?n:0),void 0!==e&&(e=(e=aa(e))==e?e:0),Hn(aa(t),e,n)},Tn.clone=function(t){return Gn(t,4)},Tn.cloneDeep=function(t){return Gn(t,5)},Tn.cloneDeepWith=function(t,e){return Gn(t,5,e="function"==typeof e?e:void 0)},Tn.cloneWith=function(t,e){return Gn(t,4,e="function"==typeof e?e:void 0)},Tn.conformsTo=function(t,e){return null==e||Yn(t,e,Oa(e))},Tn.deburr=Ba,Tn.defaultTo=function(t,e){return null==t||t!=t?e:t},Tn.divide=dc,Tn.endsWith=function(t,e,n){t=sa(t),e=Gr(e);var r=t.length,o=n=void 0===n?r:Hn(ia(n),0,r);return(n-=e.length)>=0&&t.slice(n,o)==e},Tn.eq=Iu,Tn.escape=function(t){return(t=sa(t))&&F.test(t)?t.replace(R,ze):t},Tn.escapeRegExp=function(t){return(t=sa(t))&&Q.test(t)?t.replace(Z,"\\$&"):t},Tn.every=function(t,e,n){var r=Mu(t)?ae:rr;return n&&ci(t,e,n)&&(e=void 0),r(t,Go(e,3))},Tn.find=au,Tn.findIndex=Bi,Tn.findKey=function(t,e){return ye(t,Go(e,3),sr)},Tn.findLast=cu,Tn.findLastIndex=Mi,Tn.findLastKey=function(t,e){return ye(t,Go(e,3),fr)},Tn.floor=lc,Tn.forEach=su,Tn.forEachRight=fu,Tn.forIn=function(t,e){return null==t?t:ar(t,Go(e,3),ja)},Tn.forInRight=function(t,e){return null==t?t:cr(t,Go(e,3),ja)},Tn.forOwn=function(t,e){return t&&sr(t,Go(e,3))},Tn.forOwnRight=function(t,e){return t&&fr(t,Go(e,3))},Tn.get=ya,Tn.gt=Eu,Tn.gte=Cu,Tn.has=function(t,e){return null!=t&&oi(t,e,gr)},Tn.hasIn=ma,Tn.head=Ri,Tn.identity=Ja,Tn.includes=function(t,e,n,r){t=Ru(t)?t:Ia(t),n=n&&!r?ia(n):0;var o=t.length;return n<0&&(n=an(o+n,0)),Yu(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&_e(t,e,n)>-1},Tn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:ia(n);return o<0&&(o=an(r+o,0)),_e(t,e,o)},Tn.inRange=function(t,e,n){return e=oa(e),void 0===n?(n=e,e=0):n=oa(n),function(t,e,n){return t>=cn(e,n)&&t<an(e,n)}(t=aa(t),e,n)},Tn.invoke=wa,Tn.isArguments=Bu,Tn.isArray=Mu,Tn.isArrayBuffer=zu,Tn.isArrayLike=Ru,Tn.isArrayLikeObject=Nu,Tn.isBoolean=function(t){return!0===t||!1===t||Zu(t)&&hr(t)==f},Tn.isBuffer=Fu,Tn.isDate=Lu,Tn.isElement=function(t){return Zu(t)&&1===t.nodeType&&!Ku(t)},Tn.isEmpty=function(t){if(null==t)return!0;if(Ru(t)&&(Mu(t)||"string"==typeof t||"function"==typeof t.splice||Fu(t)||ta(t)||Bu(t)))return!t.length;var e=ri(t);if(e==v||e==_)return!t.size;if(li(t))return!Pr(t).length;for(var n in t)if(jt.call(t,n))return!1;return!0},Tn.isEqual=function(t,e){return wr(t,e)},Tn.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:void 0)?n(t,e):void 0;return void 0===r?wr(t,e,void 0,n):!!r},Tn.isError=Wu,Tn.isFinite=function(t){return"number"==typeof t&&rn(t)},Tn.isFunction=Uu,Tn.isInteger=qu,Tn.isLength=$u,Tn.isMap=Qu,Tn.isMatch=function(t,e){return t===e||Or(t,e,Xo(e))},Tn.isMatchWith=function(t,e,n){return n="function"==typeof n?n:void 0,Or(t,e,Xo(e),n)},Tn.isNaN=function(t){return Ju(t)&&t!=+t},Tn.isNative=function(t){if(di(t))throw new K("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return jr(t)},Tn.isNil=function(t){return null==t},Tn.isNull=function(t){return null===t},Tn.isNumber=Ju,Tn.isObject=Vu,Tn.isObjectLike=Zu,Tn.isPlainObject=Ku,Tn.isRegExp=Hu,Tn.isSafeInteger=function(t){return qu(t)&&t>=-9007199254740991&&t<=9007199254740991},Tn.isSet=Gu,Tn.isString=Yu,Tn.isSymbol=Xu,Tn.isTypedArray=ta,Tn.isUndefined=function(t){return void 0===t},Tn.isWeakMap=function(t){return Zu(t)&&ri(t)==O},Tn.isWeakSet=function(t){return Zu(t)&&"[object WeakSet]"==hr(t)},Tn.join=function(t,e){return null==t?"":on.call(t,e)},Tn.kebabCase=Ma,Tn.last=Wi,Tn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=ia(n))<0?an(r+o,0):cn(o,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,o):me(t,we,o,!0)},Tn.lowerCase=za,Tn.lowerFirst=Ra,Tn.lt=ea,Tn.lte=na,Tn.max=function(t){return t&&t.length?or(t,Ja,vr):void 0},Tn.maxBy=function(t,e){return t&&t.length?or(t,Go(e,2),vr):void 0},Tn.mean=function(t){return Oe(t,Ja)},Tn.meanBy=function(t,e){return Oe(t,Go(e,2))},Tn.min=function(t){return t&&t.length?or(t,Ja,Ar):void 0},Tn.minBy=function(t,e){return t&&t.length?or(t,Go(e,2),Ar):void 0},Tn.stubArray=uc,Tn.stubFalse=ac,Tn.stubObject=function(){return{}},Tn.stubString=function(){return""},Tn.stubTrue=function(){return!0},Tn.multiply=pc,Tn.nth=function(t,e){return t&&t.length?Ir(t,ia(e)):void 0},Tn.noConflict=function(){return Vt._===this&&(Vt._=Dt),this},Tn.noop=Xa,Tn.now=yu,Tn.pad=function(t,e,n){t=sa(t);var r=(e=ia(e))?$e(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return Co(tn(o),n)+t+Co(Xe(o),n)},Tn.padEnd=function(t,e,n){t=sa(t);var r=(e=ia(e))?$e(t):0;return e&&r<e?t+Co(e-r,n):t},Tn.padStart=function(t,e,n){t=sa(t);var r=(e=ia(e))?$e(t):0;return e&&r<e?Co(e-r,n)+t:t},Tn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),fn(sa(t).replace(J,""),e||0)},Tn.random=function(t,e,n){if(n&&"boolean"!=typeof n&&ci(t,e,n)&&(e=n=void 0),void 0===n&&("boolean"==typeof e?(n=e,e=void 0):"boolean"==typeof t&&(n=t,t=void 0)),void 0===t&&void 0===e?(t=0,e=1):(t=oa(t),void 0===e?(e=t,t=0):e=oa(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var o=dn();return cn(t+o*(e-t+Wt("1e-"+((o+"").length-1))),e)}return zr(t,e)},Tn.reduce=function(t,e,n){var r=Mu(t)?pe:Pe,o=arguments.length<3;return r(t,Go(e,4),n,o,er)},Tn.reduceRight=function(t,e,n){var r=Mu(t)?he:Pe,o=arguments.length<3;return r(t,Go(e,4),n,o,nr)},Tn.repeat=function(t,e,n){return e=(n?ci(t,e,n):void 0===e)?1:ia(e),Rr(sa(t),e)},Tn.replace=function(){var t=arguments,e=sa(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Tn.result=function(t,e,n){var r=-1,o=(e=ao(e,t)).length;for(o||(o=1,t=void 0);++r<o;){var i=null==t?void 0:t[Di(e[r])];void 0===i&&(r=o,i=n),t=Uu(i)?i.call(t):i}return t},Tn.round=hc,Tn.runInContext=t,Tn.sample=function(t){return(Mu(t)?Ln:Fr)(t)},Tn.size=function(t){if(null==t)return 0;if(Ru(t))return Yu(t)?$e(t):t.length;var e=ri(t);return e==v||e==_?t.size:Pr(t).length},Tn.snakeCase=Na,Tn.some=function(t,e,n){var r=Mu(t)?ve:Zr;return n&&ci(t,e,n)&&(e=void 0),r(t,Go(e,3))},Tn.sortedIndex=function(t,e){return Qr(t,e)},Tn.sortedIndexBy=function(t,e,n){return Jr(t,e,Go(n,2))},Tn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=Qr(t,e);if(r<n&&Iu(t[r],e))return r}return-1},Tn.sortedLastIndex=function(t,e){return Qr(t,e,!0)},Tn.sortedLastIndexBy=function(t,e,n){return Jr(t,e,Go(n,2),!0)},Tn.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=Qr(t,e,!0)-1;if(Iu(t[n],e))return n}return-1},Tn.startCase=Fa,Tn.startsWith=function(t,e,n){return t=sa(t),n=null==n?0:Hn(ia(n),0,t.length),e=Gr(e),t.slice(n,n+e.length)==e},Tn.subtract=vc,Tn.sum=function(t){return t&&t.length?Ae(t,Ja):0},Tn.sumBy=function(t,e){return t&&t.length?Ae(t,Go(e,2)):0},Tn.template=function(t,e,n){var r=Tn.templateSettings;n&&ci(t,e,n)&&(e=void 0),t=sa(t),e=la({},e,r,Wo);var o,i,u=la({},e.imports,r.imports,Wo),a=Oa(u),c=Se(u,a),s=0,f=e.interpolate||ft,d="__p += '",l=vt((e.escape||ft).source+"|"+f.source+"|"+(f===U?nt:ft).source+"|"+(e.evaluate||ft).source+"|$","g"),p="//# sourceURL="+(jt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Rt+"]")+"\n";t.replace(l,(function(e,n,r,u,a,c){return r||(r=u),d+=t.slice(s,c).replace(dt,Re),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),a&&(i=!0,d+="';\n"+a+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),s=c+e.length,e})),d+="';\n";var h=jt.call(e,"variable")&&e.variable;if(h){if(tt.test(h))throw new K("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(i?d.replace(C,""):d).replace(B,"$1").replace(M,"$1;"),d="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var v=qa((function(){return lt(a,p+"return "+d).apply(void 0,c)}));if(v.source=d,Wu(v))throw v;return v},Tn.times=function(t,e){if((t=ia(t))<1||t>9007199254740991)return[];var n=4294967295,r=cn(t,4294967295);t-=4294967295;for(var o=ke(r,e=Go(e));++n<t;)e(n);return o},Tn.toFinite=oa,Tn.toInteger=ia,Tn.toLength=ua,Tn.toLower=function(t){return sa(t).toLowerCase()},Tn.toNumber=aa,Tn.toSafeInteger=function(t){return t?Hn(ia(t),-9007199254740991,9007199254740991):0===t?t:0},Tn.toString=sa,Tn.toUpper=function(t){return sa(t).toUpperCase()},Tn.trim=function(t,e,n){if((t=sa(t))&&(n||void 0===e))return De(t);if(!t||!(e=Gr(e)))return t;var r=Ve(t),o=Ve(e);return so(r,Ee(r,o),Ce(r,o)+1).join("")},Tn.trimEnd=function(t,e,n){if((t=sa(t))&&(n||void 0===e))return t.slice(0,Ze(t)+1);if(!t||!(e=Gr(e)))return t;var r=Ve(t);return so(r,0,Ce(r,Ve(e))+1).join("")},Tn.trimStart=function(t,e,n){if((t=sa(t))&&(n||void 0===e))return t.replace(J,"");if(!t||!(e=Gr(e)))return t;var r=Ve(t);return so(r,Ee(r,Ve(e))).join("")},Tn.truncate=function(t,e){var n=30,r="...";if(Vu(e)){var o="separator"in e?e.separator:o;n="length"in e?ia(e.length):n,r="omission"in e?Gr(e.omission):r}var i=(t=sa(t)).length;if(Ne(t)){var u=Ve(t);i=u.length}if(n>=i)return t;var a=n-$e(r);if(a<1)return r;var c=u?so(u,0,a).join(""):t.slice(0,a);if(void 0===o)return c+r;if(u&&(a+=c.length-a),Hu(o)){if(t.slice(a).search(o)){var s,f=c;for(o.global||(o=vt(o.source,sa(rt.exec(o))+"g")),o.lastIndex=0;s=o.exec(f);)var d=s.index;c=c.slice(0,void 0===d?a:d)}}else if(t.indexOf(Gr(o),a)!=a){var l=c.lastIndexOf(o);l>-1&&(c=c.slice(0,l))}return c+r},Tn.unescape=function(t){return(t=sa(t))&&N.test(t)?t.replace(z,Qe):t},Tn.uniqueId=function(t){var e=++xt;return sa(t)+e},Tn.upperCase=La,Tn.upperFirst=Wa,Tn.each=su,Tn.eachRight=fu,Tn.first=Ri,Ya(Tn,(cc={},sr(Tn,(function(t,e){jt.call(Tn.prototype,e)||(cc[e]=t)})),cc),{chain:!1}),Tn.VERSION="4.17.21",ie(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Tn[t].placeholder=Tn})),ie(["drop","take"],(function(t,e){Cn.prototype[t]=function(n){n=void 0===n?1:an(ia(n),0);var r=this.__filtered__&&!e?new Cn(this):this.clone();return r.__filtered__?r.__takeCount__=cn(n,r.__takeCount__):r.__views__.push({size:cn(n,4294967295),type:t+(r.__dir__<0?"Right":"")}),r},Cn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),ie(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;Cn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Go(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),ie(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Cn.prototype[t]=function(){return this[n](1).value()[0]}})),ie(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Cn.prototype[t]=function(){return this.__filtered__?new Cn(this):this[n](1)}})),Cn.prototype.compact=function(){return this.filter(Ja)},Cn.prototype.find=function(t){return this.filter(t).head()},Cn.prototype.findLast=function(t){return this.reverse().find(t)},Cn.prototype.invokeMap=Nr((function(t,e){return"function"==typeof t?new Cn(this):this.map((function(n){return _r(n,t,e)}))})),Cn.prototype.reject=function(t){return this.filter(Au(Go(t)))},Cn.prototype.slice=function(t,e){t=ia(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Cn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=ia(e))<0?n.dropRight(-e):n.take(e-t)),n)},Cn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Cn.prototype.toArray=function(){return this.take(4294967295)},sr(Cn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=Tn[r?"take"+("last"==e?"Right":""):e],i=r||/^find/.test(e);o&&(Tn.prototype[e]=function(){var e=this.__wrapped__,u=r?[1]:arguments,a=e instanceof Cn,c=u[0],s=a||Mu(e),f=function(t){var e=o.apply(Tn,le([t],u));return r&&d?e[0]:e};s&&n&&"function"==typeof c&&1!=c.length&&(a=s=!1);var d=this.__chain__,l=!!this.__actions__.length,p=i&&!d,h=a&&!l;if(!i&&s){e=h?e:new Cn(this);var v=t.apply(e,u);return v.__actions__.push({func:ou,args:[f],thisArg:void 0}),new En(v,d)}return p&&h?t.apply(this,u):(v=this.thru(f),p?r?v.value()[0]:v.value():v)})})),ie(["pop","push","shift","sort","splice","unshift"],(function(t){var e=mt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Tn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(Mu(o)?o:[],t)}return this[n]((function(n){return e.apply(Mu(n)?n:[],t)}))}})),sr(Cn.prototype,(function(t,e){var n=Tn[e];if(n){var r=n.name+"";jt.call(bn,r)||(bn[r]=[]),bn[r].push({name:e,func:n})}})),bn[To(void 0,2).name]=[{name:"wrapper",func:void 0}],Cn.prototype.clone=function(){var t=new Cn(this.__wrapped__);return t.__actions__=mo(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=mo(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=mo(this.__views__),t},Cn.prototype.reverse=function(){if(this.__filtered__){var t=new Cn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Cn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Mu(t),r=e<0,o=n?t.length:0,i=function(t,e,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],u=i.size;switch(i.type){case"drop":t+=u;break;case"dropRight":e-=u;break;case"take":e=cn(e,t+u);break;case"takeRight":t=an(t,e-u)}}return{start:t,end:e}}(0,o,this.__views__),u=i.start,a=i.end,c=a-u,s=r?a:u-1,f=this.__iteratees__,d=f.length,l=0,p=cn(c,this.__takeCount__);if(!n||!r&&o==c&&p==c)return no(t,this.__actions__);var h=[];t:for(;c--&&l<p;){for(var v=-1,g=t[s+=e];++v<d;){var y=f[v],m=y.iteratee,_=y.type,b=m(g);if(2==_)g=b;else if(!b){if(1==_)continue t;break t}}h[l++]=g}return h},Tn.prototype.at=iu,Tn.prototype.chain=function(){return ru(this)},Tn.prototype.commit=function(){return new En(this.value(),this.__chain__)},Tn.prototype.next=function(){void 0===this.__values__&&(this.__values__=ra(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},Tn.prototype.plant=function(t){for(var e,n=this;n instanceof In;){var r=Si(n);r.__index__=0,r.__values__=void 0,e?o.__wrapped__=r:e=r;var o=r;n=n.__wrapped__}return o.__wrapped__=t,e},Tn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Cn){var e=t;return this.__actions__.length&&(e=new Cn(this)),(e=e.reverse()).__actions__.push({func:ou,args:[Vi],thisArg:void 0}),new En(e,this.__chain__)}return this.thru(Vi)},Tn.prototype.toJSON=Tn.prototype.valueOf=Tn.prototype.value=function(){return no(this.__wrapped__,this.__actions__)},Tn.prototype.first=Tn.prototype.head,ge&&(Tn.prototype[ge]=function(){return this}),Tn}();Vt._=Je,void 0===(o=function(){return Je}.call(e,n,e,r))||(r.exports=o)}).call(this)}).call(this,n(187),n(23)(t))},21:function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var r={};n.r(r),n.d(r,"find",(function(){return a}));var o={};n.r(o),n.d(o,"isTabbableIndex",(function(){return f})),n.d(o,"find",(function(){return v})),n.d(o,"findPrevious",(function(){return g})),n.d(o,"findNext",(function(){return y}));var i=["[tabindex]","a[href]","button:not([disabled])",'input:not([type="hidden"]):not([disabled])',"select:not([disabled])","textarea:not([disabled])","iframe","object","embed","area[href]","[contenteditable]:not([contenteditable=false])"].join(",");function u(t){return t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0}function a(t){var e=t.querySelectorAll(i);return Array.from(e).filter((function(t){return!(!u(t)||function(t){return"iframe"===t.nodeName.toLowerCase()&&"-1"===t.getAttribute("tabindex")}(t))&&("AREA"!==t.nodeName||function(t){var e=t.closest("map[name]");if(!e)return!1;var n=t.ownerDocument.querySelector('img[usemap="#'+e.name+'"]');return!!n&&u(n)}(t))}))}var c=n(20);function s(t){var e=t.getAttribute("tabindex");return null===e?0:parseInt(e,10)}function f(t){return-1!==s(t)}function d(t,e){return{element:t,index:e}}function l(t){return t.element}function p(t,e){var n=s(t.element),r=s(e.element);return n===r?t.index-e.index:n-r}function h(t){return t.filter(f).map(d).sort(p).map(l).reduce((e={},function(t,n){var r=n.nodeName,o=n.type,i=n.checked,u=n.name;if("INPUT"!==r||"radio"!==o||!u)return t.concat(n);var a=e.hasOwnProperty(u);if(!i&&a)return t;if(a){var s=e[u];t=Object(c.without)(t,s)}return e[u]=n,t.concat(n)}),[]);var e}function v(t){return h(a(t))}function g(t){var e=a(t.ownerDocument.body),n=e.indexOf(t);return e.length=n,Object(c.last)(h(e))}function y(t){var e=a(t.ownerDocument.body),n=e.indexOf(t),r=e.slice(n+1).filter((function(e){return!t.contains(e)}));return Object(c.first)(h(r))}var m={focusable:r,tabbable:o}},22:function(t,e,n){"use strict";t.exports=function(t,e,n,r){t=(t+"").replace(/[^0-9+\-Ee.]/g,"");var o=isFinite(+t)?+t:0,i=isFinite(+e)?Math.abs(e):0,u=void 0===r?",":r,a=void 0===n?".":n,c="";return(c=(i?function(t,e){if(-1===(""+t).indexOf("e"))return+(Math.round(t+"e+"+e)+"e-"+e);var n=(""+t).split("e"),r="";return+n[1]+e>0&&(r="+"),(+(Math.round(+n[0]+"e"+r+(+n[1]+e))+"e-"+e)).toFixed(e)}(o,i).toString():""+Math.round(o)).split("."))[0].length>3&&(c[0]=c[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,u)),(c[1]||"").length<i&&(c[1]=c[1]||"",c[1]+=new Array(i-c[1].length+1).join("0")),c.join(a)}},23:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},24:function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},t.exports.__esModule=!0,t.exports.default=t.exports},3:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return r}));var r=function(e){t(e)}}).call(this,n(1))},4:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return p}));var r=n(10),o=n.n(r),i=n(161),u=n.n(i),a=n(2),c=n.n(a),s=n(21),f=n(5);function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){c()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}window.lodash=_.noConflict();var p=wp.Backbone.View.extend({events:{"keydown input":"handleTabBehavior","keydown textarea":"handleTabBehavior","focus input":"onFocus","focus textarea":"onFocus","focus select":"onFocus","change input":"onChange","change textarea":"onChange","change select":"onChange"},preinitialize:function(){this.focusedEl=null,this.focusedElCaretPos=0,wp.Backbone.View.prototype.preinitialize.apply(this,arguments)},addEvents:function(t){this.delegateEvents(l(l({},this.events),t))},handleTabBehavior:function(t){var e=t.keyCode,n=t.shiftKey,r=t.target;if(9===e){var o=s.a.tabbable.find(this.el);if(o.length){var i,u=o[0],a=o[o.length-1];void 0!==(i=n&&r===u?a:n||r!==a?n?s.a.tabbable.findPrevious(r):s.a.tabbable.findNext(r):u)?(this.focusedEl=i,this.focusedElCartetPos=i.value.length):(this.focusedEl=null,this.focusedElCartetPos=0)}}},onFocus:function(t){this.focusedEl=t.target},onChange:function(t){var e=t.target,n=t.keyCode;if((void 0===u()(n)||9!==n)&&e.selectionStart)try{this.focusedElCaretPos=e.selectionStart}catch(t){this.focusedElCaretPos=e.value.length}},prepare:function(){return this.model?l(l({},this.model.toJSON()),{},{state:this.model.get("state").toJSON()}):{}},render:function(){return wp.Backbone.View.prototype.render.apply(this,arguments),this.initializeSelects(),this.setFocus(),this},initializeSelects:function(){var e=this.el.querySelectorAll(".edd-select-chosen");_.each(e,(function(e){t(e).chosen(l(l({},Object(f.a)(t(e))),{},{width:"100%"}))}))},setFocus:function(){var t=this.el,e=this.focusedEl,n=this.focusedElCaretPos;if(null!=e){var r=null;if(""!==e.id?r="#".concat(e.id):""!==e.name?r='[name="'.concat(e.name,'"]'):e.classList.length>0&&(r=".".concat(o()(e.classList).join("."))),null!==r){var i=t.querySelector(r);if(i){i.focus();try{i.setSelectionRange&&i.setSelectionRange(n,n)}catch(t){}}}}}})}).call(this,n(1))},5:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return c}));var r=n(2),o=n.n(r);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var a={disable_search_threshold:13,search_contains:!0,inherit_select_classes:!0,single_backstroke_delete:!1,placeholder_text_single:edd_vars.one_option,placeholder_text_multiple:edd_vars.one_or_more_option,no_results_text:edd_vars.no_results_text},c=function(e){!e instanceof t&&(e=t(e));var n=a;return e.data("search-type")&&delete n.disable_search_threshold,u(u({},n),{},{width:e.css("width")})}}).call(this,n(1))},6:function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return v}));var r=n(2),o=n.n(r),i=n(11),u=n.n(i),a=n(12),c=n.n(a);function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var d=n(22),l=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u()(this,t);var n=edd_vars,r=n.currency_decimals,o=n.decimal_separator,i=n.thousands_separator;this.config=f({precision:r,decimalSeparator:o,thousandSeparator:i},e)}return c()(t,[{key:"format",value:function(t){var e=t;"number"!=typeof t&&(e=parseFloat(t)),isNaN(e)&&(e=0);var n=this.config,r=n.precision,o=n.decimalSeparator,i=n.thousandSeparator;return d(e,r,o,i)}},{key:"unformat",value:function(t){var e=this.config,n=e.decimalSeparator,r=e.thousandSeparator;"string"!=typeof t&&(t=String(t));var o=t.replace(r,"").replace(n,"."),i=parseFloat(o);return isNaN(i)?0:i}},{key:"absint",value:function(t){var e=this.unformat(t);return e>=0?e:-1*e}}]),t}();function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var v=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u()(this,t);var n=edd_vars,r=n.currency,o=n.currency_sign,i=n.currency_pos,a=n.currency_decimals,c=n.decimal_separator,s=n.thousands_separator;this.config=h({currency:r,currencySymbol:o,currencySymbolPosition:i,precision:a,decimalSeparator:c,thousandSeparator:s},e),this.number=new l(this.config)}return c()(t,[{key:"format",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.config,r=n.currencySymbol,o=n.currencySymbolPosition,i=t<0,u=this.number.format(t),a="";switch(i&&(u=this.number.format(-1*t)),o){case"before":a=r+u;break;case"after":a=u+r}return!0===i&&!1===e&&(a="-".concat(a)),a}},{key:"unformat",value:function(t){var e=this.config.currencySymbol,n=t.replace(e,"");return this.number.unformat(n)}}]),t}()},7:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return r}));var r=n(4).a.extend({initialize:function(){this.$el.dialog({position:{my:"top center",at:"center center-25%"},classes:{"ui-dialog":"edd-dialog"},closeText:eddAdminOrderOverview.i18n.closeText,width:"350px",modal:!0,resizable:!1,draggable:!1,autoOpen:!1,create:function(){t(this).css("maxWidth","90vw")}})},openDialog:function(){return this.$el.dialog("open"),this},closeDialog:function(t){return t&&t.preventDefault&&t.preventDefault(),this.$el.dialog("close"),this.undelegateEvents(),this}})}).call(this,n(1))},8:function(t,e,n){"use strict";!function(){var e,r,o,i=0,u=[];for(r=0;r<256;r++)u[r]=(r+256).toString(16).substr(1);function a(){var t=(16,(!e||i+16>c.BUFFER_SIZE)&&(i=0,e=c.randomBytes(c.BUFFER_SIZE)),e.slice(i,i+=16));return t[6]=15&t[6]|64,t[8]=63&t[8]|128,t}function c(){var t=a();return u[t[0]]+u[t[1]]+u[t[2]]+u[t[3]]+"-"+u[t[4]]+u[t[5]]+"-"+u[t[6]]+u[t[7]]+"-"+u[t[8]]+u[t[9]]+"-"+u[t[10]]+u[t[11]]+u[t[12]]+u[t[13]]+u[t[14]]+u[t[15]]}c.BUFFER_SIZE=4096,c.bin=a,c.clearBuffer=function(){e=null,i=0},c.test=function(t){return"string"==typeof t&&/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/.test(t)},"undefined"!=typeof crypto?o=crypto:"undefined"!=typeof window&&void 0!==window.msCrypto&&(o=window.msCrypto),o=o||n(188),t.exports=c,c.randomBytes=function(){if(o){if(o.randomBytes)return o.randomBytes;if(o.getRandomValues)return function(t){var e=new Uint8Array(t);return o.getRandomValues(e),e}}return function(t){var e,n=[];for(e=0;e<t;e++)n.push(Math.floor(256*Math.random()));return n}}()}()}});
1
+ !function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=182)}({1:function(t,e){t.exports=jQuery},10:function(t,e,n){var r=n(183),o=n(184),i=n(185),u=n(186);t.exports=function(t){return r(t)||o(t)||i(t)||u()},t.exports.__esModule=!0,t.exports.default=t.exports},11:function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},12:function(t,e){function n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}t.exports=function(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},13:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=Backbone.Model.extend({defaults:{id:0,objectId:0,objectType:"",typeId:0,type:"",description:"",subtotal:0,tax:0,total:0,dateCreated:"",dateModified:"",uuid:""},getAmount:function(){return this.get("subtotal")},getTax:function(){return this.get("tax")},getTotal:function(){return this.get("subtotal")+this.get("tax")},updateTax:function(){var t=this.get("state"),e=t.get("hasTax");if("none"!==e&&""!==e.country&&""!==e.rate){var n=t.get("formatters").number,r=e.rate/100;t.get("adjustments").getByType("fee").forEach((function(t){if(!1!==t.get("isTaxable")){var e=t.getAmount(),o=n.unformat(e*r);t.set("tax",o)}}))}}})},14:function(t,e,n){"use strict";(function(t,r){n.d(e,"a",(function(){return o}));var o=function(e){e.tooltip({content:function(){return t(this).prop("title")},tooltipClass:"edd-ui-tooltip",position:{my:"center top",at:"center bottom+10",collision:"flipfit"},hide:{duration:200},show:{duration:200}})};r(document).ready((function(t){o(t(".edd-help-tip"))}))}).call(this,n(1),n(1))},15:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(13),o=n(16),i=Backbone.Collection.extend({comparator:"type",initialize:function(){this.getByType=this.getByType.bind(this)},model:function(t,e){var n;switch(t.type){case"discount":n=new o.a(t,e);break;default:n=new r.a(t,e)}return n},modelId:function(t){return"".concat(t.type,"-").concat(t.typeId,"-").concat(t.description)},has:function(t){return void 0!==this.findWhere({typeId:t.get("typeId")})},getByType:function(t){return this.where({type:t})}})},16:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(2),o=n.n(r),i=n(13);function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var c=i.a.extend({defaults:a(a({},i.a.prototype.defaults),{},{type:"discount"}),idAttribute:"typeId",getAmount:function(){var t=this,e=0,n=this.get("state");if(!1===n.get("isAdding"))return i.a.prototype.getAmount.apply(this,arguments);var r=n.get("items"),o=r.models,u=n.get("formatters"),a=u.number;return o.forEach((function(n){var r=n.get("adjustments").findWhere({typeId:t.get("typeId")});void 0!==r&&(e+=a.unformat(a.format(r.get("subtotal"))))})),e},getTotal:function(){return this.getAmount()}})},160:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return i}));var r=n(171),o=n(163),i=wp.Backbone.View.extend({el:"#edd-order-overview",events:{"click .toggle-row":"onToggleRow"},render:function(){return this.views.add(new r.a(this.options)),document.getElementById("edd-order-overview-actions")&&this.views.add(new o.a(this.options)),this},onToggleRow:function(e){e.preventDefault(),t(e.target).closest("tr").toggleClass("is-expanded")}})}).call(this,n(1))},161:function(t,e){function n(e){return t.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},162:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return i}));var r=n(4),o=n(7),i=o.a.extend({el:"#edd-admin-order-copy-download-link-dialog",template:wp.template("edd-admin-order-copy-download-link"),initialize:function(){o.a.prototype.initialize.apply(this,arguments),this.link=!1,this.addEvents({"click #close":"closeDialog"}),this.fetchLink.call(this)},prepare:function(){return{link:this.link}},render:function(){r.a.prototype.render.apply(this,arguments);var t=this.el,e=this.link;!1!==e&&""!==e&&t.querySelector("#link").select()},fetchLink:function(){var e=this,n=this.options,r=n.orderId,o=n.productId,i=n.priceId;t.ajax({type:"POST",url:ajaxurl,data:{action:"edd_get_file_download_link",payment_id:r,download_id:o,price_id:i}}).done((function(t){t=t.trim(),["-1","-2","-3","-4",""].includes(t)?e.link="":e.link=t.trim()})).done((function(){return e.render()}))}})}).call(this,n(1))},163:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return a}));var r=n(14),o=n(164),i=n(165),u=n(166),a=wp.Backbone.View.extend({el:"#edd-order-overview-actions",template:wp.template("edd-admin-order-actions"),events:{"click #add-item":"onAddOrderItem","click #add-discount":"onAddOrderDiscount","click #add-adjustment":"onAddOrderAdjustment"},render:function(){return wp.Backbone.View.prototype.render.apply(this,arguments),Object(r.a)(t(".edd-help-tip")),this},onAddOrderItem:function(t){t.preventDefault(),new o.a(this.options).openDialog().render()},onAddOrderDiscount:function(t){t.preventDefault(),new i.a(this.options).openDialog().render()},onAddOrderAdjustment:function(t){t.preventDefault(),new u.a(this.options).openDialog().render()}})}).call(this,n(1))},164:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return l}));var r=n(2),o=n.n(r),i=n(8),u=n.n(i),a=n(4),c=n(7),s=n(17);function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l=c.a.extend({el:"#edd-admin-order-add-item-dialog",template:wp.template("edd-admin-order-form-add-order-item"),initialize:function(){c.a.prototype.initialize.apply(this,arguments),this.addEvents({"change #download":"onChangeDownload","change #quantity":"onChangeQuantity","change #auto-calculate":"onAutoCalculateToggle","keyup #amount":"onChangeAmount","keyup #tax":"onChangeTax","keyup #subtotal":"onChangeSubtotal","click #set-address":"onSetAddress","submit form":"onAdd"});var t=this.options.state,e=u()();this.model=new s.a({id:e,orderId:e,state:t,error:!1}),this.listenTo(this.model,"change",this.render),this.listenTo(t,"change:isFetching",this.render),this.listenTo(t.get("items"),"add",this.closeDialog)},prepare:function(){var t=this.model,e=this.options,n=e.state,r=n.get("formatters"),o=r.number,i=t.get("quantity"),u=o.format(t.get("amount")*i),c=o.format(t.get("tax")*i),s=o.format(t.get("subtotal")*i);!0===t.get("_isAdjustingManually")&&(u=t.get("amountManual"),c=t.get("taxManual"),s=t.get("subtotalManual"));var f=!1===n.get("isFetching")&&!0===n.get("items").has(t),l=t.get("_isAdjustingManually"),p=t.get("error"),h=a.a.prototype.prepare.apply(this,arguments);return d(d({},h),{},{amountManual:u,taxManual:c,subtotalManual:s,state:d(d({},h.state),{},{isAdjustingManually:l,isDuplicate:f,error:p})})},onChangeDownload:function(t){var e=t.target,n=e.options,r=e.selectedIndex,o=this.model,i=this.options.state,u=i.get("formatters").number,a=n[r],c=a.value,s=null,f=c.split("_");c=parseInt(f[0]),f[1]&&(s=parseInt(f[1])),i.set("isFetching",!0),o.set({productId:c,priceId:s,productName:a.text,error:!1}),o.getAmounts({country:i.getTaxCountry(),region:i.getTaxRegion(),products:i.get("items").map((function(t){return{id:t.get("productId"),quantity:t.get("quantity"),options:{price_id:t.get("priceId")}}})),discountIds:i.get("adjustments").pluck("typeId")}).fail((function(t){var e=t.message;i.set("isFetching",!1),o.set({error:e,productId:0,priceId:null,productName:""})})).then((function(t){var e=t.amount,n=t.tax,r=t.subtotal,a=t.total;o.set({amount:e,tax:n,subtotal:r,total:a,amountManual:u.format(e),taxManual:u.format(n),subtotalManual:u.format(r)}),i.set("isFetching",!1)}))},onChangeQuantity:function(t){this.model.set("quantity",parseInt(t.target.value))},onChangeAmount:function(t){this.model.set("amountManual",t.target.value)},onChangeTax:function(t){this.model.set("taxManual",t.target.value)},onChangeSubtotal:function(t){this.model.set("subtotalManual",t.target.value)},onAutoCalculateToggle:function(t){t.preventDefault(),this.model.set({_isAdjustingManually:!t.target.checked})},onSetAddress:function(e){e.preventDefault(),this.closeDialog();var n=t('[href="#edd_general_address"]');n&&(n.trigger("click"),t("#edd_order_address_country").trigger("focus"))},onAdd:function(t){var e=this;t.preventDefault();var n=this.model,r=this.options.state,o=r.get("formatters").number;if(r.set("isFetching",!0),!0===n.get("_isAdjustingManually"))n.set({amount:o.unformat(n.get("amountManual")),tax:o.unformat(n.get("taxManual")),subtotal:o.unformat(n.get("subtotalManual"))});else{var i=n.get("quantity");n.set({tax:n.get("tax")*i,subtotal:n.get("subtotal")*i})}var u=r.get("items");u.add(n,{silent:!0}),u.updateAmounts().fail((function(t){var e=t.message;u.remove(n,{silent:!0}),r.set("isFetching",!1),n.set("error",e)})).done((function(){e.stopListening(n),u.trigger("add",n),r.set("isFetching",!1)}))}})}).call(this,n(1))},165:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(2),o=n.n(r),i=n(8),u=n.n(i),a=n(7),c=n(4),s=n(16);function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l=a.a.extend({el:"#edd-admin-order-add-discount-dialog",template:wp.template("edd-admin-order-form-add-order-discount"),events:{"submit form":"onAdd","change #discount":"onChangeDiscount"},initialize:function(){a.a.prototype.initialize.apply(this,arguments);var t=this.options.state;this.model=new s.a({id:u()(),typeId:u()(),state:t}),this.listenTo(this.model,"change",this.render),this.listenTo(t.get("adjustments"),"add",this.closeDialog)},prepare:function(){var t=this.model,e=this.options,n=e.state,r=n.get("adjustments").has(t);return d(d({},c.a.prototype.prepare.apply(this,arguments)),{},{_isDuplicate:r})},onChangeDiscount:function(t){var e=t.target,n=e.selectedIndex,r=e.options,o=this.model;t.preventDefault();var i=r[n],u=i.dataset;if(""===i.value)return o.set(s.a.prototype.defaults);o.set({typeId:parseInt(i.value),description:u.code})},onAdd:function(t){var e=this;t.preventDefault();var n=this.model,r=this.options.state;r.set("isFetching",!0);var o=r.get("items"),i=r.get("adjustments");i.add(n,{silent:!0}),o.updateAmounts().done((function(){e.stopListening(n),i.trigger("add",n),r.set("isFetching",!1)}))}})},166:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return l}));var r=n(2),o=n.n(r),i=n(8),u=n.n(i),a=n(4),c=n(7),s=n(13);function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l=c.a.extend({el:"#edd-admin-order-add-adjustment-dialog",template:wp.template("edd-admin-order-form-add-order-adjustment"),initialize:function(){c.a.prototype.initialize.apply(this,arguments),this.addEvents({"change #object_type":"onChangeObjectType",'change [name="type"]':"onChangeType","keyup #amount":"onChangeAmount","change #no-tax":"onHasTaxToggle","click #set-address":"onSetAddress","keyup #description":"onChangeDescription","submit form":"onAdd"});var t=this.options.state;this.model=new s.a({id:u()(),objectId:u()(),typeId:u()(),objectType:"order",type:"fee",amountManual:"",isTaxed:!0,state:t}),this.listenTo(this.model,"change",this.render),this.listenTo(t.get("adjustments"),"add",this.closeDialog)},prepare:function(){this.model;var t=this.options,e=t.state;return d(d({},a.a.prototype.prepare.apply(this,arguments)),{},{orderItems:e.get("items").models.map((function(t){return{id:t.get("id"),productName:t.get("productName")}}))})},onChangeObjectType:function(t){var e=t.target,n=e.options[e.selectedIndex],r=n.value,o=this.model.get("objectId");"order_item"===r?(o=n.dataset.orderItemId,this.model.set({objectId:o,objectType:r})):this.model.set({objectType:r,objectId:o})},onChangeType:function(t){var e=t.target.value;this.model.set("type",e),"credit"===e&&(this.model.set("objectId",0),this.model.set("objectType","order"))},onChangeAmount:function(t){var e=t.target;t.preventDefault();var n=this.options.state,r=n.get("formatters").number,o=e.value,i=r.unformat(o),u=0,a=n.get("hasTax");!0===this.model.get("isTaxed")&&"fee"===this.model.get("type")&&"none"!==a&&""!==a.country&&""!==a.rate&&(u=i*(a.rate/100)),this.model.set({amountManual:o,subtotal:i,total:i,tax:r.unformat(r.format(u))})},onHasTaxToggle:function(t){t.preventDefault();var e=t.target.checked,n={isTaxed:e};!1===e&&(n.tax=0),this.model.set(n)},onSetAddress:function(e){e.preventDefault(),this.closeDialog();var n=t('[href="#edd_general_address"]');n&&(n.trigger("click"),t("#edd_order_address_country").trigger("focus"))},onChangeDescription:function(t){this.model.set("description",t.target.value)},onAdd:function(t){t.preventDefault();var e=this.model,n=this.options.state,r=n.get("adjustments"),o=n.get("items");if("order_item"===e.get("objectType")){var i=o.findWhere({id:e.get("objectId")});i.get("adjustments").add(e),i.trigger("change"),e.set("objectType","order_item")}else e.set("objectType","order");r.add(e),this.stopListening(e)}})}).call(this,n(1))},167:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return h}));var r=n(10),o=n.n(r),i=n(2),u=n.n(i),a=n(8),c=n.n(a),s=n(15),f=n(16),d=n(17);function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){u()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var h=Backbone.Collection.extend({model:d.a,preinitialize:function(t,e){this.options=e},has:function(t){return this.filter((function(e){return e.get("productId")+"_"+e.get("priceId")==t.get("productId")+"_"+t.get("priceId")})).length>0},updateAmounts:function(){var e=this.options.state,n=e.get("items"),r=new Backbone.Collection(e.get("adjustments").getByType("discount")),i={country:e.getTaxCountry(),region:e.getTaxRegion(),products:n.map((function(t){return{id:t.get("productId"),quantity:t.get("quantity"),options:{price_id:t.get("priceId")}}})),discountIds:r.pluck("typeId")},u=[];return n.models.forEach((function(t){var e=t.getAmounts(i);e.done((function(e){var n=e.adjustments.map((function(e){return new f.a(p(p({},e),{},{id:c()(),objectId:t.get("id")}))})),r=t.get("adjustments").filter((function(t){return["fee","credit"].includes(t.type)}));t.set("adjustments",new s.a([].concat(o()(n),o()(r))))})).done((function(e){return t.setAmounts(e)})),u.push(e)})),t.when.apply(t,u)}})}).call(this,n(1))},17:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(10),o=n.n(r),i=n(15),u=Backbone.Model.extend({defaults:{id:0,orderId:0,productId:0,productName:"",priceId:null,cartIndex:0,type:"download",status:"",statusLabel:"",quantity:1,amount:0,subtotal:0,discount:0,tax:0,total:0,dateCreated:"",dateModified:"",uuid:"",amountManual:0,taxManual:0,subtotalManual:0,_isAdjustingManually:!1,adjustments:new i.a},getSubtotal:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.get("state"),n=this.get("subtotal");return!1===e.get("isAdding")?n:!0===e.hasInclusiveTax()&&!1===t?n-this.getTax():n},getDiscountAmount:function(){var t=0,e=this.get("adjustments").getByType("discount");return 0===e.length?this.get("discount"):(e.forEach((function(e){t+=+e.get("subtotal")})),t)},getTax:function(){var t=this.get("state"),e=this.get("tax");if(!1===t.get("isAdding"))return e;var n=t.get("formatters").number;return n.unformat(n.format(e))},getTotal:function(){var t=this.get("state");return!1===t.get("isAdding")?this.get("total"):!0===t.hasInclusiveTax()?this.get("subtotal")-this.getDiscountAmount():this.get("subtotal")-this.getDiscountAmount()+this.getTax()},getAmounts:function(t){var e=t.country,n=void 0===e?"":e,r=t.region,i=void 0===r?"":r,u=t.products,a=void 0===u?[]:u,c=t.discountIds,s=void 0===c?[]:c,f=window.eddAdminOrderOverview.nonces.edd_admin_order_get_item_amounts,d=_.clone(this.attributes),l=d.productId,p=d.priceId,h=d.quantity,v=d.amount,g=d.tax,y=d.subtotal;return wp.ajax.send("edd-admin-order-get-item-amounts",{data:{nonce:f,productId:l,priceId:p,quantity:h,amount:v,tax:g,subtotal:y,country:n,region:i,products:_.uniq([].concat(o()(a),[{id:l,quantity:h,options:{price_id:p}}]),(function(t){var e=t.id,n=t.options.price_id;return"".concat(e,"_").concat(n)})),discounts:_.uniq(s)}})},setAmounts:function(t){var e=t.amount,n=void 0===e?0:e,r=t.discount,o=void 0===r?0:r,i=t.tax,u=void 0===i?0:i,a=t.subtotal,c=void 0===a?0:a,s=t.total,f=void 0===s?0:s;!0===this.get("_isAdjustingManually")?this.set({discount:o}):this.set({amount:n,discount:o,tax:u,subtotal:c,total:f})}})},171:function(t,e,n){"use strict";n.d(e,"a",(function(){return N}));var r=n(2),o=n.n(r),i=n(4),u=n(162);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var s=i.a.extend({tagName:"tr",template:wp.template("edd-admin-order-item"),events:{"click .delete":"onDelete","click .copy-download-link":"onCopyDownloadLink"},initialize:function(){this.listenTo(this.model,"change",this.render)},prepare:function(){var t=this.model,e=this.options,n=e.state,r=n.get("formatters"),o=r.currency,u=t.getSubtotal(),a=t.getDiscountAmount(),s=t.get("_isAdjustingManually"),f=t.getTax();return c(c({},i.a.prototype.prepare.apply(this,arguments)),{},{discount:a,amountCurrency:o.format(t.get("amount")),subtotal:u,subtotalCurrency:o.format(u),tax:f,taxCurrency:o.format(f),total:t.getTotal(),config:{isAdjustingManually:s},adjustments:t.get("adjustments").toJSON()})},onDelete:function(t){t.preventDefault();var e=this.model,n=this.options.state;n.get("items").remove(e),n.get("items").updateAmounts()},onCopyDownloadLink:function(t){t.preventDefault(),this.options;var e=this.model;new u.a({orderId:e.get("orderId"),productId:e.get("productId"),priceId:e.get("priceId")}).openDialog().render()}});function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l=wp.Backbone.View.extend({tagName:"tr",template:wp.template("edd-admin-order-no-items"),prepare:function(){this.model,this.options;var t=this.options.state,e=!0===t.get("hasQuantity")?4:3;return d(d({},i.a.prototype.prepare.apply(this,arguments)),{},{config:{colspan:e}})}});function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var v=wp.Backbone.View.extend({tagName:"tbody",className:"edd-order-overview-summary__items",initialize:function(){var t=this.options.state,e=t.get("items");t.get("adjustments"),this.listenTo(e,"add",this.render),this.listenTo(e,"remove",this.remove)},render:function(){var t=this,e=this.options.state.get("items");this.views.remove(),0===e.length?this.views.set(new l(h({},this.options))):_.each(e.models,(function(e){return t.add(e)}))},add:function(t){this.views.add(new s(h(h({},this.options),{},{model:t})))},remove:function(t){var e=null;this.views.get().forEach((function(n){n.model.get("id")===t.id&&(e=n)})),null!==e&&e.remove(),0===this.views.get().length&&this.views.set(new l(h({},this.options)))}}),g=wp.Backbone.View.extend({tagName:"tbody",className:"edd-order-overview-summary__subtotal",template:wp.template("edd-admin-order-subtotal"),initialize:function(){var t=this.options.state;this.listenTo(t.get("items"),"add remove change",this.render),this.listenTo(t.get("adjustments"),"add remove",this.render)},prepare:function(){var t=this.options.state,e=t.get("formatters"),n=e.currency,r=(e.number,!0===t.get("hasQuantity")?2:1),o=t.getSubtotal();return{state:t.toJSON(),config:{colspan:r},subtotal:o,subtotalCurrency:n.format(o)}}});function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?y(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var b=i.a.extend({tagName:"tr",className:"is-expanded",events:{"click .delete":"onDelete"},initialize:function(){switch(i.a.prototype.initialize.apply(this),this.model.get("type")){case"credit":case"fee":this.template=wp.template("edd-admin-order-adjustment");break;default:this.template=wp.template("edd-admin-order-adjustment-discount")}this.listenTo(this.model,"change",this.render)},prepare:function(){var t,e=this.model,n=(this.options,this.options.state),r=n.get("formatters"),o=r.currency,u=(r.number,!0===n.get("hasQuantity")?2:1);"order_item"===e.get("objectType")&&(t=_.first(n.get("items").filter((function(t){return void 0!==t.get("adjustments").findWhere({objectId:t.get("id")})}))));var a=e.getAmount(),c=e.getTotal();return m(m({},i.a.prototype.prepare.apply(this,arguments)),{},{config:{colspan:u},total:c,subtotal:a,orderItem:!!t&&t.toJSON(),totalCurrency:o.format(c),subtotalCurrency:o.format(a)})},onDelete:function(t){t.preventDefault();var e=this.options.state;e.get("adjustments").remove(this.model),e.get("items").updateAmounts()}});function w(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function O(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?w(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var j=wp.Backbone.View.extend({tagName:"tbody",className:"edd-order-overview-summary__adjustments",initialize:function(){var t=this.options.state,e=t.get("items"),n=t.get("adjustments");this.listenTo(t,"change:hasTax",this.render),this.listenTo(e,"change",this.render),this.listenTo(n,"add",this.render),this.listenTo(n,"remove",this.remove)},render:function(){var t=this,e=this.getAdjustments();this.views.remove(),_.each(e,(function(e){return t.add(e)}))},add:function(t){this.views.add(new b(O(O({},this.options),{},{model:t})))},remove:function(t){var e=null,n=this.views.get();n&&(n.forEach((function(n){n.model.id===t.id&&(e=n)})),null!==e&&e.remove())}}),x=j.extend({getAdjustments:function(){return this.options.state.get("adjustments").filter((function(t){return["discount","fee"].includes(t.get("type"))}))}}),P=n(10),A=n.n(P);function k(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function D(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?k(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var T=wp.Backbone.View.extend({tagName:"tbody",className:"edd-order-overview-summary__tax",template:wp.template("edd-admin-order-tax"),events:{"click #notice-tax-change .notice-dismiss":"onDismissTaxRateChange","click #notice-tax-change .update-amounts":"onUpdateAmounts"},initialize:function(){var t=this.options.state;this.listenTo(t,"change:hasTax",this.render),this.listenTo(t.get("items"),"add remove change",this.render),this.listenTo(t.get("adjustments"),"add remove",this.render)},prepare:function(){var t=this.options.state,e=t.get("formatters"),n=e.currency,r=(e.number,!0===t.get("hasQuantity")?2:1),o=t.getTax(),i=t.hasNewTaxRate(),u=[].concat(A()(t.get("items").models),A()(t.get("adjustments").getByType("fee")));return{state:D(D({},t.toJSON()),{},{hasNewTaxRate:i}),config:{colspan:r},tax:o,taxCurrency:n.format(o),hasTaxableItems:u.length>0}},onDismissTaxRateChange:function(){var t=this.options.state;t.set("hasTax",t.get("hasTax")),t.trigger("change:hasTax")},onUpdateAmounts:function(t){var e=this;t.preventDefault();var n=this.options.state;n.get("adjustments").getByType("fee").forEach((function(t){t.updateTax()})),n.get("items").updateAmounts().done((function(){e.onDismissTaxRateChange()}))}}),S=j.extend({getAdjustments:function(){return this.options.state.get("adjustments").getByType("credit")}});function I(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function E(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?I(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var C=wp.Backbone.View.extend({tagName:"tbody",className:"edd-order-overview-summary__total",template:wp.template("edd-admin-order-total"),initialize:function(){var t=this.options.state;this.listenTo(t,"change:hasTax",this.render),this.listenTo(t.get("items"),"add remove change",this.render),this.listenTo(t.get("adjustments"),"add remove",this.render)},prepare:function(){var t=this.options.state,e=t.get("formatters"),n=e.currency,r=(e.number,!0===t.get("hasQuantity")?2:1),o=t.getTotal(),i=t.getDiscount(),u=void 0!==t.get("items").findWhere({_isAdjustingManually:!0});return{state:E(E({},t.toJSON()),{},{hasManualAdjustment:u}),config:{colspan:r},total:o,discount:i,discountCurrency:n.format(i),totalCurrency:n.format(o)}}}),B=wp.Backbone.View.extend({template:wp.template("edd-admin-order-refund"),tagName:"tr",className:"is-expanded",prepare:function(){var t=this.model,e=this.options.state,n=e.get("formatters").currency;return{config:{colspan:!0===e.get("hasQuantity")?2:1},id:t.get("id"),number:t.get("number"),dateCreated:t.get("dateCreatedi18n"),totalCurrency:n.format(t.get("total"))}}});function M(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function z(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?M(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var R=wp.Backbone.View.extend({tagName:"tbody",className:"edd-order-overview-summary__refunds",template:wp.template("edd-admin-order-refunds"),render:function(){var t=this,e=this.options.state.get("refunds").models;_.each(e,(function(e){return t.views.add(new B(z(z({},t.options),{},{model:e})))}))}}),N=wp.Backbone.View.extend({el:"#edd-order-overview-summary",render:function(){return this.views.add(new v(this.options)),this.views.add(new g(this.options)),this.views.add(new x(this.options)),this.views.add(new T(this.options)),this.views.add(new S(this.options)),this.views.add(new C(this.options)),this.views.add(new R(this.options)),this}})},182:function(t,e,n){"use strict";n.r(e),function(t){var e=n(19),r=(n(190),n(3));Object(r.a)((function(){window.eddAdminOrderOverview&&(e.a.render(),function(){var n=e.a.options.state.get("items"),r=document.getElementById("edd-add-order-no-items-error"),o=document.getElementById("edd-add-order-customer-error"),i=document.getElementById("customer_id"),u=document.getElementById("edd_new_customer_email");function a(t){var e=!1;r&&(0===n.length?(r.style.display="block",e=!0):r.style.display="none"),o&&("0"===i.value&&""===u.value?(o.style.display="block",e=!0):o.style.display="none",!0===e&&t.preventDefault())}["edd-add-order-form","edd-edit-order-form"].forEach((function(t){var e=document.getElementById(t);e&&e.addEventListener("submit",a)})),n.on("add",(function(){r.style.display="none"})),t(i).on("change",(function(t){"0"!==t.target.value&&(o.style.display="none")})),u&&u.addEventListener("input",(function(t){""!==t.target.value&&(o.style.display="none")}))}()),0!==t(".edit-post-editor-regions__header").length&&t("div.update-nag, div#update-nag").insertAfter(t(".edit-post-editor-regions__header"))}))}.call(this,n(1))},183:function(t,e,n){var r=n(24);t.exports=function(t){if(Array.isArray(t))return r(t)},t.exports.__esModule=!0,t.exports.default=t.exports},184:function(t,e){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},185:function(t,e,n){var r=n(24);t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},186:function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},187:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},188:function(t,e){},189:function(t,e,n){"use strict";(function(t){var e=new(n(6).b);function r(){var n=0,r=0,o=0,i=!1,u=t("#edd-refund-order-dialog .edd-order-item-refund-input"),a=t("#edd-refund-order-dialog .edd-order-item-refund-input.readonly");u.prop("readonly",!0),t("#edd-refund-order-dialog .edd-order-item-refund-quantity").each((function(){if(parseInt(t(this).val())){var i=t(this).closest(".refunditem");if(i.find(".edd-order-item-refund-checkbox").prop("checked")){var u=0,a=e.unformat(i.find(".edd-order-item-refund-subtotal").val());i.find(".edd-order-item-refund-tax").length&&(u=e.unformat(i.find(".edd-order-item-refund-tax").val()));var c=a+u;i.find(".column-total span").text(e.format(c)),i.data("credit")&&(a*=-1,u*=-1,c*=-1),i.data("orderItem")&&(n+=a),r+=u,o+=c}else i.removeClass("refunded")}})),parseFloat(o)>0&&(i=!0),t("#edd-refund-submit-subtotal-amount").text(e.format(n)),t("#edd-refund-submit-tax-amount").text(e.format(r)),t("#edd-refund-submit-total-amount").text(e.format(o)),t("#edd-submit-refund-submit").attr("disabled",!i),u.prop("readonly",!1),a.prop("readonly",!0)}t(document.body).on("click",".edd-refund-order",(function(e){e.preventDefault(),t(this);var n={action:"edd_generate_refund_form",order_id:t('input[name="edd_payment_id"]').val()};t.ajax({type:"POST",data:n,url:ajaxurl,success:function(e){var n;return n=e.success?e.html:e.message,t("#edd-refund-order-dialog").dialog({position:{my:"top center",at:"center center-25%"},width:"75%",modal:!0,resizable:!1,draggable:!1,classes:{"ui-dialog":"edd-dialog"},closeText:eddAdminOrderOverview.i18n.closeText,open:function(e,r){t(this).html(n)},close:function(e,n){t(this).html(""),t(this).hasClass("did-refund")&&location.reload()}}),!1}}).fail((function(e){return t("#edd-refund-order-dialog").dialog({position:{my:"top center",at:"center center-25%"},width:"75%",modal:!0,resizable:!1,draggable:!1}).html(e.message),!1}))})),t(document.body).on("click",".ui-widget-overlay",(function(e){t("#edd-refund-order-dialog").dialog("close")})),t(document.body).on("change","#edd-refund-order-dialog #cb-select-all-1",(function(){var e=t(".edd-order-item-refund-checkbox"),n=t(this).prop("checked");e.each((function(){t(this).prop("checked",n).trigger("change")}))})),t(document.body).on("change",".edd-order-item-refund-checkbox",(function(){var e=t(this).parent().parent(),n=e.find(".edd-order-item-refund-quantity");n.length&&(t(this).prop("checked")?n.trigger("change"):(e.find(".edd-order-item-refund-input").prop("disabled",!0),r()))})),t(document.body).on("change","#edd-refund-order-dialog .edd-order-item-refund-input",(function(){var n=t(this).closest(".refunditem"),o=n.find(".edd-order-item-refund-quantity"),i=parseInt(o.val());if(i>0?n.addClass("refunded"):n.removeClass("refunded"),t(this).hasClass("edd-order-item-refund-quantity")){n.find(".edd-order-item-refund-input:not(.edd-order-item-refund-quantity)").prop("disabled",0===i),i>0&&o.prop("disabled",!1);var u=n.find(".edd-order-item-refund-subtotal"),a=n.find(".edd-order-item-refund-tax"),c=e.unformat(u.data("original")),s=a.length?e.unformat(a.data("original")):0,f=parseInt(o.data("max")),d=c/f*i,l=a.length?s/f*i:0;d>parseFloat(u.data("max"))&&(d=u.data("max")),a.length&&l>parseFloat(a.data("max"))&&(l=a.data("max")),u.val(e.format(d)),a.length&&a.val(e.format(l))}r()})),t(document.body).on("click","#edd-submit-refund-submit",(function(e){e.preventDefault(),t(".edd-submit-refund-message").removeClass("success").removeClass("fail"),t(this).removeClass("button-primary").attr("disabled",!0).addClass("updating-message"),t("#edd-submit-refund-status").hide();var n={action:"edd_process_refund_form",data:t("#edd-submit-refund-form").serialize(),order_id:t('input[name="edd_payment_id"]').val()};t.ajax({type:"POST",data:n,url:ajaxurl,success:function(e){var n=t(".edd-submit-refund-message"),r=t(".edd-submit-refund-url");e.success?(n.text(e.data.message).addClass("success"),r.attr("href",e.data.refund_url).show(),t("#edd-submit-refund-status").show(),r.focus(),t("#edd-refund-order-dialog").addClass("did-refund")):(n.html(e.data).addClass("fail"),r.hide(),t("#edd-submit-refund-status").show(),t("#edd-submit-refund-submit").attr("disabled",!1).removeClass("updating-message").addClass("button-primary"))}}).fail((function(e){var n=t(".edd-submit-refund-message"),r=t(".edd-submit-refund-url"),o=e.responseJSON;return n.text(o.data).addClass("fail"),r.hide(),t("#edd-submit-refund-status").show(),t("#edd-submit-refund-submit").attr("disabled",!1).removeClass("updating-message").addClass("button-primary"),!1}))})),t(document.body).on("click",".refund-items .toggle-row",(function(){t(this).closest("tr").toggleClass("is-expanded")}))}).call(this,n(1))},19:function(t,e,n){"use strict";var r,o=n(2),i=n.n(o),u=n(6),a=n(160),c=n(167),s=n(17),f=n(15),d=Backbone.Model.extend({defaults:{id:0,number:"",total:0,dateCreated:"",dateCreatedi18n:""}}),l=Backbone.Collection.extend({model:d}),p=Backbone.Model.extend({defaults:{isAdding:!1,isFetching:!1,hasQuantity:!1,hasTax:!1,items:[],adjustments:[],refunds:[],formatters:{currency:new u.a,number:new u.b}},getTaxCountry:function(){return!1!==this.get("hasTax")?this.get("hasTax").country:""},getTaxRegion:function(){return!1!==this.get("hasTax")?this.get("hasTax").region:""},getSubtotal:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!1===this.get("isAdding"))return this.get("order").subtotal;var e=this.get("items"),n=e.models;return n.reduce((function(e,n){return e+ +n.getSubtotal(t)}),0)},getDiscount:function(){return!1===this.get("isAdding")?this.get("order").discount:this.get("adjustments").getByType("discount").reduce((function(t,e){return t+ +e.getAmount()}),0)},getTax:function(){if(!1===this.get("isAdding"))return this.get("order").tax;var t=this.get("items").models,e=this.getFeesTax();return t.reduce((function(t,e){return t+ +e.getTax()}),e)},getFeesTax:function(){return!1===this.get("isAdding")?this.get("order").tax:this.get("adjustments").getByType("fee").reduce((function(t,e){return t+ +e.getTax()}),0)},getTotal:function(){if(!1===this.get("isAdding"))return this.get("order").total;var t=this.get("adjustments").models.reduce((function(t,e){return["discount","credit"].includes(e.get("type"))?t-+e.getAmount():t+ +e.get("subtotal")}),this.getSubtotal(!0));return!0===this.hasInclusiveTax()?t+this.getFeesTax():t+this.getTax()},hasNewTaxRate:function(){var t=this.get("hasTax");if(!1===t)return!1;var e=this.previous("hasTax");return!_.isEqual(t,e)},hasInclusiveTax:function(){return this.get("hasTax").inclusive}});function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){i()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}n(189),function(){if(window.eddAdminOrderOverview){var t=window.eddAdminOrderOverview,e=t.isAdding,n=t.isRefund,o=t.hasTax,i=t.hasQuantity,d=t.hasDiscounts,h=t.order,g=t.items,y=t.adjustments,m=t.refunds,_=new u.a({currency:h.currency,currencySymbol:h.currencySymbol}),b=new p({isAdding:"1"===e,isRefund:"1"===n,hasTax:"0"!==o&&o,hasQuantity:"1"===i,hasDiscounts:"1"===d,formatters:{currency:_,number:new u.b},order:h});b.set({items:new c.a(null,{state:b}),adjustments:new f.a(null,{state:b}),refunds:new l(null,{state:b})}),r=new a.a({state:b}),g.forEach((function(t){var e=new f.a(t.adjustments),n=new s.a(v(v({},t),{},{adjustments:e,state:b}));b.get("items").add(n)})),y.forEach((function(t){b.get("adjustments").add(v({state:b},t))})),m.forEach((function(t){b.get("refunds").add(v({state:b},t))}))}}(),e.a=r},190:function(t,e,n){"use strict";n(191),n(192),n(193)},191:function(t,e,n){"use strict";(function(t){var e=n(2),r=n.n(e),o=n(19),i=n(5),u=n(3);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){r()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var s={addresses:{0:{address:"",address2:"",city:"",region:"",postal_code:"",country:""}}};Object(u.a)((function(){function e(e,n,r){var o={action:"edd_get_shop_states",country:e.val(),nonce:e.data("nonce"),field_name:n,field_id:r};return t.post(ajaxurl,o)}function n(e){var n=t("#edd_order_address_region");t("#edd_order_address_region_chosen").remove(),"nostates"===e?n.replaceWith('<input type="text" name="edd_order_address[region]" id="edd_order_address_region" value="" class="wide-fat" style="max-width: none; width: 100%;" />'):(n.replaceWith(e),t("#edd_order_address_region").chosen(Object(i.a)(t("#edd_order_address_region"))))}function r(){e(t(this),"edd_order_address[region]","edd_order_address_region").done(n)}!function(){var e=o.a.options.state;if(!1!==e.get("hasTax")&&!1!==e.get("isAdding")){var n=document.getElementById("edd_order_address_country"),r=document.getElementById("edd_order_address_region");n&&r&&(t("#edd_order_address_country").on("change",_.debounce(i,250)),t("#edd-order-address").on("change","#edd_order_address_region",i),t("#edd-order-address").on("keyup","#edd_order_address_region",_.debounce(i,250)))}function i(){var n=t("#edd_order_address_country").val(),r=t("#edd_order_address_region").val(),o=document.getElementById("edd_get_tax_rate_nonce").value;wp.ajax.send("edd_get_tax_rate",{data:{nonce:o,country:n,region:r},success:function(t){var o=t.tax_rate;o*=100,e.set("hasTax",c(c({},e.get("hasTax")),{},{country:n,region:r,rate:o}))},error:function(){e.set("hasTax","none")}})}}(),t(".edd-payment-change-customer-input").on("change",(function(){var e={action:"edd_customer_addresses",customer_id:t(this).val(),nonce:t("#edd_add_order_nonce").val()};return t.post(ajaxurl,e,(function(e){var n=e.success,r=e.data;n?(s=c(c(c({},s),r),{},{addresses:c(c({},s.addresses),r.addresses)}),r.html?(t(".customer-address-select-wrap").show(),t(".customer-address-select-wrap .edd-form-group__control").html(r.html)):t(".customer-address-select-wrap").hide()):t(".customer-address-select-wrap").hide()}),"json"),!1})),t(document.body).on("change",".customer-address-select-wrap .add-order-customer-address-select",(function(){var o=t(this).val(),i=s.addresses[o];return t('#edd-add-order-form input[name="edd_order_address[address]"]').val(i.address),t('#edd-add-order-form input[name="edd_order_address[address2]"]').val(i.address2),t('#edd-add-order-form input[name="edd_order_address[postal_code]"]').val(i.postal_code),t('#edd-add-order-form input[name="edd_order_address[city]"]').val(i.city),t('#edd-add-order-form input[name="edd_order_address[address_id]"]').val(o),t("#edd_order_address_country").off("change",r),t("#edd_order_address_country").val(i.country).trigger("change").trigger("chosen:updated"),e(t("#edd_order_address_country"),"edd_order_address[region]","edd_order_address_region").done(n).done((function(e){t("#edd_order_address_region").val(i.region).trigger("change").trigger("chosen:updated")})),t("#edd_order_address_country").on("change",r),!1})),t("#edd_order_address_country").on("change",r)}))}).call(this,n(1))},192:function(t,e,n){"use strict";(function(t){var e=n(3);Object(e.a)((function(){t(".edd-payment-change-customer-input").on("change",(function(){var e={action:"edd_customer_details",customer_id:t(this).val(),nonce:t("#edd_customer_details_nonce").val()};""!==e.customer_id&&(t(".customer-details").css("display","none"),t("#customer-avatar").html('<span class="spinner is-active"></span>'),t.post(ajaxurl,e,(function(e){var n=e.success,r=e.data;n?(t(".customer-details").css("display","flex"),t(".customer-details-wrap").css("display","flex"),t("#customer-avatar").html(r.avatar),t(".customer-name").html(r.name),t(".customer-since span").html(r.date_created_i18n),t(".customer-record a").prop("href",r._links.self)):t(".customer-details-wrap").css("display","none")}),"json"))})),t(".edd-payment-change-customer-input").trigger("change"),t("#edd-customer-details").on("click",".edd-payment-new-customer, .edd-payment-new-customer-cancel",(function(e){e.preventDefault();var n=t(this).hasClass("edd-payment-new-customer"),r=t(this).hasClass("edd-payment-new-customer-cancel");n?(t(".order-customer-info").hide(),t(".new-customer").show()):r&&(t(".order-customer-info").show(),t(".new-customer").hide()),n=t("#edd-new-customer"),t(".new-customer").is(":visible")?n.val(1):n.val(0)}))}))}).call(this,n(1))},193:function(t,e,n){"use strict";(function(t){var e=n(3);Object(e.a)((function(){var e=t(".edd-order-resend-receipt-addresses");t(document.body).on("click","#edd-select-receipt-email",(function(t){t.preventDefault(),e.slideDown()})),t(document.body).on("change",".edd-order-resend-receipt-email",(function(){var e=t("input:radio.edd-order-resend-receipt-email:checked").val();t("#edd-select-receipt-email").data("email",e)})),t(document.body).on("click","#edd-select-receipt-email",(function(){if(confirm(edd_vars.resend_receipt)){var e=t(this).prop("href")+"&email="+t(this).data("email");window.location=e}})),t(document.body).on("click","#edd-resend-receipt",(function(){return confirm(edd_vars.resend_receipt)}))}))}).call(this,n(1))},2:function(t,e){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports},20:function(t,e,n){(function(t,r){var o;(function(){var i="Expected a function",u="__lodash_placeholder__",a=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],c="[object Arguments]",s="[object Array]",f="[object Boolean]",d="[object Date]",l="[object Error]",p="[object Function]",h="[object GeneratorFunction]",v="[object Map]",g="[object Number]",y="[object Object]",m="[object RegExp]",_="[object Set]",b="[object String]",w="[object Symbol]",O="[object WeakMap]",j="[object ArrayBuffer]",x="[object DataView]",P="[object Float32Array]",A="[object Float64Array]",k="[object Int8Array]",D="[object Int16Array]",T="[object Int32Array]",S="[object Uint8Array]",I="[object Uint16Array]",E="[object Uint32Array]",C=/\b__p \+= '';/g,B=/\b(__p \+=) '' \+/g,M=/(__e\(.*?\)|\b__t\)) \+\n'';/g,z=/&(?:amp|lt|gt|quot|#39);/g,R=/[&<>"']/g,N=RegExp(z.source),F=RegExp(R.source),L=/<%-([\s\S]+?)%>/g,W=/<%([\s\S]+?)%>/g,U=/<%=([\s\S]+?)%>/g,q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$=/^\w*$/,V=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Z=/[\\^$.*+?()[\]{}|]/g,Q=RegExp(Z.source),J=/^\s+/,K=/\s/,H=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,G=/\{\n\/\* \[wrapped with (.+)\] \*/,Y=/,? & /,X=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tt=/[()=,{}\[\]\/\s]/,et=/\\(\\)?/g,nt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rt=/\w*$/,ot=/^[-+]0x[0-9a-f]+$/i,it=/^0b[01]+$/i,ut=/^\[object .+?Constructor\]$/,at=/^0o[0-7]+$/i,ct=/^(?:0|[1-9]\d*)$/,st=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ft=/($^)/,dt=/['\n\r\u2028\u2029\\]/g,lt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",pt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ht="["+pt+"]",vt="["+lt+"]",gt="\\d+",yt="[a-z\\xdf-\\xf6\\xf8-\\xff]",mt="[^\\ud800-\\udfff"+pt+gt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",_t="\\ud83c[\\udffb-\\udfff]",bt="[^\\ud800-\\udfff]",wt="(?:\\ud83c[\\udde6-\\uddff]){2}",Ot="[\\ud800-\\udbff][\\udc00-\\udfff]",jt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",xt="(?:"+yt+"|"+mt+")",Pt="(?:"+jt+"|"+mt+")",At="(?:"+vt+"|"+_t+")?",kt="[\\ufe0e\\ufe0f]?"+At+"(?:\\u200d(?:"+[bt,wt,Ot].join("|")+")[\\ufe0e\\ufe0f]?"+At+")*",Dt="(?:"+["[\\u2700-\\u27bf]",wt,Ot].join("|")+")"+kt,Tt="(?:"+[bt+vt+"?",vt,wt,Ot,"[\\ud800-\\udfff]"].join("|")+")",St=RegExp("['’]","g"),It=RegExp(vt,"g"),Et=RegExp(_t+"(?="+_t+")|"+Tt+kt,"g"),Ct=RegExp([jt+"?"+yt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ht,jt,"$"].join("|")+")",Pt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ht,jt+xt,"$"].join("|")+")",jt+"?"+xt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",jt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",gt,Dt].join("|"),"g"),Bt=RegExp("[\\u200d\\ud800-\\udfff"+lt+"\\ufe0e\\ufe0f]"),Mt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,zt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Rt=-1,Nt={};Nt[P]=Nt[A]=Nt[k]=Nt[D]=Nt[T]=Nt[S]=Nt["[object Uint8ClampedArray]"]=Nt[I]=Nt[E]=!0,Nt[c]=Nt[s]=Nt[j]=Nt[f]=Nt[x]=Nt[d]=Nt[l]=Nt[p]=Nt[v]=Nt[g]=Nt[y]=Nt[m]=Nt[_]=Nt[b]=Nt[O]=!1;var Ft={};Ft[c]=Ft[s]=Ft[j]=Ft[x]=Ft[f]=Ft[d]=Ft[P]=Ft[A]=Ft[k]=Ft[D]=Ft[T]=Ft[v]=Ft[g]=Ft[y]=Ft[m]=Ft[_]=Ft[b]=Ft[w]=Ft[S]=Ft["[object Uint8ClampedArray]"]=Ft[I]=Ft[E]=!0,Ft[l]=Ft[p]=Ft[O]=!1;var Lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Wt=parseFloat,Ut=parseInt,qt="object"==typeof t&&t&&t.Object===Object&&t,$t="object"==typeof self&&self&&self.Object===Object&&self,Vt=qt||$t||Function("return this")(),Zt=e&&!e.nodeType&&e,Qt=Zt&&"object"==typeof r&&r&&!r.nodeType&&r,Jt=Qt&&Qt.exports===Zt,Kt=Jt&&qt.process,Ht=function(){try{return Qt&&Qt.require&&Qt.require("util").types||Kt&&Kt.binding&&Kt.binding("util")}catch(t){}}(),Gt=Ht&&Ht.isArrayBuffer,Yt=Ht&&Ht.isDate,Xt=Ht&&Ht.isMap,te=Ht&&Ht.isRegExp,ee=Ht&&Ht.isSet,ne=Ht&&Ht.isTypedArray;function re(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function oe(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++o<i;){var u=t[o];e(r,u,n(u),t)}return r}function ie(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function ue(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function ae(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function ce(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var u=t[n];e(u,n,t)&&(i[o++]=u)}return i}function se(t,e){return!(null==t||!t.length)&&_e(t,e,0)>-1}function fe(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1}function de(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function le(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function pe(t,e,n,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}function he(t,e,n,r){var o=null==t?0:t.length;for(r&&o&&(n=t[--o]);o--;)n=e(n,t[o],o,t);return n}function ve(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var ge=je("length");function ye(t,e,n){var r;return n(t,(function(t,n,o){if(e(t,n,o))return r=n,!1})),r}function me(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}function _e(t,e,n){return e==e?function(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}(t,e,n):me(t,we,n)}function be(t,e,n,r){for(var o=n-1,i=t.length;++o<i;)if(r(t[o],e))return o;return-1}function we(t){return t!=t}function Oe(t,e){var n=null==t?0:t.length;return n?Ae(t,e)/n:NaN}function je(t){return function(e){return null==e?void 0:e[t]}}function xe(t){return function(e){return null==t?void 0:t[e]}}function Pe(t,e,n,r,o){return o(t,(function(t,o,i){n=r?(r=!1,t):e(n,t,o,i)})),n}function Ae(t,e){for(var n,r=-1,o=t.length;++r<o;){var i=e(t[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n}function ke(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function De(t){return t?t.slice(0,Ze(t)+1).replace(J,""):t}function Te(t){return function(e){return t(e)}}function Se(t,e){return de(e,(function(e){return t[e]}))}function Ie(t,e){return t.has(e)}function Ee(t,e){for(var n=-1,r=t.length;++n<r&&_e(e,t[n],0)>-1;);return n}function Ce(t,e){for(var n=t.length;n--&&_e(e,t[n],0)>-1;);return n}function Be(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}var Me=xe({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"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","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"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","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),ze=xe({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Re(t){return"\\"+Lt[t]}function Ne(t){return Bt.test(t)}function Fe(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function Le(t,e){return function(n){return t(e(n))}}function We(t,e){for(var n=-1,r=t.length,o=0,i=[];++n<r;){var a=t[n];a!==e&&a!==u||(t[n]=u,i[o++]=n)}return i}function Ue(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function qe(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function $e(t){return Ne(t)?function(t){for(var e=Et.lastIndex=0;Et.test(t);)++e;return e}(t):ge(t)}function Ve(t){return Ne(t)?function(t){return t.match(Et)||[]}(t):function(t){return t.split("")}(t)}function Ze(t){for(var e=t.length;e--&&K.test(t.charAt(e)););return e}var Qe=xe({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),Je=function t(e){var n,r=(e=null==e?Vt:Je.defaults(Vt.Object(),e,Je.pick(Vt,zt))).Array,o=e.Date,K=e.Error,lt=e.Function,pt=e.Math,ht=e.Object,vt=e.RegExp,gt=e.String,yt=e.TypeError,mt=r.prototype,_t=lt.prototype,bt=ht.prototype,wt=e["__core-js_shared__"],Ot=_t.toString,jt=bt.hasOwnProperty,xt=0,Pt=(n=/[^.]+$/.exec(wt&&wt.keys&&wt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",At=bt.toString,kt=Ot.call(ht),Dt=Vt._,Tt=vt("^"+Ot.call(jt).replace(Z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Et=Jt?e.Buffer:void 0,Bt=e.Symbol,Lt=e.Uint8Array,qt=Et?Et.allocUnsafe:void 0,$t=Le(ht.getPrototypeOf,ht),Zt=ht.create,Qt=bt.propertyIsEnumerable,Kt=mt.splice,Ht=Bt?Bt.isConcatSpreadable:void 0,ge=Bt?Bt.iterator:void 0,xe=Bt?Bt.toStringTag:void 0,Ke=function(){try{var t=ti(ht,"defineProperty");return t({},"",{}),t}catch(t){}}(),He=e.clearTimeout!==Vt.clearTimeout&&e.clearTimeout,Ge=o&&o.now!==Vt.Date.now&&o.now,Ye=e.setTimeout!==Vt.setTimeout&&e.setTimeout,Xe=pt.ceil,tn=pt.floor,en=ht.getOwnPropertySymbols,nn=Et?Et.isBuffer:void 0,rn=e.isFinite,on=mt.join,un=Le(ht.keys,ht),an=pt.max,cn=pt.min,sn=o.now,fn=e.parseInt,dn=pt.random,ln=mt.reverse,pn=ti(e,"DataView"),hn=ti(e,"Map"),vn=ti(e,"Promise"),gn=ti(e,"Set"),yn=ti(e,"WeakMap"),mn=ti(ht,"create"),_n=yn&&new yn,bn={},wn=Ti(pn),On=Ti(hn),jn=Ti(vn),xn=Ti(gn),Pn=Ti(yn),An=Bt?Bt.prototype:void 0,kn=An?An.valueOf:void 0,Dn=An?An.toString:void 0;function Tn(t){if(Zu(t)&&!Mu(t)&&!(t instanceof Cn)){if(t instanceof En)return t;if(jt.call(t,"__wrapped__"))return Si(t)}return new En(t)}var Sn=function(){function t(){}return function(e){if(!Vu(e))return{};if(Zt)return Zt(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function In(){}function En(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function Cn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Bn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Mn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function zn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Rn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new zn;++e<n;)this.add(t[e])}function Nn(t){var e=this.__data__=new Mn(t);this.size=e.size}function Fn(t,e){var n=Mu(t),r=!n&&Bu(t),o=!n&&!r&&Fu(t),i=!n&&!r&&!o&&ta(t),u=n||r||o||i,a=u?ke(t.length,gt):[],c=a.length;for(var s in t)!e&&!jt.call(t,s)||u&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||ai(s,c))||a.push(s);return a}function Ln(t){var e=t.length;return e?t[zr(0,e-1)]:void 0}function Wn(t,e){return xi(mo(t),Hn(e,0,t.length))}function Un(t){return xi(mo(t))}function qn(t,e,n){(void 0!==n&&!Iu(t[e],n)||void 0===n&&!(e in t))&&Jn(t,e,n)}function $n(t,e,n){var r=t[e];jt.call(t,e)&&Iu(r,n)&&(void 0!==n||e in t)||Jn(t,e,n)}function Vn(t,e){for(var n=t.length;n--;)if(Iu(t[n][0],e))return n;return-1}function Zn(t,e,n,r){return er(t,(function(t,o,i){e(r,t,n(t),i)})),r}function Qn(t,e){return t&&_o(e,Oa(e),t)}function Jn(t,e,n){"__proto__"==e&&Ke?Ke(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Kn(t,e){for(var n=-1,o=e.length,i=r(o),u=null==t;++n<o;)i[n]=u?void 0:ya(t,e[n]);return i}function Hn(t,e,n){return t==t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}function Gn(t,e,n,r,o,i){var u,a=1&e,s=2&e,l=4&e;if(n&&(u=o?n(t,r,o,i):n(t)),void 0!==u)return u;if(!Vu(t))return t;var O=Mu(t);if(O){if(u=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&jt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!a)return mo(t,u)}else{var C=ri(t),B=C==p||C==h;if(Fu(t))return lo(t,a);if(C==y||C==c||B&&!o){if(u=s||B?{}:ii(t),!a)return s?function(t,e){return _o(t,ni(t),e)}(t,function(t,e){return t&&_o(e,ja(e),t)}(u,t)):function(t,e){return _o(t,ei(t),e)}(t,Qn(u,t))}else{if(!Ft[C])return o?t:{};u=function(t,e,n){var r,o=t.constructor;switch(e){case j:return po(t);case f:case d:return new o(+t);case x:return function(t,e){var n=e?po(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case P:case A:case k:case D:case T:case S:case"[object Uint8ClampedArray]":case I:case E:return ho(t,n);case v:return new o;case g:case b:return new o(t);case m:return function(t){var e=new t.constructor(t.source,rt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case _:return new o;case w:return r=t,kn?ht(kn.call(r)):{}}}(t,C,a)}}i||(i=new Nn);var M=i.get(t);if(M)return M;i.set(t,u),Gu(t)?t.forEach((function(r){u.add(Gn(r,e,n,r,t,i))})):Qu(t)&&t.forEach((function(r,o){u.set(o,Gn(r,e,n,o,t,i))}));var z=O?void 0:(l?s?Qo:Zo:s?ja:Oa)(t);return ie(z||t,(function(r,o){z&&(r=t[o=r]),$n(u,o,Gn(r,e,n,o,t,i))})),u}function Yn(t,e,n){var r=n.length;if(null==t)return!r;for(t=ht(t);r--;){var o=n[r],i=e[o],u=t[o];if(void 0===u&&!(o in t)||!i(u))return!1}return!0}function Xn(t,e,n){if("function"!=typeof t)throw new yt(i);return bi((function(){t.apply(void 0,n)}),e)}function tr(t,e,n,r){var o=-1,i=se,u=!0,a=t.length,c=[],s=e.length;if(!a)return c;n&&(e=de(e,Te(n))),r?(i=fe,u=!1):e.length>=200&&(i=Ie,u=!1,e=new Rn(e));t:for(;++o<a;){var f=t[o],d=null==n?f:n(f);if(f=r||0!==f?f:0,u&&d==d){for(var l=s;l--;)if(e[l]===d)continue t;c.push(f)}else i(e,d,r)||c.push(f)}return c}Tn.templateSettings={escape:L,evaluate:W,interpolate:U,variable:"",imports:{_:Tn}},Tn.prototype=In.prototype,Tn.prototype.constructor=Tn,En.prototype=Sn(In.prototype),En.prototype.constructor=En,Cn.prototype=Sn(In.prototype),Cn.prototype.constructor=Cn,Bn.prototype.clear=function(){this.__data__=mn?mn(null):{},this.size=0},Bn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Bn.prototype.get=function(t){var e=this.__data__;if(mn){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return jt.call(e,t)?e[t]:void 0},Bn.prototype.has=function(t){var e=this.__data__;return mn?void 0!==e[t]:jt.call(e,t)},Bn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=mn&&void 0===e?"__lodash_hash_undefined__":e,this},Mn.prototype.clear=function(){this.__data__=[],this.size=0},Mn.prototype.delete=function(t){var e=this.__data__,n=Vn(e,t);return!(n<0||(n==e.length-1?e.pop():Kt.call(e,n,1),--this.size,0))},Mn.prototype.get=function(t){var e=this.__data__,n=Vn(e,t);return n<0?void 0:e[n][1]},Mn.prototype.has=function(t){return Vn(this.__data__,t)>-1},Mn.prototype.set=function(t,e){var n=this.__data__,r=Vn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},zn.prototype.clear=function(){this.size=0,this.__data__={hash:new Bn,map:new(hn||Mn),string:new Bn}},zn.prototype.delete=function(t){var e=Yo(this,t).delete(t);return this.size-=e?1:0,e},zn.prototype.get=function(t){return Yo(this,t).get(t)},zn.prototype.has=function(t){return Yo(this,t).has(t)},zn.prototype.set=function(t,e){var n=Yo(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Rn.prototype.add=Rn.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Rn.prototype.has=function(t){return this.__data__.has(t)},Nn.prototype.clear=function(){this.__data__=new Mn,this.size=0},Nn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Nn.prototype.get=function(t){return this.__data__.get(t)},Nn.prototype.has=function(t){return this.__data__.has(t)},Nn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Mn){var r=n.__data__;if(!hn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new zn(r)}return n.set(t,e),this.size=n.size,this};var er=Oo(sr),nr=Oo(fr,!0);function rr(t,e){var n=!0;return er(t,(function(t,r,o){return n=!!e(t,r,o)})),n}function or(t,e,n){for(var r=-1,o=t.length;++r<o;){var i=t[r],u=e(i);if(null!=u&&(void 0===a?u==u&&!Xu(u):n(u,a)))var a=u,c=i}return c}function ir(t,e){var n=[];return er(t,(function(t,r,o){e(t,r,o)&&n.push(t)})),n}function ur(t,e,n,r,o){var i=-1,u=t.length;for(n||(n=ui),o||(o=[]);++i<u;){var a=t[i];e>0&&n(a)?e>1?ur(a,e-1,n,r,o):le(o,a):r||(o[o.length]=a)}return o}var ar=jo(),cr=jo(!0);function sr(t,e){return t&&ar(t,e,Oa)}function fr(t,e){return t&&cr(t,e,Oa)}function dr(t,e){return ce(e,(function(e){return Uu(t[e])}))}function lr(t,e){for(var n=0,r=(e=ao(e,t)).length;null!=t&&n<r;)t=t[Di(e[n++])];return n&&n==r?t:void 0}function pr(t,e,n){var r=e(t);return Mu(t)?r:le(r,n(t))}function hr(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":xe&&xe in ht(t)?function(t){var e=jt.call(t,xe),n=t[xe];try{t[xe]=void 0;var r=!0}catch(t){}var o=At.call(t);return r&&(e?t[xe]=n:delete t[xe]),o}(t):function(t){return At.call(t)}(t)}function vr(t,e){return t>e}function gr(t,e){return null!=t&&jt.call(t,e)}function yr(t,e){return null!=t&&e in ht(t)}function mr(t,e,n){for(var o=n?fe:se,i=t[0].length,u=t.length,a=u,c=r(u),s=1/0,f=[];a--;){var d=t[a];a&&e&&(d=de(d,Te(e))),s=cn(d.length,s),c[a]=!n&&(e||i>=120&&d.length>=120)?new Rn(a&&d):void 0}d=t[0];var l=-1,p=c[0];t:for(;++l<i&&f.length<s;){var h=d[l],v=e?e(h):h;if(h=n||0!==h?h:0,!(p?Ie(p,v):o(f,v,n))){for(a=u;--a;){var g=c[a];if(!(g?Ie(g,v):o(t[a],v,n)))continue t}p&&p.push(v),f.push(h)}}return f}function _r(t,e,n){var r=null==(t=gi(t,e=ao(e,t)))?t:t[Di(Wi(e))];return null==r?void 0:re(r,t,n)}function br(t){return Zu(t)&&hr(t)==c}function wr(t,e,n,r,o){return t===e||(null==t||null==e||!Zu(t)&&!Zu(e)?t!=t&&e!=e:function(t,e,n,r,o,i){var u=Mu(t),a=Mu(e),p=u?s:ri(t),h=a?s:ri(e),O=(p=p==c?y:p)==y,P=(h=h==c?y:h)==y,A=p==h;if(A&&Fu(t)){if(!Fu(e))return!1;u=!0,O=!1}if(A&&!O)return i||(i=new Nn),u||ta(t)?$o(t,e,n,r,o,i):function(t,e,n,r,o,i,u){switch(n){case x:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case j:return!(t.byteLength!=e.byteLength||!i(new Lt(t),new Lt(e)));case f:case d:case g:return Iu(+t,+e);case l:return t.name==e.name&&t.message==e.message;case m:case b:return t==e+"";case v:var a=Fe;case _:var c=1&r;if(a||(a=Ue),t.size!=e.size&&!c)return!1;var s=u.get(t);if(s)return s==e;r|=2,u.set(t,e);var p=$o(a(t),a(e),r,o,i,u);return u.delete(t),p;case w:if(kn)return kn.call(t)==kn.call(e)}return!1}(t,e,p,n,r,o,i);if(!(1&n)){var k=O&&jt.call(t,"__wrapped__"),D=P&&jt.call(e,"__wrapped__");if(k||D){var T=k?t.value():t,S=D?e.value():e;return i||(i=new Nn),o(T,S,n,r,i)}}return!!A&&(i||(i=new Nn),function(t,e,n,r,o,i){var u=1&n,a=Zo(t),c=a.length;if(c!=Zo(e).length&&!u)return!1;for(var s=c;s--;){var f=a[s];if(!(u?f in e:jt.call(e,f)))return!1}var d=i.get(t),l=i.get(e);if(d&&l)return d==e&&l==t;var p=!0;i.set(t,e),i.set(e,t);for(var h=u;++s<c;){var v=t[f=a[s]],g=e[f];if(r)var y=u?r(g,v,f,e,t,i):r(v,g,f,t,e,i);if(!(void 0===y?v===g||o(v,g,n,r,i):y)){p=!1;break}h||(h="constructor"==f)}if(p&&!h){var m=t.constructor,_=e.constructor;m==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof m&&m instanceof m&&"function"==typeof _&&_ instanceof _||(p=!1)}return i.delete(t),i.delete(e),p}(t,e,n,r,o,i))}(t,e,n,r,wr,o))}function Or(t,e,n,r){var o=n.length,i=o,u=!r;if(null==t)return!i;for(t=ht(t);o--;){var a=n[o];if(u&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++o<i;){var c=(a=n[o])[0],s=t[c],f=a[1];if(u&&a[2]){if(void 0===s&&!(c in t))return!1}else{var d=new Nn;if(r)var l=r(s,f,c,t,e,d);if(!(void 0===l?wr(f,s,3,r,d):l))return!1}}return!0}function jr(t){return!(!Vu(t)||(e=t,Pt&&Pt in e))&&(Uu(t)?Tt:ut).test(Ti(t));var e}function xr(t){return"function"==typeof t?t:null==t?Ja:"object"==typeof t?Mu(t)?Tr(t[0],t[1]):Dr(t):rc(t)}function Pr(t){if(!li(t))return un(t);var e=[];for(var n in ht(t))jt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Ar(t,e){return t<e}function kr(t,e){var n=-1,o=Ru(t)?r(t.length):[];return er(t,(function(t,r,i){o[++n]=e(t,r,i)})),o}function Dr(t){var e=Xo(t);return 1==e.length&&e[0][2]?hi(e[0][0],e[0][1]):function(n){return n===t||Or(n,t,e)}}function Tr(t,e){return si(t)&&pi(e)?hi(Di(t),e):function(n){var r=ya(n,t);return void 0===r&&r===e?ma(n,t):wr(e,r,3)}}function Sr(t,e,n,r,o){t!==e&&ar(e,(function(i,u){if(o||(o=new Nn),Vu(i))!function(t,e,n,r,o,i,u){var a=mi(t,n),c=mi(e,n),s=u.get(c);if(s)qn(t,n,s);else{var f=i?i(a,c,n+"",t,e,u):void 0,d=void 0===f;if(d){var l=Mu(c),p=!l&&Fu(c),h=!l&&!p&&ta(c);f=c,l||p||h?Mu(a)?f=a:Nu(a)?f=mo(a):p?(d=!1,f=lo(c,!0)):h?(d=!1,f=ho(c,!0)):f=[]:Ku(c)||Bu(c)?(f=a,Bu(a)?f=ca(a):Vu(a)&&!Uu(a)||(f=ii(c))):d=!1}d&&(u.set(c,f),o(f,c,r,i,u),u.delete(c)),qn(t,n,f)}}(t,e,u,n,Sr,r,o);else{var a=r?r(mi(t,u),i,u+"",t,e,o):void 0;void 0===a&&(a=i),qn(t,u,a)}}),ja)}function Ir(t,e){var n=t.length;if(n)return ai(e+=e<0?n:0,n)?t[e]:void 0}function Er(t,e,n){e=e.length?de(e,(function(t){return Mu(t)?function(e){return lr(e,1===t.length?t[0]:t)}:t})):[Ja];var r=-1;return e=de(e,Te(Go())),function(t,e){var r=t.length;for(t.sort((function(t,e){return function(t,e,n){for(var r=-1,o=t.criteria,i=e.criteria,u=o.length,a=n.length;++r<u;){var c=vo(o[r],i[r]);if(c)return r>=a?c:c*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}));r--;)t[r]=t[r].value;return t}(kr(t,(function(t,n,o){return{criteria:de(e,(function(e){return e(t)})),index:++r,value:t}})))}function Cr(t,e,n){for(var r=-1,o=e.length,i={};++r<o;){var u=e[r],a=lr(t,u);n(a,u)&&Wr(i,ao(u,t),a)}return i}function Br(t,e,n,r){var o=r?be:_e,i=-1,u=e.length,a=t;for(t===e&&(e=mo(e)),n&&(a=de(t,Te(n)));++i<u;)for(var c=0,s=e[i],f=n?n(s):s;(c=o(a,f,c,r))>-1;)a!==t&&Kt.call(a,c,1),Kt.call(t,c,1);return t}function Mr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==i){var i=o;ai(o)?Kt.call(t,o,1):Xr(t,o)}}return t}function zr(t,e){return t+tn(dn()*(e-t+1))}function Rr(t,e){var n="";if(!t||e<1||e>9007199254740991)return n;do{e%2&&(n+=t),(e=tn(e/2))&&(t+=t)}while(e);return n}function Nr(t,e){return wi(vi(t,e,Ja),t+"")}function Fr(t){return Ln(Ia(t))}function Lr(t,e){var n=Ia(t);return xi(n,Hn(e,0,n.length))}function Wr(t,e,n,r){if(!Vu(t))return t;for(var o=-1,i=(e=ao(e,t)).length,u=i-1,a=t;null!=a&&++o<i;){var c=Di(e[o]),s=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(o!=u){var f=a[c];void 0===(s=r?r(f,c,a):void 0)&&(s=Vu(f)?f:ai(e[o+1])?[]:{})}$n(a,c,s),a=a[c]}return t}var Ur=_n?function(t,e){return _n.set(t,e),t}:Ja,qr=Ke?function(t,e){return Ke(t,"toString",{configurable:!0,enumerable:!1,value:Va(e),writable:!0})}:Ja;function $r(t){return xi(Ia(t))}function Vr(t,e,n){var o=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var u=r(i);++o<i;)u[o]=t[o+e];return u}function Zr(t,e){var n;return er(t,(function(t,r,o){return!(n=e(t,r,o))})),!!n}function Qr(t,e,n){var r=0,o=null==t?r:t.length;if("number"==typeof e&&e==e&&o<=2147483647){for(;r<o;){var i=r+o>>>1,u=t[i];null!==u&&!Xu(u)&&(n?u<=e:u<e)?r=i+1:o=i}return o}return Jr(t,e,Ja,n)}function Jr(t,e,n,r){var o=0,i=null==t?0:t.length;if(0===i)return 0;for(var u=(e=n(e))!=e,a=null===e,c=Xu(e),s=void 0===e;o<i;){var f=tn((o+i)/2),d=n(t[f]),l=void 0!==d,p=null===d,h=d==d,v=Xu(d);if(u)var g=r||h;else g=s?h&&(r||l):a?h&&l&&(r||!p):c?h&&l&&!p&&(r||!v):!p&&!v&&(r?d<=e:d<e);g?o=f+1:i=f}return cn(i,4294967294)}function Kr(t,e){for(var n=-1,r=t.length,o=0,i=[];++n<r;){var u=t[n],a=e?e(u):u;if(!n||!Iu(a,c)){var c=a;i[o++]=0===u?0:u}}return i}function Hr(t){return"number"==typeof t?t:Xu(t)?NaN:+t}function Gr(t){if("string"==typeof t)return t;if(Mu(t))return de(t,Gr)+"";if(Xu(t))return Dn?Dn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Yr(t,e,n){var r=-1,o=se,i=t.length,u=!0,a=[],c=a;if(n)u=!1,o=fe;else if(i>=200){var s=e?null:No(t);if(s)return Ue(s);u=!1,o=Ie,c=new Rn}else c=e?[]:a;t:for(;++r<i;){var f=t[r],d=e?e(f):f;if(f=n||0!==f?f:0,u&&d==d){for(var l=c.length;l--;)if(c[l]===d)continue t;e&&c.push(d),a.push(f)}else o(c,d,n)||(c!==a&&c.push(d),a.push(f))}return a}function Xr(t,e){return null==(t=gi(t,e=ao(e,t)))||delete t[Di(Wi(e))]}function to(t,e,n,r){return Wr(t,e,n(lr(t,e)),r)}function eo(t,e,n,r){for(var o=t.length,i=r?o:-1;(r?i--:++i<o)&&e(t[i],i,t););return n?Vr(t,r?0:i,r?i+1:o):Vr(t,r?i+1:0,r?o:i)}function no(t,e){var n=t;return n instanceof Cn&&(n=n.value()),pe(e,(function(t,e){return e.func.apply(e.thisArg,le([t],e.args))}),n)}function ro(t,e,n){var o=t.length;if(o<2)return o?Yr(t[0]):[];for(var i=-1,u=r(o);++i<o;)for(var a=t[i],c=-1;++c<o;)c!=i&&(u[i]=tr(u[i]||a,t[c],e,n));return Yr(ur(u,1),e,n)}function oo(t,e,n){for(var r=-1,o=t.length,i=e.length,u={};++r<o;){var a=r<i?e[r]:void 0;n(u,t[r],a)}return u}function io(t){return Nu(t)?t:[]}function uo(t){return"function"==typeof t?t:Ja}function ao(t,e){return Mu(t)?t:si(t,e)?[t]:ki(sa(t))}var co=Nr;function so(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:Vr(t,e,n)}var fo=He||function(t){return Vt.clearTimeout(t)};function lo(t,e){if(e)return t.slice();var n=t.length,r=qt?qt(n):new t.constructor(n);return t.copy(r),r}function po(t){var e=new t.constructor(t.byteLength);return new Lt(e).set(new Lt(t)),e}function ho(t,e){var n=e?po(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function vo(t,e){if(t!==e){var n=void 0!==t,r=null===t,o=t==t,i=Xu(t),u=void 0!==e,a=null===e,c=e==e,s=Xu(e);if(!a&&!s&&!i&&t>e||i&&u&&c&&!a&&!s||r&&u&&c||!n&&c||!o)return 1;if(!r&&!i&&!s&&t<e||s&&n&&o&&!r&&!i||a&&n&&o||!u&&o||!c)return-1}return 0}function go(t,e,n,o){for(var i=-1,u=t.length,a=n.length,c=-1,s=e.length,f=an(u-a,0),d=r(s+f),l=!o;++c<s;)d[c]=e[c];for(;++i<a;)(l||i<u)&&(d[n[i]]=t[i]);for(;f--;)d[c++]=t[i++];return d}function yo(t,e,n,o){for(var i=-1,u=t.length,a=-1,c=n.length,s=-1,f=e.length,d=an(u-c,0),l=r(d+f),p=!o;++i<d;)l[i]=t[i];for(var h=i;++s<f;)l[h+s]=e[s];for(;++a<c;)(p||i<u)&&(l[h+n[a]]=t[i++]);return l}function mo(t,e){var n=-1,o=t.length;for(e||(e=r(o));++n<o;)e[n]=t[n];return e}function _o(t,e,n,r){var o=!n;n||(n={});for(var i=-1,u=e.length;++i<u;){var a=e[i],c=r?r(n[a],t[a],a,n,t):void 0;void 0===c&&(c=t[a]),o?Jn(n,a,c):$n(n,a,c)}return n}function bo(t,e){return function(n,r){var o=Mu(n)?oe:Zn,i=e?e():{};return o(n,t,Go(r,2),i)}}function wo(t){return Nr((function(e,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,u=o>2?n[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,u&&ci(n[0],n[1],u)&&(i=o<3?void 0:i,o=1),e=ht(e);++r<o;){var a=n[r];a&&t(e,a,r,i)}return e}))}function Oo(t,e){return function(n,r){if(null==n)return n;if(!Ru(n))return t(n,r);for(var o=n.length,i=e?o:-1,u=ht(n);(e?i--:++i<o)&&!1!==r(u[i],i,u););return n}}function jo(t){return function(e,n,r){for(var o=-1,i=ht(e),u=r(e),a=u.length;a--;){var c=u[t?a:++o];if(!1===n(i[c],c,i))break}return e}}function xo(t){return function(e){var n=Ne(e=sa(e))?Ve(e):void 0,r=n?n[0]:e.charAt(0),o=n?so(n,1).join(""):e.slice(1);return r[t]()+o}}function Po(t){return function(e){return pe(Ua(Ba(e).replace(St,"")),t,"")}}function Ao(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Sn(t.prototype),r=t.apply(n,e);return Vu(r)?r:n}}function ko(t){return function(e,n,r){var o=ht(e);if(!Ru(e)){var i=Go(n,3);e=Oa(e),n=function(t){return i(o[t],t,o)}}var u=t(e,n,r);return u>-1?o[i?e[u]:u]:void 0}}function Do(t){return Vo((function(e){var n=e.length,r=n,o=En.prototype.thru;for(t&&e.reverse();r--;){var u=e[r];if("function"!=typeof u)throw new yt(i);if(o&&!a&&"wrapper"==Ko(u))var a=new En([],!0)}for(r=a?r:n;++r<n;){var c=Ko(u=e[r]),s="wrapper"==c?Jo(u):void 0;a=s&&fi(s[0])&&424==s[1]&&!s[4].length&&1==s[9]?a[Ko(s[0])].apply(a,s[3]):1==u.length&&fi(u)?a[c]():a.thru(u)}return function(){var t=arguments,r=t[0];if(a&&1==t.length&&Mu(r))return a.plant(r).value();for(var o=0,i=n?e[o].apply(this,t):r;++o<n;)i=e[o].call(this,i);return i}}))}function To(t,e,n,o,i,u,a,c,s,f){var d=128&e,l=1&e,p=2&e,h=24&e,v=512&e,g=p?void 0:Ao(t);return function y(){for(var m=arguments.length,_=r(m),b=m;b--;)_[b]=arguments[b];if(h)var w=Ho(y),O=Be(_,w);if(o&&(_=go(_,o,i,h)),u&&(_=yo(_,u,a,h)),m-=O,h&&m<f){var j=We(_,w);return zo(t,e,To,y.placeholder,n,_,j,c,s,f-m)}var x=l?n:this,P=p?x[t]:t;return m=_.length,c?_=yi(_,c):v&&m>1&&_.reverse(),d&&s<m&&(_.length=s),this&&this!==Vt&&this instanceof y&&(P=g||Ao(P)),P.apply(x,_)}}function So(t,e){return function(n,r){return function(t,e,n,r){return sr(t,(function(t,o,i){e(r,n(t),o,i)})),r}(n,t,e(r),{})}}function Io(t,e){return function(n,r){var o;if(void 0===n&&void 0===r)return e;if(void 0!==n&&(o=n),void 0!==r){if(void 0===o)return r;"string"==typeof n||"string"==typeof r?(n=Gr(n),r=Gr(r)):(n=Hr(n),r=Hr(r)),o=t(n,r)}return o}}function Eo(t){return Vo((function(e){return e=de(e,Te(Go())),Nr((function(n){var r=this;return t(e,(function(t){return re(t,r,n)}))}))}))}function Co(t,e){var n=(e=void 0===e?" ":Gr(e)).length;if(n<2)return n?Rr(e,t):e;var r=Rr(e,Xe(t/$e(e)));return Ne(e)?so(Ve(r),0,t).join(""):r.slice(0,t)}function Bo(t){return function(e,n,o){return o&&"number"!=typeof o&&ci(e,n,o)&&(n=o=void 0),e=oa(e),void 0===n?(n=e,e=0):n=oa(n),function(t,e,n,o){for(var i=-1,u=an(Xe((e-t)/(n||1)),0),a=r(u);u--;)a[o?u:++i]=t,t+=n;return a}(e,n,o=void 0===o?e<n?1:-1:oa(o),t)}}function Mo(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=aa(e),n=aa(n)),t(e,n)}}function zo(t,e,n,r,o,i,u,a,c,s){var f=8&e;e|=f?32:64,4&(e&=~(f?64:32))||(e&=-4);var d=[t,e,o,f?i:void 0,f?u:void 0,f?void 0:i,f?void 0:u,a,c,s],l=n.apply(void 0,d);return fi(t)&&_i(l,d),l.placeholder=r,Oi(l,t,e)}function Ro(t){var e=pt[t];return function(t,n){if(t=aa(t),(n=null==n?0:cn(ia(n),292))&&rn(t)){var r=(sa(t)+"e").split("e");return+((r=(sa(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var No=gn&&1/Ue(new gn([,-0]))[1]==1/0?function(t){return new gn(t)}:Xa;function Fo(t){return function(e){var n=ri(e);return n==v?Fe(e):n==_?qe(e):function(t,e){return de(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Lo(t,e,n,o,a,c,s,f){var d=2&e;if(!d&&"function"!=typeof t)throw new yt(i);var l=o?o.length:0;if(l||(e&=-97,o=a=void 0),s=void 0===s?s:an(ia(s),0),f=void 0===f?f:ia(f),l-=a?a.length:0,64&e){var p=o,h=a;o=a=void 0}var v=d?void 0:Jo(t),g=[t,e,n,o,a,p,h,c,s,f];if(v&&function(t,e){var n=t[1],r=e[1],o=n|r,i=o<131,a=128==r&&8==n||128==r&&256==n&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!i&&!a)return t;1&r&&(t[2]=e[2],o|=1&n?0:4);var c=e[3];if(c){var s=t[3];t[3]=s?go(s,c,e[4]):c,t[4]=s?We(t[3],u):e[4]}(c=e[5])&&(s=t[5],t[5]=s?yo(s,c,e[6]):c,t[6]=s?We(t[5],u):e[6]),(c=e[7])&&(t[7]=c),128&r&&(t[8]=null==t[8]?e[8]:cn(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=o}(g,v),t=g[0],e=g[1],n=g[2],o=g[3],a=g[4],!(f=g[9]=void 0===g[9]?d?0:t.length:an(g[9]-l,0))&&24&e&&(e&=-25),e&&1!=e)y=8==e||16==e?function(t,e,n){var o=Ao(t);return function i(){for(var u=arguments.length,a=r(u),c=u,s=Ho(i);c--;)a[c]=arguments[c];var f=u<3&&a[0]!==s&&a[u-1]!==s?[]:We(a,s);if((u-=f.length)<n)return zo(t,e,To,i.placeholder,void 0,a,f,void 0,void 0,n-u);var d=this&&this!==Vt&&this instanceof i?o:t;return re(d,this,a)}}(t,e,f):32!=e&&33!=e||a.length?To.apply(void 0,g):function(t,e,n,o){var i=1&e,u=Ao(t);return function e(){for(var a=-1,c=arguments.length,s=-1,f=o.length,d=r(f+c),l=this&&this!==Vt&&this instanceof e?u:t;++s<f;)d[s]=o[s];for(;c--;)d[s++]=arguments[++a];return re(l,i?n:this,d)}}(t,e,n,o);else var y=function(t,e,n){var r=1&e,o=Ao(t);return function e(){var i=this&&this!==Vt&&this instanceof e?o:t;return i.apply(r?n:this,arguments)}}(t,e,n);return Oi((v?Ur:_i)(y,g),t,e)}function Wo(t,e,n,r){return void 0===t||Iu(t,bt[n])&&!jt.call(r,n)?e:t}function Uo(t,e,n,r,o,i){return Vu(t)&&Vu(e)&&(i.set(e,t),Sr(t,e,void 0,Uo,i),i.delete(e)),t}function qo(t){return Ku(t)?void 0:t}function $o(t,e,n,r,o,i){var u=1&n,a=t.length,c=e.length;if(a!=c&&!(u&&c>a))return!1;var s=i.get(t),f=i.get(e);if(s&&f)return s==e&&f==t;var d=-1,l=!0,p=2&n?new Rn:void 0;for(i.set(t,e),i.set(e,t);++d<a;){var h=t[d],v=e[d];if(r)var g=u?r(v,h,d,e,t,i):r(h,v,d,t,e,i);if(void 0!==g){if(g)continue;l=!1;break}if(p){if(!ve(e,(function(t,e){if(!Ie(p,e)&&(h===t||o(h,t,n,r,i)))return p.push(e)}))){l=!1;break}}else if(h!==v&&!o(h,v,n,r,i)){l=!1;break}}return i.delete(t),i.delete(e),l}function Vo(t){return wi(vi(t,void 0,zi),t+"")}function Zo(t){return pr(t,Oa,ei)}function Qo(t){return pr(t,ja,ni)}var Jo=_n?function(t){return _n.get(t)}:Xa;function Ko(t){for(var e=t.name+"",n=bn[e],r=jt.call(bn,e)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==t)return o.name}return e}function Ho(t){return(jt.call(Tn,"placeholder")?Tn:t).placeholder}function Go(){var t=Tn.iteratee||Ka;return t=t===Ka?xr:t,arguments.length?t(arguments[0],arguments[1]):t}function Yo(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Xo(t){for(var e=Oa(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,pi(o)]}return e}function ti(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return jr(n)?n:void 0}var ei=en?function(t){return null==t?[]:(t=ht(t),ce(en(t),(function(e){return Qt.call(t,e)})))}:uc,ni=en?function(t){for(var e=[];t;)le(e,ei(t)),t=$t(t);return e}:uc,ri=hr;function oi(t,e,n){for(var r=-1,o=(e=ao(e,t)).length,i=!1;++r<o;){var u=Di(e[r]);if(!(i=null!=t&&n(t,u)))break;t=t[u]}return i||++r!=o?i:!!(o=null==t?0:t.length)&&$u(o)&&ai(u,o)&&(Mu(t)||Bu(t))}function ii(t){return"function"!=typeof t.constructor||li(t)?{}:Sn($t(t))}function ui(t){return Mu(t)||Bu(t)||!!(Ht&&t&&t[Ht])}function ai(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&ct.test(t))&&t>-1&&t%1==0&&t<e}function ci(t,e,n){if(!Vu(n))return!1;var r=typeof e;return!!("number"==r?Ru(n)&&ai(e,n.length):"string"==r&&e in n)&&Iu(n[e],t)}function si(t,e){if(Mu(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Xu(t))||$.test(t)||!q.test(t)||null!=e&&t in ht(e)}function fi(t){var e=Ko(t),n=Tn[e];if("function"!=typeof n||!(e in Cn.prototype))return!1;if(t===n)return!0;var r=Jo(n);return!!r&&t===r[0]}(pn&&ri(new pn(new ArrayBuffer(1)))!=x||hn&&ri(new hn)!=v||vn&&"[object Promise]"!=ri(vn.resolve())||gn&&ri(new gn)!=_||yn&&ri(new yn)!=O)&&(ri=function(t){var e=hr(t),n=e==y?t.constructor:void 0,r=n?Ti(n):"";if(r)switch(r){case wn:return x;case On:return v;case jn:return"[object Promise]";case xn:return _;case Pn:return O}return e});var di=wt?Uu:ac;function li(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||bt)}function pi(t){return t==t&&!Vu(t)}function hi(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in ht(n))}}function vi(t,e,n){return e=an(void 0===e?t.length-1:e,0),function(){for(var o=arguments,i=-1,u=an(o.length-e,0),a=r(u);++i<u;)a[i]=o[e+i];i=-1;for(var c=r(e+1);++i<e;)c[i]=o[i];return c[e]=n(a),re(t,this,c)}}function gi(t,e){return e.length<2?t:lr(t,Vr(e,0,-1))}function yi(t,e){for(var n=t.length,r=cn(e.length,n),o=mo(t);r--;){var i=e[r];t[r]=ai(i,n)?o[i]:void 0}return t}function mi(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var _i=ji(Ur),bi=Ye||function(t,e){return Vt.setTimeout(t,e)},wi=ji(qr);function Oi(t,e,n){var r=e+"";return wi(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(H,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return ie(a,(function(n){var r="_."+n[0];e&n[1]&&!se(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(G);return e?e[1].split(Y):[]}(r),n)))}function ji(t){var e=0,n=0;return function(){var r=sn(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function xi(t,e){var n=-1,r=t.length,o=r-1;for(e=void 0===e?r:e;++n<e;){var i=zr(n,o),u=t[i];t[i]=t[n],t[n]=u}return t.length=e,t}var Pi,Ai,ki=(Pi=Pu((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(V,(function(t,n,r,o){e.push(r?o.replace(et,"$1"):n||t)})),e}),(function(t){return 500===Ai.size&&Ai.clear(),t})),Ai=Pi.cache,Pi);function Di(t){if("string"==typeof t||Xu(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Ti(t){if(null!=t){try{return Ot.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Si(t){if(t instanceof Cn)return t.clone();var e=new En(t.__wrapped__,t.__chain__);return e.__actions__=mo(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Ii=Nr((function(t,e){return Nu(t)?tr(t,ur(e,1,Nu,!0)):[]})),Ei=Nr((function(t,e){var n=Wi(e);return Nu(n)&&(n=void 0),Nu(t)?tr(t,ur(e,1,Nu,!0),Go(n,2)):[]})),Ci=Nr((function(t,e){var n=Wi(e);return Nu(n)&&(n=void 0),Nu(t)?tr(t,ur(e,1,Nu,!0),void 0,n):[]}));function Bi(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:ia(n);return o<0&&(o=an(r+o,0)),me(t,Go(e,3),o)}function Mi(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r-1;return void 0!==n&&(o=ia(n),o=n<0?an(r+o,0):cn(o,r-1)),me(t,Go(e,3),o,!0)}function zi(t){return null!=t&&t.length?ur(t,1):[]}function Ri(t){return t&&t.length?t[0]:void 0}var Ni=Nr((function(t){var e=de(t,io);return e.length&&e[0]===t[0]?mr(e):[]})),Fi=Nr((function(t){var e=Wi(t),n=de(t,io);return e===Wi(n)?e=void 0:n.pop(),n.length&&n[0]===t[0]?mr(n,Go(e,2)):[]})),Li=Nr((function(t){var e=Wi(t),n=de(t,io);return(e="function"==typeof e?e:void 0)&&n.pop(),n.length&&n[0]===t[0]?mr(n,void 0,e):[]}));function Wi(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}var Ui=Nr(qi);function qi(t,e){return t&&t.length&&e&&e.length?Br(t,e):t}var $i=Vo((function(t,e){var n=null==t?0:t.length,r=Kn(t,e);return Mr(t,de(e,(function(t){return ai(t,n)?+t:t})).sort(vo)),r}));function Vi(t){return null==t?t:ln.call(t)}var Zi=Nr((function(t){return Yr(ur(t,1,Nu,!0))})),Qi=Nr((function(t){var e=Wi(t);return Nu(e)&&(e=void 0),Yr(ur(t,1,Nu,!0),Go(e,2))})),Ji=Nr((function(t){var e=Wi(t);return e="function"==typeof e?e:void 0,Yr(ur(t,1,Nu,!0),void 0,e)}));function Ki(t){if(!t||!t.length)return[];var e=0;return t=ce(t,(function(t){if(Nu(t))return e=an(t.length,e),!0})),ke(e,(function(e){return de(t,je(e))}))}function Hi(t,e){if(!t||!t.length)return[];var n=Ki(t);return null==e?n:de(n,(function(t){return re(e,void 0,t)}))}var Gi=Nr((function(t,e){return Nu(t)?tr(t,e):[]})),Yi=Nr((function(t){return ro(ce(t,Nu))})),Xi=Nr((function(t){var e=Wi(t);return Nu(e)&&(e=void 0),ro(ce(t,Nu),Go(e,2))})),tu=Nr((function(t){var e=Wi(t);return e="function"==typeof e?e:void 0,ro(ce(t,Nu),void 0,e)})),eu=Nr(Ki),nu=Nr((function(t){var e=t.length,n=e>1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,Hi(t,n)}));function ru(t){var e=Tn(t);return e.__chain__=!0,e}function ou(t,e){return e(t)}var iu=Vo((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(e){return Kn(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Cn&&ai(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:ou,args:[o],thisArg:void 0}),new En(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(o)})),uu=bo((function(t,e,n){jt.call(t,n)?++t[n]:Jn(t,n,1)})),au=ko(Bi),cu=ko(Mi);function su(t,e){return(Mu(t)?ie:er)(t,Go(e,3))}function fu(t,e){return(Mu(t)?ue:nr)(t,Go(e,3))}var du=bo((function(t,e,n){jt.call(t,n)?t[n].push(e):Jn(t,n,[e])})),lu=Nr((function(t,e,n){var o=-1,i="function"==typeof e,u=Ru(t)?r(t.length):[];return er(t,(function(t){u[++o]=i?re(e,t,n):_r(t,e,n)})),u})),pu=bo((function(t,e,n){Jn(t,n,e)}));function hu(t,e){return(Mu(t)?de:kr)(t,Go(e,3))}var vu=bo((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),gu=Nr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&ci(t,e[0],e[1])?e=[]:n>2&&ci(e[0],e[1],e[2])&&(e=[e[0]]),Er(t,ur(e,1),[])})),yu=Ge||function(){return Vt.Date.now()};function mu(t,e,n){return e=n?void 0:e,Lo(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function _u(t,e){var n;if("function"!=typeof e)throw new yt(i);return t=ia(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}var bu=Nr((function(t,e,n){var r=1;if(n.length){var o=We(n,Ho(bu));r|=32}return Lo(t,r,e,n,o)})),wu=Nr((function(t,e,n){var r=3;if(n.length){var o=We(n,Ho(wu));r|=32}return Lo(e,r,t,n,o)}));function Ou(t,e,n){var r,o,u,a,c,s,f=0,d=!1,l=!1,p=!0;if("function"!=typeof t)throw new yt(i);function h(e){var n=r,i=o;return r=o=void 0,f=e,a=t.apply(i,n)}function v(t){return f=t,c=bi(y,e),d?h(t):a}function g(t){var n=t-s;return void 0===s||n>=e||n<0||l&&t-f>=u}function y(){var t=yu();if(g(t))return m(t);c=bi(y,function(t){var n=e-(t-s);return l?cn(n,u-(t-f)):n}(t))}function m(t){return c=void 0,p&&r?h(t):(r=o=void 0,a)}function _(){var t=yu(),n=g(t);if(r=arguments,o=this,s=t,n){if(void 0===c)return v(s);if(l)return fo(c),c=bi(y,e),h(s)}return void 0===c&&(c=bi(y,e)),a}return e=aa(e)||0,Vu(n)&&(d=!!n.leading,u=(l="maxWait"in n)?an(aa(n.maxWait)||0,e):u,p="trailing"in n?!!n.trailing:p),_.cancel=function(){void 0!==c&&fo(c),f=0,r=s=o=c=void 0},_.flush=function(){return void 0===c?a:m(yu())},_}var ju=Nr((function(t,e){return Xn(t,1,e)})),xu=Nr((function(t,e,n){return Xn(t,aa(e)||0,n)}));function Pu(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new yt(i);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var u=t.apply(this,r);return n.cache=i.set(o,u)||i,u};return n.cache=new(Pu.Cache||zn),n}function Au(t){if("function"!=typeof t)throw new yt(i);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Pu.Cache=zn;var ku=co((function(t,e){var n=(e=1==e.length&&Mu(e[0])?de(e[0],Te(Go())):de(ur(e,1),Te(Go()))).length;return Nr((function(r){for(var o=-1,i=cn(r.length,n);++o<i;)r[o]=e[o].call(this,r[o]);return re(t,this,r)}))})),Du=Nr((function(t,e){return Lo(t,32,void 0,e,We(e,Ho(Du)))})),Tu=Nr((function(t,e){return Lo(t,64,void 0,e,We(e,Ho(Tu)))})),Su=Vo((function(t,e){return Lo(t,256,void 0,void 0,void 0,e)}));function Iu(t,e){return t===e||t!=t&&e!=e}var Eu=Mo(vr),Cu=Mo((function(t,e){return t>=e})),Bu=br(function(){return arguments}())?br:function(t){return Zu(t)&&jt.call(t,"callee")&&!Qt.call(t,"callee")},Mu=r.isArray,zu=Gt?Te(Gt):function(t){return Zu(t)&&hr(t)==j};function Ru(t){return null!=t&&$u(t.length)&&!Uu(t)}function Nu(t){return Zu(t)&&Ru(t)}var Fu=nn||ac,Lu=Yt?Te(Yt):function(t){return Zu(t)&&hr(t)==d};function Wu(t){if(!Zu(t))return!1;var e=hr(t);return e==l||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Ku(t)}function Uu(t){if(!Vu(t))return!1;var e=hr(t);return e==p||e==h||"[object AsyncFunction]"==e||"[object Proxy]"==e}function qu(t){return"number"==typeof t&&t==ia(t)}function $u(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Vu(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Zu(t){return null!=t&&"object"==typeof t}var Qu=Xt?Te(Xt):function(t){return Zu(t)&&ri(t)==v};function Ju(t){return"number"==typeof t||Zu(t)&&hr(t)==g}function Ku(t){if(!Zu(t)||hr(t)!=y)return!1;var e=$t(t);if(null===e)return!0;var n=jt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ot.call(n)==kt}var Hu=te?Te(te):function(t){return Zu(t)&&hr(t)==m},Gu=ee?Te(ee):function(t){return Zu(t)&&ri(t)==_};function Yu(t){return"string"==typeof t||!Mu(t)&&Zu(t)&&hr(t)==b}function Xu(t){return"symbol"==typeof t||Zu(t)&&hr(t)==w}var ta=ne?Te(ne):function(t){return Zu(t)&&$u(t.length)&&!!Nt[hr(t)]},ea=Mo(Ar),na=Mo((function(t,e){return t<=e}));function ra(t){if(!t)return[];if(Ru(t))return Yu(t)?Ve(t):mo(t);if(ge&&t[ge])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[ge]());var e=ri(t);return(e==v?Fe:e==_?Ue:Ia)(t)}function oa(t){return t?(t=aa(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ia(t){var e=oa(t),n=e%1;return e==e?n?e-n:e:0}function ua(t){return t?Hn(ia(t),0,4294967295):0}function aa(t){if("number"==typeof t)return t;if(Xu(t))return NaN;if(Vu(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Vu(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=De(t);var n=it.test(t);return n||at.test(t)?Ut(t.slice(2),n?2:8):ot.test(t)?NaN:+t}function ca(t){return _o(t,ja(t))}function sa(t){return null==t?"":Gr(t)}var fa=wo((function(t,e){if(li(e)||Ru(e))_o(e,Oa(e),t);else for(var n in e)jt.call(e,n)&&$n(t,n,e[n])})),da=wo((function(t,e){_o(e,ja(e),t)})),la=wo((function(t,e,n,r){_o(e,ja(e),t,r)})),pa=wo((function(t,e,n,r){_o(e,Oa(e),t,r)})),ha=Vo(Kn),va=Nr((function(t,e){t=ht(t);var n=-1,r=e.length,o=r>2?e[2]:void 0;for(o&&ci(e[0],e[1],o)&&(r=1);++n<r;)for(var i=e[n],u=ja(i),a=-1,c=u.length;++a<c;){var s=u[a],f=t[s];(void 0===f||Iu(f,bt[s])&&!jt.call(t,s))&&(t[s]=i[s])}return t})),ga=Nr((function(t){return t.push(void 0,Uo),re(Pa,void 0,t)}));function ya(t,e,n){var r=null==t?void 0:lr(t,e);return void 0===r?n:r}function ma(t,e){return null!=t&&oi(t,e,yr)}var _a=So((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=At.call(e)),t[e]=n}),Va(Ja)),ba=So((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=At.call(e)),jt.call(t,e)?t[e].push(n):t[e]=[n]}),Go),wa=Nr(_r);function Oa(t){return Ru(t)?Fn(t):Pr(t)}function ja(t){return Ru(t)?Fn(t,!0):function(t){if(!Vu(t))return function(t){var e=[];if(null!=t)for(var n in ht(t))e.push(n);return e}(t);var e=li(t),n=[];for(var r in t)("constructor"!=r||!e&&jt.call(t,r))&&n.push(r);return n}(t)}var xa=wo((function(t,e,n){Sr(t,e,n)})),Pa=wo((function(t,e,n,r){Sr(t,e,n,r)})),Aa=Vo((function(t,e){var n={};if(null==t)return n;var r=!1;e=de(e,(function(e){return e=ao(e,t),r||(r=e.length>1),e})),_o(t,Qo(t),n),r&&(n=Gn(n,7,qo));for(var o=e.length;o--;)Xr(n,e[o]);return n})),ka=Vo((function(t,e){return null==t?{}:function(t,e){return Cr(t,e,(function(e,n){return ma(t,n)}))}(t,e)}));function Da(t,e){if(null==t)return{};var n=de(Qo(t),(function(t){return[t]}));return e=Go(e),Cr(t,n,(function(t,n){return e(t,n[0])}))}var Ta=Fo(Oa),Sa=Fo(ja);function Ia(t){return null==t?[]:Se(t,Oa(t))}var Ea=Po((function(t,e,n){return e=e.toLowerCase(),t+(n?Ca(e):e)}));function Ca(t){return Wa(sa(t).toLowerCase())}function Ba(t){return(t=sa(t))&&t.replace(st,Me).replace(It,"")}var Ma=Po((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),za=Po((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Ra=xo("toLowerCase"),Na=Po((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),Fa=Po((function(t,e,n){return t+(n?" ":"")+Wa(e)})),La=Po((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Wa=xo("toUpperCase");function Ua(t,e,n){return t=sa(t),void 0===(e=n?void 0:e)?function(t){return Mt.test(t)}(t)?function(t){return t.match(Ct)||[]}(t):function(t){return t.match(X)||[]}(t):t.match(e)||[]}var qa=Nr((function(t,e){try{return re(t,void 0,e)}catch(t){return Wu(t)?t:new K(t)}})),$a=Vo((function(t,e){return ie(e,(function(e){e=Di(e),Jn(t,e,bu(t[e],t))})),t}));function Va(t){return function(){return t}}var Za=Do(),Qa=Do(!0);function Ja(t){return t}function Ka(t){return xr("function"==typeof t?t:Gn(t,1))}var Ha=Nr((function(t,e){return function(n){return _r(n,t,e)}})),Ga=Nr((function(t,e){return function(n){return _r(t,n,e)}}));function Ya(t,e,n){var r=Oa(e),o=dr(e,r);null!=n||Vu(e)&&(o.length||!r.length)||(n=e,e=t,t=this,o=dr(e,Oa(e)));var i=!(Vu(n)&&"chain"in n&&!n.chain),u=Uu(t);return ie(o,(function(n){var r=e[n];t[n]=r,u&&(t.prototype[n]=function(){var e=this.__chain__;if(i||e){var n=t(this.__wrapped__),o=n.__actions__=mo(this.__actions__);return o.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,le([this.value()],arguments))})})),t}function Xa(){}var tc=Eo(de),ec=Eo(ae),nc=Eo(ve);function rc(t){return si(t)?je(Di(t)):function(t){return function(e){return lr(e,t)}}(t)}var oc=Bo(),ic=Bo(!0);function uc(){return[]}function ac(){return!1}var cc,sc=Io((function(t,e){return t+e}),0),fc=Ro("ceil"),dc=Io((function(t,e){return t/e}),1),lc=Ro("floor"),pc=Io((function(t,e){return t*e}),1),hc=Ro("round"),vc=Io((function(t,e){return t-e}),0);return Tn.after=function(t,e){if("function"!=typeof e)throw new yt(i);return t=ia(t),function(){if(--t<1)return e.apply(this,arguments)}},Tn.ary=mu,Tn.assign=fa,Tn.assignIn=da,Tn.assignInWith=la,Tn.assignWith=pa,Tn.at=ha,Tn.before=_u,Tn.bind=bu,Tn.bindAll=$a,Tn.bindKey=wu,Tn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Mu(t)?t:[t]},Tn.chain=ru,Tn.chunk=function(t,e,n){e=(n?ci(t,e,n):void 0===e)?1:an(ia(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var i=0,u=0,a=r(Xe(o/e));i<o;)a[u++]=Vr(t,i,i+=e);return a},Tn.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,o=[];++e<n;){var i=t[e];i&&(o[r++]=i)}return o},Tn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=r(t-1),n=arguments[0],o=t;o--;)e[o-1]=arguments[o];return le(Mu(n)?mo(n):[n],ur(e,1))},Tn.cond=function(t){var e=null==t?0:t.length,n=Go();return t=e?de(t,(function(t){if("function"!=typeof t[1])throw new yt(i);return[n(t[0]),t[1]]})):[],Nr((function(n){for(var r=-1;++r<e;){var o=t[r];if(re(o[0],this,n))return re(o[1],this,n)}}))},Tn.conforms=function(t){return function(t){var e=Oa(t);return function(n){return Yn(n,t,e)}}(Gn(t,1))},Tn.constant=Va,Tn.countBy=uu,Tn.create=function(t,e){var n=Sn(t);return null==e?n:Qn(n,e)},Tn.curry=function t(e,n,r){var o=Lo(e,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return o.placeholder=t.placeholder,o},Tn.curryRight=function t(e,n,r){var o=Lo(e,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return o.placeholder=t.placeholder,o},Tn.debounce=Ou,Tn.defaults=va,Tn.defaultsDeep=ga,Tn.defer=ju,Tn.delay=xu,Tn.difference=Ii,Tn.differenceBy=Ei,Tn.differenceWith=Ci,Tn.drop=function(t,e,n){var r=null==t?0:t.length;return r?Vr(t,(e=n||void 0===e?1:ia(e))<0?0:e,r):[]},Tn.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?Vr(t,0,(e=r-(e=n||void 0===e?1:ia(e)))<0?0:e):[]},Tn.dropRightWhile=function(t,e){return t&&t.length?eo(t,Go(e,3),!0,!0):[]},Tn.dropWhile=function(t,e){return t&&t.length?eo(t,Go(e,3),!0):[]},Tn.fill=function(t,e,n,r){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&ci(t,e,n)&&(n=0,r=o),function(t,e,n,r){var o=t.length;for((n=ia(n))<0&&(n=-n>o?0:o+n),(r=void 0===r||r>o?o:ia(r))<0&&(r+=o),r=n>r?0:ua(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},Tn.filter=function(t,e){return(Mu(t)?ce:ir)(t,Go(e,3))},Tn.flatMap=function(t,e){return ur(hu(t,e),1)},Tn.flatMapDeep=function(t,e){return ur(hu(t,e),1/0)},Tn.flatMapDepth=function(t,e,n){return n=void 0===n?1:ia(n),ur(hu(t,e),n)},Tn.flatten=zi,Tn.flattenDeep=function(t){return null!=t&&t.length?ur(t,1/0):[]},Tn.flattenDepth=function(t,e){return null!=t&&t.length?ur(t,e=void 0===e?1:ia(e)):[]},Tn.flip=function(t){return Lo(t,512)},Tn.flow=Za,Tn.flowRight=Qa,Tn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var o=t[e];r[o[0]]=o[1]}return r},Tn.functions=function(t){return null==t?[]:dr(t,Oa(t))},Tn.functionsIn=function(t){return null==t?[]:dr(t,ja(t))},Tn.groupBy=du,Tn.initial=function(t){return null!=t&&t.length?Vr(t,0,-1):[]},Tn.intersection=Ni,Tn.intersectionBy=Fi,Tn.intersectionWith=Li,Tn.invert=_a,Tn.invertBy=ba,Tn.invokeMap=lu,Tn.iteratee=Ka,Tn.keyBy=pu,Tn.keys=Oa,Tn.keysIn=ja,Tn.map=hu,Tn.mapKeys=function(t,e){var n={};return e=Go(e,3),sr(t,(function(t,r,o){Jn(n,e(t,r,o),t)})),n},Tn.mapValues=function(t,e){var n={};return e=Go(e,3),sr(t,(function(t,r,o){Jn(n,r,e(t,r,o))})),n},Tn.matches=function(t){return Dr(Gn(t,1))},Tn.matchesProperty=function(t,e){return Tr(t,Gn(e,1))},Tn.memoize=Pu,Tn.merge=xa,Tn.mergeWith=Pa,Tn.method=Ha,Tn.methodOf=Ga,Tn.mixin=Ya,Tn.negate=Au,Tn.nthArg=function(t){return t=ia(t),Nr((function(e){return Ir(e,t)}))},Tn.omit=Aa,Tn.omitBy=function(t,e){return Da(t,Au(Go(e)))},Tn.once=function(t){return _u(2,t)},Tn.orderBy=function(t,e,n,r){return null==t?[]:(Mu(e)||(e=null==e?[]:[e]),Mu(n=r?void 0:n)||(n=null==n?[]:[n]),Er(t,e,n))},Tn.over=tc,Tn.overArgs=ku,Tn.overEvery=ec,Tn.overSome=nc,Tn.partial=Du,Tn.partialRight=Tu,Tn.partition=vu,Tn.pick=ka,Tn.pickBy=Da,Tn.property=rc,Tn.propertyOf=function(t){return function(e){return null==t?void 0:lr(t,e)}},Tn.pull=Ui,Tn.pullAll=qi,Tn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Br(t,e,Go(n,2)):t},Tn.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Br(t,e,void 0,n):t},Tn.pullAt=$i,Tn.range=oc,Tn.rangeRight=ic,Tn.rearg=Su,Tn.reject=function(t,e){return(Mu(t)?ce:ir)(t,Au(Go(e,3)))},Tn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,o=[],i=t.length;for(e=Go(e,3);++r<i;){var u=t[r];e(u,r,t)&&(n.push(u),o.push(r))}return Mr(t,o),n},Tn.rest=function(t,e){if("function"!=typeof t)throw new yt(i);return Nr(t,e=void 0===e?e:ia(e))},Tn.reverse=Vi,Tn.sampleSize=function(t,e,n){return e=(n?ci(t,e,n):void 0===e)?1:ia(e),(Mu(t)?Wn:Lr)(t,e)},Tn.set=function(t,e,n){return null==t?t:Wr(t,e,n)},Tn.setWith=function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:Wr(t,e,n,r)},Tn.shuffle=function(t){return(Mu(t)?Un:$r)(t)},Tn.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&ci(t,e,n)?(e=0,n=r):(e=null==e?0:ia(e),n=void 0===n?r:ia(n)),Vr(t,e,n)):[]},Tn.sortBy=gu,Tn.sortedUniq=function(t){return t&&t.length?Kr(t):[]},Tn.sortedUniqBy=function(t,e){return t&&t.length?Kr(t,Go(e,2)):[]},Tn.split=function(t,e,n){return n&&"number"!=typeof n&&ci(t,e,n)&&(e=n=void 0),(n=void 0===n?4294967295:n>>>0)?(t=sa(t))&&("string"==typeof e||null!=e&&!Hu(e))&&!(e=Gr(e))&&Ne(t)?so(Ve(t),0,n):t.split(e,n):[]},Tn.spread=function(t,e){if("function"!=typeof t)throw new yt(i);return e=null==e?0:an(ia(e),0),Nr((function(n){var r=n[e],o=so(n,0,e);return r&&le(o,r),re(t,this,o)}))},Tn.tail=function(t){var e=null==t?0:t.length;return e?Vr(t,1,e):[]},Tn.take=function(t,e,n){return t&&t.length?Vr(t,0,(e=n||void 0===e?1:ia(e))<0?0:e):[]},Tn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?Vr(t,(e=r-(e=n||void 0===e?1:ia(e)))<0?0:e,r):[]},Tn.takeRightWhile=function(t,e){return t&&t.length?eo(t,Go(e,3),!1,!0):[]},Tn.takeWhile=function(t,e){return t&&t.length?eo(t,Go(e,3)):[]},Tn.tap=function(t,e){return e(t),t},Tn.throttle=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new yt(i);return Vu(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ou(t,e,{leading:r,maxWait:e,trailing:o})},Tn.thru=ou,Tn.toArray=ra,Tn.toPairs=Ta,Tn.toPairsIn=Sa,Tn.toPath=function(t){return Mu(t)?de(t,Di):Xu(t)?[t]:mo(ki(sa(t)))},Tn.toPlainObject=ca,Tn.transform=function(t,e,n){var r=Mu(t),o=r||Fu(t)||ta(t);if(e=Go(e,4),null==n){var i=t&&t.constructor;n=o?r?new i:[]:Vu(t)&&Uu(i)?Sn($t(t)):{}}return(o?ie:sr)(t,(function(t,r,o){return e(n,t,r,o)})),n},Tn.unary=function(t){return mu(t,1)},Tn.union=Zi,Tn.unionBy=Qi,Tn.unionWith=Ji,Tn.uniq=function(t){return t&&t.length?Yr(t):[]},Tn.uniqBy=function(t,e){return t&&t.length?Yr(t,Go(e,2)):[]},Tn.uniqWith=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?Yr(t,void 0,e):[]},Tn.unset=function(t,e){return null==t||Xr(t,e)},Tn.unzip=Ki,Tn.unzipWith=Hi,Tn.update=function(t,e,n){return null==t?t:to(t,e,uo(n))},Tn.updateWith=function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:to(t,e,uo(n),r)},Tn.values=Ia,Tn.valuesIn=function(t){return null==t?[]:Se(t,ja(t))},Tn.without=Gi,Tn.words=Ua,Tn.wrap=function(t,e){return Du(uo(e),t)},Tn.xor=Yi,Tn.xorBy=Xi,Tn.xorWith=tu,Tn.zip=eu,Tn.zipObject=function(t,e){return oo(t||[],e||[],$n)},Tn.zipObjectDeep=function(t,e){return oo(t||[],e||[],Wr)},Tn.zipWith=nu,Tn.entries=Ta,Tn.entriesIn=Sa,Tn.extend=da,Tn.extendWith=la,Ya(Tn,Tn),Tn.add=sc,Tn.attempt=qa,Tn.camelCase=Ea,Tn.capitalize=Ca,Tn.ceil=fc,Tn.clamp=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=aa(n))==n?n:0),void 0!==e&&(e=(e=aa(e))==e?e:0),Hn(aa(t),e,n)},Tn.clone=function(t){return Gn(t,4)},Tn.cloneDeep=function(t){return Gn(t,5)},Tn.cloneDeepWith=function(t,e){return Gn(t,5,e="function"==typeof e?e:void 0)},Tn.cloneWith=function(t,e){return Gn(t,4,e="function"==typeof e?e:void 0)},Tn.conformsTo=function(t,e){return null==e||Yn(t,e,Oa(e))},Tn.deburr=Ba,Tn.defaultTo=function(t,e){return null==t||t!=t?e:t},Tn.divide=dc,Tn.endsWith=function(t,e,n){t=sa(t),e=Gr(e);var r=t.length,o=n=void 0===n?r:Hn(ia(n),0,r);return(n-=e.length)>=0&&t.slice(n,o)==e},Tn.eq=Iu,Tn.escape=function(t){return(t=sa(t))&&F.test(t)?t.replace(R,ze):t},Tn.escapeRegExp=function(t){return(t=sa(t))&&Q.test(t)?t.replace(Z,"\\$&"):t},Tn.every=function(t,e,n){var r=Mu(t)?ae:rr;return n&&ci(t,e,n)&&(e=void 0),r(t,Go(e,3))},Tn.find=au,Tn.findIndex=Bi,Tn.findKey=function(t,e){return ye(t,Go(e,3),sr)},Tn.findLast=cu,Tn.findLastIndex=Mi,Tn.findLastKey=function(t,e){return ye(t,Go(e,3),fr)},Tn.floor=lc,Tn.forEach=su,Tn.forEachRight=fu,Tn.forIn=function(t,e){return null==t?t:ar(t,Go(e,3),ja)},Tn.forInRight=function(t,e){return null==t?t:cr(t,Go(e,3),ja)},Tn.forOwn=function(t,e){return t&&sr(t,Go(e,3))},Tn.forOwnRight=function(t,e){return t&&fr(t,Go(e,3))},Tn.get=ya,Tn.gt=Eu,Tn.gte=Cu,Tn.has=function(t,e){return null!=t&&oi(t,e,gr)},Tn.hasIn=ma,Tn.head=Ri,Tn.identity=Ja,Tn.includes=function(t,e,n,r){t=Ru(t)?t:Ia(t),n=n&&!r?ia(n):0;var o=t.length;return n<0&&(n=an(o+n,0)),Yu(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&_e(t,e,n)>-1},Tn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:ia(n);return o<0&&(o=an(r+o,0)),_e(t,e,o)},Tn.inRange=function(t,e,n){return e=oa(e),void 0===n?(n=e,e=0):n=oa(n),function(t,e,n){return t>=cn(e,n)&&t<an(e,n)}(t=aa(t),e,n)},Tn.invoke=wa,Tn.isArguments=Bu,Tn.isArray=Mu,Tn.isArrayBuffer=zu,Tn.isArrayLike=Ru,Tn.isArrayLikeObject=Nu,Tn.isBoolean=function(t){return!0===t||!1===t||Zu(t)&&hr(t)==f},Tn.isBuffer=Fu,Tn.isDate=Lu,Tn.isElement=function(t){return Zu(t)&&1===t.nodeType&&!Ku(t)},Tn.isEmpty=function(t){if(null==t)return!0;if(Ru(t)&&(Mu(t)||"string"==typeof t||"function"==typeof t.splice||Fu(t)||ta(t)||Bu(t)))return!t.length;var e=ri(t);if(e==v||e==_)return!t.size;if(li(t))return!Pr(t).length;for(var n in t)if(jt.call(t,n))return!1;return!0},Tn.isEqual=function(t,e){return wr(t,e)},Tn.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:void 0)?n(t,e):void 0;return void 0===r?wr(t,e,void 0,n):!!r},Tn.isError=Wu,Tn.isFinite=function(t){return"number"==typeof t&&rn(t)},Tn.isFunction=Uu,Tn.isInteger=qu,Tn.isLength=$u,Tn.isMap=Qu,Tn.isMatch=function(t,e){return t===e||Or(t,e,Xo(e))},Tn.isMatchWith=function(t,e,n){return n="function"==typeof n?n:void 0,Or(t,e,Xo(e),n)},Tn.isNaN=function(t){return Ju(t)&&t!=+t},Tn.isNative=function(t){if(di(t))throw new K("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return jr(t)},Tn.isNil=function(t){return null==t},Tn.isNull=function(t){return null===t},Tn.isNumber=Ju,Tn.isObject=Vu,Tn.isObjectLike=Zu,Tn.isPlainObject=Ku,Tn.isRegExp=Hu,Tn.isSafeInteger=function(t){return qu(t)&&t>=-9007199254740991&&t<=9007199254740991},Tn.isSet=Gu,Tn.isString=Yu,Tn.isSymbol=Xu,Tn.isTypedArray=ta,Tn.isUndefined=function(t){return void 0===t},Tn.isWeakMap=function(t){return Zu(t)&&ri(t)==O},Tn.isWeakSet=function(t){return Zu(t)&&"[object WeakSet]"==hr(t)},Tn.join=function(t,e){return null==t?"":on.call(t,e)},Tn.kebabCase=Ma,Tn.last=Wi,Tn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=ia(n))<0?an(r+o,0):cn(o,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,o):me(t,we,o,!0)},Tn.lowerCase=za,Tn.lowerFirst=Ra,Tn.lt=ea,Tn.lte=na,Tn.max=function(t){return t&&t.length?or(t,Ja,vr):void 0},Tn.maxBy=function(t,e){return t&&t.length?or(t,Go(e,2),vr):void 0},Tn.mean=function(t){return Oe(t,Ja)},Tn.meanBy=function(t,e){return Oe(t,Go(e,2))},Tn.min=function(t){return t&&t.length?or(t,Ja,Ar):void 0},Tn.minBy=function(t,e){return t&&t.length?or(t,Go(e,2),Ar):void 0},Tn.stubArray=uc,Tn.stubFalse=ac,Tn.stubObject=function(){return{}},Tn.stubString=function(){return""},Tn.stubTrue=function(){return!0},Tn.multiply=pc,Tn.nth=function(t,e){return t&&t.length?Ir(t,ia(e)):void 0},Tn.noConflict=function(){return Vt._===this&&(Vt._=Dt),this},Tn.noop=Xa,Tn.now=yu,Tn.pad=function(t,e,n){t=sa(t);var r=(e=ia(e))?$e(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return Co(tn(o),n)+t+Co(Xe(o),n)},Tn.padEnd=function(t,e,n){t=sa(t);var r=(e=ia(e))?$e(t):0;return e&&r<e?t+Co(e-r,n):t},Tn.padStart=function(t,e,n){t=sa(t);var r=(e=ia(e))?$e(t):0;return e&&r<e?Co(e-r,n)+t:t},Tn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),fn(sa(t).replace(J,""),e||0)},Tn.random=function(t,e,n){if(n&&"boolean"!=typeof n&&ci(t,e,n)&&(e=n=void 0),void 0===n&&("boolean"==typeof e?(n=e,e=void 0):"boolean"==typeof t&&(n=t,t=void 0)),void 0===t&&void 0===e?(t=0,e=1):(t=oa(t),void 0===e?(e=t,t=0):e=oa(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var o=dn();return cn(t+o*(e-t+Wt("1e-"+((o+"").length-1))),e)}return zr(t,e)},Tn.reduce=function(t,e,n){var r=Mu(t)?pe:Pe,o=arguments.length<3;return r(t,Go(e,4),n,o,er)},Tn.reduceRight=function(t,e,n){var r=Mu(t)?he:Pe,o=arguments.length<3;return r(t,Go(e,4),n,o,nr)},Tn.repeat=function(t,e,n){return e=(n?ci(t,e,n):void 0===e)?1:ia(e),Rr(sa(t),e)},Tn.replace=function(){var t=arguments,e=sa(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Tn.result=function(t,e,n){var r=-1,o=(e=ao(e,t)).length;for(o||(o=1,t=void 0);++r<o;){var i=null==t?void 0:t[Di(e[r])];void 0===i&&(r=o,i=n),t=Uu(i)?i.call(t):i}return t},Tn.round=hc,Tn.runInContext=t,Tn.sample=function(t){return(Mu(t)?Ln:Fr)(t)},Tn.size=function(t){if(null==t)return 0;if(Ru(t))return Yu(t)?$e(t):t.length;var e=ri(t);return e==v||e==_?t.size:Pr(t).length},Tn.snakeCase=Na,Tn.some=function(t,e,n){var r=Mu(t)?ve:Zr;return n&&ci(t,e,n)&&(e=void 0),r(t,Go(e,3))},Tn.sortedIndex=function(t,e){return Qr(t,e)},Tn.sortedIndexBy=function(t,e,n){return Jr(t,e,Go(n,2))},Tn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=Qr(t,e);if(r<n&&Iu(t[r],e))return r}return-1},Tn.sortedLastIndex=function(t,e){return Qr(t,e,!0)},Tn.sortedLastIndexBy=function(t,e,n){return Jr(t,e,Go(n,2),!0)},Tn.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=Qr(t,e,!0)-1;if(Iu(t[n],e))return n}return-1},Tn.startCase=Fa,Tn.startsWith=function(t,e,n){return t=sa(t),n=null==n?0:Hn(ia(n),0,t.length),e=Gr(e),t.slice(n,n+e.length)==e},Tn.subtract=vc,Tn.sum=function(t){return t&&t.length?Ae(t,Ja):0},Tn.sumBy=function(t,e){return t&&t.length?Ae(t,Go(e,2)):0},Tn.template=function(t,e,n){var r=Tn.templateSettings;n&&ci(t,e,n)&&(e=void 0),t=sa(t),e=la({},e,r,Wo);var o,i,u=la({},e.imports,r.imports,Wo),a=Oa(u),c=Se(u,a),s=0,f=e.interpolate||ft,d="__p += '",l=vt((e.escape||ft).source+"|"+f.source+"|"+(f===U?nt:ft).source+"|"+(e.evaluate||ft).source+"|$","g"),p="//# sourceURL="+(jt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Rt+"]")+"\n";t.replace(l,(function(e,n,r,u,a,c){return r||(r=u),d+=t.slice(s,c).replace(dt,Re),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),a&&(i=!0,d+="';\n"+a+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),s=c+e.length,e})),d+="';\n";var h=jt.call(e,"variable")&&e.variable;if(h){if(tt.test(h))throw new K("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(i?d.replace(C,""):d).replace(B,"$1").replace(M,"$1;"),d="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var v=qa((function(){return lt(a,p+"return "+d).apply(void 0,c)}));if(v.source=d,Wu(v))throw v;return v},Tn.times=function(t,e){if((t=ia(t))<1||t>9007199254740991)return[];var n=4294967295,r=cn(t,4294967295);t-=4294967295;for(var o=ke(r,e=Go(e));++n<t;)e(n);return o},Tn.toFinite=oa,Tn.toInteger=ia,Tn.toLength=ua,Tn.toLower=function(t){return sa(t).toLowerCase()},Tn.toNumber=aa,Tn.toSafeInteger=function(t){return t?Hn(ia(t),-9007199254740991,9007199254740991):0===t?t:0},Tn.toString=sa,Tn.toUpper=function(t){return sa(t).toUpperCase()},Tn.trim=function(t,e,n){if((t=sa(t))&&(n||void 0===e))return De(t);if(!t||!(e=Gr(e)))return t;var r=Ve(t),o=Ve(e);return so(r,Ee(r,o),Ce(r,o)+1).join("")},Tn.trimEnd=function(t,e,n){if((t=sa(t))&&(n||void 0===e))return t.slice(0,Ze(t)+1);if(!t||!(e=Gr(e)))return t;var r=Ve(t);return so(r,0,Ce(r,Ve(e))+1).join("")},Tn.trimStart=function(t,e,n){if((t=sa(t))&&(n||void 0===e))return t.replace(J,"");if(!t||!(e=Gr(e)))return t;var r=Ve(t);return so(r,Ee(r,Ve(e))).join("")},Tn.truncate=function(t,e){var n=30,r="...";if(Vu(e)){var o="separator"in e?e.separator:o;n="length"in e?ia(e.length):n,r="omission"in e?Gr(e.omission):r}var i=(t=sa(t)).length;if(Ne(t)){var u=Ve(t);i=u.length}if(n>=i)return t;var a=n-$e(r);if(a<1)return r;var c=u?so(u,0,a).join(""):t.slice(0,a);if(void 0===o)return c+r;if(u&&(a+=c.length-a),Hu(o)){if(t.slice(a).search(o)){var s,f=c;for(o.global||(o=vt(o.source,sa(rt.exec(o))+"g")),o.lastIndex=0;s=o.exec(f);)var d=s.index;c=c.slice(0,void 0===d?a:d)}}else if(t.indexOf(Gr(o),a)!=a){var l=c.lastIndexOf(o);l>-1&&(c=c.slice(0,l))}return c+r},Tn.unescape=function(t){return(t=sa(t))&&N.test(t)?t.replace(z,Qe):t},Tn.uniqueId=function(t){var e=++xt;return sa(t)+e},Tn.upperCase=La,Tn.upperFirst=Wa,Tn.each=su,Tn.eachRight=fu,Tn.first=Ri,Ya(Tn,(cc={},sr(Tn,(function(t,e){jt.call(Tn.prototype,e)||(cc[e]=t)})),cc),{chain:!1}),Tn.VERSION="4.17.21",ie(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Tn[t].placeholder=Tn})),ie(["drop","take"],(function(t,e){Cn.prototype[t]=function(n){n=void 0===n?1:an(ia(n),0);var r=this.__filtered__&&!e?new Cn(this):this.clone();return r.__filtered__?r.__takeCount__=cn(n,r.__takeCount__):r.__views__.push({size:cn(n,4294967295),type:t+(r.__dir__<0?"Right":"")}),r},Cn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),ie(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;Cn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Go(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),ie(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Cn.prototype[t]=function(){return this[n](1).value()[0]}})),ie(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Cn.prototype[t]=function(){return this.__filtered__?new Cn(this):this[n](1)}})),Cn.prototype.compact=function(){return this.filter(Ja)},Cn.prototype.find=function(t){return this.filter(t).head()},Cn.prototype.findLast=function(t){return this.reverse().find(t)},Cn.prototype.invokeMap=Nr((function(t,e){return"function"==typeof t?new Cn(this):this.map((function(n){return _r(n,t,e)}))})),Cn.prototype.reject=function(t){return this.filter(Au(Go(t)))},Cn.prototype.slice=function(t,e){t=ia(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Cn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=ia(e))<0?n.dropRight(-e):n.take(e-t)),n)},Cn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Cn.prototype.toArray=function(){return this.take(4294967295)},sr(Cn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=Tn[r?"take"+("last"==e?"Right":""):e],i=r||/^find/.test(e);o&&(Tn.prototype[e]=function(){var e=this.__wrapped__,u=r?[1]:arguments,a=e instanceof Cn,c=u[0],s=a||Mu(e),f=function(t){var e=o.apply(Tn,le([t],u));return r&&d?e[0]:e};s&&n&&"function"==typeof c&&1!=c.length&&(a=s=!1);var d=this.__chain__,l=!!this.__actions__.length,p=i&&!d,h=a&&!l;if(!i&&s){e=h?e:new Cn(this);var v=t.apply(e,u);return v.__actions__.push({func:ou,args:[f],thisArg:void 0}),new En(v,d)}return p&&h?t.apply(this,u):(v=this.thru(f),p?r?v.value()[0]:v.value():v)})})),ie(["pop","push","shift","sort","splice","unshift"],(function(t){var e=mt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Tn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(Mu(o)?o:[],t)}return this[n]((function(n){return e.apply(Mu(n)?n:[],t)}))}})),sr(Cn.prototype,(function(t,e){var n=Tn[e];if(n){var r=n.name+"";jt.call(bn,r)||(bn[r]=[]),bn[r].push({name:e,func:n})}})),bn[To(void 0,2).name]=[{name:"wrapper",func:void 0}],Cn.prototype.clone=function(){var t=new Cn(this.__wrapped__);return t.__actions__=mo(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=mo(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=mo(this.__views__),t},Cn.prototype.reverse=function(){if(this.__filtered__){var t=new Cn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Cn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Mu(t),r=e<0,o=n?t.length:0,i=function(t,e,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],u=i.size;switch(i.type){case"drop":t+=u;break;case"dropRight":e-=u;break;case"take":e=cn(e,t+u);break;case"takeRight":t=an(t,e-u)}}return{start:t,end:e}}(0,o,this.__views__),u=i.start,a=i.end,c=a-u,s=r?a:u-1,f=this.__iteratees__,d=f.length,l=0,p=cn(c,this.__takeCount__);if(!n||!r&&o==c&&p==c)return no(t,this.__actions__);var h=[];t:for(;c--&&l<p;){for(var v=-1,g=t[s+=e];++v<d;){var y=f[v],m=y.iteratee,_=y.type,b=m(g);if(2==_)g=b;else if(!b){if(1==_)continue t;break t}}h[l++]=g}return h},Tn.prototype.at=iu,Tn.prototype.chain=function(){return ru(this)},Tn.prototype.commit=function(){return new En(this.value(),this.__chain__)},Tn.prototype.next=function(){void 0===this.__values__&&(this.__values__=ra(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},Tn.prototype.plant=function(t){for(var e,n=this;n instanceof In;){var r=Si(n);r.__index__=0,r.__values__=void 0,e?o.__wrapped__=r:e=r;var o=r;n=n.__wrapped__}return o.__wrapped__=t,e},Tn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Cn){var e=t;return this.__actions__.length&&(e=new Cn(this)),(e=e.reverse()).__actions__.push({func:ou,args:[Vi],thisArg:void 0}),new En(e,this.__chain__)}return this.thru(Vi)},Tn.prototype.toJSON=Tn.prototype.valueOf=Tn.prototype.value=function(){return no(this.__wrapped__,this.__actions__)},Tn.prototype.first=Tn.prototype.head,ge&&(Tn.prototype[ge]=function(){return this}),Tn}();Vt._=Je,void 0===(o=function(){return Je}.call(e,n,e,r))||(r.exports=o)}).call(this)}).call(this,n(187),n(23)(t))},21:function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var r={};n.r(r),n.d(r,"find",(function(){return a}));var o={};n.r(o),n.d(o,"isTabbableIndex",(function(){return f})),n.d(o,"find",(function(){return v})),n.d(o,"findPrevious",(function(){return g})),n.d(o,"findNext",(function(){return y}));var i=["[tabindex]","a[href]","button:not([disabled])",'input:not([type="hidden"]):not([disabled])',"select:not([disabled])","textarea:not([disabled])","iframe","object","embed","area[href]","[contenteditable]:not([contenteditable=false])"].join(",");function u(t){return t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0}function a(t){var e=t.querySelectorAll(i);return Array.from(e).filter((function(t){return!(!u(t)||function(t){return"iframe"===t.nodeName.toLowerCase()&&"-1"===t.getAttribute("tabindex")}(t))&&("AREA"!==t.nodeName||function(t){var e=t.closest("map[name]");if(!e)return!1;var n=t.ownerDocument.querySelector('img[usemap="#'+e.name+'"]');return!!n&&u(n)}(t))}))}var c=n(20);function s(t){var e=t.getAttribute("tabindex");return null===e?0:parseInt(e,10)}function f(t){return-1!==s(t)}function d(t,e){return{element:t,index:e}}function l(t){return t.element}function p(t,e){var n=s(t.element),r=s(e.element);return n===r?t.index-e.index:n-r}function h(t){return t.filter(f).map(d).sort(p).map(l).reduce((e={},function(t,n){var r=n.nodeName,o=n.type,i=n.checked,u=n.name;if("INPUT"!==r||"radio"!==o||!u)return t.concat(n);var a=e.hasOwnProperty(u);if(!i&&a)return t;if(a){var s=e[u];t=Object(c.without)(t,s)}return e[u]=n,t.concat(n)}),[]);var e}function v(t){return h(a(t))}function g(t){var e=a(t.ownerDocument.body),n=e.indexOf(t);return e.length=n,Object(c.last)(h(e))}function y(t){var e=a(t.ownerDocument.body),n=e.indexOf(t),r=e.slice(n+1).filter((function(e){return!t.contains(e)}));return Object(c.first)(h(r))}var m={focusable:r,tabbable:o}},22:function(t,e,n){"use strict";t.exports=function(t,e,n,r){t=(t+"").replace(/[^0-9+\-Ee.]/g,"");var o=isFinite(+t)?+t:0,i=isFinite(+e)?Math.abs(e):0,u=void 0===r?",":r,a=void 0===n?".":n,c="";return(c=(i?function(t,e){if(-1===(""+t).indexOf("e"))return+(Math.round(t+"e+"+e)+"e-"+e);var n=(""+t).split("e"),r="";return+n[1]+e>0&&(r="+"),(+(Math.round(+n[0]+"e"+r+(+n[1]+e))+"e-"+e)).toFixed(e)}(o,i).toString():""+Math.round(o)).split("."))[0].length>3&&(c[0]=c[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,u)),(c[1]||"").length<i&&(c[1]=c[1]||"",c[1]+=new Array(i-c[1].length+1).join("0")),c.join(a)}},23:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},24:function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},t.exports.__esModule=!0,t.exports.default=t.exports},3:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return r}));var r=function(e){t(e)}}).call(this,n(1))},4:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return p}));var r=n(10),o=n.n(r),i=n(161),u=n.n(i),a=n(2),c=n.n(a),s=n(21),f=n(5);function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){c()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}window.lodash=_.noConflict();var p=wp.Backbone.View.extend({events:{"keydown input":"handleTabBehavior","keydown textarea":"handleTabBehavior","focus input":"onFocus","focus textarea":"onFocus","focus select":"onFocus","change input":"onChange","change textarea":"onChange","change select":"onChange"},preinitialize:function(){this.focusedEl=null,this.focusedElCaretPos=0,wp.Backbone.View.prototype.preinitialize.apply(this,arguments)},addEvents:function(t){this.delegateEvents(l(l({},this.events),t))},handleTabBehavior:function(t){var e=t.keyCode,n=t.shiftKey,r=t.target;if(9===e){var o=s.a.tabbable.find(this.el);if(o.length){var i,u=o[0],a=o[o.length-1];void 0!==(i=n&&r===u?a:n||r!==a?n?s.a.tabbable.findPrevious(r):s.a.tabbable.findNext(r):u)?(this.focusedEl=i,this.focusedElCartetPos=i.value.length):(this.focusedEl=null,this.focusedElCartetPos=0)}}},onFocus:function(t){this.focusedEl=t.target},onChange:function(t){var e=t.target,n=t.keyCode;if(void 0===u()(n)||9!==n)try{e.selectionStart&&(this.focusedElCaretPos=e.selectionStart)}catch(t){this.focusedElCaretPos=e.value.length}},prepare:function(){return this.model?l(l({},this.model.toJSON()),{},{state:this.model.get("state").toJSON()}):{}},render:function(){return wp.Backbone.View.prototype.render.apply(this,arguments),this.initializeSelects(),this.setFocus(),this},initializeSelects:function(){var e=this.el.querySelectorAll(".edd-select-chosen");_.each(e,(function(e){t(e).chosen(l(l({},Object(f.a)(t(e))),{},{width:"100%"}))}))},setFocus:function(){var t=this.el,e=this.focusedEl,n=this.focusedElCaretPos;if(null!=e){var r=null;if(""!==e.id?r="#".concat(e.id):""!==e.name?r='[name="'.concat(e.name,'"]'):e.classList.length>0&&(r=".".concat(o()(e.classList).join("."))),null!==r){var i=t.querySelector(r);if(i){i.focus();try{i.setSelectionRange&&i.setSelectionRange(n,n)}catch(t){}}}}}})}).call(this,n(1))},5:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return c}));var r=n(2),o=n.n(r);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var a={disable_search_threshold:13,search_contains:!0,inherit_select_classes:!0,single_backstroke_delete:!1,placeholder_text_single:edd_vars.one_option,placeholder_text_multiple:edd_vars.one_or_more_option,no_results_text:edd_vars.no_results_text},c=function(e){!e instanceof t&&(e=t(e));var n=a;return e.data("search-type")&&delete n.disable_search_threshold,u(u({},n),{},{width:e.css("width")})}}).call(this,n(1))},6:function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return v}));var r=n(2),o=n.n(r),i=n(11),u=n.n(i),a=n(12),c=n.n(a);function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var d=n(22),l=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u()(this,t);var n=edd_vars,r=n.currency_decimals,o=n.decimal_separator,i=n.thousands_separator;this.config=f({precision:r,decimalSeparator:o,thousandSeparator:i},e)}return c()(t,[{key:"format",value:function(t){var e=t;"number"!=typeof t&&(e=parseFloat(t)),isNaN(e)&&(e=0);var n=this.config,r=n.precision,o=n.decimalSeparator,i=n.thousandSeparator;return d(e,r,o,i)}},{key:"unformat",value:function(t){var e=this.config,n=e.decimalSeparator,r=e.thousandSeparator;"string"!=typeof t&&(t=String(t));var o=t.replace(r,"").replace(n,"."),i=parseFloat(o);return isNaN(i)?0:i}},{key:"absint",value:function(t){var e=this.unformat(t);return e>=0?e:-1*e}}]),t}();function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var v=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u()(this,t);var n=edd_vars,r=n.currency,o=n.currency_sign,i=n.currency_pos,a=n.currency_decimals,c=n.decimal_separator,s=n.thousands_separator;this.config=h({currency:r,currencySymbol:o,currencySymbolPosition:i,precision:a,decimalSeparator:c,thousandSeparator:s},e),this.number=new l(this.config)}return c()(t,[{key:"format",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.config,r=n.currencySymbol,o=n.currencySymbolPosition,i=t<0,u=this.number.format(t),a="";switch(i&&(u=this.number.format(-1*t)),o){case"before":a=r+u;break;case"after":a=u+r}return!0===i&&!1===e&&(a="-".concat(a)),a}},{key:"unformat",value:function(t){var e=this.config.currencySymbol,n=t.replace(e,"");return this.number.unformat(n)}}]),t}()},7:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return r}));var r=n(4).a.extend({initialize:function(){this.$el.dialog({position:{my:"top center",at:"center center-25%"},classes:{"ui-dialog":"edd-dialog"},closeText:eddAdminOrderOverview.i18n.closeText,width:"350px",modal:!0,resizable:!1,draggable:!1,autoOpen:!1,create:function(){t(this).css("maxWidth","90vw")}})},openDialog:function(){return this.$el.dialog("open"),this},closeDialog:function(t){return t&&t.preventDefault&&t.preventDefault(),this.$el.dialog("close"),this.undelegateEvents(),this}})}).call(this,n(1))},8:function(t,e,n){"use strict";!function(){var e,r,o,i=0,u=[];for(r=0;r<256;r++)u[r]=(r+256).toString(16).substr(1);function a(){var t=(16,(!e||i+16>c.BUFFER_SIZE)&&(i=0,e=c.randomBytes(c.BUFFER_SIZE)),e.slice(i,i+=16));return t[6]=15&t[6]|64,t[8]=63&t[8]|128,t}function c(){var t=a();return u[t[0]]+u[t[1]]+u[t[2]]+u[t[3]]+"-"+u[t[4]]+u[t[5]]+"-"+u[t[6]]+u[t[7]]+"-"+u[t[8]]+u[t[9]]+"-"+u[t[10]]+u[t[11]]+u[t[12]]+u[t[13]]+u[t[14]]+u[t[15]]}c.BUFFER_SIZE=4096,c.bin=a,c.clearBuffer=function(){e=null,i=0},c.test=function(t){return"string"==typeof t&&/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/.test(t)},"undefined"!=typeof crypto?o=crypto:"undefined"!=typeof window&&void 0!==window.msCrypto&&(o=window.msCrypto),o=o||n(188),t.exports=c,c.randomBytes=function(){if(o){if(o.randomBytes)return o.randomBytes;if(o.getRandomValues)return function(t){var e=new Uint8Array(t);return o.getRandomValues(e),e}}return function(t){var e,n=[];for(e=0;e<t;e++)n.push(Math.floor(256*Math.random()));return n}}()}()}});
assets/js/edd-admin-tax-rates.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=231)}({1:function(e,t){e.exports=jQuery},169:function(e,t,n){"use strict";(function(e){var i=n(18),o=n(170),a=n(5),r=wp.Backbone.View.extend({tagName:"tfoot",className:"add-new",template:wp.template("edd-admin-tax-rates-table-add"),events:{"click button":"addTaxRate",keypress:"maybeAddTaxRate","change #tax_rate_country":"setCountry","keyup #tax_rate_region":"setRegion","change #tax_rate_region":"setRegion",'change input[type="checkbox"]':"setGlobal","keyup #tax_rate_amount":"setAmount","change #tax_rate_amount":"setAmount"},initialize:function(){this.model=new i.a({global:!0,unsaved:!0}),this.listenTo(this.model,"change:country",this.updateRegion),this.listenTo(this.model,"change:global",this.updateRegion)},render:function(){return wp.Backbone.View.prototype.render.apply(this,arguments),this.$el.find("select").each((function(){var t=e(this);t.chosen(Object(a.a)(t))})),this},updateRegion:function(){var t=this,n={action:"edd_get_shop_states",country:this.model.get("country"),nonce:eddTaxRates.nonce,field_name:"tax_rate_region"};e.post(ajaxurl,n,(function(e){t.views.set("#tax_rate_region_wrapper",new o.a({states:e,global:t.model.get("global")}))}))},setCountry:function(e){this.model.set("country",e.target.options[e.target.selectedIndex].value)},setRegion:function(e){var t;t=e.target.value?e.target.value:e.target.options[e.target.selectedIndex].value,this.model.set("region",t)},setGlobal:function(e){this.model.set("global",e.target.checked),this.model.set("region","")},setAmount:function(e){this.model.set("amount",e.target.value)},maybeAddTaxRate:function(e){13===e.keyCode&&this.addTaxRate(e)},addTaxRate:function(e){e.preventDefault();var t=eddTaxRates.i18n;if(this.model.get("country"))if(this.collection.where({region:this.model.get("region"),country:this.model.get("country"),global:""===this.model.get("region"),status:"active"}).length>0){var n=""===this.model.get("region")?"":": "+this.model.get("region"),i=this.model.get("country")+n;alert(t.duplicateRate.replace("%s",'"'.concat(i,'"')))}else this.model.get("amount")<=0?alert(t.emptyTax):(this.collection.add(_.extend(this.model.attributes,{id:this.model.cid})),this.render(),this.initialize());else alert(t.emptyCountry)}});t.a=r}).call(this,n(1))},170:function(e,t,n){"use strict";(function(e){var i=n(5),o=wp.Backbone.View.extend({initialize:function(e){_.extend(this,e)},render:function(){this.global||("nostates"===this.states?this.setElement('<input type="text" id="tax_rate_region" />'):(this.$el.html(this.states),this.$el.find("select").each((function(){var t=e(this);t.chosen(Object(i.a)(t))}))))}});t.a=o}).call(this,n(1))},18:function(e,t,n){"use strict";var i=Backbone.Model.extend({defaults:{id:"",country:"",region:"",global:!0,amount:0,status:"active",unsaved:!1,selected:!1},formattedAmount:function(){var e=0;return this.get("amount")&&(e=parseFloat(this.get("amount")).toFixed(2)),"".concat(e,"%")}});t.a=i},2:function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},231:function(e,t,n){"use strict";n.r(t);var i=n(18),o=Backbone.Collection.extend({model:i.a,initialize:function(){this.showAll=!1,this.selected=[]}}),a=wp.Backbone.View.extend({template:wp.template("edd-admin-tax-rates-table-meta"),events:{'change [type="checkbox"]':"selectAll"},selectAll:function(e){var t=this,n=e.target.checked;_.each(this.collection.models,(function(e){e.set("selected",n),t.collection.selected.push(e.cid)}))}}),r=wp.Backbone.View.extend({tagName:"tr",className:"edd-tax-rate-row edd-tax-rate-row--is-empty",template:wp.template("edd-admin-tax-rates-table-row-empty")}),c=n(2),l=n.n(c);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u=wp.Backbone.View.extend({tagName:"tr",className:function(){return"edd-tax-rate-row edd-tax-rate-row--"+this.model.get("status")},template:wp.template("edd-admin-tax-rates-table-row"),events:{"click .remove":"removeRow","click .activate":"activateRow","click .deactivate":"deactivateRow",'change [type="checkbox"]':"selectRow"},initialize:function(){this.listenTo(this.model,"change",this.render)},render:function(){this.$el.html(this.template(d(d({},this.model.toJSON()),{},{formattedAmount:this.model.formattedAmount()}))),this.$el.attr("class",_.result(this,"className"))},removeRow:function(e){e.preventDefault(),this.collection.remove(this.model)},activateRow:function(e){e.preventDefault();var t=eddTaxRates.i18n;if(this.collection.where({region:this.model.get("region"),country:this.model.get("country"),global:""===this.model.get("region"),status:"active"}).length>0){var n=""===this.model.get("region")?"":": "+this.model.get("region"),i=this.model.get("country")+n;alert(t.duplicateRate.replace("%s",'"'.concat(i,'"')))}else this.model.set("status","active")},deactivateRow:function(e){e.preventDefault(),this.model.set("status","inactive")},selectRow:function(e){var t=this;e.target.checked?this.collection.selected.push(this.model.cid):this.collection.selected=_.reject(this.collection.selected,(function(e){return e===t.model.cid}))}}),h=wp.Backbone.View.extend({tagName:"tbody",initialize:function(){this.listenTo(this.collection,"add",this.render),this.listenTo(this.collection,"remove",this.render),this.listenTo(this.collection,"filtered change",this.filtered)},render:function(){var e=this;if(this.views.remove(),0===this.collection.models.length)return this.views.add(new r);_.each(this.collection.models,(function(t){e.views.add(new u({collection:e.collection,model:t}))}))},filtered:function(){this.collection.where({status:"inactive"}).length!==this.collection.models.length||this.collection.showAll?this.render():this.views.add(new r)}}),f=n(169),m=wp.Backbone.View.extend({tagName:"table",className:"wp-list-table widefat fixed tax-rates",id:"edd_tax_rates",render:function(){this.views.add(new a({tagName:"thead",collection:this.collection})),this.views.add(new h({collection:this.collection})),this.views.add(new f.a({collection:this.collection})),this.views.add(new a({tagName:"tfoot",collection:this.collection})),this.collection.trigger("filtered")}}),p=wp.Backbone.View.extend({template:wp.template("edd-admin-tax-rates-table-bulk-actions"),events:{"click .edd-admin-tax-rates-table-filter":"filter","change .edd-admin-tax-rates-table-hide input":"showHide"},filter:function(e){var t=this;e.preventDefault();var n=document.getElementById("edd-admin-tax-rates-table-bulk-actions");_.each(this.collection.selected,(function(e){t.collection.get({cid:e}).set("status",n.value)})),this.collection.trigger("filtered")},showHide:function(e){this.collection.showAll=e.target.checked,document.getElementById("edd_tax_rates").classList.toggle("has-inactive",this.collection.showAll),this.collection.trigger("filtered")}}),g=wp.Backbone.View.extend({el:"#edd-admin-tax-rates",initialize:function(){this.listenTo(this.collection,"add change",this.makeDirty),document.querySelector(".edd-settings-form #submit").addEventListener("click",this.makeClean)},render:function(){this.views.add(new p({collection:this.collection})),this.views.add(new m({collection:this.collection}))},makeDirty:function(){window.onbeforeunload=this.confirmUnload},makeClean:function(){window.onbeforeunload=null},confirmUnload:function(e){return e.preventDefault(),""}}),b=n(3);Object(b.a)((function(){var e=document.getElementById("edd-tax-disabled-notice");e&&(e.classList.add("notice"),e.classList.add("notice-warning"));var t=new g({collection:new o}),n=[];_.each(eddTaxRates.rates,(function(e){return n.push({id:e.id,country:e.name,region:e.description,global:"country"===e.scope,amount:e.amount,status:e.status})})),t.collection.set(n,{silent:!0}),t.render()}))},3:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var i=function(t){e(t)}}).call(this,n(1))},5:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var i=n(2),o=n.n(i);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c={disable_search_threshold:13,search_contains:!0,inherit_select_classes:!0,single_backstroke_delete:!1,placeholder_text_single:edd_vars.one_option,placeholder_text_multiple:edd_vars.one_or_more_option,no_results_text:edd_vars.no_results_text},l=function(t){!t instanceof e&&(t=e(t));var n=c;return t.data("search-type")&&delete n.disable_search_threshold,r(r({},n),{},{width:t.css("width")})}}).call(this,n(1))}});
1
+ !function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=231)}({1:function(e,t){e.exports=jQuery},169:function(e,t,n){"use strict";(function(e){var i=n(18),o=n(170),a=n(5),r=wp.Backbone.View.extend({tagName:"tfoot",className:"add-new",template:wp.template("edd-admin-tax-rates-table-add"),events:{"click button":"addTaxRate",keypress:"maybeAddTaxRate","change #tax_rate_country":"setCountry","keyup #tax_rate_region":"setRegion","change #tax_rate_region":"setRegion",'change input[type="checkbox"]':"setGlobal","keyup #tax_rate_amount":"setAmount","change #tax_rate_amount":"setAmount"},initialize:function(){this.model=new i.a({global:!0,unsaved:!0}),this.listenTo(this.model,"change:country",this.updateRegion),this.listenTo(this.model,"change:global",this.updateRegion)},render:function(){return wp.Backbone.View.prototype.render.apply(this,arguments),this.$el.find("select").each((function(){var t=e(this);t.chosen(Object(a.a)(t))})),this},updateRegion:function(){var t=this,n={action:"edd_get_shop_states",country:this.model.get("country"),nonce:eddTaxRates.nonce,field_name:"tax_rate_region"};e.post(ajaxurl,n,(function(e){t.views.set("#tax_rate_region_wrapper",new o.a({states:e,global:t.model.get("global")}))}))},setCountry:function(e){var t=e.target.options[e.target.selectedIndex].value,n=document.getElementById("tax_rate_region_global");"all"===t?(t="*",n.checked=!0,this.model.set("region",""),this.model.set("global",!0),n.readOnly=!0,n.disabled=!0):(n.disabled=!1,n.readOnly=!1),this.model.set("country",t)},setRegion:function(e){var t;t=e.target.value?e.target.value:e.target.options[e.target.selectedIndex].value,this.model.set("region",t)},setGlobal:function(e){var t=e.target.checked;this.model.set("global",t),!0===t&&this.model.set("region","")},setAmount:function(e){this.model.set("amount",e.target.value)},maybeAddTaxRate:function(e){13===e.keyCode&&this.addTaxRate(e)},addTaxRate:function(e){e.preventDefault();var t=eddTaxRates.i18n;if(this.model.get("country")){var n=this.model.get("region"),i=this.model.get("country"),o=""===this.model.get("region");if("*"===i&&(i="",n="",o=!1),this.collection.where({region:n,country:i,global:o,status:"active"}).length>0){var a=(""===i?"*":i)+(""===n?"":": "+n);alert(t.duplicateRate.replace("%s",'"'.concat(a,'"')))}else this.model.get("amount")<=0?alert(t.emptyTax):(this.collection.add(_.extend(this.model.attributes,{id:this.model.cid})),this.render(),this.initialize())}else alert(t.emptyCountry)}});t.a=r}).call(this,n(1))},170:function(e,t,n){"use strict";(function(e){var i=n(5),o=wp.Backbone.View.extend({initialize:function(e){_.extend(this,e)},render:function(){this.global||("nostates"===this.states?this.setElement('<input type="text" id="tax_rate_region" />'):(this.$el.html(this.states),this.$el.find("select").each((function(){var t=e(this);t.chosen(Object(i.a)(t))}))))}});t.a=o}).call(this,n(1))},18:function(e,t,n){"use strict";var i=Backbone.Model.extend({defaults:{id:"",country:"",region:"",global:!0,amount:0,status:"active",unsaved:!1,selected:!1},formattedAmount:function(){var e=0;return this.get("amount")&&(e=parseFloat(this.get("amount")).toFixed(2)),"".concat(e,"%")}});t.a=i},2:function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},231:function(e,t,n){"use strict";n.r(t);var i=n(18),o=Backbone.Collection.extend({model:i.a,initialize:function(){this.showAll=!1,this.selected=[]}}),a=wp.Backbone.View.extend({template:wp.template("edd-admin-tax-rates-table-meta"),events:{'change [type="checkbox"]':"selectAll"},selectAll:function(e){var t=this,n=e.target.checked;_.each(this.collection.models,(function(e){e.set("selected",n),t.collection.selected.push(e.cid)}))}}),r=wp.Backbone.View.extend({tagName:"tr",className:"edd-tax-rate-row edd-tax-rate-row--is-empty",template:wp.template("edd-admin-tax-rates-table-row-empty")}),l=n(2),c=n.n(l);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u=wp.Backbone.View.extend({tagName:"tr",className:function(){return"edd-tax-rate-row edd-tax-rate-row--"+this.model.get("status")},template:wp.template("edd-admin-tax-rates-table-row"),events:{"click .remove":"removeRow","click .activate":"activateRow","click .deactivate":"deactivateRow",'change [type="checkbox"]':"selectRow"},initialize:function(){this.listenTo(this.model,"change",this.render)},render:function(){this.$el.html(this.template(d(d({},this.model.toJSON()),{},{formattedAmount:this.model.formattedAmount()}))),this.$el.attr("class",_.result(this,"className"))},removeRow:function(e){e.preventDefault(),this.collection.remove(this.model)},activateRow:function(e){e.preventDefault();var t=eddTaxRates.i18n;if(this.collection.where({region:this.model.get("region"),country:this.model.get("country"),global:""===this.model.get("region"),status:"active"}).length>0){var n=""===this.model.get("region")?"":": "+this.model.get("region"),i=this.model.get("country")+n;alert(t.duplicateRate.replace("%s",'"'.concat(i,'"')))}else this.model.set("status","active")},deactivateRow:function(e){e.preventDefault(),this.model.set("status","inactive")},selectRow:function(e){var t=this;e.target.checked?this.collection.selected.push(this.model.cid):this.collection.selected=_.reject(this.collection.selected,(function(e){return e===t.model.cid}))}}),h=wp.Backbone.View.extend({tagName:"tbody",initialize:function(){this.listenTo(this.collection,"add",this.render),this.listenTo(this.collection,"remove",this.render),this.listenTo(this.collection,"filtered change",this.filtered)},render:function(){var e=this;if(this.views.remove(),0===this.collection.models.length)return this.views.add(new r);_.each(this.collection.models,(function(t){e.views.add(new u({collection:e.collection,model:t}))}))},filtered:function(){this.collection.where({status:"inactive"}).length!==this.collection.models.length||this.collection.showAll?this.render():this.views.add(new r)}}),f=n(169),m=wp.Backbone.View.extend({tagName:"table",className:"wp-list-table widefat fixed tax-rates",id:"edd_tax_rates",render:function(){this.views.add(new a({tagName:"thead",collection:this.collection})),this.views.add(new h({collection:this.collection})),this.views.add(new f.a({collection:this.collection})),this.views.add(new a({tagName:"tfoot",collection:this.collection})),this.collection.trigger("filtered")}}),p=wp.Backbone.View.extend({template:wp.template("edd-admin-tax-rates-table-bulk-actions"),events:{"click .edd-admin-tax-rates-table-filter":"filter","change .edd-admin-tax-rates-table-hide input":"showHide"},filter:function(e){var t=this;e.preventDefault();var n=document.getElementById("edd-admin-tax-rates-table-bulk-actions");_.each(this.collection.selected,(function(e){t.collection.get({cid:e}).set("status",n.value)})),this.collection.trigger("filtered")},showHide:function(e){this.collection.showAll=e.target.checked,document.getElementById("edd_tax_rates").classList.toggle("has-inactive",this.collection.showAll),this.collection.trigger("filtered")}}),g=wp.Backbone.View.extend({el:"#edd-admin-tax-rates",initialize:function(){this.listenTo(this.collection,"add change",this.makeDirty),document.querySelector(".edd-settings-form #submit").addEventListener("click",this.makeClean)},render:function(){this.views.add(new p({collection:this.collection})),this.views.add(new m({collection:this.collection}))},makeDirty:function(){window.onbeforeunload=this.confirmUnload},makeClean:function(){window.onbeforeunload=null},confirmUnload:function(e){return e.preventDefault(),""}}),b=n(3);Object(b.a)((function(){var e=document.getElementById("edd-tax-disabled-notice");e&&(e.classList.add("notice"),e.classList.add("notice-warning"));var t=new g({collection:new o}),n=[];_.each(eddTaxRates.rates,(function(e){return n.push({id:e.id,country:e.name,region:e.description,global:"country"===e.scope,amount:e.amount,status:e.status})})),t.collection.set(n,{silent:!0}),t.render()}))},3:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var i=function(t){e(t)}}).call(this,n(1))},5:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c}));var i=n(2),o=n.n(i);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l={disable_search_threshold:13,search_contains:!0,inherit_select_classes:!0,single_backstroke_delete:!1,placeholder_text_single:edd_vars.one_option,placeholder_text_multiple:edd_vars.one_or_more_option,no_results_text:edd_vars.no_results_text},c=function(t){!t instanceof e&&(t=e(t));var n=l;return t.data("search-type")&&delete n.disable_search_threshold,r(r({},n),{},{width:t.css("width")})}}).call(this,n(1))}});
easy-digital-downloads.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: The easiest way to sell digital products with WordPress.
6
  * Author: Easy Digital Downloads
7
  * Author URI: https://easydigitaldownloads.com
8
- * Version: 3.0.2.1
9
  * Text Domain: easy-digital-downloads
10
  * Domain Path: languages
11
  * Requires PHP: 5.6
@@ -26,7 +26,7 @@
26
  * @package EDD
27
  * @category Core
28
  * @author Easy Digital Downloads
29
- * @version 3.0.2.1
30
  */
31
 
32
  // Exit if accessed directly.
5
  * Description: The easiest way to sell digital products with WordPress.
6
  * Author: Easy Digital Downloads
7
  * Author URI: https://easydigitaldownloads.com
8
+ * Version: 3.0.3
9
  * Text Domain: easy-digital-downloads
10
  * Domain Path: languages
11
  * Requires PHP: 5.6
26
  * @package EDD
27
  * @category Core
28
  * @author Easy Digital Downloads
29
+ * @version 3.0.3
30
  */
31
 
32
  // Exit if accessed directly.
includes/admin/class-edd-notices.php CHANGED
@@ -135,7 +135,6 @@ class EDD_Notices {
135
  if ( current_user_can( 'manage_shop_settings' ) ) {
136
  $this->add_system_notices();
137
  $this->add_data_notices();
138
- $this->add_tax_rate_notice();
139
  $this->add_settings_notices();
140
  }
141
 
@@ -328,6 +327,7 @@ class EDD_Notices {
328
  * Adds a notice about the deprecated Default Rate for Taxes.
329
  *
330
  * @since 3.0
 
331
  */
332
  private function add_tax_rate_notice() {
333
 
135
  if ( current_user_can( 'manage_shop_settings' ) ) {
136
  $this->add_system_notices();
137
  $this->add_data_notices();
 
138
  $this->add_settings_notices();
139
  }
140
 
327
  * Adds a notice about the deprecated Default Rate for Taxes.
328
  *
329
  * @since 3.0
330
+ * @since 3.0.2 - We've found a way to add default tax rates. Leaving the method in case anyone (for some reason) is calling it.
331
  */
332
  private function add_tax_rate_notice() {
333
 
includes/admin/payments/orders.php CHANGED
@@ -711,6 +711,15 @@ function edd_order_details_overview( $order ) {
711
  );
712
 
713
  if ( edd_is_add_order_page() && edd_use_taxes() ) {
 
 
 
 
 
 
 
 
 
714
  $has_tax = $location;
715
  } elseif ( $tax_rate ) {
716
  $has_tax = $location;
711
  );
712
 
713
  if ( edd_is_add_order_page() && edd_use_taxes() ) {
714
+ $default_rate = edd_get_tax_rate_by_location(
715
+ array(
716
+ 'country' => '',
717
+ 'region' => '',
718
+ )
719
+ );
720
+ if ( $default_rate ) {
721
+ $location['rate'] = floatval( $default_rate->amount );
722
+ }
723
  $has_tax = $location;
724
  } elseif ( $tax_rate ) {
725
  $has_tax = $location;
includes/admin/reporting/class-file-downloads-logs-list-table.php CHANGED
@@ -89,7 +89,9 @@ class EDD_File_Downloads_Log_Table extends EDD_Base_Log_List_Table {
89
  case 'ip' :
90
  return '<a href="' . esc_url( 'https://ipinfo.io/' . esc_attr( $item['ip'] ) ) . '" target="_blank" rel="noopener noreferrer">' . esc_html( $item['ip'] ) . '</a>';
91
  case 'file':
92
- return esc_html( $item['file'] );
 
 
93
  default:
94
  return $item[ $column_name ];
95
  }
@@ -148,7 +150,7 @@ class EDD_File_Downloads_Log_Table extends EDD_Base_Log_List_Table {
148
  $file_id = apply_filters( 'edd_log_file_download_file_id', $file_id, $log );
149
 
150
  $file_name = '';
151
- if ( ! empty( $files ) && is_numeric( $file_id ) ) {
152
  $file_name = ! empty( $files[ $file_id ]['name'] )
153
  ? $files[ $file_id ]['name']
154
  : edd_get_file_name( $files[ $file_id ] );
89
  case 'ip' :
90
  return '<a href="' . esc_url( 'https://ipinfo.io/' . esc_attr( $item['ip'] ) ) . '" target="_blank" rel="noopener noreferrer">' . esc_html( $item['ip'] ) . '</a>';
91
  case 'file':
92
+ return ! empty( $item['file'] )
93
+ ? esc_html( $item['file'] )
94
+ : '&mdash;';
95
  default:
96
  return $item[ $column_name ];
97
  }
150
  $file_id = apply_filters( 'edd_log_file_download_file_id', $file_id, $log );
151
 
152
  $file_name = '';
153
+ if ( ! empty( $files ) && is_numeric( $file_id ) && isset( $files[ $file_id ] ) ) {
154
  $file_name = ! empty( $files[ $file_id ]['name'] )
155
  ? $files[ $file_id ]['name']
156
  : edd_get_file_name( $files[ $file_id ] );
includes/admin/reporting/reports.php CHANGED
@@ -233,13 +233,15 @@ function edd_register_overview_report( $reports ) {
233
  'views' => array(
234
  'tile' => array(
235
  'data_callback' => function () use ( $dates, $currency ) {
236
- $stats = new EDD\Stats();
237
- return $stats->get_order_count( array(
238
- 'range' => $dates['range'],
239
- 'relative' => true,
240
- 'currency' => $currency,
241
- 'revenue_type' => 'net',
242
- ) );
 
 
243
  },
244
  'display_args' => array(
245
  'comparison_label' => $label . ' &mdash; ' . __( 'Net', 'easy-digital-downloads' ),
@@ -253,16 +255,18 @@ function edd_register_overview_report( $reports ) {
253
  'views' => array(
254
  'tile' => array(
255
  'data_callback' => function () use ( $dates, $exclude_taxes, $currency ) {
256
- $stats = new EDD\Stats();
257
- return $stats->get_order_earnings( array(
258
- 'range' => $dates['range'],
259
- 'function' => 'SUM',
260
- 'exclude_taxes' => $exclude_taxes,
261
- 'currency' => $currency,
262
- 'relative' => true,
263
- 'output' => 'formatted',
264
- 'revenue_type' => 'net',
265
- ) );
 
 
266
  },
267
  'display_args' => array(
268
  'comparison_label' => $label . ' &mdash; ' . __( 'Net', 'easy-digital-downloads' ),
@@ -276,15 +280,17 @@ function edd_register_overview_report( $reports ) {
276
  'views' => array(
277
  'tile' => array(
278
  'data_callback' => function () use ( $dates, $exclude_taxes, $currency ) {
279
- $stats = new EDD\Stats();
280
- return $stats->get_order_earnings( array(
281
- 'function' => 'AVG',
282
- 'output' => 'formatted',
283
- 'relative' => true,
284
- 'range' => $dates['range'],
285
- 'exclude_taxes' => $exclude_taxes,
286
- 'currency' => $currency,
287
- ) );
 
 
288
  },
289
  'display_args' => array(
290
  'comparison_label' => $label,
@@ -407,7 +413,7 @@ function edd_register_downloads_report( $reports ) {
407
  if ( $download_data ) {
408
  $download = edd_get_download( $download_data['download_id'] );
409
  $prices = $download->get_prices();
410
- if ( $download_data['price_id'] ) {
411
  $args = array( 'price_id' => $download_data['price_id'] );
412
  $price_name = edd_get_price_name( $download->ID, $args );
413
  if ( $price_name ) {
@@ -535,9 +541,10 @@ function edd_register_downloads_report( $reports ) {
535
  'views' => array(
536
  'tile' => array(
537
  'data_callback' => function () use ( $download_data, $dates, $currency ) {
538
- $stats = new EDD\Stats( array(
 
539
  'product_id' => absint( $download_data['download_id'] ),
540
- 'price_id' => absint( $download_data['price_id'] ),
541
  'currency' => $currency,
542
  'range' => $dates['range'],
543
  'output' => 'formatted',
@@ -715,7 +722,7 @@ function edd_register_downloads_report( $reports ) {
715
  );
716
  }
717
 
718
- $price_id = ! empty( $download_data['price_id'] )
719
  ? $wpdb->prepare( 'AND price_id = %d', absint( $download_data['price_id'] ) )
720
  : '';
721
 
@@ -1515,7 +1522,7 @@ function edd_register_taxes_report( $reports ) {
1515
  $download_label = '';
1516
  if ( $download_data ) {
1517
  $download = edd_get_download( $download_data['download_id'] );
1518
- if ( $download_data['price_id'] ) {
1519
  $args = array( 'price_id' => $download_data['price_id'] );
1520
  $price_name = edd_get_price_name( $download->ID, $args );
1521
  if ( $price_name ) {
@@ -1657,7 +1664,7 @@ function edd_register_file_downloads_report( $reports ) {
1657
  $download_label = '';
1658
  if ( $download_data ) {
1659
  $download = edd_get_download( $download_data['download_id'] );
1660
- if ( $download_data['price_id'] ) {
1661
  $args = array( 'price_id' => $download_data['price_id'] );
1662
  $price_name = edd_get_price_name( $download->ID, $args );
1663
  if ( $price_name ) {
@@ -1832,7 +1839,7 @@ function edd_register_file_downloads_report( $reports ) {
1832
  if ( is_array( $download_data ) ) {
1833
  $product_id = $wpdb->prepare( 'AND product_id = %d', absint( $download_data['download_id'] ) );
1834
 
1835
- $price_id = ! empty( $download_data['price_id'] )
1836
  ? $wpdb->prepare( 'AND price_id = %d', absint( $download_data['price_id'] ) )
1837
  : '';
1838
  }
233
  'views' => array(
234
  'tile' => array(
235
  'data_callback' => function () use ( $dates, $currency ) {
236
+ $stats = new EDD\Stats(
237
+ array(
238
+ 'range' => $dates['range'],
239
+ 'relative' => true,
240
+ 'currency' => $currency,
241
+ 'revenue_type' => 'net',
242
+ )
243
+ );
244
+ return $stats->get_order_count();
245
  },
246
  'display_args' => array(
247
  'comparison_label' => $label . ' &mdash; ' . __( 'Net', 'easy-digital-downloads' ),
255
  'views' => array(
256
  'tile' => array(
257
  'data_callback' => function () use ( $dates, $exclude_taxes, $currency ) {
258
+ $stats = new EDD\Stats(
259
+ array(
260
+ 'range' => $dates['range'],
261
+ 'function' => 'SUM',
262
+ 'exclude_taxes' => $exclude_taxes,
263
+ 'currency' => $currency,
264
+ 'relative' => true,
265
+ 'output' => 'formatted',
266
+ 'revenue_type' => 'net',
267
+ )
268
+ );
269
+ return $stats->get_order_earnings();
270
  },
271
  'display_args' => array(
272
  'comparison_label' => $label . ' &mdash; ' . __( 'Net', 'easy-digital-downloads' ),
280
  'views' => array(
281
  'tile' => array(
282
  'data_callback' => function () use ( $dates, $exclude_taxes, $currency ) {
283
+ $stats = new EDD\Stats(
284
+ array(
285
+ 'function' => 'AVG',
286
+ 'output' => 'formatted',
287
+ 'relative' => true,
288
+ 'range' => $dates['range'],
289
+ 'exclude_taxes' => $exclude_taxes,
290
+ 'currency' => $currency,
291
+ )
292
+ );
293
+ return $stats->get_order_earnings();
294
  },
295
  'display_args' => array(
296
  'comparison_label' => $label,
413
  if ( $download_data ) {
414
  $download = edd_get_download( $download_data['download_id'] );
415
  $prices = $download->get_prices();
416
+ if ( isset( $download_data['price_id'] ) && is_numeric( $download_data['price_id'] ) ) {
417
  $args = array( 'price_id' => $download_data['price_id'] );
418
  $price_name = edd_get_price_name( $download->ID, $args );
419
  if ( $price_name ) {
541
  'views' => array(
542
  'tile' => array(
543
  'data_callback' => function () use ( $download_data, $dates, $currency ) {
544
+ $price_id = isset( $download_data['price_id'] ) && is_numeric( $download_data['price_id'] ) ? absint( $download_data['price_id'] ) : null;
545
+ $stats = new EDD\Stats( array(
546
  'product_id' => absint( $download_data['download_id'] ),
547
+ 'price_id' => $price_id,
548
  'currency' => $currency,
549
  'range' => $dates['range'],
550
  'output' => 'formatted',
722
  );
723
  }
724
 
725
+ $price_id = isset( $download_data['price_id'] ) && is_numeric( $download_data['price_id'] )
726
  ? $wpdb->prepare( 'AND price_id = %d', absint( $download_data['price_id'] ) )
727
  : '';
728
 
1522
  $download_label = '';
1523
  if ( $download_data ) {
1524
  $download = edd_get_download( $download_data['download_id'] );
1525
+ if ( isset( $download_data['price_id'] ) && is_numeric( $download_data['price_id'] ) ) {
1526
  $args = array( 'price_id' => $download_data['price_id'] );
1527
  $price_name = edd_get_price_name( $download->ID, $args );
1528
  if ( $price_name ) {
1664
  $download_label = '';
1665
  if ( $download_data ) {
1666
  $download = edd_get_download( $download_data['download_id'] );
1667
+ if ( isset( $download_data['price_id'] ) && is_numeric( $download_data['price_id'] ) ) {
1668
  $args = array( 'price_id' => $download_data['price_id'] );
1669
  $price_name = edd_get_price_name( $download->ID, $args );
1670
  if ( $price_name ) {
1839
  if ( is_array( $download_data ) ) {
1840
  $product_id = $wpdb->prepare( 'AND product_id = %d', absint( $download_data['download_id'] ) );
1841
 
1842
+ $price_id = isset( $download_data['price_id'] ) && is_numeric( $download_data['price_id'] )
1843
  ? $wpdb->prepare( 'AND price_id = %d', absint( $download_data['price_id'] ) )
1844
  : '';
1845
  }
includes/admin/settings/register-settings.php CHANGED
@@ -1169,7 +1169,7 @@ function edd_get_registered_settings() {
1169
  'type' => 'tax_rate',
1170
  'name' => __( 'Default Rate', 'easy-digital-downloads' ),
1171
  'desc' => (
1172
- '<div class="notice inline notice-error"><p>' . __( 'This setting is no longer used in this version of Easy Digital Downloads. Please confirm your regional tax rates are properly configured properly below, then click "Save Changes" to dismiss this notice.', 'easy-digital-downloads' ) . '</p></div>'
1173
  ),
1174
  ),
1175
  ),
@@ -1478,8 +1478,16 @@ function edd_settings_sanitize_taxes( $input ) {
1478
  ? sanitize_text_field( $tax_rate['state'] )
1479
  : '';
1480
 
 
 
 
 
 
 
 
 
1481
  $adjustment_data = array(
1482
- 'name' => sanitize_text_field( $tax_rate['country'] ),
1483
  'type' => 'tax_rate',
1484
  'scope' => $scope,
1485
  'amount_type' => 'percent',
@@ -1487,7 +1495,7 @@ function edd_settings_sanitize_taxes( $input ) {
1487
  'description' => $region,
1488
  );
1489
 
1490
- if ( empty( $adjustment_data['name'] ) || $adjustment_data['amount'] <= 0 ) {
1491
  continue;
1492
  }
1493
 
@@ -1501,9 +1509,8 @@ function edd_settings_sanitize_taxes( $input ) {
1501
  } else {
1502
  $adjustment_data['status'] = 'active';
1503
 
1504
- edd_add_adjustment( $adjustment_data );
1505
  }
1506
-
1507
  }
1508
 
1509
  return $input;
1169
  'type' => 'tax_rate',
1170
  'name' => __( 'Default Rate', 'easy-digital-downloads' ),
1171
  'desc' => (
1172
+ '<div class="notice inline notice-error"><p>' . __( 'This setting is no longer used in this version of Easy Digital Downloads. We have migrated any fallback tax rates for you to verify below. Click "Save Changes" to dismiss this notice.', 'easy-digital-downloads' ) . '</p></div>'
1173
  ),
1174
  ),
1175
  ),
1478
  ? sanitize_text_field( $tax_rate['state'] )
1479
  : '';
1480
 
1481
+ $name = '*' === $tax_rate['country']
1482
+ ? ''
1483
+ : sanitize_text_field( $tax_rate['country'] );
1484
+
1485
+ if ( empty( $name ) ) {
1486
+ $scope = 'global';
1487
+ }
1488
+
1489
  $adjustment_data = array(
1490
+ 'name' => $name,
1491
  'type' => 'tax_rate',
1492
  'scope' => $scope,
1493
  'amount_type' => 'percent',
1495
  'description' => $region,
1496
  );
1497
 
1498
+ if ( ( empty( $adjustment_data['name'] ) && 'global' !== $adjustment_data['scope'] ) || $adjustment_data['amount'] <= 0 ) {
1499
  continue;
1500
  }
1501
 
1509
  } else {
1510
  $adjustment_data['status'] = 'active';
1511
 
1512
+ edd_add_tax_rate( $adjustment_data );
1513
  }
 
1514
  }
1515
 
1516
  return $input;
includes/admin/tools.php CHANGED
@@ -1052,7 +1052,7 @@ function edd_tools_import_export_process_export() {
1052
  */
1053
  $filename = apply_filters( 'edd_settings_export_filename', 'edd-settings-export-' . date( 'm-d-Y' ) ) . '.json';
1054
  $edd_settings = get_option( 'edd_settings' );
1055
- $edd_tax_rates = get_option( 'edd_tax_rates' );
1056
 
1057
  edd_set_time_limit();
1058
 
@@ -1113,7 +1113,27 @@ function edd_tools_import_export_process_import() {
1113
  update_option( 'edd_settings', $edd_settings );
1114
 
1115
  $edd_tax_rates = $settings['edd_tax_rates'];
1116
- update_option( 'edd_tax_rates', $edd_tax_rates );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1117
 
1118
  }
1119
 
1052
  */
1053
  $filename = apply_filters( 'edd_settings_export_filename', 'edd-settings-export-' . date( 'm-d-Y' ) ) . '.json';
1054
  $edd_settings = get_option( 'edd_settings' );
1055
+ $edd_tax_rates = edd_get_tax_rates();
1056
 
1057
  edd_set_time_limit();
1058
 
1113
  update_option( 'edd_settings', $edd_settings );
1114
 
1115
  $edd_tax_rates = $settings['edd_tax_rates'];
1116
+ if ( ! empty( $edd_tax_rates ) ) {
1117
+ foreach( $edd_tax_rates as $rate ) {
1118
+ $scope = 'country';
1119
+ if ( ! empty( $rate['scope'] ) ) {
1120
+ $scope = $rate['scope'];
1121
+ } elseif ( empty( $rate['global'] ) && ! empty( $rate['state'] ) ) {
1122
+ $scope = 'region';
1123
+ } elseif ( empty( $rate['country'] && empty( $rate['state'] ) ) ) {
1124
+ $scope = 'global';
1125
+ }
1126
+ edd_add_tax_rate(
1127
+ array(
1128
+ 'name' => esc_attr( $rate['country'] ),
1129
+ 'status' => ! empty( $rate['status'] ) ? esc_attr( $rate['status'] ) : 'active',
1130
+ 'description' => esc_attr( $rate['state'] ),
1131
+ 'amount' => floatval( $rate['rate'] ),
1132
+ 'scope' => esc_attr( $scope ),
1133
+ )
1134
+ );
1135
+ }
1136
+ }
1137
 
1138
  }
1139
 
includes/admin/upgrades/v3/class-data-migrator.php CHANGED
@@ -657,11 +657,11 @@ class Data_Migrator {
657
 
658
  $set_tax_rate_meta = false;
659
 
660
- if ( ! empty( $tax_rate ) && ! empty( $order_address_data['country'] ) ) {
661
  // Fetch the actual tax rate object for the order region & country.
662
  $tax_rate_object = edd_get_tax_rate_by_location( array(
663
  'country' => $order_address_data['country'],
664
- 'region' => ! empty( $order_address_data['region'] ) ? $order_address_data['region'] : ''
665
  ) );
666
 
667
  if ( ! empty( $tax_rate_object->id ) && $tax_rate_object->amount == $tax_rate ) {
@@ -1329,15 +1329,10 @@ class Data_Migrator {
1329
  return null;
1330
  }
1331
 
1332
- // Get the price ID that's set to the cart item right now.
1333
- $price_id = isset( $cart_item['item_number']['options']['price_id'] ) && is_numeric( $cart_item['item_number']['options']['price_id'] )
1334
  ? absint( $cart_item['item_number']['options']['price_id'] )
1335
  : null;
1336
-
1337
- // Now let's confirm it's actually a valid price ID.
1338
- $variable_price_ids = array_map( 'intval', array_column( $variable_prices, 'index' ) );
1339
-
1340
- return in_array( $price_id, $variable_price_ids, true ) ? $price_id : edd_get_default_variable_price( $cart_item['id'] );
1341
  }
1342
 
1343
  /**
@@ -1384,22 +1379,18 @@ class Data_Migrator {
1384
  return;
1385
  }
1386
 
1387
- $scope = isset( $data['global'] )
1388
  ? 'country'
1389
  : 'region';
1390
 
1391
- $region = isset( $data['state'] )
1392
- ? sanitize_text_field( $data['state'] )
1393
- : '';
1394
-
1395
  // If the scope is 'country', look for other active rates that are country wide and set them as 'inactive'.
1396
  if ( 'country' === $scope ) {
1397
  $tax_rates = edd_get_adjustments(
1398
  array(
1399
- 'type' => 'tax_rate',
1400
- 'status' => 'active',
1401
- 'scope' => 'country',
1402
- 'name' => $data['country'],
1403
  )
1404
  );
1405
 
@@ -1414,16 +1405,16 @@ class Data_Migrator {
1414
  }
1415
 
1416
  $adjustment_data = array(
1417
- 'name' => $data['country'],
1418
- 'status' => 'active',
1419
- 'type' => 'tax_rate',
1420
- 'scope' => $scope,
1421
- 'amount_type' => 'percent',
1422
- 'amount' => floatval( $data['rate'] ),
1423
- 'description' => $region,
1424
  );
1425
 
1426
- edd_add_adjustment( $adjustment_data );
 
 
 
 
1427
  }
1428
 
1429
  /**
657
 
658
  $set_tax_rate_meta = false;
659
 
660
+ if ( ! empty( $tax_rate ) ) {
661
  // Fetch the actual tax rate object for the order region & country.
662
  $tax_rate_object = edd_get_tax_rate_by_location( array(
663
  'country' => $order_address_data['country'],
664
+ 'region' => $order_address_data['region'],
665
  ) );
666
 
667
  if ( ! empty( $tax_rate_object->id ) && $tax_rate_object->amount == $tax_rate ) {
1329
  return null;
1330
  }
1331
 
1332
+ // Return the price ID that's set to the cart item right now, if not numeric return NULL.
1333
+ return isset( $cart_item['item_number']['options']['price_id'] ) && is_numeric( $cart_item['item_number']['options']['price_id'] )
1334
  ? absint( $cart_item['item_number']['options']['price_id'] )
1335
  : null;
 
 
 
 
 
1336
  }
1337
 
1338
  /**
1379
  return;
1380
  }
1381
 
1382
+ $scope = ! empty( $data['global'] )
1383
  ? 'country'
1384
  : 'region';
1385
 
 
 
 
 
1386
  // If the scope is 'country', look for other active rates that are country wide and set them as 'inactive'.
1387
  if ( 'country' === $scope ) {
1388
  $tax_rates = edd_get_adjustments(
1389
  array(
1390
+ 'type' => 'tax_rate',
1391
+ 'status' => 'active',
1392
+ 'scope' => 'country',
1393
+ 'name' => $data['country'],
1394
  )
1395
  );
1396
 
1405
  }
1406
 
1407
  $adjustment_data = array(
1408
+ 'name' => $data['country'],
1409
+ 'scope' => $scope,
1410
+ 'amount' => floatval( $data['rate'] ),
 
 
 
 
1411
  );
1412
 
1413
+ if ( ! empty( $data['state'] ) ) {
1414
+ $adjustment_data['description'] = sanitize_text_field( $data['state'] );
1415
+ }
1416
+
1417
+ edd_add_tax_rate( $adjustment_data );
1418
  }
1419
 
1420
  /**
includes/admin/upgrades/v3/class-tax-rates.php CHANGED
@@ -41,6 +41,18 @@ class Tax_Rates extends Base {
41
  public function get_data() {
42
  $offset = ( $this->step - 1 ) * $this->per_step;
43
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  $results = get_option( 'edd_tax_rates', array() );
45
  $results = array_slice( $results, $offset, $this->per_step, true );
46
 
@@ -81,4 +93,4 @@ class Tax_Rates extends Base {
81
 
82
  return $percentage;
83
  }
84
- }
41
  public function get_data() {
42
  $offset = ( $this->step - 1 ) * $this->per_step;
43
 
44
+ if ( 1 === $this->step ) {
45
+ $default_tax_rate = edd_get_option( 'tax_rate', false );
46
+ if ( ! empty( $default_tax_rate ) ) {
47
+ edd_add_tax_rate(
48
+ array(
49
+ 'scope' => 'global',
50
+ 'amount' => floatval( $default_tax_rate ),
51
+ )
52
+ );
53
+ }
54
+ }
55
+
56
  $results = get_option( 'edd_tax_rates', array() );
57
  $results = array_slice( $results, $offset, $this->per_step, true );
58
 
93
 
94
  return $percentage;
95
  }
96
+ }
includes/admin/views/tmpl-tax-rates-table-add.php CHANGED
@@ -17,8 +17,7 @@
17
  <label for="tax_rate_country" class="screen-reader-text"><?php esc_html_e( 'Country', 'easy-digital-downloads' ); ?></label>
18
  <?php
19
  echo EDD()->html->country_select( array(
20
- 'id' => 'tax_rate_country',
21
- 'show_option_all' => false,
22
  ) );
23
  ?>
24
  </th>
@@ -27,7 +26,7 @@
27
  <label for="tax_rate_region" class="screen-reader-text"><?php esc_html_e( 'Region', 'easy-digital-downloads' ); ?></label>
28
 
29
  <label>
30
- <input type="checkbox" checked /><?php esc_html_e( 'Apply to whole country', 'easy-digital-downloads' ); ?>
31
  </label>
32
 
33
  <div id="tax_rate_region_wrapper"></div>
17
  <label for="tax_rate_country" class="screen-reader-text"><?php esc_html_e( 'Country', 'easy-digital-downloads' ); ?></label>
18
  <?php
19
  echo EDD()->html->country_select( array(
20
+ 'id' => 'tax_rate_country',
 
21
  ) );
22
  ?>
23
  </th>
26
  <label for="tax_rate_region" class="screen-reader-text"><?php esc_html_e( 'Region', 'easy-digital-downloads' ); ?></label>
27
 
28
  <label>
29
+ <input type="checkbox" id="tax_rate_region_global" checked disabled /><?php esc_html_e( 'Apply to whole country', 'easy-digital-downloads' ); ?>
30
  </label>
31
 
32
  <div id="tax_rate_region_wrapper"></div>
includes/admin/views/tmpl-tax-rates-table-row.php CHANGED
@@ -16,7 +16,11 @@
16
  </th>
17
 
18
  <td class="edd-tax-rates-table-country" data-colname="<?php esc_attr_e( 'Country', 'easy-digital-downloads' ); ?>">
19
- {{ data.country }}
 
 
 
 
20
  <input type="hidden" name="tax_rates[{{ data.id }}][country]" value="{{ data.country }}" />
21
  </td>
22
 
@@ -24,9 +28,12 @@
24
  <# if ( data.global ) { #>
25
  &mdash;
26
  <input type="hidden" name="tax_rates[{{ data.id }}][global]" value="{{ data.global }}" />
27
- <# } else { #>
28
  {{ data.region }}
29
  <input type="hidden" name="tax_rates[{{ data.id }}][state]" value="{{ data.region }}" />
 
 
 
30
  <# } #>
31
  </td>
32
 
16
  </th>
17
 
18
  <td class="edd-tax-rates-table-country" data-colname="<?php esc_attr_e( 'Country', 'easy-digital-downloads' ); ?>">
19
+ <# if ( data.country ) { #>
20
+ {{ data.country }}
21
+ <# } else { #>
22
+ *
23
+ <# } #>
24
  <input type="hidden" name="tax_rates[{{ data.id }}][country]" value="{{ data.country }}" />
25
  </td>
26
 
28
  <# if ( data.global ) { #>
29
  &mdash;
30
  <input type="hidden" name="tax_rates[{{ data.id }}][global]" value="{{ data.global }}" />
31
+ <# } else if ( data.region ) { #>
32
  {{ data.region }}
33
  <input type="hidden" name="tax_rates[{{ data.id }}][state]" value="{{ data.region }}" />
34
+ <# } else { #>
35
+ &mdash;
36
+ <input type="hidden" name="tax_rates[{{ data.id }}][state]" value="" />
37
  <# } #>
38
  </td>
39
 
includes/class-easy-digital-downloads.php CHANGED
@@ -315,7 +315,7 @@ final class Easy_Digital_Downloads {
315
 
316
  // Plugin version.
317
  if ( ! defined( 'EDD_VERSION' ) ) {
318
- define( 'EDD_VERSION', '3.0.2.1' );
319
  }
320
 
321
  // Plugin Root File.
315
 
316
  // Plugin version.
317
  if ( ! defined( 'EDD_VERSION' ) ) {
318
+ define( 'EDD_VERSION', '3.0.3' );
319
  }
320
 
321
  // Plugin Root File.
includes/class-edd-cli.php CHANGED
@@ -1263,6 +1263,18 @@ class EDD_CLI extends WP_CLI_Command {
1263
  WP_CLI::error( __( 'The tax rates custom table migration has already been run. To do this anyway, use the --force argument.', 'easy-digital-downloads' ) );
1264
  }
1265
 
 
 
 
 
 
 
 
 
 
 
 
 
1266
  // Migrate user addresses first.
1267
  $tax_rates = get_option( 'edd_tax_rates', array() );
1268
 
1263
  WP_CLI::error( __( 'The tax rates custom table migration has already been run. To do this anyway, use the --force argument.', 'easy-digital-downloads' ) );
1264
  }
1265
 
1266
+ WP_CLI::line( __( 'Checking for default tax rate', 'easy-digital-downloads' ) );
1267
+ $default_tax_rate = edd_get_option( 'tax_rate', false );
1268
+ if ( ! empty( $default_tax_rate ) ) {
1269
+ WP_CLI::line( __( 'Migrating default tax rate', 'easy-digital-downloads' ) );
1270
+ edd_add_tax_rate(
1271
+ array(
1272
+ 'scope' => 'global',
1273
+ 'amount' => floatval( $default_tax_rate ),
1274
+ )
1275
+ );
1276
+ }
1277
+
1278
  // Migrate user addresses first.
1279
  $tax_rates = get_option( 'edd_tax_rates', array() );
1280
 
includes/class-edd-discount.php CHANGED
@@ -1445,7 +1445,7 @@ class EDD_Discount extends Adjustment {
1445
  $cart_ids = array_values( $cart_ids );
1446
 
1447
  // Ensure we have requirements before proceeding
1448
- if ( ! $is_met && ! empty( $product_reqs ) ) {
1449
  $matches = array_intersect( $product_reqs, $cart_ids );
1450
 
1451
  switch ( $this->get_product_condition() ) {
@@ -1455,6 +1455,10 @@ class EDD_Discount extends Adjustment {
1455
  default:
1456
  $is_met = 0 < count( $matches );
1457
  }
 
 
 
 
1458
  }
1459
 
1460
  $excluded_ps = array_map( 'absint', $excluded_ps );
@@ -1462,10 +1466,12 @@ class EDD_Discount extends Adjustment {
1462
  $excluded_ps = array_filter( array_values( $excluded_ps ) );
1463
 
1464
  if ( ! empty( $excluded_ps ) ) {
1465
- $is_met = false === (bool) array_intersect( $cart_ids, $excluded_ps );
 
1466
 
1467
- if ( ! $is_met && $set_error ) {
1468
- edd_set_error( 'edd-discount-error', __( 'This discount is not valid for the cart contents.', 'easy-digital-downloads' ) );
 
1469
  }
1470
  }
1471
 
1445
  $cart_ids = array_values( $cart_ids );
1446
 
1447
  // Ensure we have requirements before proceeding
1448
+ if ( ! empty( $product_reqs ) ) {
1449
  $matches = array_intersect( $product_reqs, $cart_ids );
1450
 
1451
  switch ( $this->get_product_condition() ) {
1455
  default:
1456
  $is_met = 0 < count( $matches );
1457
  }
1458
+
1459
+ if ( ! $is_met && $set_error ) {
1460
+ edd_set_error( 'edd-discount-error', __( 'The product requirements for this discount are not met.', 'easy-digital-downloads' ) );
1461
+ }
1462
  }
1463
 
1464
  $excluded_ps = array_map( 'absint', $excluded_ps );
1466
  $excluded_ps = array_filter( array_values( $excluded_ps ) );
1467
 
1468
  if ( ! empty( $excluded_ps ) ) {
1469
+ if ( count( array_intersect( $cart_ids, $excluded_ps ) ) === count( $cart_ids ) ) {
1470
+ $is_met = false;
1471
 
1472
+ if ( $set_error ) {
1473
+ edd_set_error( 'edd-discount-error', __( 'This discount is not valid for the cart contents.', 'easy-digital-downloads' ) );
1474
+ }
1475
  }
1476
  }
1477
 
includes/class-stats.php CHANGED
@@ -704,7 +704,7 @@ class Stats {
704
 
705
  if ( true === $this->query_vars['relative'] ) {
706
  $total = -( floatval( $initial_result->total ) );
707
- $relative = floatval( $relative_result->total );
708
  $total = $this->generate_relative_markup( $total, $relative, true );
709
  } else {
710
  $total = $this->maybe_format( -( $total ) );
704
 
705
  if ( true === $this->query_vars['relative'] ) {
706
  $total = -( floatval( $initial_result->total ) );
707
+ $relative = -( floatval( $relative_result->total ) );
708
  $total = $this->generate_relative_markup( $total, $relative, true );
709
  } else {
710
  $total = $this->maybe_format( -( $total ) );
includes/compat/class-tax.php CHANGED
@@ -70,52 +70,25 @@ class Tax extends Base {
70
  $value = (array) $value;
71
 
72
  foreach ( $value as $tax_rate ) {
73
- if ( empty( $tax_rate ) ) {
74
  continue;
75
  }
76
- $scope = isset( $tax_rate['global'] )
77
  ? 'country'
78
  : 'region';
79
 
80
- $region = isset( $tax_rate['state'] )
81
  ? sanitize_text_field( $tax_rate['state'] )
82
  : '';
83
 
84
  $adjustment_data = array(
85
  'name' => $tax_rate['country'],
86
- 'status' => 'active',
87
- 'type' => 'tax_rate',
88
  'scope' => $scope,
89
- 'amount_type' => 'percent',
90
  'amount' => floatval( $tax_rate['rate'] ),
91
  'description' => $region,
92
  );
93
 
94
- // Update database if adjustment ID was supplied.
95
- if ( isset( $tax_rate['edd_adjustment_id'] ) ) {
96
- edd_update_adjustment( $tax_rate['edd_adjustment_id'], $adjustment_data );
97
-
98
- // Check if the tax rate exists.
99
- } else {
100
- $rate = edd_get_adjustments( array(
101
- 'type' => 'tax_rate',
102
- 'fields' => 'ids',
103
- 'name' => $tax_rate['country'],
104
- 'description' => $region,
105
- 'scope' => $scope,
106
- ) );
107
-
108
- // Tax rate exists.
109
- if ( 1 === count( $rate ) ) {
110
- $adjustment_id = absint( $rate[0] );
111
-
112
- edd_update_adjustment( $adjustment_id, $adjustment_data );
113
-
114
- // Add the tax rate to the database.
115
- } else {
116
- edd_add_adjustment( $adjustment_data );
117
- }
118
- }
119
  }
120
 
121
  // Return the value so it is stored for backwards compatibility purposes.
70
  $value = (array) $value;
71
 
72
  foreach ( $value as $tax_rate ) {
73
+ if ( empty( $tax_rate['country'] ) || empty( $tax_rate['rate'] ) ) {
74
  continue;
75
  }
76
+ $scope = ! empty( $tax_rate['global'] )
77
  ? 'country'
78
  : 'region';
79
 
80
+ $region = ! empty( $tax_rate['state'] )
81
  ? sanitize_text_field( $tax_rate['state'] )
82
  : '';
83
 
84
  $adjustment_data = array(
85
  'name' => $tax_rate['country'],
 
 
86
  'scope' => $scope,
 
87
  'amount' => floatval( $tax_rate['rate'] ),
88
  'description' => $region,
89
  );
90
 
91
+ edd_add_tax_rate( $adjustment_data );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
  }
93
 
94
  // Return the value so it is stored for backwards compatibility purposes.
includes/database/tables/class-customer-meta.php CHANGED
@@ -82,19 +82,31 @@ final class Customer_Meta extends Table {
82
  * @since 3.0
83
  */
84
  public function maybe_upgrade() {
85
- if ( false !== get_option( $this->table_prefix . 'edd_customermeta_db_version', false ) ) {
 
 
 
86
  delete_option( $this->table_prefix . 'edd_customermeta_db_version' );
 
87
 
88
- if ( $this->column_exists( 'customer_id' ) && ! $this->column_exists( 'edd_customer_id' ) ) {
89
- $this->get_db()->query( "ALTER TABLE {$this->table_name} CHANGE `customer_id` `edd_customer_id` bigint(20) unsigned NOT NULL default '0';" );
90
- $this->get_db()->query( "ALTER TABLE {$this->table_name} DROP INDEX customer_id" );
91
- $this->get_db()->query( "ALTER TABLE {$this->table_name} ADD INDEX edd_customer_id (edd_customer_id)" );
92
- }
93
  }
94
 
95
  parent::maybe_upgrade();
96
  }
97
 
 
 
 
 
 
 
 
 
 
 
98
  /**
99
  * Upgrade to version 201807111
100
  * - Rename `customer_id` column to `edd_customer_id`
82
  * @since 3.0
83
  */
84
  public function maybe_upgrade() {
85
+
86
+ if ( $this->needs_initial_upgrade() ) {
87
+
88
+ // Delete old/irrelevant database options.
89
  delete_option( $this->table_prefix . 'edd_customermeta_db_version' );
90
+ delete_option( 'wp_edd_customermeta_db_version' );
91
 
92
+ $this->get_db()->query( "ALTER TABLE {$this->table_name} CHANGE `customer_id` `edd_customer_id` bigint(20) unsigned NOT NULL default '0';" );
93
+ $this->get_db()->query( "ALTER TABLE {$this->table_name} DROP INDEX customer_id" );
94
+ $this->get_db()->query( "ALTER TABLE {$this->table_name} ADD INDEX edd_customer_id (edd_customer_id)" );
 
 
95
  }
96
 
97
  parent::maybe_upgrade();
98
  }
99
 
100
+ /**
101
+ * Whether the initial upgrade from the 1.0 database needs to be run.
102
+ *
103
+ * @since 3.0.3
104
+ * @return bool
105
+ */
106
+ private function needs_initial_upgrade() {
107
+ return $this->exists() && $this->column_exists( 'customer_id' ) && ! $this->column_exists( 'edd_customer_id' );
108
+ }
109
+
110
  /**
111
  * Upgrade to version 201807111
112
  * - Rename `customer_id` column to `edd_customer_id`
includes/database/tables/class-customers.php CHANGED
@@ -90,8 +90,13 @@ final class Customers extends Table {
90
  * @since 3.0
91
  */
92
  public function maybe_upgrade() {
93
- if ( false !== get_option( $this->table_prefix . 'edd_customers_db_version', false ) ) {
 
 
 
94
  delete_option( $this->table_prefix . 'edd_customers_db_version' );
 
 
95
 
96
  // Modify existing columns.
97
  $this->get_db()->query( "ALTER TABLE {$this->table_name} MODIFY `email` varchar(100) NOT NULL default ''" );
@@ -120,6 +125,16 @@ final class Customers extends Table {
120
  parent::maybe_upgrade();
121
  }
122
 
 
 
 
 
 
 
 
 
 
 
123
  /**
124
  * Upgrade to version 202002141
125
  * - Change default value to `CURRENT_TIMESTAMP` for columns `date_created` and `date_modified`.
90
  * @since 3.0
91
  */
92
  public function maybe_upgrade() {
93
+
94
+ if ( $this->needs_initial_upgrade() ) {
95
+
96
+ // Delete old/irrelevant database options.
97
  delete_option( $this->table_prefix . 'edd_customers_db_version' );
98
+ delete_option( 'wp_edd_customers_db_version' );
99
+
100
 
101
  // Modify existing columns.
102
  $this->get_db()->query( "ALTER TABLE {$this->table_name} MODIFY `email` varchar(100) NOT NULL default ''" );
125
  parent::maybe_upgrade();
126
  }
127
 
128
+ /**
129
+ * Whether the initial upgrade from the 1.0 database needs to be run.
130
+ *
131
+ * @since 3.0.3
132
+ * @return bool
133
+ */
134
+ private function needs_initial_upgrade() {
135
+ return $this->exists() && ! $this->column_exists( 'status' ) && ! $this->column_exists( 'uuid' );
136
+ }
137
+
138
  /**
139
  * Upgrade to version 202002141
140
  * - Change default value to `CURRENT_TIMESTAMP` for columns `date_created` and `date_modified`.
includes/orders/functions/orders.php CHANGED
@@ -277,6 +277,10 @@ function edd_destroy_order( $order_id = 0 ) {
277
  // Destroy adjustments.
278
  if ( ! empty( $adjustments ) ) {
279
  foreach ( $adjustments as $adjustment ) {
 
 
 
 
280
  edd_delete_order_adjustment( $adjustment->id );
281
  }
282
  }
277
  // Destroy adjustments.
278
  if ( ! empty( $adjustments ) ) {
279
  foreach ( $adjustments as $adjustment ) {
280
+ // Decrease discount code use count.
281
+ if ( 'discount' === $adjustment->type ) {
282
+ edd_decrease_discount_usage( $adjustment->description );
283
+ }
284
  edd_delete_order_adjustment( $adjustment->id );
285
  }
286
  }
includes/reports/reports-functions.php CHANGED
@@ -730,6 +730,8 @@ function get_dates_filter_range() {
730
  * @return bool True if results should use hour by hour, otherwise false.
731
  */
732
  function get_dates_filter_hour_by_hour() {
 
 
733
  // Retrieve the queried dates
734
  $dates = get_dates_filter( 'objects' );
735
 
730
  * @return bool True if results should use hour by hour, otherwise false.
731
  */
732
  function get_dates_filter_hour_by_hour() {
733
+ $hour_by_hour = false;
734
+
735
  // Retrieve the queried dates
736
  $dates = get_dates_filter( 'objects' );
737
 
includes/tax-functions.php CHANGED
@@ -78,17 +78,17 @@ function edd_get_tax_rates( $args = array(), $output = ARRAY_N ) {
78
  'id' => absint( $tax_rate->id ),
79
  'country' => esc_attr( $tax_rate->name ),
80
  'rate' => floatval( $tax_rate->amount ),
 
 
 
 
81
  );
82
 
83
- if ( isset( $tax_rate->description ) && ! empty( $tax_rate->description ) ) {
84
  $rate['state'] = esc_attr( $tax_rate->description );
85
- } else {
86
- $rate['state'] = '';
87
  }
88
 
89
- if ( 'country' === $tax_rate->scope ) {
90
- $rate['global'] = '1';
91
- } else {
92
  $rate['global'] = '0';
93
  }
94
 
@@ -159,9 +159,6 @@ function edd_active_tax_rates_query_clauses( $clauses ) {
159
  */
160
  function edd_get_tax_rate( $country = '', $region = '', $fallback = true ) {
161
 
162
- // Default rate
163
- $rate = (float) edd_get_option( 'tax_rate', 0 );
164
-
165
  // Get the address, to try to get the tax rate
166
  $user_address = edd_get_customer_address();
167
 
@@ -215,9 +212,8 @@ function edd_get_tax_rate( $country = '', $region = '', $fallback = true ) {
215
  'region' => $region,
216
  )
217
  );
218
- if ( $tax_rate ) {
219
- $rate = $tax_rate->amount;
220
- }
221
 
222
  // Convert to a number we can use
223
  $rate = $rate / 100;
@@ -437,45 +433,57 @@ function edd_download_is_tax_exclusive( $download_id = 0 ) {
437
  */
438
  function edd_get_tax_rate_by_location( $args ) {
439
 
440
- $rate = false;
441
- if ( empty( $args['country'] ) ) {
442
- return $rate;
443
- }
444
 
445
- // Fetch all the tax rates from the database.
446
  // The region is not passed in deliberately in order to check for country-wide tax rates.
447
- $tax_rates = edd_get_tax_rates(
448
- array(
449
- 'name' => $args['country'],
450
- 'status' => 'active',
451
- ),
452
- OBJECT
453
- );
454
-
455
- if ( empty( $tax_rates ) ) {
456
- return $rate;
457
  }
458
 
459
- foreach ( $tax_rates as $tax_rate ) {
 
460
 
461
- // Regional tax rate.
462
- if ( ! empty( $args['region'] ) && ! empty( $tax_rate->description ) ) {
463
- if ( strtolower( $args['region'] ) !== strtolower( $tax_rate->description ) ) {
464
- continue;
465
- }
466
 
467
- $regional_rate = $tax_rate->amount;
468
 
469
- if ( ! empty( $regional_rate ) ) {
470
- return $tax_rate;
 
 
 
 
471
  }
472
- } elseif ( 'country' === $tax_rate->scope ) {
473
- // Countrywide tax rate.
474
- $rate = $tax_rate;
 
475
  }
476
  }
477
 
478
- return $rate;
 
 
 
 
 
 
 
 
 
 
479
  }
480
 
481
  /**
@@ -490,3 +498,57 @@ function edd_get_tax_rate_by_location( $args ) {
490
  add_action( 'edd_before_checkout_cart', function () {
491
  EDD()->cart->set_tax_rate( null );
492
  } );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  'id' => absint( $tax_rate->id ),
79
  'country' => esc_attr( $tax_rate->name ),
80
  'rate' => floatval( $tax_rate->amount ),
81
+ 'state' => '',
82
+ 'global' => '1',
83
+ 'status' => esc_attr( $tax_rate->status ),
84
+ 'scope' => esc_attr( $tax_rate->scope ),
85
  );
86
 
87
+ if ( ! empty( $tax_rate->description ) ) {
88
  $rate['state'] = esc_attr( $tax_rate->description );
 
 
89
  }
90
 
91
+ if ( 'region' === $tax_rate->scope ) {
 
 
92
  $rate['global'] = '0';
93
  }
94
 
159
  */
160
  function edd_get_tax_rate( $country = '', $region = '', $fallback = true ) {
161
 
 
 
 
162
  // Get the address, to try to get the tax rate
163
  $user_address = edd_get_customer_address();
164
 
212
  'region' => $region,
213
  )
214
  );
215
+
216
+ $rate = $tax_rate ? $tax_rate->amount : 0.00;
 
217
 
218
  // Convert to a number we can use
219
  $rate = $rate / 100;
433
  */
434
  function edd_get_tax_rate_by_location( $args ) {
435
 
436
+ $rate = false;
437
+ $tax_rates = array();
 
 
438
 
439
+ // Fetch all the active country tax rates from the database.
440
  // The region is not passed in deliberately in order to check for country-wide tax rates.
441
+ if ( ! empty( $args['country'] ) ) {
442
+ $tax_rates = edd_get_tax_rates(
443
+ array(
444
+ 'name' => $args['country'],
445
+ 'status' => 'active',
446
+ ),
447
+ OBJECT
448
+ );
 
 
449
  }
450
 
451
+ if ( ! empty( $tax_rates ) ) {
452
+ foreach ( $tax_rates as $tax_rate ) {
453
 
454
+ // Regional tax rate.
455
+ if ( ! empty( $args['region'] ) && ! empty( $tax_rate->description ) && 'region' === $tax_rate->scope ) {
456
+ if ( strtolower( $args['region'] ) !== strtolower( $tax_rate->description ) ) {
457
+ continue;
458
+ }
459
 
460
+ $regional_rate = $tax_rate->amount;
461
 
462
+ if ( ! empty( $regional_rate ) ) {
463
+ return $tax_rate;
464
+ }
465
+ } elseif ( 'country' === $tax_rate->scope ) {
466
+ // Countrywide tax rate.
467
+ $rate = $tax_rate;
468
  }
469
+ }
470
+
471
+ if ( $rate ) {
472
+ return $rate;
473
  }
474
  }
475
 
476
+ // No regional or country rate was found, so look for a global rate.
477
+ $global_rates = edd_get_tax_rates(
478
+ array(
479
+ 'name' => '',
480
+ 'scope' => 'global',
481
+ 'status' => 'active',
482
+ ),
483
+ OBJECT
484
+ );
485
+
486
+ return ! empty( $global_rates ) ? reset( $global_rates ) : $rate;
487
  }
488
 
489
  /**
498
  add_action( 'edd_before_checkout_cart', function () {
499
  EDD()->cart->set_tax_rate( null );
500
  } );
501
+
502
+ /**
503
+ * Adds a tax rate to the database.
504
+ * If an active tax rate is found, it's demoted to inactive and the new one is added.
505
+ *
506
+ * @since 3.0.3
507
+ * @param array $data The array of data to create the tax rate.
508
+ * @return int|false Returns the tax rate ID if one is added; otherwise false.
509
+ */
510
+ function edd_add_tax_rate( $data = array() ) {
511
+ $data = wp_parse_args(
512
+ $data,
513
+ array(
514
+ 'name' => '',
515
+ 'description' => '',
516
+ 'status' => 'active',
517
+ )
518
+ );
519
+
520
+ // The type and amount type for tax rates cannot be overridden.
521
+ $data['type'] = 'tax_rate';
522
+ $data['amount_type'] = 'percent';
523
+
524
+ if ( empty( $data['scope'] ) ) {
525
+ $scope = 'country';
526
+ if ( empty( $data['name'] ) && empty( $data['description'] ) ) {
527
+ $scope = 'global';
528
+ } elseif ( ! empty( $data['name'] ) && ! empty( $data['description'] ) ) {
529
+ $scope = 'region';
530
+ }
531
+ $data['scope'] = $scope;
532
+ }
533
+
534
+ // Check if the tax rate exists.
535
+ $data_to_check = array(
536
+ 'type' => 'tax_rate',
537
+ 'fields' => 'ids',
538
+ 'status' => 'active',
539
+ 'name' => $data['name'],
540
+ 'description' => $data['description'],
541
+ 'scope' => $data['scope'],
542
+ );
543
+
544
+ // Query for potentially matching active rates.
545
+ $tax_rate_exists = edd_get_adjustments( $data_to_check );
546
+ $tax_rate_id = edd_add_adjustment( $data );
547
+
548
+ // If the new tax rate was successfully added, set the old one to inactive.
549
+ if ( $tax_rate_id && ! empty( $tax_rate_exists ) ) {
550
+ edd_update_adjustment( $tax_rate_exists[0], array( 'status' => 'inactive' ) );
551
+ }
552
+
553
+ return $tax_rate_id;
554
+ }
languages/easy-digital-downloads.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the Easy Digital Downloads package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Easy Digital Downloads 3.0.2.1\n"
6
  "Report-Msgid-Bugs-To: https://easydigitaldownloads.com/\n"
7
- "POT-Creation-Date: 2022-07-28 21:25:10+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -199,7 +199,7 @@ msgstr ""
199
 
200
  #: includes/admin/adjustments/adjustment-functions.php:43
201
  #: includes/admin/adjustments/adjustment-functions.php:99
202
- #: includes/admin/admin-pages.php:88 includes/admin/reporting/reports.php:1984
203
  #: includes/admin/settings/display-settings.php:40
204
  #: includes/admin/upgrades/upgrade-functions.php:1431
205
  #: includes/post-types.php:129 includes/reports/reports-functions.php:336
@@ -252,7 +252,7 @@ msgstr ""
252
  #: includes/admin/admin-bar.php:121 includes/admin/admin-pages.php:115
253
  #: includes/admin/plugins.php:60
254
  #: includes/admin/settings/contextual-help.php:102
255
- #: includes/admin/settings/register-settings.php:1632
256
  msgid "Extensions"
257
  msgstr ""
258
 
@@ -309,7 +309,7 @@ msgid "Orders"
309
  msgstr ""
310
 
311
  #: includes/admin/admin-pages.php:87 includes/admin/customers/customers.php:77
312
- #: includes/admin/reporting/reports.php:2265
313
  #: includes/admin/settings/display-settings.php:43
314
  msgid "Customers"
315
  msgstr ""
@@ -392,45 +392,45 @@ msgstr ""
392
  msgid "Generate New API Keys"
393
  msgstr ""
394
 
395
- #: includes/admin/class-edd-notices.php:223
396
  msgid "No checkout page is configured. Set one in <a href=\"%s\">Settings</a>."
397
  msgstr ""
398
 
399
- #: includes/admin/class-edd-notices.php:277
400
  msgid "The files in %s are not currently protected."
401
  msgstr ""
402
 
403
- #: includes/admin/class-edd-notices.php:278
404
  msgid ""
405
  "To protect them, you must add this <a "
406
  "href=\"https://docs.easydigitaldownloads.com/article/682-protected-download-"
407
  "files-on-nginx\">NGINX redirect rule</a>."
408
  msgstr ""
409
 
410
- #: includes/admin/class-edd-notices.php:279
411
- #: includes/admin/class-edd-notices.php:298
412
  msgid ""
413
  "If you have already done this, or it does not apply to your site, you may "
414
  "permenently %s."
415
  msgstr ""
416
 
417
- #: includes/admin/class-edd-notices.php:279
418
- #: includes/admin/class-edd-notices.php:298
419
  msgid "dismiss this notice"
420
  msgstr ""
421
 
422
- #: includes/admin/class-edd-notices.php:296
423
  msgid "The .htaccess file is missing from: %s"
424
  msgstr ""
425
 
426
- #: includes/admin/class-edd-notices.php:297
427
  msgid ""
428
  "First, please resave the Misc settings tab a few times. If this warning "
429
  "continues to appear, create a file called \".htaccess\" in the %s "
430
  "directory, and copy the following into it:"
431
  msgstr ""
432
 
433
- #: includes/admin/class-edd-notices.php:319
434
  msgid ""
435
  "Easy Digital Downloads 2.5 contains a <a href=\"%s\">built in recount "
436
  "tool</a>. Please <a href=\"%s\">deactivate the Easy Digital Downloads - "
@@ -672,13 +672,13 @@ msgstr ""
672
  #: includes/admin/discounts/contextual-help.php:35
673
  #: includes/admin/settings/contextual-help.php:40
674
  #: includes/admin/settings/display-settings.php:194
675
- #: includes/admin/settings/register-settings.php:1625
676
- #: includes/admin/settings/register-settings.php:1677
677
- #: includes/admin/settings/register-settings.php:1683
678
- #: includes/admin/settings/register-settings.php:1688
679
- #: includes/admin/settings/register-settings.php:1691
680
  #: includes/admin/settings/register-settings.php:1695
681
- #: includes/admin/settings/register-settings.php:1708
 
 
682
  #: includes/admin/tools.php:96
683
  msgid "General"
684
  msgstr ""
@@ -773,9 +773,9 @@ msgstr ""
773
  #: includes/admin/customers/class-customer-addresses-table.php:257
774
  #: includes/admin/customers/customers.php:955
775
  #: includes/admin/customers/customers.php:991
776
- #: includes/admin/views/tmpl-tax-rates-table-add.php:27
777
  #: includes/admin/views/tmpl-tax-rates-table-meta.php:17
778
- #: includes/admin/views/tmpl-tax-rates-table-row.php:23
779
  msgid "Region"
780
  msgstr ""
781
 
@@ -801,7 +801,7 @@ msgstr ""
801
  #: includes/admin/payments/class-payments-table.php:385
802
  #: includes/admin/payments/orders.php:117
803
  #: includes/admin/payments/orders.php:152
804
- #: includes/admin/reporting/class-file-downloads-logs-list-table.php:109
805
  #: includes/admin/reporting/class-sales-logs-list-table.php:98
806
  msgid "Customer"
807
  msgstr ""
@@ -819,12 +819,12 @@ msgstr ""
819
  #: includes/admin/customers/customers.php:752
820
  #: includes/admin/downloads/dashboard-columns.php:37
821
  #: includes/admin/payments/class-payments-table.php:388
822
- #: includes/admin/payments/orders.php:1056
823
  #: includes/admin/reporting/class-api-requests-logs-list-table.php:53
824
  #: includes/admin/reporting/class-export-download-history.php:59
825
  #: includes/admin/reporting/class-export-payments.php:76
826
  #: includes/admin/reporting/class-export.php:75
827
- #: includes/admin/reporting/class-file-downloads-logs-list-table.php:114
828
  #: includes/admin/reporting/class-gateway-error-logs-list-table.php:112
829
  #: includes/admin/reporting/class-sales-logs-list-table.php:101
830
  #: includes/admin/reporting/export/class-batch-export-api-requests.php:46
@@ -1195,15 +1195,15 @@ msgstr ""
1195
  #: includes/admin/customers/customers.php:708
1196
  #: includes/admin/customers/customers.php:749
1197
  #: includes/admin/payments/class-payments-table.php:384
1198
- #: includes/admin/reporting/reports.php:1021
1199
  msgid "Number"
1200
  msgstr ""
1201
 
1202
  #: includes/admin/customers/customers.php:709
1203
  #: includes/admin/customers/customers.php:750
1204
  #: includes/admin/payments/class-payments-table.php:386
1205
- #: includes/admin/payments/orders.php:881
1206
- #: includes/admin/payments/orders.php:887
1207
  #: includes/admin/reporting/class-gateway-error-logs-list-table.php:111
1208
  #: includes/admin/reporting/class-gateways-reports-table.php:74
1209
  #: includes/admin/reporting/export/class-batch-export-taxed-orders.php:59
@@ -1357,9 +1357,9 @@ msgstr ""
1357
  #: includes/admin/dashboard-widgets.php:150
1358
  #: includes/admin/dashboard-widgets.php:170
1359
  #: includes/admin/dashboard-widgets.php:193
1360
- #: includes/admin/reporting/reports.php:245
1361
- #: includes/admin/reporting/reports.php:268
1362
- #: includes/admin/reporting/reports.php:338
1363
  #: includes/reports/data/taxes/class-tax-collected-by-location-list-table.php:80
1364
  msgid "Net"
1365
  msgstr ""
@@ -1372,13 +1372,13 @@ msgstr ""
1372
  #: includes/admin/reporting/export/class-batch-export-sales-and-earnings.php:61
1373
  #: includes/admin/reporting/graphing.php:299
1374
  #: includes/admin/reporting/graphing.php:598
1375
- #: includes/admin/reporting/reports.php:252
1376
- #: includes/admin/reporting/reports.php:358
1377
- #: includes/admin/reporting/reports.php:670
1378
- #: includes/admin/reporting/reports.php:808
1379
- #: includes/admin/reporting/reports.php:1138
1380
- #: includes/admin/reporting/reports.php:1324
1381
- #: includes/admin/reporting/reports.php:1471
1382
  #: includes/reports/data/file-downloads/class-top-five-most-downloaded-list-table.php:61
1383
  msgid "Earnings"
1384
  msgstr ""
@@ -1466,12 +1466,12 @@ msgstr ""
1466
  #: includes/admin/discounts/add-discount.php:57
1467
  #: includes/admin/discounts/class-discount-codes-table.php:74
1468
  #: includes/admin/discounts/edit-discount.php:98
1469
- #: includes/admin/payments/orders.php:795
1470
  #: includes/admin/payments/refunds.php:225
1471
  #: includes/admin/reporting/class-export-payments.php:70
1472
  #: includes/admin/reporting/export/class-batch-export-payments.php:56
1473
  #: includes/admin/reporting/export/class-batch-export-taxed-orders.php:56
1474
- #: includes/admin/reporting/reports.php:1033
1475
  #: includes/admin/views/tmpl-order-adjustment-discount.php:41
1476
  #: includes/admin/views/tmpl-order-adjustment.php:55
1477
  #: includes/admin/views/tmpl-order-form-add-order-adjustment.php:80
@@ -1647,14 +1647,14 @@ msgstr ""
1647
  #: includes/admin/discounts/class-discount-codes-table.php:215
1648
  #: includes/admin/discounts/class-discount-codes-table.php:315
1649
  #: includes/admin/views/tmpl-tax-rates-table-bulk-actions.php:20
1650
- #: includes/admin/views/tmpl-tax-rates-table-row.php:42
1651
  msgid "Deactivate"
1652
  msgstr ""
1653
 
1654
  #: includes/admin/discounts/class-discount-codes-table.php:222
1655
  #: includes/admin/discounts/class-discount-codes-table.php:314
1656
  #: includes/admin/views/tmpl-tax-rates-table-bulk-actions.php:19
1657
- #: includes/admin/views/tmpl-tax-rates-table-row.php:44
1658
  msgid "Activate"
1659
  msgstr ""
1660
 
@@ -1844,7 +1844,7 @@ msgstr ""
1844
 
1845
  #: includes/admin/discounts/edit-discount.php:259
1846
  #: includes/admin/payments/class-payments-table.php:389
1847
- #: includes/admin/payments/orders.php:998
1848
  #: includes/admin/reporting/class-export-payments.php:78
1849
  #: includes/admin/reporting/export/class-batch-export-downloads.php:48
1850
  #: includes/admin/reporting/export/class-batch-export-payments.php:66
@@ -2007,11 +2007,11 @@ msgstr ""
2007
 
2008
  #: includes/admin/downloads/dashboard-columns.php:238
2009
  #: includes/admin/downloads/dashboard-columns.php:250
2010
- #: includes/admin/reporting/reports.php:2588
2011
- #: includes/admin/reporting/reports.php:2789
2012
- #: includes/admin/reporting/reports.php:2858
2013
- #: includes/admin/reporting/reports.php:2924
2014
- #: includes/reports/reports-functions.php:1084
2015
  #. translators: the plural post type label
2016
  msgid "All %s"
2017
  msgstr ""
@@ -2074,7 +2074,7 @@ msgstr ""
2074
  #: includes/admin/downloads/metabox.php:664
2075
  #: includes/admin/downloads/metabox.php:726
2076
  #: includes/admin/downloads/metabox.php:842
2077
- #: includes/admin/views/tmpl-tax-rates-table-row.php:40
2078
  #: includes/scripts.php:514 templates/checkout_cart.php:57
2079
  #: templates/checkout_cart.php:75 templates/shortcode-profile-editor.php:123
2080
  msgid "Remove"
@@ -2201,12 +2201,12 @@ msgid "Insert into %s"
2201
  msgstr ""
2202
 
2203
  #: includes/admin/downloads/metabox.php:963
2204
- #: includes/admin/reporting/reports.php:850
2205
- #: includes/admin/reporting/reports.php:1013
2206
- #: includes/admin/reporting/reports.php:1164
2207
  #: includes/admin/settings/register-settings.php:639
2208
  #: includes/admin/settings/register-settings.php:642
2209
- #: includes/admin/settings/register-settings.php:1679
2210
  #: includes/orders/functions/types.php:93
2211
  msgid "Refunds"
2212
  msgstr ""
@@ -2737,7 +2737,7 @@ msgstr ""
2737
  #: includes/admin/payments/class-payments-table.php:296
2738
  #: includes/admin/reporting/class-base-logs-list-table.php:506
2739
  #: includes/admin/tools/logs.php:258
2740
- #: includes/reports/reports-functions.php:1398
2741
  msgid "Filter"
2742
  msgstr ""
2743
 
@@ -2821,13 +2821,13 @@ msgid "Resend Receipts"
2821
  msgstr ""
2822
 
2823
  #: includes/admin/payments/class-payments-table.php:672
2824
- #: includes/admin/payments/orders.php:1034
2825
  #: includes/admin/payments/refunds.php:301
2826
  msgid "Move to Trash"
2827
  msgstr ""
2828
 
2829
  #: includes/admin/payments/class-refund-items-table.php:78
2830
- #: includes/admin/payments/orders.php:791
2831
  #: includes/admin/payments/refunds.php:223
2832
  #: includes/admin/views/tmpl-order-form-add-order-item.php:175
2833
  #: includes/admin/views/tmpl-order-item.php:67
@@ -2835,7 +2835,7 @@ msgid "Unit Price"
2835
  msgstr ""
2836
 
2837
  #: includes/admin/payments/class-refund-items-table.php:79
2838
- #: includes/admin/payments/orders.php:793
2839
  #: includes/admin/payments/refunds.php:224
2840
  #: includes/admin/reporting/export/class-batch-export-sales.php:46
2841
  #: includes/admin/views/tmpl-order-form-add-order-item.php:110
@@ -3171,31 +3171,31 @@ msgstr ""
3171
  msgid "Customer Orders"
3172
  msgstr ""
3173
 
3174
- #: includes/admin/payments/orders.php:758
3175
  #: includes/admin/views/tmpl-order-copy-download-link.php:35
3176
  #: includes/gateways/stripe/includes/utils/modal.php:69
3177
  msgid "Close"
3178
  msgstr ""
3179
 
3180
- #: includes/admin/payments/orders.php:823
3181
  msgid "Order Details"
3182
  msgstr ""
3183
 
3184
- #: includes/admin/payments/orders.php:871
3185
  msgid "Order Extras"
3186
  msgstr ""
3187
 
3188
- #: includes/admin/payments/orders.php:909
3189
  msgid "Key"
3190
  msgstr ""
3191
 
3192
- #: includes/admin/payments/orders.php:919
3193
- #: includes/admin/payments/orders.php:927
3194
  msgid "IP"
3195
  msgstr ""
3196
 
3197
- #: includes/admin/payments/orders.php:934
3198
- #: includes/admin/payments/orders.php:942
3199
  #: includes/admin/reporting/class-export-payments.php:74
3200
  #: includes/admin/reporting/export/class-batch-export-payments.php:60
3201
  #: includes/admin/reporting/export/class-batch-export-taxed-orders.php:60
@@ -3203,76 +3203,76 @@ msgstr ""
3203
  msgid "Transaction ID"
3204
  msgstr ""
3205
 
3206
- #: includes/admin/payments/orders.php:956
3207
  msgid "Unlimited Downloads"
3208
  msgstr ""
3209
 
3210
- #: includes/admin/payments/orders.php:957
3211
  msgid ""
3212
  "Checking this box will override all other file download limits for this "
3213
  "purchase, granting the customer unlimited downloads of all files included "
3214
  "on the purchase."
3215
  msgstr ""
3216
 
3217
- #: includes/admin/payments/orders.php:989
3218
  msgid "Order Attributes"
3219
  msgstr ""
3220
 
3221
- #: includes/admin/payments/orders.php:1001
3222
  msgid ""
3223
  "<strong>Pending</strong>: order is still processing or was abandoned by "
3224
  "customer. Successful orders will be marked as Complete automatically once "
3225
  "processing is finalized."
3226
  msgstr ""
3227
 
3228
- #: includes/admin/payments/orders.php:1002
3229
  msgid "<strong>Complete</strong>: all processing is completed for this purchase."
3230
  msgstr ""
3231
 
3232
- #: includes/admin/payments/orders.php:1003
3233
  msgid ""
3234
  "<strong>Revoked</strong>: access to purchased items is disabled, perhaps "
3235
  "due to policy violation or fraud."
3236
  msgstr ""
3237
 
3238
- #: includes/admin/payments/orders.php:1004
3239
  msgid ""
3240
  "<strong>Refunded</strong>: the purchase amount is returned to the customer "
3241
  "and access to items is disabled."
3242
  msgstr ""
3243
 
3244
- #: includes/admin/payments/orders.php:1005
3245
  msgid ""
3246
  "<strong>Abandoned</strong>: the purchase attempt was not completed by the "
3247
  "customer."
3248
  msgstr ""
3249
 
3250
- #: includes/admin/payments/orders.php:1006
3251
  msgid ""
3252
  "<strong>Failed</strong>: customer clicked Cancel before completing the "
3253
  "purchase."
3254
  msgstr ""
3255
 
3256
- #: includes/admin/payments/orders.php:1044
3257
  msgid "Recover"
3258
  msgstr ""
3259
 
3260
- #: includes/admin/payments/orders.php:1045
3261
  msgid ""
3262
  "Pending and abandoned payments can be resumed by the customer, using this "
3263
  "custom URL. Payments can be resumed only when they do not have a "
3264
  "transaction ID from the gateway."
3265
  msgstr ""
3266
 
3267
- #: includes/admin/payments/orders.php:1067
3268
  msgid "Time"
3269
  msgstr ""
3270
 
3271
- #: includes/admin/payments/orders.php:1072
3272
  msgid "Hour"
3273
  msgstr ""
3274
 
3275
- #: includes/admin/payments/orders.php:1078
3276
  msgid "Minute"
3277
  msgstr ""
3278
 
@@ -3439,7 +3439,7 @@ msgid ""
3439
  msgstr ""
3440
 
3441
  #: includes/admin/reporting/class-api-requests-logs-list-table.php:48
3442
- #: includes/admin/reporting/class-file-downloads-logs-list-table.php:107
3443
  #: includes/admin/reporting/class-gateway-error-logs-list-table.php:107
3444
  #: includes/admin/reporting/export/class-batch-export-api-requests.php:39
3445
  #: includes/admin/reporting/export/class-batch-export-sales.php:39
@@ -3537,12 +3537,12 @@ msgstr ""
3537
  #: includes/admin/reporting/graphing.php:300
3538
  #: includes/admin/reporting/graphing.php:599
3539
  #: includes/admin/reporting/reports.php:232
3540
- #: includes/admin/reporting/reports.php:346
3541
- #: includes/admin/reporting/reports.php:620
3542
- #: includes/admin/reporting/reports.php:796
3543
- #: includes/admin/reporting/reports.php:1114
3544
- #: includes/admin/reporting/reports.php:1274
3545
- #: includes/admin/reporting/reports.php:1459
3546
  #: includes/reports/data/downloads/class-top-selling-downloads-list-table.php:57
3547
  #: includes/reports/data/file-downloads/class-top-five-most-downloaded-list-table.php:60
3548
  #: tests/reports/data/charts/v2/tests-dateset.php:213
@@ -3584,7 +3584,7 @@ msgid "Downloaded by"
3584
  msgstr ""
3585
 
3586
  #: includes/admin/reporting/class-export-download-history.php:61
3587
- #: includes/admin/reporting/class-file-downloads-logs-list-table.php:112
3588
  #: includes/admin/reporting/export/class-batch-export-api-requests.php:41
3589
  #: includes/admin/reporting/export/class-batch-export-file-downloads.php:45
3590
  #: includes/admin/reporting/export/class-batch-export-payments.php:64
@@ -3596,7 +3596,7 @@ msgid "IP Address"
3596
  msgstr ""
3597
 
3598
  #: includes/admin/reporting/class-export-download-history.php:63
3599
- #: includes/admin/reporting/class-file-downloads-logs-list-table.php:111
3600
  #: includes/admin/reporting/export/class-batch-export-file-downloads.php:48
3601
  msgid "File"
3602
  msgstr ""
@@ -3655,7 +3655,7 @@ msgstr ""
3655
  #: includes/admin/reporting/export/class-batch-export-taxed-orders.php:64
3656
  #: includes/admin/settings/register-settings.php:447
3657
  #: includes/admin/settings/register-settings.php:455
3658
- #: includes/admin/settings/register-settings.php:1671
3659
  msgid "Currency"
3660
  msgstr ""
3661
 
@@ -3707,14 +3707,14 @@ msgstr ""
3707
  msgid "You do not have permission to export data."
3708
  msgstr ""
3709
 
3710
- #: includes/admin/reporting/class-file-downloads-logs-list-table.php:110
3711
  #: includes/admin/reporting/class-gateway-error-logs-list-table.php:108
3712
  #: includes/admin/reporting/class-sales-logs-list-table.php:97
3713
  #: includes/admin/reporting/export/class-batch-export-taxed-orders.php:42
3714
  msgid "Order Number"
3715
  msgstr ""
3716
 
3717
- #: includes/admin/reporting/class-file-downloads-logs-list-table.php:113
3718
  #: includes/admin/reporting/export/class-batch-export-file-downloads.php:46
3719
  msgid "User Agent"
3720
  msgstr ""
@@ -3758,8 +3758,8 @@ msgid ""
3758
  msgstr ""
3759
 
3760
  #: includes/admin/reporting/contextual-help.php:45
3761
- #: includes/admin/reporting/reports.php:2485
3762
- #: includes/admin/reporting/reports.php:2607 includes/admin/tools.php:996
3763
  msgid "Export"
3764
  msgstr ""
3765
 
@@ -4026,394 +4026,394 @@ msgstr ""
4026
  msgid "The logs tab has been moved to the Tools screen."
4027
  msgstr ""
4028
 
4029
- #: includes/admin/reporting/reports.php:275
4030
- #: includes/admin/reporting/reports.php:1191
4031
  msgid "Average Order Value"
4032
  msgstr ""
4033
 
4034
- #: includes/admin/reporting/reports.php:297
4035
- #: includes/admin/reporting/reports.php:2285
4036
- #: includes/admin/reporting/reports.php:2358
4037
- #: includes/admin/reporting/reports.php:2455
4038
  msgid "New Customers"
4039
  msgstr ""
4040
 
4041
- #: includes/admin/reporting/reports.php:315
4042
- #: includes/admin/reporting/reports.php:934
4043
  msgid "Total Refund Amount"
4044
  msgstr ""
4045
 
4046
- #: includes/admin/reporting/reports.php:338
4047
- #: includes/admin/reporting/reports.php:688
4048
- #: includes/admin/reporting/reports.php:1342
4049
  msgid "Sales and Earnings"
4050
  msgstr ""
4051
 
4052
- #: includes/admin/reporting/reports.php:401
4053
  msgid "Sales / Earnings"
4054
  msgstr ""
4055
 
4056
- #: includes/admin/reporting/reports.php:475
4057
  msgid "Most Valuable %s"
4058
  msgstr ""
4059
 
4060
- #: includes/admin/reporting/reports.php:512
4061
  msgid "Average Sales / Earnings"
4062
  msgstr ""
4063
 
4064
- #: includes/admin/reporting/reports.php:527
4065
  msgid "Net\t"
4066
  msgstr ""
4067
 
4068
- #: includes/admin/reporting/reports.php:563
4069
  msgid "Earnings By Taxonomy"
4070
  msgstr ""
4071
 
4072
- #: includes/admin/reporting/reports.php:575
4073
  msgid "Top Selling %s"
4074
  msgstr ""
4075
 
4076
- #: includes/admin/reporting/reports.php:587
4077
  msgid "Sales by Variation"
4078
  msgstr ""
4079
 
4080
- #: includes/admin/reporting/reports.php:637
4081
  msgid "Earnings by Variation"
4082
  msgstr ""
4083
 
4084
- #: includes/admin/reporting/reports.php:875
4085
  msgid "Number of Refunds"
4086
  msgstr ""
4087
 
4088
- #: includes/admin/reporting/reports.php:894
4089
  msgid "Number of Fully Refunded Orders"
4090
  msgstr ""
4091
 
4092
- #: includes/admin/reporting/reports.php:914
4093
  msgid "Number of Fully Refunded Items"
4094
  msgstr ""
4095
 
4096
- #: includes/admin/reporting/reports.php:954
4097
  msgid "Average Refund Amount"
4098
  msgstr ""
4099
 
4100
- #: includes/admin/reporting/reports.php:975
4101
  msgid "Average Time to Refund"
4102
  msgstr ""
4103
 
4104
- #: includes/admin/reporting/reports.php:993
4105
  msgid "Refund Rate"
4106
  msgstr ""
4107
 
4108
- #: includes/admin/reporting/reports.php:1102
4109
  msgid "Payment Gateways"
4110
  msgstr ""
4111
 
4112
- #: includes/admin/reporting/reports.php:1228
4113
  msgid "Gateway Stats"
4114
  msgstr ""
4115
 
4116
- #: includes/admin/reporting/reports.php:1242
4117
  msgid "Gateway Sales"
4118
  msgstr ""
4119
 
4120
- #: includes/admin/reporting/reports.php:1291
4121
  msgid "Gateway Earnings"
4122
  msgstr ""
4123
 
4124
- #: includes/admin/reporting/reports.php:1543
4125
  #: includes/admin/settings/contextual-help.php:78
4126
  #: includes/admin/settings/register-settings.php:840
4127
- #: includes/admin/settings/register-settings.php:1630
4128
  msgid "Taxes"
4129
  msgstr ""
4130
 
4131
- #: includes/admin/reporting/reports.php:1554
4132
  msgid "Total Tax Collected"
4133
  msgstr ""
4134
 
4135
- #: includes/admin/reporting/reports.php:1589
4136
  msgid "Total Tax Collected for "
4137
  msgstr ""
4138
 
4139
- #: includes/admin/reporting/reports.php:1619
4140
  msgid "Tax Collected by Location"
4141
  msgstr ""
4142
 
4143
- #: includes/admin/reporting/reports.php:1698
4144
- #: includes/admin/reporting/reports.php:1907
4145
- #: includes/admin/settings/register-settings.php:1710
4146
  #: includes/admin/tools/logs.php:195 includes/privacy-functions.php:546
4147
  #: includes/reports/data/file-downloads/class-top-five-most-downloaded-list-table.php:58
4148
  msgid "File Downloads"
4149
  msgstr ""
4150
 
4151
- #: includes/admin/reporting/reports.php:1710
4152
- #: includes/admin/reporting/reports.php:1800
4153
  msgid "Number of File Downloads"
4154
  msgstr ""
4155
 
4156
- #: includes/admin/reporting/reports.php:1734
4157
  msgid "Average per Customer"
4158
  msgstr ""
4159
 
4160
- #: includes/admin/reporting/reports.php:1752
4161
  msgid "Average per Order"
4162
  msgstr ""
4163
 
4164
- #: includes/admin/reporting/reports.php:1770
4165
  msgid "Most Downloaded Product"
4166
  msgstr ""
4167
 
4168
- #: includes/admin/reporting/reports.php:1788
4169
  msgid "Top Five Most Downloaded Products"
4170
  msgstr ""
4171
 
4172
- #: includes/admin/reporting/reports.php:1996
4173
  msgid "Number of Discounts Used"
4174
  msgstr ""
4175
 
4176
- #: includes/admin/reporting/reports.php:2013
4177
  msgid "Discount Ratio"
4178
  msgstr ""
4179
 
4180
- #: includes/admin/reporting/reports.php:2031
4181
  msgid "Customer Savings"
4182
  msgstr ""
4183
 
4184
- #: includes/admin/reporting/reports.php:2052
4185
  msgid "Average Discount Amount"
4186
  msgstr ""
4187
 
4188
- #: includes/admin/reporting/reports.php:2070
4189
  msgid "Most Popular Discount"
4190
  msgstr ""
4191
 
4192
- #: includes/admin/reporting/reports.php:2095
4193
  msgid "Discount Usage Count"
4194
  msgstr ""
4195
 
4196
- #: includes/admin/reporting/reports.php:2114
4197
  msgid "Top Five Discounts"
4198
  msgstr ""
4199
 
4200
- #: includes/admin/reporting/reports.php:2127
4201
- #: includes/admin/reporting/reports.php:2225
4202
  msgid "Discount Usage"
4203
  msgstr ""
4204
 
4205
- #: includes/admin/reporting/reports.php:2303
4206
  msgid "Average Revenue per Customer"
4207
  msgstr ""
4208
 
4209
- #: includes/admin/reporting/reports.php:2318
4210
  msgid "Average Orders per Customer"
4211
  msgstr ""
4212
 
4213
- #: includes/admin/reporting/reports.php:2334
4214
  msgid "Top Five Customers &mdash; All Time"
4215
  msgstr ""
4216
 
4217
- #: includes/admin/reporting/reports.php:2346
4218
  msgid "Most Valuable Customers"
4219
  msgstr ""
4220
 
4221
- #: includes/admin/reporting/reports.php:2515
4222
  msgid "Export Earnings Report"
4223
  msgstr ""
4224
 
4225
- #: includes/admin/reporting/reports.php:2517
4226
  msgid "Download a CSV giving a detailed look into earnings over time."
4227
  msgstr ""
4228
 
4229
- #: includes/admin/reporting/reports.php:2521
4230
  msgid "Export Earnings Start"
4231
  msgstr ""
4232
 
4233
- #: includes/admin/reporting/reports.php:2523
4234
  msgid "Select start month"
4235
  msgstr ""
4236
 
4237
- #: includes/admin/reporting/reports.php:2525
4238
  msgid "Select start year"
4239
  msgstr ""
4240
 
4241
- #: includes/admin/reporting/reports.php:2533
4242
  msgid "Export Earnings End"
4243
  msgstr ""
4244
 
4245
- #: includes/admin/reporting/reports.php:2535
4246
  msgid "Select end month"
4247
  msgstr ""
4248
 
4249
- #: includes/admin/reporting/reports.php:2537
4250
  msgid "Select end year"
4251
  msgstr ""
4252
 
4253
- #: includes/admin/reporting/reports.php:2542
4254
- #: includes/admin/reporting/reports.php:2660
4255
- #: includes/admin/reporting/reports.php:2733
4256
- #: includes/admin/reporting/reports.php:2796
4257
- #: includes/admin/reporting/reports.php:2837
4258
- #: includes/admin/reporting/reports.php:2864
4259
- #: includes/admin/reporting/reports.php:2907
4260
- #: includes/admin/reporting/reports.php:2961
4261
  msgid "Generate CSV"
4262
  msgstr ""
4263
 
4264
- #: includes/admin/reporting/reports.php:2548
4265
  msgid "Export Sales and Earnings"
4266
  msgstr ""
4267
 
4268
- #: includes/admin/reporting/reports.php:2550
4269
  msgid "Download a CSV of all sales or earnings on a day-by-day basis."
4270
  msgstr ""
4271
 
4272
- #: includes/admin/reporting/reports.php:2554
4273
  msgid "Export Sales and Earnings Dates"
4274
  msgstr ""
4275
 
4276
- #: includes/admin/reporting/reports.php:2556
4277
- #: includes/admin/reporting/reports.php:2621
4278
- #: includes/admin/reporting/reports.php:2674
4279
- #: includes/admin/reporting/reports.php:2809
4280
- #: includes/admin/reporting/reports.php:2878
4281
- #: includes/admin/reporting/reports.php:2932
4282
  msgid "Set start date"
4283
  msgstr ""
4284
 
4285
- #: includes/admin/reporting/reports.php:2567
4286
- #: includes/admin/reporting/reports.php:2632
4287
- #: includes/admin/reporting/reports.php:2685
4288
- #: includes/admin/reporting/reports.php:2820
4289
- #: includes/admin/reporting/reports.php:2889
4290
- #: includes/admin/reporting/reports.php:2943
4291
  msgid "Set end date"
4292
  msgstr ""
4293
 
4294
- #: includes/admin/reporting/reports.php:2580
4295
- #: includes/admin/reporting/reports.php:2781
4296
- #: includes/admin/reporting/reports.php:2851
4297
- #: includes/admin/reporting/reports.php:2917
4298
  #. translators: the plural post type label
4299
  msgid "Select Download"
4300
  msgstr ""
4301
 
4302
- #: includes/admin/reporting/reports.php:2592
4303
  msgid "Select Customer"
4304
  msgstr ""
4305
 
4306
- #: includes/admin/reporting/reports.php:2600
4307
  msgid "All Customers"
4308
  msgstr ""
4309
 
4310
- #: includes/admin/reporting/reports.php:2613
4311
  msgid "Export Orders"
4312
  msgstr ""
4313
 
4314
- #: includes/admin/reporting/reports.php:2615
4315
  msgid "Download a CSV of all orders."
4316
  msgstr ""
4317
 
4318
- #: includes/admin/reporting/reports.php:2619
4319
  msgid "Export Order Dates"
4320
  msgstr ""
4321
 
4322
- #: includes/admin/reporting/reports.php:2644
4323
- #: includes/admin/reporting/reports.php:2697
4324
  msgid "Select Status"
4325
  msgstr ""
4326
 
4327
- #: includes/admin/reporting/reports.php:2650
4328
- #: includes/admin/reporting/reports.php:2703
4329
  msgid "All Statuses"
4330
  msgstr ""
4331
 
4332
- #: includes/admin/reporting/reports.php:2666
4333
  msgid "Export Taxed Orders"
4334
  msgstr ""
4335
 
4336
- #: includes/admin/reporting/reports.php:2668
4337
  msgid "Download a CSV of all orders, taxed by Country and/or Region."
4338
  msgstr ""
4339
 
4340
- #: includes/admin/reporting/reports.php:2672
4341
  msgid "Export Taxed Order Dates"
4342
  msgstr ""
4343
 
4344
- #: includes/admin/reporting/reports.php:2710
4345
  msgid "Select Country"
4346
  msgstr ""
4347
 
4348
- #: includes/admin/reporting/reports.php:2721
4349
  msgid "Select Region"
4350
  msgstr ""
4351
 
4352
- #: includes/admin/reporting/reports.php:2726
4353
  #: includes/class-edd-html-elements.php:632
4354
  msgid "All Regions"
4355
  msgstr ""
4356
 
4357
- #: includes/admin/reporting/reports.php:2739
4358
  msgid "Export Customers"
4359
  msgstr ""
4360
 
4361
- #: includes/admin/reporting/reports.php:2741
4362
  msgid ""
4363
  "Download a CSV of customers. Select a taxonomy to see all the customers who "
4364
  "purchased %s in that taxonomy."
4365
  msgstr ""
4366
 
4367
- #: includes/admin/reporting/reports.php:2768
4368
  msgid "Select Taxonomy"
4369
  msgstr ""
4370
 
4371
- #: includes/admin/reporting/reports.php:2777
4372
  msgid "All Taxonomies"
4373
  msgstr ""
4374
 
4375
- #: includes/admin/reporting/reports.php:2802
4376
  msgid "Export Taxed Customers"
4377
  msgstr ""
4378
 
4379
- #: includes/admin/reporting/reports.php:2804
4380
  msgid "Download a CSV of all customers that were taxed."
4381
  msgstr ""
4382
 
4383
- #: includes/admin/reporting/reports.php:2808
4384
  msgid "Export Taxed Customer Dates"
4385
  msgstr ""
4386
 
4387
- #: includes/admin/reporting/reports.php:2870
4388
  msgid "Export API Request Logs"
4389
  msgstr ""
4390
 
4391
- #: includes/admin/reporting/reports.php:2872
4392
  msgid "Download a CSV of API request logs."
4393
  msgstr ""
4394
 
4395
- #: includes/admin/reporting/reports.php:2876
4396
  msgid "Export API Request Log Dates"
4397
  msgstr ""
4398
 
4399
- #: includes/admin/reporting/reports.php:2913
4400
  msgid "Export File Download Logs"
4401
  msgstr ""
4402
 
4403
- #: includes/admin/reporting/reports.php:2915
4404
  msgid "Download a CSV of file download logs."
4405
  msgstr ""
4406
 
4407
- #: includes/admin/reporting/reports.php:2930
4408
  msgid "Export File Download Log Dates"
4409
  msgstr ""
4410
 
4411
- #: includes/admin/reporting/reports.php:3035 includes/user-functions.php:915
4412
  #: includes/user-functions.php:919
4413
  msgid "Notice"
4414
  msgstr ""
4415
 
4416
- #: includes/admin/reporting/reports.php:3036
4417
  msgid ""
4418
  "Tax reports are only generated for taxes associated with a location. The "
4419
  "legacy default tax rate is unable to be reported on."
@@ -4432,7 +4432,7 @@ msgid ""
4432
  msgstr ""
4433
 
4434
  #: includes/admin/settings/contextual-help.php:46
4435
- #: includes/admin/settings/register-settings.php:1626
4436
  msgid "Payments"
4437
  msgstr ""
4438
 
@@ -4469,7 +4469,7 @@ msgid ""
4469
  msgstr ""
4470
 
4471
  #: includes/admin/settings/contextual-help.php:56
4472
- #: includes/admin/settings/register-settings.php:1627
4473
  msgid "Emails"
4474
  msgstr ""
4475
 
@@ -4488,7 +4488,7 @@ msgid ""
4488
  msgstr ""
4489
 
4490
  #: includes/admin/settings/contextual-help.php:64
4491
- #: includes/admin/settings/register-settings.php:1628
4492
  msgid "Marketing"
4493
  msgstr ""
4494
 
@@ -4501,7 +4501,7 @@ msgid "Marketing specific extensions will add their settings here as well."
4501
  msgstr ""
4502
 
4503
  #: includes/admin/settings/contextual-help.php:72
4504
- #: includes/admin/settings/register-settings.php:1629
4505
  msgid "Styles"
4506
  msgstr ""
4507
 
@@ -4578,7 +4578,7 @@ msgid ""
4578
  msgstr ""
4579
 
4580
  #: includes/admin/settings/contextual-help.php:94
4581
- #: includes/admin/settings/register-settings.php:1631
4582
  msgid "Policies"
4583
  msgstr ""
4584
 
@@ -4733,7 +4733,7 @@ msgid "Select a region"
4733
  msgstr ""
4734
 
4735
  #: includes/admin/settings/register-settings.php:389
4736
- #: includes/admin/settings/register-settings.php:1672
4737
  msgid "Pages"
4738
  msgstr ""
4739
 
@@ -4865,7 +4865,7 @@ msgid ""
4865
  msgstr ""
4866
 
4867
  #: includes/admin/settings/register-settings.php:495
4868
- #: includes/admin/settings/register-settings.php:1673
4869
  msgid "API"
4870
  msgstr ""
4871
 
@@ -4901,7 +4901,7 @@ msgid ""
4901
  msgstr ""
4902
 
4903
  #: includes/admin/settings/register-settings.php:517
4904
- #: includes/admin/settings/register-settings.php:1674
4905
  msgid "Tracking"
4906
  msgstr ""
4907
 
@@ -5603,7 +5603,7 @@ msgid ""
5603
  msgstr ""
5604
 
5605
  #: includes/admin/settings/register-settings.php:1038
5606
- #: includes/admin/settings/register-settings.php:1699
5607
  msgid "Privacy Policy"
5608
  msgstr ""
5609
 
@@ -5665,7 +5665,7 @@ msgid "Need help creating a Privacy Policy? We recommend %sTermageddon%s."
5665
  msgstr ""
5666
 
5667
  #: includes/admin/settings/register-settings.php:1072
5668
- #: includes/admin/settings/register-settings.php:1700
5669
  msgid "Terms & Agreements"
5670
  msgstr ""
5671
 
@@ -5755,209 +5755,209 @@ msgstr ""
5755
  #: includes/admin/settings/register-settings.php:1172
5756
  msgid ""
5757
  "This setting is no longer used in this version of Easy Digital Downloads. "
5758
- "Please confirm your regional tax rates are properly configured properly "
5759
- "below, then click \"Save Changes\" to dismiss this notice."
5760
  msgstr ""
5761
 
5762
- #: includes/admin/settings/register-settings.php:1633
5763
  msgid "Licenses"
5764
  msgstr ""
5765
 
5766
- #: includes/admin/settings/register-settings.php:1634
5767
  msgid "Misc"
5768
  msgstr ""
5769
 
5770
- #: includes/admin/settings/register-settings.php:1670
5771
  msgid "Store"
5772
  msgstr ""
5773
 
5774
- #: includes/admin/settings/register-settings.php:1678
5775
  #: includes/gateways/stripe/includes/payment-methods/payment-request/admin/settings.php:82
5776
  #: includes/install.php:346 templates/widget-cart-checkout.php:6
5777
  #: templates/widget-cart-empty.php:7
5778
  msgid "Checkout"
5779
  msgstr ""
5780
 
5781
- #: includes/admin/settings/register-settings.php:1680
5782
  msgid "Accounting"
5783
  msgstr ""
5784
 
5785
- #: includes/admin/settings/register-settings.php:1684
5786
  msgid "Purchase Receipts"
5787
  msgstr ""
5788
 
5789
- #: includes/admin/settings/register-settings.php:1685
5790
  msgid "Sale Notifications"
5791
  msgstr ""
5792
 
5793
- #: includes/admin/settings/register-settings.php:1692
5794
  msgid "Buttons"
5795
  msgstr ""
5796
 
5797
- #: includes/admin/settings/register-settings.php:1696
5798
  msgid "Rates"
5799
  msgstr ""
5800
 
5801
- #: includes/admin/settings/register-settings.php:1701
5802
  msgid "Export & Erase"
5803
  msgstr ""
5804
 
5805
- #: includes/admin/settings/register-settings.php:1704
5806
  msgid "Main"
5807
  msgstr ""
5808
 
5809
- #: includes/admin/settings/register-settings.php:1709
5810
  msgid "Purchase Buttons"
5811
  msgstr ""
5812
 
5813
- #: includes/admin/settings/register-settings.php:2069
5814
  #: includes/gateways/functions.php:70 includes/gateways/functions.php:71
5815
  msgid "Store Gateway"
5816
  msgstr ""
5817
 
5818
- #: includes/admin/settings/register-settings.php:2069
5819
  msgid ""
5820
  "This is an internal payment gateway which can be used for manually added "
5821
  "orders or test purchases. No money is actually processed."
5822
  msgstr ""
5823
 
5824
- #: includes/admin/settings/register-settings.php:2084
5825
  msgid "These gateways will be offered at checkout."
5826
  msgstr ""
5827
 
5828
- #: includes/admin/settings/register-settings.php:2084
5829
  msgid "More <a href=\"%s\">Payment Gateways</a> are available."
5830
  msgstr ""
5831
 
5832
- #: includes/admin/settings/register-settings.php:2113
5833
  msgid "&mdash; No gateway &mdash;"
5834
  msgstr ""
5835
 
5836
- #: includes/admin/settings/register-settings.php:2340
5837
  msgid "The callback function used for the %s setting is missing."
5838
  msgstr ""
5839
 
5840
- #: includes/admin/settings/register-settings.php:2522
5841
  msgid "Attach File"
5842
  msgstr ""
5843
 
5844
- #: includes/admin/settings/register-settings.php:2522
5845
  msgid "Attach"
5846
  msgstr ""
5847
 
5848
- #: includes/admin/settings/register-settings.php:2639
5849
  msgid "Recapture plugin activated."
5850
  msgstr ""
5851
 
5852
- #: includes/admin/settings/register-settings.php:2640
5853
  msgid "%sAccess your Recapture account%s."
5854
  msgstr ""
5855
 
5856
- #: includes/admin/settings/register-settings.php:2645
5857
  msgid "Disconnect Recapture"
5858
  msgstr ""
5859
 
5860
- #: includes/admin/settings/register-settings.php:2649
5861
  msgid "%sComplete your connection to Recapture%s"
5862
  msgstr ""
5863
 
5864
- #: includes/admin/settings/register-settings.php:2657
5865
  msgid ""
5866
  "We recommend Recapture for recovering lost revenue by automatically sending "
5867
  "effective, targeted emails to customers who abandon their shopping cart."
5868
  msgstr ""
5869
 
5870
- #: includes/admin/settings/register-settings.php:2657
5871
  msgid "%sLearn more%s (Free trial available)"
5872
  msgstr ""
5873
 
5874
- #: includes/admin/settings/register-settings.php:2661
5875
  msgid "Connect with Recapture"
5876
  msgstr ""
5877
 
5878
- #: includes/admin/settings/register-settings.php:2694
5879
  #. translators: Tax rate country code
5880
  msgid ""
5881
  "Duplicate tax rates are not allowed. Please deactivate the existing %s tax "
5882
  "rate before adding or activating another."
5883
  msgstr ""
5884
 
5885
- #: includes/admin/settings/register-settings.php:2695
5886
  msgid "Please select a country."
5887
  msgstr ""
5888
 
5889
- #: includes/admin/settings/register-settings.php:2696
5890
  msgid "Please enter a tax rate greater than 0."
5891
  msgstr ""
5892
 
5893
- #: includes/admin/settings/register-settings.php:2779
5894
  msgid ""
5895
  "Your license key expired on %s. Please <a href=\"%s\" "
5896
  "target=\"_blank\">renew your license key</a>."
5897
  msgstr ""
5898
 
5899
- #: includes/admin/settings/register-settings.php:2791
5900
  msgid ""
5901
  "Your license key has been disabled. Please <a href=\"%s\" "
5902
  "target=\"_blank\">contact support</a> for more information."
5903
  msgstr ""
5904
 
5905
- #: includes/admin/settings/register-settings.php:2802
5906
  msgid ""
5907
  "Invalid license. Please <a href=\"%s\" target=\"_blank\">visit your account "
5908
  "page</a> and verify it."
5909
  msgstr ""
5910
 
5911
- #: includes/admin/settings/register-settings.php:2814
5912
  msgid ""
5913
  "Your %s is not active for this URL. Please <a href=\"%s\" "
5914
  "target=\"_blank\">visit your account page</a> to manage your license key "
5915
  "URLs."
5916
  msgstr ""
5917
 
5918
- #: includes/admin/settings/register-settings.php:2825
5919
  msgid "This appears to be an invalid license key for %s."
5920
  msgstr ""
5921
 
5922
- #: includes/admin/settings/register-settings.php:2833
5923
  msgid ""
5924
  "Your license key has reached its activation limit. <a href=\"%s\">View "
5925
  "possible upgrades</a> now."
5926
  msgstr ""
5927
 
5928
- #: includes/admin/settings/register-settings.php:2841
5929
  msgid ""
5930
  "The key you entered belongs to a bundle, please use the product specific "
5931
  "license key."
5932
  msgstr ""
5933
 
5934
- #: includes/admin/settings/register-settings.php:2848
5935
  msgid "unknown_error"
5936
  msgstr ""
5937
 
5938
- #: includes/admin/settings/register-settings.php:2849
5939
  msgid ""
5940
  "There was an error with this license key: %s. Please <a href=\"%s\">contact "
5941
  "our support team</a>."
5942
  msgstr ""
5943
 
5944
- #: includes/admin/settings/register-settings.php:2865
5945
  msgid "License key never expires."
5946
  msgstr ""
5947
 
5948
- #: includes/admin/settings/register-settings.php:2871
5949
  msgid "Your license key expires soon! It expires on %s."
5950
  msgstr ""
5951
 
5952
- #: includes/admin/settings/register-settings.php:2879
5953
  msgid "Your license key expires on %s."
5954
  msgstr ""
5955
 
5956
- #: includes/admin/settings/register-settings.php:2894
5957
  msgid "To receive updates, please enter your valid %s license key."
5958
  msgstr ""
5959
 
5960
- #: includes/admin/settings/register-settings.php:2907
5961
  msgid "Deactivate License"
5962
  msgstr ""
5963
 
@@ -6062,7 +6062,7 @@ msgstr ""
6062
  msgid "System Info"
6063
  msgstr ""
6064
 
6065
- #: includes/admin/tools.php:101 includes/admin/tools.php:1147
6066
  msgid "Debug Log"
6067
  msgstr ""
6068
 
@@ -6392,15 +6392,15 @@ msgstr ""
6392
  msgid "Please upload a file to import"
6393
  msgstr ""
6394
 
6395
- #: includes/admin/tools.php:1141
6396
  msgid "No File"
6397
  msgstr ""
6398
 
6399
- #: includes/admin/tools.php:1144
6400
  msgid "Log is Empty"
6401
  msgstr ""
6402
 
6403
- #: includes/admin/tools.php:1150
6404
  msgid ""
6405
  "When debug mode is enabled, specific information will be logged here. (<a "
6406
  "href=\"https://github.com/easydigitaldownloads/easy-digital-downloads/blob/"
@@ -6408,31 +6408,31 @@ msgid ""
6408
  "<code>EDD_Logging</code> in your own code.)"
6409
  msgstr ""
6410
 
6411
- #: includes/admin/tools.php:1159
6412
  msgid "Download Debug Log File"
6413
  msgstr ""
6414
 
6415
- #: includes/admin/tools.php:1160 includes/admin/tools.php:1246
6416
  msgid "Copy to Clipboard"
6417
  msgstr ""
6418
 
6419
- #: includes/admin/tools.php:1164
6420
  msgid "Clear Log"
6421
  msgstr ""
6422
 
6423
- #: includes/admin/tools.php:1173
6424
  msgid "Log file"
6425
  msgstr ""
6426
 
6427
- #: includes/admin/tools.php:1232
6428
  msgid "System Information"
6429
  msgstr ""
6430
 
6431
- #: includes/admin/tools.php:1235
6432
  msgid "Use the system information below to help troubleshoot problems."
6433
  msgstr ""
6434
 
6435
- #: includes/admin/tools.php:1245
6436
  msgid "Download System Info File"
6437
  msgstr ""
6438
 
@@ -7018,17 +7018,17 @@ msgstr ""
7018
  msgid "&dagger; Some amounts have been manually adjusted."
7019
  msgstr ""
7020
 
7021
- #: includes/admin/views/tmpl-tax-rates-table-add.php:30
7022
  msgid "Apply to whole country"
7023
  msgstr ""
7024
 
7025
- #: includes/admin/views/tmpl-tax-rates-table-add.php:37
7026
  #: includes/admin/views/tmpl-tax-rates-table-meta.php:18
7027
- #: includes/admin/views/tmpl-tax-rates-table-row.php:33
7028
  msgid "Rate"
7029
  msgstr ""
7030
 
7031
- #: includes/admin/views/tmpl-tax-rates-table-add.php:42
7032
  msgid "Add Rate"
7033
  msgstr ""
7034
 
@@ -7045,7 +7045,7 @@ msgid "Show deactivated rates"
7045
  msgstr ""
7046
 
7047
  #: includes/admin/views/tmpl-tax-rates-table-meta.php:19
7048
- #: includes/admin/views/tmpl-tax-rates-table-row.php:38
7049
  #: templates/checkout_cart.php:13
7050
  msgid "Actions"
7051
  msgstr ""
@@ -7832,11 +7832,11 @@ msgstr ""
7832
  msgid "Single Use: %s"
7833
  msgstr ""
7834
 
7835
- #: includes/class-edd-cli.php:486 includes/class-edd-cli.php:1558
7836
  msgid "No action specified, did you mean"
7837
  msgstr ""
7838
 
7839
- #: includes/class-edd-cli.php:488 includes/class-edd-cli.php:1560
7840
  msgid "Invalid action specified, did you mean"
7841
  msgstr ""
7842
 
@@ -7867,14 +7867,14 @@ msgid "Migration complete: Discounts"
7867
  msgstr ""
7868
 
7869
  #: includes/class-edd-cli.php:921 includes/class-edd-cli.php:991
7870
- #: includes/class-edd-cli.php:1050 includes/class-edd-cli.php:1283
7871
- #: includes/class-edd-cli.php:1349
7872
  msgid "Old Records: "
7873
  msgstr ""
7874
 
7875
  #: includes/class-edd-cli.php:922 includes/class-edd-cli.php:992
7876
- #: includes/class-edd-cli.php:1051 includes/class-edd-cli.php:1284
7877
- #: includes/class-edd-cli.php:1350
7878
  msgid "New Records: "
7879
  msgstr ""
7880
 
@@ -7956,103 +7956,111 @@ msgid ""
7956
  "anyway, use the --force argument."
7957
  msgstr ""
7958
 
7959
- #: includes/class-edd-cli.php:1281
 
 
 
 
 
 
 
 
7960
  msgid "Migration complete: Tax Rates"
7961
  msgstr ""
7962
 
7963
- #: includes/class-edd-cli.php:1316
7964
  msgid ""
7965
  "The payments custom table migration has already been run. To do this "
7966
  "anyway, use the --force argument."
7967
  msgstr ""
7968
 
7969
- #: includes/class-edd-cli.php:1346
7970
  msgid "Migration complete: Orders"
7971
  msgstr ""
7972
 
7973
- #: includes/class-edd-cli.php:1353
7974
  msgid "Refund Records Created: "
7975
  msgstr ""
7976
 
7977
- #: includes/class-edd-cli.php:1360
7978
  msgid "No payment records found."
7979
  msgstr ""
7980
 
7981
- #: includes/class-edd-cli.php:1392
7982
  msgid "Sales and Earnings successfully recalculated for all downloads."
7983
  msgstr ""
7984
 
7985
- #: includes/class-edd-cli.php:1393
7986
  msgid "Downloads Updated: "
7987
  msgstr ""
7988
 
7989
- #: includes/class-edd-cli.php:1411
7990
  msgid ""
7991
  "Do you want to remove legacy data? This will permanently remove legacy "
7992
  "discounts, logs, and order notes."
7993
  msgstr ""
7994
 
7995
- #: includes/class-edd-cli.php:1419
7996
  msgid ""
7997
  "Legacy discounts have already been removed. To run this anyway, use the "
7998
  "--force argument."
7999
  msgstr ""
8000
 
8001
- #: includes/class-edd-cli.php:1421
8002
  msgid "Removing old discount data."
8003
  msgstr ""
8004
 
8005
- #: includes/class-edd-cli.php:1442
8006
  msgid ""
8007
  "Legacy logs have already been removed. To run this anyway, use the --force "
8008
  "argument."
8009
  msgstr ""
8010
 
8011
- #: includes/class-edd-cli.php:1444
8012
  msgid "Removing old logs."
8013
  msgstr ""
8014
 
8015
- #: includes/class-edd-cli.php:1465
8016
  msgid ""
8017
  "Legacy order notes have already been removed. To run this anyway, use the "
8018
  "--force argument."
8019
  msgstr ""
8020
 
8021
- #: includes/class-edd-cli.php:1467
8022
  msgid "Removing old order notes."
8023
  msgstr ""
8024
 
8025
- #: includes/class-edd-cli.php:1491
8026
  msgid "Updating customers database table."
8027
  msgstr ""
8028
 
8029
- #: includes/class-edd-cli.php:1500
8030
  msgid ""
8031
  "Legacy customer emails have already been removed. To run this anyway, use "
8032
  "the --force argument."
8033
  msgstr ""
8034
 
8035
- #: includes/class-edd-cli.php:1502
8036
  msgid "Removing old customer emails."
8037
  msgstr ""
8038
 
8039
- #: includes/class-edd-cli.php:1513
8040
  msgid ""
8041
  "Legacy customer addresses have already been removed. To run this anyway, "
8042
  "use the --force argument."
8043
  msgstr ""
8044
 
8045
- #: includes/class-edd-cli.php:1515
8046
  msgid "Removing old customer addresses."
8047
  msgstr ""
8048
 
8049
- #: includes/class-edd-cli.php:1526
8050
  msgid ""
8051
  "Legacy orders have already been removed. To run this anyway, use the "
8052
  "--force argument."
8053
  msgstr ""
8054
 
8055
- #: includes/class-edd-cli.php:1528
8056
  msgid "Removing old orders."
8057
  msgstr ""
8058
 
@@ -8082,19 +8090,23 @@ msgstr ""
8082
  msgid "Minimum order of %s not met."
8083
  msgstr ""
8084
 
8085
- #: includes/class-edd-discount.php:1468
 
 
 
 
8086
  msgid "This discount is not valid for the cart contents."
8087
  msgstr ""
8088
 
8089
- #: includes/class-edd-discount.php:1562
8090
  msgid "This discount has already been redeemed."
8091
  msgstr ""
8092
 
8093
- #: includes/class-edd-discount.php:1644
8094
  msgid "This discount is expired."
8095
  msgstr ""
8096
 
8097
- #: includes/class-edd-discount.php:1649
8098
  msgid "This discount is not active."
8099
  msgstr ""
8100
 
@@ -11255,7 +11267,7 @@ msgstr ""
11255
  msgid "The maximum refund %s for the adjustment \"%s\" is %s."
11256
  msgstr ""
11257
 
11258
- #: includes/orders/functions/orders.php:671
11259
  msgid "Payment recovery processed"
11260
  msgstr ""
11261
 
@@ -12047,7 +12059,7 @@ msgid "Global Rate"
12047
  msgstr ""
12048
 
12049
  #: includes/reports/reports-functions.php:328
12050
- #: includes/reports/reports-functions.php:1121
12051
  msgid "Exclude Taxes"
12052
  msgstr ""
12053
 
@@ -12077,15 +12089,15 @@ msgstr ""
12077
  msgid "Last 30 Days"
12078
  msgstr ""
12079
 
12080
- #: includes/reports/reports-functions.php:1013
12081
  msgid "Chart time zone: %s"
12082
  msgstr ""
12083
 
12084
- #: includes/reports/reports-functions.php:1290
12085
  msgid "%s - Converted"
12086
  msgstr ""
12087
 
12088
- #: includes/reports/reports-functions.php:1420
12089
  msgid "Try the Sales/Earnings iOS App!"
12090
  msgstr ""
12091
 
@@ -12747,26 +12759,26 @@ msgstr ""
12747
 
12748
  #: includes/admin/payments/class-payments-table.php:193
12749
  #: includes/admin/reporting/class-base-logs-list-table.php:481
12750
- #: includes/admin/reporting/reports.php:2563
12751
- #: includes/admin/reporting/reports.php:2628
12752
- #: includes/admin/reporting/reports.php:2681
12753
- #: includes/admin/reporting/reports.php:2816
12754
- #: includes/admin/reporting/reports.php:2885
12755
- #: includes/admin/reporting/reports.php:2939
12756
- #: includes/reports/reports-functions.php:1050
12757
  msgctxt "date filter"
12758
  msgid "From"
12759
  msgstr ""
12760
 
12761
  #: includes/admin/payments/class-payments-table.php:200
12762
  #: includes/admin/reporting/class-base-logs-list-table.php:488
12763
- #: includes/admin/reporting/reports.php:2574
12764
- #: includes/admin/reporting/reports.php:2639
12765
- #: includes/admin/reporting/reports.php:2692
12766
- #: includes/admin/reporting/reports.php:2827
12767
- #: includes/admin/reporting/reports.php:2896
12768
- #: includes/admin/reporting/reports.php:2950
12769
- #: includes/reports/reports-functions.php:1058
12770
  msgctxt "date filter"
12771
  msgid "To"
12772
  msgstr ""
@@ -12796,7 +12808,7 @@ msgctxt "Region of address"
12796
  msgid "Region:"
12797
  msgstr ""
12798
 
12799
- #: includes/admin/reporting/reports.php:2529
12800
  msgctxt "Date one to date two"
12801
  msgid "&mdash; to &mdash;"
12802
  msgstr ""
@@ -12837,7 +12849,7 @@ msgctxt "error shown when attempting to use a discount before its start date"
12837
  msgid "This discount is invalid."
12838
  msgstr ""
12839
 
12840
- #: includes/class-edd-discount.php:1611 includes/discount-functions.php:918
12841
  msgctxt "error for when a discount is invalid based on its configuration"
12842
  msgid "This discount is invalid."
12843
  msgstr ""
2
  # This file is distributed under the same license as the Easy Digital Downloads package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Easy Digital Downloads 3.0.3\n"
6
  "Report-Msgid-Bugs-To: https://easydigitaldownloads.com/\n"
7
+ "POT-Creation-Date: 2022-08-16 03:37:29+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
199
 
200
  #: includes/admin/adjustments/adjustment-functions.php:43
201
  #: includes/admin/adjustments/adjustment-functions.php:99
202
+ #: includes/admin/admin-pages.php:88 includes/admin/reporting/reports.php:1991
203
  #: includes/admin/settings/display-settings.php:40
204
  #: includes/admin/upgrades/upgrade-functions.php:1431
205
  #: includes/post-types.php:129 includes/reports/reports-functions.php:336
252
  #: includes/admin/admin-bar.php:121 includes/admin/admin-pages.php:115
253
  #: includes/admin/plugins.php:60
254
  #: includes/admin/settings/contextual-help.php:102
255
+ #: includes/admin/settings/register-settings.php:1639
256
  msgid "Extensions"
257
  msgstr ""
258
 
309
  msgstr ""
310
 
311
  #: includes/admin/admin-pages.php:87 includes/admin/customers/customers.php:77
312
+ #: includes/admin/reporting/reports.php:2272
313
  #: includes/admin/settings/display-settings.php:43
314
  msgid "Customers"
315
  msgstr ""
392
  msgid "Generate New API Keys"
393
  msgstr ""
394
 
395
+ #: includes/admin/class-edd-notices.php:222
396
  msgid "No checkout page is configured. Set one in <a href=\"%s\">Settings</a>."
397
  msgstr ""
398
 
399
+ #: includes/admin/class-edd-notices.php:276
400
  msgid "The files in %s are not currently protected."
401
  msgstr ""
402
 
403
+ #: includes/admin/class-edd-notices.php:277
404
  msgid ""
405
  "To protect them, you must add this <a "
406
  "href=\"https://docs.easydigitaldownloads.com/article/682-protected-download-"
407
  "files-on-nginx\">NGINX redirect rule</a>."
408
  msgstr ""
409
 
410
+ #: includes/admin/class-edd-notices.php:278
411
+ #: includes/admin/class-edd-notices.php:297
412
  msgid ""
413
  "If you have already done this, or it does not apply to your site, you may "
414
  "permenently %s."
415
  msgstr ""
416
 
417
+ #: includes/admin/class-edd-notices.php:278
418
+ #: includes/admin/class-edd-notices.php:297
419
  msgid "dismiss this notice"
420
  msgstr ""
421
 
422
+ #: includes/admin/class-edd-notices.php:295
423
  msgid "The .htaccess file is missing from: %s"
424
  msgstr ""
425
 
426
+ #: includes/admin/class-edd-notices.php:296
427
  msgid ""
428
  "First, please resave the Misc settings tab a few times. If this warning "
429
  "continues to appear, create a file called \".htaccess\" in the %s "
430
  "directory, and copy the following into it:"
431
  msgstr ""
432
 
433
+ #: includes/admin/class-edd-notices.php:318
434
  msgid ""
435
  "Easy Digital Downloads 2.5 contains a <a href=\"%s\">built in recount "
436
  "tool</a>. Please <a href=\"%s\">deactivate the Easy Digital Downloads - "
672
  #: includes/admin/discounts/contextual-help.php:35
673
  #: includes/admin/settings/contextual-help.php:40
674
  #: includes/admin/settings/display-settings.php:194
675
+ #: includes/admin/settings/register-settings.php:1632
676
+ #: includes/admin/settings/register-settings.php:1684
677
+ #: includes/admin/settings/register-settings.php:1690
 
 
678
  #: includes/admin/settings/register-settings.php:1695
679
+ #: includes/admin/settings/register-settings.php:1698
680
+ #: includes/admin/settings/register-settings.php:1702
681
+ #: includes/admin/settings/register-settings.php:1715
682
  #: includes/admin/tools.php:96
683
  msgid "General"
684
  msgstr ""
773
  #: includes/admin/customers/class-customer-addresses-table.php:257
774
  #: includes/admin/customers/customers.php:955
775
  #: includes/admin/customers/customers.php:991
776
+ #: includes/admin/views/tmpl-tax-rates-table-add.php:26
777
  #: includes/admin/views/tmpl-tax-rates-table-meta.php:17
778
+ #: includes/admin/views/tmpl-tax-rates-table-row.php:27
779
  msgid "Region"
780
  msgstr ""
781
 
801
  #: includes/admin/payments/class-payments-table.php:385
802
  #: includes/admin/payments/orders.php:117
803
  #: includes/admin/payments/orders.php:152
804
+ #: includes/admin/reporting/class-file-downloads-logs-list-table.php:111
805
  #: includes/admin/reporting/class-sales-logs-list-table.php:98
806
  msgid "Customer"
807
  msgstr ""
819
  #: includes/admin/customers/customers.php:752
820
  #: includes/admin/downloads/dashboard-columns.php:37
821
  #: includes/admin/payments/class-payments-table.php:388
822
+ #: includes/admin/payments/orders.php:1065
823
  #: includes/admin/reporting/class-api-requests-logs-list-table.php:53
824
  #: includes/admin/reporting/class-export-download-history.php:59
825
  #: includes/admin/reporting/class-export-payments.php:76
826
  #: includes/admin/reporting/class-export.php:75
827
+ #: includes/admin/reporting/class-file-downloads-logs-list-table.php:116
828
  #: includes/admin/reporting/class-gateway-error-logs-list-table.php:112
829
  #: includes/admin/reporting/class-sales-logs-list-table.php:101
830
  #: includes/admin/reporting/export/class-batch-export-api-requests.php:46
1195
  #: includes/admin/customers/customers.php:708
1196
  #: includes/admin/customers/customers.php:749
1197
  #: includes/admin/payments/class-payments-table.php:384
1198
+ #: includes/admin/reporting/reports.php:1028
1199
  msgid "Number"
1200
  msgstr ""
1201
 
1202
  #: includes/admin/customers/customers.php:709
1203
  #: includes/admin/customers/customers.php:750
1204
  #: includes/admin/payments/class-payments-table.php:386
1205
+ #: includes/admin/payments/orders.php:890
1206
+ #: includes/admin/payments/orders.php:896
1207
  #: includes/admin/reporting/class-gateway-error-logs-list-table.php:111
1208
  #: includes/admin/reporting/class-gateways-reports-table.php:74
1209
  #: includes/admin/reporting/export/class-batch-export-taxed-orders.php:59
1357
  #: includes/admin/dashboard-widgets.php:150
1358
  #: includes/admin/dashboard-widgets.php:170
1359
  #: includes/admin/dashboard-widgets.php:193
1360
+ #: includes/admin/reporting/reports.php:247
1361
+ #: includes/admin/reporting/reports.php:272
1362
+ #: includes/admin/reporting/reports.php:344
1363
  #: includes/reports/data/taxes/class-tax-collected-by-location-list-table.php:80
1364
  msgid "Net"
1365
  msgstr ""
1372
  #: includes/admin/reporting/export/class-batch-export-sales-and-earnings.php:61
1373
  #: includes/admin/reporting/graphing.php:299
1374
  #: includes/admin/reporting/graphing.php:598
1375
+ #: includes/admin/reporting/reports.php:254
1376
+ #: includes/admin/reporting/reports.php:364
1377
+ #: includes/admin/reporting/reports.php:677
1378
+ #: includes/admin/reporting/reports.php:815
1379
+ #: includes/admin/reporting/reports.php:1145
1380
+ #: includes/admin/reporting/reports.php:1331
1381
+ #: includes/admin/reporting/reports.php:1478
1382
  #: includes/reports/data/file-downloads/class-top-five-most-downloaded-list-table.php:61
1383
  msgid "Earnings"
1384
  msgstr ""
1466
  #: includes/admin/discounts/add-discount.php:57
1467
  #: includes/admin/discounts/class-discount-codes-table.php:74
1468
  #: includes/admin/discounts/edit-discount.php:98
1469
+ #: includes/admin/payments/orders.php:804
1470
  #: includes/admin/payments/refunds.php:225
1471
  #: includes/admin/reporting/class-export-payments.php:70
1472
  #: includes/admin/reporting/export/class-batch-export-payments.php:56
1473
  #: includes/admin/reporting/export/class-batch-export-taxed-orders.php:56
1474
+ #: includes/admin/reporting/reports.php:1040
1475
  #: includes/admin/views/tmpl-order-adjustment-discount.php:41
1476
  #: includes/admin/views/tmpl-order-adjustment.php:55
1477
  #: includes/admin/views/tmpl-order-form-add-order-adjustment.php:80
1647
  #: includes/admin/discounts/class-discount-codes-table.php:215
1648
  #: includes/admin/discounts/class-discount-codes-table.php:315
1649
  #: includes/admin/views/tmpl-tax-rates-table-bulk-actions.php:20
1650
+ #: includes/admin/views/tmpl-tax-rates-table-row.php:49
1651
  msgid "Deactivate"
1652
  msgstr ""
1653
 
1654
  #: includes/admin/discounts/class-discount-codes-table.php:222
1655
  #: includes/admin/discounts/class-discount-codes-table.php:314
1656
  #: includes/admin/views/tmpl-tax-rates-table-bulk-actions.php:19
1657
+ #: includes/admin/views/tmpl-tax-rates-table-row.php:51
1658
  msgid "Activate"
1659
  msgstr ""
1660
 
1844
 
1845
  #: includes/admin/discounts/edit-discount.php:259
1846
  #: includes/admin/payments/class-payments-table.php:389
1847
+ #: includes/admin/payments/orders.php:1007
1848
  #: includes/admin/reporting/class-export-payments.php:78
1849
  #: includes/admin/reporting/export/class-batch-export-downloads.php:48
1850
  #: includes/admin/reporting/export/class-batch-export-payments.php:66
2007
 
2008
  #: includes/admin/downloads/dashboard-columns.php:238
2009
  #: includes/admin/downloads/dashboard-columns.php:250
2010
+ #: includes/admin/reporting/reports.php:2595
2011
+ #: includes/admin/reporting/reports.php:2796
2012
+ #: includes/admin/reporting/reports.php:2865
2013
+ #: includes/admin/reporting/reports.php:2931
2014
+ #: includes/reports/reports-functions.php:1086
2015
  #. translators: the plural post type label
2016
  msgid "All %s"
2017
  msgstr ""
2074
  #: includes/admin/downloads/metabox.php:664
2075
  #: includes/admin/downloads/metabox.php:726
2076
  #: includes/admin/downloads/metabox.php:842
2077
+ #: includes/admin/views/tmpl-tax-rates-table-row.php:47
2078
  #: includes/scripts.php:514 templates/checkout_cart.php:57
2079
  #: templates/checkout_cart.php:75 templates/shortcode-profile-editor.php:123
2080
  msgid "Remove"
2201
  msgstr ""
2202
 
2203
  #: includes/admin/downloads/metabox.php:963
2204
+ #: includes/admin/reporting/reports.php:857
2205
+ #: includes/admin/reporting/reports.php:1020
2206
+ #: includes/admin/reporting/reports.php:1171
2207
  #: includes/admin/settings/register-settings.php:639
2208
  #: includes/admin/settings/register-settings.php:642
2209
+ #: includes/admin/settings/register-settings.php:1686
2210
  #: includes/orders/functions/types.php:93
2211
  msgid "Refunds"
2212
  msgstr ""
2737
  #: includes/admin/payments/class-payments-table.php:296
2738
  #: includes/admin/reporting/class-base-logs-list-table.php:506
2739
  #: includes/admin/tools/logs.php:258
2740
+ #: includes/reports/reports-functions.php:1400
2741
  msgid "Filter"
2742
  msgstr ""
2743
 
2821
  msgstr ""
2822
 
2823
  #: includes/admin/payments/class-payments-table.php:672
2824
+ #: includes/admin/payments/orders.php:1043
2825
  #: includes/admin/payments/refunds.php:301
2826
  msgid "Move to Trash"
2827
  msgstr ""
2828
 
2829
  #: includes/admin/payments/class-refund-items-table.php:78
2830
+ #: includes/admin/payments/orders.php:800
2831
  #: includes/admin/payments/refunds.php:223
2832
  #: includes/admin/views/tmpl-order-form-add-order-item.php:175
2833
  #: includes/admin/views/tmpl-order-item.php:67
2835
  msgstr ""
2836
 
2837
  #: includes/admin/payments/class-refund-items-table.php:79
2838
+ #: includes/admin/payments/orders.php:802
2839
  #: includes/admin/payments/refunds.php:224
2840
  #: includes/admin/reporting/export/class-batch-export-sales.php:46
2841
  #: includes/admin/views/tmpl-order-form-add-order-item.php:110
3171
  msgid "Customer Orders"
3172
  msgstr ""
3173
 
3174
+ #: includes/admin/payments/orders.php:767
3175
  #: includes/admin/views/tmpl-order-copy-download-link.php:35
3176
  #: includes/gateways/stripe/includes/utils/modal.php:69
3177
  msgid "Close"
3178
  msgstr ""
3179
 
3180
+ #: includes/admin/payments/orders.php:832
3181
  msgid "Order Details"
3182
  msgstr ""
3183
 
3184
+ #: includes/admin/payments/orders.php:880
3185
  msgid "Order Extras"
3186
  msgstr ""
3187
 
3188
+ #: includes/admin/payments/orders.php:918
3189
  msgid "Key"
3190
  msgstr ""
3191
 
3192
+ #: includes/admin/payments/orders.php:928
3193
+ #: includes/admin/payments/orders.php:936
3194
  msgid "IP"
3195
  msgstr ""
3196
 
3197
+ #: includes/admin/payments/orders.php:943
3198
+ #: includes/admin/payments/orders.php:951
3199
  #: includes/admin/reporting/class-export-payments.php:74
3200
  #: includes/admin/reporting/export/class-batch-export-payments.php:60
3201
  #: includes/admin/reporting/export/class-batch-export-taxed-orders.php:60
3203
  msgid "Transaction ID"
3204
  msgstr ""
3205
 
3206
+ #: includes/admin/payments/orders.php:965
3207
  msgid "Unlimited Downloads"
3208
  msgstr ""
3209
 
3210
+ #: includes/admin/payments/orders.php:966
3211
  msgid ""
3212
  "Checking this box will override all other file download limits for this "
3213
  "purchase, granting the customer unlimited downloads of all files included "
3214
  "on the purchase."
3215
  msgstr ""
3216
 
3217
+ #: includes/admin/payments/orders.php:998
3218
  msgid "Order Attributes"
3219
  msgstr ""
3220
 
3221
+ #: includes/admin/payments/orders.php:1010
3222
  msgid ""
3223
  "<strong>Pending</strong>: order is still processing or was abandoned by "
3224
  "customer. Successful orders will be marked as Complete automatically once "
3225
  "processing is finalized."
3226
  msgstr ""
3227
 
3228
+ #: includes/admin/payments/orders.php:1011
3229
  msgid "<strong>Complete</strong>: all processing is completed for this purchase."
3230
  msgstr ""
3231
 
3232
+ #: includes/admin/payments/orders.php:1012
3233
  msgid ""
3234
  "<strong>Revoked</strong>: access to purchased items is disabled, perhaps "
3235
  "due to policy violation or fraud."
3236
  msgstr ""
3237
 
3238
+ #: includes/admin/payments/orders.php:1013
3239
  msgid ""
3240
  "<strong>Refunded</strong>: the purchase amount is returned to the customer "
3241
  "and access to items is disabled."
3242
  msgstr ""
3243
 
3244
+ #: includes/admin/payments/orders.php:1014
3245
  msgid ""
3246
  "<strong>Abandoned</strong>: the purchase attempt was not completed by the "
3247
  "customer."
3248
  msgstr ""
3249
 
3250
+ #: includes/admin/payments/orders.php:1015
3251
  msgid ""
3252
  "<strong>Failed</strong>: customer clicked Cancel before completing the "
3253
  "purchase."
3254
  msgstr ""
3255
 
3256
+ #: includes/admin/payments/orders.php:1053
3257
  msgid "Recover"
3258
  msgstr ""
3259
 
3260
+ #: includes/admin/payments/orders.php:1054
3261
  msgid ""
3262
  "Pending and abandoned payments can be resumed by the customer, using this "
3263
  "custom URL. Payments can be resumed only when they do not have a "
3264
  "transaction ID from the gateway."
3265
  msgstr ""
3266
 
3267
+ #: includes/admin/payments/orders.php:1076
3268
  msgid "Time"
3269
  msgstr ""
3270
 
3271
+ #: includes/admin/payments/orders.php:1081
3272
  msgid "Hour"
3273
  msgstr ""
3274
 
3275
+ #: includes/admin/payments/orders.php:1087
3276
  msgid "Minute"
3277
  msgstr ""
3278
 
3439
  msgstr ""
3440
 
3441
  #: includes/admin/reporting/class-api-requests-logs-list-table.php:48
3442
+ #: includes/admin/reporting/class-file-downloads-logs-list-table.php:109
3443
  #: includes/admin/reporting/class-gateway-error-logs-list-table.php:107
3444
  #: includes/admin/reporting/export/class-batch-export-api-requests.php:39
3445
  #: includes/admin/reporting/export/class-batch-export-sales.php:39
3537
  #: includes/admin/reporting/graphing.php:300
3538
  #: includes/admin/reporting/graphing.php:599
3539
  #: includes/admin/reporting/reports.php:232
3540
+ #: includes/admin/reporting/reports.php:352
3541
+ #: includes/admin/reporting/reports.php:627
3542
+ #: includes/admin/reporting/reports.php:803
3543
+ #: includes/admin/reporting/reports.php:1121
3544
+ #: includes/admin/reporting/reports.php:1281
3545
+ #: includes/admin/reporting/reports.php:1466
3546
  #: includes/reports/data/downloads/class-top-selling-downloads-list-table.php:57
3547
  #: includes/reports/data/file-downloads/class-top-five-most-downloaded-list-table.php:60
3548
  #: tests/reports/data/charts/v2/tests-dateset.php:213
3584
  msgstr ""
3585
 
3586
  #: includes/admin/reporting/class-export-download-history.php:61
3587
+ #: includes/admin/reporting/class-file-downloads-logs-list-table.php:114
3588
  #: includes/admin/reporting/export/class-batch-export-api-requests.php:41
3589
  #: includes/admin/reporting/export/class-batch-export-file-downloads.php:45
3590
  #: includes/admin/reporting/export/class-batch-export-payments.php:64
3596
  msgstr ""
3597
 
3598
  #: includes/admin/reporting/class-export-download-history.php:63
3599
+ #: includes/admin/reporting/class-file-downloads-logs-list-table.php:113
3600
  #: includes/admin/reporting/export/class-batch-export-file-downloads.php:48
3601
  msgid "File"
3602
  msgstr ""
3655
  #: includes/admin/reporting/export/class-batch-export-taxed-orders.php:64
3656
  #: includes/admin/settings/register-settings.php:447
3657
  #: includes/admin/settings/register-settings.php:455
3658
+ #: includes/admin/settings/register-settings.php:1678
3659
  msgid "Currency"
3660
  msgstr ""
3661
 
3707
  msgid "You do not have permission to export data."
3708
  msgstr ""
3709
 
3710
+ #: includes/admin/reporting/class-file-downloads-logs-list-table.php:112
3711
  #: includes/admin/reporting/class-gateway-error-logs-list-table.php:108
3712
  #: includes/admin/reporting/class-sales-logs-list-table.php:97
3713
  #: includes/admin/reporting/export/class-batch-export-taxed-orders.php:42
3714
  msgid "Order Number"
3715
  msgstr ""
3716
 
3717
+ #: includes/admin/reporting/class-file-downloads-logs-list-table.php:115
3718
  #: includes/admin/reporting/export/class-batch-export-file-downloads.php:46
3719
  msgid "User Agent"
3720
  msgstr ""
3758
  msgstr ""
3759
 
3760
  #: includes/admin/reporting/contextual-help.php:45
3761
+ #: includes/admin/reporting/reports.php:2492
3762
+ #: includes/admin/reporting/reports.php:2614 includes/admin/tools.php:996
3763
  msgid "Export"
3764
  msgstr ""
3765
 
4026
  msgid "The logs tab has been moved to the Tools screen."
4027
  msgstr ""
4028
 
4029
+ #: includes/admin/reporting/reports.php:279
4030
+ #: includes/admin/reporting/reports.php:1198
4031
  msgid "Average Order Value"
4032
  msgstr ""
4033
 
4034
+ #: includes/admin/reporting/reports.php:303
4035
+ #: includes/admin/reporting/reports.php:2292
4036
+ #: includes/admin/reporting/reports.php:2365
4037
+ #: includes/admin/reporting/reports.php:2462
4038
  msgid "New Customers"
4039
  msgstr ""
4040
 
4041
+ #: includes/admin/reporting/reports.php:321
4042
+ #: includes/admin/reporting/reports.php:941
4043
  msgid "Total Refund Amount"
4044
  msgstr ""
4045
 
4046
+ #: includes/admin/reporting/reports.php:344
4047
+ #: includes/admin/reporting/reports.php:695
4048
+ #: includes/admin/reporting/reports.php:1349
4049
  msgid "Sales and Earnings"
4050
  msgstr ""
4051
 
4052
+ #: includes/admin/reporting/reports.php:407
4053
  msgid "Sales / Earnings"
4054
  msgstr ""
4055
 
4056
+ #: includes/admin/reporting/reports.php:481
4057
  msgid "Most Valuable %s"
4058
  msgstr ""
4059
 
4060
+ #: includes/admin/reporting/reports.php:518
4061
  msgid "Average Sales / Earnings"
4062
  msgstr ""
4063
 
4064
+ #: includes/admin/reporting/reports.php:533
4065
  msgid "Net\t"
4066
  msgstr ""
4067
 
4068
+ #: includes/admin/reporting/reports.php:570
4069
  msgid "Earnings By Taxonomy"
4070
  msgstr ""
4071
 
4072
+ #: includes/admin/reporting/reports.php:582
4073
  msgid "Top Selling %s"
4074
  msgstr ""
4075
 
4076
+ #: includes/admin/reporting/reports.php:594
4077
  msgid "Sales by Variation"
4078
  msgstr ""
4079
 
4080
+ #: includes/admin/reporting/reports.php:644
4081
  msgid "Earnings by Variation"
4082
  msgstr ""
4083
 
4084
+ #: includes/admin/reporting/reports.php:882
4085
  msgid "Number of Refunds"
4086
  msgstr ""
4087
 
4088
+ #: includes/admin/reporting/reports.php:901
4089
  msgid "Number of Fully Refunded Orders"
4090
  msgstr ""
4091
 
4092
+ #: includes/admin/reporting/reports.php:921
4093
  msgid "Number of Fully Refunded Items"
4094
  msgstr ""
4095
 
4096
+ #: includes/admin/reporting/reports.php:961
4097
  msgid "Average Refund Amount"
4098
  msgstr ""
4099
 
4100
+ #: includes/admin/reporting/reports.php:982
4101
  msgid "Average Time to Refund"
4102
  msgstr ""
4103
 
4104
+ #: includes/admin/reporting/reports.php:1000
4105
  msgid "Refund Rate"
4106
  msgstr ""
4107
 
4108
+ #: includes/admin/reporting/reports.php:1109
4109
  msgid "Payment Gateways"
4110
  msgstr ""
4111
 
4112
+ #: includes/admin/reporting/reports.php:1235
4113
  msgid "Gateway Stats"
4114
  msgstr ""
4115
 
4116
+ #: includes/admin/reporting/reports.php:1249
4117
  msgid "Gateway Sales"
4118
  msgstr ""
4119
 
4120
+ #: includes/admin/reporting/reports.php:1298
4121
  msgid "Gateway Earnings"
4122
  msgstr ""
4123
 
4124
+ #: includes/admin/reporting/reports.php:1550
4125
  #: includes/admin/settings/contextual-help.php:78
4126
  #: includes/admin/settings/register-settings.php:840
4127
+ #: includes/admin/settings/register-settings.php:1637
4128
  msgid "Taxes"
4129
  msgstr ""
4130
 
4131
+ #: includes/admin/reporting/reports.php:1561
4132
  msgid "Total Tax Collected"
4133
  msgstr ""
4134
 
4135
+ #: includes/admin/reporting/reports.php:1596
4136
  msgid "Total Tax Collected for "
4137
  msgstr ""
4138
 
4139
+ #: includes/admin/reporting/reports.php:1626
4140
  msgid "Tax Collected by Location"
4141
  msgstr ""
4142
 
4143
+ #: includes/admin/reporting/reports.php:1705
4144
+ #: includes/admin/reporting/reports.php:1914
4145
+ #: includes/admin/settings/register-settings.php:1717
4146
  #: includes/admin/tools/logs.php:195 includes/privacy-functions.php:546
4147
  #: includes/reports/data/file-downloads/class-top-five-most-downloaded-list-table.php:58
4148
  msgid "File Downloads"
4149
  msgstr ""
4150
 
4151
+ #: includes/admin/reporting/reports.php:1717
4152
+ #: includes/admin/reporting/reports.php:1807
4153
  msgid "Number of File Downloads"
4154
  msgstr ""
4155
 
4156
+ #: includes/admin/reporting/reports.php:1741
4157
  msgid "Average per Customer"
4158
  msgstr ""
4159
 
4160
+ #: includes/admin/reporting/reports.php:1759
4161
  msgid "Average per Order"
4162
  msgstr ""
4163
 
4164
+ #: includes/admin/reporting/reports.php:1777
4165
  msgid "Most Downloaded Product"
4166
  msgstr ""
4167
 
4168
+ #: includes/admin/reporting/reports.php:1795
4169
  msgid "Top Five Most Downloaded Products"
4170
  msgstr ""
4171
 
4172
+ #: includes/admin/reporting/reports.php:2003
4173
  msgid "Number of Discounts Used"
4174
  msgstr ""
4175
 
4176
+ #: includes/admin/reporting/reports.php:2020
4177
  msgid "Discount Ratio"
4178
  msgstr ""
4179
 
4180
+ #: includes/admin/reporting/reports.php:2038
4181
  msgid "Customer Savings"
4182
  msgstr ""
4183
 
4184
+ #: includes/admin/reporting/reports.php:2059
4185
  msgid "Average Discount Amount"
4186
  msgstr ""
4187
 
4188
+ #: includes/admin/reporting/reports.php:2077
4189
  msgid "Most Popular Discount"
4190
  msgstr ""
4191
 
4192
+ #: includes/admin/reporting/reports.php:2102
4193
  msgid "Discount Usage Count"
4194
  msgstr ""
4195
 
4196
+ #: includes/admin/reporting/reports.php:2121
4197
  msgid "Top Five Discounts"
4198
  msgstr ""
4199
 
4200
+ #: includes/admin/reporting/reports.php:2134
4201
+ #: includes/admin/reporting/reports.php:2232
4202
  msgid "Discount Usage"
4203
  msgstr ""
4204
 
4205
+ #: includes/admin/reporting/reports.php:2310
4206
  msgid "Average Revenue per Customer"
4207
  msgstr ""
4208
 
4209
+ #: includes/admin/reporting/reports.php:2325
4210
  msgid "Average Orders per Customer"
4211
  msgstr ""
4212
 
4213
+ #: includes/admin/reporting/reports.php:2341
4214
  msgid "Top Five Customers &mdash; All Time"
4215
  msgstr ""
4216
 
4217
+ #: includes/admin/reporting/reports.php:2353
4218
  msgid "Most Valuable Customers"
4219
  msgstr ""
4220
 
4221
+ #: includes/admin/reporting/reports.php:2522
4222
  msgid "Export Earnings Report"
4223
  msgstr ""
4224
 
4225
+ #: includes/admin/reporting/reports.php:2524
4226
  msgid "Download a CSV giving a detailed look into earnings over time."
4227
  msgstr ""
4228
 
4229
+ #: includes/admin/reporting/reports.php:2528
4230
  msgid "Export Earnings Start"
4231
  msgstr ""
4232
 
4233
+ #: includes/admin/reporting/reports.php:2530
4234
  msgid "Select start month"
4235
  msgstr ""
4236
 
4237
+ #: includes/admin/reporting/reports.php:2532
4238
  msgid "Select start year"
4239
  msgstr ""
4240
 
4241
+ #: includes/admin/reporting/reports.php:2540
4242
  msgid "Export Earnings End"
4243
  msgstr ""
4244
 
4245
+ #: includes/admin/reporting/reports.php:2542
4246
  msgid "Select end month"
4247
  msgstr ""
4248
 
4249
+ #: includes/admin/reporting/reports.php:2544
4250
  msgid "Select end year"
4251
  msgstr ""
4252
 
4253
+ #: includes/admin/reporting/reports.php:2549
4254
+ #: includes/admin/reporting/reports.php:2667
4255
+ #: includes/admin/reporting/reports.php:2740
4256
+ #: includes/admin/reporting/reports.php:2803
4257
+ #: includes/admin/reporting/reports.php:2844
4258
+ #: includes/admin/reporting/reports.php:2871
4259
+ #: includes/admin/reporting/reports.php:2914
4260
+ #: includes/admin/reporting/reports.php:2968
4261
  msgid "Generate CSV"
4262
  msgstr ""
4263
 
4264
+ #: includes/admin/reporting/reports.php:2555
4265
  msgid "Export Sales and Earnings"
4266
  msgstr ""
4267
 
4268
+ #: includes/admin/reporting/reports.php:2557
4269
  msgid "Download a CSV of all sales or earnings on a day-by-day basis."
4270
  msgstr ""
4271
 
4272
+ #: includes/admin/reporting/reports.php:2561
4273
  msgid "Export Sales and Earnings Dates"
4274
  msgstr ""
4275
 
4276
+ #: includes/admin/reporting/reports.php:2563
4277
+ #: includes/admin/reporting/reports.php:2628
4278
+ #: includes/admin/reporting/reports.php:2681
4279
+ #: includes/admin/reporting/reports.php:2816
4280
+ #: includes/admin/reporting/reports.php:2885
4281
+ #: includes/admin/reporting/reports.php:2939
4282
  msgid "Set start date"
4283
  msgstr ""
4284
 
4285
+ #: includes/admin/reporting/reports.php:2574
4286
+ #: includes/admin/reporting/reports.php:2639
4287
+ #: includes/admin/reporting/reports.php:2692
4288
+ #: includes/admin/reporting/reports.php:2827
4289
+ #: includes/admin/reporting/reports.php:2896
4290
+ #: includes/admin/reporting/reports.php:2950
4291
  msgid "Set end date"
4292
  msgstr ""
4293
 
4294
+ #: includes/admin/reporting/reports.php:2587
4295
+ #: includes/admin/reporting/reports.php:2788
4296
+ #: includes/admin/reporting/reports.php:2858
4297
+ #: includes/admin/reporting/reports.php:2924
4298
  #. translators: the plural post type label
4299
  msgid "Select Download"
4300
  msgstr ""
4301
 
4302
+ #: includes/admin/reporting/reports.php:2599
4303
  msgid "Select Customer"
4304
  msgstr ""
4305
 
4306
+ #: includes/admin/reporting/reports.php:2607
4307
  msgid "All Customers"
4308
  msgstr ""
4309
 
4310
+ #: includes/admin/reporting/reports.php:2620
4311
  msgid "Export Orders"
4312
  msgstr ""
4313
 
4314
+ #: includes/admin/reporting/reports.php:2622
4315
  msgid "Download a CSV of all orders."
4316
  msgstr ""
4317
 
4318
+ #: includes/admin/reporting/reports.php:2626
4319
  msgid "Export Order Dates"
4320
  msgstr ""
4321
 
4322
+ #: includes/admin/reporting/reports.php:2651
4323
+ #: includes/admin/reporting/reports.php:2704
4324
  msgid "Select Status"
4325
  msgstr ""
4326
 
4327
+ #: includes/admin/reporting/reports.php:2657
4328
+ #: includes/admin/reporting/reports.php:2710
4329
  msgid "All Statuses"
4330
  msgstr ""
4331
 
4332
+ #: includes/admin/reporting/reports.php:2673
4333
  msgid "Export Taxed Orders"
4334
  msgstr ""
4335
 
4336
+ #: includes/admin/reporting/reports.php:2675
4337
  msgid "Download a CSV of all orders, taxed by Country and/or Region."
4338
  msgstr ""
4339
 
4340
+ #: includes/admin/reporting/reports.php:2679
4341
  msgid "Export Taxed Order Dates"
4342
  msgstr ""
4343
 
4344
+ #: includes/admin/reporting/reports.php:2717
4345
  msgid "Select Country"
4346
  msgstr ""
4347
 
4348
+ #: includes/admin/reporting/reports.php:2728
4349
  msgid "Select Region"
4350
  msgstr ""
4351
 
4352
+ #: includes/admin/reporting/reports.php:2733
4353
  #: includes/class-edd-html-elements.php:632
4354
  msgid "All Regions"
4355
  msgstr ""
4356
 
4357
+ #: includes/admin/reporting/reports.php:2746
4358
  msgid "Export Customers"
4359
  msgstr ""
4360
 
4361
+ #: includes/admin/reporting/reports.php:2748
4362
  msgid ""
4363
  "Download a CSV of customers. Select a taxonomy to see all the customers who "
4364
  "purchased %s in that taxonomy."
4365
  msgstr ""
4366
 
4367
+ #: includes/admin/reporting/reports.php:2775
4368
  msgid "Select Taxonomy"
4369
  msgstr ""
4370
 
4371
+ #: includes/admin/reporting/reports.php:2784
4372
  msgid "All Taxonomies"
4373
  msgstr ""
4374
 
4375
+ #: includes/admin/reporting/reports.php:2809
4376
  msgid "Export Taxed Customers"
4377
  msgstr ""
4378
 
4379
+ #: includes/admin/reporting/reports.php:2811
4380
  msgid "Download a CSV of all customers that were taxed."
4381
  msgstr ""
4382
 
4383
+ #: includes/admin/reporting/reports.php:2815
4384
  msgid "Export Taxed Customer Dates"
4385
  msgstr ""
4386
 
4387
+ #: includes/admin/reporting/reports.php:2877
4388
  msgid "Export API Request Logs"
4389
  msgstr ""
4390
 
4391
+ #: includes/admin/reporting/reports.php:2879
4392
  msgid "Download a CSV of API request logs."
4393
  msgstr ""
4394
 
4395
+ #: includes/admin/reporting/reports.php:2883
4396
  msgid "Export API Request Log Dates"
4397
  msgstr ""
4398
 
4399
+ #: includes/admin/reporting/reports.php:2920
4400
  msgid "Export File Download Logs"
4401
  msgstr ""
4402
 
4403
+ #: includes/admin/reporting/reports.php:2922
4404
  msgid "Download a CSV of file download logs."
4405
  msgstr ""
4406
 
4407
+ #: includes/admin/reporting/reports.php:2937
4408
  msgid "Export File Download Log Dates"
4409
  msgstr ""
4410
 
4411
+ #: includes/admin/reporting/reports.php:3042 includes/user-functions.php:915
4412
  #: includes/user-functions.php:919
4413
  msgid "Notice"
4414
  msgstr ""
4415
 
4416
+ #: includes/admin/reporting/reports.php:3043
4417
  msgid ""
4418
  "Tax reports are only generated for taxes associated with a location. The "
4419
  "legacy default tax rate is unable to be reported on."
4432
  msgstr ""
4433
 
4434
  #: includes/admin/settings/contextual-help.php:46
4435
+ #: includes/admin/settings/register-settings.php:1633
4436
  msgid "Payments"
4437
  msgstr ""
4438
 
4469
  msgstr ""
4470
 
4471
  #: includes/admin/settings/contextual-help.php:56
4472
+ #: includes/admin/settings/register-settings.php:1634
4473
  msgid "Emails"
4474
  msgstr ""
4475
 
4488
  msgstr ""
4489
 
4490
  #: includes/admin/settings/contextual-help.php:64
4491
+ #: includes/admin/settings/register-settings.php:1635
4492
  msgid "Marketing"
4493
  msgstr ""
4494
 
4501
  msgstr ""
4502
 
4503
  #: includes/admin/settings/contextual-help.php:72
4504
+ #: includes/admin/settings/register-settings.php:1636
4505
  msgid "Styles"
4506
  msgstr ""
4507
 
4578
  msgstr ""
4579
 
4580
  #: includes/admin/settings/contextual-help.php:94
4581
+ #: includes/admin/settings/register-settings.php:1638
4582
  msgid "Policies"
4583
  msgstr ""
4584
 
4733
  msgstr ""
4734
 
4735
  #: includes/admin/settings/register-settings.php:389
4736
+ #: includes/admin/settings/register-settings.php:1679
4737
  msgid "Pages"
4738
  msgstr ""
4739
 
4865
  msgstr ""
4866
 
4867
  #: includes/admin/settings/register-settings.php:495
4868
+ #: includes/admin/settings/register-settings.php:1680
4869
  msgid "API"
4870
  msgstr ""
4871
 
4901
  msgstr ""
4902
 
4903
  #: includes/admin/settings/register-settings.php:517
4904
+ #: includes/admin/settings/register-settings.php:1681
4905
  msgid "Tracking"
4906
  msgstr ""
4907
 
5603
  msgstr ""
5604
 
5605
  #: includes/admin/settings/register-settings.php:1038
5606
+ #: includes/admin/settings/register-settings.php:1706
5607
  msgid "Privacy Policy"
5608
  msgstr ""
5609
 
5665
  msgstr ""
5666
 
5667
  #: includes/admin/settings/register-settings.php:1072
5668
+ #: includes/admin/settings/register-settings.php:1707
5669
  msgid "Terms & Agreements"
5670
  msgstr ""
5671
 
5755
  #: includes/admin/settings/register-settings.php:1172
5756
  msgid ""
5757
  "This setting is no longer used in this version of Easy Digital Downloads. "
5758
+ "We have migrated any fallback tax rates for you to verify below. Click "
5759
+ "\"Save Changes\" to dismiss this notice."
5760
  msgstr ""
5761
 
5762
+ #: includes/admin/settings/register-settings.php:1640
5763
  msgid "Licenses"
5764
  msgstr ""
5765
 
5766
+ #: includes/admin/settings/register-settings.php:1641
5767
  msgid "Misc"
5768
  msgstr ""
5769
 
5770
+ #: includes/admin/settings/register-settings.php:1677
5771
  msgid "Store"
5772
  msgstr ""
5773
 
5774
+ #: includes/admin/settings/register-settings.php:1685
5775
  #: includes/gateways/stripe/includes/payment-methods/payment-request/admin/settings.php:82
5776
  #: includes/install.php:346 templates/widget-cart-checkout.php:6
5777
  #: templates/widget-cart-empty.php:7
5778
  msgid "Checkout"
5779
  msgstr ""
5780
 
5781
+ #: includes/admin/settings/register-settings.php:1687
5782
  msgid "Accounting"
5783
  msgstr ""
5784
 
5785
+ #: includes/admin/settings/register-settings.php:1691
5786
  msgid "Purchase Receipts"
5787
  msgstr ""
5788
 
5789
+ #: includes/admin/settings/register-settings.php:1692
5790
  msgid "Sale Notifications"
5791
  msgstr ""
5792
 
5793
+ #: includes/admin/settings/register-settings.php:1699
5794
  msgid "Buttons"
5795
  msgstr ""
5796
 
5797
+ #: includes/admin/settings/register-settings.php:1703
5798
  msgid "Rates"
5799
  msgstr ""
5800
 
5801
+ #: includes/admin/settings/register-settings.php:1708
5802
  msgid "Export & Erase"
5803
  msgstr ""
5804
 
5805
+ #: includes/admin/settings/register-settings.php:1711
5806
  msgid "Main"
5807
  msgstr ""
5808
 
5809
+ #: includes/admin/settings/register-settings.php:1716
5810
  msgid "Purchase Buttons"
5811
  msgstr ""
5812
 
5813
+ #: includes/admin/settings/register-settings.php:2076
5814
  #: includes/gateways/functions.php:70 includes/gateways/functions.php:71
5815
  msgid "Store Gateway"
5816
  msgstr ""
5817
 
5818
+ #: includes/admin/settings/register-settings.php:2076
5819
  msgid ""
5820
  "This is an internal payment gateway which can be used for manually added "
5821
  "orders or test purchases. No money is actually processed."
5822
  msgstr ""
5823
 
5824
+ #: includes/admin/settings/register-settings.php:2091
5825
  msgid "These gateways will be offered at checkout."
5826
  msgstr ""
5827
 
5828
+ #: includes/admin/settings/register-settings.php:2091
5829
  msgid "More <a href=\"%s\">Payment Gateways</a> are available."
5830
  msgstr ""
5831
 
5832
+ #: includes/admin/settings/register-settings.php:2120
5833
  msgid "&mdash; No gateway &mdash;"
5834
  msgstr ""
5835
 
5836
+ #: includes/admin/settings/register-settings.php:2347
5837
  msgid "The callback function used for the %s setting is missing."
5838
  msgstr ""
5839
 
5840
+ #: includes/admin/settings/register-settings.php:2529
5841
  msgid "Attach File"
5842
  msgstr ""
5843
 
5844
+ #: includes/admin/settings/register-settings.php:2529
5845
  msgid "Attach"
5846
  msgstr ""
5847
 
5848
+ #: includes/admin/settings/register-settings.php:2646
5849
  msgid "Recapture plugin activated."
5850
  msgstr ""
5851
 
5852
+ #: includes/admin/settings/register-settings.php:2647
5853
  msgid "%sAccess your Recapture account%s."
5854
  msgstr ""
5855
 
5856
+ #: includes/admin/settings/register-settings.php:2652
5857
  msgid "Disconnect Recapture"
5858
  msgstr ""
5859
 
5860
+ #: includes/admin/settings/register-settings.php:2656
5861
  msgid "%sComplete your connection to Recapture%s"
5862
  msgstr ""
5863
 
5864
+ #: includes/admin/settings/register-settings.php:2664
5865
  msgid ""
5866
  "We recommend Recapture for recovering lost revenue by automatically sending "
5867
  "effective, targeted emails to customers who abandon their shopping cart."
5868
  msgstr ""
5869
 
5870
+ #: includes/admin/settings/register-settings.php:2664
5871
  msgid "%sLearn more%s (Free trial available)"
5872
  msgstr ""
5873
 
5874
+ #: includes/admin/settings/register-settings.php:2668
5875
  msgid "Connect with Recapture"
5876
  msgstr ""
5877
 
5878
+ #: includes/admin/settings/register-settings.php:2701
5879
  #. translators: Tax rate country code
5880
  msgid ""
5881
  "Duplicate tax rates are not allowed. Please deactivate the existing %s tax "
5882
  "rate before adding or activating another."
5883
  msgstr ""
5884
 
5885
+ #: includes/admin/settings/register-settings.php:2702
5886
  msgid "Please select a country."
5887
  msgstr ""
5888
 
5889
+ #: includes/admin/settings/register-settings.php:2703
5890
  msgid "Please enter a tax rate greater than 0."
5891
  msgstr ""
5892
 
5893
+ #: includes/admin/settings/register-settings.php:2786
5894
  msgid ""
5895
  "Your license key expired on %s. Please <a href=\"%s\" "
5896
  "target=\"_blank\">renew your license key</a>."
5897
  msgstr ""
5898
 
5899
+ #: includes/admin/settings/register-settings.php:2798
5900
  msgid ""
5901
  "Your license key has been disabled. Please <a href=\"%s\" "
5902
  "target=\"_blank\">contact support</a> for more information."
5903
  msgstr ""
5904
 
5905
+ #: includes/admin/settings/register-settings.php:2809
5906
  msgid ""
5907
  "Invalid license. Please <a href=\"%s\" target=\"_blank\">visit your account "
5908
  "page</a> and verify it."
5909
  msgstr ""
5910
 
5911
+ #: includes/admin/settings/register-settings.php:2821
5912
  msgid ""
5913
  "Your %s is not active for this URL. Please <a href=\"%s\" "
5914
  "target=\"_blank\">visit your account page</a> to manage your license key "
5915
  "URLs."
5916
  msgstr ""
5917
 
5918
+ #: includes/admin/settings/register-settings.php:2832
5919
  msgid "This appears to be an invalid license key for %s."
5920
  msgstr ""
5921
 
5922
+ #: includes/admin/settings/register-settings.php:2840
5923
  msgid ""
5924
  "Your license key has reached its activation limit. <a href=\"%s\">View "
5925
  "possible upgrades</a> now."
5926
  msgstr ""
5927
 
5928
+ #: includes/admin/settings/register-settings.php:2848
5929
  msgid ""
5930
  "The key you entered belongs to a bundle, please use the product specific "
5931
  "license key."
5932
  msgstr ""
5933
 
5934
+ #: includes/admin/settings/register-settings.php:2855
5935
  msgid "unknown_error"
5936
  msgstr ""
5937
 
5938
+ #: includes/admin/settings/register-settings.php:2856
5939
  msgid ""
5940
  "There was an error with this license key: %s. Please <a href=\"%s\">contact "
5941
  "our support team</a>."
5942
  msgstr ""
5943
 
5944
+ #: includes/admin/settings/register-settings.php:2872
5945
  msgid "License key never expires."
5946
  msgstr ""
5947
 
5948
+ #: includes/admin/settings/register-settings.php:2878
5949
  msgid "Your license key expires soon! It expires on %s."
5950
  msgstr ""
5951
 
5952
+ #: includes/admin/settings/register-settings.php:2886
5953
  msgid "Your license key expires on %s."
5954
  msgstr ""
5955
 
5956
+ #: includes/admin/settings/register-settings.php:2901
5957
  msgid "To receive updates, please enter your valid %s license key."
5958
  msgstr ""
5959
 
5960
+ #: includes/admin/settings/register-settings.php:2914
5961
  msgid "Deactivate License"
5962
  msgstr ""
5963
 
6062
  msgid "System Info"
6063
  msgstr ""
6064
 
6065
+ #: includes/admin/tools.php:101 includes/admin/tools.php:1167
6066
  msgid "Debug Log"
6067
  msgstr ""
6068
 
6392
  msgid "Please upload a file to import"
6393
  msgstr ""
6394
 
6395
+ #: includes/admin/tools.php:1161
6396
  msgid "No File"
6397
  msgstr ""
6398
 
6399
+ #: includes/admin/tools.php:1164
6400
  msgid "Log is Empty"
6401
  msgstr ""
6402
 
6403
+ #: includes/admin/tools.php:1170
6404
  msgid ""
6405
  "When debug mode is enabled, specific information will be logged here. (<a "
6406
  "href=\"https://github.com/easydigitaldownloads/easy-digital-downloads/blob/"
6408
  "<code>EDD_Logging</code> in your own code.)"
6409
  msgstr ""
6410
 
6411
+ #: includes/admin/tools.php:1179
6412
  msgid "Download Debug Log File"
6413
  msgstr ""
6414
 
6415
+ #: includes/admin/tools.php:1180 includes/admin/tools.php:1266
6416
  msgid "Copy to Clipboard"
6417
  msgstr ""
6418
 
6419
+ #: includes/admin/tools.php:1184
6420
  msgid "Clear Log"
6421
  msgstr ""
6422
 
6423
+ #: includes/admin/tools.php:1193
6424
  msgid "Log file"
6425
  msgstr ""
6426
 
6427
+ #: includes/admin/tools.php:1252
6428
  msgid "System Information"
6429
  msgstr ""
6430
 
6431
+ #: includes/admin/tools.php:1255
6432
  msgid "Use the system information below to help troubleshoot problems."
6433
  msgstr ""
6434
 
6435
+ #: includes/admin/tools.php:1265
6436
  msgid "Download System Info File"
6437
  msgstr ""
6438
 
7018
  msgid "&dagger; Some amounts have been manually adjusted."
7019
  msgstr ""
7020
 
7021
+ #: includes/admin/views/tmpl-tax-rates-table-add.php:29
7022
  msgid "Apply to whole country"
7023
  msgstr ""
7024
 
7025
+ #: includes/admin/views/tmpl-tax-rates-table-add.php:36
7026
  #: includes/admin/views/tmpl-tax-rates-table-meta.php:18
7027
+ #: includes/admin/views/tmpl-tax-rates-table-row.php:40
7028
  msgid "Rate"
7029
  msgstr ""
7030
 
7031
+ #: includes/admin/views/tmpl-tax-rates-table-add.php:41
7032
  msgid "Add Rate"
7033
  msgstr ""
7034
 
7045
  msgstr ""
7046
 
7047
  #: includes/admin/views/tmpl-tax-rates-table-meta.php:19
7048
+ #: includes/admin/views/tmpl-tax-rates-table-row.php:45
7049
  #: templates/checkout_cart.php:13
7050
  msgid "Actions"
7051
  msgstr ""
7832
  msgid "Single Use: %s"
7833
  msgstr ""
7834
 
7835
+ #: includes/class-edd-cli.php:486 includes/class-edd-cli.php:1570
7836
  msgid "No action specified, did you mean"
7837
  msgstr ""
7838
 
7839
+ #: includes/class-edd-cli.php:488 includes/class-edd-cli.php:1572
7840
  msgid "Invalid action specified, did you mean"
7841
  msgstr ""
7842
 
7867
  msgstr ""
7868
 
7869
  #: includes/class-edd-cli.php:921 includes/class-edd-cli.php:991
7870
+ #: includes/class-edd-cli.php:1050 includes/class-edd-cli.php:1295
7871
+ #: includes/class-edd-cli.php:1361
7872
  msgid "Old Records: "
7873
  msgstr ""
7874
 
7875
  #: includes/class-edd-cli.php:922 includes/class-edd-cli.php:992
7876
+ #: includes/class-edd-cli.php:1051 includes/class-edd-cli.php:1296
7877
+ #: includes/class-edd-cli.php:1362
7878
  msgid "New Records: "
7879
  msgstr ""
7880
 
7956
  "anyway, use the --force argument."
7957
  msgstr ""
7958
 
7959
+ #: includes/class-edd-cli.php:1266
7960
+ msgid "Checking for default tax rate"
7961
+ msgstr ""
7962
+
7963
+ #: includes/class-edd-cli.php:1269
7964
+ msgid "Migrating default tax rate"
7965
+ msgstr ""
7966
+
7967
+ #: includes/class-edd-cli.php:1293
7968
  msgid "Migration complete: Tax Rates"
7969
  msgstr ""
7970
 
7971
+ #: includes/class-edd-cli.php:1328
7972
  msgid ""
7973
  "The payments custom table migration has already been run. To do this "
7974
  "anyway, use the --force argument."
7975
  msgstr ""
7976
 
7977
+ #: includes/class-edd-cli.php:1358
7978
  msgid "Migration complete: Orders"
7979
  msgstr ""
7980
 
7981
+ #: includes/class-edd-cli.php:1365
7982
  msgid "Refund Records Created: "
7983
  msgstr ""
7984
 
7985
+ #: includes/class-edd-cli.php:1372
7986
  msgid "No payment records found."
7987
  msgstr ""
7988
 
7989
+ #: includes/class-edd-cli.php:1404
7990
  msgid "Sales and Earnings successfully recalculated for all downloads."
7991
  msgstr ""
7992
 
7993
+ #: includes/class-edd-cli.php:1405
7994
  msgid "Downloads Updated: "
7995
  msgstr ""
7996
 
7997
+ #: includes/class-edd-cli.php:1423
7998
  msgid ""
7999
  "Do you want to remove legacy data? This will permanently remove legacy "
8000
  "discounts, logs, and order notes."
8001
  msgstr ""
8002
 
8003
+ #: includes/class-edd-cli.php:1431
8004
  msgid ""
8005
  "Legacy discounts have already been removed. To run this anyway, use the "
8006
  "--force argument."
8007
  msgstr ""
8008
 
8009
+ #: includes/class-edd-cli.php:1433
8010
  msgid "Removing old discount data."
8011
  msgstr ""
8012
 
8013
+ #: includes/class-edd-cli.php:1454
8014
  msgid ""
8015
  "Legacy logs have already been removed. To run this anyway, use the --force "
8016
  "argument."
8017
  msgstr ""
8018
 
8019
+ #: includes/class-edd-cli.php:1456
8020
  msgid "Removing old logs."
8021
  msgstr ""
8022
 
8023
+ #: includes/class-edd-cli.php:1477
8024
  msgid ""
8025
  "Legacy order notes have already been removed. To run this anyway, use the "
8026
  "--force argument."
8027
  msgstr ""
8028
 
8029
+ #: includes/class-edd-cli.php:1479
8030
  msgid "Removing old order notes."
8031
  msgstr ""
8032
 
8033
+ #: includes/class-edd-cli.php:1503
8034
  msgid "Updating customers database table."
8035
  msgstr ""
8036
 
8037
+ #: includes/class-edd-cli.php:1512
8038
  msgid ""
8039
  "Legacy customer emails have already been removed. To run this anyway, use "
8040
  "the --force argument."
8041
  msgstr ""
8042
 
8043
+ #: includes/class-edd-cli.php:1514
8044
  msgid "Removing old customer emails."
8045
  msgstr ""
8046
 
8047
+ #: includes/class-edd-cli.php:1525
8048
  msgid ""
8049
  "Legacy customer addresses have already been removed. To run this anyway, "
8050
  "use the --force argument."
8051
  msgstr ""
8052
 
8053
+ #: includes/class-edd-cli.php:1527
8054
  msgid "Removing old customer addresses."
8055
  msgstr ""
8056
 
8057
+ #: includes/class-edd-cli.php:1538
8058
  msgid ""
8059
  "Legacy orders have already been removed. To run this anyway, use the "
8060
  "--force argument."
8061
  msgstr ""
8062
 
8063
+ #: includes/class-edd-cli.php:1540
8064
  msgid "Removing old orders."
8065
  msgstr ""
8066
 
8090
  msgid "Minimum order of %s not met."
8091
  msgstr ""
8092
 
8093
+ #: includes/class-edd-discount.php:1460
8094
+ msgid "The product requirements for this discount are not met."
8095
+ msgstr ""
8096
+
8097
+ #: includes/class-edd-discount.php:1473
8098
  msgid "This discount is not valid for the cart contents."
8099
  msgstr ""
8100
 
8101
+ #: includes/class-edd-discount.php:1568
8102
  msgid "This discount has already been redeemed."
8103
  msgstr ""
8104
 
8105
+ #: includes/class-edd-discount.php:1650
8106
  msgid "This discount is expired."
8107
  msgstr ""
8108
 
8109
+ #: includes/class-edd-discount.php:1655
8110
  msgid "This discount is not active."
8111
  msgstr ""
8112
 
11267
  msgid "The maximum refund %s for the adjustment \"%s\" is %s."
11268
  msgstr ""
11269
 
11270
+ #: includes/orders/functions/orders.php:675
11271
  msgid "Payment recovery processed"
11272
  msgstr ""
11273
 
12059
  msgstr ""
12060
 
12061
  #: includes/reports/reports-functions.php:328
12062
+ #: includes/reports/reports-functions.php:1123
12063
  msgid "Exclude Taxes"
12064
  msgstr ""
12065
 
12089
  msgid "Last 30 Days"
12090
  msgstr ""
12091
 
12092
+ #: includes/reports/reports-functions.php:1015
12093
  msgid "Chart time zone: %s"
12094
  msgstr ""
12095
 
12096
+ #: includes/reports/reports-functions.php:1292
12097
  msgid "%s - Converted"
12098
  msgstr ""
12099
 
12100
+ #: includes/reports/reports-functions.php:1422
12101
  msgid "Try the Sales/Earnings iOS App!"
12102
  msgstr ""
12103
 
12759
 
12760
  #: includes/admin/payments/class-payments-table.php:193
12761
  #: includes/admin/reporting/class-base-logs-list-table.php:481
12762
+ #: includes/admin/reporting/reports.php:2570
12763
+ #: includes/admin/reporting/reports.php:2635
12764
+ #: includes/admin/reporting/reports.php:2688
12765
+ #: includes/admin/reporting/reports.php:2823
12766
+ #: includes/admin/reporting/reports.php:2892
12767
+ #: includes/admin/reporting/reports.php:2946
12768
+ #: includes/reports/reports-functions.php:1052
12769
  msgctxt "date filter"
12770
  msgid "From"
12771
  msgstr ""
12772
 
12773
  #: includes/admin/payments/class-payments-table.php:200
12774
  #: includes/admin/reporting/class-base-logs-list-table.php:488
12775
+ #: includes/admin/reporting/reports.php:2581
12776
+ #: includes/admin/reporting/reports.php:2646
12777
+ #: includes/admin/reporting/reports.php:2699
12778
+ #: includes/admin/reporting/reports.php:2834
12779
+ #: includes/admin/reporting/reports.php:2903
12780
+ #: includes/admin/reporting/reports.php:2957
12781
+ #: includes/reports/reports-functions.php:1060
12782
  msgctxt "date filter"
12783
  msgid "To"
12784
  msgstr ""
12808
  msgid "Region:"
12809
  msgstr ""
12810
 
12811
+ #: includes/admin/reporting/reports.php:2536
12812
  msgctxt "Date one to date two"
12813
  msgid "&mdash; to &mdash;"
12814
  msgstr ""
12849
  msgid "This discount is invalid."
12850
  msgstr ""
12851
 
12852
+ #: includes/class-edd-discount.php:1617 includes/discount-functions.php:918
12853
  msgctxt "error for when a discount is invalid based on its configuration"
12854
  msgid "This discount is invalid."
12855
  msgstr ""
readme.txt CHANGED
@@ -7,7 +7,7 @@ Tags: ecommerce, e-commerce, sell, digital store, stripe
7
  Requires at least: 4.9
8
  Tested up to: 6.0
9
  Requires PHP: 5.6
10
- Stable Tag: 3.0.2.1
11
  License: GNU Version 2 or Any Later Version
12
 
13
  Sell your digital products with the ecommerce plugin written for digital creators, by digital creators.
@@ -239,6 +239,19 @@ Yes, through the use of our commercial addon called [Recurring Payments](https:/
239
 
240
  == Changelog ==
241
 
 
 
 
 
 
 
 
 
 
 
 
 
 
242
  = 3.0.2.1, July 28, 2022 =
243
  * Fix: Upgrade warning notices were showing incorrectly for some sites.
244
 
7
  Requires at least: 4.9
8
  Tested up to: 6.0
9
  Requires PHP: 5.6
10
+ Stable Tag: 3.0.3
11
  License: GNU Version 2 or Any Later Version
12
 
13
  Sell your digital products with the ecommerce plugin written for digital creators, by digital creators.
239
 
240
  == Changelog ==
241
 
242
+ = 3.0.3, August 16, 2022 =
243
+ * New: Added support for Global Tax rates as a fallback with the new Tax Rates UI.
244
+ * Fix: The old 'fallback tax rate' was not imported as a new tax rate.
245
+ * Fix: Improved discount code validation with product restrictions and requirements.
246
+ * Fix: Viewing a custom report with a date range over 2 days could throw an undefined variable notice.
247
+ * Fix: Single priced downloads were showing incorrect stats in reports.
248
+ * Fix: Adding a download to a new order would not let you manually set prices in Safari.
249
+ * Fix: When an order with a discount code is deleted, the discount code's usage count is decreased.
250
+ * Fix: The total refund amount tile was incorrectly calculating the relative percentage.
251
+ * Fix: The customer table upgrade assumed the table prefix hadn't been changed after installation of EDD 2.x.
252
+ * Fix: The 3.0 migration could incorrectly identify a price ID as invalid and set it to the default price ID.
253
+ * Fix: The file download log could produce an notice if a file had been deleted from a product.
254
+
255
  = 3.0.2.1, July 28, 2022 =
256
  * Fix: Upgrade warning notices were showing incorrectly for some sites.
257