WP Recipe Maker - Version 6.9.0

Version Description

  • Feature: Count block for recipe roundup items template
  • Feature: Grow.me button integration
  • Feature: Setting to redirect when accessing print page directly
  • Feature: Recipe Part block for displaying individual parts in Gutenberg Block Editor
  • Feature: Setting to load styling in head to prevent CLS issues
  • Feature: Show and filter by parent post language on manage page for WPML and Polylang
  • Fix: Special characters in Text Share feature
  • Fix: Youtube video duration missing metadata warning
Download this release

Release Info

Developer BrechtVds
Plugin Icon 128x128 WP Recipe Maker
Version 6.9.0
Comparing to
See all releases

Code changes from version 6.8.0 to 6.9.0

assets/js/admin-manage/recipes/Columns.js CHANGED
@@ -441,7 +441,50 @@ export default {
441
  }
442
  }
443
  },
444
- },{
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
445
  Header: __wprm( 'Ratings' ),
446
  id: 'rating',
447
  accessor: 'rating',
@@ -507,7 +550,7 @@ export default {
507
  );
508
  },
509
  }
510
- ];
511
 
512
  for (let key in wprm_admin_modal.categories) {
513
  const taxonomy = wprm_admin_modal.categories[key];
441
  }
442
  }
443
  },
444
+ }
445
+ ];
446
+
447
+ if ( wprm_admin_manage.multilingual ) {
448
+ columns.push(
449
+ {
450
+ Header: __wprm( 'Parent Language' ),
451
+ id: 'parent_post_language',
452
+ accessor: 'parent_post_language',
453
+ width: 150,
454
+ sortable: false,
455
+ Filter: ({ filter, onChange }) => (
456
+ <select
457
+ onChange={event => onChange(event.target.value)}
458
+ style={{ width: '100%', fontSize: '1em' }}
459
+ value={filter ? filter.value : 'all'}
460
+ >
461
+ <option value="all">{ __wprm( 'All Languages' ) }</option>
462
+ {
463
+ Object.values(wprm_admin_manage.multilingual.languages).map((language, index) => {
464
+ return (
465
+ <option value={ language.value } key={index}>{ `${ language.value } - ${ he.decode( language.label ) }` }</option>
466
+ )
467
+ })
468
+ }
469
+ </select>
470
+ ),
471
+ Cell: row => {
472
+ console.log(row);
473
+ const language = wprm_admin_manage.multilingual.languages.hasOwnProperty( row.value ) ? wprm_admin_manage.multilingual.languages[ row.value ] : false;
474
+
475
+ if ( ! language ) {
476
+ return (<div></div>);
477
+ } else {
478
+ return (
479
+ <div>{ `${ language.value } - ${ he.decode( language.label ) }` }</div>
480
+ )
481
+ }
482
+ },
483
+ }
484
+ );
485
+ }
486
+
487
+ columns.push({
488
  Header: __wprm( 'Ratings' ),
489
  id: 'rating',
490
  accessor: 'rating',
550
  );
551
  },
552
  }
553
+ );
554
 
555
  for (let key in wprm_admin_modal.categories) {
556
  const taxonomy = wprm_admin_modal.categories[key];
assets/js/admin-modal/recipe/index.js CHANGED
@@ -217,8 +217,8 @@ export default class Recipe extends Component {
217
  });
218
 
219
  // Keep serving size and unit.
220
- nutrition['serving_size'] = this.state.recipe.nutrition.hasOwnProperty( 'serving_size' ) ? this.state.recipe.nutrition.serving_size : false;
221
- nutrition['serving_unit'] = this.state.recipe.nutrition.hasOwnProperty( 'serving_unit' ) ? this.state.recipe.nutrition.serving_unit : false;
222
 
223
  // Overwrite recipe nutrition.
224
  this.onRecipeChange({
217
  });
218
 
219
  // Keep serving size and unit.
220
+ nutrition['serving_size'] = this.state.recipe.hasOwnProperty( 'nutrition' ) && this.state.recipe.nutrition.hasOwnProperty( 'serving_size' ) ? this.state.recipe.nutrition.serving_size : false;
221
+ nutrition['serving_unit'] = this.state.recipe.hasOwnProperty( 'nutrition' ) && this.state.recipe.nutrition.hasOwnProperty( 'serving_unit' ) ? this.state.recipe.nutrition.serving_unit : false;
222
 
223
  // Overwrite recipe nutrition.
224
  this.onRecipeChange({
assets/js/blocks.js CHANGED
@@ -4,4 +4,6 @@ import './blocks/jump-to-video';
4
  import './blocks/nutrition-label';
5
  import './blocks/print-recipe';
6
  import './blocks/recipe';
7
- import './blocks/recipe-roundup';
 
 
4
  import './blocks/nutrition-label';
5
  import './blocks/print-recipe';
6
  import './blocks/recipe';
7
+ import './blocks/recipe-part';
8
+ import './blocks/recipe-roundup';
9
+ import './blocks/recipe-snippet';
assets/js/blocks/recipe-part/index.js ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const { __ } = wp.i18n;
2
+ const { registerBlockType } = wp.blocks;
3
+ const {
4
+ Button,
5
+ ServerSideRender,
6
+ PanelBody,
7
+ Toolbar,
8
+ TextControl,
9
+ SelectControl,
10
+ } = wp.components;
11
+ const { Fragment } = wp.element;
12
+ const {
13
+ InspectorControls,
14
+ BlockControls,
15
+ } = wp.editor;
16
+
17
+ registerBlockType( 'wp-recipe-maker/recipe-part', {
18
+ title: __( 'Recipe Part' ),
19
+ description: __( 'Display a specific recipe part' ),
20
+ icon: 'shortcode',
21
+ keywords: [],
22
+ example: {
23
+ attributes: {
24
+ id: -1,
25
+ part: 'recipe-name',
26
+ },
27
+ },
28
+ category: 'wp-recipe-maker',
29
+ supports: {
30
+ html: false,
31
+ },
32
+ edit: (props) => {
33
+ const { attributes, setAttributes, isSelected, className } = props;
34
+
35
+ const partOptions = [
36
+ { label: 'Add to Collection Button', value: 'recipe-add-to-collection' },
37
+ { label: 'Adjustable Servings', value: 'recipe-adjustable-servings' },
38
+ { label: 'Author', value: 'recipe-author' },
39
+ { label: 'Cost', value: 'recipe-cost' },
40
+ { label: 'Counter', value: 'recipe-counter' },
41
+ { label: 'Email Share', value: 'recipe-email-share' },
42
+ { label: 'Equipment', value: 'recipe-equipment' },
43
+ { label: 'Facebook Share', value: 'recipe-facebook-share' },
44
+ { label: 'Grow.me Button', value: 'recipe-grow.me' },
45
+ { label: 'Image', value: 'recipe-image' },
46
+ { label: 'Ingredients', value: 'recipe-ingredients' },
47
+ { label: 'Instructions', value: 'recipe-instructions' },
48
+ { label: 'Media Toggle', value: 'recipe-media-toggle' },
49
+ { label: 'Name', value: 'recipe-name' },
50
+ { label: 'Notes', value: 'recipe-notes' },
51
+ { label: 'Pin Button', value: 'recipe-pin' },
52
+ { label: 'Rating', value: 'recipe-rating' },
53
+ { label: 'Servings', value: 'recipe-servings' },
54
+ { label: 'Summary', value: 'recipe-summary' },
55
+ { label: 'Text Share', value: 'recipe-text-share' },
56
+ { label: 'Unit Conversion', value: 'recipe-unit-conversion' },
57
+ { label: 'Video', value: 'recipe-video' },
58
+ ];
59
+
60
+ return (
61
+ <div className={ className }>
62
+ <InspectorControls>
63
+ <PanelBody title={ __( 'Recipe Part Details' ) }>
64
+ <TextControl
65
+ label={ __( 'Recipe ID' ) }
66
+ help={ __( 'Leave blank to use the first recipe on the page' ) }
67
+ value={ attributes.id }
68
+ onChange={ (id) => {
69
+ let newId = parseInt( id );
70
+
71
+ if ( isNaN( newId) || newId <= 0 ) {
72
+ newId = '';
73
+ }
74
+
75
+ setAttributes({
76
+ id: newId,
77
+ })
78
+ } }
79
+ />
80
+ <SelectControl
81
+ label={ __( 'Recipe Part' ) }
82
+ value={ attributes.part }
83
+ options={ partOptions }
84
+ onChange={ (part) => setAttributes({
85
+ part,
86
+ }) }
87
+ />
88
+ </PanelBody>
89
+ </InspectorControls>
90
+ <ServerSideRender
91
+ block="wp-recipe-maker/recipe-part"
92
+ attributes={ attributes }
93
+ />
94
+ </div>
95
+ )
96
+ },
97
+ save: (props) => {
98
+ return null;
99
+ },
100
+ } );
assets/js/public-legacy.js CHANGED
@@ -4,6 +4,7 @@ import 'whatwg-fetch';
4
 
5
  import './public/analytics';
6
  import './public/comment-rating';
 
7
  import './public/media-toggle';
8
  import './public/print';
9
  import './public/smooth-scroll';
4
 
5
  import './public/analytics';
6
  import './public/comment-rating';
7
+ import './public/grow';
8
  import './public/media-toggle';
9
  import './public/print';
10
  import './public/smooth-scroll';
assets/js/public/grow.js ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ window.WPRecipeMaker.grow = {
2
+ init: () => {
3
+ // Make sure growMe is initialized or add temp function.
4
+ if ( ! window.growMe ) {
5
+ window.growMe = function (e) {
6
+ window.growMe._.push(e);
7
+ }
8
+ window.growMe._ = [];
9
+ }
10
+
11
+ // Add listener
12
+ document.addEventListener( 'click', function(e) {
13
+ for ( var target = e.target; target && target != this; target = target.parentNode ) {
14
+ if ( target.matches( '.wprm-recipe-grow-not-saved' ) ) {
15
+ WPRecipeMaker.grow.onClickSave( target, e );
16
+ break;
17
+ }
18
+ if ( target.matches( '.wprm-recipe-grow-saved' ) ) {
19
+ WPRecipeMaker.grow.onClickSaved( target, e );
20
+ break;
21
+ }
22
+ }
23
+ }, false );
24
+
25
+ // Check if already saved.
26
+ let isBookmarked = null;
27
+ window.growMe(() => {
28
+ isBookmarked = window.growMe.getIsBookmarked();
29
+
30
+ window.growMe.on("isBookmarkedChanged", (params) => {
31
+ isBookmarked = params.isBookmarked;
32
+
33
+ if ( isBookmarked ) {
34
+ // Don't know which recipe ID exactly, so triggers all.
35
+ WPRecipeMaker.grow.markAsSaved( false, true );
36
+ }
37
+ });
38
+ });
39
+ },
40
+ onClickSave: ( el, e ) => {
41
+ e.preventDefault()
42
+ const recipeId = parseInt( el.dataset.recipeId );
43
+
44
+ window.growMe.addBookmark({
45
+ source: 'wprm_save_btn',
46
+ triggerSelector: '.wprm-recipe-grow-not-saved',
47
+ triggerElement: el,
48
+ }).then(function(data){
49
+ WPRecipeMaker.grow.markAsSaved( recipeId );
50
+ })
51
+ .catch(function(data){
52
+ WPRecipeMaker.grow.markAsSaved( recipeId );
53
+ })
54
+ },
55
+ onClickSaved: ( el, e ) => {
56
+ e.preventDefault()
57
+ // Do something when clicking on an already saved recipe?
58
+ },
59
+ markAsSaved: ( recipeId, skipRecipeIdCheck = false ) => {
60
+ const buttons = document.querySelectorAll( '.wprm-recipe-grow' );
61
+
62
+ for ( let button of buttons ) {
63
+ if ( skipRecipeIdCheck || recipeId === parseInt( button.dataset.recipeId ) ) {
64
+ if ( button.classList.contains( 'wprm-recipe-grow-not-saved' ) ) {
65
+ button.style.display = 'none';
66
+ } else if ( button.classList.contains( 'wprm-recipe-grow-saved' ) ) {
67
+ button.style.display = '';
68
+ }
69
+ }
70
+ }
71
+ },
72
+ };
73
+
74
+ ready(() => {
75
+ window.WPRecipeMaker.grow.init();
76
+ });
77
+
78
+ function ready( fn ) {
79
+ if (document.readyState != 'loading'){
80
+ fn();
81
+ } else {
82
+ document.addEventListener('DOMContentLoaded', fn);
83
+ }
84
+ }
dist/admin-manage.js CHANGED
@@ -1,4 +1,4 @@
1
- var WPRecipeMaker;(WPRecipeMaker=void 0===WPRecipeMaker?{}:WPRecipeMaker)["wp-recipe-maker/dist/admin-manage"]=(self.webpackChunkWPRecipeMaker_name_=self.webpackChunkWPRecipeMaker_name_||[]).push([[624],{5178:function(e,t,r){"use strict";r.r(t);var n=r(73961),o=r(89526),i=r(565),a=(r(26364),r(86632),r(61928),r(18183),r(54883),r(56908),r(80044),r(10853),r(54130),r(39275),r(33290),r(19985),r(45007),r(75668),r(68995),r(59934));r(73214),r(54994),r(86125);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var o=f(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return d(this,r)}}function d(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(c,e);var t,r,n,a=p(c);function c(){return l(this,c),a.apply(this,arguments)}return t=c,(r=[{key:"render",value:function(){var e=this,t=this.props.datatables,r={};return Object.keys(t).map((function(n){var o=t[n].parent,i="recipe"===n?"/":"/".concat(n);o&&!r.hasOwnProperty(o)&&(r[o]={name:o,active:!1,link:i}),i===e.props.location.pathname&&(r[o].active=!0)})),o.createElement(o.Fragment,null,o.createElement("div",{className:"wprm-admin-manage-parent-menu"},Object.keys(r).map((function(e,t){var n=r[e];return o.createElement(i.OL,{to:n.link,className:"wprm-admin-manage-menu-item".concat(n.active?" wprm-admin-manage-menu-item-active":""),key:t,exact:!0},n.name)}))),o.createElement("div",{className:"wprm-admin-manage-child-menu"},Object.keys(t).map((function(e,n){var a=t[e],c=a.parent,l="recipe"===e?"/":"/".concat(e),u=!0;if(!a.hasOwnProperty("required")||wprm_admin.addons.hasOwnProperty(a.required)&&!0===wprm_admin.addons[a.required]||(u=!1),r.hasOwnProperty(c)&&r[c].active){var s=a.hasOwnProperty("title")?a.title:a.label.plural;return u||(s+="*"),o.createElement(i.OL,{to:l,className:"wprm-admin-manage-menu-item".concat(u?"":" wprm-admin-manage-menu-item-requirement"),activeClassName:"wprm-admin-manage-menu-item-active",key:n,exact:!0},s)}return null}))))}}])&&u(t.prototype,r),n&&u(t,n),c}(o.Component),g=(0,a.EN)(m),h=r(37673),v=r(62834),b=r(52082);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=D(e);if(t){var o=D(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return x(this,r)}}function x(e,t){return!t||"object"!==y(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function D(e){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}(a,e);var t,r,n,i=E(a);function a(){return w(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"render",value:function(){var e=this;return wprm_admin_modal.notices&&wprm_admin_modal.notices.length?o.createElement("div",{className:"wprm-admin-manage-notices"},wprm_admin_modal.notices.map((function(t,r){return t.dismissed?null:o.createElement("div",{className:"wprm-admin-notice",key:r},o.createElement("div",{className:"wprm-admin-notice-content"},t.title?o.createElement("div",{className:"wprm-admin-notice-title"},t.title):null,o.createElement("div",{className:"wprm-admin-notice-text",dangerouslySetInnerHTML:{__html:t.text}})),o.createElement("div",{className:"wprm-admin-notice-dismiss"},o.createElement(v.Z,{title:(0,b.S)("Remove Notice"),type:"close",onClick:function(){h.Z.general.dismissNotice(t.id),t.dismissed=!0,e.forceUpdate()}})))}))):null}}])&&I(t.prototype,r),n&&I(t,n),a}(o.Component),M=(r(55862),r(19701),r(61078),r(4845),r(18821),r(80238),r(12938),r(19457),r(6208),r(64403)),P=r.n(M),N=r(79370),L=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function C(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var j={get:function(e,t,r){if(!t)return e;var n=A(t),o=void 0;try{o=n.reduce((function(e,t){return e[t]}),e)}catch(i){}return void 0!==o?o:r},set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],r=arguments[2],n=A(t),o=void 0,i=e;for(;(o=n.shift())&&n.length;)i[o]||(i[o]={}),i=i[o];return i[o]=r,e},takeRight:function(e,t){var r=t>e.length?0:e.length-t;return e.slice(r)},last:function(e){return e[e.length-1]},orderBy:function(e,t,r,n){return e.sort((function(e,o){for(var i=0;i<t.length;i+=1){var a=t[i],c=!1===r[i]||"desc"===r[i],l=a(e,o);if(l)return c?-l:l}return r[0]?e[n]-o[n]:o[n]-e[n]}))},range:function(e){for(var t=[],r=0;r<e;r+=1)t.push(e);return t},remove:function(e,t){return e.filter((function(r,n){return!!t(r)&&(e.splice(n,1),!0)}))},clone:function(e){try{return JSON.parse(JSON.stringify(e,(function(e,t){return"function"==typeof t?t.toString():t})))}catch(t){return e}},getFirstDefined:function(){for(var e=0;e<arguments.length;e+=1)if(void 0!==(arguments.length<=e?void 0:arguments[e]))return arguments.length<=e?void 0:arguments[e]},sum:function(e){return e.reduce((function(e,t){return e+t}),0)},makeTemplateComponent:function(e,t){if(!t)throw new Error("No displayName found for template component:",e);var r=function(t){var r=t.children,n=t.className,i=C(t,["children","className"]);return o.createElement("div",L({className:P()(e,n)},i),r)};return r.displayName=t,r},groupBy:function(e,t){return e.reduce((function(e,r,n){var o="function"==typeof t?t(r,n):r[t];return e[o]=k(e[o])?e[o]:[],e[o].push(r),e}),{})},isArray:k,splitProps:function(e){var t=e.className,r=e.style,n=C(e,["className","style"]);return{className:t,style:r,rest:n||{}}},compactObject:function(e){var t={};e&&Object.keys(e).map((function(r){return Object.prototype.hasOwnProperty.call(e,r)&&void 0!==e[r]&&void 0!==e[r]&&(t[r]=e[r]),!0}));return t},isSortingDesc:function(e){return!("desc"!==e.sort&&!0!==e.desc&&!1!==e.asc)},normalizeComponent:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;if(N.isElement(e)||"string"==typeof e)return e;if(N.isValidElementType(e))return o.createElement(e,t);return r},asPx:function(e){return e=Number(e),Number.isNaN(e)?null:e+"px"}};function k(e){return Array.isArray(e)}function A(e){return O(e).join(".").replace(/\[/g,".").replace(/\]/g,"").split(".")}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(k(e))for(var r=0;r<e.length;r+=1)O(e[r],t);else t.push(e);return t}var R=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var Z=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(l){o=!0,i=l}finally{try{!n&&c.return&&c.return()}finally{if(o)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},H=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},z=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}function G(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var W=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};var F=function(e){return o.createElement("button",q({type:"button"},e,{className:"-btn"}),e.children)},V=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.getSafePage=r.getSafePage.bind(r),r.changePage=r.changePage.bind(r),r.applyPage=r.applyPage.bind(r),r.state={page:e.page},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),W(t,[{key:"componentDidUpdate",value:function(e,t){e.page!==this.props.page&&t.page!==this.state.page&&this.setState({page:this.props.page})}},{key:"getSafePage",value:function(e){return Number.isNaN(e)&&(e=this.props.page),Math.min(Math.max(e,0),this.props.pages-1)}},{key:"changePage",value:function(e){e=this.getSafePage(e),this.setState({page:e}),this.props.page!==e&&this.props.onPageChange(e)}},{key:"applyPage",value:function(e){e&&e.preventDefault();var t=this.state.page;this.changePage(""===t?this.props.page:t)}},{key:"getPageJumpProperties",value:function(){var e=this;return{onKeyPress:function(t){13!==t.which&&13!==t.keyCode||e.applyPage()},onBlur:this.applyPage,value:""===this.state.page?"":this.state.page+1,onChange:function(t){var r=t.target.value,n=r-1;if(""===r)return e.setState({page:r});e.setState({page:e.getSafePage(n)})},inputType:""===this.state.page?"text":"number",pageJumpText:this.props.pageJumpText}}},{key:"render",value:function(){var e=this,t=this.props,r=t.pages,n=t.page,i=t.showPageSizeOptions,a=t.pageSizeOptions,c=t.pageSize,l=t.showPageJump,u=t.canPrevious,s=t.canNext,p=t.onPageSizeChange,d=t.className,f=t.PreviousComponent,m=t.NextComponent,g=t.renderPageJump,h=t.renderCurrentPage,v=t.renderTotalPagesCount,b=t.renderPageSizeOptions;return o.createElement("div",{className:P()(d,"-pagination"),style:this.props.style},o.createElement("div",{className:"-previous"},o.createElement(f,{onClick:function(){u&&e.changePage(n-1)},disabled:!u},this.props.previousText)),o.createElement("div",{className:"-center"},o.createElement("span",{className:"-pageInfo"},this.props.pageText," ",l?g(this.getPageJumpProperties()):h(n)," ",this.props.ofText," ",v(r)),i&&b({pageSize:c,rowsSelectorText:this.props.rowsSelectorText,pageSizeOptions:a,onPageSizeChange:p,rowsText:this.props.rowsText})),o.createElement("div",{className:"-next"},o.createElement(m,{onClick:function(){s&&e.changePage(n+1)},disabled:!s},this.props.nextText)))}}]),t}(o.Component);V.defaultProps={PreviousComponent:F,NextComponent:F,renderPageJump:function(e){var t=e.onChange,r=e.value,n=e.onBlur,i=e.onKeyPress,a=e.inputType,c=e.pageJumpText;return o.createElement("div",{className:"-pageJump"},o.createElement("input",{"aria-label":c,type:a,onChange:t,value:r,onBlur:n,onKeyPress:i}))},renderCurrentPage:function(e){return o.createElement("span",{className:"-currentPage"},e+1)},renderTotalPagesCount:function(e){return o.createElement("span",{className:"-totalPages"},e||1)},renderPageSizeOptions:function(e){var t=e.pageSize,r=e.pageSizeOptions,n=e.rowsSelectorText,i=e.onPageSizeChange,a=e.rowsText;return o.createElement("span",{className:"select-wrap -pageSizeOptions"},o.createElement("select",{"aria-label":n,onChange:function(e){return i(Number(e.target.value))},value:t},r.map((function(e,t){return o.createElement("option",{key:t,value:e},e+" "+a)}))))}};var J=V,Y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function Q(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var X=function(){return{}},K={data:[],resolveData:function(e){return e},loading:!1,showPagination:!0,showPaginationTop:!1,showPaginationBottom:!0,showPageSizeOptions:!0,pageSizeOptions:[5,10,20,25,50,100],defaultPage:0,defaultPageSize:20,showPageJump:!0,collapseOnSortingChange:!0,collapseOnPageChange:!0,collapseOnDataChange:!0,freezeWhenExpanded:!1,sortable:!0,multiSort:!0,resizable:!0,filterable:!1,defaultSortDesc:!1,defaultSorted:[],defaultFiltered:[],defaultResized:[],defaultExpanded:{},defaultFilterMethod:function(e,t,r){var n=e.pivotId||e.id;return void 0===t[n]||String(t[n]).startsWith(e.value)},defaultSortMethod:function(e,t,r){return t=null==t?"":t,(e="string"==typeof(e=null==e?"":e)?e.toLowerCase():e)>(t="string"==typeof t?t.toLowerCase():t)?1:e<t?-1:0},onPageChange:void 0,onPageSizeChange:void 0,onSortedChange:void 0,onFilteredChange:void 0,onResizedChange:void 0,onExpandedChange:void 0,pivotBy:void 0,pivotValKey:"_pivotVal",pivotIDKey:"_pivotID",subRowsKey:"_subRows",aggregatedKey:"_aggregated",nestingLevelKey:"_nestingLevel",originalKey:"_original",indexKey:"_index",groupedByPivotKey:"_groupedByPivot",onFetchData:function(){return null},className:"",style:{},getProps:X,getTableProps:X,getTheadGroupProps:X,getTheadGroupTrProps:X,getTheadGroupThProps:X,getTheadProps:X,getTheadTrProps:X,getTheadThProps:X,getTheadFilterProps:X,getTheadFilterTrProps:X,getTheadFilterThProps:X,getTbodyProps:X,getTrGroupProps:X,getTrProps:X,getTdProps:X,getTfootProps:X,getTfootTrProps:X,getTfootTdProps:X,getPaginationProps:X,getLoadingProps:X,getNoDataProps:X,getResizerProps:X,column:{Cell:void 0,Header:void 0,Footer:void 0,Aggregated:void 0,Pivot:void 0,PivotValue:void 0,Expander:void 0,Filter:void 0,Placeholder:void 0,sortable:void 0,resizable:void 0,filterable:void 0,show:!0,minWidth:100,minResizeWidth:11,className:"",style:{},getProps:X,aggregate:void 0,headerClassName:"",headerStyle:{},getHeaderProps:X,footerClassName:"",footerStyle:{},getFooterProps:X,filterMethod:void 0,filterAll:!1,sortMethod:void 0},expanderDefaults:{sortable:!1,resizable:!1,filterable:!1,width:35},pivotDefaults:{},previousText:"Previous",nextText:"Next",loadingText:"Loading...",noDataText:"No rows found",pageText:"Page",ofText:"of",rowsText:"rows",pageJumpText:"jump to page",rowsSelectorText:"rows per page",TableComponent:function(e){var t=e.children,r=e.className,n=Q(e,["children","className"]);return o.createElement("div",Y({className:P()("rt-table",r),role:"grid"},n),t)},TheadComponent:j.makeTemplateComponent("rt-thead","Thead"),TbodyComponent:j.makeTemplateComponent("rt-tbody","Tbody"),TrGroupComponent:function(e){var t=e.children,r=e.className,n=Q(e,["children","className"]);return o.createElement("div",Y({className:P()("rt-tr-group",r),role:"rowgroup"},n),t)},TrComponent:function(e){var t=e.children,r=e.className,n=Q(e,["children","className"]);return o.createElement("div",Y({className:P()("rt-tr",r),role:"row"},n),t)},ThComponent:function(e){var t=e.toggleSort,r=e.className,n=e.children,i=Q(e,["toggleSort","className","children"]);return o.createElement("div",Y({className:P()("rt-th",r),onClick:function(e){return t&&t(e)},role:"columnheader",tabIndex:"-1"},i),n)},TdComponent:function(e){e.toggleSort;var t=e.className,r=e.children,n=Q(e,["toggleSort","className","children"]);return o.createElement("div",Y({className:P()("rt-td",t),role:"gridcell"},n),r)},TfootComponent:j.makeTemplateComponent("rt-tfoot","Tfoot"),FilterComponent:function(e){var t=e.filter,r=e.onChange,n=e.column;return o.createElement("input",{type:"text",style:{width:"100%"},placeholder:n.Placeholder,value:t?t.value:"",onChange:function(e){return r(e.target.value)}})},ExpanderComponent:function(e){var t=e.isExpanded;return o.createElement("div",{className:P()("rt-expander",t&&"-open")},"•")},PivotValueComponent:function(e){var t=e.subRows,r=e.value;return o.createElement("span",null,r," ",t&&"("+t.length+")")},AggregatedComponent:function(e){var t=e.subRows,r=e.column,n=t.filter((function(e){return void 0!==e[r.id]})).map((function(e,n){return o.createElement("span",{key:n},e[r.id],n<t.length-1?", ":"")}));return o.createElement("span",null,n)},PivotComponent:void 0,PaginationComponent:J,PreviousComponent:void 0,NextComponent:void 0,LoadingComponent:function(e){var t=e.className,r=e.loading,n=e.loadingText,i=Q(e,["className","loading","loadingText"]);return o.createElement("div",Y({className:P()("-loading",{"-active":r},t)},i),o.createElement("div",{className:"-loading-inner"},n))},NoDataComponent:j.makeTemplateComponent("rt-noData","NoData"),ResizerComponent:j.makeTemplateComponent("rt-resizer","Resizer"),PadRowComponent:function(){return o.createElement("span",null," ")}},$=r(2652),ee=r.n($),te={data:ee().any,loading:ee().bool,showPagination:ee().bool,showPaginationTop:ee().bool,showPaginationBottom:ee().bool,showPageSizeOptions:ee().bool,pageSizeOptions:ee().array,defaultPageSize:ee().number,showPageJump:ee().bool,collapseOnSortingChange:ee().bool,collapseOnPageChange:ee().bool,collapseOnDataChange:ee().bool,freezeWhenExpanded:ee().bool,sortable:ee().bool,resizable:ee().bool,filterable:ee().bool,defaultSortDesc:ee().bool,defaultSorted:ee().array,defaultFiltered:ee().array,defaultResized:ee().array,defaultExpanded:ee().object,defaultFilterMethod:ee().func,defaultSortMethod:ee().func,onPageChange:ee().func,onPageSizeChange:ee().func,onSortedChange:ee().func,onFilteredChange:ee().func,onResizedChange:ee().func,onExpandedChange:ee().func,pivotBy:ee().array,pivotValKey:ee().string,pivotIDKey:ee().string,subRowsKey:ee().string,aggregatedKey:ee().string,nestingLevelKey:ee().string,originalKey:ee().string,indexKey:ee().string,groupedByPivotKey:ee().string,onFetchData:ee().func,className:ee().string,style:ee().object,getProps:ee().func,getTableProps:ee().func,getTheadGroupProps:ee().func,getTheadGroupTrProps:ee().func,getTheadGroupThProps:ee().func,getTheadProps:ee().func,getTheadTrProps:ee().func,getTheadThProps:ee().func,getTheadFilterProps:ee().func,getTheadFilterTrProps:ee().func,getTheadFilterThProps:ee().func,getTbodyProps:ee().func,getTrGroupProps:ee().func,getTrProps:ee().func,getTdProps:ee().func,getTfootProps:ee().func,getTfootTrProps:ee().func,getTfootTdProps:ee().func,getPaginationProps:ee().func,getLoadingProps:ee().func,getNoDataProps:ee().func,getResizerProps:ee().func,columns:ee().arrayOf(ee().shape({Cell:ee().oneOfType([ee().element,ee().string,ee().elementType]),Header:ee().oneOfType([ee().element,ee().string,ee().elementType]),Footer:ee().oneOfType([ee().element,ee().string,ee().elementType]),Aggregated:ee().oneOfType([ee().element,ee().string,ee().elementType]),Pivot:ee().oneOfType([ee().element,ee().string,ee().elementType]),PivotValue:ee().oneOfType([ee().element,ee().string,ee().elementType]),Expander:ee().oneOfType([ee().element,ee().string,ee().elementType]),Filter:ee().oneOfType([ee().element,ee().elementType]),sortable:ee().bool,resizable:ee().bool,filterable:ee().bool,show:ee().bool,minWidth:ee().number,minResizeWidth:ee().number,className:ee().string,style:ee().object,getProps:ee().func,aggregate:ee().func,headerClassName:ee().string,headerStyle:ee().object,getHeaderProps:ee().func,footerClassName:ee().string,footerStyle:ee().object,getFooterProps:ee().func,filterMethod:ee().func,filterAll:ee().bool,sortMethod:ee().func})),expanderDefaults:ee().shape({sortable:ee().bool,resizable:ee().bool,filterable:ee().bool,width:ee().number}),pivotDefaults:ee().object,previousText:ee().node,nextText:ee().node,loadingText:ee().node,noDataText:ee().node,pageText:ee().node,ofText:ee().node,rowsText:ee().node,pageJumpText:ee().node,rowsSelectorText:ee().node,TableComponent:ee().elementType,TheadComponent:ee().elementType,TbodyComponent:ee().elementType,TrGroupComponent:ee().elementType,TrComponent:ee().elementType,ThComponent:ee().elementType,TdComponent:ee().elementType,TfootComponent:ee().elementType,FilterComponent:ee().elementType,ExpanderComponent:ee().elementType,PivotValueComponent:ee().elementType,AggregatedComponent:ee().elementType,PivotComponent:ee().elementType,PaginationComponent:ee().elementType,PreviousComponent:ee().elementType,NextComponent:ee().elementType,LoadingComponent:ee().elementType,NoDataComponent:ee().elementType,ResizerComponent:ee().elementType,PadRowComponent:ee().elementType},re=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(l){o=!0,i=l}finally{try{!n&&c.return&&c.return()}finally{if(o)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},ne=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oe=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var ie=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.getResolvedState=r.getResolvedState.bind(r),r.getDataModel=r.getDataModel.bind(r),r.getSortedData=r.getSortedData.bind(r),r.fireFetchData=r.fireFetchData.bind(r),r.getPropOrState=r.getPropOrState.bind(r),r.getStateOrProp=r.getStateOrProp.bind(r),r.filterData=r.filterData.bind(r),r.sortData=r.sortData.bind(r),r.getMinRows=r.getMinRows.bind(r),r.onPageChange=r.onPageChange.bind(r),r.onPageSizeChange=r.onPageSizeChange.bind(r),r.sortColumn=r.sortColumn.bind(r),r.filterColumn=r.filterColumn.bind(r),r.resizeColumnStart=r.resizeColumnStart.bind(r),r.resizeColumnEnd=r.resizeColumnEnd.bind(r),r.resizeColumnMoving=r.resizeColumnMoving.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),oe(t,[{key:"render",value:function(){var e=this,t=this.getResolvedState(),r=t.children,n=t.className,i=t.style,a=t.getProps,c=t.getTableProps,l=t.getTheadGroupProps,u=t.getTheadGroupTrProps,s=t.getTheadGroupThProps,p=t.getTheadProps,d=t.getTheadTrProps,f=t.getTheadThProps,m=t.getTheadFilterProps,g=t.getTheadFilterTrProps,h=t.getTheadFilterThProps,v=t.getTbodyProps,b=t.getTrGroupProps,y=t.getTrProps,w=t.getTdProps,I=t.getTfootProps,S=t.getTfootTrProps,E=t.getTfootTdProps,x=t.getPaginationProps,D=t.getLoadingProps,T=t.getNoDataProps,M=t.getResizerProps,N=t.showPagination,L=t.showPaginationTop,C=t.showPaginationBottom,k=t.manual,A=t.loadingText,O=t.noDataText,R=t.sortable,Z=t.multiSort,H=t.resizable,z=t.filterable,_=t.pivotIDKey,B=t.pivotValKey,G=t.pivotBy,U=t.subRowsKey,W=t.aggregatedKey,q=t.originalKey,F=t.indexKey,V=t.groupedByPivotKey,J=t.loading,Y=t.pageSize,Q=t.page,X=t.sorted,$=t.filtered,ee=t.resized,te=t.expanded,oe=t.pages,ie=t.onExpandedChange,ae=t.TableComponent,ce=t.TheadComponent,le=t.TbodyComponent,ue=t.TrGroupComponent,se=t.TrComponent,pe=t.ThComponent,de=t.TdComponent,fe=t.TfootComponent,me=t.PaginationComponent,ge=t.LoadingComponent,he=t.SubComponent,ve=t.NoDataComponent,be=t.ResizerComponent,ye=t.ExpanderComponent,we=t.PivotValueComponent,Ie=t.PivotComponent,Se=t.AggregatedComponent,Ee=t.FilterComponent,xe=t.PadRowComponent,De=t.resolvedData,Te=t.allVisibleColumns,Me=t.headerGroups,Pe=t.hasHeaderGroups,Ne=t.sortedData,Le=t.currentlyResizing,Ce=Y*Q,je=Ce+Y,ke=k?De:Ne.slice(Ce,je),Ae=this.getMinRows(),Oe=j.range(Math.max(Ae-ke.length,0)),Re=Te.some((function(e){return e.Footer})),Ze=z||Te.some((function(e){return e.filterable})),He=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return[t.map((function(t,o){var i=ne({},t,{_viewIndex:n+=1}),a=r.concat([o]);if(i[U]&&j.get(te,a)){var c=e(i[U],a,n),l=re(c,2);i[U]=l[0],n=l[1]}return i})),n]}(ke),ze=re(He,1);ke=ze[0];var _e=Q>0,Be=Q+1<oe,Ge=j.sum(Te.map((function(e){var t=ee.find((function(t){return t.id===e.id}))||{};return j.getFirstDefined(t.value,e.width,e.minWidth)}))),Ue=-1,We=ne({},t,{startRow:Ce,endRow:je,pageRows:ke,minRows:Ae,padRows:Oe,hasColumnFooter:Re,canPrevious:_e,canNext:Be,rowMinWidth:Ge}),qe=j.splitProps(a(We,void 0,void 0,this)),Fe=j.splitProps(c(We,void 0,void 0,this)),Ve=j.splitProps(v(We,void 0,void 0,this)),Je=D(We,void 0,void 0,this),Ye=T(We,void 0,void 0,this),Qe=function(t,r){var n=function(e){return(ee.find((function(t){return t.id===e.id}))||{}).value},i=j.sum(t.columns.map((function(e){return e.width||n(e)?0:e.minWidth}))),a=j.sum(t.columns.map((function(e){return j.getFirstDefined(n(e),e.width,e.minWidth)}))),c=j.sum(t.columns.map((function(e){return j.getFirstDefined(n(e),e.width,e.maxWidth)}))),l=j.splitProps(s(We,void 0,t,e)),u=j.splitProps(t.getHeaderProps(We,void 0,t,e)),p=[t.headerClassName,l.className,u.className],d=ne({},t.headerStyle,l.style,u.style),f=ne({},l.rest,u.rest),m={flex:i+" 0 auto",width:j.asPx(a),maxWidth:j.asPx(c)};return o.createElement(pe,ne({key:r+"-"+t.id,className:P()(p),style:ne({},d,m)},f),j.normalizeComponent(t.Header,{data:Ne,column:t}))},Xe=function(t,r){var n=ee.find((function(e){return e.id===t.id}))||{},i=X.find((function(e){return e.id===t.id})),a="function"==typeof t.show?t.show():t.show,c=j.getFirstDefined(n.value,t.width,t.minWidth),l=j.getFirstDefined(n.value,t.width,t.maxWidth),u=j.splitProps(f(We,void 0,t,e)),s=j.splitProps(t.getHeaderProps(We,void 0,t,e)),p=[t.headerClassName,u.className,s.className],d=ne({},t.headerStyle,u.style,s.style),m=ne({},u.rest,s.rest),g=j.getFirstDefined(t.resizable,H,!1),h=g?o.createElement(be,ne({onMouseDown:function(r){return e.resizeColumnStart(r,t,!1)},onTouchStart:function(r){return e.resizeColumnStart(r,t,!0)}},M("finalState",void 0,t,e))):null,v=j.getFirstDefined(t.sortable,R,!1);return o.createElement(pe,ne({key:r+"-"+t.id,className:P()(p,g&&"rt-resizable-header",i?i.desc?"-sort-desc":"-sort-asc":"",v&&"-cursor-pointer",!a&&"-hidden",G&&G.slice(0,-1).includes(t.id)&&"rt-header-pivot"),style:ne({},d,{flex:c+" 0 auto",width:j.asPx(c),maxWidth:j.asPx(l)}),toggleSort:function(r){v&&e.sortColumn(t,!!Z&&r.shiftKey)}},m),o.createElement("div",{className:P()(g&&"rt-resizable-header-content")},j.normalizeComponent(t.Header,{data:Ne,column:t})),h)},Ke=function(t,r){var n=ee.find((function(e){return e.id===t.id}))||{},i=j.getFirstDefined(n.value,t.width,t.minWidth),a=j.getFirstDefined(n.value,t.width,t.maxWidth),c=j.splitProps(h(We,void 0,t,e)),l=j.splitProps(t.getHeaderProps(We,void 0,t,e)),u=[t.headerClassName,c.className,l.className],s=ne({},t.headerStyle,c.style,l.style),p=ne({},c.rest,l.rest),d=$.find((function(e){return e.id===t.id})),f=t.Filter||Ee,m=j.getFirstDefined(t.filterable,z,!1);return o.createElement(pe,ne({key:r+"-"+t.id,className:P()(u),style:ne({},s,{flex:i+" 0 auto",width:j.asPx(i),maxWidth:j.asPx(a)})},p),m?j.normalizeComponent(f,{column:t,filter:d,onChange:function(r){return e.filterColumn(t,r)}},K.column.Filter):null)},$e=function t(r,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a={original:r[q],row:r,index:r[F],viewIndex:Ue+=1,pageSize:Y,page:Q,level:i.length,nestingPath:i.concat([n]),aggregated:r[W],groupedByPivot:r[V],subRows:r[U]},c=j.get(te,a.nestingPath),l=b(We,a,void 0,e),u=j.splitProps(y(We,a,void 0,e));return o.createElement(ue,ne({key:a.nestingPath.join("_")},l),o.createElement(se,ne({className:P()(u.className,r._viewIndex%2?"-even":"-odd"),style:u.style},u.rest),Te.map((function(t,n){var i=ee.find((function(e){return e.id===t.id}))||{},l="function"==typeof t.show?t.show():t.show,u=j.getFirstDefined(i.value,t.width,t.minWidth),s=j.getFirstDefined(i.value,t.width,t.maxWidth),p=j.splitProps(w(We,a,t,e)),d=j.splitProps(t.getProps(We,a,t,e)),f=[p.className,t.className,d.className],m=ne({},p.style,t.style,d.style),g=ne({},a,{isExpanded:c,column:ne({},t),value:a.row[t.id],pivoted:t.pivoted,expander:t.expander,resized:ee,show:l,width:u,maxWidth:s,tdProps:p,columnProps:d,classes:f,styles:m}),h=g.value,v=void 0,b=void 0,y=void 0,I=j.normalizeComponent(t.Cell,g,h),S=t.Aggregated||(t.aggregate?t.Cell:Se),E=t.Expander||ye,x=t.PivotValue||we,D=Ie||function(e){return o.createElement("div",null,o.createElement(E,e),o.createElement(x,e))},T=t.Pivot||D;(g.pivoted||g.expander)&&(g.expandable=!0,v=!0,!g.pivoted||g.subRows||he||(g.expandable=!1)),g.pivoted?(b=a.row[_]===t.id&&g.subRows,y=G.indexOf(t.id)>G.indexOf(a.row[_])&&g.subRows,I=b?j.normalizeComponent(T,ne({},g,{value:r[B]}),r[B]):y?j.normalizeComponent(S,g,h):null):g.aggregated&&(I=j.normalizeComponent(S,g,h)),g.expander&&(I=j.normalizeComponent(E,g,r[B]),G&&(g.groupedByPivot&&(I=null),g.subRows||he||(I=null)));var M=v?function(t){var r=j.clone(te);return r=c?j.set(r,g.nestingPath,!1):j.set(r,g.nestingPath,{}),e.setStateWithData({expanded:r},(function(){return ie&&ie(r,g.nestingPath,t,g)}))}:function(){},N={onClick:M};return p.rest.onClick&&(N.onClick=function(e){p.rest.onClick(e,(function(){return M(e)}))}),d.rest.onClick&&(N.onClick=function(e){d.rest.onClick(e,(function(){return M(e)}))}),o.createElement(de,ne({key:n+"-"+t.id,className:P()(f,!g.expandable&&!l&&"hidden",g.expandable&&"rt-expandable",(b||y)&&"rt-pivot"),style:ne({},m,{flex:u+" 0 auto",width:j.asPx(u),maxWidth:j.asPx(s)})},p.rest,d.rest,N),I)}))),a.subRows&&c&&a.subRows.map((function(e,r){return t(e,r,a.nestingPath)})),he&&!a.subRows&&c&&he(a,(function(){var e=j.clone(te);j.set(e,a.nestingPath,!1)})))},et=function(t,r){var n=ee.find((function(e){return e.id===t.id}))||{},i="function"==typeof t.show?t.show():t.show,a=j.getFirstDefined(n.value,t.width,t.minWidth),c=a,l=j.getFirstDefined(n.value,t.width,t.maxWidth),u=j.splitProps(w(We,void 0,t,e)),s=j.splitProps(t.getProps(We,void 0,t,e)),p=[u.className,t.className,s.className],d=ne({},u.style,t.style,s.style);return o.createElement(de,ne({key:r+"-"+t.id,className:P()(p,!i&&"hidden"),style:ne({},d,{flex:c+" 0 auto",width:j.asPx(a),maxWidth:j.asPx(l)})},u.rest),j.normalizeComponent(xe))},tt=function(t,r){var n=b(We,void 0,void 0,e),i=j.splitProps(y(We,void 0,void 0,e));return o.createElement(ue,ne({key:"pad-"+r},n),o.createElement(se,{className:P()("-padRow",(ke.length+r)%2?"-even":"-odd",i.className),style:i.style||{}},Te.map(et)))},rt=function(t,r){var n=ee.find((function(e){return e.id===t.id}))||{},i="function"==typeof t.show?t.show():t.show,a=j.getFirstDefined(n.value,t.width,t.minWidth),c=j.getFirstDefined(n.value,t.width,t.maxWidth),l=j.splitProps(E(We,void 0,t,e)),u=j.splitProps(t.getProps(We,void 0,t,e)),s=j.splitProps(t.getFooterProps(We,void 0,t,e)),p=[l.className,t.className,u.className,s.className],d=ne({},l.style,t.style,u.style,s.style);return o.createElement(de,ne({key:r+"-"+t.id,className:P()(p,!i&&"hidden"),style:ne({},d,{flex:a+" 0 auto",width:j.asPx(a),maxWidth:j.asPx(c)})},u.rest,l.rest,s.rest),j.normalizeComponent(t.Footer,{data:Ne,column:t}))},nt=function(r){var n=j.splitProps(x(We,void 0,void 0,e));return o.createElement(me,ne({},t,{pages:oe,canPrevious:_e,canNext:Be,onPageChange:e.onPageChange,onPageSizeChange:e.onPageSizeChange,className:n.className,style:n.style,isTop:r},n.rest))},ot=function(){return o.createElement("div",ne({className:P()("ReactTable",n,qe.className),style:ne({},i,qe.style)},qe.rest),N&&L?o.createElement("div",{className:"pagination-top"},nt(!0)):null,o.createElement(ae,ne({className:P()(Fe.className,Le?"rt-resizing":""),style:Fe.style},Fe.rest),Pe?(h=j.splitProps(l(We,void 0,void 0,e)),v=j.splitProps(u(We,void 0,void 0,e)),o.createElement(ce,ne({className:P()("-headerGroups",h.className),style:ne({},h.style,{minWidth:Ge+"px"})},h.rest),o.createElement(se,ne({className:v.className,style:v.style},v.rest),Me.map(Qe)))):null,(s=j.splitProps(p(We,void 0,void 0,e)),f=j.splitProps(d(We,void 0,void 0,e)),o.createElement(ce,ne({className:P()("-header",s.className),style:ne({},s.style,{minWidth:Ge+"px"})},s.rest),o.createElement(se,ne({className:f.className,style:f.style},f.rest),Te.map(Xe)))),Ze?(a=j.splitProps(m(We,void 0,void 0,e)),c=j.splitProps(g(We,void 0,void 0,e)),o.createElement(ce,ne({className:P()("-filters",a.className),style:ne({},a.style,{minWidth:Ge+"px"})},a.rest),o.createElement(se,ne({className:c.className,style:c.style},c.rest),Te.map(Ke)))):null,o.createElement(le,ne({className:P()(Ve.className),style:ne({},Ve.style,{minWidth:Ge+"px"})},Ve.rest),ke.map((function(e,t){return $e(e,t)})),Oe.map(tt)),Re?(t=j.splitProps(I(We,void 0,void 0,e)),r=j.splitProps(S(We,void 0,void 0,e)),o.createElement(fe,ne({className:t.className,style:ne({},t.style,{minWidth:Ge+"px"})},t.rest),o.createElement(se,ne({className:P()(r.className),style:r.style},r.rest),Te.map(rt)))):null),N&&C?o.createElement("div",{className:"pagination-bottom"},nt(!1)):null,!ke.length&&o.createElement(ve,Ye,j.normalizeComponent(O)),o.createElement(ge,ne({loading:J,loadingText:A},Je)));var t,r,a,c,s,f,h,v};return r?r(We,ot,this):ot()}}]),t}(function(e){return function(e){function t(){return G(this,t),U(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),z(t,[{key:"getResolvedState",value:function(e,t){return H({},j.compactObject(this.state),j.compactObject(this.props),j.compactObject(t),j.compactObject(e))}},{key:"getDataModel",value:function(e,t){var r=this,n=e.columns,i=e.pivotBy,a=void 0===i?[]:i,c=e.data,l=e.resolveData,u=e.pivotIDKey,s=e.pivotValKey,p=e.subRowsKey,d=e.aggregatedKey,f=e.nestingLevelKey,m=e.originalKey,g=e.indexKey,h=e.groupedByPivotKey,v=e.SubComponent,b=!1;n.forEach((function(e){e.columns&&(b=!0)}));var y=[].concat(B(n)),w=n.find((function(e){return e.expander||e.columns&&e.columns.some((function(e){return e.expander}))}));w&&!w.expander&&(w=w.columns.find((function(e){return e.expander}))),v&&!w&&(y=[w={expander:!0}].concat(B(y)));var I=[],S=function(e,t){var n=function(e,t){var n=void 0;if((n=e.expander?H({},r.props.column,r.props.expanderDefaults,e):H({},r.props.column,e)).maxWidth<n.minWidth&&(n.minWidth=n.maxWidth),t&&(n.parentColumn=t),"string"==typeof n.accessor){n.id=n.id||n.accessor;var o=n.accessor;return n.accessor=function(e){return j.get(e,o)},n}if(n.accessor&&!n.id)throw console.warn(n),new Error("A column id is required if using a non-string accessor for column above.");return n.accessor||(n.accessor=function(){}),n}(e,t);return I.push(n),n},E=y.map((function(e){return e.columns?H({},e,{columns:e.columns.map((function(t){return S(t,e)}))}):S(e)})).slice(),x=[],D=(E=(E=E.map((function(e){if(e.columns){var t=e.columns.filter((function(e){return!(a.indexOf(e.id)>-1)&&j.getFirstDefined(e.show,!0)}));return H({},e,{columns:t})}return e}))).filter((function(e){return e.columns?e.columns.length:!(a.indexOf(e.id)>-1)&&j.getFirstDefined(e.show,!0)}))).findIndex((function(e){return e.pivot}));if(a.length){var T=[];a.forEach((function(e){var t=I.find((function(t){return t.id===e}));t&&T.push(t)}));var M=T.reduce((function(e,t){return e&&e===t.parentColumn&&t.parentColumn}),T[0].parentColumn),P=b&&M.Header,N={Header:P=P||function(){return o.createElement("strong",null,"Pivoted")},columns:T.map((function(e){return H({},r.props.pivotDefaults,e,{pivoted:!0})}))};D>=0?(N=H({},E[D],N),E.splice(D,1,N)):E.unshift(N)}var L=[],C=[],k=function(e,t){L.push(H({},r.props.column,t,{columns:e})),C=[]};E.forEach((function(e){if(e.columns)return x=x.concat(e.columns),C.length>0&&k(C),void k(e.columns,e);x.push(e),C.push(e)})),b&&C.length>0&&k(C);var A=function e(t,r){var n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=(_(n={},m,t),_(n,g,r),_(n,p,t[p]),_(n,f,o),n);return I.forEach((function(e){e.expander||(i[e.id]=e.accessor(t))})),i[p]&&(i[p]=i[p].map((function(t,r){return e(t,r,o+1)}))),i},O=this.resolvedData;this.resolvedData&&!t||(O=l(c),this.resolvedData=O),O=O.map((function(e,t){return A(e,t)}));var R=x.filter((function(e){return!e.expander&&e.aggregate})),z=function(e){var t={};return R.forEach((function(r){var n=e.map((function(e){return e[r.id]}));t[r.id]=r.aggregate(n,e)})),t};if(a.length){O=function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(n===r.length)return t;var o=Object.entries(j.groupBy(t,r[n])).map((function(e){var t,o=Z(e,2),i=o[0],a=o[1];return _(t={},u,r[n]),_(t,s,i),_(t,r[n],i),_(t,p,a),_(t,f,n),_(t,h,!0),t}));return o=o.map((function(t){var o,i=e(t[p],r,n+1);return H({},t,(_(o={},p,i),_(o,d,!0),o),z(i))}))}(O,a)}return H({},e,{resolvedData:O,allVisibleColumns:x,headerGroups:L,allDecoratedColumns:I,hasHeaderGroups:b})}},{key:"getSortedData",value:function(e){var t=e.manual,r=e.sorted,n=e.filtered,o=e.defaultFilterMethod,i=e.resolvedData,a=e.allDecoratedColumns,c={};return a.filter((function(e){return e.sortMethod})).forEach((function(e){c[e.id]=e.sortMethod})),{sortedData:t?i:this.sortData(this.filterData(i,n,o,a),r,c)}}},{key:"fireFetchData",value:function(){var e=H({},this.getResolvedState(),{page:this.getStateOrProp("page"),pageSize:this.getStateOrProp("pageSize"),filtered:this.getStateOrProp("filtered")});this.props.onFetchData(e,this)}},{key:"getPropOrState",value:function(e){return j.getFirstDefined(this.props[e],this.state[e])}},{key:"getStateOrProp",value:function(e){return j.getFirstDefined(this.state[e],this.props[e])}},{key:"filterData",value:function(e,t,r,n){var o=this,i=e;return t.length&&(i=(i=t.reduce((function(e,t){var o=n.find((function(e){return e.id===t.id}));if(!o||!1===o.filterable)return e;var i=o.filterMethod||r;return o.filterAll?i(t,e,o):e.filter((function(e){return i(t,e,o)}))}),i)).map((function(e){return e[o.props.subRowsKey]?H({},e,_({},o.props.subRowsKey,o.filterData(e[o.props.subRowsKey],t,r,n))):e})).filter((function(e){return!e[o.props.subRowsKey]||e[o.props.subRowsKey].length>0}))),i}},{key:"sortData",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.length)return e;var o=(this.props.orderByMethod||j.orderBy)(e,t.map((function(e){return n[e.id]?function(t,r){return n[e.id](t[e.id],r[e.id],e.desc)}:function(t,n){return r.props.defaultSortMethod(t[e.id],n[e.id],e.desc)}})),t.map((function(e){return!e.desc})),this.props.indexKey);return o.forEach((function(e){e[r.props.subRowsKey]&&(e[r.props.subRowsKey]=r.sortData(e[r.props.subRowsKey],t,n))})),o}},{key:"getMinRows",value:function(){return j.getFirstDefined(this.props.minRows,this.getStateOrProp("pageSize"))}},{key:"onPageChange",value:function(e){var t=this.props,r=t.onPageChange,n=t.collapseOnPageChange,o={page:e};n&&(o.expanded={}),this.setStateWithData(o,(function(){return r&&r(e)}))}},{key:"onPageSizeChange",value:function(e){var t=this.props.onPageSizeChange,r=this.getResolvedState(),n=r.pageSize*r.page,o=Math.floor(n/e);this.setStateWithData({pageSize:e,page:o},(function(){return t&&t(e,o)}))}},{key:"sortColumn",value:function(e,t){var r=this.getResolvedState(),n=r.sorted,o=r.skipNextSort,i=r.defaultSortDesc,a=Object.prototype.hasOwnProperty.call(e,"defaultSortDesc")?e.defaultSortDesc:i,c=!a;if(o)this.setStateWithData({skipNextSort:!1});else{var l=this.props.onSortedChange,u=j.clone(n||[]).map((function(e){return e.desc=j.isSortingDesc(e),e}));if(j.isArray(e)){var s=u.findIndex((function(t){return t.id===e[0].id}));if(s>-1)u[s].desc===c?t?u.splice(s,e.length):e.forEach((function(e,t){u[s+t].desc=a})):e.forEach((function(e,t){u[s+t].desc=c})),t||(u=u.slice(s,e.length));else u=t?u.concat(e.map((function(e){return{id:e.id,desc:a}}))):e.map((function(e){return{id:e.id,desc:a}}))}else{var p=u.findIndex((function(t){return t.id===e.id}));if(p>-1){var d=u[p];d.desc===c?t?u.splice(p,1):(d.desc=a,u=[d]):(d.desc=c,t||(u=[d]))}else t?u.push({id:e.id,desc:a}):u=[{id:e.id,desc:a}]}this.setStateWithData({page:!n.length&&u.length||!t?0:this.state.page,sorted:u},(function(){return l&&l(u,e,t)}))}}},{key:"filterColumn",value:function(e,t){var r=this.getResolvedState().filtered,n=this.props.onFilteredChange,o=(r||[]).filter((function(t){return t.id!==e.id}));""!==t&&o.push({id:e.id,value:t}),this.setStateWithData({filtered:o},(function(){return n&&n(o,e,t)}))}},{key:"resizeColumnStart",value:function(e,t,r){var n=this;e.stopPropagation();var o=e.target.parentElement.getBoundingClientRect().width,i=void 0;i=r?e.changedTouches[0].pageX:e.pageX,this.trapEvents=!0,this.setStateWithData({currentlyResizing:{id:t.id,startX:i,parentWidth:o}},(function(){r?(document.addEventListener("touchmove",n.resizeColumnMoving),document.addEventListener("touchcancel",n.resizeColumnEnd),document.addEventListener("touchend",n.resizeColumnEnd)):(document.addEventListener("mousemove",n.resizeColumnMoving),document.addEventListener("mouseup",n.resizeColumnEnd),document.addEventListener("mouseleave",n.resizeColumnEnd))}))}},{key:"resizeColumnMoving",value:function(e){e.stopPropagation();var t=this.props,r=t.onResizedChange,n=t.column,o=this.getResolvedState(),i=o.resized,a=o.currentlyResizing,c=o.columns.find((function(e){return e.accessor===a.id||e.id===a.id})),l=c&&null!=c.minResizeWidth?c.minResizeWidth:n.minResizeWidth,u=i.filter((function(e){return e.id!==a.id})),s=void 0;"touchmove"===e.type?s=e.changedTouches[0].pageX:"mousemove"===e.type&&(s=e.pageX);var p=Math.max(a.parentWidth+s-a.startX,l);u.push({id:a.id,value:p}),this.setStateWithData({resized:u},(function(){return r&&r(u,e)}))}},{key:"resizeColumnEnd",value:function(e){e.stopPropagation();var t="touchend"===e.type||"touchcancel"===e.type;t&&(document.removeEventListener("touchmove",this.resizeColumnMoving),document.removeEventListener("touchcancel",this.resizeColumnEnd),document.removeEventListener("touchend",this.resizeColumnEnd)),document.removeEventListener("mousemove",this.resizeColumnMoving),document.removeEventListener("mouseup",this.resizeColumnEnd),document.removeEventListener("mouseleave",this.resizeColumnEnd),t||this.setStateWithData({skipNextSort:!0,currentlyResizing:!1})}}]),t}(e)}(function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),n={page:e.defaultPage,pageSize:e.defaultPageSize,sorted:e.defaultSorted,expanded:e.defaultExpanded,filtered:e.defaultFiltered,resized:e.defaultResized,currentlyResizing:!1,skipNextSort:!1},o=r.getResolvedState(e,n),i=r.getDataModel(o,!0);return r.state=r.calculateNewResolvedState(i),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),R(t,[{key:"componentDidMount",value:function(){this.fireFetchData()}},{key:"componentDidUpdate",value:function(e,t){var r=this.getResolvedState(e,t),n=this.getResolvedState(this.props,this.state);["sorted","filtered","resized","expanded"].forEach((function(e){var t="default"+(e.charAt(0).toUpperCase()+e.slice(1));JSON.stringify(r[t])!==JSON.stringify(n[t])&&(n[e]=n[t])})),["sortable","filterable","resizable"].forEach((function(e){if(r[e]!==n[e]){var t=e.replace("able","")+"ed",o="default"+(t.charAt(0).toUpperCase()+t.slice(1));n[t]=n[o]}})),r.data===n.data&&r.columns===n.columns&&r.pivotBy===n.pivotBy&&r.sorted===n.sorted&&r.filtered===n.filtered||this.setStateWithData(this.getDataModel(n,r.data!==n.data))}},{key:"calculateNewResolvedState",value:function(e){var t=this.getResolvedState(),r=this.getResolvedState({},e),n=r.freezeWhenExpanded;if(r.frozen=!1,n)for(var o=Object.keys(r.expanded),i=0;i<o.length;i+=1)if(r.expanded[o[i]]){r.frozen=!0;break}return(t.frozen&&!r.frozen||t.sorted!==r.sorted||t.filtered!==r.filtered||t.showFilters!==r.showFilters||!r.frozen&&t.resolvedData!==r.resolvedData)&&((t.sorted!==r.sorted&&this.props.collapseOnSortingChange||t.filtered!==r.filtered||t.showFilters!==r.showFilters||t.sortedData&&!r.frozen&&t.resolvedData!==r.resolvedData&&this.props.collapseOnDataChange)&&(r.expanded={}),Object.assign(r,this.getSortedData(r))),t.filtered!==r.filtered&&(r.page=0),r.sortedData&&(r.pages=r.manual?r.pages:Math.ceil(r.sortedData.length/r.pageSize),r.page=r.manual?r.page:Math.max(r.page>=r.pages?r.pages-1:r.page,0)),r}},{key:"setStateWithData",value:function(e,t){var r=this,n=this.getResolvedState(),o=this.calculateNewResolvedState(e);return this.setState(o,(function(){t&&t(),n.page===o.page&&n.pageSize===o.pageSize&&n.sorted===o.sorted&&n.filtered===o.filtered||r.fireFetchData()}))}}]),t}(o.Component)));ie.propTypes=te,ie.defaultProps=K;var ae=ie,ce=r(48618),le=(r(85005),function(e){return o.createElement("div",{className:"wprm-admin-manage-select-columns-container"},o.createElement("div",{className:"wprm-admin-manage-select-columns"},e.columns.map((function(t,r){if("actions"===t.id)return null;var n=e.selectedColumns.includes(t.id),i=e.filteredColumns.includes(t.id),a=["wprm-admin-manage-select-columns-column"];return n&&a.push("wprm-admin-manage-select-columns-column-selected"),i&&a.push("wprm-admin-manage-select-columns-column-filtered"),o.createElement("span",{className:a.join(" "),onClick:function(r){r.preventDefault(),i||e.onColumnsChange(t.id,!n)},key:r},t.Header)}))))}),ue=(r(80174),function(e){if(!e.filtered&&!e.total)return o.createElement("div",{className:"wprm-admin-table-totals"}," ");var t=!1!==e.filtered&&e.filtered!=e.total;return o.createElement("div",{className:"wprm-admin-table-totals"},e.total?o.createElement(o.Fragment,null,t?"".concat((0,b.S)("Showing")," ").concat(Number(e.filtered).toLocaleString()," ").concat((0,b.S)("filtered of")," ").concat(Number(e.total).toLocaleString()," ").concat((0,b.S)("total")):"".concat((0,b.S)("Showing")," ").concat(Number(e.total).toLocaleString()," ").concat((0,b.S)("total"))):"".concat(Number(e.filtered).toLocaleString()," ").concat((0,b.S)("rows")))});function se(e){return(se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pe(e){return function(e){if(Array.isArray(e))return fe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||de(e)||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.")}()}function de(e,t){if(e){if("string"==typeof e)return fe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?fe(e,t):void 0}}function fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function me(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ge(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?me(Object(r),!0).forEach((function(t){he(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):me(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function he(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ve(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function be(e,t){return(be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ye(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Se(e);if(t){var o=Se(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return we(this,r)}}function we(e,t){return!t||"object"!==se(t)&&"function"!=typeof t?Ie(e):t}function Ie(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Se(e){return(Se=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ee={data:[],pages:null,filtered:[],countFiltered:!1,countTotal:!1,loading:!0,columns:[],selectedColumns:!1,selectedRows:{},selectedAllRows:0},xe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&be(e,t)}(a,e);var t,r,n,i=ye(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state=ge({},Ee),t.initDataTable=t.initDataTable.bind(Ie(t)),t.refreshData=t.refreshData.bind(Ie(t)),t.fetchData=t.fetchData.bind(Ie(t)),t.toggleSelectRow=t.toggleSelectRow.bind(Ie(t)),t.toggleSelectAll=t.toggleSelectAll.bind(Ie(t)),t.getSelectedRows=t.getSelectedRows.bind(Ie(t)),t.onColumnsChange=t.onColumnsChange.bind(Ie(t)),t.requirementMet=t.requirementMet.bind(Ie(t)),t}return t=a,(r=[{key:"componentDidMount",value:function(){this.initDataTable()}},{key:"componentDidUpdate",value:function(e){this.props.type!==e.type&&this.initDataTable(!0)}},{key:"initDataTable",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.requirementMet()){var r=this.props.options.selectedColumns;if(!1!==r){var n=localStorage.getItem("wprm-admin-manage-".concat(this.props.options.id,"-columns"));n&&(n=JSON.parse(n),Array.isArray(n)&&(r=n))}this.setState(ge(ge({},Ee),{},{columns:this.props.options.columns.getColumns(this),selectedColumns:r}),(function(){t&&e.refreshData()}))}}},{key:"toggleSelectRow",value:function(e){var t=ge({},this.state.selectedRows);t[e]=!t[e];var r=Object.values(t).filter((function(e){return e})).length,n=2;0===r?n=0:this.state.data.length===r&&(n=1),this.setState({selectedRows:t,selectedAllRows:n})}},{key:"toggleSelectAll",value:function(){var e="taxonomy"===this.props.options.route?"term_id":"id",t={};if(0===this.state.selectedAllRows){var r,n=function(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=de(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}(this.state.data);try{for(n.s();!(r=n.n()).done;)t[r.value[e]]=!0}catch(o){n.e(o)}finally{n.f()}}this.setState({selectedRows:t,selectedAllRows:0===this.state.selectedAllRows?1:0})}},{key:"getSelectedRows",value:function(){var e=this;return Object.keys(this.state.selectedRows).filter((function(t){return e.state.selectedRows[t]})).map((function(e){return parseInt(e)}))}},{key:"refreshData",value:function(){this.refReactTable&&this.refReactTable.fireFetchData()}},{key:"fetchData",value:function(e,t){var r=this,n=e.data;this.setState({loading:!0},(function(){r.requirementMet()&&h.Z.manage.getData({route:r.props.options.route,type:r.props.options.id,pageSize:e.pageSize,page:e.page,sorted:e.sorted,filtered:e.filtered}).then((function(e){if(e){var t={data:e.rows,pages:e.pages,countFiltered:e.filtered,countTotal:e.total,loading:!1},o="taxonomy"===r.props.options.route?"term_id":"id";JSON.stringify(e.rows.map((function(e){return e[o]})))!==JSON.stringify(n.map((function(e){return e[o]})))&&(t.selectedRows={},t.selectedAllRows=0),r.setState(t)}}))}))}},{key:"onColumnsChange",value:function(e,t){var r=pe(this.state.selectedColumns);t?r.push(e):r=r.filter((function(t){return t!==e})),this.setState({selectedColumns:r}),localStorage.setItem("wprm-admin-manage-".concat(this.props.options.id,"-columns"),JSON.stringify(r))}},{key:"requirementMet",value:function(){return!(this.props.options.hasOwnProperty("required")&&(!wprm_admin.addons.hasOwnProperty(this.props.options.required)||!0!==wprm_admin.addons[this.props.options.required]))}},{key:"render",value:function(){var e=this;if(!this.props.options)return null;if(!this.requirementMet()){var t=this.props.options.required[0].toUpperCase()+this.props.options.required.substring(1);return o.createElement("div",{className:"wprm-admin-manage-requirement"},o.createElement("div",null,"*",(0,b.S)("This feature is only available in")),o.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker ".concat(t," Bundle")))}var r=this.state,n=r.data,i=r.pages,a=r.loading,c=this.state.columns.filter((function(t){return"actions"===t.id||!1===e.state.selectedColumns||e.state.selectedColumns.includes(t.id)})),l=this.state.filtered.filter((function(e){return""!==e.value&&"all"!==e.value})).map((function(e){return e.id}));return o.createElement("div",{className:"wprm-admin-manage-page"},!1!==this.state.selectedColumns||this.props.options.bulkEdit||this.props.options.createButton?o.createElement("div",{className:"wprm-admin-manage-header"},!1===this.state.selectedColumns?o.createElement("div",null):o.createElement(le,{onColumnsChange:this.onColumnsChange,columns:this.state.columns,selectedColumns:this.state.selectedColumns,filteredColumns:l}),o.createElement("div",{className:"wprm-admin-manage-header-buttons"},(!1===this.state.selectedColumns||this.state.selectedColumns.includes("bulk_edit"))&&this.props.options.bulkEdit&&o.createElement("button",{className:"button",onClick:function(){WPRM_Modal.open("bulk-edit",{route:e.props.options.bulkEdit.route,type:e.props.options.bulkEdit.type,ids:e.getSelectedRows(),saveCallback:function(){return e.refreshData()}})},disabled:0===this.getSelectedRows().length},(0,b.S)("Bulk Edit")," ",this.getSelectedRows().length," ",1===this.getSelectedRows().length?this.props.options.label.singular:this.props.options.label.plural,"..."),this.props.options.createButton?o.createElement("button",{className:"button button-primary",onClick:function(){return e.props.options.createButton(e)}},"".concat((0,b.S)("Create")," ").concat(this.props.options.label.singular)):null)):null,o.createElement("div",{className:"wprm-admin-manage-table-container"},o.createElement(ce.Z,{module:"Datatable"},o.createElement(ue,{filtered:this.state.countFiltered,total:this.state.countTotal}),o.createElement("div",{className:"wprm-admin-manage-table-inner"},o.createElement(ae,{ref:function(t){e.refReactTable=t},manual:!0,columns:c,data:n,pages:i,filtered:this.state.filtered,onFilteredChange:function(t){e.setState({filtered:t})},loading:a,onFetchData:this.fetchData,defaultPageSize:this.props.options.hasOwnProperty("defaultPageSize")?this.props.options.defaultPageSize:25,pageSizeOptions:[5,10,20,25,50,100,500],defaultSorted:[{id:"rating"===this.props.type?"date":"id",desc:!0}],filterable:!0,resizable:!1,className:"wprm-admin-manage-table wprm-admin-table -highlight"})))))}}])&&ve(t.prototype,r),n&&ve(t,n),a}(o.Component),De=(r(29897),r(2778)),Te=r.n(De),Me=r(80416),Pe=r(94341);function Ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Le(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(r),!0).forEach((function(t){Ce(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ne(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ce(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var je={getColumns:function(e){return[(0,Pe.Z)(e),{Header:(0,b.S)("Sort:"),id:"actions",headerClassName:"wprm-admin-table-help-text",sortable:!1,width:70,Filter:function(){return o.createElement("div",null,(0,b.S)("Filter:"))},Cell:function(t){return o.createElement("div",{className:"wprm-admin-manage-actions"},o.createElement(v.Z,{type:"pencil",title:(0,b.S)("Click on the stars to edit the rating."),onClick:function(){alert((0,b.S)("Click on the stars to edit the rating."))}}),o.createElement(v.Z,{type:"trash",title:(0,b.S)("Delete Rating"),onClick:function(){confirm((0,b.S)("Are you sure you want to delete this rating?"))&&h.Z.rating.delete(t.original.id).then((function(){return e.refreshData()}))}}))}},{Header:(0,b.S)("Date"),id:"date",accessor:"date",width:150,Filter:function(e){return o.createElement(Me.Z,e)}},{Header:(0,b.S)("Rating"),id:"rating",accessor:"rating",width:100,Filter:function(e){var t=e.filter,r=e.onChange;return o.createElement("select",{onChange:function(e){return r(e.target.value)},style:{width:"100%",fontSize:"1em"},value:t?t.value:"all"},o.createElement("option",{value:"all"},(0,b.S)("All Ratings")),o.createElement("option",{value:"1"},"1 ".concat((0,b.S)("star"))),o.createElement("option",{value:"2"},"2 ".concat((0,b.S)("stars"))),o.createElement("option",{value:"3"},"3 ".concat((0,b.S)("stars"))),o.createElement("option",{value:"4"},"4 ".concat((0,b.S)("stars"))),o.createElement("option",{value:"5"},"5 ".concat((0,b.S)("stars"))))},Cell:function(t){return o.createElement("div",{className:"wprm-admin-manage-ratings-rating"},[1,2,3,4,5].map((function(r,n){return o.createElement(v.Z,{type:r<=t.value?"star-full":"star-empty",title:"".concat((0,b.S)("Click to change this rating to:")," ").concat(r),onClick:function(){var n=Le(Le({},t.original),{},{rating:r});h.Z.rating.update(n).then((function(){return e.refreshData()}))},key:n})})))}},{Header:(0,b.S)("Type"),id:"type",accessor:"type",width:150,sortable:!1,Filter:function(e){var t=e.filter,r=e.onChange;return o.createElement("select",{onChange:function(e){return r(e.target.value)},style:{width:"100%",fontSize:"1em"},value:t?t.value:"all"},o.createElement("option",{value:"all"},(0,b.S)("All Types")),o.createElement("option",{value:"user"},(0,b.S)("User Rating")),o.createElement("option",{value:"comment"},(0,b.S)("Comment Rating")))},Cell:function(e){return o.createElement("div",null,"user"===e.value?(0,b.S)("User Rating"):(0,b.S)("Comment Rating"))}},{Header:(0,b.S)("Approved"),id:"approved",accessor:"approved",width:100,sortable:!1,Filter:function(e){var t=e.filter,r=e.onChange;return o.createElement("select",{onChange:function(e){return r(e.target.value)},style:{width:"100%",fontSize:"1em"},value:t?t.value:"all"},o.createElement("option",{value:"all"},(0,b.S)("All")),o.createElement("option",{value:"yes"},(0,b.S)("Approved")),o.createElement("option",{value:"no"},(0,b.S)("Not Approved")))},Cell:function(e){return o.createElement("div",null,0==e.value?(0,b.S)("No"):(0,b.S)("Yes"))}},{Header:(0,b.S)("User ID"),id:"user_id",accessor:"user_id",width:150,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(e){if(!e.value||"0"===e.value)return o.createElement("div",null);var t="".concat(e.value," - ").concat(e.original.user?e.original.user:(0,b.S)("n/a"));return o.createElement("div",null,e.original.user_link?o.createElement("a",{href:Te().decode(e.original.user_link),target:"_blank"},t):t)}},{Header:(0,b.S)("IP"),id:"ip",accessor:"ip",width:150,Filter:function(e){return o.createElement(Me.Z,e)}},{Header:(0,b.S)("Comment ID"),id:"comment_id",accessor:"comment_id",width:350,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(e){if(!e.value||"0"===e.value)return o.createElement("div",null);var t="".concat(e.value," - ").concat(e.original.comment?"".concat(e.original.comment):(0,b.S)("n/a"));return o.createElement("div",null,e.original.comment_link?o.createElement("a",{href:Te().decode(e.original.comment_link),target:"_blank"},t):t)}},{Header:(0,b.S)("Recipe ID"),id:"recipe_id",accessor:"recipe_id",width:350,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(t){if(!t.value||"0"===t.value)return o.createElement("div",null);var r="".concat(t.value," - ").concat(t.original.recipe?t.original.recipe:(0,b.S)("n/a"));return o.createElement("div",null,t.original.recipe?o.createElement("a",{href:"#",onClick:function(r){r.preventDefault(),WPRM_Modal.open("recipe",{recipeId:t.value,saveCallback:function(){return e.refreshData()}})}},r):r)}},{Header:(0,b.S)("Parent Post ID"),id:"post_id",accessor:"post_id",width:350,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(e){if(!e.value||"0"===e.value)return o.createElement("div",null);var t="".concat(e.value," - ").concat(e.original.post?e.original.post:(0,b.S)("n/a"));return o.createElement("div",null,e.original.post_link?o.createElement("a",{href:Te().decode(e.original.post_link),target:"_blank"},t):t)}}]}},ke=(r(42900),r(55281),r(22321),r(67838),r(95075)),Ae=function(e){return e.seo?o.createElement(ke.Z,{content:e.seo.message,style:{width:"100%"}},o.createElement("div",{className:"wprm-admin-manage-seo-indicator wprm-admin-manage-seo-indicator-".concat(e.seo.type.trim()),onClick:e.onClick},"other"===e.seo.type?"n/a":o.createElement(o.Fragment,null,o.createElement("div",{className:"wprm-admin-manage-seo-indicator-block"}),o.createElement("div",{className:"wprm-admin-manage-seo-indicator-block"}),o.createElement("div",{className:"wprm-admin-manage-seo-indicator-block"}),o.createElement("div",{className:"wprm-admin-manage-seo-indicator-block"})))):null};function Oe(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Re(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Re(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function Re(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Ze=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=parseInt(e),n=0,o=0,i=0,a="";return r>0?(n=Math.floor(r/24/60),o=Math.floor(r/60%24),i=Math.floor(r%60),n&&(a+="".concat(n," ").concat(1===n?(0,b.S)("day"):(0,b.S)("days")," ")),o&&(a+="".concat(o," ").concat(1===o?(0,b.S)("hr"):(0,b.S)("hrs")," ")),i&&(a+="".concat(i," ").concat(1===i?(0,b.S)("min"):(0,b.S)("mins")," "))):t&&(a="0 ".concat((0,b.S)("mins"))),a.trim()},He={getColumns:function(e){var t=[(0,Pe.Z)(e),{Header:(0,b.S)("Sort:"),id:"actions",headerClassName:"wprm-admin-table-help-text",sortable:!1,width:wprm_admin.addons.premium?130:100,Filter:function(){return o.createElement("div",null,(0,b.S)("Filter:"))},Cell:function(t){return o.createElement("div",{className:"wprm-admin-manage-actions"},o.createElement(v.Z,{type:"pencil",title:(0,b.S)("Edit Recipe"),onClick:function(){WPRM_Modal.open("recipe",{recipe:t.original,saveCallback:function(){return e.refreshData()}})}}),o.createElement(v.Z,{type:"print",title:(0,b.S)("Print Recipe"),onClick:function(){var e=wprm_admin.home_url.split(/\?(.+)/),r=e[0];wprm_admin.permalinks?(r+=wprm_admin.print_slug+"/"+t.original.id,e[1]&&(r+="?"+e[1])):(r+="?"+wprm_admin.print_slug+"="+t.original.id,e[1]&&(r+="&"+e[1])),window.open(r,"_blank")}}),!0===wprm_admin.addons.premium&&o.createElement(v.Z,{type:"duplicate",title:(0,b.S)("Clone Recipe"),onClick:function(){WPRM_Modal.open("recipe",{recipeId:t.original.id,cloneRecipe:!0,saveCallback:function(){return e.refreshData()}},!0)}}),o.createElement(v.Z,{type:"trash",title:(0,b.S)("Delete Recipe"),onClick:function(){confirm("".concat((0,b.S)("Are you sure you want to delete"),' "').concat(t.original.name,'"?'))&&h.Z.recipe.delete(t.original.id).then((function(){return e.refreshData()}))}}))}},{Header:(0,b.S)("SEO"),id:"seo",accessor:"seo",width:65,sortable:!1,filterable:!1,Cell:function(e){return o.createElement(Ae,{seo:e.value})}},{Header:(0,b.S)("Type"),id:"type",accessor:"type",width:80,Filter:function(e){var t=e.filter,r=e.onChange;return o.createElement("select",{onChange:function(e){return r(e.target.value)},style:{width:"100%",fontSize:"1em"},value:t?t.value:"all"},o.createElement("option",{value:"all"},(0,b.S)("All")),o.createElement("option",{value:"food"},(0,b.S)("Food")),o.createElement("option",{value:"howto"},(0,b.S)("How-to")),o.createElement("option",{value:"other"},(0,b.S)("Other")))},Cell:function(e){return o.createElement("div",null,"other"===e.value?(0,b.S)("Other"):"howto"===e.value?(0,b.S)("How-to"):(0,b.S)("Food"))}},{Header:(0,b.S)("ID"),id:"id",accessor:"id",width:65,Filter:function(e){return o.createElement(Me.Z,e)}},{Header:(0,b.S)("Date"),id:"date",accessor:"date",width:150,Filter:function(e){return o.createElement(Me.Z,e)}},{Header:(0,b.S)("Image"),id:"image",accessor:"image_url",width:100,sortable:!1,Filter:function(e){var t=e.filter,r=e.onChange;return o.createElement("select",{onChange:function(e){return r(e.target.value)},style:{width:"100%",fontSize:"1em"},value:t?t.value:"all"},o.createElement("option",{value:"all"},(0,b.S)("Show All")),o.createElement("option",{value:"yes"},(0,b.S)("Has Recipe Image")),o.createElement("option",{value:"no"},(0,b.S)("Does not have Recipe Image")))},Cell:function(e){return o.createElement("div",{style:{width:"100%"}},e.value?o.createElement("img",{src:e.value,className:"wprm-admin-manage-image"}):null)}},{Header:(0,b.S)("Pin Image"),id:"pin_image",accessor:"pin_image_url",width:100,sortable:!1,Filter:function(e){var t=e.filter,r=e.onChange;return o.createElement("select",{onChange:function(e){return r(e.target.value)},style:{width:"100%",fontSize:"1em"},value:t?t.value:"all"},o.createElement("option",{value:"all"},(0,b.S)("Show All")),o.createElement("option",{value:"yes"},(0,b.S)("Has Custom Pin Image")),o.createElement("option",{value:"no"},(0,b.S)("Does not have Custom Pin Image")))},Cell:function(e){return o.createElement("div",{style:{width:"100%"}},e.value?o.createElement("img",{src:e.value,className:"wprm-admin-manage-image"}):null)}},{Header:(0,b.S)("Video"),id:"video",accessor:"video_url",width:200,sortable:!1,Filter:function(e){var t=e.filter,r=e.onChange;return o.createElement("select",{onChange:function(e){return r(e.target.value)},style:{width:"100%",fontSize:"1em"},value:t?t.value:"all"},o.createElement("option",{value:"all"},(0,b.S)("Show All")),o.createElement("option",{value:"yes"},(0,b.S)("Has any video")),o.createElement("option",{value:"id"},(0,b.S)("Has an uploaded video")),o.createElement("option",{value:"embed"},(0,b.S)("Has an embedded video")),o.createElement("option",{value:"no"},(0,b.S)("Does not have a video")))},Cell:function(e){return o.createElement("div",{style:{width:"100%"}},e.value?e.value:o.createElement(o.Fragment,null,e.original.video_embed?e.original.video_embed:null))}},{Header:(0,b.S)("Name"),id:"name",accessor:"name",width:300,Filter:function(e){return o.createElement(Me.Z,e)}},{Header:(0,b.S)("Summary"),id:"summary",accessor:"summary",width:300,sortable:!1,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(e){return e.value?o.createElement("div",{dangerouslySetInnerHTML:{__html:e.value}}):o.createElement("div",null)}},{Header:(0,b.S)("Author"),id:"post_author",accessor:"post_author",width:150,Filter:function(e){var t=e.filter,r=e.onChange;return o.createElement("select",{onChange:function(e){return r(e.target.value)},style:{width:"100%",fontSize:"1em"},value:t?t.value:"all"},o.createElement("option",{value:"all"},(0,b.S)("All Authors")),Object.keys(wprm_admin_manage.authors).map((function(e,t){var r=wprm_admin_manage.authors[e].data;return o.createElement("option",{value:r.ID,key:t},r.ID,r.display_name?" - ".concat(Te().decode(r.display_name)):""," ")})))},Cell:function(e){return wprm_admin_manage.authors.hasOwnProperty(e.value)||(wprm_admin_manage.authors[e.value]={data:{ID:e.value,display_name:e.original.post_author_name}}),o.createElement("div",null,e.value&&"0"!==e.value?o.createElement("a",{href:e.original.post_author_link,target:"_blank"},e.value," - ",e.original.post_author_name):null)}},{Header:(0,b.S)("Display Author Type"),id:"author_display",accessor:"author_display",width:250,Filter:function(e){var t=e.filter,r=e.onChange;return o.createElement("select",{onChange:function(e){return r(e.target.value)},style:{width:"100%",fontSize:"1em"},value:t?t.value:"all"},o.createElement("option",{value:"all"},(0,b.S)("All Display Author Types")),wprm_admin_modal.options.author.map((function(e,t){return"same"===e.value?null:o.createElement("option",{value:e.value,key:t},e.label)})))},Cell:function(e){var t=wprm_admin_modal.options.author.find((function(t){return t.value===e.value}));return t?o.createElement("div",null,t.label):o.createElement("div",null)}},{Header:(0,b.S)("Display Author"),id:"author",accessor:"author",width:150,sortable:!1,filterable:!1,Cell:function(e){return e.value?o.createElement("div",{dangerouslySetInnerHTML:{__html:e.original.author}}):o.createElement("div",null)}},{Header:(0,b.S)("Status"),id:"status",accessor:"post_status",width:120,sortable:!1,Filter:function(e){var t=e.filter,r=e.onChange;return o.createElement("select",{onChange:function(e){return r(e.target.value)},style:{width:"100%",fontSize:"1em"},value:t?t.value:"all"},o.createElement("option",{value:"all"},(0,b.S)("All Statuses")),Object.keys(wprm_admin_manage.post_statuses).map((function(e,t){return o.createElement("option",{value:e,key:t},Te().decode(wprm_admin_manage.post_statuses[e]))})))},Cell:function(e){var t=Object.keys(wprm_admin_manage.post_statuses).includes(e.value)?wprm_admin_manage.post_statuses[e.value]:e.value;return o.createElement("div",null,t)}},{Header:(0,b.S)("Parent ID"),id:"parent_post_id",accessor:"parent_post_id",width:65,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(e){return e.value?o.createElement("div",null,e.value):o.createElement("div",null)}},{Header:(0,b.S)("Parent Name"),id:"parent_post",accessor:"parent_post",width:300,sortable:!1,Filter:function(e){var t=e.filter,r=e.onChange;return o.createElement("select",{onChange:function(e){return r(e.target.value)},style:{width:"100%",fontSize:"1em"},value:t?t.value:"all"},o.createElement("option",{value:"all"},(0,b.S)("Show All")),o.createElement("option",{value:"yes"},(0,b.S)("Has Parent Post")),o.createElement("option",{value:"no"},(0,b.S)("Does not have Parent Post")))},Cell:function(e){var t=e.value,r=!!e.original.parent_post_edit_url&&Te().decode(e.original.parent_post_edit_url);return t?r?o.createElement("a",{href:r,target:"_blank"},t.post_title):o.createElement("div",null,t.post_title):o.createElement("div",null)}},{Header:(0,b.S)("Ratings"),id:"rating",accessor:"rating",width:200,Filter:function(e){var t=e.filter,r=e.onChange;return o.createElement("select",{onChange:function(e){return r(e.target.value)},style:{width:"100%",fontSize:"1em"},value:t?t.value:"all"},o.createElement("optgroup",{label:(0,b.S)("General")},o.createElement("option",{value:"all"},(0,b.S)("All Ratings")),o.createElement("option",{value:"none"},(0,b.S)("No Ratings")),o.createElement("option",{value:"any"},(0,b.S)("Any Rating"))),o.createElement("optgroup",{label:(0,b.S)("Stars")},o.createElement("option",{value:"1"},"1 ".concat((0,b.S)("star"))),o.createElement("option",{value:"2"},"2 ".concat((0,b.S)("stars"))),o.createElement("option",{value:"3"},"3 ".concat((0,b.S)("stars"))),o.createElement("option",{value:"4"},"4 ".concat((0,b.S)("stars"))),o.createElement("option",{value:"5"},"5 ".concat((0,b.S)("stars")))))},Cell:function(t){var r=t.value;return r.average&&"0"!==r.average?o.createElement("div",{className:"wprm-admin-manage-recipes-ratings-container"},o.createElement("div",{className:"wprm-admin-manage-recipes-ratings-average"},r.average),o.createElement("div",{className:"wprm-admin-manage-recipes-ratings-details"},!1===r.comment_ratings?o.createElement("div",{className:"wprm-admin-manage-recipes-ratings-details-none"},(0,b.S)("no comment ratings")):o.createElement("div",null,"".concat(r.comment_ratings.average," ").concat((0,b.S)("from")," ").concat(r.comment_ratings.count," ").concat(1===r.comment_ratings.count?(0,b.S)("comment"):(0,b.S)("comments"))),!1===r.user_ratings?o.createElement("div",{className:"wprm-admin-manage-recipes-ratings-details-none"},(0,b.S)("no user ratings")):o.createElement("div",null,"".concat(r.user_ratings.average," ").concat((0,b.S)("from")," ").concat(r.user_ratings.count," ").concat(1===r.user_ratings.count?(0,b.S)("vote"):(0,b.S)("votes")),o.createElement("a",{href:"#",onClick:function(r){r.preventDefault(),confirm("".concat((0,b.S)("Are you sure you want to delete the user ratings for"),' "').concat(t.original.name,'"?'))&&h.Z.manage.deleteUserRatings(t.original.id).then((function(){return e.refreshData()}))}},"(reset)")))):null}}],r=function(e){var r=wprm_admin_modal.categories[e];r.terms.sort((function(e,t){return e.name.localeCompare(t.name)})),t.push({Header:r.label,id:"tag_".concat(e),accessor:function(t){return t.tags[e]},width:300,sortable:!1,Filter:function(e){var t=e.filter,n=e.onChange;return o.createElement("select",{onChange:function(e){return n(e.target.value)},style:{width:"100%",fontSize:"1em"},value:t?t.value:"all"},o.createElement("optgroup",{label:(0,b.S)("General")},o.createElement("option",{value:"all"},"".concat((0,b.S)("All")," ").concat(r.label)),o.createElement("option",{value:"none"},"".concat((0,b.S)("No")," ").concat(r.label)),o.createElement("option",{value:"any"},"".concat((0,b.S)("Any")," ").concat(r.label))),o.createElement("optgroup",{label:(0,b.S)("Terms")},r.terms.map((function(e,t){return o.createElement("option",{value:e.term_id,key:t},Te().decode(e.name),e.count?" (".concat(e.count,")"):"")}))))},Cell:function(e){var t=e.value.map((function(e){return e.name})).join(", ");return o.createElement("div",null,t?Te().decode(t):null)}})};for(var n in wprm_admin_modal.categories)r(n);t.push({Header:(0,b.S)("Prep Time"),id:"prep_time",accessor:"prep_time",width:100,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(e){return o.createElement("div",null,Ze(e.value,e.original.prep_time_zero))}},{Header:(0,b.S)("Cook Time"),id:"cook_time",accessor:"cook_time",width:100,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(e){return o.createElement("div",null,Ze(e.value,e.original.cook_time_zero))}},{Header:(0,b.S)("Custom Time"),id:"custom_time",accessor:"custom_time",width:120,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(e){return o.createElement("div",null,o.createElement("div",null,e.original.custom_time_label),o.createElement("div",null,Ze(e.value,e.original.custom_time_zero)))}},{Header:(0,b.S)("Total Time"),id:"total_time",accessor:"total_time",width:100,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(e){return o.createElement("div",null,Ze(e.value))}},{Header:(0,b.S)("Servings"),id:"servings",accessor:"servings",width:100,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(e){return o.createElement("div",null,"0"===e.value?"":e.value," ",e.original.servings_unit)}},{Header:(0,b.S)("Equipment"),id:"equipment",accessor:"equipment",width:300,sortable:!1,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(e){return o.createElement("div",null,e.value?e.value.map((function(e,t){if(e.name){var r=e.name.replace(/(<([^>]+)>)/gi,"").trim();if(r)return o.createElement("div",{key:t},Te().decode(r))}})):null)}},{Header:(0,b.S)("Ingredients"),id:"ingredient",accessor:"ingredients",width:300,sortable:!1,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(e){return o.createElement("div",null,e.value?e.value.map((function(e,t){return e.name=e.name.replace(/(<([^>]+)>)/gi,"").trim(),o.createElement("div",{key:t},e.name&&o.createElement("div",{style:{fontWeight:"bold"}},Te().decode(e.name)),e.ingredients.map((function(e,t){var r=[];if(e.amount&&r.push(e.amount),e.unit&&r.push(e.unit),e.name&&r.push(e.name),e.notes&&r.push(e.notes),r.length){var n=r.join(" ").replace(/(<([^>]+)>)/gi,"").trim();if(n)return o.createElement("div",{key:t},Te().decode(n))}})))})):null)}},{Header:(0,b.S)("Converted Ingredients"),id:"unit_conversion",accessor:"unit_conversion",width:300,sortable:!1,filterable:!1,Cell:function(e){return Array.isArray(e.value)?o.createElement("div",null,e.value.map((function(e,t){if(e=e.replace(/(<([^>]+)>)/gi,"").trim())return o.createElement("div",{key:t},Te().decode(e))}))):o.createElement("div",null,e.value)}},{Header:(0,b.S)("Nutrition"),id:"nutrition",accessor:"nutrition",width:250,sortable:!1,filterable:!1,Cell:function(e){return o.createElement("div",{className:"wprm-manage-recipes-nutrition-container"},Object.keys(wprm_admin_modal.nutrition).map((function(t,r){var n=wprm_admin_modal.nutrition[t],i=!!e.value.hasOwnProperty(t)&&e.value[t],a=n.unit;return"serving_size"===t&&e.value.hasOwnProperty("serving_unit")&&e.value.serving_unit&&(a=e.value.serving_unit),!1===i?null:"calories"===t||wprm_admin.addons.premium?o.createElement("div",{className:"wprm-manage-recipes-nutrition",key:r},o.createElement("div",{className:"wprm-manage-recipes-nutrition-label"},n.label),o.createElement("div",{className:"wprm-manage-recipes-nutrition-value-unit"},o.createElement("span",{className:"wprm-manage-recipes-nutrition-value"},i),o.createElement("span",{className:"wprm-manage-recipes-nutrition-unit"},a))):null})))}}),wprm_admin.addons.elite&&t.push({Header:(0,b.S)("Recipe Submission User"),id:"submission_author",accessor:"submission_author",width:300,sortable:!1,Filter:function(e){var t=e.filter,r=e.onChange;return o.createElement("select",{onChange:function(e){return r(e.target.value)},style:{width:"100%",fontSize:"1em"},value:t?t.value:"all"},o.createElement("option",{value:"all"},(0,b.S)("Show All")),o.createElement("option",{value:"yes"},(0,b.S)("Was Recipe Submission")),o.createElement("option",{value:"no"},(0,b.S)("Was not a Recipe Submission")))},Cell:function(e){var t=e.value;if(!t)return null;var r=t.name?t.name:e.original.submission_author_user_name?e.original.submission_author_user_name:"";return o.createElement("div",{className:"wprm-admin-manage-recipe-submission-user"},o.createElement("div",{className:"wprm-admin-manage-recipe-submission-user-name"},t.id?o.createElement("a",{href:e.original.submission_author_user_link,target:"_blank"},"#",t.id):null,r?o.createElement("span",null," - ",r):null),t.email?o.createElement("div",{className:"wprm-admin-manage-recipe-submission-user-email"},t.email):null)}});var i,a=Oe(wprm_admin_modal.custom_fields&&wprm_admin_modal.custom_fields.fields?Object.values(wprm_admin_modal.custom_fields.fields):[]);try{var c=function(){var e=i.value;t.push({Header:e.name,id:"custom_field_".concat(e.key),accessor:"custom_fields",width:150,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(t){if(!t.value.hasOwnProperty(e.key)||!t.value[e.key])return null;var r=t.value[e.key];return"image"===e.type?o.createElement("div",{style:{width:"100%"}},r.hasOwnProperty("url")&&r.url?o.createElement("img",{src:r.url,className:"wprm-admin-manage-image"}):null):"textarea"===e.type?o.createElement("div",{dangerouslySetInnerHTML:{__html:r}}):"link"===e.type?o.createElement("a",{href:r,target:"_blank"},r):"email"===e.type?o.createElement("a",{href:"mailto:".concat(r)},r):o.createElement("div",null,r)}})};for(a.s();!(i=a.n()).done;)c()}catch(l){a.e(l)}finally{a.f()}return t}},ze={getColumns:function(e){return[(0,Pe.Z)(e),{Header:(0,b.S)("Sort:"),id:"actions",headerClassName:"wprm-admin-table-help-text",sortable:!1,width:70,Filter:function(){return o.createElement("div",null,(0,b.S)("Filter:"))},Cell:function(t){return o.createElement("div",{className:"wprm-admin-manage-actions"},o.createElement(v.Z,{type:"eye",title:(0,b.S)("View Revision"),onClick:function(){WPRM_Modal.open("recipe",{recipe:t.original.recipe_data,restoreRevision:!0,saveCallback:function(){return e.refreshData()}})}}),o.createElement(v.Z,{type:"trash",title:(0,b.S)("Delete Revision"),onClick:function(){confirm("".concat((0,b.S)("Are you sure you want to delete"),' "').concat(t.original.post_title,'"?'))&&h.Z.recipe.deleteRevision(t.original.id).then((function(){return e.refreshData()}))}}))}},{Header:(0,b.S)("Recipe ID"),id:"recipe_id",accessor:"post_parent",width:75,Filter:function(e){return o.createElement(Me.Z,e)}},{Header:(0,b.S)("Revision ID"),id:"id",accessor:"id",width:75,Filter:function(e){return o.createElement(Me.Z,e)}},{Header:(0,b.S)("Date"),id:"date",accessor:"post_date",width:150,Filter:function(e){return o.createElement(Me.Z,e)}},{Header:(0,b.S)("Name"),id:"name",accessor:"post_title",Filter:function(e){return o.createElement(Me.Z,e)}},{Header:(0,b.S)("Recipe Data Size"),id:"recipe_data",accessor:"recipe_data",sortable:!1,filterable:!1,width:150,Cell:function(e){var t=JSON.stringify(wprm_admin_modal.recipe).length,r=JSON.stringify(e.value).length;return o.createElement("div",null,Math.max(r-t,0).toLocaleString())}}]}},_e=r(5308);function Be(e){return function(e){if(Array.isArray(e))return Ge(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ge(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ge(e,t)}(e)||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.")}()}function Ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Ue={getColumns:function(e){var t=wprm_admin_modal.options.hasOwnProperty("".concat(e.props.options.id,"_link_nofollow"))?wprm_admin_modal.options["".concat(e.props.options.id,"_link_nofollow")]:wprm_admin_modal.options.term_link_nofollow,r=[];return"suitablefordiet"!==e.props.options.id&&r.push((0,Pe.Z)(e,"term_id")),r=[].concat(Be(r),[{Header:(0,b.S)("Sort:"),id:"actions",headerClassName:"wprm-admin-table-help-text",sortable:!1,width:"suitablefordiet"===e.props.options.id?65:100,Filter:function(){return o.createElement("div",null,(0,b.S)("Filter:"))},Cell:function(t){return o.createElement("div",{className:"wprm-admin-manage-actions"},"suitablefordiet"===e.props.options.id?o.createElement(v.Z,{type:"pencil",title:"".concat((0,b.S)("Rename")," ").concat(e.props.options.label.singular),onClick:function(){var r=prompt("".concat((0,b.S)("What do you want to be the new name for"),' "').concat(t.original.label,'"?'),t.original.label);r&&r.trim()&&h.Z.manage.renameTermLabel(e.props.options.id,t.original.term_id,r).then((function(){return e.refreshData()}))}}):o.createElement(o.Fragment,null,o.createElement(v.Z,{type:"pencil",title:"".concat((0,b.S)("Rename")," ").concat(e.props.options.label.singular),onClick:function(){var r=prompt("".concat((0,b.S)("What do you want to be the new name for"),' "').concat(t.original.name,'"?'),t.original.name);r&&r.trim()&&h.Z.manage.renameTerm(e.props.options.id,t.original.term_id,r).then((function(){return e.refreshData()}))}}),o.createElement(v.Z,{type:"merge",title:"".concat((0,b.S)("Merge into another")," ").concat(e.props.options.label.singular),onClick:function(){var r=prompt("".concat((0,b.S)("What is the ID of the term you want the merge"),' "').concat(t.original.name,'" ').concat((0,b.S)("into"),"?"));r&&r!=t.original.term_id&&r.trim()&&h.Z.manage.getTerm(e.props.options.id,r).then((function(n){n?confirm("".concat((0,b.S)("Are you sure you want to merge"),' "').concat(t.original.name,'" ').concat((0,b.S)("into"),' "').concat(n.name,'"?'))&&h.Z.manage.mergeTerm(e.props.options.id,t.original.term_id,r).then((function(){return e.refreshData()})):alert((0,b.S)("We could not find a term with that ID."))}))}}),o.createElement(v.Z,{type:"trash",title:"".concat((0,b.S)("Delete")," ").concat(e.props.options.label.singular),onClick:function(){confirm("".concat((0,b.S)("Are you sure you want to delete"),' "').concat(t.original.name,'"?'))&&h.Z.manage.deleteTerm(e.props.options.id,t.original.term_id).then((function(){return e.refreshData()}))}})))}},{Header:(0,b.S)("ID"),id:"id",accessor:"term_id",width:65,Filter:function(e){return o.createElement(Me.Z,e)}},{Header:"suitablefordiet"===e.props.options.id?(0,b.S)("Diet"):(0,b.S)("Name"),id:"name",accessor:"name",Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(e){return e.value?Te().decode(e.value):null}},{Header:(0,b.S)("Recipes"),id:"count",accessor:"count",filterable:!1,width:65}]),"suitablefordiet"===e.props.options.id&&r.push({Header:(0,b.S)("Label"),id:"label",accessor:"label",sortable:!1,filterable:!1,Cell:function(e){return e.value?Te().decode(e.value):null}}),"ingredient"===e.props.options.id&&wprm_admin.addons.premium&&r.push({Header:(0,b.S)("Shopping List Group"),id:"group",accessor:"group",width:200,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(t){return o.createElement("div",{className:"wprm-manage-ingredients-group-container"},o.createElement(v.Z,{type:"pencil",title:(0,b.S)("Change Group"),onClick:function(){var r=prompt("".concat((0,b.S)("What do you want to be the new group for"),' "').concat(t.original.name,'"?'),t.value);!1!==r&&h.Z.manage.updateTaxonomyMeta("ingredient",t.original.term_id,{group:r}).then((function(){return e.refreshData()}))}}),t.value?o.createElement("span",null,t.value):null)}}),"ingredient"!==e.props.options.id&&wprm_admin.addons.premium&&r.push({Header:(0,b.S)("Image"),id:"image_id",accessor:"image_id",width:110,sortable:!1,Filter:function(e){var t=e.filter,r=e.onChange;return o.createElement("select",{onChange:function(e){return r(e.target.value)},style:{width:"100%",fontSize:"1em"},value:t?t.value:"all"},o.createElement("option",{value:"all"},(0,b.S)("Show All")),o.createElement("option",{value:"yes"},(0,b.S)("Has Image")),o.createElement("option",{value:"no"},(0,b.S)("Does not have Image")))},Cell:function(t){var r=function(r){r.preventDefault(),_e.Z.selectImage((function(r){h.Z.manage.updateTaxonomyMeta(e.props.options.id,t.original.term_id,{image_id:r.id}).then((function(){return e.refreshData()}))}))};return o.createElement("div",{className:"wprm-manage-image-container"},t.value?o.createElement("div",{className:"wprm-manage-image-preview"},o.createElement(ke.Z,{content:(0,b.S)("Edit Image")},o.createElement("img",{src:t.original.image_url,onClick:r})),o.createElement(v.Z,{type:"trash",title:(0,b.S)("Remove Image"),onClick:function(){h.Z.manage.updateTaxonomyMeta(e.props.options.id,t.original.term_id,{image_id:0}).then((function(){return e.refreshData()}))}})):o.createElement(v.Z,{type:"photo",title:(0,b.S)("Add Image"),onClick:r}))}}),wprm_admin.addons.premium&&(window.hasOwnProperty("EAFL_Modal")&&r.push({Header:(0,b.S)("Easy Affiliate Links"),id:"eafl",accessor:"eafl",width:300,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(t){return o.createElement("div",{className:"wprm-manage-ingredients-eafl-container"},t.value?o.createElement(o.Fragment,null,o.createElement(v.Z,{type:"eafl-link",title:(0,b.S)("Edit Link"),onClick:function(){t.original.hasOwnProperty("eafl_details")?EAFL_Modal.open("edit",{link:t.original.eafl_details,saveCallback:function(){return e.refreshData()}}):alert((0,b.S)("An Affiliate Link with this ID cannot be found. Try deleting and adding it again."))}})," ",o.createElement(v.Z,{type:"eafl-unlink",title:(0,b.S)("Remove Link"),onClick:function(){confirm((0,b.S)("Are you sure you want to delete this link?"))&&h.Z.manage.updateTaxonomyMeta(e.props.options.id,t.original.term_id,{eafl:""}).then((function(){return e.refreshData()}))}}),o.createElement("div",{className:"wprm-manage-ingredients-eafl-details"},t.original.hasOwnProperty("eafl_details")?o.createElement(o.Fragment,null,o.createElement("div",null,"#",t.value," - ",t.original.eafl_details.name),o.createElement("div",null,o.createElement("a",{href:t.original.eafl_details.url,target:"_blank"},t.original.eafl_details.url))):o.createElement("div",null,"#",t.value," - ",(0,b.S)("n/a")))):o.createElement(v.Z,{type:"eafl-link",title:(0,b.S)("Set Affiliate Link"),onClick:function(){EAFL_Modal.open("insert",{insertCallback:function(r){h.Z.manage.updateTaxonomyMeta(e.props.options.id,t.original.term_id,{eafl:r.id}).then((function(){return e.refreshData()}))},selectedText:t.original.name})}}))}}),r.push({Header:(0,b.S)("Link"),id:"link",accessor:"link",width:300,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(t){return o.createElement("div",{className:"wprm-manage-ingredients-link-container"},o.createElement(v.Z,{type:"pencil",title:(0,b.S)("Change Link"),onClick:function(){var r=prompt("".concat((0,b.S)("What do you want to be the new link for"),' "').concat(t.original.name,'"?'),t.value);!1!==r&&(""===r||"http"===r.substring(0,4)||confirm('"'.concat(r,'" ').concat((0,b.S)("does not start with http:// or https:// as we would expect for a link. Are you sure you want to use this? Regular HTML code will not work here."))))&&h.Z.manage.updateTaxonomyMeta(e.props.options.id,t.original.term_id,{link:r}).then((function(){return e.refreshData()}))}}),t.value?o.createElement("a",{href:t.value,target:"_blank"},t.value):null)}},{Header:(0,b.S)("Link Nofollow"),id:"link_nofollow",accessor:"link_nofollow",width:250,Filter:function(e){var r=e.filter,n=e.onChange;return o.createElement("select",{onChange:function(e){return n(e.target.value)},style:{width:"100%",fontSize:"1em"},value:r?r.value:"all"},o.createElement("option",{value:"all"},(0,b.S)("Any Nofollow")),t.map((function(e,t){return o.createElement("option",{value:e.value,key:t},e.label)})))},Cell:function(r){return o.createElement("div",null,r.original.link?o.createElement("select",{onChange:function(t){h.Z.manage.updateTaxonomyMeta(e.props.options.id,r.original.term_id,{link_nofollow:t.target.value}).then((function(){return e.refreshData()}))},style:{width:"100%",fontSize:"1em"},value:r.value},t.map((function(e,t){return o.createElement("option",{value:e.value,key:t},e.label)}))):null)}})),"equipment"===e.props.options.id&&wprm_admin.addons.premium&&r.push({Header:(0,b.S)("Affiliate HTML"),id:"affiliate_html",accessor:"affiliate_html",width:500,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(t){return o.createElement("div",{className:"wprm-manage-equipment-affiliate-html-container"},o.createElement(v.Z,{type:"pencil",title:(0,b.S)("Change HTML"),onClick:function(){WPRM_Modal.open("input-fields",{header:(0,b.S)("Change Affiliate HTML"),fields:[{label:"HTML",type:"textarea",value:t.value}],insertCallback:function(r){var n=r.fields[0].value;h.Z.manage.updateTaxonomyMeta("equipment",t.original.term_id,{affiliate_html:n}).then((function(){return e.refreshData()}))}})}}),o.createElement("span",{className:"wprm-manage-equipment-affiliate-html"},t.value))}}),window.hasOwnProperty("wpupg_admin")&&(r.push({Header:(0,b.S)("Grid Link"),id:"wpupg_custom_link",accessor:"wpupg_custom_link",width:300,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(t){return o.createElement("div",{className:"wprm-manage-ingredients-link-container"},o.createElement(v.Z,{type:"pencil",title:(0,b.S)("Change Link"),onClick:function(){var r=prompt("".concat((0,b.S)("What do you want to be the new grid link for"),' "').concat(t.original.name,'"?'),t.value);!1!==r&&(""===r||"http"===r.substring(0,4)||confirm('"'.concat(r,'" ').concat((0,b.S)("does not start with http:// or https:// as we would expect for a link. Are you sure you want to use this? Regular HTML code will not work here."))))&&h.Z.manage.updateTaxonomyMeta(e.props.options.id,t.original.term_id,{wpupg_custom_link:r}).then((function(){return e.refreshData()}))}}),t.value?o.createElement("a",{href:t.value,target:"_blank"},t.value):null)}}),r.push({Header:(0,b.S)("Grid Image"),id:"wpupg_custom_image",accessor:"wpupg_custom_image",width:110,sortable:!1,Filter:function(e){var t=e.filter,r=e.onChange;return o.createElement("select",{onChange:function(e){return r(e.target.value)},style:{width:"100%",fontSize:"1em"},value:t?t.value:"all"},o.createElement("option",{value:"all"},(0,b.S)("Show All")),o.createElement("option",{value:"yes"},(0,b.S)("Has Image")),o.createElement("option",{value:"no"},(0,b.S)("Does not have Image")))},Cell:function(t){var r=function(r){r.preventDefault(),_e.Z.selectImage((function(r){h.Z.manage.updateTaxonomyMeta(e.props.options.id,t.original.term_id,{wpupg_custom_image:r.id}).then((function(){return e.refreshData()}))}))};return o.createElement("div",{className:"wprm-manage-image-container"},t.value?o.createElement("div",{className:"wprm-manage-image-preview"},o.createElement(ke.Z,{content:(0,b.S)("Edit Image")},o.createElement("img",{src:t.original.wpupg_custom_image_url,width:"80",onClick:r})),o.createElement(v.Z,{type:"trash",title:(0,b.S)("Remove Image"),onClick:function(){h.Z.manage.updateTaxonomyMeta(e.props.options.id,t.original.term_id,{wpupg_custom_image:0}).then((function(){return e.refreshData()}))}})):o.createElement(v.Z,{type:"photo",title:(0,b.S)("Add Image"),onClick:r}))}})),r}},We={getColumns:function(e){return[(0,Pe.Z)(e),{Header:(0,b.S)("Sort:"),id:"actions",headerClassName:"wprm-admin-table-help-text",sortable:!1,width:70,Filter:function(){return o.createElement("div",null,(0,b.S)("Filter:"))},Cell:function(t){return o.createElement("div",{className:"wprm-admin-manage-actions"},o.createElement(v.Z,{type:"restore",title:(0,b.S)("Restore Recipe"),onClick:function(){h.Z.recipe.updateStatus(t.original.id,"draft").then((function(){return e.refreshData()}))}}),o.createElement(v.Z,{type:"trash",title:(0,b.S)("Permanently Delete"),onClick:function(){confirm("".concat((0,b.S)("Are you sure you want to delete"),' "').concat(t.original.name,'"?'))&&h.Z.recipe.delete(t.original.id,!0).then((function(){return e.refreshData()}))}}))}},{Header:(0,b.S)("ID"),id:"id",accessor:"id",width:65,Filter:function(e){return o.createElement(Me.Z,e)}},{Header:(0,b.S)("Date"),id:"date",accessor:"date",width:150,Filter:function(e){return o.createElement(Me.Z,e)}},{Header:(0,b.S)("Name"),id:"name",accessor:"name",width:300,Filter:function(e){return o.createElement(Me.Z,e)}}]}};function qe(e){return(qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Fe={getColumns:function(e){return[(0,Pe.Z)(e),{Header:(0,b.S)("Sort:"),id:"actions",headerClassName:"wprm-admin-table-help-text",sortable:!1,width:40,Filter:function(){return o.createElement("div",null,(0,b.S)("Filter:"))},Cell:function(t){return o.createElement("div",{className:"wprm-admin-manage-actions"},o.createElement(v.Z,{type:"trash",title:(0,b.S)("Delete Action"),onClick:function(){confirm((0,b.S)("Are you sure you want to delete this action?"))&&h.Z.analytics.delete(t.original.id).then((function(){return e.refreshData()}))}}))}},{Header:(0,b.S)("Date"),id:"created_at",accessor:"created_at",width:150,Filter:function(e){return o.createElement(Me.Z,e)}},{Header:(0,b.S)("Action"),id:"type",accessor:"type",width:150,sortable:!1,Filter:function(e){return o.createElement(Me.Z,e)}},{Header:(0,b.S)("Action Details"),id:"meta",accessor:"meta",width:200,sortable:!1,filterable:!1,Cell:function(e){return o.createElement("div",null,"object"===qe(e.value)?Object.keys(e.value).map((function(t,r){return o.createElement("div",{key:r},o.createElement("strong",null,t,":")," ",e.value[t].toString())})):null)}},{Header:(0,b.S)("Recipe ID"),id:"recipe_id",accessor:"recipe_id",width:350,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(t){if(!t.value||"0"===t.value)return o.createElement("div",null);var r="".concat(t.value," - ").concat(t.original.recipe?t.original.recipe:(0,b.S)("n/a"));return o.createElement("div",null,t.original.recipe?o.createElement("a",{href:"#",onClick:function(r){r.preventDefault(),WPRM_Modal.open("recipe",{recipeId:t.value,saveCallback:function(){return e.refreshData()}})}},r):r)}},{Header:(0,b.S)("Parent Post ID"),id:"post_id",accessor:"post_id",width:350,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(e){if(!e.value||"0"===e.value)return o.createElement("div",null);var t="".concat(e.value," - ").concat(e.original.post?e.original.post:(0,b.S)("n/a"));return o.createElement("div",null,e.original.post_link?o.createElement("a",{href:Te().decode(e.original.post_link),target:"_blank"},t):t)}},{Header:(0,b.S)("User ID"),id:"user_id",accessor:"user_id",width:150,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(e){if(!e.value||"0"===e.value)return o.createElement("div",null);var t="".concat(e.value," - ").concat(e.original.user?e.original.user:(0,b.S)("n/a"));return o.createElement("div",null,e.original.user_link?o.createElement("a",{href:Te().decode(e.original.user_link),target:"_blank"},t):t)}},{Header:(0,b.S)("Visitor UID"),id:"visitor_id",accessor:"visitor_id",width:175,Filter:function(e){return o.createElement(Me.Z,e)}},{Header:(0,b.S)("Visitor Details"),id:"visitor",accessor:"visitor",width:200,sortable:!1,filterable:!1,Cell:function(e){return o.createElement("div",null,"object"===qe(e.value)?Object.keys(e.value).map((function(t,r){return o.createElement("div",{key:r},o.createElement("strong",null,t,":")," ",e.value[t].toString())})):null)}}]}},Ve={recipe:{parent:(0,b.S)("Recipes"),title:(0,b.S)("Overview"),id:"recipe",route:"recipe",label:{singular:(0,b.S)("Recipe"),plural:(0,b.S)("Recipes")},bulkEdit:{route:"recipe",type:"recipe"},createButton:function(e){WPRM_Modal.open("recipe",{saveCallback:function(){return e.refreshData()}})},selectedColumns:["seo","id","date","name","parent_post","rating"],columns:He}};wprm_admin_manage.revisions&&(Ve.revision={parent:(0,b.S)("Recipes"),id:"revision",route:"revision",label:{singular:(0,b.S)("Revision"),plural:(0,b.S)("Revisions")},bulkEdit:{route:"revision",type:"revision"},createButton:!1,selectedColumns:!1,columns:ze}),Ve.trash={parent:(0,b.S)("Recipes"),title:"".concat((0,b.S)("Trash")," (").concat(wprm_admin_manage.trash,")"),id:"trash",route:"trash",label:{singular:(0,b.S)("Recipe"),plural:(0,b.S)("Recipes")},bulkEdit:{route:"trash",type:"trash"},createButton:!1,selectedColumns:!1,columns:We},Ve.ingredient={parent:(0,b.S)("Recipe Fields"),id:"ingredient",route:"taxonomy",label:{singular:(0,b.S)("Ingredient"),plural:(0,b.S)("Ingredients")},bulkEdit:{route:"taxonomy",type:"ingredient"},createButton:function(e){var t=prompt((0,b.S)("What do you want to be the name of this new ingredient?"));t&&t.trim()&&h.Z.manage.createTerm("ingredient",t).then((function(t){t?e.refreshData():alert((0,b.S)("We were not able to create this ingredient. Make sure it does not exist yet."))}))},selectedColumns:!1,columns:Ue},Ve.equipment={parent:(0,b.S)("Recipe Fields"),id:"equipment",route:"taxonomy",label:{singular:(0,b.S)("Equipment"),plural:(0,b.S)("Equipment")},bulkEdit:{route:"taxonomy",type:"equipment"},createButton:function(e){var t=prompt((0,b.S)("What do you want to be the name of this new equipment?"));t&&t.trim()&&h.Z.manage.createTerm("equipment",t).then((function(t){t?e.refreshData():alert((0,b.S)("We were not able to create this equipment. Make sure it does not exist yet."))}))},selectedColumns:!1,columns:Ue},Object.keys(wprm_admin_manage.taxonomies).map((function(e){var t=wprm_admin_manage.taxonomies[e],r=e.substr(5);Ve["tag_"+r]="suitablefordiet"===r?{parent:(0,b.S)("Recipe Fields"),id:r,route:"taxonomy",label:{singular:t.singular_name,plural:t.name},bulkEdit:!1,createButton:!1,selectedColumns:["id","name","label","count"],columns:Ue}:{parent:(0,b.S)("Recipe Fields"),id:r,route:"taxonomy",label:{singular:t.singular_name,plural:t.name},bulkEdit:{route:"taxonomy",type:r},createButton:function(e){var t=prompt((0,b.S)("What do you want to be the name of this new term?"));t&&t.trim()&&h.Z.manage.createTerm(r,t).then((function(t){t?(e.refreshData(),wprm_admin_modal.categories[r].terms.push({term_id:t.id,name:t.name,count:0})):alert((0,b.S)("We were not able to create this term. Make sure it does not exist yet."))}))},selectedColumns:["id","name","count"],columns:Ue}})),Ve.taxonomies={required:"premium",parent:(0,b.S)("Your Custom Fields"),id:"taxonomies",label:{singular:(0,b.S)("Recipe Taxonomy"),plural:(0,b.S)("Recipe Taxonomies")}},Ve["custom-fields"]={required:"pro",parent:(0,b.S)("Your Custom Fields"),id:"custom-fields",label:{singular:(0,b.S)("Custom Field"),plural:(0,b.S)("Custom Fields")}},Ve.nutrition={required:"pro",parent:(0,b.S)("Your Custom Fields"),id:"nutrition_ingredient",label:{singular:(0,b.S)("Custom Nutrition Ingredient"),plural:(0,b.S)("Custom Nutrition")}},Ve.nutrients={required:"premium",parent:(0,b.S)("Your Custom Fields"),id:"nutrition_ingredient",label:{singular:(0,b.S)("Custom Nutrient"),plural:(0,b.S)("Custom Nutrients")}},Ve.rating={parent:(0,b.S)("Features"),id:"rating",route:"rating",label:{singular:(0,b.S)("Rating"),plural:(0,b.S)("Ratings")},bulkEdit:{route:"rating",type:"rating"},createButton:!1,selectedColumns:["date","rating","type","user_id","ip"],columns:je},Ve.collections={required:"elite",parent:(0,b.S)("Features"),id:"collections",label:{singular:(0,b.S)("Saved Collection"),plural:(0,b.S)("Saved Collections")}},Ve["user-collections"]={required:"elite",parent:(0,b.S)("Features"),id:"user-collections",label:{singular:(0,b.S)("User Collection"),plural:(0,b.S)("User Collections")}},Ve["recipe-submission"]={required:"elite",parent:(0,b.S)("Features"),title:(0,b.S)("Recipe Submissions"),id:"recipe-submission",label:{singular:(0,b.S)("Recipe Submission"),plural:(0,b.S)("Recipe Submissions")}},Ve.analytics={parent:(0,b.S)("Analytics"),title:(0,b.S)("Overview"),id:"analytics",route:"analytics",label:{singular:(0,b.S)("Action"),plural:(0,b.S)("Actions")},bulkEdit:{route:"analytics",type:"analytics"},createButton:!1,selectedColumns:["created_at","type","recipe_id","post_id","user_id"],columns:Fe};var Je=Ve;function Ye(e){return(Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ke(e,t){return(Ke=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $e(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=tt(e);if(t){var o=tt(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return et(this,r)}}function et(e,t){return!t||"object"!==Ye(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function tt(e){return(tt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var rt=WPRecipeMaker["wp-recipe-maker/dist/shared"].hooks,nt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ke(e,t)}(c,e);var t,r,n,i=$e(c);function c(){return Qe(this,c),i.apply(this,arguments)}return t=c,(r=[{key:"render",value:function(){var e=rt.applyFilters("datatables",Je);return o.createElement(ce.Z,{module:"Manage"},o.createElement("div",{id:"wprm-admin-manage-header"},o.createElement(g,{datatables:e}),o.createElement(T,null)),o.createElement("div",{id:"wprm-admin-manage-content"},o.createElement(a.AW,{path:"/:type?",render:function(t){var r=t.match,n="recipe";return r.params.type&&Object.keys(e).includes(r.params.type)&&(n=r.params.type),e.hasOwnProperty(n)?o.createElement(xe,{type:n,options:e[n]}):null}})))}}])&&Xe(t.prototype,r),n&&Xe(t,n),c}(o.Component);r.g._babelPolyfill||r(28059);var ot=document.getElementById("wprm-admin-manage");ot&&n.render(o.createElement(i.UT,{hashType:"noslash"},o.createElement(nt,null)),ot)},80416:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});r(26364),r(86632),r(61928),r(19701),r(54883),r(56908),r(10853),r(54130),r(33290),r(45007),r(68995);var n=r(89526);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=s(e);if(t){var o=s(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return l(this,r)}}function l(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?u(e):t}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(s,e);var t,r,o,l=c(s);function s(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=l.call(this,e)).debouncedTimer=!1;var r="";return e.filter&&e.filter.value&&(r=e.filter.value),t.state={value:r,passedValue:r},t.onChange=t.onChange.bind(u(t)),t.updateFilter=t.updateFilter.bind(u(t)),t}return t=s,(r=[{key:"onChange",value:function(e){var t=this;clearTimeout(this.debouncedTimer),e!==this.state.passedValue&&(this.debouncedTimer=setTimeout((function(){t.updateFilter(e)}),500)),this.setState({value:e})}},{key:"updateFilter",value:function(e){this.props.onChange(e),this.setState({passedValue:e})}},{key:"render",value:function(){var e=this;return n.createElement("input",{className:"wprm-admin-manage-text-filter",type:"text",value:this.state.value,onChange:function(t){return e.onChange(t.target.value)}})}}])&&i(t.prototype,r),o&&i(t,o),s}(n.Component)},94341:function(e,t,r){"use strict";var n=r(89526),o=r(52082);t.Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"id";return{Header:(0,o.S)("Bulk Edit"),id:"bulk_edit",className:"wprm-admin-table-checkbox-container",headerClassName:"wprm-admin-table-checkbox-container",sortable:!1,width:30,Filter:function(){return n.createElement("input",{type:"checkbox",checked:1===e.state.selectedAllRows,ref:function(t){t&&(t.indeterminate=2===e.state.selectedAllRows)},onChange:function(){return e.toggleSelectAll()}})},Cell:function(r){return n.createElement("input",{type:"checkbox",checked:!0===e.state.selectedRows[r.original[t]],onChange:function(){return e.toggleSelectRow(r.original[t])}})}}}},5308:function(e,t,r){"use strict";r(87191);var n=r(52082),o={selectImage:function(e){this.select("image",e)},selectVideo:function(e){this.select("video",e)},select:function(e,t){var r={title:(0,n.S)("Select Media"),button:{text:(0,n.S)("Select")},multiple:!1};"video"===e?(r.frame="video",r.state="video-details"):r.library={type:"image"};var o=wp.media(r);o.on("select",(function(){var e=o.state().get("selection").first().toJSON();t(e)})),o.on("update",(function(){var e=o.state().media.attachment;e&&t(e)})),o.open()}};t.Z=o},37673:function(e,t,r){"use strict";r.d(t,{Z:function(){return A}});r(55862);var n=r(46087),o=wprm_admin.endpoints.analytics,i={delete:function(e){return n.Z.call("".concat(o,"/").concat(e),"DELETE")}},a=wprm_admin.endpoints.notices,c={dismissNotice:function(e){var t={id:e};return n.Z.call(a,"DELETE",t)}},l=wprm_admin.endpoints.modal,u={parseIngredients:function(e){var t={ingredients:e};return n.Z.call("".concat(l,"/ingredient/parse"),"POST",t)}},s=(r(10853),r(35054),wprm_admin.endpoints.manage),p=wprm_admin.endpoints.rating,d=wprm_admin.endpoints.taxonomy,f=!1,m=!1,g={getData:function(e){return f?(m=e,new Promise((function(e){return e(!1)}))):this.getDataDebounced(e)},getDataDebounced:function(e){var t=this;return f=!0,n.Z.call("".concat(s,"/").concat(e.route),"POST",e).then((function(e){if(m){var r=m;return m=!1,t.getDataDebounced(r)}return f=!1,e}))},deleteUserRatings:function(e){return n.Z.call("".concat(p,"/recipe/").concat(e),"DELETE")},getTerm:function(e,t){return n.Z.call("".concat(d).concat(e,"/").concat(t))},createTerm:function(e,t){var r={name:t};return n.Z.call("".concat(d).concat(e),"POST",r)},deleteTerm:function(e,t){return n.Z.call("".concat(d).concat(e,"/").concat(t,"?force=true"),"DELETE")},renameTerm:function(e,t,r){var o={name:r};return n.Z.call("".concat(d).concat(e,"/").concat(t),"POST",o)},renameTermLabel:function(e,t,r){var o={type:e,id:t,label:r};return n.Z.call("".concat(s,"/taxonomy/label"),"POST",o)},mergeTerm:function(e,t,r){var o={type:e,oldId:t,newId:r};return n.Z.call("".concat(s,"/taxonomy/merge"),"POST",o)},updateTaxonomyMeta:function(e,t,r){var o={};return o[e]=r,n.Z.call("".concat(d).concat(e,"/").concat(t),"POST",o)},bulkEdit:function(e,t,r,o){var i={type:t,ids:r,action:o};return n.Z.call("".concat(s,"/").concat(e,"/bulk"),"POST",i)}},h=wprm_admin.endpoints.modal,v=!1,b=!1,y={getSuggestions:function(e){return v?(b=e,new Promise((function(e){return e(!1)}))):this.getSuggestionsDebounced(e)},getSuggestionsDebounced:function(e){var t=this;return v=!0,n.Z.call("".concat(h,"/suggest"),"POST",e).then((function(e){if(b){var r=b;return b=!1,t.getSuggestionsDebounced(r)}return v=!1,e}))}},w=wprm_admin.endpoints.rating,I={update:function(e){var t={rating:e};return n.Z.call("".concat(w),"POST",t)},delete:function(e){return n.Z.call("".concat(w,"/").concat(e),"DELETE")}},S=wprm_admin.endpoints.recipe,E=wprm_admin.endpoints.manage,x={get:function(e){return n.Z.call("".concat(S,"/").concat(e))},save:function(e){var t={recipe:e},r=S,o="POST",i=!!e.id&&parseInt(e.id);return i&&(r+="/".concat(i),o="PUT"),n.Z.call(r,o,t)},updateStatus:function(e,t){var r={status:t};return n.Z.call("".concat(S,"/").concat(e),"PUT",r)},delete:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r="".concat(S,"/").concat(e);return t&&(r+="?force=true"),n.Z.call(r,"DELETE")},deleteRevision:function(e){return n.Z.call("".concat(E,"/revision/").concat(e),"DELETE")}},D=wprm_admin.endpoints.setting,T={save:function(e){var t={settings:e};return n.Z.call(D,"POST",t)}},M=(r(61078),r(6208),wprm_admin.endpoints.template),P=[],N={},L=null,C={previewShortcode:function(e,t,r){var n=this;return N[e]=t,clearTimeout(L),L=setTimeout((function(){n.previewShortcodes(r)}),500),new Promise((function(e){return P.push(e)}))},previewShortcodes:function(e){var t=P,r=N;P=[],N={};var n={recipeId:e,shortcodes:r};fetch("".concat(M,"/preview"),{method:"POST",headers:{"X-WP-Nonce":wprm_admin.api_nonce,Accept:"application/json","Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(n)}).then((function(e){return e.json().then((function(r){var n=e.ok?r.preview:{};t.forEach((function(e){return e(n)}))}))}))},searchRecipes:function(e){return fetch(wprm_admin.ajax_url,{method:"POST",credentials:"same-origin",body:"action=wprm_search_recipes&security="+wprm_admin.nonce+"&search="+encodeURIComponent(e),headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded; charset=utf-8"}}).then((function(e){return e.json()}))},save:function(e){var t={template:e};return n.Z.call(M,"POST",t)},delete:function(e){var t={slug:e};return n.Z.call(M,"DELETE",t)}},j=wprm_admin.endpoints.utilities,k={saveImage:function(e){var t={url:e};return n.Z.call("".concat(j,"/save_image"),"POST",t)}},A=WPRecipeMaker["wp-recipe-maker/dist/shared"].hooks.applyFilters("api",{analytics:i,general:c,import:u,manage:g,modal:y,rating:I,recipe:x,settings:T,template:C,utilities:k})},46087:function(e,t,r){"use strict";r(26364),r(86632),r(61928),r(55862),r(31807),r(54883),r(10853),r(35054),r(45007),r(68995);function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.Z={call:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=wprm_admin.api_nonce;"object"===n(window.wpApiSettings)&&window.wpApiSettings.nonce&&(o=window.wpApiSettings.nonce);var i={method:t,headers:{"X-WP-Nonce":o,Accept:"application/json","Content-Type":"application/json","Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:0},credentials:"same-origin"};return"PUT"!==t&&"DELETE"!==t||(i.method="POST",i.headers["X-HTTP-Method-Override"]=t),r&&(i.body=JSON.stringify(r)),fetch(e,i).then((function(t){if(t.ok)return t.json();console.log(e,i),console.log(t);var r="Something went wrong. Using a firewall like Cloudflare or Sucuri? Try whitelisting your IP. If that doesn't work, please contact support@bootstrapped.ventures with the following details:",n="".concat(t.url," ").concat(t.redirected?"(redirected)":"","- ").concat(t.status," - ").concat(t.statusText);try{t.text().then((function(e){console.log(e),-1!==e.indexOf("rest_cookie_invalid_nonce")?alert("You got logged out or your session expired. Please try logging out of WordPress and back in again."):alert("".concat(r,"\r\n\r\n").concat(n,"\r\n\r\n").concat(e))}))}catch(o){console.log(o),alert("".concat(r,"\r\n\r\n").concat(n,"\r\n\r\n").concat(o))}return!1}))}}},48618:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});r(26364),r(86632),r(61928),r(54883),r(56908),r(10853),r(54130),r(33290),r(45007),r(68995);var n=r(89526);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=u(e);if(t){var o=u(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return l(this,r)}}function l(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(u,e);var t,r,o,l=c(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=l.call(this,e)).state={hasError:!1,error:!1,info:!1},t}return t=u,(r=[{key:"componentDidCatch",value:function(e,t){this.setState({hasError:!0,error:e,info:t})}},{key:"render",value:function(){return n.createElement(n.Fragment,null,this.state.hasError?n.createElement("div",{className:"wprm-error-boundary"},n.createElement("p",null,n.createElement("strong",null,"Something went wrong"),n.createElement("br",null),"Please contact ",n.createElement("a",{href:"mailto:support@bootstrapped.ventures"},"support@bootstrapped.ventures")," and send along the following information:"),n.createElement("pre",null,this.props.module?"Module: ".concat(this.props.module,"\n"):null,this.state.error?"Error: ".concat(this.state.error.toString(),"\n"):null,this.state.info?"Stack: ".concat(this.state.info.componentStack):null)):this.props.children)}}])&&i(t.prototype,r),o&&i(t,o),u}(n.Component)},62834:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(89526),o=r(49092),i=r(95075),a={adjustable:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PGxpbmUgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjEyLjUiIHkxPSIxMi41IiB4Mj0iMTUuNSIgeTI9IjEyLjUiPjwvbGluZT4gPG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am9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTE0LjUsMTUuNWgtMTMgYy0wLjU1MiwwLTEtMC40NDgtMS0xdi0xM2MwLTAuNTUyLDAuNDQ4LTEsMS0xaDEzYzAuNTUyLDAsMSwwLjQ0OCwxLDF2MTNDMTUuNSwxNS4wNTIsMTUuMDUyLDE1LjUsMTQuNSwxNS41eiIvPjwvZz48L3N2Zz4="},c=function(e){var t=!!a.hasOwnProperty(e.type)&&a[e.type];if(!t)return null;var r=e.title,c=e.className?"wprm-admin-icon ".concat(e.className):"wprm-admin-icon",l=!!e.hasOwnProperty("hidden")&&e.hidden;return l&&(r="",c+=" wprm-admin-icon-hidden"),n.createElement(i.Z,{content:r},n.createElement("span",{className:c,onClick:l?function(){}:e.onClick},n.createElement(o.Z,{src:t})))}},95075:function(e,t,r){"use strict";r(26364),r(19701),r(61078),r(80238),r(12938),r(80044),r(6208);var n=r(89526),o=r(20877);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.Z=function(e){if(!e.content)return e.children;var t=e.hasOwnProperty("style")?e.style:{};return n.createElement(o.Tooltip,{html:n.createElement("div",{dangerouslySetInnerHTML:{__html:e.content}}),popperOptions:{modifiers:{addZIndex:{enabled:!0,order:810,fn:function(e){return a(a({},e),{},{styles:a(a({},e.styles),{},{zIndex:1e5})})}},preventOverflow:{boundariesElement:"window"}}},style:t},e.children)}},52082:function(e,t,r){"use strict";r.d(t,{S:function(){return c}});r(26364),r(19701),r(61078),r(80238),r(12938),r(80044),r(6208);function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a={};function c(e){return a.hasOwnProperty(e)?a[e]:e}window.hasOwnProperty("wprm_public")&&wprm_public.hasOwnProperty("translations")&&(a=o(o({},a),wprm_public.translations)),window.hasOwnProperty("wprm_admin")&&wprm_admin.hasOwnProperty("translations")&&(a=o(o({},a),wprm_admin.translations))},45177:function(e,t,r){"use strict";function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}r.d(t,{Z:function(){return n}})},64403:function(e,t){var r;
2
  /*!
3
  Copyright (c) 2017 Jed Watson.
4
  Licensed under the MIT License (MIT), see
1
+ var WPRecipeMaker;(WPRecipeMaker=void 0===WPRecipeMaker?{}:WPRecipeMaker)["wp-recipe-maker/dist/admin-manage"]=(self.webpackChunkWPRecipeMaker_name_=self.webpackChunkWPRecipeMaker_name_||[]).push([[624],{5178:function(e,t,r){"use strict";r.r(t);var n=r(73961),o=r(89526),i=r(565),a=(r(26364),r(86632),r(61928),r(18183),r(54883),r(56908),r(80044),r(10853),r(54130),r(39275),r(33290),r(19985),r(45007),r(75668),r(68995),r(59934));r(73214),r(54994),r(86125);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var o=f(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return d(this,r)}}function d(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(c,e);var t,r,n,a=p(c);function c(){return l(this,c),a.apply(this,arguments)}return t=c,(r=[{key:"render",value:function(){var e=this,t=this.props.datatables,r={};return Object.keys(t).map((function(n){var o=t[n].parent,i="recipe"===n?"/":"/".concat(n);o&&!r.hasOwnProperty(o)&&(r[o]={name:o,active:!1,link:i}),i===e.props.location.pathname&&(r[o].active=!0)})),o.createElement(o.Fragment,null,o.createElement("div",{className:"wprm-admin-manage-parent-menu"},Object.keys(r).map((function(e,t){var n=r[e];return o.createElement(i.OL,{to:n.link,className:"wprm-admin-manage-menu-item".concat(n.active?" wprm-admin-manage-menu-item-active":""),key:t,exact:!0},n.name)}))),o.createElement("div",{className:"wprm-admin-manage-child-menu"},Object.keys(t).map((function(e,n){var a=t[e],c=a.parent,l="recipe"===e?"/":"/".concat(e),u=!0;if(!a.hasOwnProperty("required")||wprm_admin.addons.hasOwnProperty(a.required)&&!0===wprm_admin.addons[a.required]||(u=!1),r.hasOwnProperty(c)&&r[c].active){var s=a.hasOwnProperty("title")?a.title:a.label.plural;return u||(s+="*"),o.createElement(i.OL,{to:l,className:"wprm-admin-manage-menu-item".concat(u?"":" wprm-admin-manage-menu-item-requirement"),activeClassName:"wprm-admin-manage-menu-item-active",key:n,exact:!0},s)}return null}))))}}])&&u(t.prototype,r),n&&u(t,n),c}(o.Component),g=(0,a.EN)(m),h=r(37673),v=r(62834),b=r(52082);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=D(e);if(t){var o=D(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return x(this,r)}}function x(e,t){return!t||"object"!==y(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function D(e){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}(a,e);var t,r,n,i=E(a);function a(){return w(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"render",value:function(){var e=this;return wprm_admin_modal.notices&&wprm_admin_modal.notices.length?o.createElement("div",{className:"wprm-admin-manage-notices"},wprm_admin_modal.notices.map((function(t,r){return t.dismissed?null:o.createElement("div",{className:"wprm-admin-notice",key:r},o.createElement("div",{className:"wprm-admin-notice-content"},t.title?o.createElement("div",{className:"wprm-admin-notice-title"},t.title):null,o.createElement("div",{className:"wprm-admin-notice-text",dangerouslySetInnerHTML:{__html:t.text}})),o.createElement("div",{className:"wprm-admin-notice-dismiss"},o.createElement(v.Z,{title:(0,b.S)("Remove Notice"),type:"close",onClick:function(){h.Z.general.dismissNotice(t.id),t.dismissed=!0,e.forceUpdate()}})))}))):null}}])&&I(t.prototype,r),n&&I(t,n),a}(o.Component),M=(r(55862),r(19701),r(61078),r(4845),r(18821),r(80238),r(12938),r(19457),r(6208),r(64403)),P=r.n(M),N=r(79370),L=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function C(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var j={get:function(e,t,r){if(!t)return e;var n=A(t),o=void 0;try{o=n.reduce((function(e,t){return e[t]}),e)}catch(i){}return void 0!==o?o:r},set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],r=arguments[2],n=A(t),o=void 0,i=e;for(;(o=n.shift())&&n.length;)i[o]||(i[o]={}),i=i[o];return i[o]=r,e},takeRight:function(e,t){var r=t>e.length?0:e.length-t;return e.slice(r)},last:function(e){return e[e.length-1]},orderBy:function(e,t,r,n){return e.sort((function(e,o){for(var i=0;i<t.length;i+=1){var a=t[i],c=!1===r[i]||"desc"===r[i],l=a(e,o);if(l)return c?-l:l}return r[0]?e[n]-o[n]:o[n]-e[n]}))},range:function(e){for(var t=[],r=0;r<e;r+=1)t.push(e);return t},remove:function(e,t){return e.filter((function(r,n){return!!t(r)&&(e.splice(n,1),!0)}))},clone:function(e){try{return JSON.parse(JSON.stringify(e,(function(e,t){return"function"==typeof t?t.toString():t})))}catch(t){return e}},getFirstDefined:function(){for(var e=0;e<arguments.length;e+=1)if(void 0!==(arguments.length<=e?void 0:arguments[e]))return arguments.length<=e?void 0:arguments[e]},sum:function(e){return e.reduce((function(e,t){return e+t}),0)},makeTemplateComponent:function(e,t){if(!t)throw new Error("No displayName found for template component:",e);var r=function(t){var r=t.children,n=t.className,i=C(t,["children","className"]);return o.createElement("div",L({className:P()(e,n)},i),r)};return r.displayName=t,r},groupBy:function(e,t){return e.reduce((function(e,r,n){var o="function"==typeof t?t(r,n):r[t];return e[o]=k(e[o])?e[o]:[],e[o].push(r),e}),{})},isArray:k,splitProps:function(e){var t=e.className,r=e.style,n=C(e,["className","style"]);return{className:t,style:r,rest:n||{}}},compactObject:function(e){var t={};e&&Object.keys(e).map((function(r){return Object.prototype.hasOwnProperty.call(e,r)&&void 0!==e[r]&&void 0!==e[r]&&(t[r]=e[r]),!0}));return t},isSortingDesc:function(e){return!("desc"!==e.sort&&!0!==e.desc&&!1!==e.asc)},normalizeComponent:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;if(N.isElement(e)||"string"==typeof e)return e;if(N.isValidElementType(e))return o.createElement(e,t);return r},asPx:function(e){return e=Number(e),Number.isNaN(e)?null:e+"px"}};function k(e){return Array.isArray(e)}function A(e){return O(e).join(".").replace(/\[/g,".").replace(/\]/g,"").split(".")}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(k(e))for(var r=0;r<e.length;r+=1)O(e[r],t);else t.push(e);return t}var R=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var Z=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(l){o=!0,i=l}finally{try{!n&&c.return&&c.return()}finally{if(o)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},H=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},z=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}function G(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var W=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};var F=function(e){return o.createElement("button",q({type:"button"},e,{className:"-btn"}),e.children)},V=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.getSafePage=r.getSafePage.bind(r),r.changePage=r.changePage.bind(r),r.applyPage=r.applyPage.bind(r),r.state={page:e.page},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),W(t,[{key:"componentDidUpdate",value:function(e,t){e.page!==this.props.page&&t.page!==this.state.page&&this.setState({page:this.props.page})}},{key:"getSafePage",value:function(e){return Number.isNaN(e)&&(e=this.props.page),Math.min(Math.max(e,0),this.props.pages-1)}},{key:"changePage",value:function(e){e=this.getSafePage(e),this.setState({page:e}),this.props.page!==e&&this.props.onPageChange(e)}},{key:"applyPage",value:function(e){e&&e.preventDefault();var t=this.state.page;this.changePage(""===t?this.props.page:t)}},{key:"getPageJumpProperties",value:function(){var e=this;return{onKeyPress:function(t){13!==t.which&&13!==t.keyCode||e.applyPage()},onBlur:this.applyPage,value:""===this.state.page?"":this.state.page+1,onChange:function(t){var r=t.target.value,n=r-1;if(""===r)return e.setState({page:r});e.setState({page:e.getSafePage(n)})},inputType:""===this.state.page?"text":"number",pageJumpText:this.props.pageJumpText}}},{key:"render",value:function(){var e=this,t=this.props,r=t.pages,n=t.page,i=t.showPageSizeOptions,a=t.pageSizeOptions,c=t.pageSize,l=t.showPageJump,u=t.canPrevious,s=t.canNext,p=t.onPageSizeChange,d=t.className,f=t.PreviousComponent,m=t.NextComponent,g=t.renderPageJump,h=t.renderCurrentPage,v=t.renderTotalPagesCount,b=t.renderPageSizeOptions;return o.createElement("div",{className:P()(d,"-pagination"),style:this.props.style},o.createElement("div",{className:"-previous"},o.createElement(f,{onClick:function(){u&&e.changePage(n-1)},disabled:!u},this.props.previousText)),o.createElement("div",{className:"-center"},o.createElement("span",{className:"-pageInfo"},this.props.pageText," ",l?g(this.getPageJumpProperties()):h(n)," ",this.props.ofText," ",v(r)),i&&b({pageSize:c,rowsSelectorText:this.props.rowsSelectorText,pageSizeOptions:a,onPageSizeChange:p,rowsText:this.props.rowsText})),o.createElement("div",{className:"-next"},o.createElement(m,{onClick:function(){s&&e.changePage(n+1)},disabled:!s},this.props.nextText)))}}]),t}(o.Component);V.defaultProps={PreviousComponent:F,NextComponent:F,renderPageJump:function(e){var t=e.onChange,r=e.value,n=e.onBlur,i=e.onKeyPress,a=e.inputType,c=e.pageJumpText;return o.createElement("div",{className:"-pageJump"},o.createElement("input",{"aria-label":c,type:a,onChange:t,value:r,onBlur:n,onKeyPress:i}))},renderCurrentPage:function(e){return o.createElement("span",{className:"-currentPage"},e+1)},renderTotalPagesCount:function(e){return o.createElement("span",{className:"-totalPages"},e||1)},renderPageSizeOptions:function(e){var t=e.pageSize,r=e.pageSizeOptions,n=e.rowsSelectorText,i=e.onPageSizeChange,a=e.rowsText;return o.createElement("span",{className:"select-wrap -pageSizeOptions"},o.createElement("select",{"aria-label":n,onChange:function(e){return i(Number(e.target.value))},value:t},r.map((function(e,t){return o.createElement("option",{key:t,value:e},e+" "+a)}))))}};var J=V,Y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function Q(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var X=function(){return{}},K={data:[],resolveData:function(e){return e},loading:!1,showPagination:!0,showPaginationTop:!1,showPaginationBottom:!0,showPageSizeOptions:!0,pageSizeOptions:[5,10,20,25,50,100],defaultPage:0,defaultPageSize:20,showPageJump:!0,collapseOnSortingChange:!0,collapseOnPageChange:!0,collapseOnDataChange:!0,freezeWhenExpanded:!1,sortable:!0,multiSort:!0,resizable:!0,filterable:!1,defaultSortDesc:!1,defaultSorted:[],defaultFiltered:[],defaultResized:[],defaultExpanded:{},defaultFilterMethod:function(e,t,r){var n=e.pivotId||e.id;return void 0===t[n]||String(t[n]).startsWith(e.value)},defaultSortMethod:function(e,t,r){return t=null==t?"":t,(e="string"==typeof(e=null==e?"":e)?e.toLowerCase():e)>(t="string"==typeof t?t.toLowerCase():t)?1:e<t?-1:0},onPageChange:void 0,onPageSizeChange:void 0,onSortedChange:void 0,onFilteredChange:void 0,onResizedChange:void 0,onExpandedChange:void 0,pivotBy:void 0,pivotValKey:"_pivotVal",pivotIDKey:"_pivotID",subRowsKey:"_subRows",aggregatedKey:"_aggregated",nestingLevelKey:"_nestingLevel",originalKey:"_original",indexKey:"_index",groupedByPivotKey:"_groupedByPivot",onFetchData:function(){return null},className:"",style:{},getProps:X,getTableProps:X,getTheadGroupProps:X,getTheadGroupTrProps:X,getTheadGroupThProps:X,getTheadProps:X,getTheadTrProps:X,getTheadThProps:X,getTheadFilterProps:X,getTheadFilterTrProps:X,getTheadFilterThProps:X,getTbodyProps:X,getTrGroupProps:X,getTrProps:X,getTdProps:X,getTfootProps:X,getTfootTrProps:X,getTfootTdProps:X,getPaginationProps:X,getLoadingProps:X,getNoDataProps:X,getResizerProps:X,column:{Cell:void 0,Header:void 0,Footer:void 0,Aggregated:void 0,Pivot:void 0,PivotValue:void 0,Expander:void 0,Filter:void 0,Placeholder:void 0,sortable:void 0,resizable:void 0,filterable:void 0,show:!0,minWidth:100,minResizeWidth:11,className:"",style:{},getProps:X,aggregate:void 0,headerClassName:"",headerStyle:{},getHeaderProps:X,footerClassName:"",footerStyle:{},getFooterProps:X,filterMethod:void 0,filterAll:!1,sortMethod:void 0},expanderDefaults:{sortable:!1,resizable:!1,filterable:!1,width:35},pivotDefaults:{},previousText:"Previous",nextText:"Next",loadingText:"Loading...",noDataText:"No rows found",pageText:"Page",ofText:"of",rowsText:"rows",pageJumpText:"jump to page",rowsSelectorText:"rows per page",TableComponent:function(e){var t=e.children,r=e.className,n=Q(e,["children","className"]);return o.createElement("div",Y({className:P()("rt-table",r),role:"grid"},n),t)},TheadComponent:j.makeTemplateComponent("rt-thead","Thead"),TbodyComponent:j.makeTemplateComponent("rt-tbody","Tbody"),TrGroupComponent:function(e){var t=e.children,r=e.className,n=Q(e,["children","className"]);return o.createElement("div",Y({className:P()("rt-tr-group",r),role:"rowgroup"},n),t)},TrComponent:function(e){var t=e.children,r=e.className,n=Q(e,["children","className"]);return o.createElement("div",Y({className:P()("rt-tr",r),role:"row"},n),t)},ThComponent:function(e){var t=e.toggleSort,r=e.className,n=e.children,i=Q(e,["toggleSort","className","children"]);return o.createElement("div",Y({className:P()("rt-th",r),onClick:function(e){return t&&t(e)},role:"columnheader",tabIndex:"-1"},i),n)},TdComponent:function(e){e.toggleSort;var t=e.className,r=e.children,n=Q(e,["toggleSort","className","children"]);return o.createElement("div",Y({className:P()("rt-td",t),role:"gridcell"},n),r)},TfootComponent:j.makeTemplateComponent("rt-tfoot","Tfoot"),FilterComponent:function(e){var t=e.filter,r=e.onChange,n=e.column;return o.createElement("input",{type:"text",style:{width:"100%"},placeholder:n.Placeholder,value:t?t.value:"",onChange:function(e){return r(e.target.value)}})},ExpanderComponent:function(e){var t=e.isExpanded;return o.createElement("div",{className:P()("rt-expander",t&&"-open")},"•")},PivotValueComponent:function(e){var t=e.subRows,r=e.value;return o.createElement("span",null,r," ",t&&"("+t.length+")")},AggregatedComponent:function(e){var t=e.subRows,r=e.column,n=t.filter((function(e){return void 0!==e[r.id]})).map((function(e,n){return o.createElement("span",{key:n},e[r.id],n<t.length-1?", ":"")}));return o.createElement("span",null,n)},PivotComponent:void 0,PaginationComponent:J,PreviousComponent:void 0,NextComponent:void 0,LoadingComponent:function(e){var t=e.className,r=e.loading,n=e.loadingText,i=Q(e,["className","loading","loadingText"]);return o.createElement("div",Y({className:P()("-loading",{"-active":r},t)},i),o.createElement("div",{className:"-loading-inner"},n))},NoDataComponent:j.makeTemplateComponent("rt-noData","NoData"),ResizerComponent:j.makeTemplateComponent("rt-resizer","Resizer"),PadRowComponent:function(){return o.createElement("span",null," ")}},$=r(2652),ee=r.n($),te={data:ee().any,loading:ee().bool,showPagination:ee().bool,showPaginationTop:ee().bool,showPaginationBottom:ee().bool,showPageSizeOptions:ee().bool,pageSizeOptions:ee().array,defaultPageSize:ee().number,showPageJump:ee().bool,collapseOnSortingChange:ee().bool,collapseOnPageChange:ee().bool,collapseOnDataChange:ee().bool,freezeWhenExpanded:ee().bool,sortable:ee().bool,resizable:ee().bool,filterable:ee().bool,defaultSortDesc:ee().bool,defaultSorted:ee().array,defaultFiltered:ee().array,defaultResized:ee().array,defaultExpanded:ee().object,defaultFilterMethod:ee().func,defaultSortMethod:ee().func,onPageChange:ee().func,onPageSizeChange:ee().func,onSortedChange:ee().func,onFilteredChange:ee().func,onResizedChange:ee().func,onExpandedChange:ee().func,pivotBy:ee().array,pivotValKey:ee().string,pivotIDKey:ee().string,subRowsKey:ee().string,aggregatedKey:ee().string,nestingLevelKey:ee().string,originalKey:ee().string,indexKey:ee().string,groupedByPivotKey:ee().string,onFetchData:ee().func,className:ee().string,style:ee().object,getProps:ee().func,getTableProps:ee().func,getTheadGroupProps:ee().func,getTheadGroupTrProps:ee().func,getTheadGroupThProps:ee().func,getTheadProps:ee().func,getTheadTrProps:ee().func,getTheadThProps:ee().func,getTheadFilterProps:ee().func,getTheadFilterTrProps:ee().func,getTheadFilterThProps:ee().func,getTbodyProps:ee().func,getTrGroupProps:ee().func,getTrProps:ee().func,getTdProps:ee().func,getTfootProps:ee().func,getTfootTrProps:ee().func,getTfootTdProps:ee().func,getPaginationProps:ee().func,getLoadingProps:ee().func,getNoDataProps:ee().func,getResizerProps:ee().func,columns:ee().arrayOf(ee().shape({Cell:ee().oneOfType([ee().element,ee().string,ee().elementType]),Header:ee().oneOfType([ee().element,ee().string,ee().elementType]),Footer:ee().oneOfType([ee().element,ee().string,ee().elementType]),Aggregated:ee().oneOfType([ee().element,ee().string,ee().elementType]),Pivot:ee().oneOfType([ee().element,ee().string,ee().elementType]),PivotValue:ee().oneOfType([ee().element,ee().string,ee().elementType]),Expander:ee().oneOfType([ee().element,ee().string,ee().elementType]),Filter:ee().oneOfType([ee().element,ee().elementType]),sortable:ee().bool,resizable:ee().bool,filterable:ee().bool,show:ee().bool,minWidth:ee().number,minResizeWidth:ee().number,className:ee().string,style:ee().object,getProps:ee().func,aggregate:ee().func,headerClassName:ee().string,headerStyle:ee().object,getHeaderProps:ee().func,footerClassName:ee().string,footerStyle:ee().object,getFooterProps:ee().func,filterMethod:ee().func,filterAll:ee().bool,sortMethod:ee().func})),expanderDefaults:ee().shape({sortable:ee().bool,resizable:ee().bool,filterable:ee().bool,width:ee().number}),pivotDefaults:ee().object,previousText:ee().node,nextText:ee().node,loadingText:ee().node,noDataText:ee().node,pageText:ee().node,ofText:ee().node,rowsText:ee().node,pageJumpText:ee().node,rowsSelectorText:ee().node,TableComponent:ee().elementType,TheadComponent:ee().elementType,TbodyComponent:ee().elementType,TrGroupComponent:ee().elementType,TrComponent:ee().elementType,ThComponent:ee().elementType,TdComponent:ee().elementType,TfootComponent:ee().elementType,FilterComponent:ee().elementType,ExpanderComponent:ee().elementType,PivotValueComponent:ee().elementType,AggregatedComponent:ee().elementType,PivotComponent:ee().elementType,PaginationComponent:ee().elementType,PreviousComponent:ee().elementType,NextComponent:ee().elementType,LoadingComponent:ee().elementType,NoDataComponent:ee().elementType,ResizerComponent:ee().elementType,PadRowComponent:ee().elementType},re=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(l){o=!0,i=l}finally{try{!n&&c.return&&c.return()}finally{if(o)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},ne=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oe=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var ie=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.getResolvedState=r.getResolvedState.bind(r),r.getDataModel=r.getDataModel.bind(r),r.getSortedData=r.getSortedData.bind(r),r.fireFetchData=r.fireFetchData.bind(r),r.getPropOrState=r.getPropOrState.bind(r),r.getStateOrProp=r.getStateOrProp.bind(r),r.filterData=r.filterData.bind(r),r.sortData=r.sortData.bind(r),r.getMinRows=r.getMinRows.bind(r),r.onPageChange=r.onPageChange.bind(r),r.onPageSizeChange=r.onPageSizeChange.bind(r),r.sortColumn=r.sortColumn.bind(r),r.filterColumn=r.filterColumn.bind(r),r.resizeColumnStart=r.resizeColumnStart.bind(r),r.resizeColumnEnd=r.resizeColumnEnd.bind(r),r.resizeColumnMoving=r.resizeColumnMoving.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),oe(t,[{key:"render",value:function(){var e=this,t=this.getResolvedState(),r=t.children,n=t.className,i=t.style,a=t.getProps,c=t.getTableProps,l=t.getTheadGroupProps,u=t.getTheadGroupTrProps,s=t.getTheadGroupThProps,p=t.getTheadProps,d=t.getTheadTrProps,f=t.getTheadThProps,m=t.getTheadFilterProps,g=t.getTheadFilterTrProps,h=t.getTheadFilterThProps,v=t.getTbodyProps,b=t.getTrGroupProps,y=t.getTrProps,w=t.getTdProps,I=t.getTfootProps,S=t.getTfootTrProps,E=t.getTfootTdProps,x=t.getPaginationProps,D=t.getLoadingProps,T=t.getNoDataProps,M=t.getResizerProps,N=t.showPagination,L=t.showPaginationTop,C=t.showPaginationBottom,k=t.manual,A=t.loadingText,O=t.noDataText,R=t.sortable,Z=t.multiSort,H=t.resizable,z=t.filterable,_=t.pivotIDKey,B=t.pivotValKey,G=t.pivotBy,U=t.subRowsKey,W=t.aggregatedKey,q=t.originalKey,F=t.indexKey,V=t.groupedByPivotKey,J=t.loading,Y=t.pageSize,Q=t.page,X=t.sorted,$=t.filtered,ee=t.resized,te=t.expanded,oe=t.pages,ie=t.onExpandedChange,ae=t.TableComponent,ce=t.TheadComponent,le=t.TbodyComponent,ue=t.TrGroupComponent,se=t.TrComponent,pe=t.ThComponent,de=t.TdComponent,fe=t.TfootComponent,me=t.PaginationComponent,ge=t.LoadingComponent,he=t.SubComponent,ve=t.NoDataComponent,be=t.ResizerComponent,ye=t.ExpanderComponent,we=t.PivotValueComponent,Ie=t.PivotComponent,Se=t.AggregatedComponent,Ee=t.FilterComponent,xe=t.PadRowComponent,De=t.resolvedData,Te=t.allVisibleColumns,Me=t.headerGroups,Pe=t.hasHeaderGroups,Ne=t.sortedData,Le=t.currentlyResizing,Ce=Y*Q,je=Ce+Y,ke=k?De:Ne.slice(Ce,je),Ae=this.getMinRows(),Oe=j.range(Math.max(Ae-ke.length,0)),Re=Te.some((function(e){return e.Footer})),Ze=z||Te.some((function(e){return e.filterable})),He=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return[t.map((function(t,o){var i=ne({},t,{_viewIndex:n+=1}),a=r.concat([o]);if(i[U]&&j.get(te,a)){var c=e(i[U],a,n),l=re(c,2);i[U]=l[0],n=l[1]}return i})),n]}(ke),ze=re(He,1);ke=ze[0];var _e=Q>0,Be=Q+1<oe,Ge=j.sum(Te.map((function(e){var t=ee.find((function(t){return t.id===e.id}))||{};return j.getFirstDefined(t.value,e.width,e.minWidth)}))),Ue=-1,We=ne({},t,{startRow:Ce,endRow:je,pageRows:ke,minRows:Ae,padRows:Oe,hasColumnFooter:Re,canPrevious:_e,canNext:Be,rowMinWidth:Ge}),qe=j.splitProps(a(We,void 0,void 0,this)),Fe=j.splitProps(c(We,void 0,void 0,this)),Ve=j.splitProps(v(We,void 0,void 0,this)),Je=D(We,void 0,void 0,this),Ye=T(We,void 0,void 0,this),Qe=function(t,r){var n=function(e){return(ee.find((function(t){return t.id===e.id}))||{}).value},i=j.sum(t.columns.map((function(e){return e.width||n(e)?0:e.minWidth}))),a=j.sum(t.columns.map((function(e){return j.getFirstDefined(n(e),e.width,e.minWidth)}))),c=j.sum(t.columns.map((function(e){return j.getFirstDefined(n(e),e.width,e.maxWidth)}))),l=j.splitProps(s(We,void 0,t,e)),u=j.splitProps(t.getHeaderProps(We,void 0,t,e)),p=[t.headerClassName,l.className,u.className],d=ne({},t.headerStyle,l.style,u.style),f=ne({},l.rest,u.rest),m={flex:i+" 0 auto",width:j.asPx(a),maxWidth:j.asPx(c)};return o.createElement(pe,ne({key:r+"-"+t.id,className:P()(p),style:ne({},d,m)},f),j.normalizeComponent(t.Header,{data:Ne,column:t}))},Xe=function(t,r){var n=ee.find((function(e){return e.id===t.id}))||{},i=X.find((function(e){return e.id===t.id})),a="function"==typeof t.show?t.show():t.show,c=j.getFirstDefined(n.value,t.width,t.minWidth),l=j.getFirstDefined(n.value,t.width,t.maxWidth),u=j.splitProps(f(We,void 0,t,e)),s=j.splitProps(t.getHeaderProps(We,void 0,t,e)),p=[t.headerClassName,u.className,s.className],d=ne({},t.headerStyle,u.style,s.style),m=ne({},u.rest,s.rest),g=j.getFirstDefined(t.resizable,H,!1),h=g?o.createElement(be,ne({onMouseDown:function(r){return e.resizeColumnStart(r,t,!1)},onTouchStart:function(r){return e.resizeColumnStart(r,t,!0)}},M("finalState",void 0,t,e))):null,v=j.getFirstDefined(t.sortable,R,!1);return o.createElement(pe,ne({key:r+"-"+t.id,className:P()(p,g&&"rt-resizable-header",i?i.desc?"-sort-desc":"-sort-asc":"",v&&"-cursor-pointer",!a&&"-hidden",G&&G.slice(0,-1).includes(t.id)&&"rt-header-pivot"),style:ne({},d,{flex:c+" 0 auto",width:j.asPx(c),maxWidth:j.asPx(l)}),toggleSort:function(r){v&&e.sortColumn(t,!!Z&&r.shiftKey)}},m),o.createElement("div",{className:P()(g&&"rt-resizable-header-content")},j.normalizeComponent(t.Header,{data:Ne,column:t})),h)},Ke=function(t,r){var n=ee.find((function(e){return e.id===t.id}))||{},i=j.getFirstDefined(n.value,t.width,t.minWidth),a=j.getFirstDefined(n.value,t.width,t.maxWidth),c=j.splitProps(h(We,void 0,t,e)),l=j.splitProps(t.getHeaderProps(We,void 0,t,e)),u=[t.headerClassName,c.className,l.className],s=ne({},t.headerStyle,c.style,l.style),p=ne({},c.rest,l.rest),d=$.find((function(e){return e.id===t.id})),f=t.Filter||Ee,m=j.getFirstDefined(t.filterable,z,!1);return o.createElement(pe,ne({key:r+"-"+t.id,className:P()(u),style:ne({},s,{flex:i+" 0 auto",width:j.asPx(i),maxWidth:j.asPx(a)})},p),m?j.normalizeComponent(f,{column:t,filter:d,onChange:function(r){return e.filterColumn(t,r)}},K.column.Filter):null)},$e=function t(r,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a={original:r[q],row:r,index:r[F],viewIndex:Ue+=1,pageSize:Y,page:Q,level:i.length,nestingPath:i.concat([n]),aggregated:r[W],groupedByPivot:r[V],subRows:r[U]},c=j.get(te,a.nestingPath),l=b(We,a,void 0,e),u=j.splitProps(y(We,a,void 0,e));return o.createElement(ue,ne({key:a.nestingPath.join("_")},l),o.createElement(se,ne({className:P()(u.className,r._viewIndex%2?"-even":"-odd"),style:u.style},u.rest),Te.map((function(t,n){var i=ee.find((function(e){return e.id===t.id}))||{},l="function"==typeof t.show?t.show():t.show,u=j.getFirstDefined(i.value,t.width,t.minWidth),s=j.getFirstDefined(i.value,t.width,t.maxWidth),p=j.splitProps(w(We,a,t,e)),d=j.splitProps(t.getProps(We,a,t,e)),f=[p.className,t.className,d.className],m=ne({},p.style,t.style,d.style),g=ne({},a,{isExpanded:c,column:ne({},t),value:a.row[t.id],pivoted:t.pivoted,expander:t.expander,resized:ee,show:l,width:u,maxWidth:s,tdProps:p,columnProps:d,classes:f,styles:m}),h=g.value,v=void 0,b=void 0,y=void 0,I=j.normalizeComponent(t.Cell,g,h),S=t.Aggregated||(t.aggregate?t.Cell:Se),E=t.Expander||ye,x=t.PivotValue||we,D=Ie||function(e){return o.createElement("div",null,o.createElement(E,e),o.createElement(x,e))},T=t.Pivot||D;(g.pivoted||g.expander)&&(g.expandable=!0,v=!0,!g.pivoted||g.subRows||he||(g.expandable=!1)),g.pivoted?(b=a.row[_]===t.id&&g.subRows,y=G.indexOf(t.id)>G.indexOf(a.row[_])&&g.subRows,I=b?j.normalizeComponent(T,ne({},g,{value:r[B]}),r[B]):y?j.normalizeComponent(S,g,h):null):g.aggregated&&(I=j.normalizeComponent(S,g,h)),g.expander&&(I=j.normalizeComponent(E,g,r[B]),G&&(g.groupedByPivot&&(I=null),g.subRows||he||(I=null)));var M=v?function(t){var r=j.clone(te);return r=c?j.set(r,g.nestingPath,!1):j.set(r,g.nestingPath,{}),e.setStateWithData({expanded:r},(function(){return ie&&ie(r,g.nestingPath,t,g)}))}:function(){},N={onClick:M};return p.rest.onClick&&(N.onClick=function(e){p.rest.onClick(e,(function(){return M(e)}))}),d.rest.onClick&&(N.onClick=function(e){d.rest.onClick(e,(function(){return M(e)}))}),o.createElement(de,ne({key:n+"-"+t.id,className:P()(f,!g.expandable&&!l&&"hidden",g.expandable&&"rt-expandable",(b||y)&&"rt-pivot"),style:ne({},m,{flex:u+" 0 auto",width:j.asPx(u),maxWidth:j.asPx(s)})},p.rest,d.rest,N),I)}))),a.subRows&&c&&a.subRows.map((function(e,r){return t(e,r,a.nestingPath)})),he&&!a.subRows&&c&&he(a,(function(){var e=j.clone(te);j.set(e,a.nestingPath,!1)})))},et=function(t,r){var n=ee.find((function(e){return e.id===t.id}))||{},i="function"==typeof t.show?t.show():t.show,a=j.getFirstDefined(n.value,t.width,t.minWidth),c=a,l=j.getFirstDefined(n.value,t.width,t.maxWidth),u=j.splitProps(w(We,void 0,t,e)),s=j.splitProps(t.getProps(We,void 0,t,e)),p=[u.className,t.className,s.className],d=ne({},u.style,t.style,s.style);return o.createElement(de,ne({key:r+"-"+t.id,className:P()(p,!i&&"hidden"),style:ne({},d,{flex:c+" 0 auto",width:j.asPx(a),maxWidth:j.asPx(l)})},u.rest),j.normalizeComponent(xe))},tt=function(t,r){var n=b(We,void 0,void 0,e),i=j.splitProps(y(We,void 0,void 0,e));return o.createElement(ue,ne({key:"pad-"+r},n),o.createElement(se,{className:P()("-padRow",(ke.length+r)%2?"-even":"-odd",i.className),style:i.style||{}},Te.map(et)))},rt=function(t,r){var n=ee.find((function(e){return e.id===t.id}))||{},i="function"==typeof t.show?t.show():t.show,a=j.getFirstDefined(n.value,t.width,t.minWidth),c=j.getFirstDefined(n.value,t.width,t.maxWidth),l=j.splitProps(E(We,void 0,t,e)),u=j.splitProps(t.getProps(We,void 0,t,e)),s=j.splitProps(t.getFooterProps(We,void 0,t,e)),p=[l.className,t.className,u.className,s.className],d=ne({},l.style,t.style,u.style,s.style);return o.createElement(de,ne({key:r+"-"+t.id,className:P()(p,!i&&"hidden"),style:ne({},d,{flex:a+" 0 auto",width:j.asPx(a),maxWidth:j.asPx(c)})},u.rest,l.rest,s.rest),j.normalizeComponent(t.Footer,{data:Ne,column:t}))},nt=function(r){var n=j.splitProps(x(We,void 0,void 0,e));return o.createElement(me,ne({},t,{pages:oe,canPrevious:_e,canNext:Be,onPageChange:e.onPageChange,onPageSizeChange:e.onPageSizeChange,className:n.className,style:n.style,isTop:r},n.rest))},ot=function(){return o.createElement("div",ne({className:P()("ReactTable",n,qe.className),style:ne({},i,qe.style)},qe.rest),N&&L?o.createElement("div",{className:"pagination-top"},nt(!0)):null,o.createElement(ae,ne({className:P()(Fe.className,Le?"rt-resizing":""),style:Fe.style},Fe.rest),Pe?(h=j.splitProps(l(We,void 0,void 0,e)),v=j.splitProps(u(We,void 0,void 0,e)),o.createElement(ce,ne({className:P()("-headerGroups",h.className),style:ne({},h.style,{minWidth:Ge+"px"})},h.rest),o.createElement(se,ne({className:v.className,style:v.style},v.rest),Me.map(Qe)))):null,(s=j.splitProps(p(We,void 0,void 0,e)),f=j.splitProps(d(We,void 0,void 0,e)),o.createElement(ce,ne({className:P()("-header",s.className),style:ne({},s.style,{minWidth:Ge+"px"})},s.rest),o.createElement(se,ne({className:f.className,style:f.style},f.rest),Te.map(Xe)))),Ze?(a=j.splitProps(m(We,void 0,void 0,e)),c=j.splitProps(g(We,void 0,void 0,e)),o.createElement(ce,ne({className:P()("-filters",a.className),style:ne({},a.style,{minWidth:Ge+"px"})},a.rest),o.createElement(se,ne({className:c.className,style:c.style},c.rest),Te.map(Ke)))):null,o.createElement(le,ne({className:P()(Ve.className),style:ne({},Ve.style,{minWidth:Ge+"px"})},Ve.rest),ke.map((function(e,t){return $e(e,t)})),Oe.map(tt)),Re?(t=j.splitProps(I(We,void 0,void 0,e)),r=j.splitProps(S(We,void 0,void 0,e)),o.createElement(fe,ne({className:t.className,style:ne({},t.style,{minWidth:Ge+"px"})},t.rest),o.createElement(se,ne({className:P()(r.className),style:r.style},r.rest),Te.map(rt)))):null),N&&C?o.createElement("div",{className:"pagination-bottom"},nt(!1)):null,!ke.length&&o.createElement(ve,Ye,j.normalizeComponent(O)),o.createElement(ge,ne({loading:J,loadingText:A},Je)));var t,r,a,c,s,f,h,v};return r?r(We,ot,this):ot()}}]),t}(function(e){return function(e){function t(){return G(this,t),U(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),z(t,[{key:"getResolvedState",value:function(e,t){return H({},j.compactObject(this.state),j.compactObject(this.props),j.compactObject(t),j.compactObject(e))}},{key:"getDataModel",value:function(e,t){var r=this,n=e.columns,i=e.pivotBy,a=void 0===i?[]:i,c=e.data,l=e.resolveData,u=e.pivotIDKey,s=e.pivotValKey,p=e.subRowsKey,d=e.aggregatedKey,f=e.nestingLevelKey,m=e.originalKey,g=e.indexKey,h=e.groupedByPivotKey,v=e.SubComponent,b=!1;n.forEach((function(e){e.columns&&(b=!0)}));var y=[].concat(B(n)),w=n.find((function(e){return e.expander||e.columns&&e.columns.some((function(e){return e.expander}))}));w&&!w.expander&&(w=w.columns.find((function(e){return e.expander}))),v&&!w&&(y=[w={expander:!0}].concat(B(y)));var I=[],S=function(e,t){var n=function(e,t){var n=void 0;if((n=e.expander?H({},r.props.column,r.props.expanderDefaults,e):H({},r.props.column,e)).maxWidth<n.minWidth&&(n.minWidth=n.maxWidth),t&&(n.parentColumn=t),"string"==typeof n.accessor){n.id=n.id||n.accessor;var o=n.accessor;return n.accessor=function(e){return j.get(e,o)},n}if(n.accessor&&!n.id)throw console.warn(n),new Error("A column id is required if using a non-string accessor for column above.");return n.accessor||(n.accessor=function(){}),n}(e,t);return I.push(n),n},E=y.map((function(e){return e.columns?H({},e,{columns:e.columns.map((function(t){return S(t,e)}))}):S(e)})).slice(),x=[],D=(E=(E=E.map((function(e){if(e.columns){var t=e.columns.filter((function(e){return!(a.indexOf(e.id)>-1)&&j.getFirstDefined(e.show,!0)}));return H({},e,{columns:t})}return e}))).filter((function(e){return e.columns?e.columns.length:!(a.indexOf(e.id)>-1)&&j.getFirstDefined(e.show,!0)}))).findIndex((function(e){return e.pivot}));if(a.length){var T=[];a.forEach((function(e){var t=I.find((function(t){return t.id===e}));t&&T.push(t)}));var M=T.reduce((function(e,t){return e&&e===t.parentColumn&&t.parentColumn}),T[0].parentColumn),P=b&&M.Header,N={Header:P=P||function(){return o.createElement("strong",null,"Pivoted")},columns:T.map((function(e){return H({},r.props.pivotDefaults,e,{pivoted:!0})}))};D>=0?(N=H({},E[D],N),E.splice(D,1,N)):E.unshift(N)}var L=[],C=[],k=function(e,t){L.push(H({},r.props.column,t,{columns:e})),C=[]};E.forEach((function(e){if(e.columns)return x=x.concat(e.columns),C.length>0&&k(C),void k(e.columns,e);x.push(e),C.push(e)})),b&&C.length>0&&k(C);var A=function e(t,r){var n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=(_(n={},m,t),_(n,g,r),_(n,p,t[p]),_(n,f,o),n);return I.forEach((function(e){e.expander||(i[e.id]=e.accessor(t))})),i[p]&&(i[p]=i[p].map((function(t,r){return e(t,r,o+1)}))),i},O=this.resolvedData;this.resolvedData&&!t||(O=l(c),this.resolvedData=O),O=O.map((function(e,t){return A(e,t)}));var R=x.filter((function(e){return!e.expander&&e.aggregate})),z=function(e){var t={};return R.forEach((function(r){var n=e.map((function(e){return e[r.id]}));t[r.id]=r.aggregate(n,e)})),t};if(a.length){O=function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(n===r.length)return t;var o=Object.entries(j.groupBy(t,r[n])).map((function(e){var t,o=Z(e,2),i=o[0],a=o[1];return _(t={},u,r[n]),_(t,s,i),_(t,r[n],i),_(t,p,a),_(t,f,n),_(t,h,!0),t}));return o=o.map((function(t){var o,i=e(t[p],r,n+1);return H({},t,(_(o={},p,i),_(o,d,!0),o),z(i))}))}(O,a)}return H({},e,{resolvedData:O,allVisibleColumns:x,headerGroups:L,allDecoratedColumns:I,hasHeaderGroups:b})}},{key:"getSortedData",value:function(e){var t=e.manual,r=e.sorted,n=e.filtered,o=e.defaultFilterMethod,i=e.resolvedData,a=e.allDecoratedColumns,c={};return a.filter((function(e){return e.sortMethod})).forEach((function(e){c[e.id]=e.sortMethod})),{sortedData:t?i:this.sortData(this.filterData(i,n,o,a),r,c)}}},{key:"fireFetchData",value:function(){var e=H({},this.getResolvedState(),{page:this.getStateOrProp("page"),pageSize:this.getStateOrProp("pageSize"),filtered:this.getStateOrProp("filtered")});this.props.onFetchData(e,this)}},{key:"getPropOrState",value:function(e){return j.getFirstDefined(this.props[e],this.state[e])}},{key:"getStateOrProp",value:function(e){return j.getFirstDefined(this.state[e],this.props[e])}},{key:"filterData",value:function(e,t,r,n){var o=this,i=e;return t.length&&(i=(i=t.reduce((function(e,t){var o=n.find((function(e){return e.id===t.id}));if(!o||!1===o.filterable)return e;var i=o.filterMethod||r;return o.filterAll?i(t,e,o):e.filter((function(e){return i(t,e,o)}))}),i)).map((function(e){return e[o.props.subRowsKey]?H({},e,_({},o.props.subRowsKey,o.filterData(e[o.props.subRowsKey],t,r,n))):e})).filter((function(e){return!e[o.props.subRowsKey]||e[o.props.subRowsKey].length>0}))),i}},{key:"sortData",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.length)return e;var o=(this.props.orderByMethod||j.orderBy)(e,t.map((function(e){return n[e.id]?function(t,r){return n[e.id](t[e.id],r[e.id],e.desc)}:function(t,n){return r.props.defaultSortMethod(t[e.id],n[e.id],e.desc)}})),t.map((function(e){return!e.desc})),this.props.indexKey);return o.forEach((function(e){e[r.props.subRowsKey]&&(e[r.props.subRowsKey]=r.sortData(e[r.props.subRowsKey],t,n))})),o}},{key:"getMinRows",value:function(){return j.getFirstDefined(this.props.minRows,this.getStateOrProp("pageSize"))}},{key:"onPageChange",value:function(e){var t=this.props,r=t.onPageChange,n=t.collapseOnPageChange,o={page:e};n&&(o.expanded={}),this.setStateWithData(o,(function(){return r&&r(e)}))}},{key:"onPageSizeChange",value:function(e){var t=this.props.onPageSizeChange,r=this.getResolvedState(),n=r.pageSize*r.page,o=Math.floor(n/e);this.setStateWithData({pageSize:e,page:o},(function(){return t&&t(e,o)}))}},{key:"sortColumn",value:function(e,t){var r=this.getResolvedState(),n=r.sorted,o=r.skipNextSort,i=r.defaultSortDesc,a=Object.prototype.hasOwnProperty.call(e,"defaultSortDesc")?e.defaultSortDesc:i,c=!a;if(o)this.setStateWithData({skipNextSort:!1});else{var l=this.props.onSortedChange,u=j.clone(n||[]).map((function(e){return e.desc=j.isSortingDesc(e),e}));if(j.isArray(e)){var s=u.findIndex((function(t){return t.id===e[0].id}));if(s>-1)u[s].desc===c?t?u.splice(s,e.length):e.forEach((function(e,t){u[s+t].desc=a})):e.forEach((function(e,t){u[s+t].desc=c})),t||(u=u.slice(s,e.length));else u=t?u.concat(e.map((function(e){return{id:e.id,desc:a}}))):e.map((function(e){return{id:e.id,desc:a}}))}else{var p=u.findIndex((function(t){return t.id===e.id}));if(p>-1){var d=u[p];d.desc===c?t?u.splice(p,1):(d.desc=a,u=[d]):(d.desc=c,t||(u=[d]))}else t?u.push({id:e.id,desc:a}):u=[{id:e.id,desc:a}]}this.setStateWithData({page:!n.length&&u.length||!t?0:this.state.page,sorted:u},(function(){return l&&l(u,e,t)}))}}},{key:"filterColumn",value:function(e,t){var r=this.getResolvedState().filtered,n=this.props.onFilteredChange,o=(r||[]).filter((function(t){return t.id!==e.id}));""!==t&&o.push({id:e.id,value:t}),this.setStateWithData({filtered:o},(function(){return n&&n(o,e,t)}))}},{key:"resizeColumnStart",value:function(e,t,r){var n=this;e.stopPropagation();var o=e.target.parentElement.getBoundingClientRect().width,i=void 0;i=r?e.changedTouches[0].pageX:e.pageX,this.trapEvents=!0,this.setStateWithData({currentlyResizing:{id:t.id,startX:i,parentWidth:o}},(function(){r?(document.addEventListener("touchmove",n.resizeColumnMoving),document.addEventListener("touchcancel",n.resizeColumnEnd),document.addEventListener("touchend",n.resizeColumnEnd)):(document.addEventListener("mousemove",n.resizeColumnMoving),document.addEventListener("mouseup",n.resizeColumnEnd),document.addEventListener("mouseleave",n.resizeColumnEnd))}))}},{key:"resizeColumnMoving",value:function(e){e.stopPropagation();var t=this.props,r=t.onResizedChange,n=t.column,o=this.getResolvedState(),i=o.resized,a=o.currentlyResizing,c=o.columns.find((function(e){return e.accessor===a.id||e.id===a.id})),l=c&&null!=c.minResizeWidth?c.minResizeWidth:n.minResizeWidth,u=i.filter((function(e){return e.id!==a.id})),s=void 0;"touchmove"===e.type?s=e.changedTouches[0].pageX:"mousemove"===e.type&&(s=e.pageX);var p=Math.max(a.parentWidth+s-a.startX,l);u.push({id:a.id,value:p}),this.setStateWithData({resized:u},(function(){return r&&r(u,e)}))}},{key:"resizeColumnEnd",value:function(e){e.stopPropagation();var t="touchend"===e.type||"touchcancel"===e.type;t&&(document.removeEventListener("touchmove",this.resizeColumnMoving),document.removeEventListener("touchcancel",this.resizeColumnEnd),document.removeEventListener("touchend",this.resizeColumnEnd)),document.removeEventListener("mousemove",this.resizeColumnMoving),document.removeEventListener("mouseup",this.resizeColumnEnd),document.removeEventListener("mouseleave",this.resizeColumnEnd),t||this.setStateWithData({skipNextSort:!0,currentlyResizing:!1})}}]),t}(e)}(function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),n={page:e.defaultPage,pageSize:e.defaultPageSize,sorted:e.defaultSorted,expanded:e.defaultExpanded,filtered:e.defaultFiltered,resized:e.defaultResized,currentlyResizing:!1,skipNextSort:!1},o=r.getResolvedState(e,n),i=r.getDataModel(o,!0);return r.state=r.calculateNewResolvedState(i),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),R(t,[{key:"componentDidMount",value:function(){this.fireFetchData()}},{key:"componentDidUpdate",value:function(e,t){var r=this.getResolvedState(e,t),n=this.getResolvedState(this.props,this.state);["sorted","filtered","resized","expanded"].forEach((function(e){var t="default"+(e.charAt(0).toUpperCase()+e.slice(1));JSON.stringify(r[t])!==JSON.stringify(n[t])&&(n[e]=n[t])})),["sortable","filterable","resizable"].forEach((function(e){if(r[e]!==n[e]){var t=e.replace("able","")+"ed",o="default"+(t.charAt(0).toUpperCase()+t.slice(1));n[t]=n[o]}})),r.data===n.data&&r.columns===n.columns&&r.pivotBy===n.pivotBy&&r.sorted===n.sorted&&r.filtered===n.filtered||this.setStateWithData(this.getDataModel(n,r.data!==n.data))}},{key:"calculateNewResolvedState",value:function(e){var t=this.getResolvedState(),r=this.getResolvedState({},e),n=r.freezeWhenExpanded;if(r.frozen=!1,n)for(var o=Object.keys(r.expanded),i=0;i<o.length;i+=1)if(r.expanded[o[i]]){r.frozen=!0;break}return(t.frozen&&!r.frozen||t.sorted!==r.sorted||t.filtered!==r.filtered||t.showFilters!==r.showFilters||!r.frozen&&t.resolvedData!==r.resolvedData)&&((t.sorted!==r.sorted&&this.props.collapseOnSortingChange||t.filtered!==r.filtered||t.showFilters!==r.showFilters||t.sortedData&&!r.frozen&&t.resolvedData!==r.resolvedData&&this.props.collapseOnDataChange)&&(r.expanded={}),Object.assign(r,this.getSortedData(r))),t.filtered!==r.filtered&&(r.page=0),r.sortedData&&(r.pages=r.manual?r.pages:Math.ceil(r.sortedData.length/r.pageSize),r.page=r.manual?r.page:Math.max(r.page>=r.pages?r.pages-1:r.page,0)),r}},{key:"setStateWithData",value:function(e,t){var r=this,n=this.getResolvedState(),o=this.calculateNewResolvedState(e);return this.setState(o,(function(){t&&t(),n.page===o.page&&n.pageSize===o.pageSize&&n.sorted===o.sorted&&n.filtered===o.filtered||r.fireFetchData()}))}}]),t}(o.Component)));ie.propTypes=te,ie.defaultProps=K;var ae=ie,ce=r(48618),le=(r(85005),function(e){return o.createElement("div",{className:"wprm-admin-manage-select-columns-container"},o.createElement("div",{className:"wprm-admin-manage-select-columns"},e.columns.map((function(t,r){if("actions"===t.id)return null;var n=e.selectedColumns.includes(t.id),i=e.filteredColumns.includes(t.id),a=["wprm-admin-manage-select-columns-column"];return n&&a.push("wprm-admin-manage-select-columns-column-selected"),i&&a.push("wprm-admin-manage-select-columns-column-filtered"),o.createElement("span",{className:a.join(" "),onClick:function(r){r.preventDefault(),i||e.onColumnsChange(t.id,!n)},key:r},t.Header)}))))}),ue=(r(80174),function(e){if(!e.filtered&&!e.total)return o.createElement("div",{className:"wprm-admin-table-totals"}," ");var t=!1!==e.filtered&&e.filtered!=e.total;return o.createElement("div",{className:"wprm-admin-table-totals"},e.total?o.createElement(o.Fragment,null,t?"".concat((0,b.S)("Showing")," ").concat(Number(e.filtered).toLocaleString()," ").concat((0,b.S)("filtered of")," ").concat(Number(e.total).toLocaleString()," ").concat((0,b.S)("total")):"".concat((0,b.S)("Showing")," ").concat(Number(e.total).toLocaleString()," ").concat((0,b.S)("total"))):"".concat(Number(e.filtered).toLocaleString()," ").concat((0,b.S)("rows")))});function se(e){return(se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pe(e){return function(e){if(Array.isArray(e))return fe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||de(e)||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.")}()}function de(e,t){if(e){if("string"==typeof e)return fe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?fe(e,t):void 0}}function fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function me(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ge(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?me(Object(r),!0).forEach((function(t){he(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):me(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function he(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ve(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function be(e,t){return(be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ye(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Se(e);if(t){var o=Se(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return we(this,r)}}function we(e,t){return!t||"object"!==se(t)&&"function"!=typeof t?Ie(e):t}function Ie(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Se(e){return(Se=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ee={data:[],pages:null,filtered:[],countFiltered:!1,countTotal:!1,loading:!0,columns:[],selectedColumns:!1,selectedRows:{},selectedAllRows:0},xe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&be(e,t)}(a,e);var t,r,n,i=ye(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state=ge({},Ee),t.initDataTable=t.initDataTable.bind(Ie(t)),t.refreshData=t.refreshData.bind(Ie(t)),t.fetchData=t.fetchData.bind(Ie(t)),t.toggleSelectRow=t.toggleSelectRow.bind(Ie(t)),t.toggleSelectAll=t.toggleSelectAll.bind(Ie(t)),t.getSelectedRows=t.getSelectedRows.bind(Ie(t)),t.onColumnsChange=t.onColumnsChange.bind(Ie(t)),t.requirementMet=t.requirementMet.bind(Ie(t)),t}return t=a,(r=[{key:"componentDidMount",value:function(){this.initDataTable()}},{key:"componentDidUpdate",value:function(e){this.props.type!==e.type&&this.initDataTable(!0)}},{key:"initDataTable",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.requirementMet()){var r=this.props.options.selectedColumns;if(!1!==r){var n=localStorage.getItem("wprm-admin-manage-".concat(this.props.options.id,"-columns"));n&&(n=JSON.parse(n),Array.isArray(n)&&(r=n))}this.setState(ge(ge({},Ee),{},{columns:this.props.options.columns.getColumns(this),selectedColumns:r}),(function(){t&&e.refreshData()}))}}},{key:"toggleSelectRow",value:function(e){var t=ge({},this.state.selectedRows);t[e]=!t[e];var r=Object.values(t).filter((function(e){return e})).length,n=2;0===r?n=0:this.state.data.length===r&&(n=1),this.setState({selectedRows:t,selectedAllRows:n})}},{key:"toggleSelectAll",value:function(){var e="taxonomy"===this.props.options.route?"term_id":"id",t={};if(0===this.state.selectedAllRows){var r,n=function(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=de(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}(this.state.data);try{for(n.s();!(r=n.n()).done;)t[r.value[e]]=!0}catch(o){n.e(o)}finally{n.f()}}this.setState({selectedRows:t,selectedAllRows:0===this.state.selectedAllRows?1:0})}},{key:"getSelectedRows",value:function(){var e=this;return Object.keys(this.state.selectedRows).filter((function(t){return e.state.selectedRows[t]})).map((function(e){return parseInt(e)}))}},{key:"refreshData",value:function(){this.refReactTable&&this.refReactTable.fireFetchData()}},{key:"fetchData",value:function(e,t){var r=this,n=e.data;this.setState({loading:!0},(function(){r.requirementMet()&&h.Z.manage.getData({route:r.props.options.route,type:r.props.options.id,pageSize:e.pageSize,page:e.page,sorted:e.sorted,filtered:e.filtered}).then((function(e){if(e){var t={data:e.rows,pages:e.pages,countFiltered:e.filtered,countTotal:e.total,loading:!1},o="taxonomy"===r.props.options.route?"term_id":"id";JSON.stringify(e.rows.map((function(e){return e[o]})))!==JSON.stringify(n.map((function(e){return e[o]})))&&(t.selectedRows={},t.selectedAllRows=0),r.setState(t)}}))}))}},{key:"onColumnsChange",value:function(e,t){var r=pe(this.state.selectedColumns);t?r.push(e):r=r.filter((function(t){return t!==e})),this.setState({selectedColumns:r}),localStorage.setItem("wprm-admin-manage-".concat(this.props.options.id,"-columns"),JSON.stringify(r))}},{key:"requirementMet",value:function(){return!(this.props.options.hasOwnProperty("required")&&(!wprm_admin.addons.hasOwnProperty(this.props.options.required)||!0!==wprm_admin.addons[this.props.options.required]))}},{key:"render",value:function(){var e=this;if(!this.props.options)return null;if(!this.requirementMet()){var t=this.props.options.required[0].toUpperCase()+this.props.options.required.substring(1);return o.createElement("div",{className:"wprm-admin-manage-requirement"},o.createElement("div",null,"*",(0,b.S)("This feature is only available in")),o.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker ".concat(t," Bundle")))}var r=this.state,n=r.data,i=r.pages,a=r.loading,c=this.state.columns.filter((function(t){return"actions"===t.id||!1===e.state.selectedColumns||e.state.selectedColumns.includes(t.id)})),l=this.state.filtered.filter((function(e){return""!==e.value&&"all"!==e.value})).map((function(e){return e.id}));return o.createElement("div",{className:"wprm-admin-manage-page"},!1!==this.state.selectedColumns||this.props.options.bulkEdit||this.props.options.createButton?o.createElement("div",{className:"wprm-admin-manage-header"},!1===this.state.selectedColumns?o.createElement("div",null):o.createElement(le,{onColumnsChange:this.onColumnsChange,columns:this.state.columns,selectedColumns:this.state.selectedColumns,filteredColumns:l}),o.createElement("div",{className:"wprm-admin-manage-header-buttons"},(!1===this.state.selectedColumns||this.state.selectedColumns.includes("bulk_edit"))&&this.props.options.bulkEdit&&o.createElement("button",{className:"button",onClick:function(){WPRM_Modal.open("bulk-edit",{route:e.props.options.bulkEdit.route,type:e.props.options.bulkEdit.type,ids:e.getSelectedRows(),saveCallback:function(){return e.refreshData()}})},disabled:0===this.getSelectedRows().length},(0,b.S)("Bulk Edit")," ",this.getSelectedRows().length," ",1===this.getSelectedRows().length?this.props.options.label.singular:this.props.options.label.plural,"..."),this.props.options.createButton?o.createElement("button",{className:"button button-primary",onClick:function(){return e.props.options.createButton(e)}},"".concat((0,b.S)("Create")," ").concat(this.props.options.label.singular)):null)):null,o.createElement("div",{className:"wprm-admin-manage-table-container"},o.createElement(ce.Z,{module:"Datatable"},o.createElement(ue,{filtered:this.state.countFiltered,total:this.state.countTotal}),o.createElement("div",{className:"wprm-admin-manage-table-inner"},o.createElement(ae,{ref:function(t){e.refReactTable=t},manual:!0,columns:c,data:n,pages:i,filtered:this.state.filtered,onFilteredChange:function(t){e.setState({filtered:t})},loading:a,onFetchData:this.fetchData,defaultPageSize:this.props.options.hasOwnProperty("defaultPageSize")?this.props.options.defaultPageSize:25,pageSizeOptions:[5,10,20,25,50,100,500],defaultSorted:[{id:"rating"===this.props.type?"date":"id",desc:!0}],filterable:!0,resizable:!1,className:"wprm-admin-manage-table wprm-admin-table -highlight"})))))}}])&&ve(t.prototype,r),n&&ve(t,n),a}(o.Component),De=(r(29897),r(2778)),Te=r.n(De),Me=r(80416),Pe=r(94341);function Ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Le(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(r),!0).forEach((function(t){Ce(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ne(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ce(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var je={getColumns:function(e){return[(0,Pe.Z)(e),{Header:(0,b.S)("Sort:"),id:"actions",headerClassName:"wprm-admin-table-help-text",sortable:!1,width:70,Filter:function(){return o.createElement("div",null,(0,b.S)("Filter:"))},Cell:function(t){return o.createElement("div",{className:"wprm-admin-manage-actions"},o.createElement(v.Z,{type:"pencil",title:(0,b.S)("Click on the stars to edit the rating."),onClick:function(){alert((0,b.S)("Click on the stars to edit the rating."))}}),o.createElement(v.Z,{type:"trash",title:(0,b.S)("Delete Rating"),onClick:function(){confirm((0,b.S)("Are you sure you want to delete this rating?"))&&h.Z.rating.delete(t.original.id).then((function(){return e.refreshData()}))}}))}},{Header:(0,b.S)("Date"),id:"date",accessor:"date",width:150,Filter:function(e){return o.createElement(Me.Z,e)}},{Header:(0,b.S)("Rating"),id:"rating",accessor:"rating",width:100,Filter:function(e){var t=e.filter,r=e.onChange;return o.createElement("select",{onChange:function(e){return r(e.target.value)},style:{width:"100%",fontSize:"1em"},value:t?t.value:"all"},o.createElement("option",{value:"all"},(0,b.S)("All Ratings")),o.createElement("option",{value:"1"},"1 ".concat((0,b.S)("star"))),o.createElement("option",{value:"2"},"2 ".concat((0,b.S)("stars"))),o.createElement("option",{value:"3"},"3 ".concat((0,b.S)("stars"))),o.createElement("option",{value:"4"},"4 ".concat((0,b.S)("stars"))),o.createElement("option",{value:"5"},"5 ".concat((0,b.S)("stars"))))},Cell:function(t){return o.createElement("div",{className:"wprm-admin-manage-ratings-rating"},[1,2,3,4,5].map((function(r,n){return o.createElement(v.Z,{type:r<=t.value?"star-full":"star-empty",title:"".concat((0,b.S)("Click to change this rating to:")," ").concat(r),onClick:function(){var n=Le(Le({},t.original),{},{rating:r});h.Z.rating.update(n).then((function(){return e.refreshData()}))},key:n})})))}},{Header:(0,b.S)("Type"),id:"type",accessor:"type",width:150,sortable:!1,Filter:function(e){var t=e.filter,r=e.onChange;return o.createElement("select",{onChange:function(e){return r(e.target.value)},style:{width:"100%",fontSize:"1em"},value:t?t.value:"all"},o.createElement("option",{value:"all"},(0,b.S)("All Types")),o.createElement("option",{value:"user"},(0,b.S)("User Rating")),o.createElement("option",{value:"comment"},(0,b.S)("Comment Rating")))},Cell:function(e){return o.createElement("div",null,"user"===e.value?(0,b.S)("User Rating"):(0,b.S)("Comment Rating"))}},{Header:(0,b.S)("Approved"),id:"approved",accessor:"approved",width:100,sortable:!1,Filter:function(e){var t=e.filter,r=e.onChange;return o.createElement("select",{onChange:function(e){return r(e.target.value)},style:{width:"100%",fontSize:"1em"},value:t?t.value:"all"},o.createElement("option",{value:"all"},(0,b.S)("All")),o.createElement("option",{value:"yes"},(0,b.S)("Approved")),o.createElement("option",{value:"no"},(0,b.S)("Not Approved")))},Cell:function(e){return o.createElement("div",null,0==e.value?(0,b.S)("No"):(0,b.S)("Yes"))}},{Header:(0,b.S)("User ID"),id:"user_id",accessor:"user_id",width:150,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(e){if(!e.value||"0"===e.value)return o.createElement("div",null);var t="".concat(e.value," - ").concat(e.original.user?e.original.user:(0,b.S)("n/a"));return o.createElement("div",null,e.original.user_link?o.createElement("a",{href:Te().decode(e.original.user_link),target:"_blank"},t):t)}},{Header:(0,b.S)("IP"),id:"ip",accessor:"ip",width:150,Filter:function(e){return o.createElement(Me.Z,e)}},{Header:(0,b.S)("Comment ID"),id:"comment_id",accessor:"comment_id",width:350,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(e){if(!e.value||"0"===e.value)return o.createElement("div",null);var t="".concat(e.value," - ").concat(e.original.comment?"".concat(e.original.comment):(0,b.S)("n/a"));return o.createElement("div",null,e.original.comment_link?o.createElement("a",{href:Te().decode(e.original.comment_link),target:"_blank"},t):t)}},{Header:(0,b.S)("Recipe ID"),id:"recipe_id",accessor:"recipe_id",width:350,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(t){if(!t.value||"0"===t.value)return o.createElement("div",null);var r="".concat(t.value," - ").concat(t.original.recipe?t.original.recipe:(0,b.S)("n/a"));return o.createElement("div",null,t.original.recipe?o.createElement("a",{href:"#",onClick:function(r){r.preventDefault(),WPRM_Modal.open("recipe",{recipeId:t.value,saveCallback:function(){return e.refreshData()}})}},r):r)}},{Header:(0,b.S)("Parent Post ID"),id:"post_id",accessor:"post_id",width:350,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(e){if(!e.value||"0"===e.value)return o.createElement("div",null);var t="".concat(e.value," - ").concat(e.original.post?e.original.post:(0,b.S)("n/a"));return o.createElement("div",null,e.original.post_link?o.createElement("a",{href:Te().decode(e.original.post_link),target:"_blank"},t):t)}}]}},ke=(r(42900),r(55281),r(22321),r(67838),r(95075)),Ae=function(e){return e.seo?o.createElement(ke.Z,{content:e.seo.message,style:{width:"100%"}},o.createElement("div",{className:"wprm-admin-manage-seo-indicator wprm-admin-manage-seo-indicator-".concat(e.seo.type.trim()),onClick:e.onClick},"other"===e.seo.type?"n/a":o.createElement(o.Fragment,null,o.createElement("div",{className:"wprm-admin-manage-seo-indicator-block"}),o.createElement("div",{className:"wprm-admin-manage-seo-indicator-block"}),o.createElement("div",{className:"wprm-admin-manage-seo-indicator-block"}),o.createElement("div",{className:"wprm-admin-manage-seo-indicator-block"})))):null};function Oe(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Re(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Re(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function Re(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Ze=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=parseInt(e),n=0,o=0,i=0,a="";return r>0?(n=Math.floor(r/24/60),o=Math.floor(r/60%24),i=Math.floor(r%60),n&&(a+="".concat(n," ").concat(1===n?(0,b.S)("day"):(0,b.S)("days")," ")),o&&(a+="".concat(o," ").concat(1===o?(0,b.S)("hr"):(0,b.S)("hrs")," ")),i&&(a+="".concat(i," ").concat(1===i?(0,b.S)("min"):(0,b.S)("mins")," "))):t&&(a="0 ".concat((0,b.S)("mins"))),a.trim()},He={getColumns:function(e){var t=[(0,Pe.Z)(e),{Header:(0,b.S)("Sort:"),id:"actions",headerClassName:"wprm-admin-table-help-text",sortable:!1,width:wprm_admin.addons.premium?130:100,Filter:function(){return o.createElement("div",null,(0,b.S)("Filter:"))},Cell:function(t){return o.createElement("div",{className:"wprm-admin-manage-actions"},o.createElement(v.Z,{type:"pencil",title:(0,b.S)("Edit Recipe"),onClick:function(){WPRM_Modal.open("recipe",{recipe:t.original,saveCallback:function(){return e.refreshData()}})}}),o.createElement(v.Z,{type:"print",title:(0,b.S)("Print Recipe"),onClick:function(){var e=wprm_admin.home_url.split(/\?(.+)/),r=e[0];wprm_admin.permalinks?(r+=wprm_admin.print_slug+"/"+t.original.id,e[1]&&(r+="?"+e[1])):(r+="?"+wprm_admin.print_slug+"="+t.original.id,e[1]&&(r+="&"+e[1])),window.open(r,"_blank")}}),!0===wprm_admin.addons.premium&&o.createElement(v.Z,{type:"duplicate",title:(0,b.S)("Clone Recipe"),onClick:function(){WPRM_Modal.open("recipe",{recipeId:t.original.id,cloneRecipe:!0,saveCallback:function(){return e.refreshData()}},!0)}}),o.createElement(v.Z,{type:"trash",title:(0,b.S)("Delete Recipe"),onClick:function(){confirm("".concat((0,b.S)("Are you sure you want to delete"),' "').concat(t.original.name,'"?'))&&h.Z.recipe.delete(t.original.id).then((function(){return e.refreshData()}))}}))}},{Header:(0,b.S)("SEO"),id:"seo",accessor:"seo",width:65,sortable:!1,filterable:!1,Cell:function(e){return o.createElement(Ae,{seo:e.value})}},{Header:(0,b.S)("Type"),id:"type",accessor:"type",width:80,Filter:function(e){var t=e.filter,r=e.onChange;return o.createElement("select",{onChange:function(e){return r(e.target.value)},style:{width:"100%",fontSize:"1em"},value:t?t.value:"all"},o.createElement("option",{value:"all"},(0,b.S)("All")),o.createElement("option",{value:"food"},(0,b.S)("Food")),o.createElement("option",{value:"howto"},(0,b.S)("How-to")),o.createElement("option",{value:"other"},(0,b.S)("Other")))},Cell:function(e){return o.createElement("div",null,"other"===e.value?(0,b.S)("Other"):"howto"===e.value?(0,b.S)("How-to"):(0,b.S)("Food"))}},{Header:(0,b.S)("ID"),id:"id",accessor:"id",width:65,Filter:function(e){return o.createElement(Me.Z,e)}},{Header:(0,b.S)("Date"),id:"date",accessor:"date",width:150,Filter:function(e){return o.createElement(Me.Z,e)}},{Header:(0,b.S)("Image"),id:"image",accessor:"image_url",width:100,sortable:!1,Filter:function(e){var t=e.filter,r=e.onChange;return o.createElement("select",{onChange:function(e){return r(e.target.value)},style:{width:"100%",fontSize:"1em"},value:t?t.value:"all"},o.createElement("option",{value:"all"},(0,b.S)("Show All")),o.createElement("option",{value:"yes"},(0,b.S)("Has Recipe Image")),o.createElement("option",{value:"no"},(0,b.S)("Does not have Recipe Image")))},Cell:function(e){return o.createElement("div",{style:{width:"100%"}},e.value?o.createElement("img",{src:e.value,className:"wprm-admin-manage-image"}):null)}},{Header:(0,b.S)("Pin Image"),id:"pin_image",accessor:"pin_image_url",width:100,sortable:!1,Filter:function(e){var t=e.filter,r=e.onChange;return o.createElement("select",{onChange:function(e){return r(e.target.value)},style:{width:"100%",fontSize:"1em"},value:t?t.value:"all"},o.createElement("option",{value:"all"},(0,b.S)("Show All")),o.createElement("option",{value:"yes"},(0,b.S)("Has Custom Pin Image")),o.createElement("option",{value:"no"},(0,b.S)("Does not have Custom Pin Image")))},Cell:function(e){return o.createElement("div",{style:{width:"100%"}},e.value?o.createElement("img",{src:e.value,className:"wprm-admin-manage-image"}):null)}},{Header:(0,b.S)("Video"),id:"video",accessor:"video_url",width:200,sortable:!1,Filter:function(e){var t=e.filter,r=e.onChange;return o.createElement("select",{onChange:function(e){return r(e.target.value)},style:{width:"100%",fontSize:"1em"},value:t?t.value:"all"},o.createElement("option",{value:"all"},(0,b.S)("Show All")),o.createElement("option",{value:"yes"},(0,b.S)("Has any video")),o.createElement("option",{value:"id"},(0,b.S)("Has an uploaded video")),o.createElement("option",{value:"embed"},(0,b.S)("Has an embedded video")),o.createElement("option",{value:"no"},(0,b.S)("Does not have a video")))},Cell:function(e){return o.createElement("div",{style:{width:"100%"}},e.value?e.value:o.createElement(o.Fragment,null,e.original.video_embed?e.original.video_embed:null))}},{Header:(0,b.S)("Name"),id:"name",accessor:"name",width:300,Filter:function(e){return o.createElement(Me.Z,e)}},{Header:(0,b.S)("Summary"),id:"summary",accessor:"summary",width:300,sortable:!1,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(e){return e.value?o.createElement("div",{dangerouslySetInnerHTML:{__html:e.value}}):o.createElement("div",null)}},{Header:(0,b.S)("Author"),id:"post_author",accessor:"post_author",width:150,Filter:function(e){var t=e.filter,r=e.onChange;return o.createElement("select",{onChange:function(e){return r(e.target.value)},style:{width:"100%",fontSize:"1em"},value:t?t.value:"all"},o.createElement("option",{value:"all"},(0,b.S)("All Authors")),Object.keys(wprm_admin_manage.authors).map((function(e,t){var r=wprm_admin_manage.authors[e].data;return o.createElement("option",{value:r.ID,key:t},r.ID,r.display_name?" - ".concat(Te().decode(r.display_name)):""," ")})))},Cell:function(e){return wprm_admin_manage.authors.hasOwnProperty(e.value)||(wprm_admin_manage.authors[e.value]={data:{ID:e.value,display_name:e.original.post_author_name}}),o.createElement("div",null,e.value&&"0"!==e.value?o.createElement("a",{href:e.original.post_author_link,target:"_blank"},e.value," - ",e.original.post_author_name):null)}},{Header:(0,b.S)("Display Author Type"),id:"author_display",accessor:"author_display",width:250,Filter:function(e){var t=e.filter,r=e.onChange;return o.createElement("select",{onChange:function(e){return r(e.target.value)},style:{width:"100%",fontSize:"1em"},value:t?t.value:"all"},o.createElement("option",{value:"all"},(0,b.S)("All Display Author Types")),wprm_admin_modal.options.author.map((function(e,t){return"same"===e.value?null:o.createElement("option",{value:e.value,key:t},e.label)})))},Cell:function(e){var t=wprm_admin_modal.options.author.find((function(t){return t.value===e.value}));return t?o.createElement("div",null,t.label):o.createElement("div",null)}},{Header:(0,b.S)("Display Author"),id:"author",accessor:"author",width:150,sortable:!1,filterable:!1,Cell:function(e){return e.value?o.createElement("div",{dangerouslySetInnerHTML:{__html:e.original.author}}):o.createElement("div",null)}},{Header:(0,b.S)("Status"),id:"status",accessor:"post_status",width:120,sortable:!1,Filter:function(e){var t=e.filter,r=e.onChange;return o.createElement("select",{onChange:function(e){return r(e.target.value)},style:{width:"100%",fontSize:"1em"},value:t?t.value:"all"},o.createElement("option",{value:"all"},(0,b.S)("All Statuses")),Object.keys(wprm_admin_manage.post_statuses).map((function(e,t){return o.createElement("option",{value:e,key:t},Te().decode(wprm_admin_manage.post_statuses[e]))})))},Cell:function(e){var t=Object.keys(wprm_admin_manage.post_statuses).includes(e.value)?wprm_admin_manage.post_statuses[e.value]:e.value;return o.createElement("div",null,t)}},{Header:(0,b.S)("Parent ID"),id:"parent_post_id",accessor:"parent_post_id",width:65,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(e){return e.value?o.createElement("div",null,e.value):o.createElement("div",null)}},{Header:(0,b.S)("Parent Name"),id:"parent_post",accessor:"parent_post",width:300,sortable:!1,Filter:function(e){var t=e.filter,r=e.onChange;return o.createElement("select",{onChange:function(e){return r(e.target.value)},style:{width:"100%",fontSize:"1em"},value:t?t.value:"all"},o.createElement("option",{value:"all"},(0,b.S)("Show All")),o.createElement("option",{value:"yes"},(0,b.S)("Has Parent Post")),o.createElement("option",{value:"no"},(0,b.S)("Does not have Parent Post")))},Cell:function(e){var t=e.value,r=!!e.original.parent_post_edit_url&&Te().decode(e.original.parent_post_edit_url);return t?r?o.createElement("a",{href:r,target:"_blank"},t.post_title):o.createElement("div",null,t.post_title):o.createElement("div",null)}}];wprm_admin_manage.multilingual&&t.push({Header:(0,b.S)("Parent Language"),id:"parent_post_language",accessor:"parent_post_language",width:150,sortable:!1,Filter:function(e){var t=e.filter,r=e.onChange;return o.createElement("select",{onChange:function(e){return r(e.target.value)},style:{width:"100%",fontSize:"1em"},value:t?t.value:"all"},o.createElement("option",{value:"all"},(0,b.S)("All Languages")),Object.values(wprm_admin_manage.multilingual.languages).map((function(e,t){return o.createElement("option",{value:e.value,key:t},"".concat(e.value," - ").concat(Te().decode(e.label)))})))},Cell:function(e){console.log(e);var t=!!wprm_admin_manage.multilingual.languages.hasOwnProperty(e.value)&&wprm_admin_manage.multilingual.languages[e.value];return t?o.createElement("div",null,"".concat(t.value," - ").concat(Te().decode(t.label))):o.createElement("div",null)}}),t.push({Header:(0,b.S)("Ratings"),id:"rating",accessor:"rating",width:200,Filter:function(e){var t=e.filter,r=e.onChange;return o.createElement("select",{onChange:function(e){return r(e.target.value)},style:{width:"100%",fontSize:"1em"},value:t?t.value:"all"},o.createElement("optgroup",{label:(0,b.S)("General")},o.createElement("option",{value:"all"},(0,b.S)("All Ratings")),o.createElement("option",{value:"none"},(0,b.S)("No Ratings")),o.createElement("option",{value:"any"},(0,b.S)("Any Rating"))),o.createElement("optgroup",{label:(0,b.S)("Stars")},o.createElement("option",{value:"1"},"1 ".concat((0,b.S)("star"))),o.createElement("option",{value:"2"},"2 ".concat((0,b.S)("stars"))),o.createElement("option",{value:"3"},"3 ".concat((0,b.S)("stars"))),o.createElement("option",{value:"4"},"4 ".concat((0,b.S)("stars"))),o.createElement("option",{value:"5"},"5 ".concat((0,b.S)("stars")))))},Cell:function(t){var r=t.value;return r.average&&"0"!==r.average?o.createElement("div",{className:"wprm-admin-manage-recipes-ratings-container"},o.createElement("div",{className:"wprm-admin-manage-recipes-ratings-average"},r.average),o.createElement("div",{className:"wprm-admin-manage-recipes-ratings-details"},!1===r.comment_ratings?o.createElement("div",{className:"wprm-admin-manage-recipes-ratings-details-none"},(0,b.S)("no comment ratings")):o.createElement("div",null,"".concat(r.comment_ratings.average," ").concat((0,b.S)("from")," ").concat(r.comment_ratings.count," ").concat(1===r.comment_ratings.count?(0,b.S)("comment"):(0,b.S)("comments"))),!1===r.user_ratings?o.createElement("div",{className:"wprm-admin-manage-recipes-ratings-details-none"},(0,b.S)("no user ratings")):o.createElement("div",null,"".concat(r.user_ratings.average," ").concat((0,b.S)("from")," ").concat(r.user_ratings.count," ").concat(1===r.user_ratings.count?(0,b.S)("vote"):(0,b.S)("votes")),o.createElement("a",{href:"#",onClick:function(r){r.preventDefault(),confirm("".concat((0,b.S)("Are you sure you want to delete the user ratings for"),' "').concat(t.original.name,'"?'))&&h.Z.manage.deleteUserRatings(t.original.id).then((function(){return e.refreshData()}))}},"(reset)")))):null}});var r=function(e){var r=wprm_admin_modal.categories[e];r.terms.sort((function(e,t){return e.name.localeCompare(t.name)})),t.push({Header:r.label,id:"tag_".concat(e),accessor:function(t){return t.tags[e]},width:300,sortable:!1,Filter:function(e){var t=e.filter,n=e.onChange;return o.createElement("select",{onChange:function(e){return n(e.target.value)},style:{width:"100%",fontSize:"1em"},value:t?t.value:"all"},o.createElement("optgroup",{label:(0,b.S)("General")},o.createElement("option",{value:"all"},"".concat((0,b.S)("All")," ").concat(r.label)),o.createElement("option",{value:"none"},"".concat((0,b.S)("No")," ").concat(r.label)),o.createElement("option",{value:"any"},"".concat((0,b.S)("Any")," ").concat(r.label))),o.createElement("optgroup",{label:(0,b.S)("Terms")},r.terms.map((function(e,t){return o.createElement("option",{value:e.term_id,key:t},Te().decode(e.name),e.count?" (".concat(e.count,")"):"")}))))},Cell:function(e){var t=e.value.map((function(e){return e.name})).join(", ");return o.createElement("div",null,t?Te().decode(t):null)}})};for(var n in wprm_admin_modal.categories)r(n);t.push({Header:(0,b.S)("Prep Time"),id:"prep_time",accessor:"prep_time",width:100,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(e){return o.createElement("div",null,Ze(e.value,e.original.prep_time_zero))}},{Header:(0,b.S)("Cook Time"),id:"cook_time",accessor:"cook_time",width:100,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(e){return o.createElement("div",null,Ze(e.value,e.original.cook_time_zero))}},{Header:(0,b.S)("Custom Time"),id:"custom_time",accessor:"custom_time",width:120,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(e){return o.createElement("div",null,o.createElement("div",null,e.original.custom_time_label),o.createElement("div",null,Ze(e.value,e.original.custom_time_zero)))}},{Header:(0,b.S)("Total Time"),id:"total_time",accessor:"total_time",width:100,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(e){return o.createElement("div",null,Ze(e.value))}},{Header:(0,b.S)("Servings"),id:"servings",accessor:"servings",width:100,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(e){return o.createElement("div",null,"0"===e.value?"":e.value," ",e.original.servings_unit)}},{Header:(0,b.S)("Equipment"),id:"equipment",accessor:"equipment",width:300,sortable:!1,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(e){return o.createElement("div",null,e.value?e.value.map((function(e,t){if(e.name){var r=e.name.replace(/(<([^>]+)>)/gi,"").trim();if(r)return o.createElement("div",{key:t},Te().decode(r))}})):null)}},{Header:(0,b.S)("Ingredients"),id:"ingredient",accessor:"ingredients",width:300,sortable:!1,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(e){return o.createElement("div",null,e.value?e.value.map((function(e,t){return e.name=e.name.replace(/(<([^>]+)>)/gi,"").trim(),o.createElement("div",{key:t},e.name&&o.createElement("div",{style:{fontWeight:"bold"}},Te().decode(e.name)),e.ingredients.map((function(e,t){var r=[];if(e.amount&&r.push(e.amount),e.unit&&r.push(e.unit),e.name&&r.push(e.name),e.notes&&r.push(e.notes),r.length){var n=r.join(" ").replace(/(<([^>]+)>)/gi,"").trim();if(n)return o.createElement("div",{key:t},Te().decode(n))}})))})):null)}},{Header:(0,b.S)("Converted Ingredients"),id:"unit_conversion",accessor:"unit_conversion",width:300,sortable:!1,filterable:!1,Cell:function(e){return Array.isArray(e.value)?o.createElement("div",null,e.value.map((function(e,t){if(e=e.replace(/(<([^>]+)>)/gi,"").trim())return o.createElement("div",{key:t},Te().decode(e))}))):o.createElement("div",null,e.value)}},{Header:(0,b.S)("Nutrition"),id:"nutrition",accessor:"nutrition",width:250,sortable:!1,filterable:!1,Cell:function(e){return o.createElement("div",{className:"wprm-manage-recipes-nutrition-container"},Object.keys(wprm_admin_modal.nutrition).map((function(t,r){var n=wprm_admin_modal.nutrition[t],i=!!e.value.hasOwnProperty(t)&&e.value[t],a=n.unit;return"serving_size"===t&&e.value.hasOwnProperty("serving_unit")&&e.value.serving_unit&&(a=e.value.serving_unit),!1===i?null:"calories"===t||wprm_admin.addons.premium?o.createElement("div",{className:"wprm-manage-recipes-nutrition",key:r},o.createElement("div",{className:"wprm-manage-recipes-nutrition-label"},n.label),o.createElement("div",{className:"wprm-manage-recipes-nutrition-value-unit"},o.createElement("span",{className:"wprm-manage-recipes-nutrition-value"},i),o.createElement("span",{className:"wprm-manage-recipes-nutrition-unit"},a))):null})))}}),wprm_admin.addons.elite&&t.push({Header:(0,b.S)("Recipe Submission User"),id:"submission_author",accessor:"submission_author",width:300,sortable:!1,Filter:function(e){var t=e.filter,r=e.onChange;return o.createElement("select",{onChange:function(e){return r(e.target.value)},style:{width:"100%",fontSize:"1em"},value:t?t.value:"all"},o.createElement("option",{value:"all"},(0,b.S)("Show All")),o.createElement("option",{value:"yes"},(0,b.S)("Was Recipe Submission")),o.createElement("option",{value:"no"},(0,b.S)("Was not a Recipe Submission")))},Cell:function(e){var t=e.value;if(!t)return null;var r=t.name?t.name:e.original.submission_author_user_name?e.original.submission_author_user_name:"";return o.createElement("div",{className:"wprm-admin-manage-recipe-submission-user"},o.createElement("div",{className:"wprm-admin-manage-recipe-submission-user-name"},t.id?o.createElement("a",{href:e.original.submission_author_user_link,target:"_blank"},"#",t.id):null,r?o.createElement("span",null," - ",r):null),t.email?o.createElement("div",{className:"wprm-admin-manage-recipe-submission-user-email"},t.email):null)}});var i,a=Oe(wprm_admin_modal.custom_fields&&wprm_admin_modal.custom_fields.fields?Object.values(wprm_admin_modal.custom_fields.fields):[]);try{var c=function(){var e=i.value;t.push({Header:e.name,id:"custom_field_".concat(e.key),accessor:"custom_fields",width:150,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(t){if(!t.value.hasOwnProperty(e.key)||!t.value[e.key])return null;var r=t.value[e.key];return"image"===e.type?o.createElement("div",{style:{width:"100%"}},r.hasOwnProperty("url")&&r.url?o.createElement("img",{src:r.url,className:"wprm-admin-manage-image"}):null):"textarea"===e.type?o.createElement("div",{dangerouslySetInnerHTML:{__html:r}}):"link"===e.type?o.createElement("a",{href:r,target:"_blank"},r):"email"===e.type?o.createElement("a",{href:"mailto:".concat(r)},r):o.createElement("div",null,r)}})};for(a.s();!(i=a.n()).done;)c()}catch(l){a.e(l)}finally{a.f()}return t}},ze={getColumns:function(e){return[(0,Pe.Z)(e),{Header:(0,b.S)("Sort:"),id:"actions",headerClassName:"wprm-admin-table-help-text",sortable:!1,width:70,Filter:function(){return o.createElement("div",null,(0,b.S)("Filter:"))},Cell:function(t){return o.createElement("div",{className:"wprm-admin-manage-actions"},o.createElement(v.Z,{type:"eye",title:(0,b.S)("View Revision"),onClick:function(){WPRM_Modal.open("recipe",{recipe:t.original.recipe_data,restoreRevision:!0,saveCallback:function(){return e.refreshData()}})}}),o.createElement(v.Z,{type:"trash",title:(0,b.S)("Delete Revision"),onClick:function(){confirm("".concat((0,b.S)("Are you sure you want to delete"),' "').concat(t.original.post_title,'"?'))&&h.Z.recipe.deleteRevision(t.original.id).then((function(){return e.refreshData()}))}}))}},{Header:(0,b.S)("Recipe ID"),id:"recipe_id",accessor:"post_parent",width:75,Filter:function(e){return o.createElement(Me.Z,e)}},{Header:(0,b.S)("Revision ID"),id:"id",accessor:"id",width:75,Filter:function(e){return o.createElement(Me.Z,e)}},{Header:(0,b.S)("Date"),id:"date",accessor:"post_date",width:150,Filter:function(e){return o.createElement(Me.Z,e)}},{Header:(0,b.S)("Name"),id:"name",accessor:"post_title",Filter:function(e){return o.createElement(Me.Z,e)}},{Header:(0,b.S)("Recipe Data Size"),id:"recipe_data",accessor:"recipe_data",sortable:!1,filterable:!1,width:150,Cell:function(e){var t=JSON.stringify(wprm_admin_modal.recipe).length,r=JSON.stringify(e.value).length;return o.createElement("div",null,Math.max(r-t,0).toLocaleString())}}]}},_e=r(5308);function Be(e){return function(e){if(Array.isArray(e))return Ge(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ge(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ge(e,t)}(e)||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.")}()}function Ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Ue={getColumns:function(e){var t=wprm_admin_modal.options.hasOwnProperty("".concat(e.props.options.id,"_link_nofollow"))?wprm_admin_modal.options["".concat(e.props.options.id,"_link_nofollow")]:wprm_admin_modal.options.term_link_nofollow,r=[];return"suitablefordiet"!==e.props.options.id&&r.push((0,Pe.Z)(e,"term_id")),r=[].concat(Be(r),[{Header:(0,b.S)("Sort:"),id:"actions",headerClassName:"wprm-admin-table-help-text",sortable:!1,width:"suitablefordiet"===e.props.options.id?65:100,Filter:function(){return o.createElement("div",null,(0,b.S)("Filter:"))},Cell:function(t){return o.createElement("div",{className:"wprm-admin-manage-actions"},"suitablefordiet"===e.props.options.id?o.createElement(v.Z,{type:"pencil",title:"".concat((0,b.S)("Rename")," ").concat(e.props.options.label.singular),onClick:function(){var r=prompt("".concat((0,b.S)("What do you want to be the new name for"),' "').concat(t.original.label,'"?'),t.original.label);r&&r.trim()&&h.Z.manage.renameTermLabel(e.props.options.id,t.original.term_id,r).then((function(){return e.refreshData()}))}}):o.createElement(o.Fragment,null,o.createElement(v.Z,{type:"pencil",title:"".concat((0,b.S)("Rename")," ").concat(e.props.options.label.singular),onClick:function(){var r=prompt("".concat((0,b.S)("What do you want to be the new name for"),' "').concat(t.original.name,'"?'),t.original.name);r&&r.trim()&&h.Z.manage.renameTerm(e.props.options.id,t.original.term_id,r).then((function(){return e.refreshData()}))}}),o.createElement(v.Z,{type:"merge",title:"".concat((0,b.S)("Merge into another")," ").concat(e.props.options.label.singular),onClick:function(){var r=prompt("".concat((0,b.S)("What is the ID of the term you want the merge"),' "').concat(t.original.name,'" ').concat((0,b.S)("into"),"?"));r&&r!=t.original.term_id&&r.trim()&&h.Z.manage.getTerm(e.props.options.id,r).then((function(n){n?confirm("".concat((0,b.S)("Are you sure you want to merge"),' "').concat(t.original.name,'" ').concat((0,b.S)("into"),' "').concat(n.name,'"?'))&&h.Z.manage.mergeTerm(e.props.options.id,t.original.term_id,r).then((function(){return e.refreshData()})):alert((0,b.S)("We could not find a term with that ID."))}))}}),o.createElement(v.Z,{type:"trash",title:"".concat((0,b.S)("Delete")," ").concat(e.props.options.label.singular),onClick:function(){confirm("".concat((0,b.S)("Are you sure you want to delete"),' "').concat(t.original.name,'"?'))&&h.Z.manage.deleteTerm(e.props.options.id,t.original.term_id).then((function(){return e.refreshData()}))}})))}},{Header:(0,b.S)("ID"),id:"id",accessor:"term_id",width:65,Filter:function(e){return o.createElement(Me.Z,e)}},{Header:"suitablefordiet"===e.props.options.id?(0,b.S)("Diet"):(0,b.S)("Name"),id:"name",accessor:"name",Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(e){return e.value?Te().decode(e.value):null}},{Header:(0,b.S)("Recipes"),id:"count",accessor:"count",filterable:!1,width:65}]),"suitablefordiet"===e.props.options.id&&r.push({Header:(0,b.S)("Label"),id:"label",accessor:"label",sortable:!1,filterable:!1,Cell:function(e){return e.value?Te().decode(e.value):null}}),"ingredient"===e.props.options.id&&wprm_admin.addons.premium&&r.push({Header:(0,b.S)("Shopping List Group"),id:"group",accessor:"group",width:200,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(t){return o.createElement("div",{className:"wprm-manage-ingredients-group-container"},o.createElement(v.Z,{type:"pencil",title:(0,b.S)("Change Group"),onClick:function(){var r=prompt("".concat((0,b.S)("What do you want to be the new group for"),' "').concat(t.original.name,'"?'),t.value);!1!==r&&h.Z.manage.updateTaxonomyMeta("ingredient",t.original.term_id,{group:r}).then((function(){return e.refreshData()}))}}),t.value?o.createElement("span",null,t.value):null)}}),"ingredient"!==e.props.options.id&&wprm_admin.addons.premium&&r.push({Header:(0,b.S)("Image"),id:"image_id",accessor:"image_id",width:110,sortable:!1,Filter:function(e){var t=e.filter,r=e.onChange;return o.createElement("select",{onChange:function(e){return r(e.target.value)},style:{width:"100%",fontSize:"1em"},value:t?t.value:"all"},o.createElement("option",{value:"all"},(0,b.S)("Show All")),o.createElement("option",{value:"yes"},(0,b.S)("Has Image")),o.createElement("option",{value:"no"},(0,b.S)("Does not have Image")))},Cell:function(t){var r=function(r){r.preventDefault(),_e.Z.selectImage((function(r){h.Z.manage.updateTaxonomyMeta(e.props.options.id,t.original.term_id,{image_id:r.id}).then((function(){return e.refreshData()}))}))};return o.createElement("div",{className:"wprm-manage-image-container"},t.value?o.createElement("div",{className:"wprm-manage-image-preview"},o.createElement(ke.Z,{content:(0,b.S)("Edit Image")},o.createElement("img",{src:t.original.image_url,onClick:r})),o.createElement(v.Z,{type:"trash",title:(0,b.S)("Remove Image"),onClick:function(){h.Z.manage.updateTaxonomyMeta(e.props.options.id,t.original.term_id,{image_id:0}).then((function(){return e.refreshData()}))}})):o.createElement(v.Z,{type:"photo",title:(0,b.S)("Add Image"),onClick:r}))}}),wprm_admin.addons.premium&&(window.hasOwnProperty("EAFL_Modal")&&r.push({Header:(0,b.S)("Easy Affiliate Links"),id:"eafl",accessor:"eafl",width:300,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(t){return o.createElement("div",{className:"wprm-manage-ingredients-eafl-container"},t.value?o.createElement(o.Fragment,null,o.createElement(v.Z,{type:"eafl-link",title:(0,b.S)("Edit Link"),onClick:function(){t.original.hasOwnProperty("eafl_details")?EAFL_Modal.open("edit",{link:t.original.eafl_details,saveCallback:function(){return e.refreshData()}}):alert((0,b.S)("An Affiliate Link with this ID cannot be found. Try deleting and adding it again."))}})," ",o.createElement(v.Z,{type:"eafl-unlink",title:(0,b.S)("Remove Link"),onClick:function(){confirm((0,b.S)("Are you sure you want to delete this link?"))&&h.Z.manage.updateTaxonomyMeta(e.props.options.id,t.original.term_id,{eafl:""}).then((function(){return e.refreshData()}))}}),o.createElement("div",{className:"wprm-manage-ingredients-eafl-details"},t.original.hasOwnProperty("eafl_details")?o.createElement(o.Fragment,null,o.createElement("div",null,"#",t.value," - ",t.original.eafl_details.name),o.createElement("div",null,o.createElement("a",{href:t.original.eafl_details.url,target:"_blank"},t.original.eafl_details.url))):o.createElement("div",null,"#",t.value," - ",(0,b.S)("n/a")))):o.createElement(v.Z,{type:"eafl-link",title:(0,b.S)("Set Affiliate Link"),onClick:function(){EAFL_Modal.open("insert",{insertCallback:function(r){h.Z.manage.updateTaxonomyMeta(e.props.options.id,t.original.term_id,{eafl:r.id}).then((function(){return e.refreshData()}))},selectedText:t.original.name})}}))}}),r.push({Header:(0,b.S)("Link"),id:"link",accessor:"link",width:300,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(t){return o.createElement("div",{className:"wprm-manage-ingredients-link-container"},o.createElement(v.Z,{type:"pencil",title:(0,b.S)("Change Link"),onClick:function(){var r=prompt("".concat((0,b.S)("What do you want to be the new link for"),' "').concat(t.original.name,'"?'),t.value);!1!==r&&(""===r||"http"===r.substring(0,4)||confirm('"'.concat(r,'" ').concat((0,b.S)("does not start with http:// or https:// as we would expect for a link. Are you sure you want to use this? Regular HTML code will not work here."))))&&h.Z.manage.updateTaxonomyMeta(e.props.options.id,t.original.term_id,{link:r}).then((function(){return e.refreshData()}))}}),t.value?o.createElement("a",{href:t.value,target:"_blank"},t.value):null)}},{Header:(0,b.S)("Link Nofollow"),id:"link_nofollow",accessor:"link_nofollow",width:250,Filter:function(e){var r=e.filter,n=e.onChange;return o.createElement("select",{onChange:function(e){return n(e.target.value)},style:{width:"100%",fontSize:"1em"},value:r?r.value:"all"},o.createElement("option",{value:"all"},(0,b.S)("Any Nofollow")),t.map((function(e,t){return o.createElement("option",{value:e.value,key:t},e.label)})))},Cell:function(r){return o.createElement("div",null,r.original.link?o.createElement("select",{onChange:function(t){h.Z.manage.updateTaxonomyMeta(e.props.options.id,r.original.term_id,{link_nofollow:t.target.value}).then((function(){return e.refreshData()}))},style:{width:"100%",fontSize:"1em"},value:r.value},t.map((function(e,t){return o.createElement("option",{value:e.value,key:t},e.label)}))):null)}})),"equipment"===e.props.options.id&&wprm_admin.addons.premium&&r.push({Header:(0,b.S)("Affiliate HTML"),id:"affiliate_html",accessor:"affiliate_html",width:500,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(t){return o.createElement("div",{className:"wprm-manage-equipment-affiliate-html-container"},o.createElement(v.Z,{type:"pencil",title:(0,b.S)("Change HTML"),onClick:function(){WPRM_Modal.open("input-fields",{header:(0,b.S)("Change Affiliate HTML"),fields:[{label:"HTML",type:"textarea",value:t.value}],insertCallback:function(r){var n=r.fields[0].value;h.Z.manage.updateTaxonomyMeta("equipment",t.original.term_id,{affiliate_html:n}).then((function(){return e.refreshData()}))}})}}),o.createElement("span",{className:"wprm-manage-equipment-affiliate-html"},t.value))}}),window.hasOwnProperty("wpupg_admin")&&(r.push({Header:(0,b.S)("Grid Link"),id:"wpupg_custom_link",accessor:"wpupg_custom_link",width:300,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(t){return o.createElement("div",{className:"wprm-manage-ingredients-link-container"},o.createElement(v.Z,{type:"pencil",title:(0,b.S)("Change Link"),onClick:function(){var r=prompt("".concat((0,b.S)("What do you want to be the new grid link for"),' "').concat(t.original.name,'"?'),t.value);!1!==r&&(""===r||"http"===r.substring(0,4)||confirm('"'.concat(r,'" ').concat((0,b.S)("does not start with http:// or https:// as we would expect for a link. Are you sure you want to use this? Regular HTML code will not work here."))))&&h.Z.manage.updateTaxonomyMeta(e.props.options.id,t.original.term_id,{wpupg_custom_link:r}).then((function(){return e.refreshData()}))}}),t.value?o.createElement("a",{href:t.value,target:"_blank"},t.value):null)}}),r.push({Header:(0,b.S)("Grid Image"),id:"wpupg_custom_image",accessor:"wpupg_custom_image",width:110,sortable:!1,Filter:function(e){var t=e.filter,r=e.onChange;return o.createElement("select",{onChange:function(e){return r(e.target.value)},style:{width:"100%",fontSize:"1em"},value:t?t.value:"all"},o.createElement("option",{value:"all"},(0,b.S)("Show All")),o.createElement("option",{value:"yes"},(0,b.S)("Has Image")),o.createElement("option",{value:"no"},(0,b.S)("Does not have Image")))},Cell:function(t){var r=function(r){r.preventDefault(),_e.Z.selectImage((function(r){h.Z.manage.updateTaxonomyMeta(e.props.options.id,t.original.term_id,{wpupg_custom_image:r.id}).then((function(){return e.refreshData()}))}))};return o.createElement("div",{className:"wprm-manage-image-container"},t.value?o.createElement("div",{className:"wprm-manage-image-preview"},o.createElement(ke.Z,{content:(0,b.S)("Edit Image")},o.createElement("img",{src:t.original.wpupg_custom_image_url,width:"80",onClick:r})),o.createElement(v.Z,{type:"trash",title:(0,b.S)("Remove Image"),onClick:function(){h.Z.manage.updateTaxonomyMeta(e.props.options.id,t.original.term_id,{wpupg_custom_image:0}).then((function(){return e.refreshData()}))}})):o.createElement(v.Z,{type:"photo",title:(0,b.S)("Add Image"),onClick:r}))}})),r}},We={getColumns:function(e){return[(0,Pe.Z)(e),{Header:(0,b.S)("Sort:"),id:"actions",headerClassName:"wprm-admin-table-help-text",sortable:!1,width:70,Filter:function(){return o.createElement("div",null,(0,b.S)("Filter:"))},Cell:function(t){return o.createElement("div",{className:"wprm-admin-manage-actions"},o.createElement(v.Z,{type:"restore",title:(0,b.S)("Restore Recipe"),onClick:function(){h.Z.recipe.updateStatus(t.original.id,"draft").then((function(){return e.refreshData()}))}}),o.createElement(v.Z,{type:"trash",title:(0,b.S)("Permanently Delete"),onClick:function(){confirm("".concat((0,b.S)("Are you sure you want to delete"),' "').concat(t.original.name,'"?'))&&h.Z.recipe.delete(t.original.id,!0).then((function(){return e.refreshData()}))}}))}},{Header:(0,b.S)("ID"),id:"id",accessor:"id",width:65,Filter:function(e){return o.createElement(Me.Z,e)}},{Header:(0,b.S)("Date"),id:"date",accessor:"date",width:150,Filter:function(e){return o.createElement(Me.Z,e)}},{Header:(0,b.S)("Name"),id:"name",accessor:"name",width:300,Filter:function(e){return o.createElement(Me.Z,e)}}]}};function qe(e){return(qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Fe={getColumns:function(e){return[(0,Pe.Z)(e),{Header:(0,b.S)("Sort:"),id:"actions",headerClassName:"wprm-admin-table-help-text",sortable:!1,width:40,Filter:function(){return o.createElement("div",null,(0,b.S)("Filter:"))},Cell:function(t){return o.createElement("div",{className:"wprm-admin-manage-actions"},o.createElement(v.Z,{type:"trash",title:(0,b.S)("Delete Action"),onClick:function(){confirm((0,b.S)("Are you sure you want to delete this action?"))&&h.Z.analytics.delete(t.original.id).then((function(){return e.refreshData()}))}}))}},{Header:(0,b.S)("Date"),id:"created_at",accessor:"created_at",width:150,Filter:function(e){return o.createElement(Me.Z,e)}},{Header:(0,b.S)("Action"),id:"type",accessor:"type",width:150,sortable:!1,Filter:function(e){return o.createElement(Me.Z,e)}},{Header:(0,b.S)("Action Details"),id:"meta",accessor:"meta",width:200,sortable:!1,filterable:!1,Cell:function(e){return o.createElement("div",null,"object"===qe(e.value)?Object.keys(e.value).map((function(t,r){return o.createElement("div",{key:r},o.createElement("strong",null,t,":")," ",e.value[t].toString())})):null)}},{Header:(0,b.S)("Recipe ID"),id:"recipe_id",accessor:"recipe_id",width:350,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(t){if(!t.value||"0"===t.value)return o.createElement("div",null);var r="".concat(t.value," - ").concat(t.original.recipe?t.original.recipe:(0,b.S)("n/a"));return o.createElement("div",null,t.original.recipe?o.createElement("a",{href:"#",onClick:function(r){r.preventDefault(),WPRM_Modal.open("recipe",{recipeId:t.value,saveCallback:function(){return e.refreshData()}})}},r):r)}},{Header:(0,b.S)("Parent Post ID"),id:"post_id",accessor:"post_id",width:350,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(e){if(!e.value||"0"===e.value)return o.createElement("div",null);var t="".concat(e.value," - ").concat(e.original.post?e.original.post:(0,b.S)("n/a"));return o.createElement("div",null,e.original.post_link?o.createElement("a",{href:Te().decode(e.original.post_link),target:"_blank"},t):t)}},{Header:(0,b.S)("User ID"),id:"user_id",accessor:"user_id",width:150,Filter:function(e){return o.createElement(Me.Z,e)},Cell:function(e){if(!e.value||"0"===e.value)return o.createElement("div",null);var t="".concat(e.value," - ").concat(e.original.user?e.original.user:(0,b.S)("n/a"));return o.createElement("div",null,e.original.user_link?o.createElement("a",{href:Te().decode(e.original.user_link),target:"_blank"},t):t)}},{Header:(0,b.S)("Visitor UID"),id:"visitor_id",accessor:"visitor_id",width:175,Filter:function(e){return o.createElement(Me.Z,e)}},{Header:(0,b.S)("Visitor Details"),id:"visitor",accessor:"visitor",width:200,sortable:!1,filterable:!1,Cell:function(e){return o.createElement("div",null,"object"===qe(e.value)?Object.keys(e.value).map((function(t,r){return o.createElement("div",{key:r},o.createElement("strong",null,t,":")," ",e.value[t].toString())})):null)}}]}},Ve={recipe:{parent:(0,b.S)("Recipes"),title:(0,b.S)("Overview"),id:"recipe",route:"recipe",label:{singular:(0,b.S)("Recipe"),plural:(0,b.S)("Recipes")},bulkEdit:{route:"recipe",type:"recipe"},createButton:function(e){WPRM_Modal.open("recipe",{saveCallback:function(){return e.refreshData()}})},selectedColumns:["seo","id","date","name","parent_post","rating"],columns:He}};wprm_admin_manage.revisions&&(Ve.revision={parent:(0,b.S)("Recipes"),id:"revision",route:"revision",label:{singular:(0,b.S)("Revision"),plural:(0,b.S)("Revisions")},bulkEdit:{route:"revision",type:"revision"},createButton:!1,selectedColumns:!1,columns:ze}),Ve.trash={parent:(0,b.S)("Recipes"),title:"".concat((0,b.S)("Trash")," (").concat(wprm_admin_manage.trash,")"),id:"trash",route:"trash",label:{singular:(0,b.S)("Recipe"),plural:(0,b.S)("Recipes")},bulkEdit:{route:"trash",type:"trash"},createButton:!1,selectedColumns:!1,columns:We},Ve.ingredient={parent:(0,b.S)("Recipe Fields"),id:"ingredient",route:"taxonomy",label:{singular:(0,b.S)("Ingredient"),plural:(0,b.S)("Ingredients")},bulkEdit:{route:"taxonomy",type:"ingredient"},createButton:function(e){var t=prompt((0,b.S)("What do you want to be the name of this new ingredient?"));t&&t.trim()&&h.Z.manage.createTerm("ingredient",t).then((function(t){t?e.refreshData():alert((0,b.S)("We were not able to create this ingredient. Make sure it does not exist yet."))}))},selectedColumns:!1,columns:Ue},Ve.equipment={parent:(0,b.S)("Recipe Fields"),id:"equipment",route:"taxonomy",label:{singular:(0,b.S)("Equipment"),plural:(0,b.S)("Equipment")},bulkEdit:{route:"taxonomy",type:"equipment"},createButton:function(e){var t=prompt((0,b.S)("What do you want to be the name of this new equipment?"));t&&t.trim()&&h.Z.manage.createTerm("equipment",t).then((function(t){t?e.refreshData():alert((0,b.S)("We were not able to create this equipment. Make sure it does not exist yet."))}))},selectedColumns:!1,columns:Ue},Object.keys(wprm_admin_manage.taxonomies).map((function(e){var t=wprm_admin_manage.taxonomies[e],r=e.substr(5);Ve["tag_"+r]="suitablefordiet"===r?{parent:(0,b.S)("Recipe Fields"),id:r,route:"taxonomy",label:{singular:t.singular_name,plural:t.name},bulkEdit:!1,createButton:!1,selectedColumns:["id","name","label","count"],columns:Ue}:{parent:(0,b.S)("Recipe Fields"),id:r,route:"taxonomy",label:{singular:t.singular_name,plural:t.name},bulkEdit:{route:"taxonomy",type:r},createButton:function(e){var t=prompt((0,b.S)("What do you want to be the name of this new term?"));t&&t.trim()&&h.Z.manage.createTerm(r,t).then((function(t){t?(e.refreshData(),wprm_admin_modal.categories[r].terms.push({term_id:t.id,name:t.name,count:0})):alert((0,b.S)("We were not able to create this term. Make sure it does not exist yet."))}))},selectedColumns:["id","name","count"],columns:Ue}})),Ve.taxonomies={required:"premium",parent:(0,b.S)("Your Custom Fields"),id:"taxonomies",label:{singular:(0,b.S)("Recipe Taxonomy"),plural:(0,b.S)("Recipe Taxonomies")}},Ve["custom-fields"]={required:"pro",parent:(0,b.S)("Your Custom Fields"),id:"custom-fields",label:{singular:(0,b.S)("Custom Field"),plural:(0,b.S)("Custom Fields")}},Ve.nutrition={required:"pro",parent:(0,b.S)("Your Custom Fields"),id:"nutrition_ingredient",label:{singular:(0,b.S)("Custom Nutrition Ingredient"),plural:(0,b.S)("Custom Nutrition")}},Ve.nutrients={required:"premium",parent:(0,b.S)("Your Custom Fields"),id:"nutrition_ingredient",label:{singular:(0,b.S)("Custom Nutrient"),plural:(0,b.S)("Custom Nutrients")}},Ve.rating={parent:(0,b.S)("Features"),id:"rating",route:"rating",label:{singular:(0,b.S)("Rating"),plural:(0,b.S)("Ratings")},bulkEdit:{route:"rating",type:"rating"},createButton:!1,selectedColumns:["date","rating","type","user_id","ip"],columns:je},Ve.collections={required:"elite",parent:(0,b.S)("Features"),id:"collections",label:{singular:(0,b.S)("Saved Collection"),plural:(0,b.S)("Saved Collections")}},Ve["user-collections"]={required:"elite",parent:(0,b.S)("Features"),id:"user-collections",label:{singular:(0,b.S)("User Collection"),plural:(0,b.S)("User Collections")}},Ve["recipe-submission"]={required:"elite",parent:(0,b.S)("Features"),title:(0,b.S)("Recipe Submissions"),id:"recipe-submission",label:{singular:(0,b.S)("Recipe Submission"),plural:(0,b.S)("Recipe Submissions")}},Ve.analytics={parent:(0,b.S)("Analytics"),title:(0,b.S)("Overview"),id:"analytics",route:"analytics",label:{singular:(0,b.S)("Action"),plural:(0,b.S)("Actions")},bulkEdit:{route:"analytics",type:"analytics"},createButton:!1,selectedColumns:["created_at","type","recipe_id","post_id","user_id"],columns:Fe};var Je=Ve;function Ye(e){return(Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ke(e,t){return(Ke=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $e(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=tt(e);if(t){var o=tt(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return et(this,r)}}function et(e,t){return!t||"object"!==Ye(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function tt(e){return(tt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var rt=WPRecipeMaker["wp-recipe-maker/dist/shared"].hooks,nt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ke(e,t)}(c,e);var t,r,n,i=$e(c);function c(){return Qe(this,c),i.apply(this,arguments)}return t=c,(r=[{key:"render",value:function(){var e=rt.applyFilters("datatables",Je);return o.createElement(ce.Z,{module:"Manage"},o.createElement("div",{id:"wprm-admin-manage-header"},o.createElement(g,{datatables:e}),o.createElement(T,null)),o.createElement("div",{id:"wprm-admin-manage-content"},o.createElement(a.AW,{path:"/:type?",render:function(t){var r=t.match,n="recipe";return r.params.type&&Object.keys(e).includes(r.params.type)&&(n=r.params.type),e.hasOwnProperty(n)?o.createElement(xe,{type:n,options:e[n]}):null}})))}}])&&Xe(t.prototype,r),n&&Xe(t,n),c}(o.Component);r.g._babelPolyfill||r(28059);var ot=document.getElementById("wprm-admin-manage");ot&&n.render(o.createElement(i.UT,{hashType:"noslash"},o.createElement(nt,null)),ot)},80416:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});r(26364),r(86632),r(61928),r(19701),r(54883),r(56908),r(10853),r(54130),r(33290),r(45007),r(68995);var n=r(89526);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=s(e);if(t){var o=s(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return l(this,r)}}function l(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?u(e):t}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(s,e);var t,r,o,l=c(s);function s(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=l.call(this,e)).debouncedTimer=!1;var r="";return e.filter&&e.filter.value&&(r=e.filter.value),t.state={value:r,passedValue:r},t.onChange=t.onChange.bind(u(t)),t.updateFilter=t.updateFilter.bind(u(t)),t}return t=s,(r=[{key:"onChange",value:function(e){var t=this;clearTimeout(this.debouncedTimer),e!==this.state.passedValue&&(this.debouncedTimer=setTimeout((function(){t.updateFilter(e)}),500)),this.setState({value:e})}},{key:"updateFilter",value:function(e){this.props.onChange(e),this.setState({passedValue:e})}},{key:"render",value:function(){var e=this;return n.createElement("input",{className:"wprm-admin-manage-text-filter",type:"text",value:this.state.value,onChange:function(t){return e.onChange(t.target.value)}})}}])&&i(t.prototype,r),o&&i(t,o),s}(n.Component)},94341:function(e,t,r){"use strict";var n=r(89526),o=r(52082);t.Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"id";return{Header:(0,o.S)("Bulk Edit"),id:"bulk_edit",className:"wprm-admin-table-checkbox-container",headerClassName:"wprm-admin-table-checkbox-container",sortable:!1,width:30,Filter:function(){return n.createElement("input",{type:"checkbox",checked:1===e.state.selectedAllRows,ref:function(t){t&&(t.indeterminate=2===e.state.selectedAllRows)},onChange:function(){return e.toggleSelectAll()}})},Cell:function(r){return n.createElement("input",{type:"checkbox",checked:!0===e.state.selectedRows[r.original[t]],onChange:function(){return e.toggleSelectRow(r.original[t])}})}}}},5308:function(e,t,r){"use strict";r(87191);var n=r(52082),o={selectImage:function(e){this.select("image",e)},selectVideo:function(e){this.select("video",e)},select:function(e,t){var r={title:(0,n.S)("Select Media"),button:{text:(0,n.S)("Select")},multiple:!1};"video"===e?(r.frame="video",r.state="video-details"):r.library={type:"image"};var o=wp.media(r);o.on("select",(function(){var e=o.state().get("selection").first().toJSON();t(e)})),o.on("update",(function(){var e=o.state().media.attachment;e&&t(e)})),o.open()}};t.Z=o},37673:function(e,t,r){"use strict";r.d(t,{Z:function(){return A}});r(55862);var n=r(46087),o=wprm_admin.endpoints.analytics,i={delete:function(e){return n.Z.call("".concat(o,"/").concat(e),"DELETE")}},a=wprm_admin.endpoints.notices,c={dismissNotice:function(e){var t={id:e};return n.Z.call(a,"DELETE",t)}},l=wprm_admin.endpoints.modal,u={parseIngredients:function(e){var t={ingredients:e};return n.Z.call("".concat(l,"/ingredient/parse"),"POST",t)}},s=(r(10853),r(35054),wprm_admin.endpoints.manage),p=wprm_admin.endpoints.rating,d=wprm_admin.endpoints.taxonomy,f=!1,m=!1,g={getData:function(e){return f?(m=e,new Promise((function(e){return e(!1)}))):this.getDataDebounced(e)},getDataDebounced:function(e){var t=this;return f=!0,n.Z.call("".concat(s,"/").concat(e.route),"POST",e).then((function(e){if(m){var r=m;return m=!1,t.getDataDebounced(r)}return f=!1,e}))},deleteUserRatings:function(e){return n.Z.call("".concat(p,"/recipe/").concat(e),"DELETE")},getTerm:function(e,t){return n.Z.call("".concat(d).concat(e,"/").concat(t))},createTerm:function(e,t){var r={name:t};return n.Z.call("".concat(d).concat(e),"POST",r)},deleteTerm:function(e,t){return n.Z.call("".concat(d).concat(e,"/").concat(t,"?force=true"),"DELETE")},renameTerm:function(e,t,r){var o={name:r};return n.Z.call("".concat(d).concat(e,"/").concat(t),"POST",o)},renameTermLabel:function(e,t,r){var o={type:e,id:t,label:r};return n.Z.call("".concat(s,"/taxonomy/label"),"POST",o)},mergeTerm:function(e,t,r){var o={type:e,oldId:t,newId:r};return n.Z.call("".concat(s,"/taxonomy/merge"),"POST",o)},updateTaxonomyMeta:function(e,t,r){var o={};return o[e]=r,n.Z.call("".concat(d).concat(e,"/").concat(t),"POST",o)},bulkEdit:function(e,t,r,o){var i={type:t,ids:r,action:o};return n.Z.call("".concat(s,"/").concat(e,"/bulk"),"POST",i)}},h=wprm_admin.endpoints.modal,v=!1,b=!1,y={getSuggestions:function(e){return v?(b=e,new Promise((function(e){return e(!1)}))):this.getSuggestionsDebounced(e)},getSuggestionsDebounced:function(e){var t=this;return v=!0,n.Z.call("".concat(h,"/suggest"),"POST",e).then((function(e){if(b){var r=b;return b=!1,t.getSuggestionsDebounced(r)}return v=!1,e}))}},w=wprm_admin.endpoints.rating,I={update:function(e){var t={rating:e};return n.Z.call("".concat(w),"POST",t)},delete:function(e){return n.Z.call("".concat(w,"/").concat(e),"DELETE")}},S=wprm_admin.endpoints.recipe,E=wprm_admin.endpoints.manage,x={get:function(e){return n.Z.call("".concat(S,"/").concat(e))},save:function(e){var t={recipe:e},r=S,o="POST",i=!!e.id&&parseInt(e.id);return i&&(r+="/".concat(i),o="PUT"),n.Z.call(r,o,t)},updateStatus:function(e,t){var r={status:t};return n.Z.call("".concat(S,"/").concat(e),"PUT",r)},delete:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r="".concat(S,"/").concat(e);return t&&(r+="?force=true"),n.Z.call(r,"DELETE")},deleteRevision:function(e){return n.Z.call("".concat(E,"/revision/").concat(e),"DELETE")}},D=wprm_admin.endpoints.setting,T={save:function(e){var t={settings:e};return n.Z.call(D,"POST",t)}},M=(r(61078),r(6208),wprm_admin.endpoints.template),P=[],N={},L=null,C={previewShortcode:function(e,t,r){var n=this;return N[e]=t,clearTimeout(L),L=setTimeout((function(){n.previewShortcodes(r)}),500),new Promise((function(e){return P.push(e)}))},previewShortcodes:function(e){var t=P,r=N;P=[],N={};var n={recipeId:e,shortcodes:r};fetch("".concat(M,"/preview"),{method:"POST",headers:{"X-WP-Nonce":wprm_admin.api_nonce,Accept:"application/json","Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(n)}).then((function(e){return e.json().then((function(r){var n=e.ok?r.preview:{};t.forEach((function(e){return e(n)}))}))}))},searchRecipes:function(e){return fetch(wprm_admin.ajax_url,{method:"POST",credentials:"same-origin",body:"action=wprm_search_recipes&security="+wprm_admin.nonce+"&search="+encodeURIComponent(e),headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded; charset=utf-8"}}).then((function(e){return e.json()}))},save:function(e){var t={template:e};return n.Z.call(M,"POST",t)},delete:function(e){var t={slug:e};return n.Z.call(M,"DELETE",t)}},j=wprm_admin.endpoints.utilities,k={saveImage:function(e){var t={url:e};return n.Z.call("".concat(j,"/save_image"),"POST",t)}},A=WPRecipeMaker["wp-recipe-maker/dist/shared"].hooks.applyFilters("api",{analytics:i,general:c,import:u,manage:g,modal:y,rating:I,recipe:x,settings:T,template:C,utilities:k})},46087:function(e,t,r){"use strict";r(26364),r(86632),r(61928),r(55862),r(31807),r(54883),r(10853),r(35054),r(45007),r(68995);function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.Z={call:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=wprm_admin.api_nonce;"object"===n(window.wpApiSettings)&&window.wpApiSettings.nonce&&(o=window.wpApiSettings.nonce);var i={method:t,headers:{"X-WP-Nonce":o,Accept:"application/json","Content-Type":"application/json","Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:0},credentials:"same-origin"};return"PUT"!==t&&"DELETE"!==t||(i.method="POST",i.headers["X-HTTP-Method-Override"]=t),r&&(i.body=JSON.stringify(r)),fetch(e,i).then((function(t){if(t.ok)return t.json();console.log(e,i),console.log(t);var r="Something went wrong. Using a firewall like Cloudflare or Sucuri? Try whitelisting your IP. If that doesn't work, please contact support@bootstrapped.ventures with the following details:",n="".concat(t.url," ").concat(t.redirected?"(redirected)":"","- ").concat(t.status," - ").concat(t.statusText);try{t.text().then((function(e){console.log(e),-1!==e.indexOf("rest_cookie_invalid_nonce")?alert("You got logged out or your session expired. Please try logging out of WordPress and back in again."):alert("".concat(r,"\r\n\r\n").concat(n,"\r\n\r\n").concat(e))}))}catch(o){console.log(o),alert("".concat(r,"\r\n\r\n").concat(n,"\r\n\r\n").concat(o))}return!1}))}}},48618:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});r(26364),r(86632),r(61928),r(54883),r(56908),r(10853),r(54130),r(33290),r(45007),r(68995);var n=r(89526);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=u(e);if(t){var o=u(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return l(this,r)}}function l(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(u,e);var t,r,o,l=c(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=l.call(this,e)).state={hasError:!1,error:!1,info:!1},t}return t=u,(r=[{key:"componentDidCatch",value:function(e,t){this.setState({hasError:!0,error:e,info:t})}},{key:"render",value:function(){return n.createElement(n.Fragment,null,this.state.hasError?n.createElement("div",{className:"wprm-error-boundary"},n.createElement("p",null,n.createElement("strong",null,"Something went wrong"),n.createElement("br",null),"Please contact ",n.createElement("a",{href:"mailto:support@bootstrapped.ventures"},"support@bootstrapped.ventures")," and send along the following information:"),n.createElement("pre",null,this.props.module?"Module: ".concat(this.props.module,"\n"):null,this.state.error?"Error: ".concat(this.state.error.toString(),"\n"):null,this.state.info?"Stack: ".concat(this.state.info.componentStack):null)):this.props.children)}}])&&i(t.prototype,r),o&&i(t,o),u}(n.Component)},62834:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(89526),o=r(49092),i=r(95075),a={adjustable:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PGxpbmUgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjEyLjUiIHkxPSIxMi41IiB4Mj0iMTUuNSIgeTI9IjEyLjUiPjwvbGluZT4gPGxpbmUgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjAuNSIgeTE9IjMuNSIgeDI9IjMuNSIgeTI9IjMuNSI+PC9saW5lPiA8bGluZSBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiB4MT0iOS41IiB5MT0iMy41IiB4Mj0iMTUuNSIgeTI9IjMuNSI+PC9saW5lPi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G9yLTIiLz4gPGNpcmNsZSBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgY3g9IjguNSIgY3k9IjExLjUiIHI9IjIiIGRhdGEtY29sb3I9ImNvbG9yLTIiLz4gPGxpbmUgZmlsbD0ibm9uZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHgxPSIyLjUiIHkxPSIxMS41IiB4Mj0iNi41IiB5Mj0iMTEuNSIgZGF0YS1jb2xvcj0iY29sb3ItMiIvPiA8bGluZSBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjEyLjUiIHkxPSIxMS41IiB4Mj0iMTMuNSIgeTI9IjExLjUiIGRhdGEtY29sb3I9ImNvbG9yLTIiLz4gPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTE0LjUsMTUuNWgtMTMgYy0wLjU1MiwwLTEtMC40NDgtMS0xdi0xM2MwLTAuNTUyLDAuNDQ4LTEsMS0xaDEzYzAuNTUyLDAsMSwwLjQ0OCwxLDF2MTNDMTUuNSwxNS4wNTIsMTUuMDUyLDE1LjUsMTQuNSwxNS41eiIvPjwvZz48L3N2Zz4="},c=function(e){var t=!!a.hasOwnProperty(e.type)&&a[e.type];if(!t)return null;var r=e.title,c=e.className?"wprm-admin-icon ".concat(e.className):"wprm-admin-icon",l=!!e.hasOwnProperty("hidden")&&e.hidden;return l&&(r="",c+=" wprm-admin-icon-hidden"),n.createElement(i.Z,{content:r},n.createElement("span",{className:c,onClick:l?function(){}:e.onClick},n.createElement(o.Z,{src:t})))}},95075:function(e,t,r){"use strict";r(26364),r(19701),r(61078),r(80238),r(12938),r(80044),r(6208);var n=r(89526),o=r(20877);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.Z=function(e){if(!e.content)return e.children;var t=e.hasOwnProperty("style")?e.style:{};return n.createElement(o.Tooltip,{html:n.createElement("div",{dangerouslySetInnerHTML:{__html:e.content}}),popperOptions:{modifiers:{addZIndex:{enabled:!0,order:810,fn:function(e){return a(a({},e),{},{styles:a(a({},e.styles),{},{zIndex:1e5})})}},preventOverflow:{boundariesElement:"window"}}},style:t},e.children)}},52082:function(e,t,r){"use strict";r.d(t,{S:function(){return c}});r(26364),r(19701),r(61078),r(80238),r(12938),r(80044),r(6208);function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a={};function c(e){return a.hasOwnProperty(e)?a[e]:e}window.hasOwnProperty("wprm_public")&&wprm_public.hasOwnProperty("translations")&&(a=o(o({},a),wprm_public.translations)),window.hasOwnProperty("wprm_admin")&&wprm_admin.hasOwnProperty("translations")&&(a=o(o({},a),wprm_admin.translations))},45177:function(e,t,r){"use strict";function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}r.d(t,{Z:function(){return n}})},64403:function(e,t){var r;
2
  /*!
3
  Copyright (c) 2017 Jed Watson.
4
  Licensed under the MIT License (MIT), see
dist/admin-modal.js CHANGED
@@ -26,7 +26,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
26
 
27
  See the Apache Version 2.0 License for specific language governing permissions
28
  and limitations under the License.
29
- ***************************************************************************** */function on(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}var an={useProxies:"undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,autoFreeze:"undefined"==typeof process&&"verifyMinified"===function(){}.name,onAssign:null,onDelete:null,onCopy:null},sn=new(function(){function e(e){var t=this;this.useProxies=!1,this.autoFreeze=!1,gt(an,(function(n,r){var o,i;t[n]=null!=(i=null===(o=e)||void 0===o?void 0:o[n])?i:r})),this.setUseProxies(this.useProxies),this.produce=this.produce.bind(this),this.produceWithPatches=this.produceWithPatches.bind(this)}return e.prototype.produce=function(e,t,n){var r,o=this;if("function"==typeof e&&"function"!=typeof t){var i=t;t=e;var a=this;return function(e){var n=arguments,r=this;void 0===e&&(e=i);for(var o=[],s=1;s<arguments.length;s++)o[s-1]=n[s];return a.produce(e,(function(e){return t.call.apply(t,on([r,e],o))}))}}if("function"!=typeof t)throw new Error("The first or second argument to `produce` must be a function");if(void 0!==n&&"function"!=typeof n)throw new Error("The third argument to `produce` must be a function or undefined");if(mt(e)){var s=Pt.enter(this),u=this.createProxy(e,void 0),c=!0;try{r=t(u),c=!1}finally{c?s.revoke():s.leave()}return"undefined"!=typeof Promise&&r instanceof Promise?r.then((function(e){return s.usePatches(n),kt(o,e,s)}),(function(e){throw s.revoke(),e})):(s.usePatches(n),kt(this,r,s))}if((r=t(e))!==st)return void 0===r&&(r=e),Tt(this,r,!0),r},e.prototype.produceWithPatches=function(e,t,n){var r,o,i=this;return"function"==typeof e?function(t){for(var n=arguments,r=[],o=1;o<arguments.length;o++)r[o-1]=n[o];return i.produceWithPatches(t,(function(t){return e.apply(void 0,on([t],r))}))}:(n&&Dt(),[this.produce(e,t,(function(e,t){r=e,o=t})),r,o])},e.prototype.createDraft=function(e){if(!mt(e))throw new Error("First argument to `createDraft` must be a plain object, an array, or an immerable object");var t=Pt.enter(this),n=this.createProxy(e,void 0);return n[ct].isManual=!0,t.leave(),n},e.prototype.finishDraft=function(e,t){var n=e&&e[ct];if(!n||!n.isManual)throw new Error("First argument to `finishDraft` must be a draft returned by `createDraft`");if(n.finalized)throw new Error("The given draft is already finalized");var r=n.scope;return r.usePatches(t),kt(this,void 0,r)},e.prototype.setAutoFreeze=function(e){this.autoFreeze=e},e.prototype.setUseProxies=function(e){this.useProxies=e},e.prototype.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}return ft(e)?nn(e,t):this.produce(e,(function(e){return nn(e,t.slice(n+1))}))},e.prototype.createProxy=function(e,t){var n=Et(e)?function(e,t){return new Kt(e,t)}(e,t):St(e)?function(e,t){return new en(e,t)}(e,t):this.useProxies?function(e,t){var n=Array.isArray(e),r={type:n?rt.ProxyArray:rt.ProxyObject,scope:t?t.scope:Pt.current,modified:!1,finalized:!1,assigned:{},parent:t,base:e,draft:null,drafts:{},copy:null,revoke:null,isManual:!1},o=r,i=Lt;n&&(o=[r],i=Rt);var a=Proxy.revocable(o,i),s=a.revoke,u=a.proxy;return r.draft=u,r.revoke=s,u}(e,t):Ht(e,t);return(t?t.scope:Pt.current).drafts.push(n),n},e.prototype.willFinalize=function(e,t,n){this.useProxies||Zt(e,t,n)},e.prototype.markChanged=function(e){this.useProxies?Ft(e):Wt(e)},e}()),un=sn.produce,cn=(sn.produceWithPatches.bind(sn),sn.setAutoFreeze.bind(sn),sn.setUseProxies.bind(sn),sn.applyPatches.bind(sn),sn.createDraft.bind(sn)),ln=sn.finishDraft.bind(sn);var pn=n(43830);function dn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var mn=new WeakMap,hn=new WeakMap,gn=new WeakMap,vn=new WeakMap,bn=new WeakMap,yn=new WeakMap,wn=/\s/,En=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,Sn=/['\u2018\u2019]/,In=e=>{for(var t=0,n=null,r=e.charCodeAt(0);r;)if(On(r)){var o=Cn(r,e,t);if("SURR"===n||"BMP"===n)break;t+=2,n=o?"MOD":"SURR",r=e.charCodeAt(t)}else if(8205!==r)if(Pn(r)){if(n&&"ZWJ"!==n&&"VAR"!==n)break;t+=1,n="BMP",r=e.charCodeAt(t)}else{if(!Dn(r)){if("MOD"===n){t+=1;break}break}if(n&&"ZWJ"!==n)break;t+=1,n="VAR",r=e.charCodeAt(t)}else t+=1,n="ZWJ",r=e.charCodeAt(t);return t||1},xn=(e,t)=>{if(wn.test(e))return!1;if(Sn.test(e)){var n=t.charAt(0),r=In(n);n=t.slice(0,r);var o=t.slice(r);if(xn(n,o))return!0}return!En.test(e)},On=e=>55296<=e&&e<=57343,Cn=(e,t,n)=>{if(55356===e){var r=t.charCodeAt(n+1);return r<=57343&&r>=57339}return!1},Dn=e=>e<=65039&&e>=65024,Pn=e=>10084===e||9794===e||9792===e||9760===e||9877===e||9992===e||9711===e;function Mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mn(Object(n),!0).forEach((function(t){dn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var An={above(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:i}=t;if(o){var a=An.path(e,o),s="lowest"===r;for(var[u,c]of An.levels(e,{at:a,voids:n,match:i,reverse:s}))if(!Jn.isText(u)&&!Fn.equals(a,c))return[u,c]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:An.point(e,t,{edge:"end"}),focus:An.end(e,[])},{distance:i=1}=r,a=0;for(var s of An.positions(e,kn({},r,{at:o}))){if(a>i)break;0!==a&&(n=s),a++}return n},before(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:An.start(e,[]),focus:An.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var s of An.positions(e,kn({},r,{at:o,reverse:!0}))){if(a>i)break;0!==a&&(n=s),a++}return n},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){e.deleteFragment()},edges:(e,t)=>[An.start(e,t),An.end(e,t)],end:(e,t)=>An.point(e,t,{edge:"end"}),first(e,t){var n=An.path(e,t,{edge:"start"});return An.node(e,n)},fragment(e,t){var n=An.range(e,t);return Tn.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>An.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>Jn.isText(t)||An.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>Jn.isText(e))),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>Nn.isElement(t)&&!e.isInline(t),isEditor:e=>tt(e)&&"function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isInline&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&(null===e.marks||tt(e.marks))&&(null===e.selection||Gn.isRange(e.selection))&&Tn.isNodeList(e.children)&&_n.isOperationList(e.operations),isEnd(e,t,n){var r=An.end(e,n);return Hn.equals(t,r)},isEdge:(e,t,n)=>An.isStart(e,t,n)||An.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&Jn.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>Nn.isElement(t)&&e.isInline(t),isNormalizing(e){var t=gn.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=An.start(e,n);return Hn.equals(t,r)},isVoid:(e,t)=>Nn.isElement(t)&&e.isVoid(t),last(e,t){var n=An.path(e,t,{edge:"end"});return An.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=An.path(e,t,n);return[Tn.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(null==i&&(i=()=>!0),n){var a=[],s=An.path(e,n);for(var[u,c]of Tn.levels(e,s))if(i(u)&&(a.push([u,c]),!o&&An.isVoid(e,u)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(Gn.isExpanded(n)){var[r]=An.nodes(e,{match:Jn.isText});if(r){var[o]=r;return fn(o,["text"])}return{}}var{anchor:i}=n,{path:a}=i,[s]=An.leaf(e,a);if(0===i.offset){var u=An.previous(e,{at:a,match:Jn.isText}),c=An.above(e,{match:t=>An.isBlock(e,t)});if(u&&c){var[l,p]=u,[,d]=c;Fn.isAncestor(d,p)&&(s=l)}}return fn(s,["text"])},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var[,a]=An.last(e,i),[,s]=An.last(e,[]),u=[a,s];if(Fn.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(Fn.isPath(i)){var[c]=An.parent(e,i);o=e=>c.children.includes(e)}else o=()=>!0;var[,l]=An.nodes(e,{at:u,match:o,mode:n,voids:r});return l}},node(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=An.path(e,t,n);return[Tn.get(e,r),r]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:s}=t;if(s||(s=()=>!0),n){var u,c;if(jn.isSpan(n))u=n[0],c=n[1];else{var l=An.path(e,n,{edge:"start"}),p=An.path(e,n,{edge:"end"});u=i?p:l,c=i?l:p}var d,f=Tn.nodes(e,{reverse:i,from:u,to:c,pass:t=>{var[n]=t;return!a&&An.isVoid(e,n)}}),m=[];for(var[h,g]of f){var v=d&&0===Fn.compare(g,d[1]);if("highest"!==r||!v)if(s(h))if("lowest"===r&&v)d=[h,g];else{var b="lowest"===r?d:[h,g];b&&(o?m.push(b):yield b),d=[h,g]}else if(o&&!v&&Jn.isText(h))return}"lowest"===r&&d&&(o?m.push(d):yield d),o&&(yield*m)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1}=t,r=e=>mn.get(e)||[];if(An.isNormalizing(e)){if(n){var o=Array.from(Tn.nodes(e),(e=>{var[,t]=e;return t}));mn.set(e,o)}0!==r(e).length&&An.withoutNormalizing(e,(()=>{for(var t=42*r(e).length,n=0;0!==r(e).length;){if(n>t)throw new Error("\n Could not completely normalize the editor after ".concat(t," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var o=r(e).pop(),i=An.node(e,o);e.normalizeNode(i),n++}}))}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=An.path(e,t,n),o=Fn.parent(r);return An.node(e,o)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(Fn.isPath(t))if("start"===o){var[,i]=Tn.first(e,t);t=i}else if("end"===o){var[,a]=Tn.last(e,t);t=a}return Gn.isRange(t)&&(t="start"===o?Gn.start(t):"end"===o?Gn.end(t):Fn.common(t.anchor.path,t.focus.path)),Hn.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},pathRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return An.pathRefs(e).delete(o),o.current=null,t}};return An.pathRefs(e).add(o),o},pathRefs(e){var t=vn.get(e);return t||(t=new Set,vn.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(Fn.isPath(t)){var o;if("end"===r){var[,i]=Tn.last(e,t);o=i}else{var[,a]=Tn.first(e,t);o=a}var s=Tn.get(e,o);if(!Jn.isText(s))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:"end"===r?s.text.length:0}}if(Gn.isRange(t)){var[u,c]=Gn.edges(t);return"start"===r?u:c}return t},pointRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return An.pointRefs(e).delete(o),o.current=null,t}};return An.pointRefs(e).add(o),o},pointRefs(e){var t=bn.get(e);return t||(t=new Set,bn.set(e,t)),t},*positions(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1}=t;if(n){var i=An.range(e,n),[a,s]=Gn.edges(i),u=o?s:a,c="",l=0,p=0,d=null,f=!1,m=()=>{null==d&&(d="character"===r?In(c):"word"===r?(e=>{for(var t,n=0,r=0,o=!1;t=e.charAt(r);){var i=In(t);t=e.slice(r,r+i);var a=e.slice(r+i);if(xn(t,a))o=!0,n+=i;else{if(o)break;n+=i}r+=i}return n})(c):"line"===r||"block"===r?c.length:1,c=c.slice(d)),p=o?p-d:p+d,d=(l-=d)>=0?null:0-l};for(var[h,g]of An.nodes(e,{at:n,reverse:o})){if(Nn.isElement(h)){if(e.isVoid(h)){yield An.start(e,g);continue}if(e.isInline(h))continue;if(An.hasInlines(e,h)){var v=Fn.isAncestor(g,s.path)?s:An.end(e,g),b=Fn.isAncestor(g,a.path)?a:An.start(e,g),y=An.string(e,{anchor:b,focus:v});c=o?(0,pn.reverse)(y):y,f=!0}}if(Jn.isText(h)){var w=Fn.equals(g,u.path);for(l=h.text.length,p=o?l:0,w&&(l=o?u.offset:l-u.offset,p=u.offset),(w||f||"offset"===r)&&(yield{path:g,offset:p});""!==c&&(m(),l>=0);)yield{path:g,offset:p};f=!1}}}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var[,a]=An.first(e,i),[,s]=An.first(e,[]),u=[a,s];if(Fn.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(Fn.isPath(i)){var[c]=An.parent(e,i);o=e=>c.children.includes(e)}else o=()=>!0;var[,l]=An.nodes(e,{reverse:!0,at:u,match:o,mode:n,voids:r});return l}},range:(e,t,n)=>Gn.isRange(t)&&!n?t:{anchor:An.start(e,t),focus:An.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return An.rangeRefs(e).delete(o),o.current=null,t}};return An.rangeRefs(e).add(o),o},rangeRefs(e){var t=yn.get(e);return t||(t=new Set,yn.set(e,t)),t},removeMark(e,t){e.removeMark(t)},start:(e,t)=>An.point(e,t,{edge:"start"}),string(e,t){var n=An.range(e,t),[r,o]=Gn.edges(n),i="";for(var[a,s]of An.nodes(e,{at:n,match:Jn.isText})){var u=a.text;Fn.equals(s,o.path)&&(u=u.slice(0,o.offset)),Fn.equals(s,r.path)&&(u=u.slice(r.offset)),i+=u}return i},transform(e,t){e.children=cn(e.children);var n=e.selection&&cn(e.selection);switch(t.type){case"insert_node":var{path:r,node:o}=t,i=Tn.parent(e,r),a=r[r.length-1];if(i.children.splice(a,0,o),n)for(var[s,u]of Gn.points(n))n[u]=Hn.transform(s,t);break;case"insert_text":var{path:c,offset:l,text:p}=t,d=Tn.leaf(e,c),f=d.text.slice(0,l),m=d.text.slice(l);if(d.text=f+p+m,n)for(var[h,g]of Gn.points(n))n[g]=Hn.transform(h,t);break;case"merge_node":var{path:v}=t,b=Tn.get(e,v),y=Fn.previous(v),w=Tn.get(e,y),E=Tn.parent(e,v),S=v[v.length-1];if(Jn.isText(b)&&Jn.isText(w))w.text+=b.text;else{if(Jn.isText(b)||Jn.isText(w))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(v,"] to nodes of different interaces: ").concat(b," ").concat(w));w.children.push(...b.children)}if(E.children.splice(S,1),n)for(var[I,x]of Gn.points(n))n[x]=Hn.transform(I,t);break;case"move_node":var{path:O,newPath:C}=t;if(Fn.isAncestor(O,C))throw new Error("Cannot move a path [".concat(O,"] to new path [").concat(C,"] because the destination is inside itself."));var D=Tn.get(e,O),P=Tn.parent(e,O),M=O[O.length-1];P.children.splice(M,1);var k=Fn.transform(O,t),A=Tn.get(e,Fn.parent(k)),N=k[k.length-1];if(A.children.splice(N,0,D),n)for(var[j,T]of Gn.points(n))n[T]=Hn.transform(j,t);break;case"remove_node":var{path:L}=t,R=L[L.length-1];if(Tn.parent(e,L).children.splice(R,1),n)for(var[_,F]of Gn.points(n)){var B=Hn.transform(_,t);if(null!=n&&null!=B)n[F]=B;else{var Z=void 0,H=void 0;for(var[U,W]of Tn.texts(e)){if(-1!==Fn.compare(W,L)){H=[U,W];break}Z=[U,W]}Z?(_.path=Z[1],_.offset=Z[0].text.length):H?(_.path=H[1],_.offset=0):n=null}}break;case"remove_text":var{path:G,offset:z,text:q}=t,V=Tn.leaf(e,G),J=V.text.slice(0,z),Y=V.text.slice(z+q.length);if(V.text=J+Y,n)for(var[Q,X]of Gn.points(n))n[X]=Hn.transform(Q,t);break;case"set_node":var{path:K,newProperties:$}=t;if(0===K.length)throw new Error("Cannot set properties on the root node!");var ee=Tn.get(e,K);for(var te in $){if("children"===te||"text"===te)throw new Error('Cannot set the "'.concat(te,'" property of nodes!'));var ne=$[te];null==ne?delete ee[te]:ee[te]=ne}break;case"set_selection":var{newProperties:re}=t;if(null==re)n=re;else if(null==n){if(!Gn.isRange(re))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(re)," when there is no current selection."));n=re}else Object.assign(n,re);break;case"split_node":var{path:oe,position:ie,properties:ae}=t;if(0===oe.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(oe,"] because the root node cannot be split."));var se,ue=Tn.get(e,oe),ce=Tn.parent(e,oe),le=oe[oe.length-1];if(Jn.isText(ue)){var pe=ue.text.slice(0,ie),de=ue.text.slice(ie);ue.text=pe,se=kn({},ue,{},ae,{text:de})}else{var fe=ue.children.slice(0,ie),me=ue.children.slice(ie);ue.children=fe,se=kn({},ue,{},ae,{children:me})}if(ce.children.splice(le+1,0,se),n)for(var[he,ge]of Gn.points(n))n[ge]=Hn.transform(he,t)}e.children=ln(e.children),e.selection=n?ft(n)?ln(n):n:null},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[o,i]=Gn.edges(t);if(0!==o.offset||0!==i.offset||Gn.isCollapsed(t))return t;var a=An.above(e,{at:i,match:t=>An.isBlock(e,t)}),s=a?a[1]:[],u={anchor:An.start(e,[]),focus:i},c=!0;for(var[l,p]of An.nodes(e,{at:u,match:Jn.isText,reverse:!0,voids:r}))if(c)c=!1;else if(""!==l.text||Fn.isBefore(p,s)){i={path:p,offset:l.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return An.above(e,kn({},t,{match:t=>An.isVoid(e,t)}))},withoutNormalizing(e,t){var n=An.isNormalizing(e);gn.set(e,!1),t(),gn.set(e,n),An.normalize(e)}},Nn={isElement:e=>tt(e)&&Tn.isNodeList(e.children)&&!An.isEditor(e),isElementList:e=>Array.isArray(e)&&(0===e.length||Nn.isElement(e[0])),matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},jn={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(Fn.isPath)},Tn={ancestor(e,t){var n=Tn.get(e,t);if(Jn.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of Fn.ancestors(t,n)){var o=[Tn.ancestor(e,r),r];yield o}},child(e,t){if(Jn.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=n,o=Tn.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var s=Tn.child(o,a),u=t.concat(a);yield[s,u],a=r?a-1:a+1}},common(e,t,n){var r=Fn.common(t,n);return[Tn.get(e,r),r]},descendant(e,t){var n=Tn.get(e,t);if(An.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Tn.nodes(e,t))0!==r.length&&(yield[n,r])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Tn.nodes(e,t))Nn.isElement(n)&&(yield[n,r])},first(e,t){for(var n=t.slice(),r=Tn.get(e,n);r&&!Jn.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(Jn.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));return un(e,(e=>{var[n,r]=Gn.edges(t),o=Tn.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!Gn.includes(t,n)}});for(var[,i]of o){if(!Gn.includes(t,i)){var a=Tn.parent(e,i),s=i[i.length-1];a.children.splice(s,1)}if(Fn.equals(i,r.path)){var u=Tn.leaf(e,i);u.text=u.text.slice(0,r.offset)}if(Fn.equals(i,n.path)){var c=Tn.leaf(e,i);c.text=c.text.slice(n.offset)}}delete e.selection})).children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Jn.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Jn.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>Jn.isText(e)||Nn.isElement(e)||An.isEditor(e),isNodeList:e=>Array.isArray(e)&&(0===e.length||Tn.isNode(e[0])),last(e,t){for(var n=t.slice(),r=Tn.get(e,n);r&&!Jn.isText(r)&&0!==r.children.length;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=Tn.get(e,t);if(!Jn.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of Fn.levels(t,n)){var o=Tn.get(e,r);yield[o,r]}},matches:(e,t)=>Nn.isElement(e)&&Nn.matches(e,t)||Jn.isText(e)&&Jn.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,s=[],u=e;!i||!(r?Fn.isBefore(s,i):Fn.isAfter(s,i));)if(a.has(u)||(yield[u,s]),a.has(u)||Jn.isText(u)||0===u.children.length||null!=n&&!1!==n([u,s])){if(0===s.length)break;if(!r){var c=Fn.next(s);if(Tn.has(e,c)){s=c,u=Tn.get(e,s);continue}}if(r&&0!==s[s.length-1])s=Fn.previous(s),u=Tn.get(e,s);else s=Fn.parent(s),u=Tn.get(e,s),a.add(u)}else{a.add(u);var l=r?u.children.length-1:0;Fn.isAncestor(s,o)&&(l=o[s.length]),s=s.concat(l),u=Tn.get(e,s)}},parent(e,t){var n=Fn.parent(t),r=Tn.get(e,n);if(Jn.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>Jn.isText(e)?e.text:e.children.map(Tn.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Tn.nodes(e,t))Jn.isText(n)&&(yield[n,r])}};function Ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ln(Object(n),!0).forEach((function(t){dn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ln(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _n={isNodeOperation:e=>_n.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!tt(e))return!1;switch(e.type){case"insert_node":return Fn.isPath(e.path)&&Tn.isNode(e.node);case"insert_text":return"number"==typeof e.offset&&"string"==typeof e.text&&Fn.isPath(e.path);case"merge_node":return"number"==typeof e.position&&("number"==typeof e.target||null===e.target)&&Fn.isPath(e.path)&&tt(e.properties);case"move_node":return Fn.isPath(e.path)&&Fn.isPath(e.newPath);case"remove_node":return Fn.isPath(e.path)&&Tn.isNode(e.node);case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&Fn.isPath(e.path);case"set_node":return Fn.isPath(e.path)&&tt(e.properties)&&tt(e.newProperties);case"set_selection":return null===e.properties&&Gn.isRange(e.newProperties)||null===e.newProperties&&Gn.isRange(e.properties)||tt(e.properties)&&tt(e.newProperties);case"split_node":return Fn.isPath(e.path)&&"number"==typeof e.position&&("number"==typeof e.target||null===e.target)&&tt(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&(0===e.length||_n.isOperation(e[0])),isSelectionOperation:e=>_n.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>_n.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return Rn({},e,{type:"remove_node"});case"insert_text":return Rn({},e,{type:"remove_text"});case"merge_node":return Rn({},e,{type:"split_node",path:Fn.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;return Fn.equals(t,n)?e:Rn({},e,{path:Fn.transform(n,e),newPath:Fn.transform(Fn.next(n),e)});case"remove_node":return Rn({},e,{type:"insert_node"});case"remove_text":return Rn({},e,{type:"insert_text"});case"set_node":var{properties:r,newProperties:o}=e;return Rn({},e,{properties:o,newProperties:r});case"set_selection":var{properties:i,newProperties:a}=e;return Rn({},e,null==i?{properties:a,newProperties:null}:null==a?{properties:null,newProperties:i}:{properties:a,newProperties:i});case"split_node":return Rn({},e,{type:"merge_node",path:Fn.next(e.path)})}}},Fn={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=Fn.levels(e,t);return r=n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Fn.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return Fn.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Fn.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),isAfter:(e,t)=>1===Fn.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===Fn.compare(e,t),isBefore:(e,t)=>-1===Fn.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===Fn.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===Fn.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===Fn.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===Fn.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&Fn.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!Fn.isAncestor(t,e)&&!Fn.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return un(e,(r=>{var{affinity:o="forward"}=n;if(0!==e.length)switch(t.type){case"insert_node":var{path:i}=t;(Fn.equals(i,r)||Fn.endsBefore(i,r)||Fn.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(Fn.equals(a,r)||Fn.isAncestor(a,r))return null;Fn.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:s,position:u}=t;Fn.equals(s,r)||Fn.endsBefore(s,r)?r[s.length-1]-=1:Fn.isAncestor(s,r)&&(r[s.length-1]-=1,r[s.length]+=u);break;case"split_node":var{path:c,position:l}=t;if(Fn.equals(c,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else Fn.endsBefore(c,r)?r[c.length-1]+=1:Fn.isAncestor(c,r)&&e[c.length]>=l&&(r[c.length-1]+=1,r[c.length]-=l);break;case"move_node":var{path:p,newPath:d}=t;if(Fn.equals(p,d))return;if(Fn.isAncestor(p,r)||Fn.equals(p,r)){var f=d.slice();if(Fn.endsBefore(p,d)&&p.length<d.length)f[Math.min(d.length,p.length)-1]-=1;return f.concat(r.slice(p.length))}Fn.endsBefore(d,r)||Fn.equals(d,r)||Fn.isAncestor(d,r)?(Fn.endsBefore(p,r)&&(r[p.length-1]-=1),r[d.length-1]+=1):Fn.endsBefore(p,r)&&(Fn.equals(d,r)&&(r[d.length-1]+=1),r[p.length-1]-=1)}}))}},Bn={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Fn.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function Zn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Hn={compare(e,t){var n=Fn.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===Hn.compare(e,t),isBefore:(e,t)=>-1===Hn.compare(e,t),equals:(e,t)=>e.offset===t.offset&&Fn.equals(e.path,t.path),isPoint:e=>tt(e)&&"number"==typeof e.offset&&Fn.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return un(e,(e=>{var{affinity:r="forward"}=n,{path:o,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=Fn.transform(o,t,n);break;case"insert_text":Fn.equals(t.path,o)&&t.offset<=i&&(e.offset+=t.text.length);break;case"merge_node":Fn.equals(t.path,o)&&(e.offset+=t.position),e.path=Fn.transform(o,t,n);break;case"remove_text":Fn.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(Fn.equals(t.path,o)||Fn.isAncestor(t.path,o))return null;e.path=Fn.transform(o,t,n);break;case"split_node":if(Fn.equals(t.path,o)){if(t.position===i&&null==r)return null;(t.position<i||t.position===i&&"forward"===r)&&(e.offset-=t.position,e.path=Fn.transform(o,t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zn(Object(n),!0).forEach((function(t){dn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n,{affinity:"forward"})))}else e.path=Fn.transform(o,t,n)}}))}},Un={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Hn.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function Wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Gn={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return Gn.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=Gn.edges(e);return t},equals:(e,t)=>Hn.equals(e.anchor,t.anchor)&&Hn.equals(e.focus,t.focus),includes(e,t){if(Gn.isRange(t)){if(Gn.includes(e,t.anchor)||Gn.includes(e,t.focus))return!0;var[n,r]=Gn.edges(e),[o,i]=Gn.edges(t);return Hn.isBefore(n,o)&&Hn.isAfter(r,i)}var[a,s]=Gn.edges(e),u=!1,c=!1;return Hn.isPoint(t)?(u=Hn.compare(t,a)>=0,c=Hn.compare(t,s)<=0):(u=Fn.compare(t,a.path)>=0,c=Fn.compare(t,s.path)<=0),u&&c},intersection(e,t){var n=fn(e,["anchor","focus"]),[r,o]=Gn.edges(e),[i,a]=Gn.edges(t),s=Hn.isBefore(r,i)?i:r,u=Hn.isBefore(o,a)?o:a;return Hn.isBefore(u,s)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wn(Object(n),!0).forEach((function(t){dn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:s,focus:u},n)},isBackward(e){var{anchor:t,focus:n}=e;return Hn.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Hn.equals(t,n)},isExpanded:e=>!Gn.isCollapsed(e),isForward:e=>!Gn.isBackward(e),isRange:e=>tt(e)&&Hn.isPoint(e.anchor)&&Hn.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=Gn.edges(e);return t},transform(e,t,n){var r,o,{affinity:i="inward"}=n;return"inward"===i?Gn.isForward(e)?(r="forward",o="backward"):(r="backward",o="forward"):"outward"===i?Gn.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i),un(e,(e=>{var n=Hn.transform(e.anchor,t,{affinity:r}),i=Hn.transform(e.focus,t,{affinity:o});if(!n||!i)return null;e.anchor=n,e.focus=i}))}},zn={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Gn.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function qn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qn(Object(n),!0).forEach((function(t){dn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Jn={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;for(var o in e)if((!r||"text"!==o)&&e[o]!==t[o])return!1;for(var i in t)if((!r||"text"!==i)&&e[i]!==t[i])return!1;return!0},isText:e=>tt(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&(0===e.length||Jn.isText(e[0])),matches(e,t){for(var n in t)if("text"!==n&&e[n]!==t[n])return!1;return!0},decorations(e,t){var n=[Vn({},e)];for(var r of t){var o=fn(r,["anchor","focus"]),[i,a]=Gn.edges(r),s=[],u=0;for(var c of n){var{length:l}=c.text,p=u;if(u+=l,i.offset<=p&&a.offset>=p+l)Object.assign(c,o),s.push(c);else if(i.offset>p+l||a.offset<p||a.offset===p&&0!==p)s.push(c);else{var d=c,f=void 0,m=void 0;if(a.offset<p+l){var h=a.offset-p;m=Vn({},d,{text:d.text.slice(h)}),d=Vn({},d,{text:d.text.slice(0,h)})}if(i.offset>p){var g=i.offset-p;f=Vn({},d,{text:d.text.slice(0,g)}),d=Vn({},d,{text:d.text.slice(g)})}Object.assign(d,o),f&&s.push(f),s.push(d),m&&s.push(m)}}n=s}return n}};function Yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yn(Object(n),!0).forEach((function(t){dn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xn(Object(n),!0).forEach((function(t){dn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $n={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};An.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:s,select:u}=n;if(Tn.isNode(t)&&(t=[t]),0!==t.length){var[c]=t;if(a||(a=e.selection?e.selection:e.children.length>0?An.end(e,[]):[0],u=!0),null==u&&(u=!1),Gn.isRange(a))if(r||(a=An.unhangRange(e,a)),Gn.isCollapsed(a))a=a.anchor;else{var[,l]=Gn.edges(a),p=An.pointRef(e,l);ir.delete(e,{at:a}),a=p.unref()}if(Hn.isPoint(a)){null==s&&(s=Jn.isText(c)?e=>Jn.isText(e):e.isInline(c)?t=>Jn.isText(t)||An.isInline(e,t):t=>An.isBlock(e,t));var[d]=An.nodes(e,{at:a.path,match:s,mode:i,voids:o});if(!d)return;var[,f]=d,m=An.pathRef(e,f),h=An.isEnd(e,a,f);ir.splitNodes(e,{at:a,match:s,mode:i,voids:o});var g=m.unref();a=h?Fn.next(g):g}var v=Fn.parent(a),b=a[a.length-1];if(o||!An.void(e,{at:v})){for(var y of t){var w=v.concat(b);b++,e.apply({type:"insert_node",path:w,node:y})}if(u){var E=An.end(e,a);E&&ir.select(e,E)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};An.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=Fn.isPath(n)?tr(e,n):t=>An.isBlock(e,t)),n){var a=An.nodes(e,{at:n,match:i,mode:r,voids:o}),s=Array.from(a,(t=>{var[,n]=t;return An.pathRef(e,n)}));for(var u of s){var c=u.unref();if(c.length<2)throw new Error("Cannot lift node at a path [".concat(c,"] because it has a depth of less than `2`."));var l=An.node(e,Fn.parent(c)),[p,d]=l,f=c[c.length-1],{length:m}=p.children;if(1===m){var h=Fn.next(d);ir.moveNodes(e,{at:c,to:h,voids:o}),ir.removeNodes(e,{at:d,voids:o})}else if(0===f)ir.moveNodes(e,{at:c,to:d,voids:o});else if(f===m-1){var g=Fn.next(d);ir.moveNodes(e,{at:c,to:g,voids:o})}else{var v=Fn.next(c),b=Fn.next(d);ir.splitNodes(e,{at:v,voids:o}),ir.moveNodes(e,{at:c,to:b,voids:o})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};An.withoutNormalizing(e,(()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(null==n)if(Fn.isPath(r)){var[s]=An.parent(e,r);n=e=>s.children.includes(e)}else n=t=>An.isBlock(e,t);if(!o&&Gn.isRange(r)&&(r=An.unhangRange(e,r)),Gn.isRange(r))if(Gn.isCollapsed(r))r=r.anchor;else{var[,u]=Gn.edges(r),c=An.pointRef(e,u);ir.delete(e,{at:r}),r=c.unref(),null==t.at&&ir.select(e,r)}var[l]=An.nodes(e,{at:r,match:n,voids:i,mode:a}),p=An.previous(e,{at:r,match:n,voids:i,mode:a});if(l&&p){var[d,f]=l,[m,h]=p;if(0!==f.length&&0!==h.length){var g,v,b=Fn.next(h),y=Fn.common(f,h),w=Fn.isSibling(f,h),E=Array.from(An.levels(e,{at:f}),(e=>{var[t]=e;return t})).slice(y.length).slice(0,-1),S=An.above(e,{at:f,mode:"highest",match:e=>E.includes(e)&&Nn.isElement(e)&&1===e.children.length}),I=S&&An.pathRef(e,S[1]);if(Jn.isText(d)&&Jn.isText(m)){var x=fn(d,["text"]);v=m.text.length,g=x}else{if(!Nn.isElement(d)||!Nn.isElement(m))throw new Error("Cannot merge the node at path [".concat(f,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(m)));x=fn(d,["children"]);v=m.children.length,g=x}w||ir.moveNodes(e,{at:f,to:b,voids:i}),I&&ir.removeNodes(e,{at:I.current,voids:i}),Nn.isElement(m)&&An.isEmpty(e,m)||Jn.isText(m)&&""===m.text?ir.removeNodes(e,{at:h,voids:i}):e.apply({type:"merge_node",path:b,position:v,target:null,properties:g}),I&&I.unref()}}}}))},moveNodes(e,t){An.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=Fn.isPath(r)?tr(e,r):t=>An.isBlock(e,t));var s=An.pathRef(e,n),u=An.nodes(e,{at:r,match:a,mode:o,voids:i}),c=Array.from(u,(t=>{var[,n]=t;return An.pathRef(e,n)}));for(var l of c){var p=l.unref(),d=s.current;0!==p.length&&e.apply({type:"move_node",path:p,newPath:d})}s.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};An.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=Fn.isPath(i)?tr(e,i):t=>An.isBlock(e,t)),!n&&Gn.isRange(i)&&(i=An.unhangRange(e,i));var s=An.nodes(e,{at:i,match:a,mode:o,voids:r}),u=Array.from(s,(t=>{var[,n]=t;return An.pathRef(e,n)}));for(var c of u){var l=c.unref();if(l){var[p]=An.node(e,l);e.apply({type:"remove_node",path:l,node:p})}}}}))},setNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};An.withoutNormalizing(e,(()=>{var{match:r,at:o=e.selection}=n,{hanging:i=!1,mode:a="lowest",split:s=!1,voids:u=!1}=n;if(o){if(null==r&&(r=Fn.isPath(o)?tr(e,o):t=>An.isBlock(e,t)),!i&&Gn.isRange(o)&&(o=An.unhangRange(e,o)),s&&Gn.isRange(o)){var c=An.rangeRef(e,o,{affinity:"inward"}),[l,p]=Gn.edges(o),d="lowest"===a?"lowest":"highest";ir.splitNodes(e,{at:p,match:r,mode:d,voids:u}),ir.splitNodes(e,{at:l,match:r,mode:d,voids:u}),o=c.unref(),null==n.at&&ir.select(e,o)}for(var[f,m]of An.nodes(e,{at:o,match:r,mode:a,voids:u})){var h={},g={};if(0!==m.length){for(var v in t)"children"!==v&&"text"!==v&&t[v]!==f[v]&&(h[v]=f[v],g[v]=t[v]);0!==Object.keys(g).length&&e.apply({type:"set_node",path:m,properties:h,newProperties:g})}}}}))},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};An.withoutNormalizing(e,(()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection,height:a=0,always:s=!1}=t;if(null==o&&(o=t=>An.isBlock(e,t)),Gn.isRange(i)&&(i=er(e,i)),Fn.isPath(i)){var u=i,c=An.point(e,u),[l]=An.parent(e,u);o=e=>e===l,a=c.path.length-u.length+1,i=c,s=!0}if(i){var p=An.pointRef(e,i,{affinity:"backward"}),[d]=An.nodes(e,{at:i,match:o,mode:n,voids:r});if(d){var f=An.void(e,{at:i,mode:"highest"});if(!r&&f){var[m,h]=f;if(Nn.isElement(m)&&e.isInline(m)){var g=An.after(e,h);if(!g){var v=Fn.next(h);ir.insertNodes(e,{text:""},{at:v,voids:r}),g=An.point(e,v)}i=g,s=!0}a=i.path.length-h.length+1,s=!0}var b=An.pointRef(e,i),y=i.path.length-a,[,w]=d,E=i.path.slice(0,y),S=0===a?i.offset:i.path[y]+0,I=null;for(var[x,O]of An.levels(e,{at:E,reverse:!0,voids:r})){var C=!1;if(O.length<w.length||0===O.length||!r&&An.isVoid(e,x))break;var D=p.current,P=An.isEnd(e,D,O);if(s||!p||!An.isEdge(e,D,O)){C=!0;var M=fn(x,["text","children"]);e.apply({type:"split_node",path:O,position:S,target:I,properties:M})}I=S,S=O[O.length-1]+(C||P?1:0)}if(null==t.at){var k=b.current||An.end(e,[]);ir.select(e,k)}p.unref(),b.unref()}}}))},unsetNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;ir.setNodes(e,r,n)},unwrapNodes(e,t){An.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=Fn.isPath(i)?tr(e,i):t=>An.isBlock(e,t)),Fn.isPath(i)&&(i=An.range(e,i));var s=Gn.isRange(i)?An.rangeRef(e,i):null,u=An.nodes(e,{at:i,match:a,mode:n,voids:o}),c=Array.from(u,(t=>{var[,n]=t;return An.pathRef(e,n)})),l=function(t){var n=t.unref(),[i]=An.node(e,n),a=An.range(e,n);r&&s&&(a=Gn.intersection(s.current,a)),ir.liftNodes(e,{at:a,match:e=>i.children.includes(e),voids:o})};for(var p of c)l(p);s&&s.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};An.withoutNormalizing(e,(()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:s=e.selection}=n;if(s){if(null==a&&(a=Fn.isPath(s)?tr(e,s):e.isInline(t)?t=>An.isInline(e,t)||Jn.isText(t):t=>An.isBlock(e,t)),o&&Gn.isRange(s)){var[u,c]=Gn.edges(s),l=An.rangeRef(e,s,{affinity:"inward"});ir.splitNodes(e,{at:c,match:a,voids:i}),ir.splitNodes(e,{at:u,match:a,voids:i}),s=l.unref(),null==n.at&&ir.select(e,s)}var p=Array.from(An.nodes(e,{at:s,match:e.isInline(t)?t=>An.isBlock(e,t):e=>An.isEditor(e),mode:"lowest",voids:i}));for(var[,d]of p){var f=Gn.isRange(s)?Gn.intersection(s,An.range(e,d)):s;if(f){var m=Array.from(An.nodes(e,{at:f,match:a,mode:r,voids:i}));m.length>0&&function(){var[n]=m,r=m[m.length-1],[,o]=n,[,a]=r,s=Fn.equals(o,a)?Fn.parent(o):Fn.common(o,a),u=An.range(e,o,a),c=An.node(e,s),[l]=c,p=s.length+1,d=Fn.next(a.slice(0,p)),f=Kn({},t,{children:[]});ir.insertNodes(e,f,{at:d,voids:i}),ir.moveNodes(e,{at:u,match:e=>l.children.includes(e),to:d.concat(0),voids:i})}()}}}}))}},er=(e,t)=>{if(Gn.isCollapsed(t))return t.anchor;var[,n]=Gn.edges(t),r=An.pointRef(e,n);return ir.delete(e,{at:t}),r.unref()},tr=(e,t)=>{var[n]=An.node(e,t);return e=>e===n};function nr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nr(Object(n),!0).forEach((function(t){dn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function or(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ir=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?or(Object(n),!0).forEach((function(t){dn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):or(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{transform(e,t){e.children=cn(e.children);var n=e.selection&&cn(e.selection);switch(t.type){case"insert_node":var{path:r,node:o}=t,i=Tn.parent(e,r),a=r[r.length-1];if(i.children.splice(a,0,o),n)for(var[s,u]of Gn.points(n))n[u]=Hn.transform(s,t);break;case"insert_text":var{path:c,offset:l,text:p}=t,d=Tn.leaf(e,c),f=d.text.slice(0,l),m=d.text.slice(l);if(d.text=f+p+m,n)for(var[h,g]of Gn.points(n))n[g]=Hn.transform(h,t);break;case"merge_node":var{path:v}=t,b=Tn.get(e,v),y=Fn.previous(v),w=Tn.get(e,y),E=Tn.parent(e,v),S=v[v.length-1];if(Jn.isText(b)&&Jn.isText(w))w.text+=b.text;else{if(Jn.isText(b)||Jn.isText(w))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(v,"] to nodes of different interaces: ").concat(b," ").concat(w));w.children.push(...b.children)}if(E.children.splice(S,1),n)for(var[I,x]of Gn.points(n))n[x]=Hn.transform(I,t);break;case"move_node":var{path:O,newPath:C}=t;if(Fn.isAncestor(O,C))throw new Error("Cannot move a path [".concat(O,"] to new path [").concat(C,"] because the destination is inside itself."));var D=Tn.get(e,O),P=Tn.parent(e,O),M=O[O.length-1];P.children.splice(M,1);var k=Fn.transform(O,t),A=Tn.get(e,Fn.parent(k)),N=k[k.length-1];if(A.children.splice(N,0,D),n)for(var[j,T]of Gn.points(n))n[T]=Hn.transform(j,t);break;case"remove_node":var{path:L}=t,R=L[L.length-1];if(Tn.parent(e,L).children.splice(R,1),n)for(var[_,F]of Gn.points(n)){var B=Hn.transform(_,t);if(null!=n&&null!=B)n[F]=B;else{var Z=void 0,H=void 0;for(var[U,W]of Tn.texts(e)){if(-1!==Fn.compare(W,L)){H=[U,W];break}Z=[U,W]}Z?(_.path=Z[1],_.offset=Z[0].text.length):H?(_.path=H[1],_.offset=0):n=null}}break;case"remove_text":var{path:G,offset:z,text:q}=t,V=Tn.leaf(e,G),J=V.text.slice(0,z),Y=V.text.slice(z+q.length);if(V.text=J+Y,n)for(var[Q,X]of Gn.points(n))n[X]=Hn.transform(Q,t);break;case"set_node":var{path:K,newProperties:$}=t;if(0===K.length)throw new Error("Cannot set properties on the root node!");var ee=Tn.get(e,K);for(var te in $){if("children"===te||"text"===te)throw new Error('Cannot set the "'.concat(te,'" property of nodes!'));var ne=$[te];null==ne?delete ee[te]:ee[te]=ne}break;case"set_selection":var{newProperties:re}=t;if(null==re)n=re;else if(null==n){if(!Gn.isRange(re))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(re)," when there is no current selection."));n=re}else Object.assign(n,re);break;case"split_node":var{path:oe,position:ie,properties:ae}=t;if(0===oe.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(oe,"] because the root node cannot be split."));var se,ue=Tn.get(e,oe),ce=Tn.parent(e,oe),le=oe[oe.length-1];if(Jn.isText(ue)){var pe=ue.text.slice(0,ie),de=ue.text.slice(ie);ue.text=pe,se=Qn({},ue,{},ae,{text:de})}else{var fe=ue.children.slice(0,ie),me=ue.children.slice(ie);ue.children=fe,se=Qn({},ue,{},ae,{children:me})}if(ce.children.splice(le+1,0,se),n)for(var[he,ge]of Gn.points(n))n[ge]=Hn.transform(he,t)}e.children=ln(e.children),e.selection=n?ft(n)?ln(n):n:null}},{},$n,{},{collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r)if("anchor"===n)ir.select(e,r.anchor);else if("focus"===n)ir.select(e,r.focus);else if("start"===n){var[o]=Gn.edges(r);ir.select(e,o)}else if("end"===n){var[,i]=Gn.edges(r);ir.select(e,i)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=Gn.isBackward(n)?"focus":"anchor"),"end"===a&&(a=Gn.isBackward(n)?"anchor":"focus");var{anchor:s,focus:u}=n,c={distance:r,unit:o},l={};if(null==a||"anchor"===a){var p=i?An.before(e,s,c):An.after(e,s,c);p&&(l.anchor=p)}if(null==a||"focus"===a){var d=i?An.before(e,u,c):An.after(e,u,c);d&&(l.focus=d)}ir.setSelection(e,l)}},select(e,t){var{selection:n}=e;if(t=An.range(e,t),n)ir.setSelection(e,t);else{if(!Gn.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t,n){var{selection:r}=e,{edge:o="both"}=n;if(r){"start"===o&&(o=Gn.isBackward(r)?"focus":"anchor"),"end"===o&&(o=Gn.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,s="anchor"===o?i:a;ir.setSelection(e,{["anchor"===o?"anchor":"focus"]:rr({},s,{},t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!Hn.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!Hn.equals(t.focus,n.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},{},{delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};An.withoutNormalizing(e,(()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:s=!1}=t;if(a){if(Gn.isRange(a)&&Gn.isCollapsed(a)&&(a=a.anchor),Hn.isPoint(a)){var u=An.void(e,{at:a,mode:"highest"});if(!i&&u){var[,c]=u;a=c}else{var l={unit:r,distance:o};a={anchor:a,focus:n?An.before(e,a,l)||An.start(e,[]):An.after(e,a,l)||An.end(e,[])},s=!0}}if(Fn.isPath(a))ir.removeNodes(e,{at:a,voids:i});else if(!Gn.isCollapsed(a)){s||(a=An.unhangRange(e,a,{voids:i}));var[p,d]=Gn.edges(a),f=An.above(e,{match:t=>An.isBlock(e,t),at:p,voids:i}),m=An.above(e,{match:t=>An.isBlock(e,t),at:d,voids:i}),h=f&&m&&!Fn.equals(f[1],m[1]),g=Fn.equals(p.path,d.path),v=i?null:An.void(e,{at:p,mode:"highest"}),b=i?null:An.void(e,{at:d,mode:"highest"});if(v){var y=An.before(e,p);y&&f&&Fn.isAncestor(f[1],y.path)&&(p=y)}if(b){var w=An.after(e,d);w&&m&&Fn.isAncestor(m[1],w.path)&&(d=w)}var E,S=[];for(var I of An.nodes(e,{at:a,voids:i})){var[x,O]=I;E&&0===Fn.compare(O,E)||(!i&&An.isVoid(e,x)||!Fn.isCommon(O,p.path)&&!Fn.isCommon(O,d.path))&&(S.push(I),E=O)}var C=Array.from(S,(t=>{var[,n]=t;return An.pathRef(e,n)})),D=An.pointRef(e,p),P=An.pointRef(e,d);if(!g&&!v){var M=D.current,[k]=An.leaf(e,M),{path:A}=M,{offset:N}=p,j=k.text.slice(N);e.apply({type:"remove_text",path:A,offset:N,text:j})}for(var T of C){var L=T.unref();ir.removeNodes(e,{at:L,voids:i})}if(!b){var R=P.current,[_]=An.leaf(e,R),{path:F}=R,B=g?p.offset:0,Z=_.text.slice(B,d.offset);e.apply({type:"remove_text",path:F,offset:B,text:Z})}!g&&h&&P.current&&D.current&&ir.mergeNodes(e,{at:P.current,hanging:!0,voids:i});var H=P.unref()||D.unref();null==t.at&&H&&ir.select(e,H)}}}))},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};An.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(Gn.isRange(i))if(r||(i=An.unhangRange(e,i)),Gn.isCollapsed(i))i=i.anchor;else{var[,a]=Gn.edges(i);if(!o&&An.void(e,{at:a}))return;var s=An.pointRef(e,a);ir.delete(e,{at:i}),i=s.unref()}else Fn.isPath(i)&&(i=An.start(e,i));if(o||!An.void(e,{at:i})){var u=An.above(e,{at:i,match:t=>An.isInline(e,t),mode:"highest",voids:o});if(u){var[,c]=u;if(An.isEnd(e,i,c))i=An.after(e,c);else if(An.isStart(e,i,c)){i=An.before(e,c)}}var l=An.above(e,{match:t=>An.isBlock(e,t),at:i,voids:o}),[,p]=l,d=An.isStart(e,i,p),f=An.isEnd(e,i,p),m=!d||d&&f,h=!f,[,g]=Tn.first({children:t},[]),[,v]=Tn.last({children:t},[]),b=[],y=t=>{var[n,r]=t;return!(m&&Fn.isAncestor(r,g)&&Nn.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(h&&Fn.isAncestor(r,v)&&Nn.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))};for(var w of Tn.nodes({children:t},{pass:y}))w[1].length>0&&y(w)&&b.push(w);var E=[],S=[],I=[],x=!0,O=!1;for(var[C]of b)Nn.isElement(C)&&!e.isInline(C)?(x=!1,O=!0,S.push(C)):x?E.push(C):I.push(C);var[D]=An.nodes(e,{at:i,match:t=>Jn.isText(t)||An.isInline(e,t),mode:"highest",voids:o}),[,P]=D,M=An.isStart(e,i,P),k=An.isEnd(e,i,P),A=An.pathRef(e,f?Fn.next(p):p),N=An.pathRef(e,k?Fn.next(P):P);ir.splitNodes(e,{at:i,match:t=>O?An.isBlock(e,t):Jn.isText(t)||An.isInline(e,t),mode:O?"lowest":"highest",voids:o});var j=An.pathRef(e,!M||M&&k?Fn.next(P):P);if(ir.insertNodes(e,E,{at:j.current,match:t=>Jn.isText(t)||An.isInline(e,t),mode:"highest",voids:o}),ir.insertNodes(e,S,{at:A.current,match:t=>An.isBlock(e,t),mode:"lowest",voids:o}),ir.insertNodes(e,I,{at:N.current,match:t=>Jn.isText(t)||An.isInline(e,t),mode:"highest",voids:o}),!n.at){var T;T=I.length>0?Fn.previous(N.current):S.length>0?Fn.previous(A.current):Fn.previous(j.current);var L=An.end(e,T);ir.select(e,L)}j.unref(),A.unref(),N.unref()}}}))},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};An.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(Fn.isPath(o)&&(o=An.range(e,o)),Gn.isRange(o))if(Gn.isCollapsed(o))o=o.anchor;else{var i=Gn.end(o);if(!r&&An.void(e,{at:i}))return;var a=An.pointRef(e,i);ir.delete(e,{at:o,voids:r}),o=a.unref(),ir.setSelection(e,{anchor:o,focus:o})}if(r||!An.void(e,{at:o})){var{path:s,offset:u}=o;e.apply({type:"insert_text",path:s,offset:u,text:t})}}}))}});function ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ar(Object(n),!0).forEach((function(t){dn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ar(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ur=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of An.pathRefs(e))Bn.transform(n,t);for(var r of An.pointRefs(e))Un.transform(r,t);for(var o of An.rangeRefs(e))zn.transform(o,t);var i=new Set,a=[],s=e=>{if(e){var t=e.join(",");i.has(t)||(i.add(t),a.push(e))}},u=mn.get(e)||[],c=cr(t);for(var l of u){s(Fn.transform(l,t))}for(var p of c)s(p);mn.set(e,a),An.transform(e,t),e.operations.push(t),An.normalize(e),"set_selection"===t.type&&(e.marks=null),hn.get(e)||(hn.set(e,!0),Promise.resolve().then((()=>{hn.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(Gn.isExpanded(r))ir.setNodes(e,{[t]:n},{match:Jn.isText,split:!0});else{var o=sr({},An.marks(e)||{},{[t]:n});e.marks=o,e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&Gn.isCollapsed(n)&&ir.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&Gn.isCollapsed(n)&&ir.delete(e,{unit:t})},deleteFragment:()=>{var{selection:t}=e;t&&Gn.isExpanded(t)&&ir.delete(e)},getFragment:()=>{var{selection:t}=e;return t&&Gn.isExpanded(t)?Tn.fragment(e,t):[]},insertBreak:()=>{ir.splitNodes(e,{always:!0})},insertFragment:t=>{ir.insertFragment(e,t)},insertNode:t=>{ir.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(Gn.isCollapsed(n)){var o=An.above(e,{match:t=>An.isInline(e,t),mode:"highest"});if(o){var[,i]=o;if(An.isEnd(e,n.anchor,i)){var a=An.after(e,i);ir.setSelection(e,{anchor:a,focus:a})}}}if(r){var s=sr({text:t},r);ir.insertNodes(e,s)}else ir.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!Jn.isText(n))if(Nn.isElement(n)&&0===n.children.length){ir.insertNodes(e,{text:""},{at:r.concat(0),voids:!0})}else for(var o=!An.isEditor(n)&&(Nn.isElement(n)&&(e.isInline(n)||0===n.children.length||Jn.isText(n.children[0])||e.isInline(n.children[0]))),i=0,a=0;a<n.children.length;a++,i++){var s=n.children[a],u=n.children[a-1],c=a===n.children.length-1;if((Jn.isText(s)||Nn.isElement(s)&&e.isInline(s))!==o)ir.removeNodes(e,{at:r.concat(i),voids:!0}),i--;else if(Nn.isElement(s)){if(e.isInline(s))if(null!=u&&Jn.isText(u)){if(c){ir.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++}}else{ir.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++}}else null!=u&&Jn.isText(u)&&(Jn.equals(s,u,{loose:!0})?(ir.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):""===u.text?(ir.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):c&&""===s.text&&(ir.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}},removeMark:t=>{var{selection:n}=e;if(n)if(Gn.isExpanded(n))ir.unsetNodes(e,t,{match:Jn.isText,split:!0});else{var r=sr({},An.marks(e)||{});delete r[t],e.marks=r,e.onChange()}}};return e},cr=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return Fn.levels(t);case"insert_node":var{node:n,path:r}=e;return[...Fn.levels(r),...Jn.isText(n)?[]:Array.from(Tn.nodes(n),(e=>{var[,t]=e;return r.concat(t)}))];case"merge_node":var{path:o}=e;return[...Fn.ancestors(o),Fn.previous(o)];case"move_node":var{path:i,newPath:a}=e;if(Fn.equals(i,a))return[];var s=[],u=[];for(var c of Fn.ancestors(i)){var l=Fn.transform(c,e);s.push(l)}for(var p of Fn.ancestors(a)){var d=Fn.transform(p,e);u.push(d)}return[...s,...u];case"remove_node":var{path:f}=e;return[...Fn.ancestors(f)];case"split_node":var{path:m}=e;return[...Fn.levels(m),Fn.next(m)];default:return[]}},lr=n(38172),pr=n.n(lr);function dr(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function fr(e,t){return(!t||"hidden"!==e)&&("visible"!==e&&"clip"!==e)}function mr(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return fr(n.overflowY,t)||fr(n.overflowX,t)||function(e){var t=function(e){return e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView.frameElement:null}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function hr(e,t,n,r,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0}var gr=function(e,t){var n=t.scrollMode,r=t.block,o=t.inline,i=t.boundary,a=t.skipOverflowHiddenElements,s="function"==typeof i?i:function(e){return e!==i};if(!dr(e))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,c=[],l=e;dr(l)&&s(l);){if((l=l.parentNode)===u){c.push(l);break}l===document.body&&mr(l)&&!mr(document.documentElement)||mr(l,a)&&c.push(l)}for(var p=window.visualViewport?visualViewport.width:innerWidth,d=window.visualViewport?visualViewport.height:innerHeight,f=window.scrollX||pageXOffset,m=window.scrollY||pageYOffset,h=e.getBoundingClientRect(),g=h.height,v=h.width,b=h.top,y=h.right,w=h.bottom,E=h.left,S="start"===r||"nearest"===r?b:"end"===r?w:b+g/2,I="center"===o?E+v/2:"end"===o?y:E,x=[],O=0;O<c.length;O++){var C=c[O],D=C.getBoundingClientRect(),P=D.height,M=D.width,k=D.top,A=D.right,N=D.bottom,j=D.left;if("if-needed"===n&&b>=0&&E>=0&&w<=d&&y<=p&&b>=k&&w<=N&&E>=j&&y<=A)return x;var T=getComputedStyle(C),L=parseInt(T.borderLeftWidth,10),R=parseInt(T.borderTopWidth,10),_=parseInt(T.borderRightWidth,10),F=parseInt(T.borderBottomWidth,10),B=0,Z=0,H="offsetWidth"in C?C.offsetWidth-C.clientWidth-L-_:0,U="offsetHeight"in C?C.offsetHeight-C.clientHeight-R-F:0;if(u===C)B="start"===r?S:"end"===r?S-d:"nearest"===r?hr(m,m+d,d,R,F,m+S,m+S+g,g):S-d/2,Z="start"===o?I:"center"===o?I-p/2:"end"===o?I-p:hr(f,f+p,p,L,_,f+I,f+I+v,v),B=Math.max(0,B+m),Z=Math.max(0,Z+f);else{B="start"===r?S-k-R:"end"===r?S-N+F+U:"nearest"===r?hr(k,N,P,R,F+U,S,S+g,g):S-(k+P/2)+U/2,Z="start"===o?I-j-L:"center"===o?I-(j+M/2)+H/2:"end"===o?I-A+_+H:hr(j,A,M,L,_+H,I,I+v,v);var W=C.scrollLeft,G=C.scrollTop;S+=G-(B=Math.max(0,Math.min(G+B,C.scrollHeight-P+U))),I+=W-(Z=Math.max(0,Math.min(W+Z,C.scrollWidth-M+H)))}x.push({el:C,top:B,left:Z})}return x};function vr(e){return e===Object(e)&&0!==Object.keys(e).length}var br=function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(vr(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:gr(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:vr(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))}(gr(e,r),r.behavior)}},yr=n(19141),wr=n.n(yr),Er=n(45350);function Sr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ir(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var xr=0;class Or{constructor(){this.id="".concat(xr++)}}var Cr=new WeakMap,Dr=new WeakMap,Pr=new WeakMap,Mr=new WeakMap,kr=new WeakMap,Ar=new WeakMap,Nr=new WeakMap,jr=new WeakMap,Tr=new WeakMap,Lr=new WeakMap,Rr=Symbol("placeholder"),_r=e=>Fr(e)&&1===e.nodeType,Fr=e=>e instanceof Node,Br=e=>Fr(e)&&3===e.nodeType,Zr=(e,t,n)=>{for(var r,{childNodes:o}=e,i=o[t],a=t,s=!1,u=!1;(Fr(r=i)&&8===r.nodeType||_r(i)&&0===i.childNodes.length||_r(i)&&"false"===i.getAttribute("contenteditable"))&&(!s||!u);)a>=o.length?(s=!0,a=t-1,n="backward"):a<0?(u=!0,a=t+1,n="forward"):(i=o[a],a+="forward"===n?1:-1);return i},Hr=e=>{var t="";if(Br(e)&&e.nodeValue)return e.nodeValue;if(_r(e)){for(var n of Array.from(e.childNodes))t+=Hr(n);var r=getComputedStyle(e).getPropertyValue("display");"block"!==r&&"list"!==r&&"BR"!==e.tagName||(t+="\n")}return t},Ur={findKey(e,t){var n=Nr.get(t);return n||(n=new Or,Nr.set(t,n)),n},findPath(e,t){for(var n=[],r=t;;){var o=Dr.get(r);if(null==o){if(An.isEditor(r))return n;break}var i=Cr.get(r);if(null==i)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: ".concat(JSON.stringify(t)))},isFocused:e=>!!Tr.get(e),isReadOnly:e=>!!jr.get(e),blur(e){var t=Ur.toDOMNode(e,e);Tr.set(e,!1),window.document.activeElement===t&&t.blur()},focus(e){var t=Ur.toDOMNode(e,e);Tr.set(e,!0),window.document.activeElement!==t&&t.focus({preventScroll:!0})},deselect(e){var{selection:t}=e,n=window.getSelection();n&&n.rangeCount>0&&n.removeAllRanges(),t&&ir.deselect(e)},hasDOMNode(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{editable:o=!1}=r,i=Ur.toDOMNode(e,e);try{n=_r(t)?t:t.parentElement}catch(a){if(!a.message.includes('Permission denied to access property "nodeType"'))throw a}return!!n&&(n.closest("[data-slate-editor]")===i&&(!o||n.isContentEditable||!!n.getAttribute("data-slate-zero-width")))},insertData(e,t){e.insertData(t)},setFragmentData(e,t){e.setFragmentData(t)},toDOMNode(e,t){var n=An.isEditor(t)?Pr.get(e):kr.get(Ur.findKey(e,t));if(!n)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(JSON.stringify(t)));return n},toDOMPoint(e,t){var n,[r]=An.node(e,t.path),o=Ur.toDOMNode(e,r);An.void(e,{at:t})&&(t={path:t.path,offset:0});var i=Array.from(o.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),a=0;for(var s of i){var u=s.childNodes[0];if(null!=u&&null!=u.textContent){var{length:c}=u.textContent,l=s.getAttribute("data-slate-length"),p=a+(null==l?c:parseInt(l,10));if(t.offset<=p){n=[u,Math.min(c,Math.max(0,t.offset-a))];break}a=p}}if(!n)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(JSON.stringify(t)));return n},toDOMRange(e,t){var{anchor:n,focus:r}=t,o=Gn.isBackward(t),i=Ur.toDOMPoint(e,n),a=Gn.isCollapsed(t)?i:Ur.toDOMPoint(e,r),s=window.document.createRange(),[u,c]=o?a:i,[l,p]=o?i:a,d=!!(_r(u)?u:u.parentElement).getAttribute("data-slate-zero-width"),f=!!(_r(l)?l:l.parentElement).getAttribute("data-slate-zero-width");return s.setStart(u,d?1:c),s.setEnd(l,f?1:p),s},toSlateNode(e,t){var n=_r(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?Mr.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(n));return r},findEventRange(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var{clientX:n,clientY:r,target:o}=t;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var i,a=Ur.toSlateNode(e,t.target),s=Ur.findPath(e,a);if(An.isVoid(e,a)){var u=o.getBoundingClientRect(),c=e.isInline(a)?n-u.left<u.left+u.width-n:r-u.top<u.top+u.height-r,l=An.point(e,s,{edge:c?"start":"end"}),p=c?An.before(e,l):An.after(e,l);if(p)return An.range(e,p)}var{document:d}=window;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(n,r);else{var f=d.caretPositionFromPoint(n,r);f&&((i=d.createRange()).setStart(f.offsetNode,f.offset),i.setEnd(f.offsetNode,f.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));return Ur.toSlateRange(e,i)},toSlatePoint(e,t){var[n,r]=(e=>{var[t,n]=e;if(_r(t)&&t.childNodes.length){var r=n===t.childNodes.length,o=r?"backward":"forward";for(t=Zr(t,r?n-1:n,o);_r(t)&&t.childNodes.length;){var i=r?t.childNodes.length-1:0;t=Zr(t,i,o)}n=r&&null!=t.textContent?t.textContent.length:0}return[t,n]})(t),o=n.parentNode,i=null,a=0;if(o){var s=o.closest('[data-slate-void="true"]'),u=o.closest("[data-slate-leaf]"),c=null;if(u){i=u.closest('[data-slate-node="text"]');var l=window.document.createRange();l.setStart(i,0),l.setEnd(n,r);var p=l.cloneContents();[...p.querySelectorAll("[data-slate-zero-width]"),...p.querySelectorAll("[contenteditable=false]")].forEach((e=>{e.parentNode.removeChild(e)})),a=p.textContent.length,c=i}else s&&(i=(u=s.querySelector("[data-slate-leaf]")).closest('[data-slate-node="text"]'),a=(c=u).textContent.length);c&&a===c.textContent.length&&o.hasAttribute("data-slate-zero-width")&&a--}if(!i)throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t));var d=Ur.toSlateNode(e,i);return{path:Ur.findPath(e,d),offset:a}},toSlateRange(e,t){var n,r,o,i,a;if((t instanceof Selection?t.anchorNode:t.startContainer)&&(t instanceof Selection?(n=t.anchorNode,r=t.anchorOffset,o=t.focusNode,i=t.focusOffset,a=t.isCollapsed):(n=t.startContainer,r=t.startOffset,o=t.endContainer,i=t.endOffset,a=t.collapsed)),null==n||null==o||null==r||null==i)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));var s=Ur.toSlatePoint(e,[n,r]);return{anchor:s,focus:a?s:Ur.toSlatePoint(e,[o,i])}}},Wr=(0,o.createContext)(!1),Gr=(0,o.createContext)(null),zr=()=>{var e=(0,o.useContext)(Gr);if(!e)throw new Error("The `useEditor` hook must be used inside the <Slate> component's context.");return e},qr=(0,o.createContext)(null),Vr=()=>{var e=(0,o.useContext)(qr);if(!e)throw new Error("The `useSlate` hook must be used inside the <SlateProvider> component's context.");var[t]=e;return t},Jr=e=>{var{editor:t,children:n,onChange:r,value:i}=e,a=Ir(e,["editor","children","onChange","value"]),[s,u]=(0,o.useState)(0),c=(0,o.useMemo)((()=>(t.children=i,Object.assign(t,a),[t])),[s,i,...Object.values(a)]),l=(0,o.useCallback)((()=>{r(t.children),u(s+1)}),[s,r]);return Lr.set(t,l),(0,o.useEffect)((()=>()=>{Lr.set(t,(()=>{}))}),[]),o.createElement(qr.Provider,{value:c},o.createElement(Gr.Provider,{value:t},o.createElement(Wr.Provider,{value:Ur.isFocused(t)},n)))},Yr=(0,o.createContext)(!1),Qr=(0,o.createContext)(!1),Xr=e=>{var{isLast:t,leaf:n,parent:r,text:i}=e,a=zr(),s=Ur.findPath(a,i),u=Fn.parent(s);return a.isVoid(r)?o.createElement($r,{length:Tn.string(r).length}):""!==n.text||r.children[r.children.length-1]!==i||a.isInline(r)||""!==An.string(a,u)?""===n.text?o.createElement($r,null):t&&"\n"===n.text.slice(-1)?o.createElement(Kr,{isTrailing:!0,text:n.text}):o.createElement(Kr,{text:n.text}):o.createElement($r,{isLineBreak:!0})},Kr=e=>{var{text:t,isTrailing:n=!1}=e;return o.createElement("span",{"data-slate-string":!0},t,n?"\n":null)},$r=e=>{var{length:t=0,isLineBreak:n=!1}=e;return o.createElement("span",{"data-slate-zero-width":n?"n":"z","data-slate-length":t},"\ufeff",n?o.createElement("br",null):null)},eo=o.memo((e=>{var{leaf:t,isLast:n,text:r,parent:i,renderLeaf:a=(e=>o.createElement(to,Object.assign({},e)))}=e,s=o.createElement(Xr,{isLast:n,leaf:t,parent:i,text:r});t[Rr]&&(s=o.createElement(o.Fragment,null,o.createElement("span",{contentEditable:!1,style:{pointerEvents:"none",display:"inline-block",verticalAlign:"text-top",width:"0",maxWidth:"100%",whiteSpace:"nowrap",opacity:"0.333",userSelect:"none"}},t.placeholder),s));return a({attributes:{"data-slate-leaf":!0},children:s,leaf:t,text:r})}),((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.text===e.text&&Jn.matches(t.leaf,e.leaf))),to=e=>{var{attributes:t,children:n}=e;return o.createElement("span",Object.assign({},t),n)},no="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,ro=o.memo((e=>{for(var{decorations:t,isLast:n,parent:r,renderLeaf:i,text:a}=e,s=zr(),u=(0,o.useRef)(null),c=Jn.decorations(a,t),l=Ur.findKey(s,a),p=[],d=0;d<c.length;d++){var f=c[d];p.push(o.createElement(eo,{isLast:n&&d===c.length-1,key:"".concat(l.id,"-").concat(d),leaf:f,text:a,parent:r,renderLeaf:i}))}return no((()=>{u.current?(kr.set(l,u.current),Ar.set(a,u.current),Mr.set(u.current,a)):(kr.delete(l),Ar.delete(a))})),o.createElement("span",{"data-slate-node":"text",ref:u},p)}),((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.text===e.text)),oo=o.memo((e=>{var{decorate:t,decorations:n,element:r,renderElement:i=(e=>o.createElement(io,Object.assign({},e))),renderLeaf:a,selection:s}=e,u=(0,o.useRef)(null),c=zr(),l=(0,o.useContext)(Yr),p=c.isInline(r),d=Ur.findKey(c,r),f=o.createElement(so,{decorate:t,decorations:n,node:r,renderElement:i,renderLeaf:a,selection:s}),m={"data-slate-node":"element",ref:u};if(p&&(m["data-slate-inline"]=!0),!p&&An.hasInlines(c,r)){var h=Tn.string(r),g=wr()(h);"rtl"===g&&(m.dir=g)}if(An.isVoid(c,r)){m["data-slate-void"]=!0,!l&&p&&(m.contentEditable=!1);var v=p?"span":"div",[[b]]=Tn.texts(r);f=l?null:o.createElement(v,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},o.createElement(ro,{decorations:[],isLast:!1,parent:r,text:b})),Cr.set(b,0),Dr.set(b,r)}return no((()=>{u.current?(kr.set(d,u.current),Ar.set(r,u.current),Mr.set(u.current,r)):(kr.delete(d),Ar.delete(r))})),o.createElement(Qr.Provider,{value:!!s},i({attributes:m,children:f,element:r}))}),((e,t)=>e.decorate===t.decorate&&e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&ao(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&Gn.equals(e.selection,t.selection)))),io=e=>{var{attributes:t,children:n,element:r}=e,i=zr().isInline(r)?"span":"div";return o.createElement(i,Object.assign({},t,{style:{position:"relative"}}),n)},ao=(e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],o=t[n];if(!Gn.equals(r,o))return!1}return!0},so=e=>{for(var{decorate:t,decorations:n,node:r,renderElement:i,renderLeaf:a,selection:s}=e,u=zr(),c=Ur.findPath(u,r),l=[],p=Nn.isElement(r)&&!u.isInline(r)&&An.hasInlines(u,r),d=0;d<r.children.length;d++){var f=c.concat(d),m=r.children[d],h=Ur.findKey(u,m),g=An.range(u,f),v=s&&Gn.intersection(g,s),b=t([m,f]);for(var y of n){var w=Gn.intersection(y,g);w&&b.push(w)}Nn.isElement(m)?l.push(o.createElement(oo,{decorate:t,decorations:b,element:m,key:h.id,renderElement:i,renderLeaf:a,selection:v})):l.push(o.createElement(ro,{decorations:b,key:h.id,isLast:p&&d===r.children.length-1,parent:r,renderLeaf:a,text:m})),Cr.set(m,d),Dr.set(m,r)}return o.createElement(o.Fragment,null,l)},uo=("undefined"!=typeof navigator&&"undefined"!=typeof window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&window.MSStream,"undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent)),co="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),lo="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),po="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])/i.test(navigator.userAgent),fo={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z"},mo={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},ho={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},go=e=>{var t=fo[e],n=mo[e],r=ho[e],o=t&&(0,Er.TB)(t),i=n&&(0,Er.TB)(n),a=r&&(0,Er.TB)(r);return e=>!(!o||!o(e))||(!!(uo&&i&&i(e))||!(uo||!a||!a(e)))},vo={isBold:go("bold"),isCompose:go("compose"),isMoveBackward:go("moveBackward"),isMoveForward:go("moveForward"),isDeleteBackward:go("deleteBackward"),isDeleteForward:go("deleteForward"),isDeleteLineBackward:go("deleteLineBackward"),isDeleteLineForward:go("deleteLineForward"),isDeleteWordBackward:go("deleteWordBackward"),isDeleteWordForward:go("deleteWordForward"),isExtendBackward:go("extendBackward"),isExtendForward:go("extendForward"),isExtendLineBackward:go("extendLineBackward"),isExtendLineForward:go("extendLineForward"),isItalic:go("italic"),isMoveLineBackward:go("moveLineBackward"),isMoveLineForward:go("moveLineForward"),isMoveWordBackward:go("moveWordBackward"),isMoveWordForward:go("moveWordForward"),isRedo:go("redo"),isSplitBlock:go("splitBlock"),isTransposeCharacter:go("transposeCharacter"),isUndo:go("undo")};function bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bo(Object(n),!0).forEach((function(t){Sr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var wo=!(co||po),Eo=e=>{var{autoFocus:t,decorate:n=So,onDOMBeforeInput:r,placeholder:i,readOnly:a=!1,renderElement:s,renderLeaf:u,style:c={},as:l="div"}=e,p=Ir(e,["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","style","as"]),d=Vr(),f=(0,o.useRef)(null);jr.set(d,a);var m=(0,o.useMemo)((()=>({isComposing:!1,isUpdatingSelection:!1,latestElement:null})),[]);no((()=>{f.current?(Pr.set(d,f.current),Ar.set(d,f.current),Mr.set(f.current,d)):Ar.delete(d)})),no((()=>{var{selection:e}=d,t=window.getSelection();if(!m.isComposing&&t&&Ur.isFocused(d)){var n="None"!==t.type;if(e||n){var r=Pr.get(d),o=!1;if(r.contains(t.anchorNode)&&r.contains(t.focusNode)&&(o=!0),!(n&&o&&e&&Gn.equals(Ur.toSlateRange(d,t),e))){var i=Ur.toDOMNode(d,d);m.isUpdatingSelection=!0,t.removeAllRanges();var a=e&&Ur.toDOMRange(d,e);if(a){t.addRange(a);var s=a.startContainer.parentElement;br(s,{scrollMode:"if-needed",boundary:i})}setTimeout((()=>{a&&co&&i.focus(),m.isUpdatingSelection=!1}))}}}})),(0,o.useEffect)((()=>{f.current&&t&&f.current.focus()}),[t]);var h=(0,o.useCallback)((e=>{if(!a&&xo(d,e.target)&&!Do(e,r)){var{selection:t}=d,{inputType:n}=e,o=e.dataTransfer||e.data||void 0;if("insertCompositionText"===n||"deleteCompositionText"===n)return;if(e.preventDefault(),!n.startsWith("delete")||n.startsWith("deleteBy")){var[i]=e.getTargetRanges();if(i){var s=Ur.toSlateRange(d,i);t&&Gn.equals(t,s)||ir.select(d,s)}}if(t&&Gn.isExpanded(t)&&n.startsWith("delete"))return void An.deleteFragment(d);switch(n){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":An.deleteFragment(d);break;case"deleteContent":case"deleteContentForward":An.deleteForward(d);break;case"deleteContentBackward":An.deleteBackward(d);break;case"deleteEntireSoftLine":An.deleteBackward(d,{unit:"line"}),An.deleteForward(d,{unit:"line"});break;case"deleteHardLineBackward":An.deleteBackward(d,{unit:"block"});break;case"deleteSoftLineBackward":An.deleteBackward(d,{unit:"line"});break;case"deleteHardLineForward":An.deleteForward(d,{unit:"block"});break;case"deleteSoftLineForward":An.deleteForward(d,{unit:"line"});break;case"deleteWordBackward":An.deleteBackward(d,{unit:"word"});break;case"deleteWordForward":An.deleteForward(d,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":An.insertBreak(d);break;case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":o instanceof DataTransfer?Ur.insertData(d,o):"string"==typeof o&&An.insertText(d,o)}}}),[a]);no((()=>(f.current&&f.current.addEventListener("beforeinput",h),()=>{f.current&&f.current.removeEventListener("beforeinput",h)})),[h]);var g=(0,o.useCallback)(pr()((()=>{if(!a&&!m.isComposing&&!m.isUpdatingSelection){var{activeElement:e}=window.document,t=Ur.toDOMNode(d,d),n=window.getSelection();if(e===t?(m.latestElement=e,Tr.set(d,!0)):Tr.delete(d),!n)return ir.deselect(d);var{anchorNode:r,focusNode:o}=n,i=xo(d,r)||Oo(d,r),s=xo(d,o)||Oo(d,o);if(i&&s){var u=Ur.toSlateRange(d,n);ir.select(d,u)}else ir.deselect(d)}}),100),[a]);no((()=>(window.document.addEventListener("selectionchange",g),()=>{window.document.removeEventListener("selectionchange",g)})),[g]);var v=n([d,[]]);if(i&&1===d.children.length&&1===Array.from(Tn.texts(d)).length&&""===Tn.string(d)){var b=An.start(d,[]);v.push({[Rr]:!0,placeholder:i,anchor:b,focus:b})}return o.createElement(Yr.Provider,{value:a},o.createElement(l,Object.assign({"data-gramm":!1,role:a?void 0:"textbox"},p,{spellCheck:wo?p.spellCheck:void 0,autoCorrect:wo?p.autoCorrect:void 0,autoCapitalize:wo?p.autoCapitalize:void 0,"data-slate-editor":!0,"data-slate-node":"value",contentEditable:!a||void 0,suppressContentEditableWarning:!0,ref:f,style:yo({outline:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},c),onBeforeInput:(0,o.useCallback)((e=>{if(!wo&&!a&&!Co(e,p.onBeforeInput)&&xo(d,e.target)){e.preventDefault();var t=e.data;An.insertText(d,t)}}),[a]),onBlur:(0,o.useCallback)((e=>{if(!a&&!m.isUpdatingSelection&&xo(d,e.target)&&!Co(e,p.onBlur)&&m.latestElement!==window.document.activeElement){var{relatedTarget:t}=e;if(!(t===Ur.toDOMNode(d,d)||_r(t)&&t.hasAttribute("data-slate-spacer"))){if(null!=t&&Fr(t)&&Ur.hasDOMNode(d,t)){var n=Ur.toSlateNode(d,t);if(Nn.isElement(n)&&!d.isVoid(n))return}Tr.delete(d)}}}),[a,p.onBlur]),onClick:(0,o.useCallback)((e=>{if(!a&&Io(d,e.target)&&!Co(e,p.onClick)&&Fr(e.target)){var t=Ur.toSlateNode(d,e.target),n=Ur.findPath(d,t),r=An.start(d,n),o=An.end(d,n),i=An.void(d,{at:r}),s=An.void(d,{at:o});if(i&&s&&Fn.equals(i[1],s[1])){var u=An.range(d,r);ir.select(d,u)}}}),[a,p.onClick]),onCompositionEnd:(0,o.useCallback)((e=>{xo(d,e.target)&&!Co(e,p.onCompositionEnd)&&(m.isComposing=!1,lo||co||!e.data||An.insertText(d,e.data))}),[p.onCompositionEnd]),onCompositionStart:(0,o.useCallback)((e=>{xo(d,e.target)&&!Co(e,p.onCompositionStart)&&(m.isComposing=!0)}),[p.onCompositionStart]),onCopy:(0,o.useCallback)((e=>{xo(d,e.target)&&!Co(e,p.onCopy)&&(e.preventDefault(),Ur.setFragmentData(d,e.clipboardData))}),[p.onCopy]),onCut:(0,o.useCallback)((e=>{if(!a&&xo(d,e.target)&&!Co(e,p.onCut)){e.preventDefault(),Ur.setFragmentData(d,e.clipboardData);var{selection:t}=d;t&&Gn.isExpanded(t)&&An.deleteFragment(d)}}),[a,p.onCut]),onDragOver:(0,o.useCallback)((e=>{if(Io(d,e.target)&&!Co(e,p.onDragOver)){var t=Ur.toSlateNode(d,e.target);An.isVoid(d,t)&&e.preventDefault()}}),[p.onDragOver]),onDragStart:(0,o.useCallback)((e=>{if(Io(d,e.target)&&!Co(e,p.onDragStart)){var t=Ur.toSlateNode(d,e.target),n=Ur.findPath(d,t);if(An.void(d,{at:n})){var r=An.range(d,n);ir.select(d,r)}Ur.setFragmentData(d,e.dataTransfer)}}),[p.onDragStart]),onDrop:(0,o.useCallback)((e=>{if(Io(d,e.target)&&!a&&!Co(e,p.onDrop)&&(!wo||!lo&&e.dataTransfer.files.length>0)){e.preventDefault();var t=Ur.findEventRange(d,e),n=e.dataTransfer;ir.select(d,t),Ur.insertData(d,n)}}),[a,p.onDrop]),onFocus:(0,o.useCallback)((e=>{if(!a&&!m.isUpdatingSelection&&xo(d,e.target)&&!Co(e,p.onFocus)){var t=Ur.toDOMNode(d,d);if(m.latestElement=window.document.activeElement,co&&e.target!==t)return void t.focus();Tr.set(d,!0)}}),[a,p.onFocus]),onKeyDown:(0,o.useCallback)((e=>{if(!a&&xo(d,e.target)&&!Co(e,p.onKeyDown)){var{nativeEvent:t}=e,{selection:n}=d;if(vo.isRedo(t))return e.preventDefault(),void("function"==typeof d.redo&&d.redo());if(vo.isUndo(t))return e.preventDefault(),void("function"==typeof d.undo&&d.undo());if(vo.isMoveLineBackward(t))return e.preventDefault(),void ir.move(d,{unit:"line",reverse:!0});if(vo.isMoveLineForward(t))return e.preventDefault(),void ir.move(d,{unit:"line"});if(vo.isExtendLineBackward(t))return e.preventDefault(),void ir.move(d,{unit:"line",edge:"focus",reverse:!0});if(vo.isExtendLineForward(t))return e.preventDefault(),void ir.move(d,{unit:"line",edge:"focus"});if(vo.isMoveBackward(t))return e.preventDefault(),void(n&&Gn.isCollapsed(n)?ir.move(d,{reverse:!0}):ir.collapse(d,{edge:"start"}));if(vo.isMoveForward(t))return e.preventDefault(),void(n&&Gn.isCollapsed(n)?ir.move(d):ir.collapse(d,{edge:"end"}));if(vo.isMoveWordBackward(t))return e.preventDefault(),void ir.move(d,{unit:"word",reverse:!0});if(vo.isMoveWordForward(t))return e.preventDefault(),void ir.move(d,{unit:"word"});if(!wo){if(vo.isBold(t)||vo.isItalic(t)||vo.isTransposeCharacter(t))return void e.preventDefault();if(vo.isSplitBlock(t))return e.preventDefault(),void An.insertBreak(d);if(vo.isDeleteBackward(t))return e.preventDefault(),void(n&&Gn.isExpanded(n)?An.deleteFragment(d):An.deleteBackward(d));if(vo.isDeleteForward(t))return e.preventDefault(),void(n&&Gn.isExpanded(n)?An.deleteFragment(d):An.deleteForward(d));if(vo.isDeleteLineBackward(t))return e.preventDefault(),void(n&&Gn.isExpanded(n)?An.deleteFragment(d):An.deleteBackward(d,{unit:"line"}));if(vo.isDeleteLineForward(t))return e.preventDefault(),void(n&&Gn.isExpanded(n)?An.deleteFragment(d):An.deleteForward(d,{unit:"line"}));if(vo.isDeleteWordBackward(t))return e.preventDefault(),void(n&&Gn.isExpanded(n)?An.deleteFragment(d):An.deleteBackward(d,{unit:"word"}));if(vo.isDeleteWordForward(t))return e.preventDefault(),void(n&&Gn.isExpanded(n)?An.deleteFragment(d):An.deleteForward(d,{unit:"word"}))}}}),[a,p.onKeyDown]),onPaste:(0,o.useCallback)((e=>{Co(e,p.onPaste)||wo&&!(e=>e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length)(e.nativeEvent)||a||!xo(d,e.target)||(e.preventDefault(),Ur.insertData(d,e.clipboardData))}),[a,p.onPaste])}),o.createElement(so,{decorate:n,decorations:v,node:d,renderElement:s,renderLeaf:u,selection:d.selection})))},So=()=>[],Io=(e,t)=>Fr(t)&&Ur.hasDOMNode(e,t),xo=(e,t)=>Fr(t)&&Ur.hasDOMNode(e,t,{editable:!0}),Oo=(e,t)=>{var n=Io(e,t)&&Ur.toSlateNode(e,t);return An.isVoid(e,n)},Co=(e,t)=>!!t&&(t(e),e.isDefaultPrevented()||e.isPropagationStopped()),Do=(e,t)=>!!t&&(t(e),e.defaultPrevented),Po={isHistory:e=>tt(e)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||_n.isOperationList(e.redos[0]))&&(0===e.undos.length||_n.isOperationList(e.undos[0]))},Mo=(new WeakMap,new WeakMap),ko=new WeakMap,Ao={isHistoryEditor:e=>An.isEditor(e)&&Po.isHistory(e.history),isMerging:e=>ko.get(e),isSaving:e=>Mo.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=Ao.isMerging(e);ko.set(e,!1),t(),ko.set(e,n)},withoutSaving(e,t){var n=Ao.isSaving(e);Mo.set(e,!1),t(),Mo.set(e,n)}},No=(e,t)=>"set_selection"===e.type||(!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!Fn.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!Fn.equals(e.path,t.path))),jo=(e,t)=>"set_selection"!==e.type||null!=e.newProperties,To=(e,t)=>!(!t||"set_selection"!==e.type||"set_selection"!==t.type),Lo=e=>"set_selection"!==e.type;n(77295),n(19985),n(91967);function Ro(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _o=new WeakMap,Fo=new WeakMap;class Bo{}class Zo extends Bo{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();var{offset:t,path:n}=e;this.offset=t,this.path=n}}class Ho extends Bo{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();var{offset:t,path:n}=e;this.offset=t,this.path=n}}var Uo=e=>Fo.get(e);function Wo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Go(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wo(Object(n),!0).forEach((function(t){Ro(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var zo=new WeakSet,qo=e=>{var t=[],n=e=>{if(null!=e){var r=t[t.length-1];if("string"==typeof e){var o={text:e};zo.add(o),e=o}if(Jn.isText(e)){var i=e;Jn.isText(r)&&zo.has(r)&&zo.has(i)&&Jn.equals(r,i,{loose:!0})?r.text+=i.text:t.push(i)}else if(Nn.isElement(e))t.push(e);else{if(!(e instanceof Bo))throw new Error("Unexpected hyperscript child object: ".concat(e));var a=t[t.length-1];Jn.isText(a)||(n(""),a=t[t.length-1]),e instanceof Zo?((e,t)=>{var n=e.text.length;_o.set(e,[n,t])})(a,e):e instanceof Ho&&((e,t)=>{var n=e.text.length;Fo.set(e,[n,t])})(a,e)}}};for(var r of e.flat(1/0))n(r);return t};function Vo(e,t,n){return Go({},t,{children:qo(n)})}function Jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jo(Object(n),!0).forEach((function(t){Ro(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qo={anchor:function(e,t,n){return new Zo(t)},cursor:function(e,t,n){return[new Zo(t),new Ho(t)]},editor:function(e,t,n){var r,o=[];for(var i of n)Gn.isRange(i)?r=i:o.push(i);var a,s=qo(o),u={},c=ur();for(var[l,p]of(Object.assign(c,t),c.children=s,Tn.texts(c))){var d=(a=l,_o.get(a)),f=Uo(l);if(null!=d){var[m]=d;u.anchor={path:p,offset:m}}if(null!=f){var[h]=f;u.focus={path:p,offset:h}}}if(u.anchor&&!u.focus)throw new Error("Slate hyperscript ranges must have both `<anchor />` and `<focus />` defined if one is defined, but you only defined `<anchor />`. For collapsed selections, use `<cursor />` instead.");if(!u.anchor&&u.focus)throw new Error("Slate hyperscript ranges must have both `<anchor />` and `<focus />` defined if one is defined, but you only defined `<focus />`. For collapsed selections, use `<cursor />` instead.");return null!=r?c.selection=r:Gn.isRange(u)&&(c.selection=u),c},element:Vo,focus:function(e,t,n){return new Ho(t)},fragment:function(e,t,n){return qo(n)},selection:function(e,t,n){var r=n.find((e=>e instanceof Zo)),o=n.find((e=>e instanceof Ho));if(!r||null==r.offset||null==r.path)throw new Error("The <selection> hyperscript tag must have an <anchor> tag as a child with `path` and `offset` attributes defined.");if(!o||null==o.offset||null==o.path)throw new Error("The <selection> hyperscript tag must have a <focus> tag as a child with `path` and `offset` attributes defined.");return Go({anchor:{offset:r.offset,path:r.path},focus:{offset:o.offset,path:o.path}},t)},text:function(e,t,n){var r=qo(n);if(r.length>1)throw new Error("The <text> hyperscript tag must only contain a single node's worth of children.");var[o]=r;if(null==o&&(o={text:""}),!Jn.isText(o))throw new Error("\n The <text> hyperscript tag can only contain text content as children.");return zo.delete(o),Object.assign(o,t),o}},Xo=e=>function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];var a=e[t];if(!a)throw new Error("No hyperscript creator found for tag: <".concat(t,">"));null==n&&(n={}),tt(n)||(o=[n].concat(o),n={});var s=a(t,n,o=o.filter((e=>Boolean(e))).flat());return s},Ko=e=>{var t={},n=function(n){var r=e[n];if("object"!=typeof r)throw new Error("Properties specified for a hyperscript shorthand should be an object, but for the custom element <".concat(n,"> tag you passed: ").concat(r));t[n]=(e,t,n)=>Vo(0,Yo({},r,{},t),n)};for(var r in e)n(r);return t},$o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{elements:t={}}=e,n=Ko(t),r=Yo({},Qo,{},n,{},e.creators),o=Xo(r);return o}(),ei=n(43613),ti=n.n(ei),ni={A:function(e){return{type:"link",url:e.getAttribute("href"),newTab:"_blank"===e.getAttribute("target"),noFollow:!(!e.getAttribute("rel")||!e.getAttribute("rel").includes("nofollow"))}},P:function(){return{type:"paragraph"}},"WPRM-CODE":function(e){return{type:"code"}}},ri={EM:function(){return{italic:!0}},I:function(){return{italic:!0}},STRONG:function(){return{bold:!0}},B:function(){return{bold:!0}},U:function(){return{underline:!0}},SUB:function(){return{subscript:!0}},SUP:function(){return{superscript:!0}}},oi=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(3===t.nodeType)return t.textContent.replace(/\r?\n|\r/g,"");if(1!==t.nodeType)return null;if("BR"===t.nodeName)return"";var r=t.nodeName,o=t;"PRE"===r&&t.childNodes[0]&&"CODE"===t.childNodes[0].nodeName&&(o=t.childNodes[0]);var i=Array.from(o.childNodes).map((function(t){return e(t,n)})).reduce((function(e,t){return e.concat(t)}),[]);if("BODY"===t.nodeName)return $o("fragment",{},i);if(n&&"P"===r)return i;if(ni[r]){var a=ni[r](t);"A"===r&&t.hasAttribute("data-eafl-id")&&(a={type:"affiliate-link",url:t.getAttribute("href"),id:parseInt(t.getAttribute("data-eafl-id"))});var s=$o("element",a,i);return"WPRM-CODE"===r&&(s.children=[{text:t.innerHTML}]),0===s.children.length&&(s.children=[{text:""}]),s}if(ri[r]){var u=ri[r](t);return(i=i.map((function(e){return"string"==typeof e||Jn.isText(e)?e:e.hasOwnProperty("type")&&"link"===e.type&&(console.log("Information Lost",e),e.hasOwnProperty("children")&&1===e.children.length&&e.children[0].hasOwnProperty("text"))?e.children[0].text:""}))).map((function(e){return $o("text",u,e)}))}return i},ii=function e(t){if(Jn.isText(t)){var n=ti()(t.text);return t.bold&&(n="<strong>".concat(n,"</strong>")),t.italic&&(n="<em>".concat(n,"</em>")),t.underline&&(n="<u>".concat(n,"</u>")),t.subscript&&(n="<sub>".concat(n,"</sub>")),t.superscript&&(n="<sup>".concat(n,"</sup>")),n}var r=t.children.map((function(t){return e(t)})).join("");switch(t.type){case"paragraph":return"<p>".concat(r,"</p>");case"link":return'<a href="'.concat(ti()(t.url),'"').concat(t.newTab?' target="_blank"':"").concat(t.noFollow?' rel="nofollow"':"",">").concat(r,"</a>");case"affiliate-link":return'<a href="'.concat(ti()(t.url),'" data-eafl-id="').concat(ti()(t.id),'" class="eafl-link">').concat(r,"</a>");case"code":return"<wprm-code>".concat(r,"</wprm-code>");default:return r}},ai=n(62834),si=function(e){var t=document.getElementById("wprm-admin-modal-toolbar-container");return t?r.createPortal(o.createElement("div",{className:"wprm-admin-modal-toolbar",onMouseDown:function(e){e.preventDefault()}},e.children),t):null};function ui(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ci(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ci(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ci(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function li(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pi=function(){if(!window.hasOwnProperty("EAFL_Modal"))return null;var e=Vr(),t=ui(An.nodes(e,{match:function(e){return"affiliate-link"===e.type}}),1)[0],n=!!t;return o.createElement(o.Fragment,null,o.createElement("span",{className:"wprm-admin-modal-toolbar-button".concat(n?" wprm-admin-modal-toolbar-button-active":""),onMouseDown:function(r){r.preventDefault();var o=e.selection,i=o&&Gn.isCollapsed(o),a="";if(i||(window.getSelection?a=window.getSelection().toString():document.selection&&"Control"!=document.selection.type&&(a=document.selection.createRange().text)),n){var s=t[0];EAFL_Modal.open("edit",{linkId:s.id,saveCallback:function(n){s.url!==n.url&&function(e,t,n,r){var o=t[0],i=t[1],a=li({},n,o[n]),s=li({},n,r);e.apply({type:"set_node",path:i,properties:a,newProperties:s})}(e,t,"url",n.url)}})}else EAFL_Modal.open("insert",{insertCallback:function(t,n){n||(n="affiliate link");var r={type:"affiliate-link",children:i?[{text:n}]:[],url:t.url,id:t.id};i?ir.insertNodes(e,r):(ir.select(e,o),ir.wrapNodes(e,r,{split:!0}),ir.collapse(e,{edge:"end"}))},selectedText:a})}},o.createElement(ai.Z,{type:"eafl-link",title:n?(0,u.S)("Edit Affiliate Link"):(0,u.S)("Add Affiliate Link")})),n&&o.createElement("span",{className:"wprm-admin-modal-toolbar-button wprm-admin-modal-toolbar-button-active",onMouseDown:function(t){t.preventDefault(),ir.unwrapNodes(e,{match:function(e){return"affiliate-link"===e.type}})}},o.createElement(ai.Z,{type:"eafl-unlink",title:(0,u.S)("Remove Affiliate Link")})))};function di(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return fi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fi(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var mi=function(e){var t=Vr(),n=function(e,t){return!!di(An.nodes(e,{match:function(e){return e.type===t}}),1)[0]}(t,e.type);return o.createElement(o.Fragment,null,n?o.createElement("span",{className:"wprm-admin-modal-toolbar-button wprm-admin-modal-toolbar-button-active",onMouseDown:function(n){n.preventDefault(),ir.unwrapNodes(t,{match:function(t){return t.type===e.type}})}},e.IconRemove()):o.createElement("span",{className:"wprm-admin-modal-toolbar-button",onMouseDown:function(n){n.preventDefault();var r=t.selection,o=r&&Gn.isCollapsed(r),i=!0;if("link"===e.type&&(i=window.prompt((0,u.S)("Enter the URL of the link:"))),"code"===e.type&&o&&(i=window.prompt((0,u.S)("HTML or Shortcode:"))),i){var a={type:e.type,children:o?[{text:""}]:[]};switch(e.type){case"link":a.url=i,o&&(a.children=[{text:i}]);break;case"code":o&&(a.children=[{text:i}]);break;default:o&&(a.children=[{text:e.type}])}o?ir.insertNodes(t,a):(ir.wrapNodes(t,a,{split:!0}),ir.collapse(t,{edge:"end"}))}}},e.IconAdd()))},hi=function(e){var t=Vr();return o.createElement("span",{className:"wprm-admin-modal-toolbar-button",onMouseDown:function(n){n.preventDefault(),An.insertText(t,e.character)}},o.createElement(l.Z,{content:e.title},o.createElement("span",{className:"wprm-admin-modal-toolbar-button-character"},e.character)))},gi=function(e){var t=Vr(),n=e.isMarkActive(t,e.type);return o.createElement("span",{className:"wprm-admin-modal-toolbar-button".concat(n?" wprm-admin-modal-toolbar-button-active":""),onMouseDown:function(n){n.preventDefault(),e.toggleMark(t,e.type)}},o.createElement(ai.Z,{type:e.type,title:e.title}))};function vi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vi(Object(n),!0).forEach((function(t){yi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ei(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ei(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ei(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Si=function(e){var t=Vr();return o.createElement("span",{className:"wprm-admin-modal-toolbar-button",onMouseDown:function(n){n.preventDefault();var r=e.hasOwnProperty("before")?e.before:"",o=e.hasOwnProperty("after")?e.after:"",i=t.selection;if(i&&Gn.isCollapsed(i))t.insertText("".concat(r).concat(o)),ir.move(t,{distance:o.length,reverse:!0});else{var a=wi(Gn.edges(i),2),s=a[0],u=a[1];JSON.stringify(s.path)===JSON.stringify(u.path)&&(u=bi(bi({},u),{},{offset:u.offset+r.length})),ir.insertText(t,r,{at:s}),ir.insertText(t,o,{at:u}),ir.collapse(t,{edge:"end"})}}},e.Icon())},Ii=function(e){return o.createElement("span",{className:"wprm-admin-modal-toolbar-spacer"})};function xi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Oi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Oi(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ci=function(){var e=Vr(),t=xi(An.nodes(e,{match:function(e){return"affiliate-link"===e.type}}),1)[0];if(!t)return null;var n=t[0];return o.createElement("div",{className:"wprm-admin-modal-toolbar-link"},o.createElement(ai.Z,{type:"eafl-link"}),o.createElement("span",null,"#",n.id),o.createElement(Ii,null),o.createElement(ai.Z,{type:"link"}),o.createElement("span",null,n.url))};function Di(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Pi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pi(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ki=function(e,t){var n=t[0],r=window.prompt((0,u.S)("Enter the URL of the link:"),n.url);r?Ni(e,t,"url",r):""===r&&ir.unwrapNodes(e,{match:function(e){return"link"===e.type}})},Ai=function(e,t,n){var r=t[0],o=!!r.hasOwnProperty(n)&&r[n];Ni(e,t,n,!o)},Ni=function(e,t,n,r){var o=t[0],i=t[1],a=Mi({},n,o[n]),s=Mi({},n,r);e.apply({type:"set_node",path:i,properties:a,newProperties:s})},ji=function(e){var t=Vr(),n=Di(An.nodes(t,{match:function(e){return"link"===e.type}}),1)[0];if(!n)return null;var r=n[0];return o.createElement("div",{className:"wprm-admin-modal-toolbar-link"},o.createElement(ai.Z,{type:"link",onClick:function(){return ki(t,n)}}),o.createElement("span",{className:"wprm-admin-modal-toolbar-link-value",onMouseDown:function(){return ki(t,n)}},r.url),o.createElement(Ii,null),o.createElement(ai.Z,{type:r.newTab?"checkbox-checked":"checkbox-empty",onClick:function(){return Ai(t,n,"newTab")}}),o.createElement("span",{className:"wprm-admin-modal-toolbar-link-value",onMouseDown:function(){return Ai(t,n,"newTab")}},(0,u.S)("Open in new tab")),o.createElement(Ii,null),o.createElement(ai.Z,{type:r.noFollow?"checkbox-checked":"checkbox-empty",onClick:function(){return Ai(t,n,"noFollow")}}),o.createElement("span",{className:"wprm-admin-modal-toolbar-link-value",onMouseDown:function(){return Ai(t,n,"noFollow")}},(0,u.S)("Use nofollow")))};n(23528);function Ti(e){return(Ti="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Li(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ri(e,t){return(Ri=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Bi(e);if(t){var o=Bi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fi(this,n)}}function Fi(e,t){return!t||"object"!==Ti(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Bi(e){return(Bi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Zi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ri(e,t)}(a,e);var t,n,r,i=_i(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=i.call(this,e),window.wprm_admin_modal_suggestions=window.wprm_admin_modal_suggestions||{},window.wprm_admin_modal_suggestions.hasOwnProperty(e.type)||(window.wprm_admin_modal_suggestions[e.type]={}),t.state={search:"",suggestions:[],loading:!1},t}return t=a,(n=[{key:"componentDidMount",value:function(){this.updateSuggestions(this.props.value)}},{key:"componentDidUpdate",value:function(){this.props.value!==this.state.search&&this.updateSuggestions(this.props.value)}},{key:"updateSuggestions",value:function(e){var t=this;window.wprm_admin_modal_suggestions[this.props.type].hasOwnProperty(e)?this.setState({suggestions:window.wprm_admin_modal_suggestions[this.props.type][e],search:e}):(this.setState({loading:!0,search:e}),c.Z.modal.getSuggestions({type:this.props.type,search:e}).then((function(n){n&&(window.wprm_admin_modal_suggestions[t.props.type][e]=n.suggestions,t.setState({suggestions:n.suggestions,loading:!1}))})))}},{key:"render",value:function(){var e=this;return o.createElement("div",{className:"wprm-admin-modal-toolbar-suggest"},this.state.loading||0!==this.state.suggestions.length?o.createElement(o.Fragment,null,o.createElement("strong",null,(0,u.S)("Suggestions:")),this.state.loading?o.createElement(We.Z,null):o.createElement(o.Fragment,null,this.state.suggestions.map((function(t,n){return o.createElement("span",{className:"wprm-admin-modal-toolbar-suggestion",onMouseDown:function(n){n.preventDefault(),e.props.onSelect(t.name)},key:n},o.createElement("span",{className:"wprm-admin-modal-toolbar-suggestion-text"},t.name," (",t.count,")"))})))):o.createElement("strong",null,(0,u.S)("No suggestions found.")))}}])&&Li(t.prototype,n),r&&Li(t,r),a}(o.Component);function Hi(){return(Hi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ui=function(e){var t,n="";if("ingredient"!==e.type&&"equipment"!==e.type||(t=Vr(),n=ii(t)),!(0,o.useContext)(Wr))return null;var r={visibility:"hidden"},i=!1,a=!1;if("none"===e.type)return null;switch(e.type){case"no-styling":i=!0;break;case"no-link":a=!0;break;case"equipment":case"ingredient":a=!0}return o.createElement(si,null,o.createElement(Ci,null),o.createElement(ji,null),("ingredient"===e.type||"equipment"===e.type)&&o.createElement(Zi,{value:n,onSelect:function(t){e.setValue([{type:"paragraph",children:[{text:t}]}])},type:e.type}),o.createElement("div",{className:"wprm-admin-modal-toolbar-buttons"},o.createElement("span",{style:i?r:null},o.createElement(gi,Hi({},e,{type:"bold",title:(0,u.S)("Bold")})),o.createElement(gi,Hi({},e,{type:"italic",title:(0,u.S)("Italic")})),o.createElement(gi,Hi({},e,{type:"underline",title:(0,u.S)("Underline")})),o.createElement(Ii,null),o.createElement(gi,Hi({},e,{type:"subscript",title:(0,u.S)("Subscript")})),o.createElement(gi,Hi({},e,{type:"superscript",title:(0,u.S)("Superscript")}))),o.createElement(Ii,null),o.createElement("span",{style:a?r:null},o.createElement(mi,{type:"link",IconAdd:function(){return o.createElement(ai.Z,{type:"link",title:(0,u.S)("Add Link")})},IconRemove:function(){return o.createElement(ai.Z,{type:"unlink",title:(0,u.S)("Remove Link")})}}),o.createElement(pi,null)),o.createElement(Ii,null),o.createElement(mi,{type:"code",IconAdd:function(){return o.createElement(ai.Z,{type:"code",title:(0,u.S)("Add HTML or Shortcode")})},IconRemove:function(){return o.createElement(ai.Z,{type:"code",title:(0,u.S)("Remove HTML or Shortcode")})}}),o.createElement(Si,{before:"[adjustable]",after:"[/adjustable]",Icon:function(){return o.createElement(ai.Z,{type:"adjustable",title:(0,u.S)("Add Adjustable Shortcode")})}}),o.createElement(Si,{before:"[timer minutes=0]",after:"[/timer]",Icon:function(){return o.createElement(ai.Z,{type:"clock",title:(0,u.S)("Add Timer Shortcode")})}}),o.createElement(Ii,null),o.createElement(hi,{character:"½"}),o.createElement(hi,{character:"⅓"}),o.createElement(hi,{character:"⅔"}),o.createElement(hi,{character:"¼"}),o.createElement(hi,{character:"¾"}),o.createElement(hi,{character:"⅕"}),o.createElement(hi,{character:"⅙"}),o.createElement(hi,{character:"⅐"}),o.createElement(hi,{character:"⅛"}),o.createElement(Ii,null),o.createElement(hi,{character:"°"}),o.createElement(hi,{character:"Ø"})))};function Wi(){return(Wi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Gi=function(e){var t=e.attributes,n=e.children,r=e.element;switch(r.type){case"link":return o.createElement("a",Wi({href:r.url,target:r.newTab?"_blank":null,rel:r.noFollow?"nofollow":null},t),n);case"affiliate-link":return o.createElement("a",Wi({href:r.url,"data-eafl-id":r.id,className:"eafl-link"},t),n);case"code":return o.createElement("wprm-code",null,n);default:return o.createElement("p",t,n)}},zi=function(e){var t=e.attributes,n=e.children,r=e.leaf;return r.bold&&(n=o.createElement("strong",null,n)),r.italic&&(n=o.createElement("em",null,n)),r.underline&&(n=o.createElement("u",null,n)),r.subscript&&(n=o.createElement("sub",null,n)),r.superscript&&(n=o.createElement("sup",null,n)),o.createElement("span",t,n)};function qi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Vi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vi(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ji={"mod+b":"bold","mod+i":"italic","mod+u":"underline"},Yi=["link","affiliate-link","code"],Qi=function(e){var t=e.isInline;return e.isInline=function(e){return!!Yi.includes(e.type)||t(e)},e},Xi=function(e,t){var n=e.insertData;return e.insertData=function(r){var o=r.getData("text/html");if(o){var i=(new DOMParser).parseFromString(o,"text/html"),a=oi(i.body,t.singleLine);ir.insertFragment(e,a)}else n(r)},e},Ki=function(e){for(var t=(new DOMParser).parseFromString(e,"text/html"),n=oi(t.body),r=0;r<n.length;r++){var o=n[r];o.hasOwnProperty("text")&&(n[r]={type:"paragraph",children:[o]})}return n},$i=function(e,t){ea(e,t)?An.removeMark(e,t):An.addMark(e,t,!0)},ea=function(e,t){var n=An.marks(e);return!!n&&!0===n[t]},ta=function(e){if(Ke())return e.singleLine?o.createElement("div",{className:"wprm-admin-modal-field-richtext-legacy"},o.createElement(h.Z,e)):o.createElement("div",{className:"wprm-admin-modal-field-richtext-legacy"},o.createElement(be,e));var t=(0,o.useMemo)((function(){return Xi(Qi((e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];Ao.withoutSaving(t,(()=>{An.withoutNormalizing(t,(()=>{for(var e of r)t.apply(e)}))})),e.redos.pop(),e.undos.push(r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];Ao.withoutSaving(t,(()=>{An.withoutNormalizing(t,(()=>{var e=r.map(_n.inverse).reverse();for(var n of e)n===e[e.length-1]&&"set_selection"===n.type&&null==n.newProperties||t.apply(n)}))})),e.redos.push(r),e.undos.pop()}},t.apply=e=>{var{operations:r,history:o}=t,{undos:i}=o,a=i[i.length-1],s=a&&a[a.length-1],u=To(e,s),c=Ao.isSaving(t),l=Ao.isMerging(t);if(null==c&&(c=jo(e)),c){if(null==l&&(l=null!=a&&(0!==r.length||No(e,s)||u)),a&&l)u&&a.pop(),a.push(e);else{var p=[e];i.push(p)}for(;i.length>100;)i.shift();Lo(e)&&(o.redos=[])}n(e)},t})((e=>{var t=e,{apply:n,onChange:o}=t;return t.apply=e=>{var r=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":for(var[o,i]of An.levels(t,{at:e.path})){var a=Ur.findKey(t,o);r.push([i,a])}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":for(var[s,u]of An.levels(t,{at:Fn.parent(e.path)})){var c=Ur.findKey(t,s);r.push([u,c])}}for(var[l,p]of(n(e),r)){var[d]=An.node(t,l);Nr.set(d,p)}},t.setFragmentData=e=>{var{selection:n}=t;if(n){var[r,o]=Gn.edges(n),i=An.void(t,{at:r.path}),a=An.void(t,{at:o.path});if(!Gn.isCollapsed(n)||i){var s=Ur.toDOMRange(t,n),u=s.cloneContents(),c=u.childNodes[0];if(u.childNodes.forEach((e=>{e.textContent&&""!==e.textContent.trim()&&(c=e)})),a){var[l]=a,p=s.cloneRange(),d=Ur.toDOMNode(t,l);p.setEndAfter(d),u=p.cloneContents()}if(i&&(c=u.querySelector("[data-slate-spacer]")),Array.from(u.querySelectorAll("[data-slate-zero-width]")).forEach((e=>{var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),Br(c)){var f=document.createElement("span");f.style.whiteSpace="pre",f.appendChild(c),u.appendChild(f),c=f}var m=t.getFragment(),h=JSON.stringify(m),g=window.btoa(encodeURIComponent(h));c.setAttribute("data-slate-fragment",g),e.setData("application/x-slate-fragment",g);var v=document.createElement("div");v.appendChild(u),v.setAttribute("hidden","true"),document.body.appendChild(v),e.setData("text/html",v.innerHTML),e.setData("text/plain",Hr(v)),document.body.removeChild(v)}}},t.insertData=e=>{var n=e.getData("application/x-slate-fragment");if(n){var r=decodeURIComponent(window.atob(n)),o=JSON.parse(r);ir.insertFragment(t,o)}else{var i=e.getData("text/plain");if(i){var a=i.split(/\r\n|\r|\n/),s=!1;for(var u of a)s&&ir.splitNodes(t,{always:!0}),ir.insertText(t,u),s=!0}}},t.onChange=()=>{r.unstable_batchedUpdates((()=>{var e=Lr.get(t);e&&e(),o()}))},t})(ur()))),e)}),[]),n=e.value;e.value&&e.singleLine&&(n=(n=(n=""+e.value).replace("<p>","")).replace("</p>",""),n="<p>".concat(n,"</p>"));var i,a=[{type:"paragraph",children:[{text:""}]}];try{i=e.value?Ki(n):a}catch(l){alert("Error loading one of the rich text fields. Some information may be lost. Please check the summary, equipment, ingredients and instructions before saving. Make sure your browser is updated to the latest version if you keep getting this message."),console.log("Text Value",n),console.log("FieldRichText Error",l),i=a}var s=qi((0,o.useState)(i),2),u=s[0],c=s[1];return o.createElement(Jr,{spellCheck:!0,editor:t,value:u,onChange:function(n){c(n);var r=ii(t);e.singleLine&&(r=r.replace(/^<p>(.*)<\/p>$/gm,"$1")),e.onChange(r)}},o.createElement(Ui,{type:e.toolbar?e.toolbar:"all",isMarkActive:ea,toggleMark:$i,setValue:function(e){c(e),ir.deselect(t),ir.select(t,{path:[0,0],offset:0}),ir.move(t,{unit:"line",edge:"end"}),ir.collapse(t,{edge:"end"})}}),o.createElement(Eo,{className:"wprm-admin-modal-field-richtext".concat(e.className?" ".concat(e.className):"").concat(e.singleLine?" wprm-admin-modal-field-richtext-singleline":""),placeholder:e.placeholder,renderElement:(0,o.useCallback)((function(e){return o.createElement(Gi,e)}),[]),renderLeaf:(0,o.useCallback)((function(e){return o.createElement(zi,e)}),[]),onKeyDown:function(n){if(e.singleLine&&(0,Er.ZP)("enter",n))n.preventDefault();else{for(var r in Ji){if((0,Er.ZP)(r,n))n.preventDefault(),$i(t,Ji[r])}e.onKeyDown&&e.onKeyDown(n)}},tabIndex:0}))};function na(e){return(na="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ra(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oa(e,t){return(oa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ia(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=sa(e);if(t){var o=sa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return aa(this,n)}}function aa(e,t){return!t||"object"!==na(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function sa(e){return(sa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ua=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&oa(e,t)}(a,e);var t,n,r,i=ia(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={errors:0},t}return t=a,(n=[{key:"componentDidCatch",value:function(e,t){this.setState({errors:this.state.errors+1})}},{key:"render",value:function(){return o.createElement(ta,this.props)}}])&&ra(t.prototype,n),r&&ra(t,r),a}(o.Component),ca=function(e){var t=wprm_admin_modal.options.author.find((function(t){return t.value===e.author.display}));return o.createElement(o.Fragment,null,Ke()&&o.createElement(C.Z,{id:"warning",label:(0,u.S)("Warning!")},o.createElement("p",null,"Looks like you're using an older browser like ",o.createElement("strong",null,"Legacy Microsoft Edge")," or ",o.createElement("strong",null,"Internet Explorer")," which does not support all of our advanced features."),o.createElement("p",null,"We highly recommend using ",o.createElement("a",{href:"https://www.google.com/chrome/",target:"_blank"},"Google Chrome"),", ",o.createElement("a",{href:"https://www.mozilla.org/en-US/firefox/new/",target:"_blank"},"Firefox"),", ",o.createElement("a",{href:"https://support.apple.com/downloads/safari",target:"_blank"},"Safari")," or ",o.createElement("a",{href:"https://www.microsoft.com/en-us/edge",target:"_blank"},"Microsoft Edge"),".")),o.createElement(C.Z,{id:"type",label:(0,u.S)("Recipe Type"),help:(0,u.S)("Make sure to pick the right recipe type to ensure we include the correct metadata.")},o.createElement(g.Z,{id:"type",options:[{value:"food",label:(0,u.S)("Food Recipe")},{value:"howto",label:(0,u.S)("How-to Instructions")},{value:"other",label:(0,u.S)("Other (no metadata)")}],value:e.type,onChange:function(t){e.onRecipeChange({type:t})}})),o.createElement(C.Z,{id:"name",label:(0,u.S)("Name")},o.createElement(h.Z,{name:"recipe-name",placeholder:(0,u.S)("Recipe Name"),value:e.name,onChange:function(t){e.onRecipeChange({name:t})}})),o.createElement(C.Z,{id:"summary",label:"howto"===e.type?(0,u.S)("Description"):(0,u.S)("Summary")},o.createElement(ua,{placeholder:(0,u.S)("Short description of this recipe..."),value:e.summary,onChange:function(t){e.onRecipeChange({summary:t})}})),t&&"same"===t.actual?null:o.createElement(C.Z,{id:"author",label:(0,u.S)("Author")},o.createElement(D.Z,{options:wprm_admin_modal.options.author.filter((function(e){return"same"!==e.actual})),value:e.author.display,onChange:function(t){e.onRecipeChange({author_display:t})},width:300})),t&&"custom"===t.actual&&o.createElement(o.Fragment,null,o.createElement(C.Z,{id:"author-name",label:(0,u.S)("Name")},o.createElement(h.Z,{name:"author-name",placeholder:(0,u.S)("Author Name"),value:e.author.name,onChange:function(t){e.onRecipeChange({author_name:t})}})),o.createElement(C.Z,{id:"author-link",label:(0,u.S)("Link")},o.createElement(h.Z,{name:"author-link",placeholder:"https://bootstrapped.ventures",type:"url",value:e.author.link,onChange:function(t){e.onRecipeChange({author_link:t})}}))),o.createElement(C.Z,{id:"servings",label:"howto"===e.type?(0,u.S)("Yield"):(0,u.S)("Servings")},o.createElement(h.Z,{placeholder:"4",type:"number",value:0!=e.servings.amount?e.servings.amount:"",onChange:function(t){e.onRecipeChange({servings:t})}}),o.createElement(h.Z,{name:"servings-unit",placeholder:"howto"===e.type?(0,u.S)("candles"):(0,u.S)("people"),value:e.servings.unit,onChange:function(t){e.onRecipeChange({servings_unit:t})}})),o.createElement(C.Z,{id:"cost",label:(0,u.S)("Estimated Cost"),help:"howto"===e.type?(0,u.S)("The estimated cost of the materials consumed when performing instructions. Used in the metadata."):null},o.createElement(h.Z,{name:"cost",placeholder:"$5",value:e.cost,onChange:function(t){e.onRecipeChange({cost:t})}})))},la=function(e){var t=parseInt(e.value.time),n=0,r=0,i=0;return t>0&&(n=Math.floor(t/24/60),r=Math.floor(t/60%24),i=Math.floor(t%60)),o.createElement("div",{className:"wprm-admin-modal-field-time"},o.createElement("div",{className:"wprm-admin-modal-field-time-parts"},o.createElement("input",{type:"number",value:0<n?""+n:"",onChange:function(t){var n=parseInt(t.target.value);n=isNaN(n)?0:n;var o=1440*Math.max(0,n)+60*r+i;e.onChange(o)}})," ",(0,u.S)("days"),o.createElement("input",{type:"number",value:0<r?""+r:"",onChange:function(t){var r=parseInt(t.target.value);r=isNaN(r)?0:r;var o=1440*n+60*Math.max(0,r)+i;e.onChange(o)}})," ",(0,u.S)("hours"),o.createElement("input",{type:"number",value:0<i?""+i:e.value.zero?"0":"",onChange:function(t){var o=parseInt(t.target.value);o=isNaN(o)?0:o;var i=1440*n+60*r+Math.max(0,o);e.onChange(i)}})," ",(0,u.S)("minutes")),0===t&&e.hasOwnProperty("onChangeZero")&&o.createElement("div",{className:"wprm-admin-modal-field-time-none"},o.createElement("input",{id:"wprm-admin-modal-field-time-none-".concat(e.id),type:"checkbox",checked:e.value.zero,onChange:function(t){e.onChangeZero(t.target.checked)}})," ",o.createElement("label",{htmlFor:"wprm-admin-modal-field-time-none-".concat(e.id)},(0,u.S)('Show "0" in template'))))},pa=function(e){var t=Math.max(0,parseInt(e.prep.time))+Math.max(0,parseInt(e.cook.time))+Math.max(0,parseInt(e.custom.time));return o.createElement(o.Fragment,null,o.createElement(C.Z,{id:"prep-time",label:(0,u.S)("Prep Time")},o.createElement(la,{id:"prep",value:e.prep,onChange:function(t){e.onRecipeChange({prep_time:t})},onChangeZero:function(t){e.onRecipeChange({prep_time_zero:t})}})),o.createElement(C.Z,{id:"cook-time",label:"howto"===e.type?(0,u.S)("Active Time"):(0,u.S)("Cook Time")},o.createElement(la,{id:"cook",value:e.cook,onChange:function(t){e.onRecipeChange({cook_time:t})},onChangeZero:function(t){e.onRecipeChange({cook_time_zero:t})}})),o.createElement(C.Z,{id:"custom-time-label",label:(0,u.S)("Custom Time Label"),help:(0,u.S)("Optional extra time field that you can label yourself. Examples: Resting Time, Baking Time")},o.createElement(h.Z,{name:"custom-time-label",placeholder:(0,u.S)("Resting Time"),value:e.customLabel,onChange:function(t){e.onRecipeChange({custom_time_label:t})}})),o.createElement(C.Z,{id:"custom-time",label:(0,u.S)("Custom Time")},o.createElement(la,{id:"custom",value:e.custom,onChange:function(t){e.onRecipeChange({custom_time:t})},onChangeZero:function(t){e.onRecipeChange({custom_time_zero:t})}})),o.createElement(C.Z,{id:"total-time",label:(0,u.S)("Total Time")},o.createElement(la,{id:"total",value:e.total,onChange:function(t){e.onRecipeChange({total_time:t})}}),t!==parseInt(e.total.time)&&o.createElement("div",null,o.createElement("a",{href:"#",onClick:function(n){n.preventDefault(),e.onRecipeChange({total_time:t})}},(0,u.S)("Recalculate Total Time")))))};function da(e){return(da="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ma(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ha(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ga(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function va(e,t){return(va=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ba(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wa(e);if(t){var o=wa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ya(this,n)}}function ya(e,t){return!t||"object"!==da(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function wa(e){return(wa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ea=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&va(e,t)}(a,e);var t,n,r,i=ba(a);function a(){return ha(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"shouldComponentUpdate",value:function(e){return JSON.stringify(this.props.tags)!==JSON.stringify(e.tags)}},{key:"render",value:function(){var e=this,t=Object.keys(wprm_admin_modal.categories);return o.createElement(o.Fragment,null,t.map((function(t,n){var r=wprm_admin_modal.categories[t],i=e.props.tags.hasOwnProperty(t)?e.props.tags[t]:[];return o.createElement(C.Z,{id:t,label:r.label,help:r.hasOwnProperty("help")?r.help:null,key:n},o.createElement(te,{id:t,value:i,onChange:function(n){var r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fa(Object(n),!0).forEach((function(t){ma(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.props.tags);r[t]=n,e.props.onRecipeChange({tags:r})},creatable:r.creatable,width:"450px"}))})))}}])&&ga(t.prototype,n),r&&ga(t,r),a}(o.Component),Sa=function(e){return e.modes?o.createElement("div",{className:"wprm-admin-modal-field-edit-mode-container"},Object.keys(e.modes).map((function(t,n){var r=e.modes[t];return o.createElement("a",{href:"#",className:"wprm-admin-modal-field-edit-mode".concat(t===e.mode?" wprm-admin-modal-field-edit-mode-selected":""),onClick:function(n){n.preventDefault(),e.onModeChange(t)},key:n},r.label)}))):null},Ia=(n(45550),n(34916));function xa(e){return(xa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Oa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ca(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Da(e,t){return(Da=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Pa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ka(e);if(t){var o=ka(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ma(this,n)}}function Ma(e,t){return!t||"object"!==xa(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ka(e){return(ka=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Aa(){return(Aa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Na=(0,Er.TB)("tab"),ja=function(e){return o.createElement("div",Aa({className:"wprm-admin-modal-field-ingredient-handle"},e.dragHandleProps,{tabIndex:"-1"}),o.createElement(ai.Z,{type:"drag"}))},Ta=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Da(e,t)}(a,e);var t,n,r,i=Pa(a);function a(){return Oa(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"shouldComponentUpdate",value:function(e){return JSON.stringify(this.props)!==JSON.stringify(e)}},{key:"render",value:function(){var e=this;return o.createElement(Ia._l,{draggableId:"ingredient-".concat(this.props.uid),index:this.props.index},(function(t,n){return"group"===e.props.type?function(e,t){return o.createElement("div",Aa({className:"wprm-admin-modal-field-ingredient-group",ref:t.innerRef},t.draggableProps),ja(t),o.createElement("div",{className:"wprm-admin-modal-field-ingredient-group-name-container"},o.createElement(ua,{singleLine:!0,className:"wprm-admin-modal-field-ingredient-group-name",toolbar:"no-styling",value:e.name,placeholder:"howto"===e.recipeType?(0,u.S)("Material Group Header"):(0,u.S)("Ingredient Group Header"),onChange:function(t){return e.onChangeName(t)},onKeyDown:function(t){Na(t)&&e.onTab(t)}})),o.createElement("div",{className:"wprm-admin-modal-field-ingredient-after-container"},o.createElement("div",{className:"wprm-admin-modal-field-ingredient-after-container-icons"},o.createElement(ai.Z,{type:"trash",onClick:e.onDelete}),o.createElement(ai.Z,{type:"plus",title:(0,u.S)("Insert After"),onClick:e.onAdd}))))}(e.props,t):function(e,t){var n=e.amount,r=e.unit;return o.createElement("div",Aa({className:"wprm-admin-modal-field-ingredient",ref:t.innerRef},t.draggableProps),ja(t),o.createElement("div",{className:"wprm-admin-modal-field-ingredient-text-container"},o.createElement(ua,{singleLine:!0,toolbar:wprm_admin.addons.premium?"all":"no-link",className:"wprm-admin-modal-field-ingredient-amount",value:n,placeholder:"1",onChange:function(t){e.onChangeIngredient({amount:t})}}),o.createElement(ua,{singleLine:!0,toolbar:wprm_admin.addons.premium?"all":"no-link",value:r,placeholder:"howto"===e.recipeType?(0,u.S)("piece"):(0,u.S)("tbsp"),onChange:function(t){e.onChangeIngredient({unit:t})}}),o.createElement(ua,{singleLine:!0,toolbar:"ingredient",value:e.name,placeholder:"howto"===e.recipeType?(0,u.S)("paper"):(0,u.S)("olive oil"),onChange:function(t){e.onChangeIngredient({name:t,globalLink:!1})}}),o.createElement(ua,{singleLine:!0,toolbar:wprm_admin.addons.premium?"all":"no-link",value:e.notes,placeholder:"howto"===e.recipeType?(0,u.S)("any color"):(0,u.S)("extra virgin"),onChange:function(t){return e.onChangeIngredient({notes:t})},onKeyDown:function(t){Na(t)&&e.onTab(t)}})),o.createElement("div",{className:"wprm-admin-modal-field-ingredient-after-container"},o.createElement("div",{className:"wprm-admin-modal-field-ingredient-after-container-icons"},o.createElement(ai.Z,{type:"trash",onClick:e.onDelete}),o.createElement(ai.Z,{type:"plus",title:(0,u.S)("Insert After"),onClick:e.onAdd}))))}(e.props,t)}))}}])&&Ca(t.prototype,n),r&&Ca(t,r),a}(o.Component);function La(e){return(La="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ra(){return(Ra=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fa(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){Ba(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ba(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Za(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ha(e,t){return(Ha=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ua(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ga(e);if(t){var o=Ga(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Wa(this,n)}}function Wa(e,t){return!t||"object"!==La(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ga(e){return(Ga=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var za=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ha(e,t)}(a,e);var t,n,r,i=Ua(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).container=o.createRef(),t.lastAddedIndex=0,t}return t=a,(n=[{key:"shouldComponentUpdate",value:function(e,t){return this.props.type!==e.type||JSON.stringify(this.props.ingredients)!==JSON.stringify(e.ingredients)}},{key:"componentDidUpdate",value:function(e){if(this.props.ingredients.length>e.ingredients.length){var t=this.container.current.querySelectorAll(".wprm-admin-modal-field-ingredient-group-name, .wprm-admin-modal-field-ingredient-amount");t.length&&t[this.lastAddedIndex].focus()}}},{key:"onDragEnd",value:function(e){if(e.destination){var t=JSON.parse(JSON.stringify(this.props.ingredients)),n=e.source.index,r=e.destination.index,o=t.splice(n,1)[0];t.splice(r,0,o),this.props.onRecipeChange({ingredients_flat:t})}}},{key:"addField",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=JSON.parse(JSON.stringify(this.props.ingredients));t="group"===e?{type:"group",name:""}:{type:"ingredient",amount:"",unit:"",name:"",notes:""};var o=Math.max.apply(Math,r.map((function(e){return e.uid})));o=o<0?-1:o,t.uid=o+1,!1===n?(r.push(t),this.lastAddedIndex=r.length-1):(r.splice(n+1,0,t),this.lastAddedIndex=n+1),this.props.onRecipeChange({ingredients_flat:r})}},{key:"render",value:function(){var e=this;return o.createElement("div",{className:"wprm-admin-modal-field-ingredient-edit-container",ref:this.container},o.createElement(Ia.Z5,{onDragEnd:this.onDragEnd.bind(this)},o.createElement(Ia.bK,{droppableId:"wprm-ingredients"},(function(t,n){return o.createElement("div",Ra({className:"".concat(n.isDraggingOver?" wprm-admin-modal-field-ingredient-container-draggingover":""),ref:t.innerRef},t.droppableProps),o.createElement("div",{className:"wprm-admin-modal-field-ingredient-header-container"},o.createElement("div",{className:"wprm-admin-modal-field-ingredient-header"},(0,u.S)("Amount")),o.createElement("div",{className:"wprm-admin-modal-field-ingredient-header"},(0,u.S)("Unit")),o.createElement("div",{className:"wprm-admin-modal-field-ingredient-header"},(0,u.S)("Name")," ",o.createElement("span",{className:"wprm-admin-modal-field-ingredient-header-required"},"(",(0,u.S)("required"),")")),o.createElement("div",{className:"wprm-admin-modal-field-ingredient-header"},(0,u.S)("Notes"))),e.props.ingredients.map((function(t,n){return o.createElement(Ta,Ra({},t,{recipeType:e.props.type,index:n,key:"ingredient-".concat(t.uid),onTab:function(t){n===e.props.ingredients.length-1&&(t.preventDefault(),setTimeout((function(){e.addField("ingredient")})))},onChangeName:function(t){var r=JSON.parse(JSON.stringify(e.props.ingredients));r[n].name=t,e.props.onRecipeChange({ingredients_flat:r})},onChangeIngredient:function(t){var r=JSON.parse(JSON.stringify(e.props.ingredients));r[n]=Fa(Fa({},r[n]),t),e.props.onRecipeChange({ingredients_flat:r})},onDelete:function(){var t=JSON.parse(JSON.stringify(e.props.ingredients));t.splice(n,1),e.props.onRecipeChange({ingredients_flat:t})},onAdd:function(){e.addField("ingredient",n)}}))})),t.placeholder)}))),o.createElement("div",{className:"wprm-admin-modal-field-ingredient-actions"},o.createElement("button",{className:"button",onClick:function(t){t.preventDefault(),e.addField("ingredient")}},"howto"===this.props.type?(0,u.S)("Add Material"):(0,u.S)("Add Ingredient")),o.createElement("button",{className:"button",onClick:function(t){t.preventDefault(),e.addField("group")}},"howto"===this.props.type?(0,u.S)("Add Material Group"):(0,u.S)("Add Ingredient Group")),o.createElement("p",null,(0,u.S)("Tip: use the TAB key to move from field to field and easily add ingredients."))))}}])&&Za(t.prototype,n),r&&Za(t,r),a}(o.Component),qa=n(5831),Va=(n(29897),n(38328)),Ja=n.n(Va),Ya=function(e){var t=e.ingredient,n=e.isConverting,r=e.method,i=t.converted?t.converted:{2:{amount:"",unit:""}},a=function(){var e=[{label:(0,u.S)("Convert"),options:[{value:"none",label:(0,u.S)("Keep Unit")},{value:"automatic",label:(0,u.S)("Automatically")}]}],t=[];wprm_admin_modal.unit_conversion.units.weight.map((function(e){t.push({value:e,label:wprm_admin_modal.unit_conversion.units.data[e].label})})),0<t.length&&e.push({label:(0,u.S)("Weight Units"),options:t});var n=[];return wprm_admin_modal.unit_conversion.units.volume.map((function(e){n.push({value:e,label:wprm_admin_modal.unit_conversion.units.data[e].label})})),0<n.length&&e.push({label:(0,u.S)("Volume Units"),options:n}),e}(),s="".concat(t.amount," ").concat(t.unit).trim();return s="".concat(s," ").concat(t.name).trim(),t.notes&&(s+=" (".concat(t.notes,")")),o.createElement("tr",null,o.createElement("td",null,o.createElement(D.Z,{isDisabled:n,options:a,placeholder:(0,u.S)("Convert..."),value:r,onChange:function(t){e.onMethodChange(t)},width:150})),o.createElement("td",{style:"failed"===r?{color:"darkred"}:null},n?o.createElement(We.Z,null):o.createElement("div",{className:"wprm-admin-modal-field-ingredient-unit-conversion-fields"},o.createElement(ua,{singleLine:!0,value:""+i[2].amount,onChange:function(t){var n=i;n[2].amount=t,e.onConvertedChange(n)}}),o.createElement(ua,{singleLine:!0,value:""+i[2].unit,onChange:function(t){var n=i;n[2].unit=t,e.onConvertedChange(n)}}))),o.createElement("td",null,Ja()(s)))};function Qa(e){return(Qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xa(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Ka(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ka(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Ka(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function es(e,t){return(es=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ts(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=os(e);if(t){var o=os(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ns(this,n)}}function ns(e,t){return!t||"object"!==Qa(t)&&"function"!=typeof t?rs(e):t}function rs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function os(e){return(os=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var is=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&es(e,t)}(a,e);var t,n,r,i=ts(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={isConverting:{},methods:{}},t.convert=t.convert.bind(rs(t)),t.convertAll=t.convertAll.bind(rs(t)),t}return t=a,(n=[{key:"convertAll",value:function(e){for(var t=[],n=0;n<this.props.ingredients.length;n++)"ingredient"===this.props.ingredients[n].type&&t.push(n);t&&this.convert(t,e)}},{key:"convert",value:function(e,t){var n=this,r=this.state.isConverting,o=this.state.methods;if("none"===t){var i,a=JSON.parse(JSON.stringify(this.props.ingredients)),s=Xa(e);try{for(s.s();!(i=s.n()).done;){var u=i.value,l=this.props.ingredients[u];l.hasOwnProperty("converted")||(a[u].converted={2:{}}),a[u].converted[2].amount=l.amount,a[u].converted[2].unit=l.unit,r[u]=!1,o[u]=t}}catch(g){s.e(g)}finally{s.f()}this.props.onIngredientsChange(a)}else{var p,d={},f=Xa(e);try{for(f.s();!(p=f.n()).done;){var m=p.value,h=this.props.ingredients[m];d[m]={index:m,amount:(0,qa.L)(h.amount),unit:h.unit,name:h.name},"automatic"!==t&&(d[m].units_to=[t]),r[m]=!0,o[m]=t}}catch(g){f.e(g)}finally{f.f()}c.Z.unitConversion.get(d).then((function(e){if(e&&e.conversions){var r=JSON.parse(JSON.stringify(n.props.ingredients)),o=n.state.isConverting,i=n.state.methods;for(var a in e.conversions){var s=n.props.ingredients[parseInt(a)],u=e.conversions[a];s.hasOwnProperty("converted")||(r[a].converted={2:{}}),"none"===u.type||"failed"===u.type?(r[a].converted[2].amount=s.amount,r[a].converted[2].unit=s.unit,i[a]=u.type):(r[a].converted[2].amount=(0,qa.o)(u.amount,wprmp_admin.settings.unit_conversion_round_to_decimals),r[a].converted[2].unit=u.alias,i[a]=t),o[a]=!1}n.props.onIngredientsChange(r),n.setState({isConverting:o,methods:i})}}))}this.setState({isConverting:r,methods:o})}},{key:"render",value:function(){var e=this;return wprm_admin.addons.pro?wprm_admin_modal.unit_conversion?this.props.ingredients.filter((function(e){return"ingredient"===e.type&&e.name})).length?o.createElement("div",{className:"wprm-admin-modal-field-ingredient-unit-conversion-container"},o.createElement("table",{className:"wprm-admin-modal-field-ingredient-unit-conversion"},o.createElement("thead",null,o.createElement("tr",null,o.createElement("th",null,(0,u.S)("Conversion")),o.createElement("th",null,(0,u.S)("Converted")," (",wprm_admin_modal.unit_conversion.systems[2],")"),o.createElement("th",null,(0,u.S)("Default")," (",wprm_admin_modal.unit_conversion.systems[1],")"))),o.createElement("tbody",null,this.props.ingredients.map((function(t,n){return"group"!==t.type&&t.name?o.createElement(Ya,{ingredient:t,isConverting:e.state.isConverting[n],method:e.state.methods[n],onMethodChange:function(t){e.state.isConverting[n]||e.convert([n],t)},onConvertedChange:function(t){var r=JSON.parse(JSON.stringify(e.props.ingredients));r[n].converted=t,e.props.onIngredientsChange(r)},key:n}):null})))),o.createElement("button",{className:"button button-primary",onClick:function(t){t.preventDefault(),e.convertAll("automatic")}},(0,u.S)("Convert All Automatically"))):o.createElement("p",null,(0,u.S)("No ingredients set for this recipe.")):o.createElement("p",null,(0,u.S)("You need to set up this feature on the WP Recipe Maker > Settings > Unit Conversion page first.")):o.createElement("p",null,(0,u.S)("This feature is only available in")," ",o.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Pro Bundle"),".")}}])&&$a(t.prototype,n),r&&$a(t,r),a}(o.Component);function as(e){return(as="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ss(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function us(e,t){return(us=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function cs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ps(e);if(t){var o=ps(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ls(this,n)}}function ls(e,t){return!t||"object"!==as(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ps(e){return(ps=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ds=WPRecipeMaker["wp-recipe-maker/dist/shared"].hooks,fs=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&us(e,t)}(a,e);var t,n,r,i=cs(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={mode:"edit"},t}return t=a,(n=[{key:"shouldComponentUpdate",value:function(e,t){return this.state.mode!==t.mode||this.props.type!==e.type||this.props.linkType!==e.linkType||JSON.stringify(this.props.ingredients)!==JSON.stringify(e.ingredients)}},{key:"render",value:function(){var e=this,t={edit:{label:"howto"===this.props.type?(0,u.S)("Edit Materials"):(0,u.S)("Edit Ingredients"),block:za},"ingredient-links":{label:"howto"===this.props.type?(0,u.S)("Material Links"):(0,u.S)("Ingredient Links"),block:function(){return o.createElement("p",null,(0,u.S)("This feature is only available in")," ",o.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Premium"),".")}},"unit-conversion":{label:(0,u.S)("Unit Conversion"),block:function(){return o.createElement("p",null,(0,u.S)("This feature is only available in")," ",o.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Pro Bundle"),".")}}};wprm_admin.addons.pro&&(t["unit-conversion"].block=is);var n=ds.applyFilters("modalRecipeIngredients",t),r=!!n.hasOwnProperty(this.state.mode)&&n[this.state.mode].block;if(!r)return null;var i=null;switch(this.state.mode){case"unit-conversion":i=o.createElement(r,{ingredients:this.props.ingredients,onIngredientsChange:function(t){e.props.onRecipeChange({ingredients_flat:t})}});break;case"ingredient-links":i=o.createElement(r,{ingredients:this.props.ingredients,onIngredientsChange:function(t){e.props.onRecipeChange({ingredients_flat:t})},type:this.props.linkType,onTypeChange:function(t){e.props.onRecipeChange({ingredient_links_type:t})},onModeChange:this.props.onModeChange});break;case"preview":i=o.createElement(r,{ingredients:this.props.ingredients});break;default:i=o.createElement(r,{type:this.props.type,ingredients:this.props.ingredients,onRecipeChange:this.props.onRecipeChange})}return o.createElement("div",{className:"wprm-admin-modal-field-ingredient-container"},o.createElement(Sa,{modes:t,mode:this.state.mode,onModeChange:function(t){e.setState({mode:t})}}),i)}}])&&ss(t.prototype,n),r&&ss(t,r),a}(o.Component);function ms(e){return(ms="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vs(e,t){return(vs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function bs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ws(e);if(t){var o=ws(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ys(this,n)}}function ys(e,t){return!t||"object"!==ms(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ws(e){return(ws=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Es(){return(Es=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ss=(0,Er.TB)("tab"),Is=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vs(e,t)}(a,e);var t,n,r,i=bs(a);function a(){return hs(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"shouldComponentUpdate",value:function(e){return JSON.stringify(this.props)!==JSON.stringify(e)}},{key:"render",value:function(){var e=this;return o.createElement(Ia._l,{draggableId:"equipment-".concat(this.props.uid),index:this.props.index},(function(t,n){return o.createElement("div",Es({className:"wprm-admin-modal-field-equipment",ref:t.innerRef},t.draggableProps),o.createElement("div",{className:"wprm-admin-modal-field-equipment-main-container"},function(e){return o.createElement("div",Es({className:"wprm-admin-modal-field-equipment-handle"},e.dragHandleProps,{tabIndex:"-1"}),o.createElement(ai.Z,{type:"drag"}))}(t),o.createElement("div",{className:"wprm-admin-modal-field-equipment-name-container"},o.createElement(ua,{singleLine:!0,toolbar:"equipment",value:e.props.name,placeholder:"howto"===e.props.recipeType?(0,u.S)("Pair of scissors"):(0,u.S)("Pressure cooker"),onChange:function(t){return e.props.onChangeName(t)},onKeyDown:function(t){Ss(t)&&e.props.onTab(t)}}))),o.createElement("div",{className:"wprm-admin-modal-field-equipment-after-container"},o.createElement("div",{className:"wprm-admin-modal-field-equipment-after-container-icons"},o.createElement(ai.Z,{type:"trash",onClick:e.props.onDelete}),o.createElement(ai.Z,{type:"plus",title:(0,u.S)("Insert After"),onClick:e.props.onAdd}))))}))}}])&&gs(t.prototype,n),r&&gs(t,r),a}(o.Component);function xs(e){return(xs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Os(){return(Os=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Cs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ds(e,t){return(Ds=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ps(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ks(e);if(t){var o=ks(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ms(this,n)}}function Ms(e,t){return!t||"object"!==xs(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ks(e){return(ks=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var As=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ds(e,t)}(a,e);var t,n,r,i=Ps(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).container=o.createRef(),t.lastAddedIndex=0,t}return t=a,(n=[{key:"shouldComponentUpdate",value:function(e){return this.props.type!==e.type||JSON.stringify(this.props.equipment)!==JSON.stringify(e.equipment)}},{key:"componentDidUpdate",value:function(e){if(this.props.equipment.length>e.equipment.length){var t=this.container.current.querySelectorAll(".wprm-admin-modal-field-richtext");t.length&&t[this.lastAddedIndex].focus()}}},{key:"onDragEnd",value:function(e){if(e.destination){var t=JSON.parse(JSON.stringify(this.props.equipment)),n=e.source.index,r=e.destination.index,o=t.splice(n,1)[0];t.splice(r,0,o),this.props.onRecipeChange({equipment:t})}}},{key:"addField",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=JSON.parse(JSON.stringify(this.props.equipment)),n={name:""},r=Math.max.apply(Math,t.map((function(e){return e.uid})));r=r<0?-1:r,n.uid=r+1,!1===e?(t.push(n),this.lastAddedIndex=t.length-1):(t.splice(e+1,0,n),this.lastAddedIndex=e+1),this.props.onRecipeChange({equipment:t})}},{key:"render",value:function(){var e=this;return o.createElement("div",{className:"wprm-admin-modal-field-equipment-container",ref:this.container},o.createElement(Ia.Z5,{onDragEnd:this.onDragEnd.bind(this)},o.createElement(Ia.bK,{droppableId:"wprm-equipment"},(function(t,n){return o.createElement("div",Os({className:"".concat(n.isDraggingOver?" wprm-admin-modal-field-equipment-container-draggingover":""),ref:t.innerRef},t.droppableProps),e.props.equipment.map((function(t,n){return o.createElement(Is,Os({},t,{recipeType:e.props.type,index:n,key:"equipment-".concat(t.uid),onTab:function(t){n===e.props.equipment.length-1&&(t.preventDefault(),setTimeout((function(){e.addField()})))},onAdd:function(){e.addField(n)},onChangeName:function(t){var r=JSON.parse(JSON.stringify(e.props.equipment));r[n].name=t,e.props.onRecipeChange({equipment:r})},onDelete:function(){var t=JSON.parse(JSON.stringify(e.props.equipment));t.splice(n,1),e.props.onRecipeChange({equipment:t})}}))})),t.placeholder)}))),o.createElement("div",{className:"wprm-admin-modal-field-equipment-actions"},o.createElement("button",{className:"button",onClick:function(t){t.preventDefault(),e.addField()}},(0,u.S)("Add Equipment")),o.createElement("p",null,(0,u.S)("Tip: use the TAB key to move from field to field and easily add equipment."))))}}])&&Cs(t.prototype,n),r&&Cs(t,r),a}(o.Component);n(31807),n(80174),n(35727),n(7089),n(67838);function Ns(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return js(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return js(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function js(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ts=function(e){var t=!!e.hasOwnProperty("disabled")&&e.disabled;return o.createElement("input",{type:"text",disabled:t,name:e.name,value:e.value,placeholder:"0:00",onChange:function(t){(function(e){var t=Ns(e.split(":"),2),n=t[0],r=t[1];if(!/^\d*:?\d{0,2}$/.test(e))return!1;var o,i=Number(n),a=Number(r);if(o=i,!(Number.isInteger(o)&&o>=0&&function(e){return Number.isInteger(e)&&e>=0||Number.isNaN(e)}(a)))return!1;if(a<10&&Number(r[0])>5)return!1;var s=-1!==e.indexOf(":")?e.split(":"):[e];return!(s[0]&&s[0].length&&parseInt(s[0],10)<0||s[1]&&s[1].length&&(parseInt(s[1],10)<0||parseInt(s[1],10)>59))})(t.target.value)&&e.onChange(t.target.value)}})};function Ls(e){return(Ls="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fs(e,t){return(Fs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Bs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Hs(e);if(t){var o=Hs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Zs(this,n)}}function Zs(e,t){return!t||"object"!==Ls(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Hs(e){return(Hs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Us(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ws(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Us(Object(n),!0).forEach((function(t){Gs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Us(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zs(){return(zs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var qs=(0,Er.TB)("tab"),Vs=function(e){return o.createElement("div",zs({className:"wprm-admin-modal-field-instruction-handle"},e.dragHandleProps,{tabIndex:"-1"}),o.createElement(ai.Z,{type:"drag"}))},Js=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Fs(e,t)}(a,e);var t,n,r,i=Bs(a);function a(){return Rs(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"shouldComponentUpdate",value:function(e){return JSON.stringify(this.props)!==JSON.stringify(e)}},{key:"render",value:function(){var e=this;return o.createElement(Ia._l,{draggableId:"instruction-".concat(this.props.uid),index:this.props.index},(function(t,n){return"group"===e.props.type?function(e,t){return o.createElement("div",zs({className:"wprm-admin-modal-field-instruction-group",ref:t.innerRef},t.draggableProps),o.createElement("div",{className:"wprm-admin-modal-field-instruction-main-container"},Vs(t),o.createElement("div",{className:"wprm-admin-modal-field-instruction-group-name-container"},o.createElement(ua,{singleLine:!0,toolbar:"no-styling",value:e.name,placeholder:(0,u.S)("Instruction Group Header"),onChange:function(t){return e.onChangeName(t)},onKeyDown:function(t){qs(t)&&e.onTab(t)}}))),o.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container"},o.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-icons"},o.createElement(ai.Z,{type:"trash",onClick:e.onDelete}),o.createElement(ai.Z,{type:"plus",title:(0,u.S)("Insert After"),onClick:e.onAdd}))))}(e.props,t):function(e,t){var n={type:"none",embed:"",id:"",thumb:"",start:"",end:"",name:""};e.video&&"none"===(n=Ws(Ws({},n),e.video)).type&&(n.start||n.end)&&(n.type="part");var r=e.image>0;return o.createElement("div",zs({className:"wprm-admin-modal-field-instruction",ref:t.innerRef},t.draggableProps),o.createElement("div",{className:"wprm-admin-modal-field-instruction-main-container"},Vs(t),o.createElement("div",{className:"wprm-admin-modal-field-instruction-text-container"},o.createElement("div",{className:"wprm-admin-modal-field-instruction-text-name-container"},e.showName&&o.createElement(ua,{singleLine:!0,className:"wprm-admin-modal-field-instruction-name",toolbar:"none",value:e.hasOwnProperty("name")?e.name:"",placeholder:(0,u.S)("Step Summary"),onChange:function(t){return e.onChangeName(t)}}),o.createElement(ua,{className:"wprm-admin-modal-field-instruction-text",value:e.text,placeholder:(0,u.S)("This is one step of the instructions."),onChange:function(t){return e.onChangeText(t)},onKeyDown:function(t){qs(t)&&e.onTab(t)}})),e.allowVideo&&"part"===n.type&&o.createElement("div",{className:"wprm-admin-modal-field-instruction-video-container"},o.createElement(Ts,{value:n.start,onChange:function(t){e.onChangeVideo(Ws(Ws({},n),{},{start:t}))}}),o.createElement(Ts,{value:n.end,onChange:function(t){e.onChangeVideo(Ws(Ws({},n),{},{end:t}))}}),n.start&&n.end?o.createElement(h.Z,{placeholder:(0,u.S)("Name for this video part"),value:n.name,onChange:function(t){e.onChangeVideo(Ws(Ws({},n),{},{name:t}))}}):o.createElement(ai.Z,{type:"movie",title:(0,u.S)("Add video start and end time (in seconds or minutes:seconds format) if this instruction step is part of the recipe video.")})))),o.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container"},o.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-icons"},o.createElement(ai.Z,{type:"trash",onClick:e.onDelete}),o.createElement(ai.Z,{type:"plus",title:(0,u.S)("Insert After"),onClick:e.onAdd})),o.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-media"},o.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-media-icons"},o.createElement(ai.Z,{type:"photo",title:r?(0,u.S)("Remove Image"):(0,u.S)("Add Instruction Image"),onClick:function(){r?e.onChangeImage(0,""):qe.Z.selectImage((function(t){e.onChangeImage(t.id,t.url)}))},hidden:"none"!==n.type&&"part"!==n.type}),o.createElement("div",{className:"wprm-icon-spacer"}),o.createElement(ai.Z,{type:"movie",title:"upload"===n.type?(0,u.S)("Remove Video"):(0,u.S)("Upload Instruction Video"),onClick:function(){"upload"===n.type?e.onChangeVideo(Ws(Ws({},n),{},{type:"none",id:0,thumb:""})):qe.Z.selectVideo((function(t){e.onChangeVideo(Ws(Ws({},n),{},{type:"upload",id:t.attributes.id,thumb:t.attributes.thumb.src}))}))},hidden:r||"none"!==n.type&&"upload"!==n.type}),o.createElement(ai.Z,{type:"code",title:"embed"===n.type?(0,u.S)("Remove Video"):(0,u.S)("Embed Instruction Video"),onClick:function(){"embed"===n.type?e.onChangeVideo(Ws(Ws({},n),{},{type:"none",embed:""})):e.onChangeVideo(Ws(Ws({},n),{},{type:"embed"}))},hidden:r||"none"!==n.type&&"embed"!==n.type}),o.createElement(ai.Z,{type:"videoplayer",title:"part"===n.type?(0,u.S)("Remove Video Part"):(0,u.S)("Instruction is part of the main video"),onClick:function(){e.onChangeVideo(Ws(Ws({},n),{},{type:"part"===n.type?"none":"part",start:"",end:"",name:""}))},hidden:!e.allowVideo||"none"!==n.type&&"part"!==n.type})),(r||"upload"===n.type||"embed"===n.type)&&o.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-media-preview"},r?o.createElement("div",{className:"wprm-admin-modal-field-image-preview"},o.createElement("img",{src:e.image_url,onClick:function(){qe.Z.selectImage((function(t){e.onChangeImage(t.id,t.url)}))}})):o.createElement(o.Fragment,null,"upload"===n.type&&o.createElement("div",{className:"wprm-admin-modal-field-video-preview"},o.createElement("img",{src:n.thumb,onClick:function(){qe.Z.selectVideo((function(t){e.onChangeVideo(Ws(Ws({},n),{},{id:t.attributes.id,thumb:t.attributes.thumb.src}))}))}})),"embed"===n.type&&o.createElement(be,{value:n.embed,onChange:function(t){e.onChangeVideo(Ws(Ws({},n),{},{embed:t}))},placeholder:(0,u.S)("Instruction video URL or embed code")}))))))}(e.props,t)}))}}])&&_s(t.prototype,n),r&&_s(t,r),a}(o.Component);function Ys(e){return(Ys="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qs(){return(Qs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Xs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ks(e,t){return(Ks=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tu(e);if(t){var o=tu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return eu(this,n)}}function eu(e,t){return!t||"object"!==Ys(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function tu(e){return(tu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ks(e,t)}(a,e);var t,n,r,i=$s(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={showName:!1},t.container=o.createRef(),t.lastAddedIndex=0,t}return t=a,(n=[{key:"shouldComponentUpdate",value:function(e,t){return this.state.showName!==t.showName||this.props.type!==e.type||this.props.allowVideo!==e.allowVideo||JSON.stringify(this.props.instructions)!==JSON.stringify(e.instructions)}},{key:"componentDidUpdate",value:function(e){if(this.props.instructions.length>e.instructions.length){var t=this.container.current.querySelectorAll(".wprm-admin-modal-field-richtext:not(.wprm-admin-modal-field-instruction-name)");t.length&&t[this.lastAddedIndex].focus()}}},{key:"onDragEnd",value:function(e){if(e.destination){var t=JSON.parse(JSON.stringify(this.props.instructions)),n=e.source.index,r=e.destination.index,o=t.splice(n,1)[0];t.splice(r,0,o),this.props.onRecipeChange({instructions_flat:t})}}},{key:"addField",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=JSON.parse(JSON.stringify(this.props.instructions));t="group"===e?{type:"group",name:""}:{type:"instruction",name:"",text:"",image:0,image_url:""};var o=Math.max.apply(Math,r.map((function(e){return e.uid})));o=o<0?-1:o,t.uid=o+1,!1===n?(r.push(t),this.lastAddedIndex=r.length-1):(r.splice(n+1,0,t),this.lastAddedIndex=n+1),this.props.onRecipeChange({instructions_flat:r})}},{key:"render",value:function(){var e=this;return o.createElement("div",{className:"wprm-admin-modal-field-instruction-container",ref:this.container},"ignore"!==wprm_admin.settings.metadata_instruction_name&&"other"!==this.props.type&&o.createElement("div",{className:"wprm-admin-modal-field-instruction-show-name-container"},o.createElement("input",{type:"checkbox",id:"wprm-admin-modal-field-instruction-show-name",checked:this.state.showName,onChange:function(t){return e.setState({showName:t.target.checked})}}),o.createElement("label",{htmlFor:"wprm-admin-modal-field-instruction-show-name"},(0,u.S)("Show the instruction summary field")),o.createElement(ai.Z,{type:"question",title:(0,u.S)('For guided recipes, Google wants a short (usually 1 word) summary for each instruction step. This will be the "name" in the HowToStep metadata.'),className:"wprm-admin-icon-help"})),o.createElement(Ia.Z5,{onDragEnd:this.onDragEnd.bind(this)},o.createElement(Ia.bK,{droppableId:"wprm-instructions"},(function(t,n){return o.createElement("div",Qs({className:"".concat(n.isDraggingOver?" wprm-admin-modal-field-instruction-container-draggingover":""),ref:t.innerRef},t.droppableProps),e.props.instructions.map((function(t,n){return o.createElement(Js,Qs({},t,{index:n,key:"instruction-".concat(t.uid),onTab:function(t){n===e.props.instructions.length-1&&(t.preventDefault(),setTimeout((function(){e.addField("instruction")})))},showName:e.state.showName,onChangeName:function(t){var r=JSON.parse(JSON.stringify(e.props.instructions));r[n].name=t,e.props.onRecipeChange({instructions_flat:r})},onChangeText:function(t){var r=JSON.parse(JSON.stringify(e.props.instructions));r[n].text=t,e.props.onRecipeChange({instructions_flat:r})},onChangeImage:function(t,r){var o=JSON.parse(JSON.stringify(e.props.instructions));o[n].image=t,o[n].image_url=r,e.props.onRecipeChange({instructions_flat:o})},onDelete:function(){var t=JSON.parse(JSON.stringify(e.props.instructions));t.splice(n,1),e.props.onRecipeChange({instructions_flat:t})},onAdd:function(){e.addField("instruction",n)},allowVideo:e.props.allowVideo,onChangeVideo:function(t){var r=JSON.parse(JSON.stringify(e.props.instructions));r[n].video=t,e.props.onRecipeChange({instructions_flat:r})}}))})),t.placeholder)}))),o.createElement("div",{className:"wprm-admin-modal-field-instruction-actions"},o.createElement("button",{className:"button",onClick:function(t){t.preventDefault(),e.addField("instruction")}},(0,u.S)("Add Instruction")),o.createElement("button",{className:"button",onClick:function(t){t.preventDefault(),e.addField("group")}},(0,u.S)("Add Instruction Group")),o.createElement("p",null,(0,u.S)("Tip: use the TAB key to move from field to field and easily add instructions."))))}}])&&Xs(t.prototype,n),r&&Xs(t,r),a}(o.Component);n(9115),n(19457);function ru(e){return(ru="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ou(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function iu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ou(Object(n),!0).forEach((function(t){au(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ou(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function au(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function su(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function uu(e,t){return(uu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function cu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pu(e);if(t){var o=pu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lu(this,n)}}function lu(e,t){return!t||"object"!==ru(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function pu(e){return(pu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var du=-1!==Object.values(wprm_admin_modal.nutrition).findIndex((function(e){return"calculated"===e.type})),fu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&uu(e,t)}(a,e);var t,n,r,i=cu(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={calculating:!1},t}return t=a,(n=[{key:"shouldComponentUpdate",value:function(e,t){return this.state.calculing!==t.calculating||JSON.stringify(this.props.servings)!==JSON.stringify(e.servings)||JSON.stringify(this.props.nutrition)!==JSON.stringify(e.nutrition)}},{key:"componentDidMount",value:function(){this.calculateNutrients()}},{key:"componentDidUpdate",value:function(e){JSON.stringify(this.props.nutrition)!==JSON.stringify(e.nutrition)&&this.calculateNutrients()}},{key:"calculateNutrients",value:function(){var e=this;du&&wprm_admin.addons.pro&&this.setState({calculating:!0},(function(){c.Z.nutrition.getCalculated(e.props.nutrition).then((function(t){t&&Object.keys(t.calculated).length>0&&e.props.onRecipeChange({nutrition:iu(iu({},e.props.nutrition),t.calculated)}),e.setState({calculating:!1})}))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.nutrition.hasOwnProperty("serving_size")&&t.nutrition.serving_size?t.nutrition.serving_size:"",r=t.nutrition.hasOwnProperty("serving_unit")&&t.nutrition.serving_unit?t.nutrition.serving_unit:"";return o.createElement(o.Fragment,null,o.createElement("p",null,(0,u.S)("These should be the nutrition facts for 1 serving of your recipe."),o.createElement("br",null),t.servings.amount?o.createElement(o.Fragment,null,(0,u.S)("Total servings for this recipe:")," ","".concat(t.servings.amount," ").concat(t.servings.unit)):o.createElement(o.Fragment,null,(0,u.S)('You don\'t have the servings field set for your recipe under "General".'))),o.createElement("div",{className:"wprm-admin-modal-field-nutrition-container"},wprm_admin.addons.premium?o.createElement(C.Z,{id:"nutrition_serving_size",label:(0,u.S)("Serving Size"),help:(0,u.S)("The weight of 1 serving. Does not affect the calculation.")},o.createElement(h.Z,{type:"number",value:n,onChange:function(e){var n=iu(iu({},t.nutrition),{},{serving_size:e});t.onRecipeChange({nutrition:n})}}),o.createElement(h.Z,{name:"serving-unit",placeholder:wprm_admin.settings.nutrition_default_serving_unit,value:r,onChange:function(e){var n=iu(iu({},t.nutrition),{},{serving_unit:e});t.onRecipeChange({nutrition:n})}})):null,Object.keys(wprm_admin_modal.nutrition).map((function(n,r){var i=wprm_admin_modal.nutrition[n],a=t.nutrition.hasOwnProperty(n)?t.nutrition[n]:"";return"serving_size"===n?null:"calories"===n||wprm_admin.addons.premium?o.createElement(C.Z,{id:"nutrition_".concat(n),label:i.label,key:r},"calculated"===i.type&&e.state.calculating?o.createElement(We.Z,null):o.createElement(o.Fragment,null,o.createElement(h.Z,{type:"number",value:a,onChange:function(e){var r=iu(iu({},t.nutrition),{},au({},n,e));t.onRecipeChange({nutrition:r})},disabled:"calculated"===i.type}),o.createElement("span",{className:"wprm-admin-modal-field-nutrition-unit"},i.unit))):null}))),wprm_admin.addons.premium?null:o.createElement("p",null,(0,u.S)("More nutrients are available in")," ",o.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Premium"),"."),o.createElement(p,{isPrimary:!0,required:"pro",onClick:function(){t.onModeChange("nutrition-calculation")}},(0,u.S)("Calculate Nutrition Facts")))}}])&&su(t.prototype,n),r&&su(t,r),a}(o.Component),mu=wprm_admin_modal.custom_fields&&wprm_admin_modal.custom_fields.fields?Object.values(wprm_admin_modal.custom_fields.fields):[],hu=function(e){return o.createElement(o.Fragment,null,mu.map((function(t,n){var r=!!e.fields.hasOwnProperty(t.key)&&e.fields[t.key];switch(t.type){case"text":case"link":case"email":var i="link"===t.type?"url":t.type;return o.createElement(C.Z,{label:t.name,key:n},o.createElement(h.Z,{type:i,name:"recipe-custom-".concat(t.key),value:r||"",onChange:function(n){e.onFieldChange(t.key,n)}}));case"textarea":return o.createElement(C.Z,{label:t.name,key:n},o.createElement(ua,{value:r||"",onChange:function(n){e.onFieldChange(t.key,n)}}));case"image":return o.createElement(C.Z,{label:t.name,key:n},o.createElement(Ve,{id:r?r.id:0,url:r?r.url:"",onChange:function(n,r){e.onFieldChange(t.key,{id:n,url:r})}}))}})))};function gu(e){return(gu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bu(e,t){return(bu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function yu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Su(e);if(t){var o=Su(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wu(this,n)}}function wu(e,t){return!t||"object"!==gu(t)&&"function"!=typeof t?Eu(e):t}function Eu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Su(e){return(Su=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Iu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bu(e,t)}(a,e);var t,n,r,i=yu(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=i.call(this,e);var n=parseInt(wprm_admin_modal.editor_uid);return wprm_admin_modal.editor_uid=n+1,t.state={editorHtml:!1,addedListeners:!1,editorId:"wprm-admin-modal-notes-editor-".concat(n)},t.initEditor=t.initEditor.bind(Eu(t)),t.initTinyMCE=t.initTinyMCE.bind(Eu(t)),t}return t=a,(n=[{key:"componentDidMount",value:function(){var e=document.getElementById("wprm-admin-modal-notes-placeholder").innerHTML;e=e.replace(/wprm-admin-modal-notes-editor/g,this.state.editorId),this.setState({editorHtml:e})}},{key:"componentDidUpdate",value:function(e,t){this.state.editorHtml&&!t.editorHtml&&this.initEditor()}},{key:"initEditor",value:function(){void 0!==window.tinymce?this.initTinyMCE():this.initTextarea()}},{key:"initTextarea",value:function(){var e=this,t=document.getElementById(this.state.editorId);if(void 0!==window.quicktags)try{window.quicktags({id:this.state.editorId})}catch(n){}t&&(t.value=this.props.value,["input","blur"].forEach((function(n){t.addEventListener(n,(function(){e.props.onChange(t.value)}))})))}},{key:"initTinyMCE",value:function(){var e=this;document.getElementById("wp-".concat(this.state.editorId,"-editor-container")).outerHTML='<textarea id="'.concat(this.state.editorId,'"></textarea>');var t=tinymce.$("#wp-".concat(this.state.editorId,"-wrap"));t.removeClass("tmce-active").addClass("html-active"),this.initTextarea(),t.removeClass("html-active").addClass("tmce-active");var n={};void 0!==window.tinyMCEPreInit&&tinyMCEPreInit.hasOwnProperty("mceInit")&&tinyMCEPreInit.mceInit.hasOwnProperty("wprm-admin-modal-notes-editor")&&(n=tinyMCEPreInit.mceInit["wprm-admin-modal-notes-editor"]),n.hasOwnProperty("body_class")&&(n.body_class=n.body_class.replace(/wprm-admin-modal-notes-editor/g,this.state.editorId)),n.selector="#".concat(this.state.editorId),window.tinymce.init(n);var r=window.tinymce.get(this.state.editorId);r&&r.on("change",(function(){e.props.onChange(r.getContent())}))}},{key:"componentWillUnmount",value:function(){void 0!==window.tinyMCE&&window.tinyMCE.remove("#".concat(this.state.editorId))}},{key:"render",value:function(){return this.state.editorHtml?o.createElement("div",{id:"wprm-admin-modal-field-tinymce-container",dangerouslySetInnerHTML:{__html:this.state.editorHtml}}):o.createElement(We.Z,null)}}])&&vu(t.prototype,n),r&&vu(t,r),a}(o.Component),xu=function(e){return o.createElement(C.Z,{label:(0,u.S)("Recipe Notes")},o.createElement(Iu,{id:"recipe-notes",value:e.notes,onChange:function(t){e.onRecipeChange({notes:t})}}))},Ou=function(e){var t=e.recipe.video_id>0,n=!t&&(-1==e.recipe.video_id||e.recipe.video_embed),r=t||n,i=[{id:"import",name:(0,u.S)("Import"),elem:o.createElement(ze,{onModeChange:e.onModeChange,onRecipeChange:e.onRecipeChange})},{id:"media",name:(0,u.S)("Media"),elem:o.createElement(Ye,{image:{id:e.recipe.image_id,url:e.recipe.image_url},pinImage:{id:e.recipe.pin_image_id,url:e.recipe.pin_image_url},video:{id:e.recipe.video_id,thumb:e.recipe.video_thumb_url,embed:e.recipe.video_embed},onRecipeChange:e.onRecipeChange})},{id:"general",name:(0,u.S)("General"),elem:o.createElement(ca,{type:e.recipe.type,name:e.recipe.name,summary:e.recipe.summary,author:{display:e.recipe.author_display,name:e.recipe.author_name,link:e.recipe.author_link},servings:{amount:e.recipe.servings,unit:e.recipe.servings_unit},cost:e.recipe.cost,onRecipeChange:e.onRecipeChange})},{id:"times",name:(0,u.S)("Times"),elem:o.createElement(pa,{type:e.recipe.type,prep:{time:e.recipe.prep_time,zero:e.recipe.prep_time_zero},cook:{time:e.recipe.cook_time,zero:e.recipe.cook_time_zero},custom:{time:e.recipe.custom_time,zero:e.recipe.custom_time_zero},customLabel:e.recipe.custom_time_label,total:{time:e.recipe.total_time,zero:!1},onRecipeChange:e.onRecipeChange})},{id:"categories",name:(0,u.S)("Categories"),elem:o.createElement(Ea,{tags:e.recipe.tags,onRecipeChange:e.onRecipeChange})},{id:"equipment",name:(0,u.S)("Equipment"),elem:o.createElement(As,{type:e.recipe.type,equipment:e.recipe.equipment,onRecipeChange:e.onRecipeChange})},{id:"ingredients",name:"howto"===e.recipe.type?(0,u.S)("Materials"):(0,u.S)("Ingredients"),elem:o.createElement(fs,{type:e.recipe.type,ingredients:e.recipe.ingredients_flat,linkType:e.recipe.ingredient_links_type,onRecipeChange:e.onRecipeChange,onModeChange:e.onModeChange})},{id:"instructions",name:(0,u.S)("Instructions"),elem:o.createElement(nu,{type:e.recipe.type,instructions:e.recipe.instructions_flat,onRecipeChange:e.onRecipeChange,allowVideo:r&&"other"!==e.recipe.type})}];return"howto"!==e.recipe.type&&i.push({id:"nutrition",name:(0,u.S)("Nutrition"),elem:o.createElement(fu,{nutrition:e.recipe.nutrition,servings:{amount:e.recipe.servings,unit:e.recipe.servings_unit},onRecipeChange:e.onRecipeChange,onModeChange:e.onModeChange})}),wprm_admin_modal.custom_fields&&wprm_admin_modal.custom_fields.fields&&0<Object.keys(wprm_admin_modal.custom_fields.fields).length&&i.push({id:"custom-fields",name:(0,u.S)("Custom Fields"),elem:o.createElement(hu,{fields:e.recipe.custom_fields,onFieldChange:function(t,n){var r=Object.assign({},JSON.parse(JSON.stringify(e.recipe.custom_fields)));r[t]=n,e.onRecipeChange({custom_fields:r})}})}),i.push({id:"notes",name:(0,u.S)("Notes"),elem:o.createElement(xu,{notes:e.recipe.notes,onRecipeChange:e.onRecipeChange})}),o.createElement(o.Fragment,null,o.createElement(d.Z,{onCloseModal:e.onCloseModal},e.loadingRecipe?(0,u.S)("Loading Recipe..."):o.createElement(o.Fragment,null,e.recipe.id?"".concat((0,u.S)("Editing Recipe")," #").concat(e.recipe.id).concat(e.recipe.name?" - ".concat(e.recipe.name):""):"".concat((0,u.S)("Creating new Recipe")).concat(e.recipe.name?" - ".concat(e.recipe.name):""))),o.createElement("div",{className:"wprm-admin-modal-recipe-quicklinks"},i.map((function(e,t){return o.createElement(Ze.rU,{to:"wprm-admin-modal-fields-group-".concat(e.id),containerId:"wprm-admin-modal-recipe-content",className:"wprm-admin-modal-recipe-quicklink",activeClass:"active",spy:!0,offset:-10,smooth:!0,duration:400,key:t},e.name)}))),o.createElement(Ze.W_,{className:"wprm-admin-modal-content",id:"wprm-admin-modal-recipe-content"},e.loadingRecipe?o.createElement(We.Z,null):o.createElement("form",{className:"wprm-admin-modal-recipe-fields"},i.map((function(t,n){return o.createElement(Ge,{header:t.name,id:t.id,key:100*e.forceRerender+n},t.elem)})))),o.createElement("div",{id:"wprm-admin-modal-toolbar-container"}),"waiting"===e.saveResult?o.createElement(f.Z,{savingChanges:!1},o.createElement(Ue(),{text:JSON.stringify(e.recipe),onCopy:function(e,t){t?alert((0,u.S)('The recipe has been copied and can be used in the "Import from JSON" feature.')):alert((0,u.S)("Something went wrong. Please contact support."))}},o.createElement("a",{href:"#",onClick:function(e){e.preventDefault()}},(0,u.S)("This is taking a long time. Maybe something went wrong?")," ",(0,u.S)("Click to copy the recipe to your clipboard.")))," ",o.createElement(We.Z,null)):o.createElement(f.Z,{savingChanges:e.savingChanges},"failed"===e.saveResult&&o.createElement(Ue(),{text:JSON.stringify(e.recipe),onCopy:function(e,t){t?alert((0,u.S)('The recipe has been copied and can be used in the "Import from JSON" feature.')):alert((0,u.S)("Something went wrong. Please contact support."))}},o.createElement("a",{href:"#",onClick:function(e){e.preventDefault()}},(0,u.S)("Something went wrong during saving.")," ",(0,u.S)("Click to copy the recipe to your clipboard."))),"ok"===e.saveResult?o.createElement("span",null,(0,u.S)("Saved successfully")):null,o.createElement("button",{className:"button button-primary",onClick:function(){e.saveRecipe(!1)},disabled:!e.changesMade},(0,u.S)("Save")),o.createElement("button",{className:"button button-primary",onClick:function(){e.changesMade?e.saveRecipe(!0):e.onCloseModal()}},e.changesMade?(0,u.S)("Save & Close"):(0,u.S)("Close"))))},Cu=function(e){return o.createElement("div",{className:"wprm-admin-modal-field-text-import-groups"},o.createElement("p",null,(0,u.S)("All of these will be imported. Use the checkbox to indicate group headers.")," "),e.value.map((function(t,n){return o.createElement("div",{className:"wprm-admin-modal-field-text-import-groups-field",key:n},o.createElement("input",{type:"checkbox",checked:t.group,onChange:function(t){var r=JSON.parse(JSON.stringify(e.value));r[n].group=t.target.checked,e.onChange(r)}}),o.createElement("input",{type:"text",value:t.text,style:t.group?{fontWeight:"bold"}:null,onChange:function(t){var r=JSON.parse(JSON.stringify(e.value));r[n].text=t.target.value,e.onChange(r)}}))})))};function Du(e){return(Du="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pu(Object(n),!0).forEach((function(t){ku(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ku(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Au(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Nu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nu(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Nu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ju(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Tu(e,t){return(Tu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Lu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Fu(e);if(t){var o=Fu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ru(this,n)}}function Ru(e,t){return!t||"object"!==Du(t)&&"function"!=typeof t?_u(e):t}function _u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fu(e){return(Fu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Bu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Tu(e,t)}(a,e);var t,n,r,i=Lu(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).textInput=o.createRef();var n="";return e.text&&(n=t.cleanUpText(e.text)),t.state={text:n,name:!1,summary:!1,equipment:!1,ingredients:!1,instructions:!1,notes:!1,isParsing:!1},t.cleanUpText=t.cleanUpText.bind(_u(t)),t.setSelection=t.setSelection.bind(_u(t)),t.useValues=t.useValues.bind(_u(t)),t}return t=a,(n=[{key:"componentDidMount",value:function(){this.textInput.current.focus()}},{key:"cleanUpText",value:function(e){return e=e.replace(/(<([^>]+)>)/gi,""),e=M().decode(e)}},{key:"setSelection",value:function(e){var t=this.textInput.current,n=t.value.substring(t.selectionStart,t.selectionEnd);if(n=n||!1,"equipment"!==e&&"ingredients"!==e&&"instructions"!==e||(n=this.getSeperateFields(n)),n!==this.state[e]){var r={};r[e]=n,this.setState(r)}}},{key:"getSeperateFields",value:function(e){if(!1===e)return!1;var t,n=[],r=Au(e.split(/[\r\n]+/));try{for(r.s();!(t=r.n()).done;){var o=t.value;(o=(o=o.trim()).replace(/^(\d+\)\s+|\d+\.\s+|[a-z]+\)\s+|•\s+|[A-Z]+\.\s+|[IVX]+\.\s+)/,""))&&n.push({group:!1,text:o})}}catch(i){r.e(i)}finally{r.f()}return!!n.length&&n}},{key:"useValues",value:function(){var e=this,t={};if(!1!==this.state.name&&(t.name=this.state.name),!1!==this.state.summary&&(t.summary=this.state.summary),!1!==this.state.notes&&(t.notes=this.state.notes),!1!==this.state.equipment){var n=[];this.state.equipment.map((function(e,t){n.push({uid:t,name:e.text})})),t.equipment=n}if(!1!==this.state.instructions){var r=[];this.state.instructions.map((function(e,t){e.group?r.push({uid:t,type:"group",name:e.text}):r.push({uid:t,type:"instruction",text:e.text,image:0,image_url:""})})),t.instructions_flat=r}var o=[],i={};!1!==this.state.ingredients&&(this.state.ingredients.map((function(e,t){e.group?o.push({uid:t,type:"group",name:e.text}):(o.push({uid:t,type:"ingredient",amount:"",unit:"",name:"",notes:""}),i[t]=e.text)})),t.ingredients_flat=o),0<Object.keys(i).length?this.setState({isParsing:!0},(function(){c.Z.import.parseIngredients(i).then((function(n){if(n){for(var r in n.parsed){var o=n.parsed[r];t.ingredients_flat[r]=Mu(Mu({},t.ingredients_flat[r]),o)}e.props.onImportValues(t)}else e.setState({isParsing:!1})}))})):this.props.onImportValues(t)}},{key:"render",value:function(){var e=this,t=!1!==this.state.name||!1!==this.state.summary||!1!==this.state.equipment||!1!==this.state.ingredients||!1!==this.state.instructions||!1!==this.state.notes;return o.createElement(o.Fragment,null,o.createElement(d.Z,{onCloseModal:this.props.onCloseModal},this.props.recipe.name?"".concat(this.props.recipe.name," - ").concat((0,u.S)("Import from Text")):"".concat((0,u.S)("Recipe")," - ").concat((0,u.S)("Import from Text"))),o.createElement("div",{className:"wprm-admin-modal-field-text-import-container"},o.createElement("h2",null,(0,u.S)("1. Highlight text and click the corresponding button")),o.createElement("div",{className:"wprm-admin-modal-field-text-import-selection"},o.createElement("div",{className:"wprm-admin-modal-field-text-import-buttons"},o.createElement("button",{className:!1!==this.state.name?"button wprm-selection-made":"button",onClick:function(){return e.setSelection("name")}},(0,u.S)("Name")),o.createElement("button",{className:!1!==this.state.summary?"button wprm-selection-made":"button",onClick:function(){return e.setSelection("summary")}},(0,u.S)("Summary")),o.createElement("button",{className:!1!==this.state.equipment?"button wprm-selection-made":"button",onClick:function(){return e.setSelection("equipment")}},(0,u.S)("Equipment")),o.createElement("button",{className:!1!==this.state.ingredients?"button wprm-selection-made":"button",onClick:function(){return e.setSelection("ingredients")}},(0,u.S)("Ingredients")),o.createElement("button",{className:!1!==this.state.instructions?"button wprm-selection-made":"button",onClick:function(){return e.setSelection("instructions")}},(0,u.S)("Instructions")),o.createElement("button",{className:!1!==this.state.notes?"button wprm-selection-made":"button",onClick:function(){return e.setSelection("notes")}},(0,u.S)("Notes"))),o.createElement("textarea",{ref:this.textInput,value:this.state.text,placeholder:(0,u.S)("Paste or type recipe"),onChange:function(t){e.setState({text:e.cleanUpText(t.target.value)})}})),o.createElement("h2",null,(0,u.S)("2. Fine-tune selections")),o.createElement("div",{className:"wprm-admin-modal-field-text-import-finetune"},t?o.createElement(o.Fragment,null,!1!==this.state.name&&o.createElement(C.Z,{label:(0,u.S)("Name")},o.createElement(h.Z,{name:"recipe-name",value:this.state.name,onChange:function(t){e.setState({name:t})}})),!1!==this.state.summary&&o.createElement(C.Z,{label:(0,u.S)("Summary")},o.createElement(be,{value:this.state.summary,onChange:function(t){e.setState({summary:t})}})),!1!==this.state.equipment&&o.createElement(C.Z,{label:(0,u.S)("Equipment")},this.state.equipment.map((function(t,n){return o.createElement("div",{className:"wprm-admin-modal-field-text-import-equipment-field",key:n},o.createElement(h.Z,{value:t.text,onChange:function(t){var r=JSON.parse(JSON.stringify(e.state.equipment));r[n].text=t,e.setState({equipment:r})}}))}))),!1!==this.state.ingredients&&o.createElement(C.Z,{label:(0,u.S)("Ingredients"),help:(0,u.S)("Use the checkboxes to indicate group headers (like Frosting and Cake)")},o.createElement(Cu,{value:this.state.ingredients,onChange:function(t){e.setState({ingredients:t})}})),!1!==this.state.instructions&&o.createElement(C.Z,{label:(0,u.S)("Instructions"),help:(0,u.S)("Use the checkboxes to indicate group headers (like Frosting and Cake)")},o.createElement(Cu,{value:this.state.instructions,onChange:function(t){e.setState({instructions:t})}})),!1!==this.state.notes&&o.createElement(C.Z,{label:(0,u.S)("Notes")},o.createElement(be,{value:this.state.notes,onChange:function(t){e.setState({notes:t})}}))):o.createElement("p",null,(0,u.S)("Make a selection using the buttons above first.")))),o.createElement(f.Z,{savingChanges:this.state.isParsing},o.createElement("button",{className:"button",onClick:this.props.onCancel},(0,u.S)("Cancel")),o.createElement("button",{className:"button button-primary",onClick:this.useValues,disabled:!t},(0,u.S)("Use these Values"))))}}])&&ju(t.prototype,n),r&&ju(t,r),a}(o.Component);function Zu(e){return(Zu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Hu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Uu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hu(Object(n),!0).forEach((function(t){Wu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zu(e,t){return(zu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function qu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Yu(e);if(t){var o=Yu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vu(this,n)}}function Vu(e,t){return!t||"object"!==Zu(t)&&"function"!=typeof t?Ju(e):t}function Ju(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yu(e){return(Yu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Qu=WPRecipeMaker["wp-recipe-maker/dist/shared"].hooks,Xu={"text-import":Bu,recipe:Ou},Ku=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zu(e,t)}(a,e);var t,n,r,i=qu(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=i.call(this,e);var n=JSON.parse(JSON.stringify(wprm_admin_modal.recipe)),r=!1;return e.args.hasOwnProperty("recipe")?n=JSON.parse(JSON.stringify(e.args.recipe)):e.args.hasOwnProperty("recipeId")&&(r=!0,c.Z.recipe.get(e.args.recipeId).then((function(n){if(n){var r=JSON.parse(JSON.stringify(n.recipe));e.args.cloneRecipe&&delete r.id,t.setState({recipe:r,originalRecipe:e.args.cloneRecipe||e.args.restoreRevision?{}:JSON.parse(JSON.stringify(r)),loadingRecipe:!1,mode:"recipe"}),t.scrollToGroup()}else t.setState({loadingRecipe:!1})}))),t.state={recipe:n,originalRecipe:e.args.cloneRecipe||e.args.restoreRevision?{}:JSON.parse(JSON.stringify(n)),savingChanges:!1,saveResult:!1,loadingRecipe:r,forceRerender:0,mode:"recipe"},t.scrollToGroup=t.scrollToGroup.bind(Ju(t)),t.onModeChange=t.onModeChange.bind(Ju(t)),t.onRecipeChange=t.onRecipeChange.bind(Ju(t)),t.saveRecipe=t.saveRecipe.bind(Ju(t)),t.allowCloseModal=t.allowCloseModal.bind(Ju(t)),t.changesMade=t.changesMade.bind(Ju(t)),t}return t=a,(n=[{key:"componentDidMount",value:function(){"recipe"!==this.state.mode||this.state.loadingRecipe||this.scrollToGroup()}},{key:"onModeChange",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={mode:e};"text-import"===e&&(r.textImportText=n),this.setState(r,(function(){"recipe"===e&&(n=n||"media",t.scrollToGroup(n))}))}},{key:"scrollToGroup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"media";Ze.OK.scrollTo("wprm-admin-modal-fields-group-".concat(e),{containerId:"wprm-admin-modal-recipe-content",offset:-10})}},{key:"onRecipeChange",value:function(e){this.setState((function(t){return{recipe:Uu(Uu({},t.recipe),e)}}))}},{key:"saveRecipe",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.state.savingChanges){var n=setTimeout((function(){e.setState({saveResult:"waiting"})}),5e3);this.setState({savingChanges:!0,saveResult:!1},(function(){c.Z.recipe.save(e.state.recipe).then((function(r){if(clearTimeout(n),r&&r.recipe){var o=JSON.parse(JSON.stringify(r.recipe));e.setState((function(e){return{recipe:o,originalRecipe:JSON.parse(JSON.stringify(o)),savingChanges:!1,saveResult:"ok",forceRerender:e.forceRerender+1}}),(function(){"function"==typeof e.props.args.saveCallback&&e.props.args.saveCallback(o),t&&e.props.maybeCloseModal(),setTimeout((function(){"ok"===e.state.saveResult&&e.setState({saveResult:!1})}),3e3)}))}else e.setState({savingChanges:!1,saveResult:"failed"})}))}))}}},{key:"allowCloseModal",value:function(){switch(this.state.mode){case"nutrition-calculation":return confirm((0,u.S)("Are you sure you want to stop calculating the nutrition facts?"))&&this.onModeChange("recipe","nutrition"),!1;case"ingredient-links":return this.onModeChange("recipe","ingredients"),!1;case"text-import":return this.onModeChange("recipe"),!1}return!this.state.savingChanges&&(!this.changesMade()||confirm((0,u.S)("Are you sure you want to close without saving changes?")))}},{key:"changesMade",value:function(){return void 0!==window.lodash?!window.lodash.isEqual(this.state.recipe,this.state.originalRecipe):JSON.stringify(this.state.recipe)!==JSON.stringify(this.state.originalRecipe)}},{key:"render",value:function(){var e=this,t=Qu.applyFilters("modalRecipe",Xu),n=!!t.hasOwnProperty(this.state.mode)&&t[this.state.mode];if(!n)return null;switch(this.state.mode){case"nutrition-calculation":return o.createElement(n,{onCloseModal:this.props.maybeCloseModal,name:this.state.recipe.name,servings:this.state.recipe.servings,ingredients:this.state.recipe.ingredients_flat,onCancel:function(){e.onModeChange("recipe","nutrition")},onNutritionChange:function(t){var n={};Object.keys(wprm_admin_modal.nutrition).map((function(e,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=!1})),n.serving_size=!!e.state.recipe.nutrition.hasOwnProperty("serving_size")&&e.state.recipe.nutrition.serving_size,n.serving_unit=!!e.state.recipe.nutrition.hasOwnProperty("serving_unit")&&e.state.recipe.nutrition.serving_unit,e.onRecipeChange({nutrition:n}),e.onModeChange("recipe","nutrition")}});case"ingredient-links":return o.createElement(n,{onCloseModal:this.props.maybeCloseModal,onCancel:function(){e.onModeChange("recipe","ingredients")},ingredients:this.state.recipe.ingredients_flat,onIngredientsChange:function(t){e.onRecipeChange({ingredients_flat:t}),e.onModeChange("recipe","ingredients")}});case"text-import":return o.createElement(n,{onCloseModal:this.props.maybeCloseModal,onCancel:function(){e.onModeChange("recipe")},text:this.state.textImportText,recipe:this.state.recipe,onImportValues:function(t){e.onRecipeChange(t),e.onModeChange("recipe")}});default:return o.createElement(n,{onCloseModal:this.props.maybeCloseModal,changesMade:this.changesMade(),savingChanges:this.state.savingChanges,saveResult:this.state.saveResult,loadingRecipe:this.state.loadingRecipe,recipe:this.state.recipe,onRecipeChange:this.onRecipeChange,saveRecipe:this.saveRecipe,forceRerender:this.state.forceRerender,onModeChange:this.onModeChange})}}}])&&Gu(t.prototype,n),r&&Gu(t,r),a}(o.Component),$u=(n(35054),n(72975),n(96463));function ec(e){return(ec="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nc(e,t){return(nc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function rc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ac(e);if(t){var o=ac(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return oc(this,n)}}function oc(e,t){return!t||"object"!==ec(t)&&"function"!=typeof t?ic(e):t}function ic(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ac(e){return(ac=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var sc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&nc(e,t)}(a,e);var t,n,r,i=rc(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=i.call(this,e);var n="internal",r="",o=!1,s=!0,u="",c="",l={id:0,url:""};if(e.args.fields&&e.args.fields.roundup){var p=e.args.fields.roundup;!p.id&&p.link&&(n="external",r=p.link,o=!!p.nofollow,s=!!p.newtab,u=p.name,c=p.summary,l.id=p.image,l.url=p.image_url)}return t.state={type:n,recipe:!1,link:r,nofollow:o,newtab:s,name:u,summary:c,image:l,loading:!1,saving:!1},t.loadDetailsFromURL=t.loadDetailsFromURL.bind(ic(t)),t.saveImage=t.saveImage.bind(ic(t)),t}return t=a,(n=[{key:"selectionsMade",value:function(){return"external"===this.state.type?""!==this.state.link:!1!==this.state.recipe}},{key:"loadDetailsFromURL",value:function(){var e=this,t=this.state.link;new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(t)&&this.setState({loading:!0},(function(){fetch("https://api.microlink.io?url="+encodeURIComponent(t)).then((function(e){return e.json()})).then((function(t){var n={loading:!1};"success"===t.status&&(t.data.title&&(n.name=t.data.title),t.data.description&&(n.summary=t.data.description),t.data.image&&t.data.image.url&&(n.image={id:-1,url:t.data.image.url})),e.setState(n)}))}))}},{key:"saveImage",value:function(){var e=this,t=this.state.image.url;t&&this.setState({saving:!0},(function(){c.Z.utilities.saveImage(t).then((function(t){var n={saving:!1};t&&t.id&&(n.image=t),e.setState(n)}))}))}},{key:"render",value:function(){var e=this;return o.createElement(o.Fragment,null,o.createElement(d.Z,{onCloseModal:this.props.maybeCloseModal},(0,u.S)("Select Roundup Recipe")),o.createElement("div",{className:"wprm-admin-modal-roundup-container wprm-admin-modal-roundup-container-".concat(this.state.type)},o.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Type")),o.createElement(g.Z,{id:"type",options:[{value:"internal",label:(0,u.S)("Use one of your own recipes")},{value:"external",label:(0,u.S)("Use external recipe from a different website")}],value:this.state.type,onChange:function(t){e.setState({type:t})}}),"internal"===this.state.type?o.createElement(o.Fragment,null,o.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Recipe")),o.createElement($u.Z,{options:[],value:this.state.recipe,onValueChange:function(t){e.setState({recipe:t})}})):o.createElement(o.Fragment,null,o.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Link")),o.createElement(h.Z,{name:"roundup-link",placeholder:"https://demo.wprecipemaker.com/amazing-vegetable-pizza/",type:"url",value:this.state.link,onChange:function(t){e.setState({link:t})},disabled:this.state.loading}),this.state.loading?o.createElement(We.Z,null):o.createElement(o.Fragment,null,o.createElement("div",{className:"wprm-admin-modal-roundup-field-load-details-container",style:this.state.link?{}:{visibility:"hidden"}},o.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.loadDetailsFromURL()}},(0,u.S)("Try to load details from URL"))),o.createElement("div",{className:"wprm-admin-modal-roundup-field-nofollow-container"},o.createElement("input",{id:"wprm-admin-modal-roundup-field-nofollow",type:"checkbox",checked:this.state.nofollow,onChange:function(t){e.setState({nofollow:t.target.checked})}})," ",o.createElement("label",{htmlFor:"wprm-admin-modal-roundup-field-nofollow"},(0,u.S)('Add rel="nofollow" to link'))),o.createElement("div",{className:"wprm-admin-modal-roundup-field-new-tab-container"},o.createElement("input",{id:"wprm-admin-modal-roundup-field-new-tab",type:"checkbox",checked:this.state.newtab,onChange:function(t){e.setState({newtab:t.target.checked})}})," ",o.createElement("label",{htmlFor:"wprm-admin-modal-roundup-field-new-tab"},(0,u.S)("Open link in new tab"))),o.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Image")),this.state.saving?o.createElement(We.Z,null):o.createElement(o.Fragment,null,-1===this.state.image.id&&""!==this.state.image.url?o.createElement("div",{className:"wprm-admin-modal-field-image"},o.createElement("p",null,(0,u.S)("External image. Recommended:")," ",o.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.saveImage()}},(0,u.S)("Save image locally"))),o.createElement("div",{className:"wprm-admin-modal-field-image-preview"},o.createElement("img",{src:this.state.image.url}),o.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.setState({image:{id:0,url:""}})}},(0,u.S)("Remove Image")))):o.createElement(Ve,{id:this.state.image.id,url:this.state.image.url,onChange:function(t,n){e.setState({image:{id:t,url:n}})}})),o.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Name")),o.createElement(h.Z,{name:"recipe-name",placeholder:(0,u.S)("Recipe Name"),value:this.state.name,onChange:function(t){e.setState({name:t})}}),o.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Summary")),o.createElement(be,{placeholder:(0,u.S)("Short description of this recipe..."),value:this.state.summary,onChange:function(t){e.setState({summary:t})}})))),o.createElement(f.Z,{savingChanges:this.state.loading||this.state.saving},o.createElement("button",{className:"button button-primary",onClick:function(){"function"==typeof e.props.args.insertCallback&&e.props.args.insertCallback(e.state),e.props.maybeCloseModal()},disabled:!this.selectionsMade()},(0,u.S)("Use"))))}}])&&tc(t.prototype,n),r&&tc(t,r),a}(o.Component);function uc(e){return(uc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function lc(e,t){return(lc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fc(e);if(t){var o=fc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return dc(this,n)}}function dc(e,t){return!t||"object"!==uc(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function fc(e){return(fc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var mc={id:0,text:(0,u.S)("First recipe on page")},hc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&lc(e,t)}(a,e);var t,n,r,i=pc(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=i.call(this,e);var n=!1;return e.args.fields.recipe.showFirst&&(n=mc),t.state={recipe:n},t}return t=a,(n=[{key:"selectionsMade",value:function(){return!1!==this.state.recipe}},{key:"render",value:function(){var e=this;return o.createElement(o.Fragment,null,o.createElement(d.Z,{onCloseModal:this.props.maybeCloseModal},this.props.args.title?this.props.args.title:"WP Recipe Maker"),o.createElement("div",{className:"wprm-admin-modal-select-container"},this.props.args.fields.recipe?o.createElement($u.Z,{options:this.props.args.fields.recipe.showFirst?[mc]:[],value:this.state.recipe,onValueChange:function(t){e.setState({recipe:t})}}):null),o.createElement(f.Z,{savingChanges:!1},o.createElement("button",{className:"button button-primary",onClick:function(){"function"==typeof e.props.args.nextStepCallback?e.props.args.nextStepCallback(e.state):("function"==typeof e.props.args.insertCallback&&e.props.args.insertCallback(e.state),e.props.maybeCloseModal())},disabled:!this.selectionsMade()},this.props.args.button?this.props.args.button:(0,u.S)("Select"))))}}])&&cc(t.prototype,n),r&&cc(t,r),a}(o.Component),gc=n(40481);function vc(e){return(vc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yc(e,t){return(yc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function wc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ic(e);if(t){var o=Ic(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ec(this,n)}}function Ec(e,t){return!t||"object"!==vc(t)&&"function"!=typeof t?Sc(e):t}function Sc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ic(e){return(Ic=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}document.getElementById("wprm-admin-modal")&&a().setAppElement("#wprm-admin-modal");var xc=WPRecipeMaker["wp-recipe-maker/dist/shared"].hooks,Oc={"bulk-edit":ve,"input-fields":De,menu:Be,recipe:Ku,roundup:sc,select:hc},Cc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yc(e,t)}(c,e);var t,n,r,i=wc(c);function c(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(e=i.call(this)).state={modalIsOpen:!1,mode:"",args:{}},e.content=o.createRef(),e.close=e.close.bind(Sc(e)),e.closeIfAllowed=e.closeIfAllowed.bind(Sc(e)),e}return t=c,(n=[{key:"open",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];!n&&this.state.modalIsOpen||this.setState({modalIsOpen:!0,mode:e,args:t},(function(){window.onbeforeunload=function(){return(0,u.S)("Are you sure you want to leave this page?")}}))}},{key:"close",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.setState({modalIsOpen:!1},(function(){window.onbeforeunload=null,"function"==typeof e&&e()}))}},{key:"closeIfAllowed",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(!this.content.current||!this.content.current.hasOwnProperty("allowCloseModal"))&&this.content.current.allowCloseModal;t&&!t()||this.close(e)}},{key:"addTextToEditor",value:function(e,t){if("undefined"==typeof tinyMCE||!tinyMCE.get(t)||tinyMCE.get(t).isHidden()){var n=gc("textarea#"+t).val();gc("textarea#"+t).val(n+e)}else tinyMCE.get(t).focus(!0),tinyMCE.activeEditor.selection.collapse(!1),tinyMCE.activeEditor.execCommand("mceInsertContent",!1,e)}},{key:"refreshEditor",value:function(e){"undefined"!=typeof tinyMCE&&tinyMCE.get(e)&&!tinyMCE.get(e).isHidden()&&(tinyMCE.get(e).focus(!0),tinyMCE.activeEditor.setContent(tinyMCE.activeEditor.getContent()))}},{key:"render",value:function(){var e=xc.applyFilters("modal",Oc),t=!!e.hasOwnProperty(this.state.mode)&&e[this.state.mode];return t?o.createElement(a(),{isOpen:this.state.modalIsOpen,onRequestClose:this.closeIfAllowed,overlayClassName:"wprm-admin-modal-overlay",className:"wprm-admin-modal wprm-admin-modal-".concat(this.state.mode)},o.createElement(s.Z,{module:"Modal"},o.createElement(t,{ref:this.content,mode:this.state.mode,args:this.state.args,maybeCloseModal:this.closeIfAllowed}))):null}}])&&bc(t.prototype,n),r&&bc(t,r),c}(o.Component);n.g._babelPolyfill||n(28059);var Dc=document.getElementById("wprm-admin-modal");Dc&&r.render(o.createElement(Cc,{ref:function(e){window.WPRM_Modal=e}}),Dc)},43636:function(e,t,n){"use strict";var r=n(89526),o=n(62834);t.Z=function(e){var t="wprm-admin-modal-field-container";e.id&&(t+=" wprm-admin-modal-field-container-".concat(e.id));var n=null;return e.help&&(n=r.createElement(o.Z,{type:"question",title:e.help,className:"wprm-admin-icon-help"})),r.createElement("div",{className:t},e.label?r.createElement(r.Fragment,null,r.createElement("div",{className:"wprm-admin-modal-field-label"},e.label,n),r.createElement("div",{className:"wprm-admin-modal-field"},e.children)):e.children)}},69347:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});n(26364),n(86632),n(61928),n(55862),n(19701),n(42900),n(61078),n(54883),n(77295),n(33130),n(80238),n(12938),n(56908),n(80044),n(10853),n(54130),n(33290),n(45007),n(6208),n(68995);var r=n(89526),o=n(844);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(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}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(c,e);var t,n,i,s=f(c);function c(){return l(this,c),s.apply(this,arguments)}return t=c,(n=[{key:"shouldComponentUpdate",value:function(e){return JSON.stringify(this.props.options)!==JSON.stringify(e.options)||this.props.value!==e.value||this.props.isDisabled!==e.isDisabled}},{key:"render",value:function(){var e=this,t=!1;this.props.options&&(t=this.props.options.reduce((function(e,t){return t.hasOwnProperty("options")?e=e.concat(t.options):e.push(t),e}),[]).find((function(t){return t.value===e.props.value})));var n=this.props.custom?this.props.custom:{};return r.createElement(o.ZP,a({isDisabled:this.props.isDisabled,options:this.props.options,value:t,placeholder:this.props.placeholder,onChange:function(t){e.props.onChange(t.value)},styles:{control:function(e){return u(u({},e),{},{backgroundColor:"white"})},container:function(t){return u(u({},t),{},{width:"100%",maxWidth:e.props.width?e.props.width:"100%"})}}},n))}}])&&p(t.prototype,n),i&&p(t,i),c}(r.Component)},24207:function(e,t,n){"use strict";n(55862),n(73214);var r=n(89526);t.Z=function(e){return r.createElement(r.Fragment,null,e.options.map((function(t){return r.createElement("div",{className:"wprm-admin-modal-field-radio-option",key:t.value},r.createElement("input",{type:"radio",value:t.value,name:"wprm-admin-radio-".concat(e.id),id:"wprm-admin-radio-".concat(e.id,"-").concat(t.value),checked:e.value==t.value,onChange:function(t){e.onChange(t.target.value)}}),r.createElement("label",{htmlFor:"wprm-admin-radio-".concat(e.id,"-").concat(t.value)},t.label))})))}},59905:function(e,t,n){"use strict";n(54994);var r=n(89526);t.Z=function(e){var t=!!e.hasOwnProperty("disabled")&&e.disabled,n=e.hasOwnProperty("type")?e.type:"text";return r.createElement("input",{type:n,disabled:t,name:e.name,value:e.value,placeholder:e.placeholder,onChange:function(t){e.onChange(t.target.value)},onKeyDown:function(t){e.onKeyDown&&e.onKeyDown(t)}})}},86605:function(e,t,n){"use strict";var r=n(89526),o=n(34133);t.Z=function(e){return r.createElement("div",{className:"wprm-admin-modal-footer"},e.savingChanges?r.createElement(o.Z,null):r.createElement(r.Fragment,null,e.children))}},96005:function(e,t,n){"use strict";var r=n(89526),o=n(52082),i=n(62834);t.Z=function(e){return r.createElement("div",{className:"wprm-admin-modal-header"},r.createElement("h2",null,e.children),r.createElement("div",{className:"wprm-admin-modal-close",onClick:e.onCloseModal},r.createElement(i.Z,{type:"close",title:(0,o.S)("Close")})))}},5308:function(e,t,n){"use strict";n(87191);var r=n(52082),o={selectImage:function(e){this.select("image",e)},selectVideo:function(e){this.select("video",e)},select:function(e,t){var n={title:(0,r.S)("Select Media"),button:{text:(0,r.S)("Select")},multiple:!1};"video"===e?(n.frame="video",n.state="video-details"):n.library={type:"image"};var o=wp.media(n);o.on("select",(function(){var e=o.state().get("selection").first().toJSON();t(e)})),o.on("update",(function(){var e=o.state().media.attachment;e&&t(e)})),o.open()}};t.Z=o},96463:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});n(26364),n(86632),n(61928),n(55862),n(54883),n(56908),n(10853),n(35054),n(54130),n(33290),n(45007),n(68995);var r=n(89526),o=n(45624),i=n(52082);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(d,e);var t,n,a,p=l(d);function d(){return s(this,d),p.apply(this,arguments)}return t=d,(n=[{key:"getOptions",value:function(e){return e?fetch(wprm_admin.ajax_url,{method:"POST",credentials:"same-origin",body:"action=wprm_search_recipes&security="+wprm_admin.nonce+"&search="+encodeURIComponent(e),headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded; charset=utf-8"}}).then((function(e){return e.json()})).then((function(e){return e.data.recipes_with_id})):Promise.resolve({options:[]})}},{key:"render",value:function(){return r.createElement(o.ZP,{placeholder:(0,i.S)("Select or search a recipe"),value:this.props.value,onChange:this.props.onValueChange,getOptionValue:function(e){return e.id},getOptionLabel:function(e){return e.text},defaultOptions:this.props.options.concat(wprm_admin.latest_recipes),loadOptions:this.getOptions.bind(this),noOptionsMessage:function(){return(0,i.S)("No recipes found")},clearable:!1})}}])&&u(t.prototype,n),a&&u(t,a),d}(r.Component)},37673:function(e,t,n){"use strict";n.d(t,{Z:function(){return T}});n(55862);var r=n(46087),o=wprm_admin.endpoints.analytics,i={delete:function(e){return r.Z.call("".concat(o,"/").concat(e),"DELETE")}},a=wprm_admin.endpoints.notices,s={dismissNotice:function(e){var t={id:e};return r.Z.call(a,"DELETE",t)}},u=wprm_admin.endpoints.modal,c={parseIngredients:function(e){var t={ingredients:e};return r.Z.call("".concat(u,"/ingredient/parse"),"POST",t)}},l=(n(10853),n(35054),wprm_admin.endpoints.manage),p=wprm_admin.endpoints.rating,d=wprm_admin.endpoints.taxonomy,f=!1,m=!1,h={getData:function(e){return f?(m=e,new Promise((function(e){return e(!1)}))):this.getDataDebounced(e)},getDataDebounced:function(e){var t=this;return f=!0,r.Z.call("".concat(l,"/").concat(e.route),"POST",e).then((function(e){if(m){var n=m;return m=!1,t.getDataDebounced(n)}return f=!1,e}))},deleteUserRatings:function(e){return r.Z.call("".concat(p,"/recipe/").concat(e),"DELETE")},getTerm:function(e,t){return r.Z.call("".concat(d).concat(e,"/").concat(t))},createTerm:function(e,t){var n={name:t};return r.Z.call("".concat(d).concat(e),"POST",n)},deleteTerm:function(e,t){return r.Z.call("".concat(d).concat(e,"/").concat(t,"?force=true"),"DELETE")},renameTerm:function(e,t,n){var o={name:n};return r.Z.call("".concat(d).concat(e,"/").concat(t),"POST",o)},renameTermLabel:function(e,t,n){var o={type:e,id:t,label:n};return r.Z.call("".concat(l,"/taxonomy/label"),"POST",o)},mergeTerm:function(e,t,n){var o={type:e,oldId:t,newId:n};return r.Z.call("".concat(l,"/taxonomy/merge"),"POST",o)},updateTaxonomyMeta:function(e,t,n){var o={};return o[e]=n,r.Z.call("".concat(d).concat(e,"/").concat(t),"POST",o)},bulkEdit:function(e,t,n,o){var i={type:t,ids:n,action:o};return r.Z.call("".concat(l,"/").concat(e,"/bulk"),"POST",i)}},g=wprm_admin.endpoints.modal,v=!1,b=!1,y={getSuggestions:function(e){return v?(b=e,new Promise((function(e){return e(!1)}))):this.getSuggestionsDebounced(e)},getSuggestionsDebounced:function(e){var t=this;return v=!0,r.Z.call("".concat(g,"/suggest"),"POST",e).then((function(e){if(b){var n=b;return b=!1,t.getSuggestionsDebounced(n)}return v=!1,e}))}},w=wprm_admin.endpoints.rating,E={update:function(e){var t={rating:e};return r.Z.call("".concat(w),"POST",t)},delete:function(e){return r.Z.call("".concat(w,"/").concat(e),"DELETE")}},S=wprm_admin.endpoints.recipe,I=wprm_admin.endpoints.manage,x={get:function(e){return r.Z.call("".concat(S,"/").concat(e))},save:function(e){var t={recipe:e},n=S,o="POST",i=!!e.id&&parseInt(e.id);return i&&(n+="/".concat(i),o="PUT"),r.Z.call(n,o,t)},updateStatus:function(e,t){var n={status:t};return r.Z.call("".concat(S,"/").concat(e),"PUT",n)},delete:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n="".concat(S,"/").concat(e);return t&&(n+="?force=true"),r.Z.call(n,"DELETE")},deleteRevision:function(e){return r.Z.call("".concat(I,"/revision/").concat(e),"DELETE")}},O=wprm_admin.endpoints.setting,C={save:function(e){var t={settings:e};return r.Z.call(O,"POST",t)}},D=(n(61078),n(6208),wprm_admin.endpoints.template),P=[],M={},k=null,A={previewShortcode:function(e,t,n){var r=this;return M[e]=t,clearTimeout(k),k=setTimeout((function(){r.previewShortcodes(n)}),500),new Promise((function(e){return P.push(e)}))},previewShortcodes:function(e){var t=P,n=M;P=[],M={};var r={recipeId:e,shortcodes:n};fetch("".concat(D,"/preview"),{method:"POST",headers:{"X-WP-Nonce":wprm_admin.api_nonce,Accept:"application/json","Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(r)}).then((function(e){return e.json().then((function(n){var r=e.ok?n.preview:{};t.forEach((function(e){return e(r)}))}))}))},searchRecipes:function(e){return fetch(wprm_admin.ajax_url,{method:"POST",credentials:"same-origin",body:"action=wprm_search_recipes&security="+wprm_admin.nonce+"&search="+encodeURIComponent(e),headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded; charset=utf-8"}}).then((function(e){return e.json()}))},save:function(e){var t={template:e};return r.Z.call(D,"POST",t)},delete:function(e){var t={slug:e};return r.Z.call(D,"DELETE",t)}},N=wprm_admin.endpoints.utilities,j={saveImage:function(e){var t={url:e};return r.Z.call("".concat(N,"/save_image"),"POST",t)}},T=WPRecipeMaker["wp-recipe-maker/dist/shared"].hooks.applyFilters("api",{analytics:i,general:s,import:c,manage:h,modal:y,rating:E,recipe:x,settings:C,template:A,utilities:j})},46087:function(e,t,n){"use strict";n(26364),n(86632),n(61928),n(55862),n(31807),n(54883),n(10853),n(35054),n(45007),n(68995);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.Z={call:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=wprm_admin.api_nonce;"object"===r(window.wpApiSettings)&&window.wpApiSettings.nonce&&(o=window.wpApiSettings.nonce);var i={method:t,headers:{"X-WP-Nonce":o,Accept:"application/json","Content-Type":"application/json","Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:0},credentials:"same-origin"};return"PUT"!==t&&"DELETE"!==t||(i.method="POST",i.headers["X-HTTP-Method-Override"]=t),n&&(i.body=JSON.stringify(n)),fetch(e,i).then((function(t){if(t.ok)return t.json();console.log(e,i),console.log(t);var n="Something went wrong. Using a firewall like Cloudflare or Sucuri? Try whitelisting your IP. If that doesn't work, please contact support@bootstrapped.ventures with the following details:",r="".concat(t.url," ").concat(t.redirected?"(redirected)":"","- ").concat(t.status," - ").concat(t.statusText);try{t.text().then((function(e){console.log(e),-1!==e.indexOf("rest_cookie_invalid_nonce")?alert("You got logged out or your session expired. Please try logging out of WordPress and back in again."):alert("".concat(n,"\r\n\r\n").concat(r,"\r\n\r\n").concat(e))}))}catch(o){console.log(o),alert("".concat(n,"\r\n\r\n").concat(r,"\r\n\r\n").concat(o))}return!1}))}}},48618:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});n(26364),n(86632),n(61928),n(54883),n(56908),n(10853),n(54130),n(33290),n(45007),n(68995);var r=n(89526);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(c,e);var t,n,o,u=s(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=u.call(this,e)).state={hasError:!1,error:!1,info:!1},t}return t=c,(n=[{key:"componentDidCatch",value:function(e,t){this.setState({hasError:!0,error:e,info:t})}},{key:"render",value:function(){return r.createElement(r.Fragment,null,this.state.hasError?r.createElement("div",{className:"wprm-error-boundary"},r.createElement("p",null,r.createElement("strong",null,"Something went wrong"),r.createElement("br",null),"Please contact ",r.createElement("a",{href:"mailto:support@bootstrapped.ventures"},"support@bootstrapped.ventures")," and send along the following information:"),r.createElement("pre",null,this.props.module?"Module: ".concat(this.props.module,"\n"):null,this.state.error?"Error: ".concat(this.state.error.toString(),"\n"):null,this.state.info?"Stack: ".concat(this.state.info.componentStack):null)):this.props.children)}}])&&i(t.prototype,n),o&&i(t,o),c}(r.Component)},62834:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(89526),o=n(49092),i=n(95075),a={adjustable:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PGxpbmUgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjEyLjUiIHkxPSIxMi41IiB4Mj0iMTUuNSIgeTI9IjEyLjUiPjwvbGluZT4gPGxpbmUgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjAuNS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UyLDAsMSwwLjQ0OCwxLDF2MTNDMTUuNSwxNS4wNTIsMTUuMDUyLDE1LjUsMTQuNSwxNS41eiIvPjwvZz48L3N2Zz4="},s=function(e){var t=!!a.hasOwnProperty(e.type)&&a[e.type];if(!t)return null;var n=e.title,s=e.className?"wprm-admin-icon ".concat(e.className):"wprm-admin-icon",u=!!e.hasOwnProperty("hidden")&&e.hidden;return u&&(n="",s+=" wprm-admin-icon-hidden"),r.createElement(i.Z,{content:n},r.createElement("span",{className:s,onClick:u?function(){}:e.onClick},r.createElement(o.Z,{src:t})))}},34133:function(e,t,n){"use strict";var r=n(89526);t.Z=function(e){return r.createElement("div",{className:"wprm-admin-loader"})}},95075:function(e,t,n){"use strict";n(26364),n(19701),n(61078),n(80238),n(12938),n(80044),n(6208);var r=n(89526),o=n(20877);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.Z=function(e){if(!e.content)return e.children;var t=e.hasOwnProperty("style")?e.style:{};return r.createElement(o.Tooltip,{html:r.createElement("div",{dangerouslySetInnerHTML:{__html:e.content}}),popperOptions:{modifiers:{addZIndex:{enabled:!0,order:810,fn:function(e){return a(a({},e),{},{styles:a(a({},e.styles),{},{zIndex:1e5})})}},preventOverflow:{boundariesElement:"window"}}},style:t},e.children)}},52082:function(e,t,n){"use strict";n.d(t,{S:function(){return s}});n(26364),n(19701),n(61078),n(80238),n(12938),n(80044),n(6208);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a={};function s(e){return a.hasOwnProperty(e)?a[e]:e}window.hasOwnProperty("wprm_public")&&wprm_public.hasOwnProperty("translations")&&(a=o(o({},a),wprm_public.translations)),window.hasOwnProperty("wprm_admin")&&wprm_admin.hasOwnProperty("translations")&&(a=o(o({},a),wprm_admin.translations))},61416:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:function(){return r}})},93661:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},71236:function(e,t,n){"use strict";var r=n(59833),o=n(24697),i="/*|*/";function a(e){e&&s.current.insert(e+"}")}var s={current:null},u=function(e,t,n,r,o,u,c,l,p,d){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return s.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===l)return t+i;break;case 3:switch(l){case 102:case 112:return s.current.insert(n[0]+t),"";default:return t+(0===d?i:"")}case-2:t.split("/*|*/}").forEach(a)}};t.Z=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var i=new o.Z(t);var a,c={};a=e.container||document.head;var l,p=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(p,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){c[e]=!0})),e.parentNode!==a&&a.appendChild(e)})),i.use(e.stylisPlugins)(u),l=function(e,t,n,r){var o=t.name;s.current=n,i(e,t.styles),r&&(d.inserted[o]=!0)};var d={key:n,sheet:new r.m({key:n,container:a,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:c,registered:{},insert:l};return d}},12821:function(e,t,n){"use strict";n.d(t,{nq:function(){return p},tZ:function(){return v},F4:function(){return b},ms:function(){return E}});var r=n(89526),o=n(71236),i=n(56002),a=n(26794),s=n(59833),u=n(72144);var c=(0,r.createContext)((0,o.Z)()),l=(0,r.createContext)({}),p=c.Provider,d=function(e){return(0,r.forwardRef)((function(t,n){return(0,r.createElement)(c.Consumer,null,(function(r){return e(t,r,n)}))}))},f="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",m=Object.prototype.hasOwnProperty,h=function(e,t,n,o){var s=t[f],u=[],c="",l=null===n?t.css:t.css(n);"string"==typeof l&&void 0!==e.registered[l]&&(l=e.registered[l]),u.push(l),void 0!==t.className&&(c=(0,i.f)(e.registered,u,t.className));var p=(0,a.O)(u);(0,i.M)(e,p,"string"==typeof s);c+=e.key+"-"+p.name;var d={};for(var h in t)m.call(t,h)&&"css"!==h&&h!==f&&(d[h]=t[h]);return d.ref=o,d.className=c,(0,r.createElement)(s,d)},g=d((function(e,t,n){return"function"==typeof e.css?(0,r.createElement)(l.Consumer,null,(function(r){return h(t,e,r,n)})):h(t,e,null,n)}));var v=function(e,t){var n=arguments;if(null==t||null==t.css)return r.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=g;var a={};for(var s in t)m.call(t,s)&&(a[s]=t[s]);a[f]=e,i[1]=a;for(var u=2;u<o;u++)i[u]=n[u];return r.createElement.apply(null,i)},b=(r.Component,function(){var e=u.Z.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}),y=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var s in a="",i)i[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};function w(e,t,n){var r=[],o=(0,i.f)(e,r,n);return r.length<2?n:o+t(r)}var E=d((function(e,t){return(0,r.createElement)(l.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=(0,a.O)(n,t.registered);return(0,i.M)(t,o,!1),t.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return w(t.registered,r,y(n))},theme:n},s=e.children(o);return!0,s}))}))},72144:function(e,t,n){"use strict";var r=n(26794);t.Z=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.O)(t)}},95862:function(e,t){"use strict";t.Z=function(e){for(var t,n=e.length,r=n^n,o=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++o;switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),((r^=r>>>15)>>>0).toString(36)}},93059:function(e,t){"use strict";t.Z=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},26794:function(e,t,n){"use strict";n.d(t,{O:function(){return f}});var r=n(95862),o=n(8560),i=n(93059),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u=(0,i.Z)((function(e){return e.replace(a,"-$&").toLowerCase()})),c=function(e,t){if(null==t||"boolean"==typeof t)return"";switch(e){case"animation":case"animationName":"string"==typeof t&&(t=t.replace(s,(function(e,t,n){return p={name:t,styles:n,next:p},t})))}return 1!==o.Z[e]&&45!==e.charCodeAt(1)&&"number"==typeof t&&0!==t?t+"px":t};function l(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return p={name:n.name,styles:n.styles,next:p},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)p={name:o.name,styles:o.styles,next:p},o=o.next;return n.styles}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=l(e,t,n[o],!1);else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":r+=u(i)+":"+c(i,a)+";";else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]])r+=i+"{"+l(e,t,a,!1)+"}";else for(var s=0;s<a.length;s++)r+=u(i)+":"+c(i,a[s])+";"}return r}(e,t,n);case"function":if(void 0!==e){var i=p,a=n(e);return p=i,l(e,t,a,r)}default:if(null==t)return n;var s=t[n];return void 0===s||r?n:s}}var p,d=/label:\s*([^\s;\n{]+)\s*;/g;var f=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,i="";p=void 0;var a=e[0];null==a||void 0===a.raw?(o=!1,i+=l(n,t,a,!1)):i+=a[0];for(var s=1;s<e.length;s++)i+=l(n,t,e[s],46===i.charCodeAt(i.length-1)),o&&(i+=a[s]);d.lastIndex=0;for(var u,c="";null!==(u=d.exec(i));)c+="-"+u[1];return{name:(0,r.Z)(i)+c,styles:i,next:p}}},59833:function(e,t,n){"use strict";n.d(t,{m:function(){return r}});var r=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var i=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,i?0:o.cssRules.length)}catch(a){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}()},24697:function(e,t){"use strict";t.Z=function(e){function t(e,r,u,c,d){for(var f,m,h,g,w,S=0,I=0,x=0,O=0,C=0,N=0,T=h=f=0,R=0,_=0,F=0,B=0,Z=u.length,H=Z-1,U="",W="",G="",z="";R<Z;){if(m=u.charCodeAt(R),R===H&&0!==I+O+x+S&&(0!==I&&(m=47===I?10:47),O=x=S=0,Z++,H++),0===I+O+x+S){if(R===H&&(0<_&&(U=U.replace(p,"")),0<U.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:U+=u.charAt(R)}m=59}switch(m){case 123:for(f=(U=U.trim()).charCodeAt(0),h=1,B=++R;R<Z;){switch(m=u.charCodeAt(R)){case 123:h++;break;case 125:h--;break;case 47:switch(m=u.charCodeAt(R+1)){case 42:case 47:e:{for(T=R+1;T<H;++T)switch(u.charCodeAt(T)){case 47:if(42===m&&42===u.charCodeAt(T-1)&&R+2!==T){R=T+1;break e}break;case 10:if(47===m){R=T+1;break e}}R=T}}break;case 91:m++;case 40:m++;case 34:case 39:for(;R++<H&&u.charCodeAt(R)!==m;);}if(0===h)break;R++}switch(h=u.substring(B,R),0===f&&(f=(U=U.replace(l,"").trim()).charCodeAt(0)),f){case 64:switch(0<_&&(U=U.replace(p,"")),m=U.charCodeAt(1)){case 100:case 109:case 115:case 45:_=r;break;default:_=A}if(B=(h=t(r,_,h,m,d+1)).length,0<j&&(w=s(3,h,_=n(A,U,F),r,P,D,B,m,d,c),U=_.join(""),void 0!==w&&0===(B=(h=w.trim()).length)&&(m=0,h="")),0<B)switch(m){case 115:U=U.replace(E,a);case 100:case 109:case 45:h=U+"{"+h+"}";break;case 107:h=(U=U.replace(v,"$1 $2"))+"{"+h+"}",h=1===k||2===k&&i("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=U+h,112===c&&(W+=h,h="")}else h="";break;default:h=t(r,n(r,U,F),h,c,d+1)}G+=h,h=F=_=T=f=0,U="",m=u.charCodeAt(++R);break;case 125:case 59:if(1<(B=(U=(0<_?U.replace(p,""):U).trim()).length))switch(0===T&&(f=U.charCodeAt(0),45===f||96<f&&123>f)&&(B=(U=U.replace(" ",":")).length),0<j&&void 0!==(w=s(1,U,r,e,P,D,W.length,c,d,c))&&0===(B=(U=w.trim()).length)&&(U="\0\0"),f=U.charCodeAt(0),m=U.charCodeAt(1),f){case 0:break;case 64:if(105===m||99===m){z+=U+u.charAt(R);break}default:58!==U.charCodeAt(B-1)&&(W+=o(U,f,m,U.charCodeAt(2)))}F=_=T=f=0,U="",m=u.charCodeAt(++R)}}switch(m){case 13:case 10:47===I?I=0:0===1+f&&107!==c&&0<U.length&&(_=1,U+="\0"),0<j*L&&s(0,U,r,e,P,D,W.length,c,d,c),D=1,P++;break;case 59:case 125:if(0===I+O+x+S){D++;break}default:switch(D++,g=u.charAt(R),m){case 9:case 32:if(0===O+S+I)switch(C){case 44:case 58:case 9:case 32:g="";break;default:32!==m&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===O+I+S&&(_=F=1,g="\f"+g);break;case 108:if(0===O+I+S+M&&0<T)switch(R-T){case 2:112===C&&58===u.charCodeAt(R-3)&&(M=C);case 8:111===N&&(M=N)}break;case 58:0===O+I+S&&(T=R);break;case 44:0===I+x+O+S&&(_=1,g+="\r");break;case 34:case 39:0===I&&(O=O===m?0:0===O?m:O);break;case 91:0===O+I+x&&S++;break;case 93:0===O+I+x&&S--;break;case 41:0===O+I+S&&x--;break;case 40:if(0===O+I+S){if(0===f)switch(2*C+3*N){case 533:break;default:f=1}x++}break;case 64:0===I+x+O+S+T+h&&(h=1);break;case 42:case 47:if(!(0<O+S+x))switch(I){case 0:switch(2*m+3*u.charCodeAt(R+1)){case 235:I=47;break;case 220:B=R,I=42}break;case 42:47===m&&42===C&&B+2!==R&&(33===u.charCodeAt(B+2)&&(W+=u.substring(B,R+1)),g="",I=0)}}0===I&&(U+=g)}N=C,C=m,R++}if(0<(B=W.length)){if(_=r,0<j&&(void 0!==(w=s(2,W,_,e,P,D,B,c,d,c))&&0===(W=w).length))return z+W+G;if(W=_.join(",")+"{"+W+"}",0!=k*M){switch(2!==k||i(W,2)||(M=0),M){case 111:W=W.replace(y,":-moz-$1")+W;break;case 112:W=W.replace(b,"::-webkit-input-$1")+W.replace(b,"::-moz-$1")+W.replace(b,":-ms-input-$1")+W}M=0}}return z+W+G}function n(e,t,n){var o=t.trim().split(h);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=r(e,t[s],n).trim();break;default:var u=s=0;for(t=[];s<i;++s)for(var c=0;c<a;++c)t[u++]=r(e[c]+" ",o[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===k||2===k&&i(u,1)?"-webkit-"+u+u:u}if(0===k||2===k&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(C,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return f.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=a.replace(w,"tb");break;case 232:u=a.replace(w,"tb-rl");break;case 220:u=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(u=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(I,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(I,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===O.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),T(2!==t?r:r.replace(x,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(S," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,o,i,a,s,u,l){for(var p,d=0,f=t;d<j;++d)switch(p=N[d].call(c,e,f,n,r,o,i,a,s,u,l)){case void 0:case!1:case!0:case null:break;default:f=p}if(f!==t)return f}function u(e){return void 0!==(e=e.prefix)&&(T=null,e?"function"!=typeof e?k=1:(k=2,T=e):k=0),u}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<j){var o=s(-1,n,r,r,P,D,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var i=t(A,r,n,0,0);return 0<j&&(void 0!==(o=s(-2,i,r,r,P,D,i.length,0,0,0))&&(i=o)),"",M=0,D=P=1,i}var l=/^\0+/g,p=/[\0\r\f]/g,d=/: */g,f=/zoo|gra/,m=/([,: ])(transform)/g,h=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,y=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,E=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,I=/-self|flex-/g,x=/[^]*?(:[rp][el]a[\w-]+)[^]*/,O=/stretch|:\s*\w+\-(?:conte|avail)/,C=/([^-])(image-set\()/,D=1,P=1,M=0,k=1,A=[],N=[],j=0,T=null,L=0;return c.use=function e(t){switch(t){case void 0:case null:j=N.length=0;break;default:if("function"==typeof t)N[j++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else L=0|!!t}return e},c.set=u,void 0!==e&&u(e),c}},8560:function(e,t){"use strict";t.Z={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},56002:function(e,t,n){"use strict";n.d(t,{f:function(){return r},M:function(){return o}});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var o=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+r,o,e.sheet,!0);o=o.next}while(void 0!==o)}}},38974:function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},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=90)}({17:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(18),o=function(){function e(){}return e.getFirstMatch=function(e,t){var n=t.match(e);return n&&n.length>0&&n[1]||""},e.getSecondMatch=function(e,t){var n=t.match(e);return n&&n.length>1&&n[2]||""},e.matchAndReturnConst=function(e,t,n){if(e.test(t))return n},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,n,r){void 0===r&&(r=!1);var o=e.getVersionPrecision(t),i=e.getVersionPrecision(n),a=Math.max(o,i),s=0,u=e.map([t,n],(function(t){var n=a-e.getVersionPrecision(t),r=t+new Array(n+1).join(".0");return e.map(r.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(r&&(s=a-Math.min(o,i)),a-=1;a>=s;){if(u[0][a]>u[1][a])return 1;if(u[0][a]===u[1][a]){if(a===s)return 0;a-=1}else if(u[0][a]<u[1][a])return-1}},e.map=function(e,t){var n,r=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n<e.length;n+=1)r.push(t(e[n]));return r},e.find=function(e,t){var n,r;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(n=0,r=e.length;n<r;n+=1){var o=e[n];if(t(o,n))return o}},e.assign=function(e){for(var t,n,r=e,o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];if(Object.assign)return Object.assign.apply(Object,[e].concat(i));var s=function(){var e=i[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){r[t]=e[t]}))};for(t=0,n=i.length;t<n;t+=1)s();return e},e.getBrowserAlias=function(e){return r.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return r.BROWSER_MAP[e]||""},e}();t.default=o,e.exports=t.default},18:function(e,t,n){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=n(91))&&r.__esModule?r:{default:r},i=n(18);function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function e(){}var t,n,r;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new o.default(e,t)},e.parse=function(e){return new o.default(e).getResult()},t=e,r=[{key:"BROWSER_MAP",get:function(){return i.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return i.ENGINE_MAP}},{key:"OS_MAP",get:function(){return i.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return i.PLATFORMS_MAP}}],(n=null)&&a(t.prototype,n),r&&a(t,r),e}();t.default=s,e.exports=t.default},91:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=u(n(92)),o=u(n(93)),i=u(n(94)),a=u(n(95)),s=u(n(17));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=s.default.find(r.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=s.default.find(o.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=s.default.find(i.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=s.default.find(a.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return s.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,n={},r=0,o={},i=0;if(Object.keys(e).forEach((function(t){var a=e[t];"string"==typeof a?(o[t]=a,i+=1):"object"==typeof a&&(n[t]=a,r+=1)})),r>0){var a=Object.keys(n),u=s.default.find(a,(function(e){return t.isOS(e)}));if(u){var c=this.satisfies(n[u]);if(void 0!==c)return c}var l=s.default.find(a,(function(e){return t.isPlatform(e)}));if(l){var p=this.satisfies(n[l]);if(void 0!==p)return p}}if(i>0){var d=Object.keys(o),f=s.default.find(d,(function(e){return t.isBrowser(e,!0)}));if(void 0!==f)return this.compareVersion(o[f])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),o=s.default.getBrowserTypeByAlias(r);return t&&o&&(r=o.toLowerCase()),r===n},t.compareVersion=function(e){var t=[0],n=e,r=!1,o=this.getBrowserVersion();if("string"==typeof o)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(r=!0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(r=!0,n=e.substr(1)),t.indexOf(s.default.compareVersions(o,n,r))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=c,e.exports=t.default},92:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},n=o.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},n=o.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},n=o.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},n=o.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},n=o.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},n=o.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},n=o.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},n=o.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=o.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},n=o.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},n=o.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},n=o.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},n=o.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},n=o.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},n=o.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},n=o.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},n=o.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},n=o.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},n=o.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},n=o.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},n=o.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},n=o.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},n=o.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},n=o.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},n=o.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},n=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},n=o.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t={name:"Android Browser"},n=o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},n=o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},n=o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:o.default.getFirstMatch(t,e),version:o.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=n(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=o.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:i.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=o.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=o.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=o.default.getWindowsVersionName(t);return{name:i.OS_MAP.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:i.OS_MAP.iOS},n=o.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe:function(e){var t=o.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=o.default.getMacOSVersionName(t),r={name:i.OS_MAP.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=o.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:i.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t=o.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=o.default.getAndroidVersionName(t),r={name:i.OS_MAP.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=o.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:i.OS_MAP.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=o.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||o.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||o.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:i.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=o.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=o.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:i.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:i.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=o.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=n(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=o.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:i.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe:function(e){var t=o.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:i.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=n(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:i.ENGINE_MAP.Blink};var t=o.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:i.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:i.ENGINE_MAP.Trident},n=o.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:i.ENGINE_MAP.Presto},n=o.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe:function(e){var t={name:i.ENGINE_MAP.Gecko},n=o.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:i.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:i.ENGINE_MAP.WebKit},n=o.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];t.default=a,e.exports=t.default}})},77447:function(e,t,n){"use strict";var r=n(12817);e.exports=function(e,t){var n,o,i,a,s,u,c=!1;t||(t={}),n=t.debug||!1;try{if(i=r(),a=document.createRange(),s=document.getSelection(),(u=document.createElement("span")).textContent=e,u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(n){n.stopPropagation(),t.format&&(n.preventDefault(),n.clipboardData.clearData(),n.clipboardData.setData(t.format,e))})),document.body.appendChild(u),a.selectNodeContents(u),s.addRange(a),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!0}catch(l){n&&console.error("unable to copy using execCommand: ",l),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),c=!0}catch(l){n&&console.error("unable to copy using clipboardData: ",l),n&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(a):s.removeAllRanges()),u&&document.body.removeChild(u),i()}return c}},22020:function(e,t,n){n(59789),n(68502);var r=n(13145);e.exports=r("Array","flat")},9968:function(e,t,n){var r=n(22020);e.exports=r},28641:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},75017:function(e,t,n){var r=n(52786);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},6677:function(e,t,n){var r=n(52280),o=n(51569),i=n(86385),a=r("unscopables"),s=Array.prototype;null==s[a]&&i.f(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},13350:function(e,t,n){"use strict";var r=n(91140).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},9519:function(e){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},83875:function(e,t,n){var r=n(52786);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},20379:function(e,t,n){"use strict";var r=n(68671).forEach,o=n(54324),i=n(5673),a=o("forEach"),s=i("forEach");e.exports=a&&s?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},84899:function(e,t,n){"use strict";var r=n(98166),o=n(30744),i=n(9637),a=n(68089),s=n(35108),u=n(35039),c=n(77193);e.exports=function(e){var t,n,l,p,d,f,m=o(e),h="function"==typeof this?this:Array,g=arguments.length,v=g>1?arguments[1]:void 0,b=void 0!==v,y=c(m),w=0;if(b&&(v=r(v,g>2?arguments[2]:void 0,2)),null==y||h==Array&&a(y))for(n=new h(t=s(m.length));t>w;w++)f=b?v(m[w],w):m[w],u(n,w,f);else for(d=(p=y.call(m)).next,n=new h;!(l=d.call(p)).done;w++)f=b?i(p,v,[l.value,w],!0):l.value,u(n,w,f);return n.length=w,n}},37190:function(e,t,n){var r=n(29580),o=n(35108),i=n(32565),a=function(e){return function(t,n,a){var s,u=r(t),c=o(u.length),l=i(a,c);if(e&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},68671:function(e,t,n){var r=n(98166),o=n(78609),i=n(30744),a=n(35108),s=n(80150),u=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,l=4==e,p=6==e,d=5==e||p;return function(f,m,h,g){for(var v,b,y=i(f),w=o(y),E=r(m,h,3),S=a(w.length),I=0,x=g||s,O=t?x(f,S):n?x(f,0):void 0;S>I;I++)if((d||I in w)&&(b=E(v=w[I],I,y),e))if(t)O[I]=b;else if(b)switch(e){case 3:return!0;case 5:return v;case 6:return I;case 2:u.call(O,v)}else if(l)return!1;return p?-1:c||l?l:O}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},82091:function(e,t,n){var r=n(79044),o=n(52280),i=n(11197),a=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},54324:function(e,t,n){"use strict";var r=n(79044);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},5673:function(e,t,n){var r=n(7493),o=n(79044),i=n(40454),a=Object.defineProperty,s={},u=function(e){throw e};e.exports=function(e,t){if(i(s,e))return s[e];t||(t={});var n=[][e],c=!!i(t,"ACCESSORS")&&t.ACCESSORS,l=i(t,0)?t[0]:u,p=i(t,1)?t[1]:void 0;return s[e]=!!n&&!o((function(){if(c&&!r)return!0;var e={length:-1};c?a(e,1,{enumerable:!0,get:u}):e[1]=1,n.call(e,l,p)}))}},86596:function(e,t,n){var r=n(28641),o=n(30744),i=n(78609),a=n(35108),s=function(e){return function(t,n,s,u){r(n);var c=o(t),l=i(c),p=a(c.length),d=e?p-1:0,f=e?-1:1;if(s<2)for(;;){if(d in l){u=l[d],d+=f;break}if(d+=f,e?d<0:p<=d)throw TypeError("Reduce of empty array with no initial value")}for(;e?d>=0:p>d;d+=f)d in l&&(u=n(u,l[d],d,c));return u}};e.exports={left:s(!1),right:s(!0)}},80150:function(e,t,n){var r=n(52786),o=n(71982),i=n(52280)("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},9637:function(e,t,n){var r=n(83875);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(a){var i=e.return;throw void 0!==i&&r(i.call(e)),a}}},8662:function(e,t,n){var r=n(52280)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(s){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(s){}return n}},79159:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},36994:function(e,t,n){var r=n(57301),o=n(79159),i=n(52280)("toStringTag"),a="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),i))?n:a?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},73870:function(e,t,n){var r=n(40454),o=n(31561),i=n(66012),a=n(86385);e.exports=function(e,t){for(var n=o(t),s=a.f,u=i.f,c=0;c<n.length;c++){var l=n[c];r(e,l)||s(e,l,u(t,l))}}},15454:function(e,t,n){var r=n(52280)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(o){}}return!1}},25115:function(e,t,n){var r=n(79044);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},75304:function(e,t,n){var r=n(96411),o=/"/g;e.exports=function(e,t,n,i){var a=String(r(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(i).replace(o,"&quot;")+'"'),s+">"+a+"</"+t+">"}},6181:function(e,t,n){"use strict";var r=n(97022).IteratorPrototype,o=n(51569),i=n(69199),a=n(60878),s=n(44818),u=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),a(e,c,!1,!0),s[c]=u,e}},45899:function(e,t,n){var r=n(7493),o=n(86385),i=n(69199);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},69199:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},35039:function(e,t,n){"use strict";var r=n(21893),o=n(86385),i=n(69199);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},61495:function(e,t,n){"use strict";var r=n(19882),o=n(6181),i=n(12654),a=n(22412),s=n(60878),u=n(45899),c=n(35974),l=n(52280),p=n(21178),d=n(44818),f=n(97022),m=f.IteratorPrototype,h=f.BUGGY_SAFARI_ITERATORS,g=l("iterator"),v="keys",b="values",y="entries",w=function(){return this};e.exports=function(e,t,n,l,f,E,S){o(n,t,l);var I,x,O,C=function(e){if(e===f&&A)return A;if(!h&&e in M)return M[e];switch(e){case v:case b:case y:return function(){return new n(this,e)}}return function(){return new n(this)}},D=t+" Iterator",P=!1,M=e.prototype,k=M[g]||M["@@iterator"]||f&&M[f],A=!h&&k||C(f),N="Array"==t&&M.entries||k;if(N&&(I=i(N.call(new e)),m!==Object.prototype&&I.next&&(p||i(I)===m||(a?a(I,m):"function"!=typeof I[g]&&u(I,g,w)),s(I,D,!0,!0),p&&(d[D]=w))),f==b&&k&&k.name!==b&&(P=!0,A=function(){return k.call(this)}),p&&!S||M[g]===A||u(M,g,A),d[t]=A,f)if(x={values:C(b),keys:E?A:C(v),entries:C(y)},S)for(O in x)(h||P||!(O in M))&&c(M,O,x[O]);else r({target:t,proto:!0,forced:h||P},x);return x}},68308:function(e,t,n){var r=n(67290),o=n(40454),i=n(20127),a=n(86385).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},7493:function(e,t,n){var r=n(79044);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},92750:function(e,t,n){var r=n(98363),o=n(52786),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},12848:function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},53121:function(e,t,n){var r=n(82647);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},82647:function(e,t,n){var r=n(22773);e.exports=r("navigator","userAgent")||""},11197:function(e,t,n){var r,o,i=n(98363),a=n(82647),s=i.process,u=s&&s.versions,c=u&&u.v8;c?o=(r=c.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=r[1]),e.exports=o&&+o},13145:function(e,t,n){var r=n(98363),o=n(98166),i=Function.call;e.exports=function(e,t,n){return o(i,r[e].prototype[t],n)}},48869:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},19882:function(e,t,n){var r=n(98363),o=n(66012).f,i=n(45899),a=n(35974),s=n(51621),u=n(73870),c=n(86291);e.exports=function(e,t){var n,l,p,d,f,m=e.target,h=e.global,g=e.stat;if(n=h?r:g?r[m]||s(m,{}):(r[m]||{}).prototype)for(l in t){if(d=t[l],p=e.noTargetGet?(f=o(n,l))&&f.value:n[l],!c(h?l:m+(g?".":"#")+l,e.forced)&&void 0!==p){if(typeof d==typeof p)continue;u(d,p)}(e.sham||p&&p.sham)&&i(d,"sham",!0),a(n,l,d,e)}}},79044:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},81492:function(e,t,n){"use strict";n(39275);var r=n(35974),o=n(79044),i=n(52280),a=n(99749),s=n(45899),u=i("species"),c=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),l="$0"==="a".replace(/./,"$0"),p=i("replace"),d=!!/./[p]&&""===/./[p]("a","$0"),f=!o((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,p){var m=i(e),h=!o((function(){var t={};return t[m]=function(){return 7},7!=""[e](t)})),g=h&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[m]=/./[m]),n.exec=function(){return t=!0,null},n[m](""),!t}));if(!h||!g||"replace"===e&&(!c||!l||d)||"split"===e&&!f){var v=/./[m],b=n(m,""[e],(function(e,t,n,r,o){return t.exec===a?h&&!o?{done:!0,value:v.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),y=b[0],w=b[1];r(String.prototype,e,y),r(RegExp.prototype,m,2==t?function(e,t){return w.call(e,this,t)}:function(e){return w.call(e,this)})}p&&s(RegExp.prototype[m],"sham",!0)}},92613:function(e,t,n){"use strict";var r=n(71982),o=n(35108),i=n(98166),a=function(e,t,n,s,u,c,l,p){for(var d,f=u,m=0,h=!!l&&i(l,p,3);m<s;){if(m in n){if(d=h?h(n[m],m,t):n[m],c>0&&r(d))f=a(e,t,d,o(d.length),f,c-1)-1;else{if(f>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[f]=d}f++}m++}return f};e.exports=a},98166:function(e,t,n){var r=n(28641);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},52381:function(e,t,n){"use strict";var r=n(28641),o=n(52786),i=[].slice,a={},s=function(e,t,n){if(!(t in a)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";a[t]=Function("C,a","return new C("+r.join(",")+")")}return a[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=i.call(arguments,1),a=function(){var r=n.concat(i.call(arguments));return this instanceof a?s(t,r.length,r):t.apply(e,r)};return o(t.prototype)&&(a.prototype=t.prototype),a}},22773:function(e,t,n){var r=n(67290),o=n(98363),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},77193:function(e,t,n){var r=n(36994),o=n(44818),i=n(52280)("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},98363:function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||Function("return this")()},40454:function(e){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},47505:function(e){e.exports={}},46271:function(e,t,n){var r=n(98363);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},47055:function(e,t,n){var r=n(22773);e.exports=r("document","documentElement")},67548:function(e,t,n){var r=n(7493),o=n(79044),i=n(92750);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},78609:function(e,t,n){var r=n(79044),o=n(79159),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},59250:function(e,t,n){var r=n(52786),o=n(22412);e.exports=function(e,t,n){var i,a;return o&&"function"==typeof(i=t.constructor)&&i!==n&&r(a=i.prototype)&&a!==n.prototype&&o(e,a),e}},56429:function(e,t,n){var r=n(49415),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},20821:function(e,t,n){var r,o,i,a=n(36830),s=n(98363),u=n(52786),c=n(45899),l=n(40454),p=n(50466),d=n(47505),f=s.WeakMap;if(a){var m=new f,h=m.get,g=m.has,v=m.set;r=function(e,t){return v.call(m,e,t),t},o=function(e){return h.call(m,e)||{}},i=function(e){return g.call(m,e)}}else{var b=p("state");d[b]=!0,r=function(e,t){return c(e,b,t),t},o=function(e){return l(e,b)?e[b]:{}},i=function(e){return l(e,b)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},68089:function(e,t,n){var r=n(52280),o=n(44818),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},71982:function(e,t,n){var r=n(79159);e.exports=Array.isArray||function(e){return"Array"==r(e)}},86291:function(e,t,n){var r=n(79044),o=/#|\.prototype\./,i=function(e,t){var n=s[a(e)];return n==c||n!=u&&("function"==typeof t?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=i.data={},u=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},68746:function(e,t,n){var r=n(52786),o=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&o(e)===e}},52786:function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},21178:function(e){e.exports=!1},42622:function(e,t,n){var r=n(52786),o=n(79159),i=n(52280)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},5166:function(e,t,n){var r=n(83875),o=n(68089),i=n(35108),a=n(98166),s=n(77193),u=n(9637),c=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,l,p){var d,f,m,h,g,v,b,y=a(t,n,l?2:1);if(p)d=e;else{if("function"!=typeof(f=s(e)))throw TypeError("Target is not iterable");if(o(f)){for(m=0,h=i(e.length);h>m;m++)if((g=l?y(r(b=e[m])[0],b[1]):y(e[m]))&&g instanceof c)return g;return new c(!1)}d=f.call(e)}for(v=d.next;!(b=v.call(d)).done;)if("object"==typeof(g=u(d,y,b.value,l))&&g&&g instanceof c)return g;return new c(!1)}).stop=function(e){return new c(!0,e)}},97022:function(e,t,n){"use strict";var r,o,i,a=n(12654),s=n(45899),u=n(40454),c=n(52280),l=n(21178),p=c("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(r=o):d=!0),null==r&&(r={}),l||u(r,p)||s(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},44818:function(e){e.exports={}},71800:function(e,t,n){var r,o,i,a,s,u,c,l,p=n(98363),d=n(66012).f,f=n(79159),m=n(84643).set,h=n(53121),g=p.MutationObserver||p.WebKitMutationObserver,v=p.process,b=p.Promise,y="process"==f(v),w=d(p,"queueMicrotask"),E=w&&w.value;E||(r=function(){var e,t;for(y&&(e=v.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(n){throw o?a():i=void 0,n}}i=void 0,e&&e.enter()},y?a=function(){v.nextTick(r)}:g&&!h?(s=!0,u=document.createTextNode(""),new g(r).observe(u,{characterData:!0}),a=function(){u.data=s=!s}):b&&b.resolve?(c=b.resolve(void 0),l=c.then,a=function(){l.call(c,r)}):a=function(){m.call(p,r)}),e.exports=E||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,a()),i=t}},58369:function(e,t,n){var r=n(98363);e.exports=r.Promise},3850:function(e,t,n){var r=n(79044);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},36830:function(e,t,n){var r=n(98363),o=n(56429),i=r.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},29269:function(e,t,n){"use strict";var r=n(28641),o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},21049:function(e,t,n){var r=n(42622);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},45856:function(e,t,n){"use strict";var r=n(7493),o=n(79044),i=n(60667),a=n(89612),s=n(81513),u=n(30744),c=n(78609),l=Object.assign,p=Object.defineProperty;e.exports=!l||o((function(){if(r&&1!==l({b:1},l(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||i(l({},t)).join("")!=o}))?function(e,t){for(var n=u(e),o=arguments.length,l=1,p=a.f,d=s.f;o>l;)for(var f,m=c(arguments[l++]),h=p?i(m).concat(p(m)):i(m),g=h.length,v=0;g>v;)f=h[v++],r&&!d.call(m,f)||(n[f]=m[f]);return n}:l},51569:function(e,t,n){var r,o=n(83875),i=n(17840),a=n(48869),s=n(47505),u=n(47055),c=n(92750),l=n(50466),p=l("IE_PROTO"),d=function(){},f=function(e){return"<script>"+e+"</"+"script>"},m=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(o){}var e,t;m=r?function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=c("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete m.prototype[a[n]];return m()};s[p]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(d.prototype=o(e),n=new d,d.prototype=null,n[p]=e):n=m(),void 0===t?n:i(n,t)}},17840:function(e,t,n){var r=n(7493),o=n(86385),i=n(83875),a=n(60667);e.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=a(t),s=r.length,u=0;s>u;)o.f(e,n=r[u++],t[n]);return e}},86385:function(e,t,n){var r=n(7493),o=n(67548),i=n(83875),a=n(21893),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(i(e),t=a(t,!0),i(n),o)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},66012:function(e,t,n){var r=n(7493),o=n(81513),i=n(69199),a=n(29580),s=n(21893),u=n(40454),c=n(67548),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=a(e),t=s(t,!0),c)try{return l(e,t)}catch(n){}if(u(e,t))return i(!o.f.call(e,t),e[t])}},74938:function(e,t,n){var r=n(29580),o=n(87994).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(t){return a.slice()}}(e):o(r(e))}},87994:function(e,t,n){var r=n(18794),o=n(48869).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},89612:function(e,t){t.f=Object.getOwnPropertySymbols},12654:function(e,t,n){var r=n(40454),o=n(30744),i=n(50466),a=n(25115),s=i("IE_PROTO"),u=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=o(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},18794:function(e,t,n){var r=n(40454),o=n(29580),i=n(37190).indexOf,a=n(47505);e.exports=function(e,t){var n,s=o(e),u=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~i(c,n)||c.push(n));return c}},60667:function(e,t,n){var r=n(18794),o=n(48869);e.exports=Object.keys||function(e){return r(e,o)}},81513:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},22412:function(e,t,n){var r=n(83875),o=n(75017);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(i){}return function(n,i){return r(n),o(i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},8765:function(e,t,n){var r=n(7493),o=n(60667),i=n(29580),a=n(81513).f,s=function(e){return function(t){for(var n,s=i(t),u=o(s),c=u.length,l=0,p=[];c>l;)n=u[l++],r&&!a.call(s,n)||p.push(e?[n,s[n]]:s[n]);return p}};e.exports={entries:s(!0),values:s(!1)}},36699:function(e,t,n){"use strict";var r=n(57301),o=n(36994);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},31561:function(e,t,n){var r=n(22773),o=n(87994),i=n(89612),a=n(83875);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},67290:function(e,t,n){var r=n(98363);e.exports=r},74443:function(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},11621:function(e,t,n){var r=n(83875),o=n(52786),i=n(29269);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},7592:function(e,t,n){var r=n(35974);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},35974:function(e,t,n){var r=n(98363),o=n(45899),i=n(40454),a=n(51621),s=n(56429),u=n(20821),c=u.get,l=u.enforce,p=String(String).split("String");(e.exports=function(e,t,n,s){var u=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||o(n,"name",t),l(n).source=p.join("string"==typeof t?t:"")),e!==r?(u?!d&&e[t]&&(c=!0):delete e[t],c?e[t]=n:o(e,t,n)):c?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},94088:function(e,t,n){var r=n(79159),o=n(99749);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},99749:function(e,t,n){"use strict";var r,o,i=n(58083),a=n(97047),s=RegExp.prototype.exec,u=String.prototype.replace,c=s,l=(r=/a/,o=/b*/g,s.call(r,"a"),s.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),p=a.UNSUPPORTED_Y||a.BROKEN_CARET,d=void 0!==/()??/.exec("")[1];(l||d||p)&&(c=function(e){var t,n,r,o,a=this,c=p&&a.sticky,f=i.call(a),m=a.source,h=0,g=e;return c&&(-1===(f=f.replace("y","")).indexOf("g")&&(f+="g"),g=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(m="(?: "+m+")",g=" "+g,h++),n=new RegExp("^(?:"+m+")",f)),d&&(n=new RegExp("^"+m+"$(?!\\s)",f)),l&&(t=a.lastIndex),r=s.call(c?n:a,g),c?r?(r.input=r.input.slice(h),r[0]=r[0].slice(h),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:l&&r&&(a.lastIndex=a.global?r.index+r[0].length:t),d&&r&&r.length>1&&u.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),e.exports=c},58083:function(e,t,n){"use strict";var r=n(83875);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},97047:function(e,t,n){"use strict";var r=n(79044);function o(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},96411:function(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},10420:function(e){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},51621:function(e,t,n){var r=n(98363),o=n(45899);e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},57323:function(e,t,n){"use strict";var r=n(22773),o=n(86385),i=n(52280),a=n(7493),s=i("species");e.exports=function(e){var t=r(e),n=o.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},60878:function(e,t,n){var r=n(86385).f,o=n(40454),i=n(52280)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},50466:function(e,t,n){var r=n(53580),o=n(34524),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},49415:function(e,t,n){var r=n(98363),o=n(51621),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},53580:function(e,t,n){var r=n(21178),o=n(49415);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},7270:function(e,t,n){var r=n(83875),o=n(28641),i=n(52280)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},13881:function(e,t,n){var r=n(79044);e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},91140:function(e,t,n){var r=n(98330),o=n(96411),i=function(e){return function(t,n){var i,a,s=String(o(t)),u=r(n),c=s.length;return u<0||u>=c?e?"":void 0:(i=s.charCodeAt(u))<55296||i>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):i:e?s.slice(u,u+2):a-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},26031:function(e,t,n){"use strict";var r=n(98330),o=n(96411);e.exports="".repeat||function(e){var t=String(o(this)),n="",i=r(e);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},68487:function(e,t,n){var r=n(79044),o=n(2569);e.exports=function(e){return r((function(){return!!o[e]()||"​…᠎"!="​…᠎"[e]()||o[e].name!==e}))}},10287:function(e,t,n){var r=n(96411),o="["+n(2569)+"]",i=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$"),s=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(i,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:s(1),end:s(2),trim:s(3)}},84643:function(e,t,n){var r,o,i,a=n(98363),s=n(79044),u=n(79159),c=n(98166),l=n(47055),p=n(92750),d=n(53121),f=a.location,m=a.setImmediate,h=a.clearImmediate,g=a.process,v=a.MessageChannel,b=a.Dispatch,y=0,w={},E="onreadystatechange",S=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},I=function(e){return function(){S(e)}},x=function(e){S(e.data)},O=function(e){a.postMessage(e+"",f.protocol+"//"+f.host)};m&&h||(m=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return w[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(y),y},h=function(e){delete w[e]},"process"==u(g)?r=function(e){g.nextTick(I(e))}:b&&b.now?r=function(e){b.now(I(e))}:v&&!d?(i=(o=new v).port2,o.port1.onmessage=x,r=c(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(O)||"file:"===f.protocol?r=E in p("script")?function(e){l.appendChild(p("script")).onreadystatechange=function(){l.removeChild(this),S(e)}}:function(e){setTimeout(I(e),0)}:(r=O,a.addEventListener("message",x,!1))),e.exports={set:m,clear:h}},41655:function(e,t,n){var r=n(79159);e.exports=function(e){if("number"!=typeof e&&"Number"!=r(e))throw TypeError("Incorrect invocation");return+e}},32565:function(e,t,n){var r=n(98330),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},29580:function(e,t,n){var r=n(78609),o=n(96411);e.exports=function(e){return r(o(e))}},98330:function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},35108:function(e,t,n){var r=n(98330),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},30744:function(e,t,n){var r=n(96411);e.exports=function(e){return Object(r(e))}},21893:function(e,t,n){var r=n(52786);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},57301:function(e,t,n){var r={};r[n(52280)("toStringTag")]="z",e.exports="[object z]"===String(r)},34524:function(e){var t=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+n).toString(36)}},189:function(e,t,n){var r=n(3850);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},20127:function(e,t,n){var r=n(52280);t.f=r},52280:function(e,t,n){var r=n(98363),o=n(53580),i=n(40454),a=n(34524),s=n(3850),u=n(189),c=o("wks"),l=r.Symbol,p=u?l:l&&l.withoutSetter||a;e.exports=function(e){return i(c,e)||(s&&i(l,e)?c[e]=l[e]:c[e]=p("Symbol."+e)),c[e]}},2569:function(e){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},55862:function(e,t,n){"use strict";var r=n(19882),o=n(79044),i=n(71982),a=n(52786),s=n(30744),u=n(35108),c=n(35039),l=n(80150),p=n(82091),d=n(52280),f=n(11197),m=d("isConcatSpreadable"),h=9007199254740991,g="Maximum allowed index exceeded",v=f>=51||!o((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),b=p("concat"),y=function(e){if(!a(e))return!1;var t=e[m];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,forced:!v||!b},{concat:function(e){var t,n,r,o,i,a=s(this),p=l(a,0),d=0;for(t=-1,r=arguments.length;t<r;t++)if(y(i=-1===t?a:arguments[t])){if(d+(o=u(i.length))>h)throw TypeError(g);for(n=0;n<o;n++,d++)n in i&&c(p,d,i[n])}else{if(d>=h)throw TypeError(g);c(p,d++,i)}return p.length=d,p}})},19701:function(e,t,n){"use strict";var r=n(19882),o=n(68671).filter,i=n(82091),a=n(5673),s=i("filter"),u=a("filter");r({target:"Array",proto:!0,forced:!s||!u},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},9115:function(e,t,n){"use strict";var r=n(19882),o=n(68671).findIndex,i=n(6677),a=n(5673),s="findIndex",u=!0,c=a(s);s in[]&&Array(1).findIndex((function(){u=!1})),r({target:"Array",proto:!0,forced:u||!c},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(s)},42900:function(e,t,n){"use strict";var r=n(19882),o=n(68671).find,i=n(6677),a=n(5673),s="find",u=!0,c=a(s);s in[]&&Array(1).find((function(){u=!1})),r({target:"Array",proto:!0,forced:u||!c},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(s)},59789:function(e,t,n){"use strict";var r=n(19882),o=n(92613),i=n(30744),a=n(35108),s=n(98330),u=n(80150);r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=i(this),n=a(t.length),r=u(t,0);return r.length=o(r,t,t,n,0,void 0===e?1:s(e)),r}})},61078:function(e,t,n){"use strict";var r=n(19882),o=n(20379);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},4845:function(e,t,n){var r=n(19882),o=n(84899);r({target:"Array",stat:!0,forced:!n(8662)((function(e){Array.from(e)}))},{from:o})},18183:function(e,t,n){"use strict";var r=n(19882),o=n(37190).includes,i=n(6677);r({target:"Array",proto:!0,forced:!n(5673)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},31807:function(e,t,n){"use strict";var r=n(19882),o=n(37190).indexOf,i=n(54324),a=n(5673),s=[].indexOf,u=!!s&&1/[1].indexOf(1,-0)<0,c=i("indexOf"),l=a("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:u||!c||!l},{indexOf:function(e){return u?s.apply(this,arguments)||0:o(this,e,arguments.length>1?arguments[1]:void 0)}})},54883:function(e,t,n){"use strict";var r=n(29580),o=n(6677),i=n(44818),a=n(20821),s=n(61495),u="Array Iterator",c=a.set,l=a.getterFor(u);e.exports=s(Array,"Array",(function(e,t){c(this,{type:u,target:r(e),index:0,kind:t})}),(function(){var e=l(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},85005:function(e,t,n){"use strict";var r=n(19882),o=n(78609),i=n(29580),a=n(54324),s=[].join,u=o!=Object,c=a("join",",");r({target:"Array",proto:!0,forced:u||!c},{join:function(e){return s.call(i(this),void 0===e?",":e)}})},73214:function(e,t,n){"use strict";var r=n(19882),o=n(68671).map,i=n(82091),a=n(5673),s=i("map"),u=a("map");r({target:"Array",proto:!0,forced:!s||!u},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},77295:function(e,t,n){"use strict";var r=n(19882),o=n(86596).left,i=n(54324),a=n(5673),s=i("reduce"),u=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!s||!u},{reduce:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},18821:function(e,t,n){"use strict";var r=n(19882),o=n(52786),i=n(71982),a=n(32565),s=n(35108),u=n(29580),c=n(35039),l=n(52280),p=n(82091),d=n(5673),f=p("slice"),m=d("slice",{ACCESSORS:!0,0:0,1:2}),h=l("species"),g=[].slice,v=Math.max;r({target:"Array",proto:!0,forced:!f||!m},{slice:function(e,t){var n,r,l,p=u(this),d=s(p.length),f=a(e,d),m=a(void 0===t?d:t,d);if(i(p)&&("function"!=typeof(n=p.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[h])&&(n=void 0):n=void 0,n===Array||void 0===n))return g.call(p,f,m);for(r=new(void 0===n?Array:n)(v(m-f,0)),l=0;f<m;f++,l++)f in p&&c(r,l,p[f]);return r.length=l,r}})},45550:function(e,t,n){"use strict";var r=n(19882),o=n(32565),i=n(98330),a=n(35108),s=n(30744),u=n(80150),c=n(35039),l=n(82091),p=n(5673),d=l("splice"),f=p("splice",{ACCESSORS:!0,0:0,1:2}),m=Math.max,h=Math.min,g=9007199254740991,v="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!d||!f},{splice:function(e,t){var n,r,l,p,d,f,b=s(this),y=a(b.length),w=o(e,y),E=arguments.length;if(0===E?n=r=0:1===E?(n=0,r=y-w):(n=E-2,r=h(m(i(t),0),y-w)),y+n-r>g)throw TypeError(v);for(l=u(b,r),p=0;p<r;p++)(d=w+p)in b&&c(l,p,b[d]);if(l.length=r,n<r){for(p=w;p<y-r;p++)f=p+n,(d=p+r)in b?b[f]=b[d]:delete b[f];for(p=y;p>y-r+n;p--)delete b[p-1]}else if(n>r)for(p=y-r;p>w;p--)f=p+n-1,(d=p+r-1)in b?b[f]=b[d]:delete b[f];for(p=0;p<n;p++)b[p+w]=arguments[p+2];return b.length=y-r+n,l}})},68502:function(e,t,n){n(6677)("flat")},54994:function(e,t,n){var r=n(7493),o=n(86385).f,i=Function.prototype,a=i.toString,s=/^\s*function ([^ (]*)/,u="name";r&&!(u in i)&&o(i,u,{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(e){return""}}})},80174:function(e,t,n){"use strict";var r=n(7493),o=n(98363),i=n(86291),a=n(35974),s=n(40454),u=n(79159),c=n(59250),l=n(21893),p=n(79044),d=n(51569),f=n(87994).f,m=n(66012).f,h=n(86385).f,g=n(10287).trim,v="Number",b=o.Number,y=b.prototype,w=u(d(y))==v,E=function(e){var t,n,r,o,i,a,s,u,c=l(e,!1);if("string"==typeof c&&c.length>2)if(43===(t=(c=g(c)).charCodeAt(0))||45===t){if(88===(n=c.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+c}for(a=(i=c.slice(2)).length,s=0;s<a;s++)if((u=i.charCodeAt(s))<48||u>o)return NaN;return parseInt(i,r)}return+c};if(i(v,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var S,I=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof I&&(w?p((function(){y.valueOf.call(n)})):u(n)!=v)?c(new b(E(t)),n,I):E(t)},x=r?f(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),O=0;x.length>O;O++)s(b,S=x[O])&&!s(I,S)&&h(I,S,m(b,S));I.prototype=y,y.constructor=I,a(o,v,I)}},35727:function(e,t,n){n(19882)({target:"Number",stat:!0},{isInteger:n(68746)})},7089:function(e,t,n){n(19882)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},12798:function(e,t,n){"use strict";var r=n(19882),o=n(98330),i=n(41655),a=n(26031),s=n(79044),u=1..toFixed,c=Math.floor,l=function(e,t,n){return 0===t?n:t%2==1?l(e,t-1,n*e):l(e*e,t/2,n)};r({target:"Number",proto:!0,forced:u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){u.call({})}))},{toFixed:function(e){var t,n,r,s,u=i(this),p=o(e),d=[0,0,0,0,0,0],f="",m="0",h=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*d[n],d[n]=r%1e7,r=c(r/1e7)},g=function(e){for(var t=6,n=0;--t>=0;)n+=d[t],d[t]=c(n/e),n=n%e*1e7},v=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==d[e]){var n=String(d[e]);t=""===t?n:t+a.call("0",7-n.length)+n}return t};if(p<0||p>20)throw RangeError("Incorrect fraction digits");if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(f="-",u=-u),u>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(u*l(2,69,1))-69)<0?u*l(2,-t,1):u/l(2,t,1),n*=4503599627370496,(t=52-t)>0){for(h(0,n),r=p;r>=7;)h(1e7,0),r-=7;for(h(l(10,r,1),0),r=t-1;r>=23;)g(1<<23),r-=23;g(1<<r),h(1,1),g(2),m=v()}else h(0,n),h(1<<-t,0),m=v()+a.call("0",p);return m=p>0?f+((s=m.length)<=p?"0."+a.call("0",p-s)+m:m.slice(0,s-p)+"."+m.slice(s-p)):f+m}})},33130:function(e,t,n){var r=n(19882),o=n(45856);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},80238:function(e,t,n){var r=n(19882),o=n(79044),i=n(29580),a=n(66012).f,s=n(7493),u=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||u,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},12938:function(e,t,n){var r=n(19882),o=n(7493),i=n(31561),a=n(29580),s=n(66012),u=n(35039);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),o=s.f,c=i(r),l={},p=0;c.length>p;)void 0!==(n=o(r,t=c[p++]))&&u(l,t,n);return l}})},56908:function(e,t,n){var r=n(19882),o=n(79044),i=n(30744),a=n(12654),s=n(25115);r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(i(e))}})},80044:function(e,t,n){var r=n(19882),o=n(30744),i=n(60667);r({target:"Object",stat:!0,forced:n(79044)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},10853:function(e,t,n){var r=n(57301),o=n(35974),i=n(36699);r||o(Object.prototype,"toString",i,{unsafe:!0})},19457:function(e,t,n){var r=n(19882),o=n(8765).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},35054:function(e,t,n){"use strict";var r,o,i,a,s=n(19882),u=n(21178),c=n(98363),l=n(22773),p=n(58369),d=n(35974),f=n(7592),m=n(60878),h=n(57323),g=n(52786),v=n(28641),b=n(9519),y=n(79159),w=n(56429),E=n(5166),S=n(8662),I=n(7270),x=n(84643).set,O=n(71800),C=n(11621),D=n(46271),P=n(29269),M=n(74443),k=n(20821),A=n(86291),N=n(52280),j=n(11197),T=N("species"),L="Promise",R=k.get,_=k.set,F=k.getterFor(L),B=p,Z=c.TypeError,H=c.document,U=c.process,W=l("fetch"),G=P.f,z=G,q="process"==y(U),V=!!(H&&H.createEvent&&c.dispatchEvent),J="unhandledrejection",Y=A(L,(function(){if(!(w(B)!==String(B))){if(66===j)return!0;if(!q&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!B.prototype.finally)return!0;if(j>=51&&/native code/.test(B))return!1;var e=B.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[T]=t,!(e.then((function(){}))instanceof t)})),Q=Y||!S((function(e){B.all(e).catch((function(){}))})),X=function(e){var t;return!(!g(e)||"function"!=typeof(t=e.then))&&t},K=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;O((function(){for(var o=t.value,i=1==t.state,a=0;r.length>a;){var s,u,c,l=r[a++],p=i?l.ok:l.fail,d=l.resolve,f=l.reject,m=l.domain;try{p?(i||(2===t.rejection&&ne(e,t),t.rejection=1),!0===p?s=o:(m&&m.enter(),s=p(o),m&&(m.exit(),c=!0)),s===l.promise?f(Z("Promise-chain cycle")):(u=X(s))?u.call(s,d,f):d(s)):f(o)}catch(h){m&&!c&&m.exit(),f(h)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&ee(e,t)}))}},$=function(e,t,n){var r,o;V?((r=H.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},(o=c["on"+e])?o(r):e===J&&D("Unhandled promise rejection",n)},ee=function(e,t){x.call(c,(function(){var n,r=t.value;if(te(t)&&(n=M((function(){q?U.emit("unhandledRejection",r,e):$(J,e,r)})),t.rejection=q||te(t)?2:1,n.error))throw n.value}))},te=function(e){return 1!==e.rejection&&!e.parent},ne=function(e,t){x.call(c,(function(){q?U.emit("rejectionHandled",e):$("rejectionhandled",e,t.value)}))},re=function(e,t,n,r){return function(o){e(t,n,o,r)}},oe=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,K(e,t,!0))},ie=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw Z("Promise can't be resolved itself");var o=X(n);o?O((function(){var r={done:!1};try{o.call(n,re(ie,e,r,t),re(oe,e,r,t))}catch(i){oe(e,r,i,t)}})):(t.value=n,t.state=1,K(e,t,!1))}catch(i){oe(e,{done:!1},i,t)}}};Y&&(B=function(e){b(this,B,L),v(e),r.call(this);var t=R(this);try{e(re(ie,this,t),re(oe,this,t))}catch(n){oe(this,t,n)}},(r=function(e){_(this,{type:L,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=f(B.prototype,{then:function(e,t){var n=F(this),r=G(I(this,B));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=q?U.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&K(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r,t=R(e);this.promise=e,this.resolve=re(ie,e,t),this.reject=re(oe,e,t)},P.f=G=function(e){return e===B||e===i?new o(e):z(e)},u||"function"!=typeof p||(a=p.prototype.then,d(p.prototype,"then",(function(e,t){var n=this;return new B((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof W&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return C(B,W.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:Y},{Promise:B}),m(B,L,!1,!0),h(L),i=l(L),s({target:L,stat:!0,forced:Y},{reject:function(e){var t=G(this);return t.reject.call(void 0,e),t.promise}}),s({target:L,stat:!0,forced:u||Y},{resolve:function(e){return C(u&&this===i?B:this,e)}}),s({target:L,stat:!0,forced:Q},{all:function(e){var t=this,n=G(t),r=n.resolve,o=n.reject,i=M((function(){var n=v(t.resolve),i=[],a=0,s=1;E(e,(function(e){var u=a++,c=!1;i.push(void 0),s++,n.call(t,e).then((function(e){c||(c=!0,i[u]=e,--s||r(i))}),o)})),--s||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=G(t),r=n.reject,o=M((function(){var o=v(t.resolve);E(e,(function(e){o.call(t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},54130:function(e,t,n){var r=n(19882),o=n(22773),i=n(28641),a=n(83875),s=n(52786),u=n(51569),c=n(52381),l=n(79044),p=o("Reflect","construct"),d=l((function(){function e(){}return!(p((function(){}),[],e)instanceof e)})),f=!l((function(){p((function(){}))})),m=d||f;r({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(e,t){i(e),a(t);var n=arguments.length<3?e:i(arguments[2]);if(f&&!d)return p(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(c.apply(e,r))}var o=n.prototype,l=u(s(o)?o:Object.prototype),m=Function.apply.call(e,l,t);return s(m)?m:l}})},72975:function(e,t,n){var r=n(7493),o=n(98363),i=n(86291),a=n(59250),s=n(86385).f,u=n(87994).f,c=n(42622),l=n(58083),p=n(97047),d=n(35974),f=n(79044),m=n(20821).set,h=n(57323),g=n(52280)("match"),v=o.RegExp,b=v.prototype,y=/a/g,w=/a/g,E=new v(y)!==y,S=p.UNSUPPORTED_Y;if(r&&i("RegExp",!E||S||f((function(){return w[g]=!1,v(y)!=y||v(w)==w||"/a/i"!=v(y,"i")})))){for(var I=function(e,t){var n,r=this instanceof I,o=c(e),i=void 0===t;if(!r&&o&&e.constructor===I&&i)return e;E?o&&!i&&(e=e.source):e instanceof I&&(i&&(t=l.call(e)),e=e.source),S&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var s=a(E?new v(e,t):v(e,t),r?this:b,I);return S&&n&&m(s,{sticky:n}),s},x=function(e){e in I||s(I,e,{configurable:!0,get:function(){return v[e]},set:function(t){v[e]=t}})},O=u(v),C=0;O.length>C;)x(O[C++]);b.constructor=I,I.prototype=b,d(o,"RegExp",I)}h("RegExp")},39275:function(e,t,n){"use strict";var r=n(19882),o=n(99749);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},33290:function(e,t,n){"use strict";var r=n(35974),o=n(83875),i=n(79044),a=n(58083),s="toString",u=RegExp.prototype,c=u.toString,l=i((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),p=c.name!=s;(l||p)&&r(RegExp.prototype,s,(function(){var e=o(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in u)?a.call(e):n)}),{unsafe:!0})},91967:function(e,t,n){"use strict";var r=n(19882),o=n(75304);r({target:"String",proto:!0,forced:n(13881)("bold")},{bold:function(){return o(this,"b","","")}})},19985:function(e,t,n){"use strict";var r=n(19882),o=n(21049),i=n(96411);r({target:"String",proto:!0,forced:!n(15454)("includes")},{includes:function(e){return!!~String(i(this)).indexOf(o(e),arguments.length>1?arguments[1]:void 0)}})},45007:function(e,t,n){"use strict";var r=n(91140).charAt,o=n(20821),i=n(61495),a="String Iterator",s=o.set,u=o.getterFor(a);i(String,"String",(function(e){s(this,{type:a,string:String(e),index:0})}),(function(){var e,t=u(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},86125:function(e,t,n){"use strict";var r=n(19882),o=n(75304);r({target:"String",proto:!0,forced:n(13881)("link")},{link:function(e){return o(this,"a","href",e)}})},22321:function(e,t,n){"use strict";var r=n(81492),o=n(83875),i=n(30744),a=n(35108),s=n(98330),u=n(96411),c=n(13350),l=n(94088),p=Math.max,d=Math.min,f=Math.floor,m=/\$([$&'`]|\d\d?|<[^>]*>)/g,h=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(e,t,n,r){var g=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,v=r.REPLACE_KEEPS_$0,b=g?"$":"$0";return[function(n,r){var o=u(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!g&&v||"string"==typeof r&&-1===r.indexOf(b)){var i=n(t,e,this,r);if(i.done)return i.value}var u=o(e),f=String(this),m="function"==typeof r;m||(r=String(r));var h=u.global;if(h){var w=u.unicode;u.lastIndex=0}for(var E=[];;){var S=l(u,f);if(null===S)break;if(E.push(S),!h)break;""===String(S[0])&&(u.lastIndex=c(f,a(u.lastIndex),w))}for(var I,x="",O=0,C=0;C<E.length;C++){S=E[C];for(var D=String(S[0]),P=p(d(s(S.index),f.length),0),M=[],k=1;k<S.length;k++)M.push(void 0===(I=S[k])?I:String(I));var A=S.groups;if(m){var N=[D].concat(M,P,f);void 0!==A&&N.push(A);var j=String(r.apply(void 0,N))}else j=y(D,f,P,M,A,r);P>=O&&(x+=f.slice(O,P)+j,O=P+D.length)}return x+f.slice(O)}];function y(e,n,r,o,a,s){var u=r+e.length,c=o.length,l=h;return void 0!==a&&(a=i(a),l=m),t.call(s,l,(function(t,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(u);case"<":s=a[i.slice(1,-1)];break;default:var l=+i;if(0===l)return t;if(l>c){var p=f(l/10);return 0===p?t:p<=c?void 0===o[p-1]?i.charAt(1):o[p-1]+i.charAt(1):t}s=o[l-1]}return void 0===s?"":s}))}}))},23528:function(e,t,n){"use strict";var r=n(81492),o=n(83875),i=n(96411),a=n(10420),s=n(94088);r("search",1,(function(e,t,n){return[function(t){var n=i(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=o(e),u=String(this),c=i.lastIndex;a(c,0)||(i.lastIndex=0);var l=s(i,u);return a(i.lastIndex,c)||(i.lastIndex=c),null===l?-1:l.index}]}))},67838:function(e,t,n){"use strict";var r=n(81492),o=n(42622),i=n(83875),a=n(96411),s=n(7270),u=n(13350),c=n(35108),l=n(94088),p=n(99749),d=n(79044),f=[].push,m=Math.min,h=4294967295,g=!d((function(){return!RegExp(h,"y")}));r("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(a(this)),i=void 0===n?h:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!o(e))return t.call(r,e,i);for(var s,u,c,l=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,g=new RegExp(e.source,d+"g");(s=p.call(g,r))&&!((u=g.lastIndex)>m&&(l.push(r.slice(m,s.index)),s.length>1&&s.index<r.length&&f.apply(l,s.slice(1)),c=s[0].length,m=u,l.length>=i));)g.lastIndex===s.index&&g.lastIndex++;return m===r.length?!c&&g.test("")||l.push(""):l.push(r.slice(m)),l.length>i?l.slice(0,i):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=a(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,o,n):r.call(String(o),t,n)},function(e,o){var a=n(r,e,this,o,r!==t);if(a.done)return a.value;var p=i(e),d=String(this),f=s(p,RegExp),v=p.unicode,b=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(g?"y":"g"),y=new f(g?p:"^(?:"+p.source+")",b),w=void 0===o?h:o>>>0;if(0===w)return[];if(0===d.length)return null===l(y,d)?[d]:[];for(var E=0,S=0,I=[];S<d.length;){y.lastIndex=g?S:0;var x,O=l(y,g?d:d.slice(S));if(null===O||(x=m(c(y.lastIndex+(g?0:S)),d.length))===E)S=u(d,S,v);else{if(I.push(d.slice(E,S)),I.length===w)return I;for(var C=1;C<=O.length-1;C++)if(I.push(O[C]),I.length===w)return I;S=E=x}}return I.push(d.slice(E)),I}]}),!g)},29897:function(e,t,n){"use strict";var r=n(19882),o=n(10287).trim;r({target:"String",proto:!0,forced:n(68487)("trim")},{trim:function(){return o(this)}})},86632:function(e,t,n){"use strict";var r=n(19882),o=n(7493),i=n(98363),a=n(40454),s=n(52786),u=n(86385).f,c=n(73870),l=i.Symbol;if(o&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var p={},d=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof d?new l(e):void 0===e?l():l(e);return""===e&&(p[t]=!0),t};c(d,l);var f=d.prototype=l.prototype;f.constructor=d;var m=f.toString,h="Symbol(test)"==String(l("test")),g=/^Symbol\((.*)\)[^)]+$/;u(f,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=m.call(e);if(a(p,e))return"";var n=h?t.slice(7,-1):t.replace(g,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:d})}},61928:function(e,t,n){n(68308)("iterator")},26364:function(e,t,n){"use strict";var r=n(19882),o=n(98363),i=n(22773),a=n(21178),s=n(7493),u=n(3850),c=n(189),l=n(79044),p=n(40454),d=n(71982),f=n(52786),m=n(83875),h=n(30744),g=n(29580),v=n(21893),b=n(69199),y=n(51569),w=n(60667),E=n(87994),S=n(74938),I=n(89612),x=n(66012),O=n(86385),C=n(81513),D=n(45899),P=n(35974),M=n(53580),k=n(50466),A=n(47505),N=n(34524),j=n(52280),T=n(20127),L=n(68308),R=n(60878),_=n(20821),F=n(68671).forEach,B=k("hidden"),Z="Symbol",H=j("toPrimitive"),U=_.set,W=_.getterFor(Z),G=Object.prototype,z=o.Symbol,q=i("JSON","stringify"),V=x.f,J=O.f,Y=S.f,Q=C.f,X=M("symbols"),K=M("op-symbols"),$=M("string-to-symbol-registry"),ee=M("symbol-to-string-registry"),te=M("wks"),ne=o.QObject,re=!ne||!ne.prototype||!ne.prototype.findChild,oe=s&&l((function(){return 7!=y(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=V(G,t);r&&delete G[t],J(e,t,n),r&&e!==G&&J(G,t,r)}:J,ie=function(e,t){var n=X[e]=y(z.prototype);return U(n,{type:Z,tag:e,description:t}),s||(n.description=t),n},ae=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof z},se=function(e,t,n){e===G&&se(K,t,n),m(e);var r=v(t,!0);return m(n),p(X,r)?(n.enumerable?(p(e,B)&&e[B][r]&&(e[B][r]=!1),n=y(n,{enumerable:b(0,!1)})):(p(e,B)||J(e,B,b(1,{})),e[B][r]=!0),oe(e,r,n)):J(e,r,n)},ue=function(e,t){m(e);var n=g(t),r=w(n).concat(de(n));return F(r,(function(t){s&&!ce.call(n,t)||se(e,t,n[t])})),e},ce=function(e){var t=v(e,!0),n=Q.call(this,t);return!(this===G&&p(X,t)&&!p(K,t))&&(!(n||!p(this,t)||!p(X,t)||p(this,B)&&this[B][t])||n)},le=function(e,t){var n=g(e),r=v(t,!0);if(n!==G||!p(X,r)||p(K,r)){var o=V(n,r);return!o||!p(X,r)||p(n,B)&&n[B][r]||(o.enumerable=!0),o}},pe=function(e){var t=Y(g(e)),n=[];return F(t,(function(e){p(X,e)||p(A,e)||n.push(e)})),n},de=function(e){var t=e===G,n=Y(t?K:g(e)),r=[];return F(n,(function(e){!p(X,e)||t&&!p(G,e)||r.push(X[e])})),r};(u||(P((z=function(){if(this instanceof z)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=N(e),n=function(e){this===G&&n.call(K,e),p(this,B)&&p(this[B],t)&&(this[B][t]=!1),oe(this,t,b(1,e))};return s&&re&&oe(G,t,{configurable:!0,set:n}),ie(t,e)}).prototype,"toString",(function(){return W(this).tag})),P(z,"withoutSetter",(function(e){return ie(N(e),e)})),C.f=ce,O.f=se,x.f=le,E.f=S.f=pe,I.f=de,T.f=function(e){return ie(j(e),e)},s&&(J(z.prototype,"description",{configurable:!0,get:function(){return W(this).description}}),a||P(G,"propertyIsEnumerable",ce,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:z}),F(w(te),(function(e){L(e)})),r({target:Z,stat:!0,forced:!u},{for:function(e){var t=String(e);if(p($,t))return $[t];var n=z(t);return $[t]=n,ee[n]=t,n},keyFor:function(e){if(!ae(e))throw TypeError(e+" is not a symbol");if(p(ee,e))return ee[e]},useSetter:function(){re=!0},useSimple:function(){re=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:function(e,t){return void 0===t?y(e):ue(y(e),t)},defineProperty:se,defineProperties:ue,getOwnPropertyDescriptor:le}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:pe,getOwnPropertySymbols:de}),r({target:"Object",stat:!0,forced:l((function(){I.f(1)}))},{getOwnPropertySymbols:function(e){return I.f(h(e))}}),q)&&r({target:"JSON",stat:!0,forced:!u||l((function(){var e=z();return"[null]"!=q([e])||"{}"!=q({a:e})||"{}"!=q(Object(e))}))},{stringify:function(e,t,n){for(var r,o=[e],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=t,(f(t)||void 0!==e)&&!ae(e))return d(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!ae(t))return t}),o[1]=t,q.apply(null,o)}});z.prototype[H]||D(z.prototype,H,z.prototype.valueOf),R(z,Z),A[B]=!0},6208:function(e,t,n){var r=n(98363),o=n(12848),i=n(20379),a=n(45899);for(var s in o){var u=r[s],c=u&&u.prototype;if(c&&c.forEach!==i)try{a(c,"forEach",i)}catch(l){c.forEach=i}}},68995:function(e,t,n){var r=n(98363),o=n(12848),i=n(54883),a=n(45899),s=n(52280),u=s("iterator"),c=s("toStringTag"),l=i.values;for(var p in o){var d=r[p],f=d&&d.prototype;if(f){if(f[u]!==l)try{a(f,u,l)}catch(h){f[u]=l}if(f[c]||a(f,c,p),o[p])for(var m in i)if(f[m]!==i[m])try{a(f,m,i[m])}catch(h){f[m]=i[m]}}}},87191:function(e,t,n){"use strict";n(19882)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},97759:function(e,t,n){"use strict";n.d(t,{Oq:function(){return d},dO:function(){return u},jn:function(){return i},iz:function(){return f},Dz:function(){return o},cv:function(){return l},oc:function(){return p}});var r=n(27222),o=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},i=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},a=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},s={top:0,right:0,bottom:0,left:0},u=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?s:n,u=e.border,c=void 0===u?s:u,l=e.padding,p=void 0===l?s:l,d=o(i(t,r)),f=o(a(t,c)),m=o(a(f,p));return{marginBox:d,borderBox:o(t),paddingBox:f,contentBox:m,margin:r,border:c,padding:p}},c=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&(0,r.Z)(!1),n},l=function(e,t){var n,r,o=e.borderBox,i=e.border,a=e.margin,s=e.padding,c=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return u({borderBox:c,border:i,margin:a,padding:s})},p=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),l(e,t)},d=function(e,t){var n={top:c(t.marginTop),right:c(t.marginRight),bottom:c(t.marginBottom),left:c(t.marginLeft)},r={top:c(t.paddingTop),right:c(t.paddingRight),bottom:c(t.paddingBottom),left:c(t.paddingLeft)},o={top:c(t.borderTopWidth),right:c(t.borderRightWidth),bottom:c(t.borderBottomWidth),left:c(t.borderLeftWidth)};return u({borderBox:e,margin:n,padding:r,border:o})},f=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return d(t,n)}},27222:function(e,t){"use strict";var n="Invariant failed";t.Z=function(e,t){if(!e)throw new Error(n)}},19141:function(e){"use strict";e.exports=function(e){if(e=String(e||""),r.test(e))return"rtl";if(o.test(e))return"ltr";return"neutral"};var t="֑-߿יִ-﷽ﹰ-ﻼ",n="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-",r=new RegExp("^[^"+n+"]*["+t+"]"),o=new RegExp("^[^"+t+"]*["+n+"]")},43613:function(e){"use strict";
26
 
27
  See the Apache Version 2.0 License for specific language governing permissions
28
  and limitations under the License.
29
+ ***************************************************************************** */function on(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}var an={useProxies:"undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,autoFreeze:"undefined"==typeof process&&"verifyMinified"===function(){}.name,onAssign:null,onDelete:null,onCopy:null},sn=new(function(){function e(e){var t=this;this.useProxies=!1,this.autoFreeze=!1,gt(an,(function(n,r){var o,i;t[n]=null!=(i=null===(o=e)||void 0===o?void 0:o[n])?i:r})),this.setUseProxies(this.useProxies),this.produce=this.produce.bind(this),this.produceWithPatches=this.produceWithPatches.bind(this)}return e.prototype.produce=function(e,t,n){var r,o=this;if("function"==typeof e&&"function"!=typeof t){var i=t;t=e;var a=this;return function(e){var n=arguments,r=this;void 0===e&&(e=i);for(var o=[],s=1;s<arguments.length;s++)o[s-1]=n[s];return a.produce(e,(function(e){return t.call.apply(t,on([r,e],o))}))}}if("function"!=typeof t)throw new Error("The first or second argument to `produce` must be a function");if(void 0!==n&&"function"!=typeof n)throw new Error("The third argument to `produce` must be a function or undefined");if(mt(e)){var s=Pt.enter(this),u=this.createProxy(e,void 0),c=!0;try{r=t(u),c=!1}finally{c?s.revoke():s.leave()}return"undefined"!=typeof Promise&&r instanceof Promise?r.then((function(e){return s.usePatches(n),kt(o,e,s)}),(function(e){throw s.revoke(),e})):(s.usePatches(n),kt(this,r,s))}if((r=t(e))!==st)return void 0===r&&(r=e),Tt(this,r,!0),r},e.prototype.produceWithPatches=function(e,t,n){var r,o,i=this;return"function"==typeof e?function(t){for(var n=arguments,r=[],o=1;o<arguments.length;o++)r[o-1]=n[o];return i.produceWithPatches(t,(function(t){return e.apply(void 0,on([t],r))}))}:(n&&Dt(),[this.produce(e,t,(function(e,t){r=e,o=t})),r,o])},e.prototype.createDraft=function(e){if(!mt(e))throw new Error("First argument to `createDraft` must be a plain object, an array, or an immerable object");var t=Pt.enter(this),n=this.createProxy(e,void 0);return n[ct].isManual=!0,t.leave(),n},e.prototype.finishDraft=function(e,t){var n=e&&e[ct];if(!n||!n.isManual)throw new Error("First argument to `finishDraft` must be a draft returned by `createDraft`");if(n.finalized)throw new Error("The given draft is already finalized");var r=n.scope;return r.usePatches(t),kt(this,void 0,r)},e.prototype.setAutoFreeze=function(e){this.autoFreeze=e},e.prototype.setUseProxies=function(e){this.useProxies=e},e.prototype.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}return ft(e)?nn(e,t):this.produce(e,(function(e){return nn(e,t.slice(n+1))}))},e.prototype.createProxy=function(e,t){var n=Et(e)?function(e,t){return new Kt(e,t)}(e,t):St(e)?function(e,t){return new en(e,t)}(e,t):this.useProxies?function(e,t){var n=Array.isArray(e),r={type:n?rt.ProxyArray:rt.ProxyObject,scope:t?t.scope:Pt.current,modified:!1,finalized:!1,assigned:{},parent:t,base:e,draft:null,drafts:{},copy:null,revoke:null,isManual:!1},o=r,i=Lt;n&&(o=[r],i=Rt);var a=Proxy.revocable(o,i),s=a.revoke,u=a.proxy;return r.draft=u,r.revoke=s,u}(e,t):Ht(e,t);return(t?t.scope:Pt.current).drafts.push(n),n},e.prototype.willFinalize=function(e,t,n){this.useProxies||Zt(e,t,n)},e.prototype.markChanged=function(e){this.useProxies?Ft(e):Wt(e)},e}()),un=sn.produce,cn=(sn.produceWithPatches.bind(sn),sn.setAutoFreeze.bind(sn),sn.setUseProxies.bind(sn),sn.applyPatches.bind(sn),sn.createDraft.bind(sn)),ln=sn.finishDraft.bind(sn);var pn=n(43830);function dn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var mn=new WeakMap,hn=new WeakMap,gn=new WeakMap,vn=new WeakMap,bn=new WeakMap,yn=new WeakMap,wn=/\s/,En=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,Sn=/['\u2018\u2019]/,In=e=>{for(var t=0,n=null,r=e.charCodeAt(0);r;)if(On(r)){var o=Cn(r,e,t);if("SURR"===n||"BMP"===n)break;t+=2,n=o?"MOD":"SURR",r=e.charCodeAt(t)}else if(8205!==r)if(Pn(r)){if(n&&"ZWJ"!==n&&"VAR"!==n)break;t+=1,n="BMP",r=e.charCodeAt(t)}else{if(!Dn(r)){if("MOD"===n){t+=1;break}break}if(n&&"ZWJ"!==n)break;t+=1,n="VAR",r=e.charCodeAt(t)}else t+=1,n="ZWJ",r=e.charCodeAt(t);return t||1},xn=(e,t)=>{if(wn.test(e))return!1;if(Sn.test(e)){var n=t.charAt(0),r=In(n);n=t.slice(0,r);var o=t.slice(r);if(xn(n,o))return!0}return!En.test(e)},On=e=>55296<=e&&e<=57343,Cn=(e,t,n)=>{if(55356===e){var r=t.charCodeAt(n+1);return r<=57343&&r>=57339}return!1},Dn=e=>e<=65039&&e>=65024,Pn=e=>10084===e||9794===e||9792===e||9760===e||9877===e||9992===e||9711===e;function Mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mn(Object(n),!0).forEach((function(t){dn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var An={above(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:i}=t;if(o){var a=An.path(e,o),s="lowest"===r;for(var[u,c]of An.levels(e,{at:a,voids:n,match:i,reverse:s}))if(!Jn.isText(u)&&!Fn.equals(a,c))return[u,c]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:An.point(e,t,{edge:"end"}),focus:An.end(e,[])},{distance:i=1}=r,a=0;for(var s of An.positions(e,kn({},r,{at:o}))){if(a>i)break;0!==a&&(n=s),a++}return n},before(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:An.start(e,[]),focus:An.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var s of An.positions(e,kn({},r,{at:o,reverse:!0}))){if(a>i)break;0!==a&&(n=s),a++}return n},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){e.deleteFragment()},edges:(e,t)=>[An.start(e,t),An.end(e,t)],end:(e,t)=>An.point(e,t,{edge:"end"}),first(e,t){var n=An.path(e,t,{edge:"start"});return An.node(e,n)},fragment(e,t){var n=An.range(e,t);return Tn.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>An.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>Jn.isText(t)||An.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>Jn.isText(e))),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>Nn.isElement(t)&&!e.isInline(t),isEditor:e=>tt(e)&&"function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isInline&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&(null===e.marks||tt(e.marks))&&(null===e.selection||Gn.isRange(e.selection))&&Tn.isNodeList(e.children)&&_n.isOperationList(e.operations),isEnd(e,t,n){var r=An.end(e,n);return Hn.equals(t,r)},isEdge:(e,t,n)=>An.isStart(e,t,n)||An.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&Jn.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>Nn.isElement(t)&&e.isInline(t),isNormalizing(e){var t=gn.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=An.start(e,n);return Hn.equals(t,r)},isVoid:(e,t)=>Nn.isElement(t)&&e.isVoid(t),last(e,t){var n=An.path(e,t,{edge:"end"});return An.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=An.path(e,t,n);return[Tn.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(null==i&&(i=()=>!0),n){var a=[],s=An.path(e,n);for(var[u,c]of Tn.levels(e,s))if(i(u)&&(a.push([u,c]),!o&&An.isVoid(e,u)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(Gn.isExpanded(n)){var[r]=An.nodes(e,{match:Jn.isText});if(r){var[o]=r;return fn(o,["text"])}return{}}var{anchor:i}=n,{path:a}=i,[s]=An.leaf(e,a);if(0===i.offset){var u=An.previous(e,{at:a,match:Jn.isText}),c=An.above(e,{match:t=>An.isBlock(e,t)});if(u&&c){var[l,p]=u,[,d]=c;Fn.isAncestor(d,p)&&(s=l)}}return fn(s,["text"])},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var[,a]=An.last(e,i),[,s]=An.last(e,[]),u=[a,s];if(Fn.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(Fn.isPath(i)){var[c]=An.parent(e,i);o=e=>c.children.includes(e)}else o=()=>!0;var[,l]=An.nodes(e,{at:u,match:o,mode:n,voids:r});return l}},node(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=An.path(e,t,n);return[Tn.get(e,r),r]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:s}=t;if(s||(s=()=>!0),n){var u,c;if(jn.isSpan(n))u=n[0],c=n[1];else{var l=An.path(e,n,{edge:"start"}),p=An.path(e,n,{edge:"end"});u=i?p:l,c=i?l:p}var d,f=Tn.nodes(e,{reverse:i,from:u,to:c,pass:t=>{var[n]=t;return!a&&An.isVoid(e,n)}}),m=[];for(var[h,g]of f){var v=d&&0===Fn.compare(g,d[1]);if("highest"!==r||!v)if(s(h))if("lowest"===r&&v)d=[h,g];else{var b="lowest"===r?d:[h,g];b&&(o?m.push(b):yield b),d=[h,g]}else if(o&&!v&&Jn.isText(h))return}"lowest"===r&&d&&(o?m.push(d):yield d),o&&(yield*m)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1}=t,r=e=>mn.get(e)||[];if(An.isNormalizing(e)){if(n){var o=Array.from(Tn.nodes(e),(e=>{var[,t]=e;return t}));mn.set(e,o)}0!==r(e).length&&An.withoutNormalizing(e,(()=>{for(var t=42*r(e).length,n=0;0!==r(e).length;){if(n>t)throw new Error("\n Could not completely normalize the editor after ".concat(t," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var o=r(e).pop(),i=An.node(e,o);e.normalizeNode(i),n++}}))}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=An.path(e,t,n),o=Fn.parent(r);return An.node(e,o)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(Fn.isPath(t))if("start"===o){var[,i]=Tn.first(e,t);t=i}else if("end"===o){var[,a]=Tn.last(e,t);t=a}return Gn.isRange(t)&&(t="start"===o?Gn.start(t):"end"===o?Gn.end(t):Fn.common(t.anchor.path,t.focus.path)),Hn.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},pathRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return An.pathRefs(e).delete(o),o.current=null,t}};return An.pathRefs(e).add(o),o},pathRefs(e){var t=vn.get(e);return t||(t=new Set,vn.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(Fn.isPath(t)){var o;if("end"===r){var[,i]=Tn.last(e,t);o=i}else{var[,a]=Tn.first(e,t);o=a}var s=Tn.get(e,o);if(!Jn.isText(s))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:"end"===r?s.text.length:0}}if(Gn.isRange(t)){var[u,c]=Gn.edges(t);return"start"===r?u:c}return t},pointRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return An.pointRefs(e).delete(o),o.current=null,t}};return An.pointRefs(e).add(o),o},pointRefs(e){var t=bn.get(e);return t||(t=new Set,bn.set(e,t)),t},*positions(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1}=t;if(n){var i=An.range(e,n),[a,s]=Gn.edges(i),u=o?s:a,c="",l=0,p=0,d=null,f=!1,m=()=>{null==d&&(d="character"===r?In(c):"word"===r?(e=>{for(var t,n=0,r=0,o=!1;t=e.charAt(r);){var i=In(t);t=e.slice(r,r+i);var a=e.slice(r+i);if(xn(t,a))o=!0,n+=i;else{if(o)break;n+=i}r+=i}return n})(c):"line"===r||"block"===r?c.length:1,c=c.slice(d)),p=o?p-d:p+d,d=(l-=d)>=0?null:0-l};for(var[h,g]of An.nodes(e,{at:n,reverse:o})){if(Nn.isElement(h)){if(e.isVoid(h)){yield An.start(e,g);continue}if(e.isInline(h))continue;if(An.hasInlines(e,h)){var v=Fn.isAncestor(g,s.path)?s:An.end(e,g),b=Fn.isAncestor(g,a.path)?a:An.start(e,g),y=An.string(e,{anchor:b,focus:v});c=o?(0,pn.reverse)(y):y,f=!0}}if(Jn.isText(h)){var w=Fn.equals(g,u.path);for(l=h.text.length,p=o?l:0,w&&(l=o?u.offset:l-u.offset,p=u.offset),(w||f||"offset"===r)&&(yield{path:g,offset:p});""!==c&&(m(),l>=0);)yield{path:g,offset:p};f=!1}}}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var[,a]=An.first(e,i),[,s]=An.first(e,[]),u=[a,s];if(Fn.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(Fn.isPath(i)){var[c]=An.parent(e,i);o=e=>c.children.includes(e)}else o=()=>!0;var[,l]=An.nodes(e,{reverse:!0,at:u,match:o,mode:n,voids:r});return l}},range:(e,t,n)=>Gn.isRange(t)&&!n?t:{anchor:An.start(e,t),focus:An.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return An.rangeRefs(e).delete(o),o.current=null,t}};return An.rangeRefs(e).add(o),o},rangeRefs(e){var t=yn.get(e);return t||(t=new Set,yn.set(e,t)),t},removeMark(e,t){e.removeMark(t)},start:(e,t)=>An.point(e,t,{edge:"start"}),string(e,t){var n=An.range(e,t),[r,o]=Gn.edges(n),i="";for(var[a,s]of An.nodes(e,{at:n,match:Jn.isText})){var u=a.text;Fn.equals(s,o.path)&&(u=u.slice(0,o.offset)),Fn.equals(s,r.path)&&(u=u.slice(r.offset)),i+=u}return i},transform(e,t){e.children=cn(e.children);var n=e.selection&&cn(e.selection);switch(t.type){case"insert_node":var{path:r,node:o}=t,i=Tn.parent(e,r),a=r[r.length-1];if(i.children.splice(a,0,o),n)for(var[s,u]of Gn.points(n))n[u]=Hn.transform(s,t);break;case"insert_text":var{path:c,offset:l,text:p}=t,d=Tn.leaf(e,c),f=d.text.slice(0,l),m=d.text.slice(l);if(d.text=f+p+m,n)for(var[h,g]of Gn.points(n))n[g]=Hn.transform(h,t);break;case"merge_node":var{path:v}=t,b=Tn.get(e,v),y=Fn.previous(v),w=Tn.get(e,y),E=Tn.parent(e,v),S=v[v.length-1];if(Jn.isText(b)&&Jn.isText(w))w.text+=b.text;else{if(Jn.isText(b)||Jn.isText(w))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(v,"] to nodes of different interaces: ").concat(b," ").concat(w));w.children.push(...b.children)}if(E.children.splice(S,1),n)for(var[I,x]of Gn.points(n))n[x]=Hn.transform(I,t);break;case"move_node":var{path:O,newPath:C}=t;if(Fn.isAncestor(O,C))throw new Error("Cannot move a path [".concat(O,"] to new path [").concat(C,"] because the destination is inside itself."));var D=Tn.get(e,O),P=Tn.parent(e,O),M=O[O.length-1];P.children.splice(M,1);var k=Fn.transform(O,t),A=Tn.get(e,Fn.parent(k)),N=k[k.length-1];if(A.children.splice(N,0,D),n)for(var[j,T]of Gn.points(n))n[T]=Hn.transform(j,t);break;case"remove_node":var{path:L}=t,R=L[L.length-1];if(Tn.parent(e,L).children.splice(R,1),n)for(var[_,F]of Gn.points(n)){var B=Hn.transform(_,t);if(null!=n&&null!=B)n[F]=B;else{var Z=void 0,H=void 0;for(var[U,W]of Tn.texts(e)){if(-1!==Fn.compare(W,L)){H=[U,W];break}Z=[U,W]}Z?(_.path=Z[1],_.offset=Z[0].text.length):H?(_.path=H[1],_.offset=0):n=null}}break;case"remove_text":var{path:G,offset:z,text:q}=t,V=Tn.leaf(e,G),J=V.text.slice(0,z),Y=V.text.slice(z+q.length);if(V.text=J+Y,n)for(var[Q,X]of Gn.points(n))n[X]=Hn.transform(Q,t);break;case"set_node":var{path:K,newProperties:$}=t;if(0===K.length)throw new Error("Cannot set properties on the root node!");var ee=Tn.get(e,K);for(var te in $){if("children"===te||"text"===te)throw new Error('Cannot set the "'.concat(te,'" property of nodes!'));var ne=$[te];null==ne?delete ee[te]:ee[te]=ne}break;case"set_selection":var{newProperties:re}=t;if(null==re)n=re;else if(null==n){if(!Gn.isRange(re))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(re)," when there is no current selection."));n=re}else Object.assign(n,re);break;case"split_node":var{path:oe,position:ie,properties:ae}=t;if(0===oe.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(oe,"] because the root node cannot be split."));var se,ue=Tn.get(e,oe),ce=Tn.parent(e,oe),le=oe[oe.length-1];if(Jn.isText(ue)){var pe=ue.text.slice(0,ie),de=ue.text.slice(ie);ue.text=pe,se=kn({},ue,{},ae,{text:de})}else{var fe=ue.children.slice(0,ie),me=ue.children.slice(ie);ue.children=fe,se=kn({},ue,{},ae,{children:me})}if(ce.children.splice(le+1,0,se),n)for(var[he,ge]of Gn.points(n))n[ge]=Hn.transform(he,t)}e.children=ln(e.children),e.selection=n?ft(n)?ln(n):n:null},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[o,i]=Gn.edges(t);if(0!==o.offset||0!==i.offset||Gn.isCollapsed(t))return t;var a=An.above(e,{at:i,match:t=>An.isBlock(e,t)}),s=a?a[1]:[],u={anchor:An.start(e,[]),focus:i},c=!0;for(var[l,p]of An.nodes(e,{at:u,match:Jn.isText,reverse:!0,voids:r}))if(c)c=!1;else if(""!==l.text||Fn.isBefore(p,s)){i={path:p,offset:l.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return An.above(e,kn({},t,{match:t=>An.isVoid(e,t)}))},withoutNormalizing(e,t){var n=An.isNormalizing(e);gn.set(e,!1),t(),gn.set(e,n),An.normalize(e)}},Nn={isElement:e=>tt(e)&&Tn.isNodeList(e.children)&&!An.isEditor(e),isElementList:e=>Array.isArray(e)&&(0===e.length||Nn.isElement(e[0])),matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},jn={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(Fn.isPath)},Tn={ancestor(e,t){var n=Tn.get(e,t);if(Jn.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of Fn.ancestors(t,n)){var o=[Tn.ancestor(e,r),r];yield o}},child(e,t){if(Jn.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=n,o=Tn.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var s=Tn.child(o,a),u=t.concat(a);yield[s,u],a=r?a-1:a+1}},common(e,t,n){var r=Fn.common(t,n);return[Tn.get(e,r),r]},descendant(e,t){var n=Tn.get(e,t);if(An.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Tn.nodes(e,t))0!==r.length&&(yield[n,r])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Tn.nodes(e,t))Nn.isElement(n)&&(yield[n,r])},first(e,t){for(var n=t.slice(),r=Tn.get(e,n);r&&!Jn.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(Jn.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));return un(e,(e=>{var[n,r]=Gn.edges(t),o=Tn.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!Gn.includes(t,n)}});for(var[,i]of o){if(!Gn.includes(t,i)){var a=Tn.parent(e,i),s=i[i.length-1];a.children.splice(s,1)}if(Fn.equals(i,r.path)){var u=Tn.leaf(e,i);u.text=u.text.slice(0,r.offset)}if(Fn.equals(i,n.path)){var c=Tn.leaf(e,i);c.text=c.text.slice(n.offset)}}delete e.selection})).children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Jn.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Jn.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>Jn.isText(e)||Nn.isElement(e)||An.isEditor(e),isNodeList:e=>Array.isArray(e)&&(0===e.length||Tn.isNode(e[0])),last(e,t){for(var n=t.slice(),r=Tn.get(e,n);r&&!Jn.isText(r)&&0!==r.children.length;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=Tn.get(e,t);if(!Jn.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of Fn.levels(t,n)){var o=Tn.get(e,r);yield[o,r]}},matches:(e,t)=>Nn.isElement(e)&&Nn.matches(e,t)||Jn.isText(e)&&Jn.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,s=[],u=e;!i||!(r?Fn.isBefore(s,i):Fn.isAfter(s,i));)if(a.has(u)||(yield[u,s]),a.has(u)||Jn.isText(u)||0===u.children.length||null!=n&&!1!==n([u,s])){if(0===s.length)break;if(!r){var c=Fn.next(s);if(Tn.has(e,c)){s=c,u=Tn.get(e,s);continue}}if(r&&0!==s[s.length-1])s=Fn.previous(s),u=Tn.get(e,s);else s=Fn.parent(s),u=Tn.get(e,s),a.add(u)}else{a.add(u);var l=r?u.children.length-1:0;Fn.isAncestor(s,o)&&(l=o[s.length]),s=s.concat(l),u=Tn.get(e,s)}},parent(e,t){var n=Fn.parent(t),r=Tn.get(e,n);if(Jn.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>Jn.isText(e)?e.text:e.children.map(Tn.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Tn.nodes(e,t))Jn.isText(n)&&(yield[n,r])}};function Ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ln(Object(n),!0).forEach((function(t){dn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ln(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _n={isNodeOperation:e=>_n.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!tt(e))return!1;switch(e.type){case"insert_node":return Fn.isPath(e.path)&&Tn.isNode(e.node);case"insert_text":return"number"==typeof e.offset&&"string"==typeof e.text&&Fn.isPath(e.path);case"merge_node":return"number"==typeof e.position&&("number"==typeof e.target||null===e.target)&&Fn.isPath(e.path)&&tt(e.properties);case"move_node":return Fn.isPath(e.path)&&Fn.isPath(e.newPath);case"remove_node":return Fn.isPath(e.path)&&Tn.isNode(e.node);case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&Fn.isPath(e.path);case"set_node":return Fn.isPath(e.path)&&tt(e.properties)&&tt(e.newProperties);case"set_selection":return null===e.properties&&Gn.isRange(e.newProperties)||null===e.newProperties&&Gn.isRange(e.properties)||tt(e.properties)&&tt(e.newProperties);case"split_node":return Fn.isPath(e.path)&&"number"==typeof e.position&&("number"==typeof e.target||null===e.target)&&tt(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&(0===e.length||_n.isOperation(e[0])),isSelectionOperation:e=>_n.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>_n.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return Rn({},e,{type:"remove_node"});case"insert_text":return Rn({},e,{type:"remove_text"});case"merge_node":return Rn({},e,{type:"split_node",path:Fn.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;return Fn.equals(t,n)?e:Rn({},e,{path:Fn.transform(n,e),newPath:Fn.transform(Fn.next(n),e)});case"remove_node":return Rn({},e,{type:"insert_node"});case"remove_text":return Rn({},e,{type:"insert_text"});case"set_node":var{properties:r,newProperties:o}=e;return Rn({},e,{properties:o,newProperties:r});case"set_selection":var{properties:i,newProperties:a}=e;return Rn({},e,null==i?{properties:a,newProperties:null}:null==a?{properties:null,newProperties:i}:{properties:a,newProperties:i});case"split_node":return Rn({},e,{type:"merge_node",path:Fn.next(e.path)})}}},Fn={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=Fn.levels(e,t);return r=n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Fn.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return Fn.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Fn.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),isAfter:(e,t)=>1===Fn.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===Fn.compare(e,t),isBefore:(e,t)=>-1===Fn.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===Fn.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===Fn.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===Fn.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===Fn.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&Fn.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!Fn.isAncestor(t,e)&&!Fn.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return un(e,(r=>{var{affinity:o="forward"}=n;if(0!==e.length)switch(t.type){case"insert_node":var{path:i}=t;(Fn.equals(i,r)||Fn.endsBefore(i,r)||Fn.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(Fn.equals(a,r)||Fn.isAncestor(a,r))return null;Fn.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:s,position:u}=t;Fn.equals(s,r)||Fn.endsBefore(s,r)?r[s.length-1]-=1:Fn.isAncestor(s,r)&&(r[s.length-1]-=1,r[s.length]+=u);break;case"split_node":var{path:c,position:l}=t;if(Fn.equals(c,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else Fn.endsBefore(c,r)?r[c.length-1]+=1:Fn.isAncestor(c,r)&&e[c.length]>=l&&(r[c.length-1]+=1,r[c.length]-=l);break;case"move_node":var{path:p,newPath:d}=t;if(Fn.equals(p,d))return;if(Fn.isAncestor(p,r)||Fn.equals(p,r)){var f=d.slice();if(Fn.endsBefore(p,d)&&p.length<d.length)f[Math.min(d.length,p.length)-1]-=1;return f.concat(r.slice(p.length))}Fn.endsBefore(d,r)||Fn.equals(d,r)||Fn.isAncestor(d,r)?(Fn.endsBefore(p,r)&&(r[p.length-1]-=1),r[d.length-1]+=1):Fn.endsBefore(p,r)&&(Fn.equals(d,r)&&(r[d.length-1]+=1),r[p.length-1]-=1)}}))}},Bn={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Fn.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function Zn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Hn={compare(e,t){var n=Fn.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===Hn.compare(e,t),isBefore:(e,t)=>-1===Hn.compare(e,t),equals:(e,t)=>e.offset===t.offset&&Fn.equals(e.path,t.path),isPoint:e=>tt(e)&&"number"==typeof e.offset&&Fn.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return un(e,(e=>{var{affinity:r="forward"}=n,{path:o,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=Fn.transform(o,t,n);break;case"insert_text":Fn.equals(t.path,o)&&t.offset<=i&&(e.offset+=t.text.length);break;case"merge_node":Fn.equals(t.path,o)&&(e.offset+=t.position),e.path=Fn.transform(o,t,n);break;case"remove_text":Fn.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(Fn.equals(t.path,o)||Fn.isAncestor(t.path,o))return null;e.path=Fn.transform(o,t,n);break;case"split_node":if(Fn.equals(t.path,o)){if(t.position===i&&null==r)return null;(t.position<i||t.position===i&&"forward"===r)&&(e.offset-=t.position,e.path=Fn.transform(o,t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zn(Object(n),!0).forEach((function(t){dn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n,{affinity:"forward"})))}else e.path=Fn.transform(o,t,n)}}))}},Un={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Hn.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function Wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Gn={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return Gn.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=Gn.edges(e);return t},equals:(e,t)=>Hn.equals(e.anchor,t.anchor)&&Hn.equals(e.focus,t.focus),includes(e,t){if(Gn.isRange(t)){if(Gn.includes(e,t.anchor)||Gn.includes(e,t.focus))return!0;var[n,r]=Gn.edges(e),[o,i]=Gn.edges(t);return Hn.isBefore(n,o)&&Hn.isAfter(r,i)}var[a,s]=Gn.edges(e),u=!1,c=!1;return Hn.isPoint(t)?(u=Hn.compare(t,a)>=0,c=Hn.compare(t,s)<=0):(u=Fn.compare(t,a.path)>=0,c=Fn.compare(t,s.path)<=0),u&&c},intersection(e,t){var n=fn(e,["anchor","focus"]),[r,o]=Gn.edges(e),[i,a]=Gn.edges(t),s=Hn.isBefore(r,i)?i:r,u=Hn.isBefore(o,a)?o:a;return Hn.isBefore(u,s)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wn(Object(n),!0).forEach((function(t){dn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:s,focus:u},n)},isBackward(e){var{anchor:t,focus:n}=e;return Hn.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Hn.equals(t,n)},isExpanded:e=>!Gn.isCollapsed(e),isForward:e=>!Gn.isBackward(e),isRange:e=>tt(e)&&Hn.isPoint(e.anchor)&&Hn.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=Gn.edges(e);return t},transform(e,t,n){var r,o,{affinity:i="inward"}=n;return"inward"===i?Gn.isForward(e)?(r="forward",o="backward"):(r="backward",o="forward"):"outward"===i?Gn.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i),un(e,(e=>{var n=Hn.transform(e.anchor,t,{affinity:r}),i=Hn.transform(e.focus,t,{affinity:o});if(!n||!i)return null;e.anchor=n,e.focus=i}))}},zn={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Gn.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function qn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qn(Object(n),!0).forEach((function(t){dn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Jn={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;for(var o in e)if((!r||"text"!==o)&&e[o]!==t[o])return!1;for(var i in t)if((!r||"text"!==i)&&e[i]!==t[i])return!1;return!0},isText:e=>tt(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&(0===e.length||Jn.isText(e[0])),matches(e,t){for(var n in t)if("text"!==n&&e[n]!==t[n])return!1;return!0},decorations(e,t){var n=[Vn({},e)];for(var r of t){var o=fn(r,["anchor","focus"]),[i,a]=Gn.edges(r),s=[],u=0;for(var c of n){var{length:l}=c.text,p=u;if(u+=l,i.offset<=p&&a.offset>=p+l)Object.assign(c,o),s.push(c);else if(i.offset>p+l||a.offset<p||a.offset===p&&0!==p)s.push(c);else{var d=c,f=void 0,m=void 0;if(a.offset<p+l){var h=a.offset-p;m=Vn({},d,{text:d.text.slice(h)}),d=Vn({},d,{text:d.text.slice(0,h)})}if(i.offset>p){var g=i.offset-p;f=Vn({},d,{text:d.text.slice(0,g)}),d=Vn({},d,{text:d.text.slice(g)})}Object.assign(d,o),f&&s.push(f),s.push(d),m&&s.push(m)}}n=s}return n}};function Yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yn(Object(n),!0).forEach((function(t){dn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xn(Object(n),!0).forEach((function(t){dn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $n={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};An.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:s,select:u}=n;if(Tn.isNode(t)&&(t=[t]),0!==t.length){var[c]=t;if(a||(a=e.selection?e.selection:e.children.length>0?An.end(e,[]):[0],u=!0),null==u&&(u=!1),Gn.isRange(a))if(r||(a=An.unhangRange(e,a)),Gn.isCollapsed(a))a=a.anchor;else{var[,l]=Gn.edges(a),p=An.pointRef(e,l);ir.delete(e,{at:a}),a=p.unref()}if(Hn.isPoint(a)){null==s&&(s=Jn.isText(c)?e=>Jn.isText(e):e.isInline(c)?t=>Jn.isText(t)||An.isInline(e,t):t=>An.isBlock(e,t));var[d]=An.nodes(e,{at:a.path,match:s,mode:i,voids:o});if(!d)return;var[,f]=d,m=An.pathRef(e,f),h=An.isEnd(e,a,f);ir.splitNodes(e,{at:a,match:s,mode:i,voids:o});var g=m.unref();a=h?Fn.next(g):g}var v=Fn.parent(a),b=a[a.length-1];if(o||!An.void(e,{at:v})){for(var y of t){var w=v.concat(b);b++,e.apply({type:"insert_node",path:w,node:y})}if(u){var E=An.end(e,a);E&&ir.select(e,E)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};An.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=Fn.isPath(n)?tr(e,n):t=>An.isBlock(e,t)),n){var a=An.nodes(e,{at:n,match:i,mode:r,voids:o}),s=Array.from(a,(t=>{var[,n]=t;return An.pathRef(e,n)}));for(var u of s){var c=u.unref();if(c.length<2)throw new Error("Cannot lift node at a path [".concat(c,"] because it has a depth of less than `2`."));var l=An.node(e,Fn.parent(c)),[p,d]=l,f=c[c.length-1],{length:m}=p.children;if(1===m){var h=Fn.next(d);ir.moveNodes(e,{at:c,to:h,voids:o}),ir.removeNodes(e,{at:d,voids:o})}else if(0===f)ir.moveNodes(e,{at:c,to:d,voids:o});else if(f===m-1){var g=Fn.next(d);ir.moveNodes(e,{at:c,to:g,voids:o})}else{var v=Fn.next(c),b=Fn.next(d);ir.splitNodes(e,{at:v,voids:o}),ir.moveNodes(e,{at:c,to:b,voids:o})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};An.withoutNormalizing(e,(()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(null==n)if(Fn.isPath(r)){var[s]=An.parent(e,r);n=e=>s.children.includes(e)}else n=t=>An.isBlock(e,t);if(!o&&Gn.isRange(r)&&(r=An.unhangRange(e,r)),Gn.isRange(r))if(Gn.isCollapsed(r))r=r.anchor;else{var[,u]=Gn.edges(r),c=An.pointRef(e,u);ir.delete(e,{at:r}),r=c.unref(),null==t.at&&ir.select(e,r)}var[l]=An.nodes(e,{at:r,match:n,voids:i,mode:a}),p=An.previous(e,{at:r,match:n,voids:i,mode:a});if(l&&p){var[d,f]=l,[m,h]=p;if(0!==f.length&&0!==h.length){var g,v,b=Fn.next(h),y=Fn.common(f,h),w=Fn.isSibling(f,h),E=Array.from(An.levels(e,{at:f}),(e=>{var[t]=e;return t})).slice(y.length).slice(0,-1),S=An.above(e,{at:f,mode:"highest",match:e=>E.includes(e)&&Nn.isElement(e)&&1===e.children.length}),I=S&&An.pathRef(e,S[1]);if(Jn.isText(d)&&Jn.isText(m)){var x=fn(d,["text"]);v=m.text.length,g=x}else{if(!Nn.isElement(d)||!Nn.isElement(m))throw new Error("Cannot merge the node at path [".concat(f,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(m)));x=fn(d,["children"]);v=m.children.length,g=x}w||ir.moveNodes(e,{at:f,to:b,voids:i}),I&&ir.removeNodes(e,{at:I.current,voids:i}),Nn.isElement(m)&&An.isEmpty(e,m)||Jn.isText(m)&&""===m.text?ir.removeNodes(e,{at:h,voids:i}):e.apply({type:"merge_node",path:b,position:v,target:null,properties:g}),I&&I.unref()}}}}))},moveNodes(e,t){An.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=Fn.isPath(r)?tr(e,r):t=>An.isBlock(e,t));var s=An.pathRef(e,n),u=An.nodes(e,{at:r,match:a,mode:o,voids:i}),c=Array.from(u,(t=>{var[,n]=t;return An.pathRef(e,n)}));for(var l of c){var p=l.unref(),d=s.current;0!==p.length&&e.apply({type:"move_node",path:p,newPath:d})}s.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};An.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=Fn.isPath(i)?tr(e,i):t=>An.isBlock(e,t)),!n&&Gn.isRange(i)&&(i=An.unhangRange(e,i));var s=An.nodes(e,{at:i,match:a,mode:o,voids:r}),u=Array.from(s,(t=>{var[,n]=t;return An.pathRef(e,n)}));for(var c of u){var l=c.unref();if(l){var[p]=An.node(e,l);e.apply({type:"remove_node",path:l,node:p})}}}}))},setNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};An.withoutNormalizing(e,(()=>{var{match:r,at:o=e.selection}=n,{hanging:i=!1,mode:a="lowest",split:s=!1,voids:u=!1}=n;if(o){if(null==r&&(r=Fn.isPath(o)?tr(e,o):t=>An.isBlock(e,t)),!i&&Gn.isRange(o)&&(o=An.unhangRange(e,o)),s&&Gn.isRange(o)){var c=An.rangeRef(e,o,{affinity:"inward"}),[l,p]=Gn.edges(o),d="lowest"===a?"lowest":"highest";ir.splitNodes(e,{at:p,match:r,mode:d,voids:u}),ir.splitNodes(e,{at:l,match:r,mode:d,voids:u}),o=c.unref(),null==n.at&&ir.select(e,o)}for(var[f,m]of An.nodes(e,{at:o,match:r,mode:a,voids:u})){var h={},g={};if(0!==m.length){for(var v in t)"children"!==v&&"text"!==v&&t[v]!==f[v]&&(h[v]=f[v],g[v]=t[v]);0!==Object.keys(g).length&&e.apply({type:"set_node",path:m,properties:h,newProperties:g})}}}}))},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};An.withoutNormalizing(e,(()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection,height:a=0,always:s=!1}=t;if(null==o&&(o=t=>An.isBlock(e,t)),Gn.isRange(i)&&(i=er(e,i)),Fn.isPath(i)){var u=i,c=An.point(e,u),[l]=An.parent(e,u);o=e=>e===l,a=c.path.length-u.length+1,i=c,s=!0}if(i){var p=An.pointRef(e,i,{affinity:"backward"}),[d]=An.nodes(e,{at:i,match:o,mode:n,voids:r});if(d){var f=An.void(e,{at:i,mode:"highest"});if(!r&&f){var[m,h]=f;if(Nn.isElement(m)&&e.isInline(m)){var g=An.after(e,h);if(!g){var v=Fn.next(h);ir.insertNodes(e,{text:""},{at:v,voids:r}),g=An.point(e,v)}i=g,s=!0}a=i.path.length-h.length+1,s=!0}var b=An.pointRef(e,i),y=i.path.length-a,[,w]=d,E=i.path.slice(0,y),S=0===a?i.offset:i.path[y]+0,I=null;for(var[x,O]of An.levels(e,{at:E,reverse:!0,voids:r})){var C=!1;if(O.length<w.length||0===O.length||!r&&An.isVoid(e,x))break;var D=p.current,P=An.isEnd(e,D,O);if(s||!p||!An.isEdge(e,D,O)){C=!0;var M=fn(x,["text","children"]);e.apply({type:"split_node",path:O,position:S,target:I,properties:M})}I=S,S=O[O.length-1]+(C||P?1:0)}if(null==t.at){var k=b.current||An.end(e,[]);ir.select(e,k)}p.unref(),b.unref()}}}))},unsetNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;ir.setNodes(e,r,n)},unwrapNodes(e,t){An.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=Fn.isPath(i)?tr(e,i):t=>An.isBlock(e,t)),Fn.isPath(i)&&(i=An.range(e,i));var s=Gn.isRange(i)?An.rangeRef(e,i):null,u=An.nodes(e,{at:i,match:a,mode:n,voids:o}),c=Array.from(u,(t=>{var[,n]=t;return An.pathRef(e,n)})),l=function(t){var n=t.unref(),[i]=An.node(e,n),a=An.range(e,n);r&&s&&(a=Gn.intersection(s.current,a)),ir.liftNodes(e,{at:a,match:e=>i.children.includes(e),voids:o})};for(var p of c)l(p);s&&s.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};An.withoutNormalizing(e,(()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:s=e.selection}=n;if(s){if(null==a&&(a=Fn.isPath(s)?tr(e,s):e.isInline(t)?t=>An.isInline(e,t)||Jn.isText(t):t=>An.isBlock(e,t)),o&&Gn.isRange(s)){var[u,c]=Gn.edges(s),l=An.rangeRef(e,s,{affinity:"inward"});ir.splitNodes(e,{at:c,match:a,voids:i}),ir.splitNodes(e,{at:u,match:a,voids:i}),s=l.unref(),null==n.at&&ir.select(e,s)}var p=Array.from(An.nodes(e,{at:s,match:e.isInline(t)?t=>An.isBlock(e,t):e=>An.isEditor(e),mode:"lowest",voids:i}));for(var[,d]of p){var f=Gn.isRange(s)?Gn.intersection(s,An.range(e,d)):s;if(f){var m=Array.from(An.nodes(e,{at:f,match:a,mode:r,voids:i}));m.length>0&&function(){var[n]=m,r=m[m.length-1],[,o]=n,[,a]=r,s=Fn.equals(o,a)?Fn.parent(o):Fn.common(o,a),u=An.range(e,o,a),c=An.node(e,s),[l]=c,p=s.length+1,d=Fn.next(a.slice(0,p)),f=Kn({},t,{children:[]});ir.insertNodes(e,f,{at:d,voids:i}),ir.moveNodes(e,{at:u,match:e=>l.children.includes(e),to:d.concat(0),voids:i})}()}}}}))}},er=(e,t)=>{if(Gn.isCollapsed(t))return t.anchor;var[,n]=Gn.edges(t),r=An.pointRef(e,n);return ir.delete(e,{at:t}),r.unref()},tr=(e,t)=>{var[n]=An.node(e,t);return e=>e===n};function nr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nr(Object(n),!0).forEach((function(t){dn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function or(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ir=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?or(Object(n),!0).forEach((function(t){dn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):or(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{transform(e,t){e.children=cn(e.children);var n=e.selection&&cn(e.selection);switch(t.type){case"insert_node":var{path:r,node:o}=t,i=Tn.parent(e,r),a=r[r.length-1];if(i.children.splice(a,0,o),n)for(var[s,u]of Gn.points(n))n[u]=Hn.transform(s,t);break;case"insert_text":var{path:c,offset:l,text:p}=t,d=Tn.leaf(e,c),f=d.text.slice(0,l),m=d.text.slice(l);if(d.text=f+p+m,n)for(var[h,g]of Gn.points(n))n[g]=Hn.transform(h,t);break;case"merge_node":var{path:v}=t,b=Tn.get(e,v),y=Fn.previous(v),w=Tn.get(e,y),E=Tn.parent(e,v),S=v[v.length-1];if(Jn.isText(b)&&Jn.isText(w))w.text+=b.text;else{if(Jn.isText(b)||Jn.isText(w))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(v,"] to nodes of different interaces: ").concat(b," ").concat(w));w.children.push(...b.children)}if(E.children.splice(S,1),n)for(var[I,x]of Gn.points(n))n[x]=Hn.transform(I,t);break;case"move_node":var{path:O,newPath:C}=t;if(Fn.isAncestor(O,C))throw new Error("Cannot move a path [".concat(O,"] to new path [").concat(C,"] because the destination is inside itself."));var D=Tn.get(e,O),P=Tn.parent(e,O),M=O[O.length-1];P.children.splice(M,1);var k=Fn.transform(O,t),A=Tn.get(e,Fn.parent(k)),N=k[k.length-1];if(A.children.splice(N,0,D),n)for(var[j,T]of Gn.points(n))n[T]=Hn.transform(j,t);break;case"remove_node":var{path:L}=t,R=L[L.length-1];if(Tn.parent(e,L).children.splice(R,1),n)for(var[_,F]of Gn.points(n)){var B=Hn.transform(_,t);if(null!=n&&null!=B)n[F]=B;else{var Z=void 0,H=void 0;for(var[U,W]of Tn.texts(e)){if(-1!==Fn.compare(W,L)){H=[U,W];break}Z=[U,W]}Z?(_.path=Z[1],_.offset=Z[0].text.length):H?(_.path=H[1],_.offset=0):n=null}}break;case"remove_text":var{path:G,offset:z,text:q}=t,V=Tn.leaf(e,G),J=V.text.slice(0,z),Y=V.text.slice(z+q.length);if(V.text=J+Y,n)for(var[Q,X]of Gn.points(n))n[X]=Hn.transform(Q,t);break;case"set_node":var{path:K,newProperties:$}=t;if(0===K.length)throw new Error("Cannot set properties on the root node!");var ee=Tn.get(e,K);for(var te in $){if("children"===te||"text"===te)throw new Error('Cannot set the "'.concat(te,'" property of nodes!'));var ne=$[te];null==ne?delete ee[te]:ee[te]=ne}break;case"set_selection":var{newProperties:re}=t;if(null==re)n=re;else if(null==n){if(!Gn.isRange(re))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(re)," when there is no current selection."));n=re}else Object.assign(n,re);break;case"split_node":var{path:oe,position:ie,properties:ae}=t;if(0===oe.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(oe,"] because the root node cannot be split."));var se,ue=Tn.get(e,oe),ce=Tn.parent(e,oe),le=oe[oe.length-1];if(Jn.isText(ue)){var pe=ue.text.slice(0,ie),de=ue.text.slice(ie);ue.text=pe,se=Qn({},ue,{},ae,{text:de})}else{var fe=ue.children.slice(0,ie),me=ue.children.slice(ie);ue.children=fe,se=Qn({},ue,{},ae,{children:me})}if(ce.children.splice(le+1,0,se),n)for(var[he,ge]of Gn.points(n))n[ge]=Hn.transform(he,t)}e.children=ln(e.children),e.selection=n?ft(n)?ln(n):n:null}},{},$n,{},{collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r)if("anchor"===n)ir.select(e,r.anchor);else if("focus"===n)ir.select(e,r.focus);else if("start"===n){var[o]=Gn.edges(r);ir.select(e,o)}else if("end"===n){var[,i]=Gn.edges(r);ir.select(e,i)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=Gn.isBackward(n)?"focus":"anchor"),"end"===a&&(a=Gn.isBackward(n)?"anchor":"focus");var{anchor:s,focus:u}=n,c={distance:r,unit:o},l={};if(null==a||"anchor"===a){var p=i?An.before(e,s,c):An.after(e,s,c);p&&(l.anchor=p)}if(null==a||"focus"===a){var d=i?An.before(e,u,c):An.after(e,u,c);d&&(l.focus=d)}ir.setSelection(e,l)}},select(e,t){var{selection:n}=e;if(t=An.range(e,t),n)ir.setSelection(e,t);else{if(!Gn.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t,n){var{selection:r}=e,{edge:o="both"}=n;if(r){"start"===o&&(o=Gn.isBackward(r)?"focus":"anchor"),"end"===o&&(o=Gn.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,s="anchor"===o?i:a;ir.setSelection(e,{["anchor"===o?"anchor":"focus"]:rr({},s,{},t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!Hn.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!Hn.equals(t.focus,n.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},{},{delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};An.withoutNormalizing(e,(()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:s=!1}=t;if(a){if(Gn.isRange(a)&&Gn.isCollapsed(a)&&(a=a.anchor),Hn.isPoint(a)){var u=An.void(e,{at:a,mode:"highest"});if(!i&&u){var[,c]=u;a=c}else{var l={unit:r,distance:o};a={anchor:a,focus:n?An.before(e,a,l)||An.start(e,[]):An.after(e,a,l)||An.end(e,[])},s=!0}}if(Fn.isPath(a))ir.removeNodes(e,{at:a,voids:i});else if(!Gn.isCollapsed(a)){s||(a=An.unhangRange(e,a,{voids:i}));var[p,d]=Gn.edges(a),f=An.above(e,{match:t=>An.isBlock(e,t),at:p,voids:i}),m=An.above(e,{match:t=>An.isBlock(e,t),at:d,voids:i}),h=f&&m&&!Fn.equals(f[1],m[1]),g=Fn.equals(p.path,d.path),v=i?null:An.void(e,{at:p,mode:"highest"}),b=i?null:An.void(e,{at:d,mode:"highest"});if(v){var y=An.before(e,p);y&&f&&Fn.isAncestor(f[1],y.path)&&(p=y)}if(b){var w=An.after(e,d);w&&m&&Fn.isAncestor(m[1],w.path)&&(d=w)}var E,S=[];for(var I of An.nodes(e,{at:a,voids:i})){var[x,O]=I;E&&0===Fn.compare(O,E)||(!i&&An.isVoid(e,x)||!Fn.isCommon(O,p.path)&&!Fn.isCommon(O,d.path))&&(S.push(I),E=O)}var C=Array.from(S,(t=>{var[,n]=t;return An.pathRef(e,n)})),D=An.pointRef(e,p),P=An.pointRef(e,d);if(!g&&!v){var M=D.current,[k]=An.leaf(e,M),{path:A}=M,{offset:N}=p,j=k.text.slice(N);e.apply({type:"remove_text",path:A,offset:N,text:j})}for(var T of C){var L=T.unref();ir.removeNodes(e,{at:L,voids:i})}if(!b){var R=P.current,[_]=An.leaf(e,R),{path:F}=R,B=g?p.offset:0,Z=_.text.slice(B,d.offset);e.apply({type:"remove_text",path:F,offset:B,text:Z})}!g&&h&&P.current&&D.current&&ir.mergeNodes(e,{at:P.current,hanging:!0,voids:i});var H=P.unref()||D.unref();null==t.at&&H&&ir.select(e,H)}}}))},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};An.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(Gn.isRange(i))if(r||(i=An.unhangRange(e,i)),Gn.isCollapsed(i))i=i.anchor;else{var[,a]=Gn.edges(i);if(!o&&An.void(e,{at:a}))return;var s=An.pointRef(e,a);ir.delete(e,{at:i}),i=s.unref()}else Fn.isPath(i)&&(i=An.start(e,i));if(o||!An.void(e,{at:i})){var u=An.above(e,{at:i,match:t=>An.isInline(e,t),mode:"highest",voids:o});if(u){var[,c]=u;if(An.isEnd(e,i,c))i=An.after(e,c);else if(An.isStart(e,i,c)){i=An.before(e,c)}}var l=An.above(e,{match:t=>An.isBlock(e,t),at:i,voids:o}),[,p]=l,d=An.isStart(e,i,p),f=An.isEnd(e,i,p),m=!d||d&&f,h=!f,[,g]=Tn.first({children:t},[]),[,v]=Tn.last({children:t},[]),b=[],y=t=>{var[n,r]=t;return!(m&&Fn.isAncestor(r,g)&&Nn.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(h&&Fn.isAncestor(r,v)&&Nn.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))};for(var w of Tn.nodes({children:t},{pass:y}))w[1].length>0&&y(w)&&b.push(w);var E=[],S=[],I=[],x=!0,O=!1;for(var[C]of b)Nn.isElement(C)&&!e.isInline(C)?(x=!1,O=!0,S.push(C)):x?E.push(C):I.push(C);var[D]=An.nodes(e,{at:i,match:t=>Jn.isText(t)||An.isInline(e,t),mode:"highest",voids:o}),[,P]=D,M=An.isStart(e,i,P),k=An.isEnd(e,i,P),A=An.pathRef(e,f?Fn.next(p):p),N=An.pathRef(e,k?Fn.next(P):P);ir.splitNodes(e,{at:i,match:t=>O?An.isBlock(e,t):Jn.isText(t)||An.isInline(e,t),mode:O?"lowest":"highest",voids:o});var j=An.pathRef(e,!M||M&&k?Fn.next(P):P);if(ir.insertNodes(e,E,{at:j.current,match:t=>Jn.isText(t)||An.isInline(e,t),mode:"highest",voids:o}),ir.insertNodes(e,S,{at:A.current,match:t=>An.isBlock(e,t),mode:"lowest",voids:o}),ir.insertNodes(e,I,{at:N.current,match:t=>Jn.isText(t)||An.isInline(e,t),mode:"highest",voids:o}),!n.at){var T;T=I.length>0?Fn.previous(N.current):S.length>0?Fn.previous(A.current):Fn.previous(j.current);var L=An.end(e,T);ir.select(e,L)}j.unref(),A.unref(),N.unref()}}}))},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};An.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(Fn.isPath(o)&&(o=An.range(e,o)),Gn.isRange(o))if(Gn.isCollapsed(o))o=o.anchor;else{var i=Gn.end(o);if(!r&&An.void(e,{at:i}))return;var a=An.pointRef(e,i);ir.delete(e,{at:o,voids:r}),o=a.unref(),ir.setSelection(e,{anchor:o,focus:o})}if(r||!An.void(e,{at:o})){var{path:s,offset:u}=o;e.apply({type:"insert_text",path:s,offset:u,text:t})}}}))}});function ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ar(Object(n),!0).forEach((function(t){dn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ar(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ur=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of An.pathRefs(e))Bn.transform(n,t);for(var r of An.pointRefs(e))Un.transform(r,t);for(var o of An.rangeRefs(e))zn.transform(o,t);var i=new Set,a=[],s=e=>{if(e){var t=e.join(",");i.has(t)||(i.add(t),a.push(e))}},u=mn.get(e)||[],c=cr(t);for(var l of u){s(Fn.transform(l,t))}for(var p of c)s(p);mn.set(e,a),An.transform(e,t),e.operations.push(t),An.normalize(e),"set_selection"===t.type&&(e.marks=null),hn.get(e)||(hn.set(e,!0),Promise.resolve().then((()=>{hn.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(Gn.isExpanded(r))ir.setNodes(e,{[t]:n},{match:Jn.isText,split:!0});else{var o=sr({},An.marks(e)||{},{[t]:n});e.marks=o,e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&Gn.isCollapsed(n)&&ir.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&Gn.isCollapsed(n)&&ir.delete(e,{unit:t})},deleteFragment:()=>{var{selection:t}=e;t&&Gn.isExpanded(t)&&ir.delete(e)},getFragment:()=>{var{selection:t}=e;return t&&Gn.isExpanded(t)?Tn.fragment(e,t):[]},insertBreak:()=>{ir.splitNodes(e,{always:!0})},insertFragment:t=>{ir.insertFragment(e,t)},insertNode:t=>{ir.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(Gn.isCollapsed(n)){var o=An.above(e,{match:t=>An.isInline(e,t),mode:"highest"});if(o){var[,i]=o;if(An.isEnd(e,n.anchor,i)){var a=An.after(e,i);ir.setSelection(e,{anchor:a,focus:a})}}}if(r){var s=sr({text:t},r);ir.insertNodes(e,s)}else ir.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!Jn.isText(n))if(Nn.isElement(n)&&0===n.children.length){ir.insertNodes(e,{text:""},{at:r.concat(0),voids:!0})}else for(var o=!An.isEditor(n)&&(Nn.isElement(n)&&(e.isInline(n)||0===n.children.length||Jn.isText(n.children[0])||e.isInline(n.children[0]))),i=0,a=0;a<n.children.length;a++,i++){var s=n.children[a],u=n.children[a-1],c=a===n.children.length-1;if((Jn.isText(s)||Nn.isElement(s)&&e.isInline(s))!==o)ir.removeNodes(e,{at:r.concat(i),voids:!0}),i--;else if(Nn.isElement(s)){if(e.isInline(s))if(null!=u&&Jn.isText(u)){if(c){ir.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++}}else{ir.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++}}else null!=u&&Jn.isText(u)&&(Jn.equals(s,u,{loose:!0})?(ir.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):""===u.text?(ir.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):c&&""===s.text&&(ir.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}},removeMark:t=>{var{selection:n}=e;if(n)if(Gn.isExpanded(n))ir.unsetNodes(e,t,{match:Jn.isText,split:!0});else{var r=sr({},An.marks(e)||{});delete r[t],e.marks=r,e.onChange()}}};return e},cr=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return Fn.levels(t);case"insert_node":var{node:n,path:r}=e;return[...Fn.levels(r),...Jn.isText(n)?[]:Array.from(Tn.nodes(n),(e=>{var[,t]=e;return r.concat(t)}))];case"merge_node":var{path:o}=e;return[...Fn.ancestors(o),Fn.previous(o)];case"move_node":var{path:i,newPath:a}=e;if(Fn.equals(i,a))return[];var s=[],u=[];for(var c of Fn.ancestors(i)){var l=Fn.transform(c,e);s.push(l)}for(var p of Fn.ancestors(a)){var d=Fn.transform(p,e);u.push(d)}return[...s,...u];case"remove_node":var{path:f}=e;return[...Fn.ancestors(f)];case"split_node":var{path:m}=e;return[...Fn.levels(m),Fn.next(m)];default:return[]}},lr=n(38172),pr=n.n(lr);function dr(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function fr(e,t){return(!t||"hidden"!==e)&&("visible"!==e&&"clip"!==e)}function mr(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return fr(n.overflowY,t)||fr(n.overflowX,t)||function(e){var t=function(e){return e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView.frameElement:null}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function hr(e,t,n,r,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0}var gr=function(e,t){var n=t.scrollMode,r=t.block,o=t.inline,i=t.boundary,a=t.skipOverflowHiddenElements,s="function"==typeof i?i:function(e){return e!==i};if(!dr(e))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,c=[],l=e;dr(l)&&s(l);){if((l=l.parentNode)===u){c.push(l);break}l===document.body&&mr(l)&&!mr(document.documentElement)||mr(l,a)&&c.push(l)}for(var p=window.visualViewport?visualViewport.width:innerWidth,d=window.visualViewport?visualViewport.height:innerHeight,f=window.scrollX||pageXOffset,m=window.scrollY||pageYOffset,h=e.getBoundingClientRect(),g=h.height,v=h.width,b=h.top,y=h.right,w=h.bottom,E=h.left,S="start"===r||"nearest"===r?b:"end"===r?w:b+g/2,I="center"===o?E+v/2:"end"===o?y:E,x=[],O=0;O<c.length;O++){var C=c[O],D=C.getBoundingClientRect(),P=D.height,M=D.width,k=D.top,A=D.right,N=D.bottom,j=D.left;if("if-needed"===n&&b>=0&&E>=0&&w<=d&&y<=p&&b>=k&&w<=N&&E>=j&&y<=A)return x;var T=getComputedStyle(C),L=parseInt(T.borderLeftWidth,10),R=parseInt(T.borderTopWidth,10),_=parseInt(T.borderRightWidth,10),F=parseInt(T.borderBottomWidth,10),B=0,Z=0,H="offsetWidth"in C?C.offsetWidth-C.clientWidth-L-_:0,U="offsetHeight"in C?C.offsetHeight-C.clientHeight-R-F:0;if(u===C)B="start"===r?S:"end"===r?S-d:"nearest"===r?hr(m,m+d,d,R,F,m+S,m+S+g,g):S-d/2,Z="start"===o?I:"center"===o?I-p/2:"end"===o?I-p:hr(f,f+p,p,L,_,f+I,f+I+v,v),B=Math.max(0,B+m),Z=Math.max(0,Z+f);else{B="start"===r?S-k-R:"end"===r?S-N+F+U:"nearest"===r?hr(k,N,P,R,F+U,S,S+g,g):S-(k+P/2)+U/2,Z="start"===o?I-j-L:"center"===o?I-(j+M/2)+H/2:"end"===o?I-A+_+H:hr(j,A,M,L,_+H,I,I+v,v);var W=C.scrollLeft,G=C.scrollTop;S+=G-(B=Math.max(0,Math.min(G+B,C.scrollHeight-P+U))),I+=W-(Z=Math.max(0,Math.min(W+Z,C.scrollWidth-M+H)))}x.push({el:C,top:B,left:Z})}return x};function vr(e){return e===Object(e)&&0!==Object.keys(e).length}var br=function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(vr(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:gr(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:vr(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))}(gr(e,r),r.behavior)}},yr=n(19141),wr=n.n(yr),Er=n(45350);function Sr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ir(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var xr=0;class Or{constructor(){this.id="".concat(xr++)}}var Cr=new WeakMap,Dr=new WeakMap,Pr=new WeakMap,Mr=new WeakMap,kr=new WeakMap,Ar=new WeakMap,Nr=new WeakMap,jr=new WeakMap,Tr=new WeakMap,Lr=new WeakMap,Rr=Symbol("placeholder"),_r=e=>Fr(e)&&1===e.nodeType,Fr=e=>e instanceof Node,Br=e=>Fr(e)&&3===e.nodeType,Zr=(e,t,n)=>{for(var r,{childNodes:o}=e,i=o[t],a=t,s=!1,u=!1;(Fr(r=i)&&8===r.nodeType||_r(i)&&0===i.childNodes.length||_r(i)&&"false"===i.getAttribute("contenteditable"))&&(!s||!u);)a>=o.length?(s=!0,a=t-1,n="backward"):a<0?(u=!0,a=t+1,n="forward"):(i=o[a],a+="forward"===n?1:-1);return i},Hr=e=>{var t="";if(Br(e)&&e.nodeValue)return e.nodeValue;if(_r(e)){for(var n of Array.from(e.childNodes))t+=Hr(n);var r=getComputedStyle(e).getPropertyValue("display");"block"!==r&&"list"!==r&&"BR"!==e.tagName||(t+="\n")}return t},Ur={findKey(e,t){var n=Nr.get(t);return n||(n=new Or,Nr.set(t,n)),n},findPath(e,t){for(var n=[],r=t;;){var o=Dr.get(r);if(null==o){if(An.isEditor(r))return n;break}var i=Cr.get(r);if(null==i)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: ".concat(JSON.stringify(t)))},isFocused:e=>!!Tr.get(e),isReadOnly:e=>!!jr.get(e),blur(e){var t=Ur.toDOMNode(e,e);Tr.set(e,!1),window.document.activeElement===t&&t.blur()},focus(e){var t=Ur.toDOMNode(e,e);Tr.set(e,!0),window.document.activeElement!==t&&t.focus({preventScroll:!0})},deselect(e){var{selection:t}=e,n=window.getSelection();n&&n.rangeCount>0&&n.removeAllRanges(),t&&ir.deselect(e)},hasDOMNode(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{editable:o=!1}=r,i=Ur.toDOMNode(e,e);try{n=_r(t)?t:t.parentElement}catch(a){if(!a.message.includes('Permission denied to access property "nodeType"'))throw a}return!!n&&(n.closest("[data-slate-editor]")===i&&(!o||n.isContentEditable||!!n.getAttribute("data-slate-zero-width")))},insertData(e,t){e.insertData(t)},setFragmentData(e,t){e.setFragmentData(t)},toDOMNode(e,t){var n=An.isEditor(t)?Pr.get(e):kr.get(Ur.findKey(e,t));if(!n)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(JSON.stringify(t)));return n},toDOMPoint(e,t){var n,[r]=An.node(e,t.path),o=Ur.toDOMNode(e,r);An.void(e,{at:t})&&(t={path:t.path,offset:0});var i=Array.from(o.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),a=0;for(var s of i){var u=s.childNodes[0];if(null!=u&&null!=u.textContent){var{length:c}=u.textContent,l=s.getAttribute("data-slate-length"),p=a+(null==l?c:parseInt(l,10));if(t.offset<=p){n=[u,Math.min(c,Math.max(0,t.offset-a))];break}a=p}}if(!n)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(JSON.stringify(t)));return n},toDOMRange(e,t){var{anchor:n,focus:r}=t,o=Gn.isBackward(t),i=Ur.toDOMPoint(e,n),a=Gn.isCollapsed(t)?i:Ur.toDOMPoint(e,r),s=window.document.createRange(),[u,c]=o?a:i,[l,p]=o?i:a,d=!!(_r(u)?u:u.parentElement).getAttribute("data-slate-zero-width"),f=!!(_r(l)?l:l.parentElement).getAttribute("data-slate-zero-width");return s.setStart(u,d?1:c),s.setEnd(l,f?1:p),s},toSlateNode(e,t){var n=_r(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?Mr.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(n));return r},findEventRange(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var{clientX:n,clientY:r,target:o}=t;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var i,a=Ur.toSlateNode(e,t.target),s=Ur.findPath(e,a);if(An.isVoid(e,a)){var u=o.getBoundingClientRect(),c=e.isInline(a)?n-u.left<u.left+u.width-n:r-u.top<u.top+u.height-r,l=An.point(e,s,{edge:c?"start":"end"}),p=c?An.before(e,l):An.after(e,l);if(p)return An.range(e,p)}var{document:d}=window;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(n,r);else{var f=d.caretPositionFromPoint(n,r);f&&((i=d.createRange()).setStart(f.offsetNode,f.offset),i.setEnd(f.offsetNode,f.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));return Ur.toSlateRange(e,i)},toSlatePoint(e,t){var[n,r]=(e=>{var[t,n]=e;if(_r(t)&&t.childNodes.length){var r=n===t.childNodes.length,o=r?"backward":"forward";for(t=Zr(t,r?n-1:n,o);_r(t)&&t.childNodes.length;){var i=r?t.childNodes.length-1:0;t=Zr(t,i,o)}n=r&&null!=t.textContent?t.textContent.length:0}return[t,n]})(t),o=n.parentNode,i=null,a=0;if(o){var s=o.closest('[data-slate-void="true"]'),u=o.closest("[data-slate-leaf]"),c=null;if(u){i=u.closest('[data-slate-node="text"]');var l=window.document.createRange();l.setStart(i,0),l.setEnd(n,r);var p=l.cloneContents();[...p.querySelectorAll("[data-slate-zero-width]"),...p.querySelectorAll("[contenteditable=false]")].forEach((e=>{e.parentNode.removeChild(e)})),a=p.textContent.length,c=i}else s&&(i=(u=s.querySelector("[data-slate-leaf]")).closest('[data-slate-node="text"]'),a=(c=u).textContent.length);c&&a===c.textContent.length&&o.hasAttribute("data-slate-zero-width")&&a--}if(!i)throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t));var d=Ur.toSlateNode(e,i);return{path:Ur.findPath(e,d),offset:a}},toSlateRange(e,t){var n,r,o,i,a;if((t instanceof Selection?t.anchorNode:t.startContainer)&&(t instanceof Selection?(n=t.anchorNode,r=t.anchorOffset,o=t.focusNode,i=t.focusOffset,a=t.isCollapsed):(n=t.startContainer,r=t.startOffset,o=t.endContainer,i=t.endOffset,a=t.collapsed)),null==n||null==o||null==r||null==i)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));var s=Ur.toSlatePoint(e,[n,r]);return{anchor:s,focus:a?s:Ur.toSlatePoint(e,[o,i])}}},Wr=(0,o.createContext)(!1),Gr=(0,o.createContext)(null),zr=()=>{var e=(0,o.useContext)(Gr);if(!e)throw new Error("The `useEditor` hook must be used inside the <Slate> component's context.");return e},qr=(0,o.createContext)(null),Vr=()=>{var e=(0,o.useContext)(qr);if(!e)throw new Error("The `useSlate` hook must be used inside the <SlateProvider> component's context.");var[t]=e;return t},Jr=e=>{var{editor:t,children:n,onChange:r,value:i}=e,a=Ir(e,["editor","children","onChange","value"]),[s,u]=(0,o.useState)(0),c=(0,o.useMemo)((()=>(t.children=i,Object.assign(t,a),[t])),[s,i,...Object.values(a)]),l=(0,o.useCallback)((()=>{r(t.children),u(s+1)}),[s,r]);return Lr.set(t,l),(0,o.useEffect)((()=>()=>{Lr.set(t,(()=>{}))}),[]),o.createElement(qr.Provider,{value:c},o.createElement(Gr.Provider,{value:t},o.createElement(Wr.Provider,{value:Ur.isFocused(t)},n)))},Yr=(0,o.createContext)(!1),Qr=(0,o.createContext)(!1),Xr=e=>{var{isLast:t,leaf:n,parent:r,text:i}=e,a=zr(),s=Ur.findPath(a,i),u=Fn.parent(s);return a.isVoid(r)?o.createElement($r,{length:Tn.string(r).length}):""!==n.text||r.children[r.children.length-1]!==i||a.isInline(r)||""!==An.string(a,u)?""===n.text?o.createElement($r,null):t&&"\n"===n.text.slice(-1)?o.createElement(Kr,{isTrailing:!0,text:n.text}):o.createElement(Kr,{text:n.text}):o.createElement($r,{isLineBreak:!0})},Kr=e=>{var{text:t,isTrailing:n=!1}=e;return o.createElement("span",{"data-slate-string":!0},t,n?"\n":null)},$r=e=>{var{length:t=0,isLineBreak:n=!1}=e;return o.createElement("span",{"data-slate-zero-width":n?"n":"z","data-slate-length":t},"\ufeff",n?o.createElement("br",null):null)},eo=o.memo((e=>{var{leaf:t,isLast:n,text:r,parent:i,renderLeaf:a=(e=>o.createElement(to,Object.assign({},e)))}=e,s=o.createElement(Xr,{isLast:n,leaf:t,parent:i,text:r});t[Rr]&&(s=o.createElement(o.Fragment,null,o.createElement("span",{contentEditable:!1,style:{pointerEvents:"none",display:"inline-block",verticalAlign:"text-top",width:"0",maxWidth:"100%",whiteSpace:"nowrap",opacity:"0.333",userSelect:"none"}},t.placeholder),s));return a({attributes:{"data-slate-leaf":!0},children:s,leaf:t,text:r})}),((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.text===e.text&&Jn.matches(t.leaf,e.leaf))),to=e=>{var{attributes:t,children:n}=e;return o.createElement("span",Object.assign({},t),n)},no="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,ro=o.memo((e=>{for(var{decorations:t,isLast:n,parent:r,renderLeaf:i,text:a}=e,s=zr(),u=(0,o.useRef)(null),c=Jn.decorations(a,t),l=Ur.findKey(s,a),p=[],d=0;d<c.length;d++){var f=c[d];p.push(o.createElement(eo,{isLast:n&&d===c.length-1,key:"".concat(l.id,"-").concat(d),leaf:f,text:a,parent:r,renderLeaf:i}))}return no((()=>{u.current?(kr.set(l,u.current),Ar.set(a,u.current),Mr.set(u.current,a)):(kr.delete(l),Ar.delete(a))})),o.createElement("span",{"data-slate-node":"text",ref:u},p)}),((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.text===e.text)),oo=o.memo((e=>{var{decorate:t,decorations:n,element:r,renderElement:i=(e=>o.createElement(io,Object.assign({},e))),renderLeaf:a,selection:s}=e,u=(0,o.useRef)(null),c=zr(),l=(0,o.useContext)(Yr),p=c.isInline(r),d=Ur.findKey(c,r),f=o.createElement(so,{decorate:t,decorations:n,node:r,renderElement:i,renderLeaf:a,selection:s}),m={"data-slate-node":"element",ref:u};if(p&&(m["data-slate-inline"]=!0),!p&&An.hasInlines(c,r)){var h=Tn.string(r),g=wr()(h);"rtl"===g&&(m.dir=g)}if(An.isVoid(c,r)){m["data-slate-void"]=!0,!l&&p&&(m.contentEditable=!1);var v=p?"span":"div",[[b]]=Tn.texts(r);f=l?null:o.createElement(v,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},o.createElement(ro,{decorations:[],isLast:!1,parent:r,text:b})),Cr.set(b,0),Dr.set(b,r)}return no((()=>{u.current?(kr.set(d,u.current),Ar.set(r,u.current),Mr.set(u.current,r)):(kr.delete(d),Ar.delete(r))})),o.createElement(Qr.Provider,{value:!!s},i({attributes:m,children:f,element:r}))}),((e,t)=>e.decorate===t.decorate&&e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&ao(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&Gn.equals(e.selection,t.selection)))),io=e=>{var{attributes:t,children:n,element:r}=e,i=zr().isInline(r)?"span":"div";return o.createElement(i,Object.assign({},t,{style:{position:"relative"}}),n)},ao=(e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],o=t[n];if(!Gn.equals(r,o))return!1}return!0},so=e=>{for(var{decorate:t,decorations:n,node:r,renderElement:i,renderLeaf:a,selection:s}=e,u=zr(),c=Ur.findPath(u,r),l=[],p=Nn.isElement(r)&&!u.isInline(r)&&An.hasInlines(u,r),d=0;d<r.children.length;d++){var f=c.concat(d),m=r.children[d],h=Ur.findKey(u,m),g=An.range(u,f),v=s&&Gn.intersection(g,s),b=t([m,f]);for(var y of n){var w=Gn.intersection(y,g);w&&b.push(w)}Nn.isElement(m)?l.push(o.createElement(oo,{decorate:t,decorations:b,element:m,key:h.id,renderElement:i,renderLeaf:a,selection:v})):l.push(o.createElement(ro,{decorations:b,key:h.id,isLast:p&&d===r.children.length-1,parent:r,renderLeaf:a,text:m})),Cr.set(m,d),Dr.set(m,r)}return o.createElement(o.Fragment,null,l)},uo=("undefined"!=typeof navigator&&"undefined"!=typeof window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&window.MSStream,"undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent)),co="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),lo="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),po="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])/i.test(navigator.userAgent),fo={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z"},mo={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},ho={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},go=e=>{var t=fo[e],n=mo[e],r=ho[e],o=t&&(0,Er.TB)(t),i=n&&(0,Er.TB)(n),a=r&&(0,Er.TB)(r);return e=>!(!o||!o(e))||(!!(uo&&i&&i(e))||!(uo||!a||!a(e)))},vo={isBold:go("bold"),isCompose:go("compose"),isMoveBackward:go("moveBackward"),isMoveForward:go("moveForward"),isDeleteBackward:go("deleteBackward"),isDeleteForward:go("deleteForward"),isDeleteLineBackward:go("deleteLineBackward"),isDeleteLineForward:go("deleteLineForward"),isDeleteWordBackward:go("deleteWordBackward"),isDeleteWordForward:go("deleteWordForward"),isExtendBackward:go("extendBackward"),isExtendForward:go("extendForward"),isExtendLineBackward:go("extendLineBackward"),isExtendLineForward:go("extendLineForward"),isItalic:go("italic"),isMoveLineBackward:go("moveLineBackward"),isMoveLineForward:go("moveLineForward"),isMoveWordBackward:go("moveWordBackward"),isMoveWordForward:go("moveWordForward"),isRedo:go("redo"),isSplitBlock:go("splitBlock"),isTransposeCharacter:go("transposeCharacter"),isUndo:go("undo")};function bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bo(Object(n),!0).forEach((function(t){Sr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var wo=!(co||po),Eo=e=>{var{autoFocus:t,decorate:n=So,onDOMBeforeInput:r,placeholder:i,readOnly:a=!1,renderElement:s,renderLeaf:u,style:c={},as:l="div"}=e,p=Ir(e,["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","style","as"]),d=Vr(),f=(0,o.useRef)(null);jr.set(d,a);var m=(0,o.useMemo)((()=>({isComposing:!1,isUpdatingSelection:!1,latestElement:null})),[]);no((()=>{f.current?(Pr.set(d,f.current),Ar.set(d,f.current),Mr.set(f.current,d)):Ar.delete(d)})),no((()=>{var{selection:e}=d,t=window.getSelection();if(!m.isComposing&&t&&Ur.isFocused(d)){var n="None"!==t.type;if(e||n){var r=Pr.get(d),o=!1;if(r.contains(t.anchorNode)&&r.contains(t.focusNode)&&(o=!0),!(n&&o&&e&&Gn.equals(Ur.toSlateRange(d,t),e))){var i=Ur.toDOMNode(d,d);m.isUpdatingSelection=!0,t.removeAllRanges();var a=e&&Ur.toDOMRange(d,e);if(a){t.addRange(a);var s=a.startContainer.parentElement;br(s,{scrollMode:"if-needed",boundary:i})}setTimeout((()=>{a&&co&&i.focus(),m.isUpdatingSelection=!1}))}}}})),(0,o.useEffect)((()=>{f.current&&t&&f.current.focus()}),[t]);var h=(0,o.useCallback)((e=>{if(!a&&xo(d,e.target)&&!Do(e,r)){var{selection:t}=d,{inputType:n}=e,o=e.dataTransfer||e.data||void 0;if("insertCompositionText"===n||"deleteCompositionText"===n)return;if(e.preventDefault(),!n.startsWith("delete")||n.startsWith("deleteBy")){var[i]=e.getTargetRanges();if(i){var s=Ur.toSlateRange(d,i);t&&Gn.equals(t,s)||ir.select(d,s)}}if(t&&Gn.isExpanded(t)&&n.startsWith("delete"))return void An.deleteFragment(d);switch(n){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":An.deleteFragment(d);break;case"deleteContent":case"deleteContentForward":An.deleteForward(d);break;case"deleteContentBackward":An.deleteBackward(d);break;case"deleteEntireSoftLine":An.deleteBackward(d,{unit:"line"}),An.deleteForward(d,{unit:"line"});break;case"deleteHardLineBackward":An.deleteBackward(d,{unit:"block"});break;case"deleteSoftLineBackward":An.deleteBackward(d,{unit:"line"});break;case"deleteHardLineForward":An.deleteForward(d,{unit:"block"});break;case"deleteSoftLineForward":An.deleteForward(d,{unit:"line"});break;case"deleteWordBackward":An.deleteBackward(d,{unit:"word"});break;case"deleteWordForward":An.deleteForward(d,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":An.insertBreak(d);break;case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":o instanceof DataTransfer?Ur.insertData(d,o):"string"==typeof o&&An.insertText(d,o)}}}),[a]);no((()=>(f.current&&f.current.addEventListener("beforeinput",h),()=>{f.current&&f.current.removeEventListener("beforeinput",h)})),[h]);var g=(0,o.useCallback)(pr()((()=>{if(!a&&!m.isComposing&&!m.isUpdatingSelection){var{activeElement:e}=window.document,t=Ur.toDOMNode(d,d),n=window.getSelection();if(e===t?(m.latestElement=e,Tr.set(d,!0)):Tr.delete(d),!n)return ir.deselect(d);var{anchorNode:r,focusNode:o}=n,i=xo(d,r)||Oo(d,r),s=xo(d,o)||Oo(d,o);if(i&&s){var u=Ur.toSlateRange(d,n);ir.select(d,u)}else ir.deselect(d)}}),100),[a]);no((()=>(window.document.addEventListener("selectionchange",g),()=>{window.document.removeEventListener("selectionchange",g)})),[g]);var v=n([d,[]]);if(i&&1===d.children.length&&1===Array.from(Tn.texts(d)).length&&""===Tn.string(d)){var b=An.start(d,[]);v.push({[Rr]:!0,placeholder:i,anchor:b,focus:b})}return o.createElement(Yr.Provider,{value:a},o.createElement(l,Object.assign({"data-gramm":!1,role:a?void 0:"textbox"},p,{spellCheck:wo?p.spellCheck:void 0,autoCorrect:wo?p.autoCorrect:void 0,autoCapitalize:wo?p.autoCapitalize:void 0,"data-slate-editor":!0,"data-slate-node":"value",contentEditable:!a||void 0,suppressContentEditableWarning:!0,ref:f,style:yo({outline:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},c),onBeforeInput:(0,o.useCallback)((e=>{if(!wo&&!a&&!Co(e,p.onBeforeInput)&&xo(d,e.target)){e.preventDefault();var t=e.data;An.insertText(d,t)}}),[a]),onBlur:(0,o.useCallback)((e=>{if(!a&&!m.isUpdatingSelection&&xo(d,e.target)&&!Co(e,p.onBlur)&&m.latestElement!==window.document.activeElement){var{relatedTarget:t}=e;if(!(t===Ur.toDOMNode(d,d)||_r(t)&&t.hasAttribute("data-slate-spacer"))){if(null!=t&&Fr(t)&&Ur.hasDOMNode(d,t)){var n=Ur.toSlateNode(d,t);if(Nn.isElement(n)&&!d.isVoid(n))return}Tr.delete(d)}}}),[a,p.onBlur]),onClick:(0,o.useCallback)((e=>{if(!a&&Io(d,e.target)&&!Co(e,p.onClick)&&Fr(e.target)){var t=Ur.toSlateNode(d,e.target),n=Ur.findPath(d,t),r=An.start(d,n),o=An.end(d,n),i=An.void(d,{at:r}),s=An.void(d,{at:o});if(i&&s&&Fn.equals(i[1],s[1])){var u=An.range(d,r);ir.select(d,u)}}}),[a,p.onClick]),onCompositionEnd:(0,o.useCallback)((e=>{xo(d,e.target)&&!Co(e,p.onCompositionEnd)&&(m.isComposing=!1,lo||co||!e.data||An.insertText(d,e.data))}),[p.onCompositionEnd]),onCompositionStart:(0,o.useCallback)((e=>{xo(d,e.target)&&!Co(e,p.onCompositionStart)&&(m.isComposing=!0)}),[p.onCompositionStart]),onCopy:(0,o.useCallback)((e=>{xo(d,e.target)&&!Co(e,p.onCopy)&&(e.preventDefault(),Ur.setFragmentData(d,e.clipboardData))}),[p.onCopy]),onCut:(0,o.useCallback)((e=>{if(!a&&xo(d,e.target)&&!Co(e,p.onCut)){e.preventDefault(),Ur.setFragmentData(d,e.clipboardData);var{selection:t}=d;t&&Gn.isExpanded(t)&&An.deleteFragment(d)}}),[a,p.onCut]),onDragOver:(0,o.useCallback)((e=>{if(Io(d,e.target)&&!Co(e,p.onDragOver)){var t=Ur.toSlateNode(d,e.target);An.isVoid(d,t)&&e.preventDefault()}}),[p.onDragOver]),onDragStart:(0,o.useCallback)((e=>{if(Io(d,e.target)&&!Co(e,p.onDragStart)){var t=Ur.toSlateNode(d,e.target),n=Ur.findPath(d,t);if(An.void(d,{at:n})){var r=An.range(d,n);ir.select(d,r)}Ur.setFragmentData(d,e.dataTransfer)}}),[p.onDragStart]),onDrop:(0,o.useCallback)((e=>{if(Io(d,e.target)&&!a&&!Co(e,p.onDrop)&&(!wo||!lo&&e.dataTransfer.files.length>0)){e.preventDefault();var t=Ur.findEventRange(d,e),n=e.dataTransfer;ir.select(d,t),Ur.insertData(d,n)}}),[a,p.onDrop]),onFocus:(0,o.useCallback)((e=>{if(!a&&!m.isUpdatingSelection&&xo(d,e.target)&&!Co(e,p.onFocus)){var t=Ur.toDOMNode(d,d);if(m.latestElement=window.document.activeElement,co&&e.target!==t)return void t.focus();Tr.set(d,!0)}}),[a,p.onFocus]),onKeyDown:(0,o.useCallback)((e=>{if(!a&&xo(d,e.target)&&!Co(e,p.onKeyDown)){var{nativeEvent:t}=e,{selection:n}=d;if(vo.isRedo(t))return e.preventDefault(),void("function"==typeof d.redo&&d.redo());if(vo.isUndo(t))return e.preventDefault(),void("function"==typeof d.undo&&d.undo());if(vo.isMoveLineBackward(t))return e.preventDefault(),void ir.move(d,{unit:"line",reverse:!0});if(vo.isMoveLineForward(t))return e.preventDefault(),void ir.move(d,{unit:"line"});if(vo.isExtendLineBackward(t))return e.preventDefault(),void ir.move(d,{unit:"line",edge:"focus",reverse:!0});if(vo.isExtendLineForward(t))return e.preventDefault(),void ir.move(d,{unit:"line",edge:"focus"});if(vo.isMoveBackward(t))return e.preventDefault(),void(n&&Gn.isCollapsed(n)?ir.move(d,{reverse:!0}):ir.collapse(d,{edge:"start"}));if(vo.isMoveForward(t))return e.preventDefault(),void(n&&Gn.isCollapsed(n)?ir.move(d):ir.collapse(d,{edge:"end"}));if(vo.isMoveWordBackward(t))return e.preventDefault(),void ir.move(d,{unit:"word",reverse:!0});if(vo.isMoveWordForward(t))return e.preventDefault(),void ir.move(d,{unit:"word"});if(!wo){if(vo.isBold(t)||vo.isItalic(t)||vo.isTransposeCharacter(t))return void e.preventDefault();if(vo.isSplitBlock(t))return e.preventDefault(),void An.insertBreak(d);if(vo.isDeleteBackward(t))return e.preventDefault(),void(n&&Gn.isExpanded(n)?An.deleteFragment(d):An.deleteBackward(d));if(vo.isDeleteForward(t))return e.preventDefault(),void(n&&Gn.isExpanded(n)?An.deleteFragment(d):An.deleteForward(d));if(vo.isDeleteLineBackward(t))return e.preventDefault(),void(n&&Gn.isExpanded(n)?An.deleteFragment(d):An.deleteBackward(d,{unit:"line"}));if(vo.isDeleteLineForward(t))return e.preventDefault(),void(n&&Gn.isExpanded(n)?An.deleteFragment(d):An.deleteForward(d,{unit:"line"}));if(vo.isDeleteWordBackward(t))return e.preventDefault(),void(n&&Gn.isExpanded(n)?An.deleteFragment(d):An.deleteBackward(d,{unit:"word"}));if(vo.isDeleteWordForward(t))return e.preventDefault(),void(n&&Gn.isExpanded(n)?An.deleteFragment(d):An.deleteForward(d,{unit:"word"}))}}}),[a,p.onKeyDown]),onPaste:(0,o.useCallback)((e=>{Co(e,p.onPaste)||wo&&!(e=>e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length)(e.nativeEvent)||a||!xo(d,e.target)||(e.preventDefault(),Ur.insertData(d,e.clipboardData))}),[a,p.onPaste])}),o.createElement(so,{decorate:n,decorations:v,node:d,renderElement:s,renderLeaf:u,selection:d.selection})))},So=()=>[],Io=(e,t)=>Fr(t)&&Ur.hasDOMNode(e,t),xo=(e,t)=>Fr(t)&&Ur.hasDOMNode(e,t,{editable:!0}),Oo=(e,t)=>{var n=Io(e,t)&&Ur.toSlateNode(e,t);return An.isVoid(e,n)},Co=(e,t)=>!!t&&(t(e),e.isDefaultPrevented()||e.isPropagationStopped()),Do=(e,t)=>!!t&&(t(e),e.defaultPrevented),Po={isHistory:e=>tt(e)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||_n.isOperationList(e.redos[0]))&&(0===e.undos.length||_n.isOperationList(e.undos[0]))},Mo=(new WeakMap,new WeakMap),ko=new WeakMap,Ao={isHistoryEditor:e=>An.isEditor(e)&&Po.isHistory(e.history),isMerging:e=>ko.get(e),isSaving:e=>Mo.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=Ao.isMerging(e);ko.set(e,!1),t(),ko.set(e,n)},withoutSaving(e,t){var n=Ao.isSaving(e);Mo.set(e,!1),t(),Mo.set(e,n)}},No=(e,t)=>"set_selection"===e.type||(!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!Fn.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!Fn.equals(e.path,t.path))),jo=(e,t)=>"set_selection"!==e.type||null!=e.newProperties,To=(e,t)=>!(!t||"set_selection"!==e.type||"set_selection"!==t.type),Lo=e=>"set_selection"!==e.type;n(77295),n(19985),n(91967);function Ro(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _o=new WeakMap,Fo=new WeakMap;class Bo{}class Zo extends Bo{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();var{offset:t,path:n}=e;this.offset=t,this.path=n}}class Ho extends Bo{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();var{offset:t,path:n}=e;this.offset=t,this.path=n}}var Uo=e=>Fo.get(e);function Wo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Go(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wo(Object(n),!0).forEach((function(t){Ro(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var zo=new WeakSet,qo=e=>{var t=[],n=e=>{if(null!=e){var r=t[t.length-1];if("string"==typeof e){var o={text:e};zo.add(o),e=o}if(Jn.isText(e)){var i=e;Jn.isText(r)&&zo.has(r)&&zo.has(i)&&Jn.equals(r,i,{loose:!0})?r.text+=i.text:t.push(i)}else if(Nn.isElement(e))t.push(e);else{if(!(e instanceof Bo))throw new Error("Unexpected hyperscript child object: ".concat(e));var a=t[t.length-1];Jn.isText(a)||(n(""),a=t[t.length-1]),e instanceof Zo?((e,t)=>{var n=e.text.length;_o.set(e,[n,t])})(a,e):e instanceof Ho&&((e,t)=>{var n=e.text.length;Fo.set(e,[n,t])})(a,e)}}};for(var r of e.flat(1/0))n(r);return t};function Vo(e,t,n){return Go({},t,{children:qo(n)})}function Jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jo(Object(n),!0).forEach((function(t){Ro(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qo={anchor:function(e,t,n){return new Zo(t)},cursor:function(e,t,n){return[new Zo(t),new Ho(t)]},editor:function(e,t,n){var r,o=[];for(var i of n)Gn.isRange(i)?r=i:o.push(i);var a,s=qo(o),u={},c=ur();for(var[l,p]of(Object.assign(c,t),c.children=s,Tn.texts(c))){var d=(a=l,_o.get(a)),f=Uo(l);if(null!=d){var[m]=d;u.anchor={path:p,offset:m}}if(null!=f){var[h]=f;u.focus={path:p,offset:h}}}if(u.anchor&&!u.focus)throw new Error("Slate hyperscript ranges must have both `<anchor />` and `<focus />` defined if one is defined, but you only defined `<anchor />`. For collapsed selections, use `<cursor />` instead.");if(!u.anchor&&u.focus)throw new Error("Slate hyperscript ranges must have both `<anchor />` and `<focus />` defined if one is defined, but you only defined `<focus />`. For collapsed selections, use `<cursor />` instead.");return null!=r?c.selection=r:Gn.isRange(u)&&(c.selection=u),c},element:Vo,focus:function(e,t,n){return new Ho(t)},fragment:function(e,t,n){return qo(n)},selection:function(e,t,n){var r=n.find((e=>e instanceof Zo)),o=n.find((e=>e instanceof Ho));if(!r||null==r.offset||null==r.path)throw new Error("The <selection> hyperscript tag must have an <anchor> tag as a child with `path` and `offset` attributes defined.");if(!o||null==o.offset||null==o.path)throw new Error("The <selection> hyperscript tag must have a <focus> tag as a child with `path` and `offset` attributes defined.");return Go({anchor:{offset:r.offset,path:r.path},focus:{offset:o.offset,path:o.path}},t)},text:function(e,t,n){var r=qo(n);if(r.length>1)throw new Error("The <text> hyperscript tag must only contain a single node's worth of children.");var[o]=r;if(null==o&&(o={text:""}),!Jn.isText(o))throw new Error("\n The <text> hyperscript tag can only contain text content as children.");return zo.delete(o),Object.assign(o,t),o}},Xo=e=>function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];var a=e[t];if(!a)throw new Error("No hyperscript creator found for tag: <".concat(t,">"));null==n&&(n={}),tt(n)||(o=[n].concat(o),n={});var s=a(t,n,o=o.filter((e=>Boolean(e))).flat());return s},Ko=e=>{var t={},n=function(n){var r=e[n];if("object"!=typeof r)throw new Error("Properties specified for a hyperscript shorthand should be an object, but for the custom element <".concat(n,"> tag you passed: ").concat(r));t[n]=(e,t,n)=>Vo(0,Yo({},r,{},t),n)};for(var r in e)n(r);return t},$o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{elements:t={}}=e,n=Ko(t),r=Yo({},Qo,{},n,{},e.creators),o=Xo(r);return o}(),ei=n(43613),ti=n.n(ei),ni={A:function(e){return{type:"link",url:e.getAttribute("href"),newTab:"_blank"===e.getAttribute("target"),noFollow:!(!e.getAttribute("rel")||!e.getAttribute("rel").includes("nofollow"))}},P:function(){return{type:"paragraph"}},"WPRM-CODE":function(e){return{type:"code"}}},ri={EM:function(){return{italic:!0}},I:function(){return{italic:!0}},STRONG:function(){return{bold:!0}},B:function(){return{bold:!0}},U:function(){return{underline:!0}},SUB:function(){return{subscript:!0}},SUP:function(){return{superscript:!0}}},oi=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(3===t.nodeType)return t.textContent.replace(/\r?\n|\r/g,"");if(1!==t.nodeType)return null;if("BR"===t.nodeName)return"";var r=t.nodeName,o=t;"PRE"===r&&t.childNodes[0]&&"CODE"===t.childNodes[0].nodeName&&(o=t.childNodes[0]);var i=Array.from(o.childNodes).map((function(t){return e(t,n)})).reduce((function(e,t){return e.concat(t)}),[]);if("BODY"===t.nodeName)return $o("fragment",{},i);if(n&&"P"===r)return i;if(ni[r]){var a=ni[r](t);"A"===r&&t.hasAttribute("data-eafl-id")&&(a={type:"affiliate-link",url:t.getAttribute("href"),id:parseInt(t.getAttribute("data-eafl-id"))});var s=$o("element",a,i);return"WPRM-CODE"===r&&(s.children=[{text:t.innerHTML}]),0===s.children.length&&(s.children=[{text:""}]),s}if(ri[r]){var u=ri[r](t);return(i=i.map((function(e){return"string"==typeof e||Jn.isText(e)?e:e.hasOwnProperty("type")&&"link"===e.type&&(console.log("Information Lost",e),e.hasOwnProperty("children")&&1===e.children.length&&e.children[0].hasOwnProperty("text"))?e.children[0].text:""}))).map((function(e){return $o("text",u,e)}))}return i},ii=function e(t){if(Jn.isText(t)){var n=ti()(t.text);return t.bold&&(n="<strong>".concat(n,"</strong>")),t.italic&&(n="<em>".concat(n,"</em>")),t.underline&&(n="<u>".concat(n,"</u>")),t.subscript&&(n="<sub>".concat(n,"</sub>")),t.superscript&&(n="<sup>".concat(n,"</sup>")),n}var r=t.children.map((function(t){return e(t)})).join("");switch(t.type){case"paragraph":return"<p>".concat(r,"</p>");case"link":return'<a href="'.concat(ti()(t.url),'"').concat(t.newTab?' target="_blank"':"").concat(t.noFollow?' rel="nofollow"':"",">").concat(r,"</a>");case"affiliate-link":return'<a href="'.concat(ti()(t.url),'" data-eafl-id="').concat(ti()(t.id),'" class="eafl-link">').concat(r,"</a>");case"code":return"<wprm-code>".concat(r,"</wprm-code>");default:return r}},ai=n(62834),si=function(e){var t=document.getElementById("wprm-admin-modal-toolbar-container");return t?r.createPortal(o.createElement("div",{className:"wprm-admin-modal-toolbar",onMouseDown:function(e){e.preventDefault()}},e.children),t):null};function ui(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ci(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ci(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ci(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function li(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pi=function(){if(!window.hasOwnProperty("EAFL_Modal"))return null;var e=Vr(),t=ui(An.nodes(e,{match:function(e){return"affiliate-link"===e.type}}),1)[0],n=!!t;return o.createElement(o.Fragment,null,o.createElement("span",{className:"wprm-admin-modal-toolbar-button".concat(n?" wprm-admin-modal-toolbar-button-active":""),onMouseDown:function(r){r.preventDefault();var o=e.selection,i=o&&Gn.isCollapsed(o),a="";if(i||(window.getSelection?a=window.getSelection().toString():document.selection&&"Control"!=document.selection.type&&(a=document.selection.createRange().text)),n){var s=t[0];EAFL_Modal.open("edit",{linkId:s.id,saveCallback:function(n){s.url!==n.url&&function(e,t,n,r){var o=t[0],i=t[1],a=li({},n,o[n]),s=li({},n,r);e.apply({type:"set_node",path:i,properties:a,newProperties:s})}(e,t,"url",n.url)}})}else EAFL_Modal.open("insert",{insertCallback:function(t,n){n||(n="affiliate link");var r={type:"affiliate-link",children:i?[{text:n}]:[],url:t.url,id:t.id};i?ir.insertNodes(e,r):(ir.select(e,o),ir.wrapNodes(e,r,{split:!0}),ir.collapse(e,{edge:"end"}))},selectedText:a})}},o.createElement(ai.Z,{type:"eafl-link",title:n?(0,u.S)("Edit Affiliate Link"):(0,u.S)("Add Affiliate Link")})),n&&o.createElement("span",{className:"wprm-admin-modal-toolbar-button wprm-admin-modal-toolbar-button-active",onMouseDown:function(t){t.preventDefault(),ir.unwrapNodes(e,{match:function(e){return"affiliate-link"===e.type}})}},o.createElement(ai.Z,{type:"eafl-unlink",title:(0,u.S)("Remove Affiliate Link")})))};function di(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return fi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fi(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var mi=function(e){var t=Vr(),n=function(e,t){return!!di(An.nodes(e,{match:function(e){return e.type===t}}),1)[0]}(t,e.type);return o.createElement(o.Fragment,null,n?o.createElement("span",{className:"wprm-admin-modal-toolbar-button wprm-admin-modal-toolbar-button-active",onMouseDown:function(n){n.preventDefault(),ir.unwrapNodes(t,{match:function(t){return t.type===e.type}})}},e.IconRemove()):o.createElement("span",{className:"wprm-admin-modal-toolbar-button",onMouseDown:function(n){n.preventDefault();var r=t.selection,o=r&&Gn.isCollapsed(r),i=!0;if("link"===e.type&&(i=window.prompt((0,u.S)("Enter the URL of the link:"))),"code"===e.type&&o&&(i=window.prompt((0,u.S)("HTML or Shortcode:"))),i){var a={type:e.type,children:o?[{text:""}]:[]};switch(e.type){case"link":a.url=i,o&&(a.children=[{text:i}]);break;case"code":o&&(a.children=[{text:i}]);break;default:o&&(a.children=[{text:e.type}])}o?ir.insertNodes(t,a):(ir.wrapNodes(t,a,{split:!0}),ir.collapse(t,{edge:"end"}))}}},e.IconAdd()))},hi=function(e){var t=Vr();return o.createElement("span",{className:"wprm-admin-modal-toolbar-button",onMouseDown:function(n){n.preventDefault(),An.insertText(t,e.character)}},o.createElement(l.Z,{content:e.title},o.createElement("span",{className:"wprm-admin-modal-toolbar-button-character"},e.character)))},gi=function(e){var t=Vr(),n=e.isMarkActive(t,e.type);return o.createElement("span",{className:"wprm-admin-modal-toolbar-button".concat(n?" wprm-admin-modal-toolbar-button-active":""),onMouseDown:function(n){n.preventDefault(),e.toggleMark(t,e.type)}},o.createElement(ai.Z,{type:e.type,title:e.title}))};function vi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vi(Object(n),!0).forEach((function(t){yi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ei(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ei(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ei(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Si=function(e){var t=Vr();return o.createElement("span",{className:"wprm-admin-modal-toolbar-button",onMouseDown:function(n){n.preventDefault();var r=e.hasOwnProperty("before")?e.before:"",o=e.hasOwnProperty("after")?e.after:"",i=t.selection;if(i&&Gn.isCollapsed(i))t.insertText("".concat(r).concat(o)),ir.move(t,{distance:o.length,reverse:!0});else{var a=wi(Gn.edges(i),2),s=a[0],u=a[1];JSON.stringify(s.path)===JSON.stringify(u.path)&&(u=bi(bi({},u),{},{offset:u.offset+r.length})),ir.insertText(t,r,{at:s}),ir.insertText(t,o,{at:u}),ir.collapse(t,{edge:"end"})}}},e.Icon())},Ii=function(e){return o.createElement("span",{className:"wprm-admin-modal-toolbar-spacer"})};function xi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Oi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Oi(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ci=function(){var e=Vr(),t=xi(An.nodes(e,{match:function(e){return"affiliate-link"===e.type}}),1)[0];if(!t)return null;var n=t[0];return o.createElement("div",{className:"wprm-admin-modal-toolbar-link"},o.createElement(ai.Z,{type:"eafl-link"}),o.createElement("span",null,"#",n.id),o.createElement(Ii,null),o.createElement(ai.Z,{type:"link"}),o.createElement("span",null,n.url))};function Di(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Pi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pi(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ki=function(e,t){var n=t[0],r=window.prompt((0,u.S)("Enter the URL of the link:"),n.url);r?Ni(e,t,"url",r):""===r&&ir.unwrapNodes(e,{match:function(e){return"link"===e.type}})},Ai=function(e,t,n){var r=t[0],o=!!r.hasOwnProperty(n)&&r[n];Ni(e,t,n,!o)},Ni=function(e,t,n,r){var o=t[0],i=t[1],a=Mi({},n,o[n]),s=Mi({},n,r);e.apply({type:"set_node",path:i,properties:a,newProperties:s})},ji=function(e){var t=Vr(),n=Di(An.nodes(t,{match:function(e){return"link"===e.type}}),1)[0];if(!n)return null;var r=n[0];return o.createElement("div",{className:"wprm-admin-modal-toolbar-link"},o.createElement(ai.Z,{type:"link",onClick:function(){return ki(t,n)}}),o.createElement("span",{className:"wprm-admin-modal-toolbar-link-value",onMouseDown:function(){return ki(t,n)}},r.url),o.createElement(Ii,null),o.createElement(ai.Z,{type:r.newTab?"checkbox-checked":"checkbox-empty",onClick:function(){return Ai(t,n,"newTab")}}),o.createElement("span",{className:"wprm-admin-modal-toolbar-link-value",onMouseDown:function(){return Ai(t,n,"newTab")}},(0,u.S)("Open in new tab")),o.createElement(Ii,null),o.createElement(ai.Z,{type:r.noFollow?"checkbox-checked":"checkbox-empty",onClick:function(){return Ai(t,n,"noFollow")}}),o.createElement("span",{className:"wprm-admin-modal-toolbar-link-value",onMouseDown:function(){return Ai(t,n,"noFollow")}},(0,u.S)("Use nofollow")))};n(23528);function Ti(e){return(Ti="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Li(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ri(e,t){return(Ri=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Bi(e);if(t){var o=Bi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fi(this,n)}}function Fi(e,t){return!t||"object"!==Ti(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Bi(e){return(Bi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Zi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ri(e,t)}(a,e);var t,n,r,i=_i(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=i.call(this,e),window.wprm_admin_modal_suggestions=window.wprm_admin_modal_suggestions||{},window.wprm_admin_modal_suggestions.hasOwnProperty(e.type)||(window.wprm_admin_modal_suggestions[e.type]={}),t.state={search:"",suggestions:[],loading:!1},t}return t=a,(n=[{key:"componentDidMount",value:function(){this.updateSuggestions(this.props.value)}},{key:"componentDidUpdate",value:function(){this.props.value!==this.state.search&&this.updateSuggestions(this.props.value)}},{key:"updateSuggestions",value:function(e){var t=this;window.wprm_admin_modal_suggestions[this.props.type].hasOwnProperty(e)?this.setState({suggestions:window.wprm_admin_modal_suggestions[this.props.type][e],search:e}):(this.setState({loading:!0,search:e}),c.Z.modal.getSuggestions({type:this.props.type,search:e}).then((function(n){n&&(window.wprm_admin_modal_suggestions[t.props.type][e]=n.suggestions,t.setState({suggestions:n.suggestions,loading:!1}))})))}},{key:"render",value:function(){var e=this;return o.createElement("div",{className:"wprm-admin-modal-toolbar-suggest"},this.state.loading||0!==this.state.suggestions.length?o.createElement(o.Fragment,null,o.createElement("strong",null,(0,u.S)("Suggestions:")),this.state.loading?o.createElement(We.Z,null):o.createElement(o.Fragment,null,this.state.suggestions.map((function(t,n){return o.createElement("span",{className:"wprm-admin-modal-toolbar-suggestion",onMouseDown:function(n){n.preventDefault(),e.props.onSelect(t.name)},key:n},o.createElement("span",{className:"wprm-admin-modal-toolbar-suggestion-text"},t.name," (",t.count,")"))})))):o.createElement("strong",null,(0,u.S)("No suggestions found.")))}}])&&Li(t.prototype,n),r&&Li(t,r),a}(o.Component);function Hi(){return(Hi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ui=function(e){var t,n="";if("ingredient"!==e.type&&"equipment"!==e.type||(t=Vr(),n=ii(t)),!(0,o.useContext)(Wr))return null;var r={visibility:"hidden"},i=!1,a=!1;if("none"===e.type)return null;switch(e.type){case"no-styling":i=!0;break;case"no-link":a=!0;break;case"equipment":case"ingredient":a=!0}return o.createElement(si,null,o.createElement(Ci,null),o.createElement(ji,null),("ingredient"===e.type||"equipment"===e.type)&&o.createElement(Zi,{value:n,onSelect:function(t){e.setValue([{type:"paragraph",children:[{text:t}]}])},type:e.type}),o.createElement("div",{className:"wprm-admin-modal-toolbar-buttons"},o.createElement("span",{style:i?r:null},o.createElement(gi,Hi({},e,{type:"bold",title:(0,u.S)("Bold")})),o.createElement(gi,Hi({},e,{type:"italic",title:(0,u.S)("Italic")})),o.createElement(gi,Hi({},e,{type:"underline",title:(0,u.S)("Underline")})),o.createElement(Ii,null),o.createElement(gi,Hi({},e,{type:"subscript",title:(0,u.S)("Subscript")})),o.createElement(gi,Hi({},e,{type:"superscript",title:(0,u.S)("Superscript")}))),o.createElement(Ii,null),o.createElement("span",{style:a?r:null},o.createElement(mi,{type:"link",IconAdd:function(){return o.createElement(ai.Z,{type:"link",title:(0,u.S)("Add Link")})},IconRemove:function(){return o.createElement(ai.Z,{type:"unlink",title:(0,u.S)("Remove Link")})}}),o.createElement(pi,null)),o.createElement(Ii,null),o.createElement(mi,{type:"code",IconAdd:function(){return o.createElement(ai.Z,{type:"code",title:(0,u.S)("Add HTML or Shortcode")})},IconRemove:function(){return o.createElement(ai.Z,{type:"code",title:(0,u.S)("Remove HTML or Shortcode")})}}),o.createElement(Si,{before:"[adjustable]",after:"[/adjustable]",Icon:function(){return o.createElement(ai.Z,{type:"adjustable",title:(0,u.S)("Add Adjustable Shortcode")})}}),o.createElement(Si,{before:"[timer minutes=0]",after:"[/timer]",Icon:function(){return o.createElement(ai.Z,{type:"clock",title:(0,u.S)("Add Timer Shortcode")})}}),o.createElement(Ii,null),o.createElement(hi,{character:"½"}),o.createElement(hi,{character:"⅓"}),o.createElement(hi,{character:"⅔"}),o.createElement(hi,{character:"¼"}),o.createElement(hi,{character:"¾"}),o.createElement(hi,{character:"⅕"}),o.createElement(hi,{character:"⅙"}),o.createElement(hi,{character:"⅐"}),o.createElement(hi,{character:"⅛"}),o.createElement(Ii,null),o.createElement(hi,{character:"°"}),o.createElement(hi,{character:"Ø"})))};function Wi(){return(Wi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Gi=function(e){var t=e.attributes,n=e.children,r=e.element;switch(r.type){case"link":return o.createElement("a",Wi({href:r.url,target:r.newTab?"_blank":null,rel:r.noFollow?"nofollow":null},t),n);case"affiliate-link":return o.createElement("a",Wi({href:r.url,"data-eafl-id":r.id,className:"eafl-link"},t),n);case"code":return o.createElement("wprm-code",null,n);default:return o.createElement("p",t,n)}},zi=function(e){var t=e.attributes,n=e.children,r=e.leaf;return r.bold&&(n=o.createElement("strong",null,n)),r.italic&&(n=o.createElement("em",null,n)),r.underline&&(n=o.createElement("u",null,n)),r.subscript&&(n=o.createElement("sub",null,n)),r.superscript&&(n=o.createElement("sup",null,n)),o.createElement("span",t,n)};function qi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Vi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vi(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ji={"mod+b":"bold","mod+i":"italic","mod+u":"underline"},Yi=["link","affiliate-link","code"],Qi=function(e){var t=e.isInline;return e.isInline=function(e){return!!Yi.includes(e.type)||t(e)},e},Xi=function(e,t){var n=e.insertData;return e.insertData=function(r){var o=r.getData("text/html");if(o){var i=(new DOMParser).parseFromString(o,"text/html"),a=oi(i.body,t.singleLine);ir.insertFragment(e,a)}else n(r)},e},Ki=function(e){for(var t=(new DOMParser).parseFromString(e,"text/html"),n=oi(t.body),r=0;r<n.length;r++){var o=n[r];o.hasOwnProperty("text")&&(n[r]={type:"paragraph",children:[o]})}return n},$i=function(e,t){ea(e,t)?An.removeMark(e,t):An.addMark(e,t,!0)},ea=function(e,t){var n=An.marks(e);return!!n&&!0===n[t]},ta=function(e){if(Ke())return e.singleLine?o.createElement("div",{className:"wprm-admin-modal-field-richtext-legacy"},o.createElement(h.Z,e)):o.createElement("div",{className:"wprm-admin-modal-field-richtext-legacy"},o.createElement(be,e));var t=(0,o.useMemo)((function(){return Xi(Qi((e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];Ao.withoutSaving(t,(()=>{An.withoutNormalizing(t,(()=>{for(var e of r)t.apply(e)}))})),e.redos.pop(),e.undos.push(r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];Ao.withoutSaving(t,(()=>{An.withoutNormalizing(t,(()=>{var e=r.map(_n.inverse).reverse();for(var n of e)n===e[e.length-1]&&"set_selection"===n.type&&null==n.newProperties||t.apply(n)}))})),e.redos.push(r),e.undos.pop()}},t.apply=e=>{var{operations:r,history:o}=t,{undos:i}=o,a=i[i.length-1],s=a&&a[a.length-1],u=To(e,s),c=Ao.isSaving(t),l=Ao.isMerging(t);if(null==c&&(c=jo(e)),c){if(null==l&&(l=null!=a&&(0!==r.length||No(e,s)||u)),a&&l)u&&a.pop(),a.push(e);else{var p=[e];i.push(p)}for(;i.length>100;)i.shift();Lo(e)&&(o.redos=[])}n(e)},t})((e=>{var t=e,{apply:n,onChange:o}=t;return t.apply=e=>{var r=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":for(var[o,i]of An.levels(t,{at:e.path})){var a=Ur.findKey(t,o);r.push([i,a])}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":for(var[s,u]of An.levels(t,{at:Fn.parent(e.path)})){var c=Ur.findKey(t,s);r.push([u,c])}}for(var[l,p]of(n(e),r)){var[d]=An.node(t,l);Nr.set(d,p)}},t.setFragmentData=e=>{var{selection:n}=t;if(n){var[r,o]=Gn.edges(n),i=An.void(t,{at:r.path}),a=An.void(t,{at:o.path});if(!Gn.isCollapsed(n)||i){var s=Ur.toDOMRange(t,n),u=s.cloneContents(),c=u.childNodes[0];if(u.childNodes.forEach((e=>{e.textContent&&""!==e.textContent.trim()&&(c=e)})),a){var[l]=a,p=s.cloneRange(),d=Ur.toDOMNode(t,l);p.setEndAfter(d),u=p.cloneContents()}if(i&&(c=u.querySelector("[data-slate-spacer]")),Array.from(u.querySelectorAll("[data-slate-zero-width]")).forEach((e=>{var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),Br(c)){var f=document.createElement("span");f.style.whiteSpace="pre",f.appendChild(c),u.appendChild(f),c=f}var m=t.getFragment(),h=JSON.stringify(m),g=window.btoa(encodeURIComponent(h));c.setAttribute("data-slate-fragment",g),e.setData("application/x-slate-fragment",g);var v=document.createElement("div");v.appendChild(u),v.setAttribute("hidden","true"),document.body.appendChild(v),e.setData("text/html",v.innerHTML),e.setData("text/plain",Hr(v)),document.body.removeChild(v)}}},t.insertData=e=>{var n=e.getData("application/x-slate-fragment");if(n){var r=decodeURIComponent(window.atob(n)),o=JSON.parse(r);ir.insertFragment(t,o)}else{var i=e.getData("text/plain");if(i){var a=i.split(/\r\n|\r|\n/),s=!1;for(var u of a)s&&ir.splitNodes(t,{always:!0}),ir.insertText(t,u),s=!0}}},t.onChange=()=>{r.unstable_batchedUpdates((()=>{var e=Lr.get(t);e&&e(),o()}))},t})(ur()))),e)}),[]),n=e.value;e.value&&e.singleLine&&(n=(n=(n=""+e.value).replace("<p>","")).replace("</p>",""),n="<p>".concat(n,"</p>"));var i,a=[{type:"paragraph",children:[{text:""}]}];try{i=e.value?Ki(n):a}catch(l){alert("Error loading one of the rich text fields. Some information may be lost. Please check the summary, equipment, ingredients and instructions before saving. Make sure your browser is updated to the latest version if you keep getting this message."),console.log("Text Value",n),console.log("FieldRichText Error",l),i=a}var s=qi((0,o.useState)(i),2),u=s[0],c=s[1];return o.createElement(Jr,{spellCheck:!0,editor:t,value:u,onChange:function(n){c(n);var r=ii(t);e.singleLine&&(r=r.replace(/^<p>(.*)<\/p>$/gm,"$1")),e.onChange(r)}},o.createElement(Ui,{type:e.toolbar?e.toolbar:"all",isMarkActive:ea,toggleMark:$i,setValue:function(e){c(e),ir.deselect(t),ir.select(t,{path:[0,0],offset:0}),ir.move(t,{unit:"line",edge:"end"}),ir.collapse(t,{edge:"end"})}}),o.createElement(Eo,{className:"wprm-admin-modal-field-richtext".concat(e.className?" ".concat(e.className):"").concat(e.singleLine?" wprm-admin-modal-field-richtext-singleline":""),placeholder:e.placeholder,renderElement:(0,o.useCallback)((function(e){return o.createElement(Gi,e)}),[]),renderLeaf:(0,o.useCallback)((function(e){return o.createElement(zi,e)}),[]),onKeyDown:function(n){if(e.singleLine&&(0,Er.ZP)("enter",n))n.preventDefault();else{for(var r in Ji){if((0,Er.ZP)(r,n))n.preventDefault(),$i(t,Ji[r])}e.onKeyDown&&e.onKeyDown(n)}},tabIndex:0}))};function na(e){return(na="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ra(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oa(e,t){return(oa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ia(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=sa(e);if(t){var o=sa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return aa(this,n)}}function aa(e,t){return!t||"object"!==na(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function sa(e){return(sa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ua=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&oa(e,t)}(a,e);var t,n,r,i=ia(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={errors:0},t}return t=a,(n=[{key:"componentDidCatch",value:function(e,t){this.setState({errors:this.state.errors+1})}},{key:"render",value:function(){return o.createElement(ta,this.props)}}])&&ra(t.prototype,n),r&&ra(t,r),a}(o.Component),ca=function(e){var t=wprm_admin_modal.options.author.find((function(t){return t.value===e.author.display}));return o.createElement(o.Fragment,null,Ke()&&o.createElement(C.Z,{id:"warning",label:(0,u.S)("Warning!")},o.createElement("p",null,"Looks like you're using an older browser like ",o.createElement("strong",null,"Legacy Microsoft Edge")," or ",o.createElement("strong",null,"Internet Explorer")," which does not support all of our advanced features."),o.createElement("p",null,"We highly recommend using ",o.createElement("a",{href:"https://www.google.com/chrome/",target:"_blank"},"Google Chrome"),", ",o.createElement("a",{href:"https://www.mozilla.org/en-US/firefox/new/",target:"_blank"},"Firefox"),", ",o.createElement("a",{href:"https://support.apple.com/downloads/safari",target:"_blank"},"Safari")," or ",o.createElement("a",{href:"https://www.microsoft.com/en-us/edge",target:"_blank"},"Microsoft Edge"),".")),o.createElement(C.Z,{id:"type",label:(0,u.S)("Recipe Type"),help:(0,u.S)("Make sure to pick the right recipe type to ensure we include the correct metadata.")},o.createElement(g.Z,{id:"type",options:[{value:"food",label:(0,u.S)("Food Recipe")},{value:"howto",label:(0,u.S)("How-to Instructions")},{value:"other",label:(0,u.S)("Other (no metadata)")}],value:e.type,onChange:function(t){e.onRecipeChange({type:t})}})),o.createElement(C.Z,{id:"name",label:(0,u.S)("Name")},o.createElement(h.Z,{name:"recipe-name",placeholder:(0,u.S)("Recipe Name"),value:e.name,onChange:function(t){e.onRecipeChange({name:t})}})),o.createElement(C.Z,{id:"summary",label:"howto"===e.type?(0,u.S)("Description"):(0,u.S)("Summary")},o.createElement(ua,{placeholder:(0,u.S)("Short description of this recipe..."),value:e.summary,onChange:function(t){e.onRecipeChange({summary:t})}})),t&&"same"===t.actual?null:o.createElement(C.Z,{id:"author",label:(0,u.S)("Author")},o.createElement(D.Z,{options:wprm_admin_modal.options.author.filter((function(e){return"same"!==e.actual})),value:e.author.display,onChange:function(t){e.onRecipeChange({author_display:t})},width:300})),t&&"custom"===t.actual&&o.createElement(o.Fragment,null,o.createElement(C.Z,{id:"author-name",label:(0,u.S)("Name")},o.createElement(h.Z,{name:"author-name",placeholder:(0,u.S)("Author Name"),value:e.author.name,onChange:function(t){e.onRecipeChange({author_name:t})}})),o.createElement(C.Z,{id:"author-link",label:(0,u.S)("Link")},o.createElement(h.Z,{name:"author-link",placeholder:"https://bootstrapped.ventures",type:"url",value:e.author.link,onChange:function(t){e.onRecipeChange({author_link:t})}}))),o.createElement(C.Z,{id:"servings",label:"howto"===e.type?(0,u.S)("Yield"):(0,u.S)("Servings")},o.createElement(h.Z,{placeholder:"4",type:"number",value:0!=e.servings.amount?e.servings.amount:"",onChange:function(t){e.onRecipeChange({servings:t})}}),o.createElement(h.Z,{name:"servings-unit",placeholder:"howto"===e.type?(0,u.S)("candles"):(0,u.S)("people"),value:e.servings.unit,onChange:function(t){e.onRecipeChange({servings_unit:t})}})),o.createElement(C.Z,{id:"cost",label:(0,u.S)("Estimated Cost"),help:"howto"===e.type?(0,u.S)("The estimated cost of the materials consumed when performing instructions. Used in the metadata."):null},o.createElement(h.Z,{name:"cost",placeholder:"$5",value:e.cost,onChange:function(t){e.onRecipeChange({cost:t})}})))},la=function(e){var t=parseInt(e.value.time),n=0,r=0,i=0;return t>0&&(n=Math.floor(t/24/60),r=Math.floor(t/60%24),i=Math.floor(t%60)),o.createElement("div",{className:"wprm-admin-modal-field-time"},o.createElement("div",{className:"wprm-admin-modal-field-time-parts"},o.createElement("input",{type:"number",value:0<n?""+n:"",onChange:function(t){var n=parseInt(t.target.value);n=isNaN(n)?0:n;var o=1440*Math.max(0,n)+60*r+i;e.onChange(o)}})," ",(0,u.S)("days"),o.createElement("input",{type:"number",value:0<r?""+r:"",onChange:function(t){var r=parseInt(t.target.value);r=isNaN(r)?0:r;var o=1440*n+60*Math.max(0,r)+i;e.onChange(o)}})," ",(0,u.S)("hours"),o.createElement("input",{type:"number",value:0<i?""+i:e.value.zero?"0":"",onChange:function(t){var o=parseInt(t.target.value);o=isNaN(o)?0:o;var i=1440*n+60*r+Math.max(0,o);e.onChange(i)}})," ",(0,u.S)("minutes")),0===t&&e.hasOwnProperty("onChangeZero")&&o.createElement("div",{className:"wprm-admin-modal-field-time-none"},o.createElement("input",{id:"wprm-admin-modal-field-time-none-".concat(e.id),type:"checkbox",checked:e.value.zero,onChange:function(t){e.onChangeZero(t.target.checked)}})," ",o.createElement("label",{htmlFor:"wprm-admin-modal-field-time-none-".concat(e.id)},(0,u.S)('Show "0" in template'))))},pa=function(e){var t=Math.max(0,parseInt(e.prep.time))+Math.max(0,parseInt(e.cook.time))+Math.max(0,parseInt(e.custom.time));return o.createElement(o.Fragment,null,o.createElement(C.Z,{id:"prep-time",label:(0,u.S)("Prep Time")},o.createElement(la,{id:"prep",value:e.prep,onChange:function(t){e.onRecipeChange({prep_time:t})},onChangeZero:function(t){e.onRecipeChange({prep_time_zero:t})}})),o.createElement(C.Z,{id:"cook-time",label:"howto"===e.type?(0,u.S)("Active Time"):(0,u.S)("Cook Time")},o.createElement(la,{id:"cook",value:e.cook,onChange:function(t){e.onRecipeChange({cook_time:t})},onChangeZero:function(t){e.onRecipeChange({cook_time_zero:t})}})),o.createElement(C.Z,{id:"custom-time-label",label:(0,u.S)("Custom Time Label"),help:(0,u.S)("Optional extra time field that you can label yourself. Examples: Resting Time, Baking Time")},o.createElement(h.Z,{name:"custom-time-label",placeholder:(0,u.S)("Resting Time"),value:e.customLabel,onChange:function(t){e.onRecipeChange({custom_time_label:t})}})),o.createElement(C.Z,{id:"custom-time",label:(0,u.S)("Custom Time")},o.createElement(la,{id:"custom",value:e.custom,onChange:function(t){e.onRecipeChange({custom_time:t})},onChangeZero:function(t){e.onRecipeChange({custom_time_zero:t})}})),o.createElement(C.Z,{id:"total-time",label:(0,u.S)("Total Time")},o.createElement(la,{id:"total",value:e.total,onChange:function(t){e.onRecipeChange({total_time:t})}}),t!==parseInt(e.total.time)&&o.createElement("div",null,o.createElement("a",{href:"#",onClick:function(n){n.preventDefault(),e.onRecipeChange({total_time:t})}},(0,u.S)("Recalculate Total Time")))))};function da(e){return(da="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ma(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ha(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ga(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function va(e,t){return(va=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ba(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wa(e);if(t){var o=wa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ya(this,n)}}function ya(e,t){return!t||"object"!==da(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function wa(e){return(wa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ea=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&va(e,t)}(a,e);var t,n,r,i=ba(a);function a(){return ha(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"shouldComponentUpdate",value:function(e){return JSON.stringify(this.props.tags)!==JSON.stringify(e.tags)}},{key:"render",value:function(){var e=this,t=Object.keys(wprm_admin_modal.categories);return o.createElement(o.Fragment,null,t.map((function(t,n){var r=wprm_admin_modal.categories[t],i=e.props.tags.hasOwnProperty(t)?e.props.tags[t]:[];return o.createElement(C.Z,{id:t,label:r.label,help:r.hasOwnProperty("help")?r.help:null,key:n},o.createElement(te,{id:t,value:i,onChange:function(n){var r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fa(Object(n),!0).forEach((function(t){ma(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.props.tags);r[t]=n,e.props.onRecipeChange({tags:r})},creatable:r.creatable,width:"450px"}))})))}}])&&ga(t.prototype,n),r&&ga(t,r),a}(o.Component),Sa=function(e){return e.modes?o.createElement("div",{className:"wprm-admin-modal-field-edit-mode-container"},Object.keys(e.modes).map((function(t,n){var r=e.modes[t];return o.createElement("a",{href:"#",className:"wprm-admin-modal-field-edit-mode".concat(t===e.mode?" wprm-admin-modal-field-edit-mode-selected":""),onClick:function(n){n.preventDefault(),e.onModeChange(t)},key:n},r.label)}))):null},Ia=(n(45550),n(34916));function xa(e){return(xa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Oa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ca(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Da(e,t){return(Da=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Pa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ka(e);if(t){var o=ka(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ma(this,n)}}function Ma(e,t){return!t||"object"!==xa(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ka(e){return(ka=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Aa(){return(Aa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Na=(0,Er.TB)("tab"),ja=function(e){return o.createElement("div",Aa({className:"wprm-admin-modal-field-ingredient-handle"},e.dragHandleProps,{tabIndex:"-1"}),o.createElement(ai.Z,{type:"drag"}))},Ta=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Da(e,t)}(a,e);var t,n,r,i=Pa(a);function a(){return Oa(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"shouldComponentUpdate",value:function(e){return JSON.stringify(this.props)!==JSON.stringify(e)}},{key:"render",value:function(){var e=this;return o.createElement(Ia._l,{draggableId:"ingredient-".concat(this.props.uid),index:this.props.index},(function(t,n){return"group"===e.props.type?function(e,t){return o.createElement("div",Aa({className:"wprm-admin-modal-field-ingredient-group",ref:t.innerRef},t.draggableProps),ja(t),o.createElement("div",{className:"wprm-admin-modal-field-ingredient-group-name-container"},o.createElement(ua,{singleLine:!0,className:"wprm-admin-modal-field-ingredient-group-name",toolbar:"no-styling",value:e.name,placeholder:"howto"===e.recipeType?(0,u.S)("Material Group Header"):(0,u.S)("Ingredient Group Header"),onChange:function(t){return e.onChangeName(t)},onKeyDown:function(t){Na(t)&&e.onTab(t)}})),o.createElement("div",{className:"wprm-admin-modal-field-ingredient-after-container"},o.createElement("div",{className:"wprm-admin-modal-field-ingredient-after-container-icons"},o.createElement(ai.Z,{type:"trash",onClick:e.onDelete}),o.createElement(ai.Z,{type:"plus",title:(0,u.S)("Insert After"),onClick:e.onAdd}))))}(e.props,t):function(e,t){var n=e.amount,r=e.unit;return o.createElement("div",Aa({className:"wprm-admin-modal-field-ingredient",ref:t.innerRef},t.draggableProps),ja(t),o.createElement("div",{className:"wprm-admin-modal-field-ingredient-text-container"},o.createElement(ua,{singleLine:!0,toolbar:wprm_admin.addons.premium?"all":"no-link",className:"wprm-admin-modal-field-ingredient-amount",value:n,placeholder:"1",onChange:function(t){e.onChangeIngredient({amount:t})}}),o.createElement(ua,{singleLine:!0,toolbar:wprm_admin.addons.premium?"all":"no-link",value:r,placeholder:"howto"===e.recipeType?(0,u.S)("piece"):(0,u.S)("tbsp"),onChange:function(t){e.onChangeIngredient({unit:t})}}),o.createElement(ua,{singleLine:!0,toolbar:"ingredient",value:e.name,placeholder:"howto"===e.recipeType?(0,u.S)("paper"):(0,u.S)("olive oil"),onChange:function(t){e.onChangeIngredient({name:t,globalLink:!1})}}),o.createElement(ua,{singleLine:!0,toolbar:wprm_admin.addons.premium?"all":"no-link",value:e.notes,placeholder:"howto"===e.recipeType?(0,u.S)("any color"):(0,u.S)("extra virgin"),onChange:function(t){return e.onChangeIngredient({notes:t})},onKeyDown:function(t){Na(t)&&e.onTab(t)}})),o.createElement("div",{className:"wprm-admin-modal-field-ingredient-after-container"},o.createElement("div",{className:"wprm-admin-modal-field-ingredient-after-container-icons"},o.createElement(ai.Z,{type:"trash",onClick:e.onDelete}),o.createElement(ai.Z,{type:"plus",title:(0,u.S)("Insert After"),onClick:e.onAdd}))))}(e.props,t)}))}}])&&Ca(t.prototype,n),r&&Ca(t,r),a}(o.Component);function La(e){return(La="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ra(){return(Ra=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fa(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){Ba(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ba(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Za(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ha(e,t){return(Ha=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ua(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ga(e);if(t){var o=Ga(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Wa(this,n)}}function Wa(e,t){return!t||"object"!==La(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ga(e){return(Ga=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var za=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ha(e,t)}(a,e);var t,n,r,i=Ua(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).container=o.createRef(),t.lastAddedIndex=0,t}return t=a,(n=[{key:"shouldComponentUpdate",value:function(e,t){return this.props.type!==e.type||JSON.stringify(this.props.ingredients)!==JSON.stringify(e.ingredients)}},{key:"componentDidUpdate",value:function(e){if(this.props.ingredients.length>e.ingredients.length){var t=this.container.current.querySelectorAll(".wprm-admin-modal-field-ingredient-group-name, .wprm-admin-modal-field-ingredient-amount");t.length&&t[this.lastAddedIndex].focus()}}},{key:"onDragEnd",value:function(e){if(e.destination){var t=JSON.parse(JSON.stringify(this.props.ingredients)),n=e.source.index,r=e.destination.index,o=t.splice(n,1)[0];t.splice(r,0,o),this.props.onRecipeChange({ingredients_flat:t})}}},{key:"addField",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=JSON.parse(JSON.stringify(this.props.ingredients));t="group"===e?{type:"group",name:""}:{type:"ingredient",amount:"",unit:"",name:"",notes:""};var o=Math.max.apply(Math,r.map((function(e){return e.uid})));o=o<0?-1:o,t.uid=o+1,!1===n?(r.push(t),this.lastAddedIndex=r.length-1):(r.splice(n+1,0,t),this.lastAddedIndex=n+1),this.props.onRecipeChange({ingredients_flat:r})}},{key:"render",value:function(){var e=this;return o.createElement("div",{className:"wprm-admin-modal-field-ingredient-edit-container",ref:this.container},o.createElement(Ia.Z5,{onDragEnd:this.onDragEnd.bind(this)},o.createElement(Ia.bK,{droppableId:"wprm-ingredients"},(function(t,n){return o.createElement("div",Ra({className:"".concat(n.isDraggingOver?" wprm-admin-modal-field-ingredient-container-draggingover":""),ref:t.innerRef},t.droppableProps),o.createElement("div",{className:"wprm-admin-modal-field-ingredient-header-container"},o.createElement("div",{className:"wprm-admin-modal-field-ingredient-header"},(0,u.S)("Amount")),o.createElement("div",{className:"wprm-admin-modal-field-ingredient-header"},(0,u.S)("Unit")),o.createElement("div",{className:"wprm-admin-modal-field-ingredient-header"},(0,u.S)("Name")," ",o.createElement("span",{className:"wprm-admin-modal-field-ingredient-header-required"},"(",(0,u.S)("required"),")")),o.createElement("div",{className:"wprm-admin-modal-field-ingredient-header"},(0,u.S)("Notes"))),e.props.ingredients.map((function(t,n){return o.createElement(Ta,Ra({},t,{recipeType:e.props.type,index:n,key:"ingredient-".concat(t.uid),onTab:function(t){n===e.props.ingredients.length-1&&(t.preventDefault(),setTimeout((function(){e.addField("ingredient")})))},onChangeName:function(t){var r=JSON.parse(JSON.stringify(e.props.ingredients));r[n].name=t,e.props.onRecipeChange({ingredients_flat:r})},onChangeIngredient:function(t){var r=JSON.parse(JSON.stringify(e.props.ingredients));r[n]=Fa(Fa({},r[n]),t),e.props.onRecipeChange({ingredients_flat:r})},onDelete:function(){var t=JSON.parse(JSON.stringify(e.props.ingredients));t.splice(n,1),e.props.onRecipeChange({ingredients_flat:t})},onAdd:function(){e.addField("ingredient",n)}}))})),t.placeholder)}))),o.createElement("div",{className:"wprm-admin-modal-field-ingredient-actions"},o.createElement("button",{className:"button",onClick:function(t){t.preventDefault(),e.addField("ingredient")}},"howto"===this.props.type?(0,u.S)("Add Material"):(0,u.S)("Add Ingredient")),o.createElement("button",{className:"button",onClick:function(t){t.preventDefault(),e.addField("group")}},"howto"===this.props.type?(0,u.S)("Add Material Group"):(0,u.S)("Add Ingredient Group")),o.createElement("p",null,(0,u.S)("Tip: use the TAB key to move from field to field and easily add ingredients."))))}}])&&Za(t.prototype,n),r&&Za(t,r),a}(o.Component),qa=n(5831),Va=(n(29897),n(38328)),Ja=n.n(Va),Ya=function(e){var t=e.ingredient,n=e.isConverting,r=e.method,i=t.converted?t.converted:{2:{amount:"",unit:""}},a=function(){var e=[{label:(0,u.S)("Convert"),options:[{value:"none",label:(0,u.S)("Keep Unit")},{value:"automatic",label:(0,u.S)("Automatically")}]}],t=[];wprm_admin_modal.unit_conversion.units.weight.map((function(e){t.push({value:e,label:wprm_admin_modal.unit_conversion.units.data[e].label})})),0<t.length&&e.push({label:(0,u.S)("Weight Units"),options:t});var n=[];return wprm_admin_modal.unit_conversion.units.volume.map((function(e){n.push({value:e,label:wprm_admin_modal.unit_conversion.units.data[e].label})})),0<n.length&&e.push({label:(0,u.S)("Volume Units"),options:n}),e}(),s="".concat(t.amount," ").concat(t.unit).trim();return s="".concat(s," ").concat(t.name).trim(),t.notes&&(s+=" (".concat(t.notes,")")),o.createElement("tr",null,o.createElement("td",null,o.createElement(D.Z,{isDisabled:n,options:a,placeholder:(0,u.S)("Convert..."),value:r,onChange:function(t){e.onMethodChange(t)},width:150})),o.createElement("td",{style:"failed"===r?{color:"darkred"}:null},n?o.createElement(We.Z,null):o.createElement("div",{className:"wprm-admin-modal-field-ingredient-unit-conversion-fields"},o.createElement(ua,{singleLine:!0,value:""+i[2].amount,onChange:function(t){var n=i;n[2].amount=t,e.onConvertedChange(n)}}),o.createElement(ua,{singleLine:!0,value:""+i[2].unit,onChange:function(t){var n=i;n[2].unit=t,e.onConvertedChange(n)}}))),o.createElement("td",null,Ja()(s)))};function Qa(e){return(Qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xa(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Ka(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ka(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Ka(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function es(e,t){return(es=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ts(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=os(e);if(t){var o=os(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ns(this,n)}}function ns(e,t){return!t||"object"!==Qa(t)&&"function"!=typeof t?rs(e):t}function rs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function os(e){return(os=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var is=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&es(e,t)}(a,e);var t,n,r,i=ts(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={isConverting:{},methods:{}},t.convert=t.convert.bind(rs(t)),t.convertAll=t.convertAll.bind(rs(t)),t}return t=a,(n=[{key:"convertAll",value:function(e){for(var t=[],n=0;n<this.props.ingredients.length;n++)"ingredient"===this.props.ingredients[n].type&&t.push(n);t&&this.convert(t,e)}},{key:"convert",value:function(e,t){var n=this,r=this.state.isConverting,o=this.state.methods;if("none"===t){var i,a=JSON.parse(JSON.stringify(this.props.ingredients)),s=Xa(e);try{for(s.s();!(i=s.n()).done;){var u=i.value,l=this.props.ingredients[u];l.hasOwnProperty("converted")||(a[u].converted={2:{}}),a[u].converted[2].amount=l.amount,a[u].converted[2].unit=l.unit,r[u]=!1,o[u]=t}}catch(g){s.e(g)}finally{s.f()}this.props.onIngredientsChange(a)}else{var p,d={},f=Xa(e);try{for(f.s();!(p=f.n()).done;){var m=p.value,h=this.props.ingredients[m];d[m]={index:m,amount:(0,qa.L)(h.amount),unit:h.unit,name:h.name},"automatic"!==t&&(d[m].units_to=[t]),r[m]=!0,o[m]=t}}catch(g){f.e(g)}finally{f.f()}c.Z.unitConversion.get(d).then((function(e){if(e&&e.conversions){var r=JSON.parse(JSON.stringify(n.props.ingredients)),o=n.state.isConverting,i=n.state.methods;for(var a in e.conversions){var s=n.props.ingredients[parseInt(a)],u=e.conversions[a];s.hasOwnProperty("converted")||(r[a].converted={2:{}}),"none"===u.type||"failed"===u.type?(r[a].converted[2].amount=s.amount,r[a].converted[2].unit=s.unit,i[a]=u.type):(r[a].converted[2].amount=(0,qa.o)(u.amount,wprmp_admin.settings.unit_conversion_round_to_decimals),r[a].converted[2].unit=u.alias,i[a]=t),o[a]=!1}n.props.onIngredientsChange(r),n.setState({isConverting:o,methods:i})}}))}this.setState({isConverting:r,methods:o})}},{key:"render",value:function(){var e=this;return wprm_admin.addons.pro?wprm_admin_modal.unit_conversion?this.props.ingredients.filter((function(e){return"ingredient"===e.type&&e.name})).length?o.createElement("div",{className:"wprm-admin-modal-field-ingredient-unit-conversion-container"},o.createElement("table",{className:"wprm-admin-modal-field-ingredient-unit-conversion"},o.createElement("thead",null,o.createElement("tr",null,o.createElement("th",null,(0,u.S)("Conversion")),o.createElement("th",null,(0,u.S)("Converted")," (",wprm_admin_modal.unit_conversion.systems[2],")"),o.createElement("th",null,(0,u.S)("Default")," (",wprm_admin_modal.unit_conversion.systems[1],")"))),o.createElement("tbody",null,this.props.ingredients.map((function(t,n){return"group"!==t.type&&t.name?o.createElement(Ya,{ingredient:t,isConverting:e.state.isConverting[n],method:e.state.methods[n],onMethodChange:function(t){e.state.isConverting[n]||e.convert([n],t)},onConvertedChange:function(t){var r=JSON.parse(JSON.stringify(e.props.ingredients));r[n].converted=t,e.props.onIngredientsChange(r)},key:n}):null})))),o.createElement("button",{className:"button button-primary",onClick:function(t){t.preventDefault(),e.convertAll("automatic")}},(0,u.S)("Convert All Automatically"))):o.createElement("p",null,(0,u.S)("No ingredients set for this recipe.")):o.createElement("p",null,(0,u.S)("You need to set up this feature on the WP Recipe Maker > Settings > Unit Conversion page first.")):o.createElement("p",null,(0,u.S)("This feature is only available in")," ",o.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Pro Bundle"),".")}}])&&$a(t.prototype,n),r&&$a(t,r),a}(o.Component);function as(e){return(as="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ss(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function us(e,t){return(us=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function cs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ps(e);if(t){var o=ps(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ls(this,n)}}function ls(e,t){return!t||"object"!==as(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ps(e){return(ps=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ds=WPRecipeMaker["wp-recipe-maker/dist/shared"].hooks,fs=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&us(e,t)}(a,e);var t,n,r,i=cs(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={mode:"edit"},t}return t=a,(n=[{key:"shouldComponentUpdate",value:function(e,t){return this.state.mode!==t.mode||this.props.type!==e.type||this.props.linkType!==e.linkType||JSON.stringify(this.props.ingredients)!==JSON.stringify(e.ingredients)}},{key:"render",value:function(){var e=this,t={edit:{label:"howto"===this.props.type?(0,u.S)("Edit Materials"):(0,u.S)("Edit Ingredients"),block:za},"ingredient-links":{label:"howto"===this.props.type?(0,u.S)("Material Links"):(0,u.S)("Ingredient Links"),block:function(){return o.createElement("p",null,(0,u.S)("This feature is only available in")," ",o.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Premium"),".")}},"unit-conversion":{label:(0,u.S)("Unit Conversion"),block:function(){return o.createElement("p",null,(0,u.S)("This feature is only available in")," ",o.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Pro Bundle"),".")}}};wprm_admin.addons.pro&&(t["unit-conversion"].block=is);var n=ds.applyFilters("modalRecipeIngredients",t),r=!!n.hasOwnProperty(this.state.mode)&&n[this.state.mode].block;if(!r)return null;var i=null;switch(this.state.mode){case"unit-conversion":i=o.createElement(r,{ingredients:this.props.ingredients,onIngredientsChange:function(t){e.props.onRecipeChange({ingredients_flat:t})}});break;case"ingredient-links":i=o.createElement(r,{ingredients:this.props.ingredients,onIngredientsChange:function(t){e.props.onRecipeChange({ingredients_flat:t})},type:this.props.linkType,onTypeChange:function(t){e.props.onRecipeChange({ingredient_links_type:t})},onModeChange:this.props.onModeChange});break;case"preview":i=o.createElement(r,{ingredients:this.props.ingredients});break;default:i=o.createElement(r,{type:this.props.type,ingredients:this.props.ingredients,onRecipeChange:this.props.onRecipeChange})}return o.createElement("div",{className:"wprm-admin-modal-field-ingredient-container"},o.createElement(Sa,{modes:t,mode:this.state.mode,onModeChange:function(t){e.setState({mode:t})}}),i)}}])&&ss(t.prototype,n),r&&ss(t,r),a}(o.Component);function ms(e){return(ms="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vs(e,t){return(vs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function bs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ws(e);if(t){var o=ws(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ys(this,n)}}function ys(e,t){return!t||"object"!==ms(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ws(e){return(ws=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Es(){return(Es=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ss=(0,Er.TB)("tab"),Is=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vs(e,t)}(a,e);var t,n,r,i=bs(a);function a(){return hs(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"shouldComponentUpdate",value:function(e){return JSON.stringify(this.props)!==JSON.stringify(e)}},{key:"render",value:function(){var e=this;return o.createElement(Ia._l,{draggableId:"equipment-".concat(this.props.uid),index:this.props.index},(function(t,n){return o.createElement("div",Es({className:"wprm-admin-modal-field-equipment",ref:t.innerRef},t.draggableProps),o.createElement("div",{className:"wprm-admin-modal-field-equipment-main-container"},function(e){return o.createElement("div",Es({className:"wprm-admin-modal-field-equipment-handle"},e.dragHandleProps,{tabIndex:"-1"}),o.createElement(ai.Z,{type:"drag"}))}(t),o.createElement("div",{className:"wprm-admin-modal-field-equipment-name-container"},o.createElement(ua,{singleLine:!0,toolbar:"equipment",value:e.props.name,placeholder:"howto"===e.props.recipeType?(0,u.S)("Pair of scissors"):(0,u.S)("Pressure cooker"),onChange:function(t){return e.props.onChangeName(t)},onKeyDown:function(t){Ss(t)&&e.props.onTab(t)}}))),o.createElement("div",{className:"wprm-admin-modal-field-equipment-after-container"},o.createElement("div",{className:"wprm-admin-modal-field-equipment-after-container-icons"},o.createElement(ai.Z,{type:"trash",onClick:e.props.onDelete}),o.createElement(ai.Z,{type:"plus",title:(0,u.S)("Insert After"),onClick:e.props.onAdd}))))}))}}])&&gs(t.prototype,n),r&&gs(t,r),a}(o.Component);function xs(e){return(xs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Os(){return(Os=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Cs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ds(e,t){return(Ds=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ps(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ks(e);if(t){var o=ks(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ms(this,n)}}function Ms(e,t){return!t||"object"!==xs(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ks(e){return(ks=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var As=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ds(e,t)}(a,e);var t,n,r,i=Ps(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).container=o.createRef(),t.lastAddedIndex=0,t}return t=a,(n=[{key:"shouldComponentUpdate",value:function(e){return this.props.type!==e.type||JSON.stringify(this.props.equipment)!==JSON.stringify(e.equipment)}},{key:"componentDidUpdate",value:function(e){if(this.props.equipment.length>e.equipment.length){var t=this.container.current.querySelectorAll(".wprm-admin-modal-field-richtext");t.length&&t[this.lastAddedIndex].focus()}}},{key:"onDragEnd",value:function(e){if(e.destination){var t=JSON.parse(JSON.stringify(this.props.equipment)),n=e.source.index,r=e.destination.index,o=t.splice(n,1)[0];t.splice(r,0,o),this.props.onRecipeChange({equipment:t})}}},{key:"addField",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=JSON.parse(JSON.stringify(this.props.equipment)),n={name:""},r=Math.max.apply(Math,t.map((function(e){return e.uid})));r=r<0?-1:r,n.uid=r+1,!1===e?(t.push(n),this.lastAddedIndex=t.length-1):(t.splice(e+1,0,n),this.lastAddedIndex=e+1),this.props.onRecipeChange({equipment:t})}},{key:"render",value:function(){var e=this;return o.createElement("div",{className:"wprm-admin-modal-field-equipment-container",ref:this.container},o.createElement(Ia.Z5,{onDragEnd:this.onDragEnd.bind(this)},o.createElement(Ia.bK,{droppableId:"wprm-equipment"},(function(t,n){return o.createElement("div",Os({className:"".concat(n.isDraggingOver?" wprm-admin-modal-field-equipment-container-draggingover":""),ref:t.innerRef},t.droppableProps),e.props.equipment.map((function(t,n){return o.createElement(Is,Os({},t,{recipeType:e.props.type,index:n,key:"equipment-".concat(t.uid),onTab:function(t){n===e.props.equipment.length-1&&(t.preventDefault(),setTimeout((function(){e.addField()})))},onAdd:function(){e.addField(n)},onChangeName:function(t){var r=JSON.parse(JSON.stringify(e.props.equipment));r[n].name=t,e.props.onRecipeChange({equipment:r})},onDelete:function(){var t=JSON.parse(JSON.stringify(e.props.equipment));t.splice(n,1),e.props.onRecipeChange({equipment:t})}}))})),t.placeholder)}))),o.createElement("div",{className:"wprm-admin-modal-field-equipment-actions"},o.createElement("button",{className:"button",onClick:function(t){t.preventDefault(),e.addField()}},(0,u.S)("Add Equipment")),o.createElement("p",null,(0,u.S)("Tip: use the TAB key to move from field to field and easily add equipment."))))}}])&&Cs(t.prototype,n),r&&Cs(t,r),a}(o.Component);n(31807),n(80174),n(35727),n(7089),n(67838);function Ns(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return js(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return js(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function js(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ts=function(e){var t=!!e.hasOwnProperty("disabled")&&e.disabled;return o.createElement("input",{type:"text",disabled:t,name:e.name,value:e.value,placeholder:"0:00",onChange:function(t){(function(e){var t=Ns(e.split(":"),2),n=t[0],r=t[1];if(!/^\d*:?\d{0,2}$/.test(e))return!1;var o,i=Number(n),a=Number(r);if(o=i,!(Number.isInteger(o)&&o>=0&&function(e){return Number.isInteger(e)&&e>=0||Number.isNaN(e)}(a)))return!1;if(a<10&&Number(r[0])>5)return!1;var s=-1!==e.indexOf(":")?e.split(":"):[e];return!(s[0]&&s[0].length&&parseInt(s[0],10)<0||s[1]&&s[1].length&&(parseInt(s[1],10)<0||parseInt(s[1],10)>59))})(t.target.value)&&e.onChange(t.target.value)}})};function Ls(e){return(Ls="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fs(e,t){return(Fs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Bs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Hs(e);if(t){var o=Hs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Zs(this,n)}}function Zs(e,t){return!t||"object"!==Ls(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Hs(e){return(Hs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Us(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ws(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Us(Object(n),!0).forEach((function(t){Gs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Us(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zs(){return(zs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var qs=(0,Er.TB)("tab"),Vs=function(e){return o.createElement("div",zs({className:"wprm-admin-modal-field-instruction-handle"},e.dragHandleProps,{tabIndex:"-1"}),o.createElement(ai.Z,{type:"drag"}))},Js=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Fs(e,t)}(a,e);var t,n,r,i=Bs(a);function a(){return Rs(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"shouldComponentUpdate",value:function(e){return JSON.stringify(this.props)!==JSON.stringify(e)}},{key:"render",value:function(){var e=this;return o.createElement(Ia._l,{draggableId:"instruction-".concat(this.props.uid),index:this.props.index},(function(t,n){return"group"===e.props.type?function(e,t){return o.createElement("div",zs({className:"wprm-admin-modal-field-instruction-group",ref:t.innerRef},t.draggableProps),o.createElement("div",{className:"wprm-admin-modal-field-instruction-main-container"},Vs(t),o.createElement("div",{className:"wprm-admin-modal-field-instruction-group-name-container"},o.createElement(ua,{singleLine:!0,toolbar:"no-styling",value:e.name,placeholder:(0,u.S)("Instruction Group Header"),onChange:function(t){return e.onChangeName(t)},onKeyDown:function(t){qs(t)&&e.onTab(t)}}))),o.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container"},o.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-icons"},o.createElement(ai.Z,{type:"trash",onClick:e.onDelete}),o.createElement(ai.Z,{type:"plus",title:(0,u.S)("Insert After"),onClick:e.onAdd}))))}(e.props,t):function(e,t){var n={type:"none",embed:"",id:"",thumb:"",start:"",end:"",name:""};e.video&&"none"===(n=Ws(Ws({},n),e.video)).type&&(n.start||n.end)&&(n.type="part");var r=e.image>0;return o.createElement("div",zs({className:"wprm-admin-modal-field-instruction",ref:t.innerRef},t.draggableProps),o.createElement("div",{className:"wprm-admin-modal-field-instruction-main-container"},Vs(t),o.createElement("div",{className:"wprm-admin-modal-field-instruction-text-container"},o.createElement("div",{className:"wprm-admin-modal-field-instruction-text-name-container"},e.showName&&o.createElement(ua,{singleLine:!0,className:"wprm-admin-modal-field-instruction-name",toolbar:"none",value:e.hasOwnProperty("name")?e.name:"",placeholder:(0,u.S)("Step Summary"),onChange:function(t){return e.onChangeName(t)}}),o.createElement(ua,{className:"wprm-admin-modal-field-instruction-text",value:e.text,placeholder:(0,u.S)("This is one step of the instructions."),onChange:function(t){return e.onChangeText(t)},onKeyDown:function(t){qs(t)&&e.onTab(t)}})),e.allowVideo&&"part"===n.type&&o.createElement("div",{className:"wprm-admin-modal-field-instruction-video-container"},o.createElement(Ts,{value:n.start,onChange:function(t){e.onChangeVideo(Ws(Ws({},n),{},{start:t}))}}),o.createElement(Ts,{value:n.end,onChange:function(t){e.onChangeVideo(Ws(Ws({},n),{},{end:t}))}}),n.start&&n.end?o.createElement(h.Z,{placeholder:(0,u.S)("Name for this video part"),value:n.name,onChange:function(t){e.onChangeVideo(Ws(Ws({},n),{},{name:t}))}}):o.createElement(ai.Z,{type:"movie",title:(0,u.S)("Add video start and end time (in seconds or minutes:seconds format) if this instruction step is part of the recipe video.")})))),o.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container"},o.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-icons"},o.createElement(ai.Z,{type:"trash",onClick:e.onDelete}),o.createElement(ai.Z,{type:"plus",title:(0,u.S)("Insert After"),onClick:e.onAdd})),o.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-media"},o.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-media-icons"},o.createElement(ai.Z,{type:"photo",title:r?(0,u.S)("Remove Image"):(0,u.S)("Add Instruction Image"),onClick:function(){r?e.onChangeImage(0,""):qe.Z.selectImage((function(t){e.onChangeImage(t.id,t.url)}))},hidden:"none"!==n.type&&"part"!==n.type}),o.createElement("div",{className:"wprm-icon-spacer"}),o.createElement(ai.Z,{type:"movie",title:"upload"===n.type?(0,u.S)("Remove Video"):(0,u.S)("Upload Instruction Video"),onClick:function(){"upload"===n.type?e.onChangeVideo(Ws(Ws({},n),{},{type:"none",id:0,thumb:""})):qe.Z.selectVideo((function(t){e.onChangeVideo(Ws(Ws({},n),{},{type:"upload",id:t.attributes.id,thumb:t.attributes.thumb.src}))}))},hidden:r||"none"!==n.type&&"upload"!==n.type}),o.createElement(ai.Z,{type:"code",title:"embed"===n.type?(0,u.S)("Remove Video"):(0,u.S)("Embed Instruction Video"),onClick:function(){"embed"===n.type?e.onChangeVideo(Ws(Ws({},n),{},{type:"none",embed:""})):e.onChangeVideo(Ws(Ws({},n),{},{type:"embed"}))},hidden:r||"none"!==n.type&&"embed"!==n.type}),o.createElement(ai.Z,{type:"videoplayer",title:"part"===n.type?(0,u.S)("Remove Video Part"):(0,u.S)("Instruction is part of the main video"),onClick:function(){e.onChangeVideo(Ws(Ws({},n),{},{type:"part"===n.type?"none":"part",start:"",end:"",name:""}))},hidden:!e.allowVideo||"none"!==n.type&&"part"!==n.type})),(r||"upload"===n.type||"embed"===n.type)&&o.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-media-preview"},r?o.createElement("div",{className:"wprm-admin-modal-field-image-preview"},o.createElement("img",{src:e.image_url,onClick:function(){qe.Z.selectImage((function(t){e.onChangeImage(t.id,t.url)}))}})):o.createElement(o.Fragment,null,"upload"===n.type&&o.createElement("div",{className:"wprm-admin-modal-field-video-preview"},o.createElement("img",{src:n.thumb,onClick:function(){qe.Z.selectVideo((function(t){e.onChangeVideo(Ws(Ws({},n),{},{id:t.attributes.id,thumb:t.attributes.thumb.src}))}))}})),"embed"===n.type&&o.createElement(be,{value:n.embed,onChange:function(t){e.onChangeVideo(Ws(Ws({},n),{},{embed:t}))},placeholder:(0,u.S)("Instruction video URL or embed code")}))))))}(e.props,t)}))}}])&&_s(t.prototype,n),r&&_s(t,r),a}(o.Component);function Ys(e){return(Ys="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qs(){return(Qs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Xs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ks(e,t){return(Ks=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tu(e);if(t){var o=tu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return eu(this,n)}}function eu(e,t){return!t||"object"!==Ys(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function tu(e){return(tu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ks(e,t)}(a,e);var t,n,r,i=$s(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={showName:!1},t.container=o.createRef(),t.lastAddedIndex=0,t}return t=a,(n=[{key:"shouldComponentUpdate",value:function(e,t){return this.state.showName!==t.showName||this.props.type!==e.type||this.props.allowVideo!==e.allowVideo||JSON.stringify(this.props.instructions)!==JSON.stringify(e.instructions)}},{key:"componentDidUpdate",value:function(e){if(this.props.instructions.length>e.instructions.length){var t=this.container.current.querySelectorAll(".wprm-admin-modal-field-richtext:not(.wprm-admin-modal-field-instruction-name)");t.length&&t[this.lastAddedIndex].focus()}}},{key:"onDragEnd",value:function(e){if(e.destination){var t=JSON.parse(JSON.stringify(this.props.instructions)),n=e.source.index,r=e.destination.index,o=t.splice(n,1)[0];t.splice(r,0,o),this.props.onRecipeChange({instructions_flat:t})}}},{key:"addField",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=JSON.parse(JSON.stringify(this.props.instructions));t="group"===e?{type:"group",name:""}:{type:"instruction",name:"",text:"",image:0,image_url:""};var o=Math.max.apply(Math,r.map((function(e){return e.uid})));o=o<0?-1:o,t.uid=o+1,!1===n?(r.push(t),this.lastAddedIndex=r.length-1):(r.splice(n+1,0,t),this.lastAddedIndex=n+1),this.props.onRecipeChange({instructions_flat:r})}},{key:"render",value:function(){var e=this;return o.createElement("div",{className:"wprm-admin-modal-field-instruction-container",ref:this.container},"ignore"!==wprm_admin.settings.metadata_instruction_name&&"other"!==this.props.type&&o.createElement("div",{className:"wprm-admin-modal-field-instruction-show-name-container"},o.createElement("input",{type:"checkbox",id:"wprm-admin-modal-field-instruction-show-name",checked:this.state.showName,onChange:function(t){return e.setState({showName:t.target.checked})}}),o.createElement("label",{htmlFor:"wprm-admin-modal-field-instruction-show-name"},(0,u.S)("Show the instruction summary field")),o.createElement(ai.Z,{type:"question",title:(0,u.S)('For guided recipes, Google wants a short (usually 1 word) summary for each instruction step. This will be the "name" in the HowToStep metadata.'),className:"wprm-admin-icon-help"})),o.createElement(Ia.Z5,{onDragEnd:this.onDragEnd.bind(this)},o.createElement(Ia.bK,{droppableId:"wprm-instructions"},(function(t,n){return o.createElement("div",Qs({className:"".concat(n.isDraggingOver?" wprm-admin-modal-field-instruction-container-draggingover":""),ref:t.innerRef},t.droppableProps),e.props.instructions.map((function(t,n){return o.createElement(Js,Qs({},t,{index:n,key:"instruction-".concat(t.uid),onTab:function(t){n===e.props.instructions.length-1&&(t.preventDefault(),setTimeout((function(){e.addField("instruction")})))},showName:e.state.showName,onChangeName:function(t){var r=JSON.parse(JSON.stringify(e.props.instructions));r[n].name=t,e.props.onRecipeChange({instructions_flat:r})},onChangeText:function(t){var r=JSON.parse(JSON.stringify(e.props.instructions));r[n].text=t,e.props.onRecipeChange({instructions_flat:r})},onChangeImage:function(t,r){var o=JSON.parse(JSON.stringify(e.props.instructions));o[n].image=t,o[n].image_url=r,e.props.onRecipeChange({instructions_flat:o})},onDelete:function(){var t=JSON.parse(JSON.stringify(e.props.instructions));t.splice(n,1),e.props.onRecipeChange({instructions_flat:t})},onAdd:function(){e.addField("instruction",n)},allowVideo:e.props.allowVideo,onChangeVideo:function(t){var r=JSON.parse(JSON.stringify(e.props.instructions));r[n].video=t,e.props.onRecipeChange({instructions_flat:r})}}))})),t.placeholder)}))),o.createElement("div",{className:"wprm-admin-modal-field-instruction-actions"},o.createElement("button",{className:"button",onClick:function(t){t.preventDefault(),e.addField("instruction")}},(0,u.S)("Add Instruction")),o.createElement("button",{className:"button",onClick:function(t){t.preventDefault(),e.addField("group")}},(0,u.S)("Add Instruction Group")),o.createElement("p",null,(0,u.S)("Tip: use the TAB key to move from field to field and easily add instructions."))))}}])&&Xs(t.prototype,n),r&&Xs(t,r),a}(o.Component);n(9115),n(19457);function ru(e){return(ru="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ou(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function iu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ou(Object(n),!0).forEach((function(t){au(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ou(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function au(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function su(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function uu(e,t){return(uu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function cu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pu(e);if(t){var o=pu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lu(this,n)}}function lu(e,t){return!t||"object"!==ru(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function pu(e){return(pu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var du=-1!==Object.values(wprm_admin_modal.nutrition).findIndex((function(e){return"calculated"===e.type})),fu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&uu(e,t)}(a,e);var t,n,r,i=cu(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={calculating:!1},t}return t=a,(n=[{key:"shouldComponentUpdate",value:function(e,t){return this.state.calculing!==t.calculating||JSON.stringify(this.props.servings)!==JSON.stringify(e.servings)||JSON.stringify(this.props.nutrition)!==JSON.stringify(e.nutrition)}},{key:"componentDidMount",value:function(){this.calculateNutrients()}},{key:"componentDidUpdate",value:function(e){JSON.stringify(this.props.nutrition)!==JSON.stringify(e.nutrition)&&this.calculateNutrients()}},{key:"calculateNutrients",value:function(){var e=this;du&&wprm_admin.addons.pro&&this.setState({calculating:!0},(function(){c.Z.nutrition.getCalculated(e.props.nutrition).then((function(t){t&&Object.keys(t.calculated).length>0&&e.props.onRecipeChange({nutrition:iu(iu({},e.props.nutrition),t.calculated)}),e.setState({calculating:!1})}))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.nutrition.hasOwnProperty("serving_size")&&t.nutrition.serving_size?t.nutrition.serving_size:"",r=t.nutrition.hasOwnProperty("serving_unit")&&t.nutrition.serving_unit?t.nutrition.serving_unit:"";return o.createElement(o.Fragment,null,o.createElement("p",null,(0,u.S)("These should be the nutrition facts for 1 serving of your recipe."),o.createElement("br",null),t.servings.amount?o.createElement(o.Fragment,null,(0,u.S)("Total servings for this recipe:")," ","".concat(t.servings.amount," ").concat(t.servings.unit)):o.createElement(o.Fragment,null,(0,u.S)('You don\'t have the servings field set for your recipe under "General".'))),o.createElement("div",{className:"wprm-admin-modal-field-nutrition-container"},wprm_admin.addons.premium?o.createElement(C.Z,{id:"nutrition_serving_size",label:(0,u.S)("Serving Size"),help:(0,u.S)("The weight of 1 serving. Does not affect the calculation.")},o.createElement(h.Z,{type:"number",value:n,onChange:function(e){var n=iu(iu({},t.nutrition),{},{serving_size:e});t.onRecipeChange({nutrition:n})}}),o.createElement(h.Z,{name:"serving-unit",placeholder:wprm_admin.settings.nutrition_default_serving_unit,value:r,onChange:function(e){var n=iu(iu({},t.nutrition),{},{serving_unit:e});t.onRecipeChange({nutrition:n})}})):null,Object.keys(wprm_admin_modal.nutrition).map((function(n,r){var i=wprm_admin_modal.nutrition[n],a=t.nutrition.hasOwnProperty(n)?t.nutrition[n]:"";return"serving_size"===n?null:"calories"===n||wprm_admin.addons.premium?o.createElement(C.Z,{id:"nutrition_".concat(n),label:i.label,key:r},"calculated"===i.type&&e.state.calculating?o.createElement(We.Z,null):o.createElement(o.Fragment,null,o.createElement(h.Z,{type:"number",value:a,onChange:function(e){var r=iu(iu({},t.nutrition),{},au({},n,e));t.onRecipeChange({nutrition:r})},disabled:"calculated"===i.type}),o.createElement("span",{className:"wprm-admin-modal-field-nutrition-unit"},i.unit))):null}))),wprm_admin.addons.premium?null:o.createElement("p",null,(0,u.S)("More nutrients are available in")," ",o.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Premium"),"."),o.createElement(p,{isPrimary:!0,required:"pro",onClick:function(){t.onModeChange("nutrition-calculation")}},(0,u.S)("Calculate Nutrition Facts")))}}])&&su(t.prototype,n),r&&su(t,r),a}(o.Component),mu=wprm_admin_modal.custom_fields&&wprm_admin_modal.custom_fields.fields?Object.values(wprm_admin_modal.custom_fields.fields):[],hu=function(e){return o.createElement(o.Fragment,null,mu.map((function(t,n){var r=!!e.fields.hasOwnProperty(t.key)&&e.fields[t.key];switch(t.type){case"text":case"link":case"email":var i="link"===t.type?"url":t.type;return o.createElement(C.Z,{label:t.name,key:n},o.createElement(h.Z,{type:i,name:"recipe-custom-".concat(t.key),value:r||"",onChange:function(n){e.onFieldChange(t.key,n)}}));case"textarea":return o.createElement(C.Z,{label:t.name,key:n},o.createElement(ua,{value:r||"",onChange:function(n){e.onFieldChange(t.key,n)}}));case"image":return o.createElement(C.Z,{label:t.name,key:n},o.createElement(Ve,{id:r?r.id:0,url:r?r.url:"",onChange:function(n,r){e.onFieldChange(t.key,{id:n,url:r})}}))}})))};function gu(e){return(gu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bu(e,t){return(bu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function yu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Su(e);if(t){var o=Su(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wu(this,n)}}function wu(e,t){return!t||"object"!==gu(t)&&"function"!=typeof t?Eu(e):t}function Eu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Su(e){return(Su=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Iu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bu(e,t)}(a,e);var t,n,r,i=yu(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=i.call(this,e);var n=parseInt(wprm_admin_modal.editor_uid);return wprm_admin_modal.editor_uid=n+1,t.state={editorHtml:!1,addedListeners:!1,editorId:"wprm-admin-modal-notes-editor-".concat(n)},t.initEditor=t.initEditor.bind(Eu(t)),t.initTinyMCE=t.initTinyMCE.bind(Eu(t)),t}return t=a,(n=[{key:"componentDidMount",value:function(){var e=document.getElementById("wprm-admin-modal-notes-placeholder").innerHTML;e=e.replace(/wprm-admin-modal-notes-editor/g,this.state.editorId),this.setState({editorHtml:e})}},{key:"componentDidUpdate",value:function(e,t){this.state.editorHtml&&!t.editorHtml&&this.initEditor()}},{key:"initEditor",value:function(){void 0!==window.tinymce?this.initTinyMCE():this.initTextarea()}},{key:"initTextarea",value:function(){var e=this,t=document.getElementById(this.state.editorId);if(void 0!==window.quicktags)try{window.quicktags({id:this.state.editorId})}catch(n){}t&&(t.value=this.props.value,["input","blur"].forEach((function(n){t.addEventListener(n,(function(){e.props.onChange(t.value)}))})))}},{key:"initTinyMCE",value:function(){var e=this;document.getElementById("wp-".concat(this.state.editorId,"-editor-container")).outerHTML='<textarea id="'.concat(this.state.editorId,'"></textarea>');var t=tinymce.$("#wp-".concat(this.state.editorId,"-wrap"));t.removeClass("tmce-active").addClass("html-active"),this.initTextarea(),t.removeClass("html-active").addClass("tmce-active");var n={};void 0!==window.tinyMCEPreInit&&tinyMCEPreInit.hasOwnProperty("mceInit")&&tinyMCEPreInit.mceInit.hasOwnProperty("wprm-admin-modal-notes-editor")&&(n=tinyMCEPreInit.mceInit["wprm-admin-modal-notes-editor"]),n.hasOwnProperty("body_class")&&(n.body_class=n.body_class.replace(/wprm-admin-modal-notes-editor/g,this.state.editorId)),n.selector="#".concat(this.state.editorId),window.tinymce.init(n);var r=window.tinymce.get(this.state.editorId);r&&r.on("change",(function(){e.props.onChange(r.getContent())}))}},{key:"componentWillUnmount",value:function(){void 0!==window.tinyMCE&&window.tinyMCE.remove("#".concat(this.state.editorId))}},{key:"render",value:function(){return this.state.editorHtml?o.createElement("div",{id:"wprm-admin-modal-field-tinymce-container",dangerouslySetInnerHTML:{__html:this.state.editorHtml}}):o.createElement(We.Z,null)}}])&&vu(t.prototype,n),r&&vu(t,r),a}(o.Component),xu=function(e){return o.createElement(C.Z,{label:(0,u.S)("Recipe Notes")},o.createElement(Iu,{id:"recipe-notes",value:e.notes,onChange:function(t){e.onRecipeChange({notes:t})}}))},Ou=function(e){var t=e.recipe.video_id>0,n=!t&&(-1==e.recipe.video_id||e.recipe.video_embed),r=t||n,i=[{id:"import",name:(0,u.S)("Import"),elem:o.createElement(ze,{onModeChange:e.onModeChange,onRecipeChange:e.onRecipeChange})},{id:"media",name:(0,u.S)("Media"),elem:o.createElement(Ye,{image:{id:e.recipe.image_id,url:e.recipe.image_url},pinImage:{id:e.recipe.pin_image_id,url:e.recipe.pin_image_url},video:{id:e.recipe.video_id,thumb:e.recipe.video_thumb_url,embed:e.recipe.video_embed},onRecipeChange:e.onRecipeChange})},{id:"general",name:(0,u.S)("General"),elem:o.createElement(ca,{type:e.recipe.type,name:e.recipe.name,summary:e.recipe.summary,author:{display:e.recipe.author_display,name:e.recipe.author_name,link:e.recipe.author_link},servings:{amount:e.recipe.servings,unit:e.recipe.servings_unit},cost:e.recipe.cost,onRecipeChange:e.onRecipeChange})},{id:"times",name:(0,u.S)("Times"),elem:o.createElement(pa,{type:e.recipe.type,prep:{time:e.recipe.prep_time,zero:e.recipe.prep_time_zero},cook:{time:e.recipe.cook_time,zero:e.recipe.cook_time_zero},custom:{time:e.recipe.custom_time,zero:e.recipe.custom_time_zero},customLabel:e.recipe.custom_time_label,total:{time:e.recipe.total_time,zero:!1},onRecipeChange:e.onRecipeChange})},{id:"categories",name:(0,u.S)("Categories"),elem:o.createElement(Ea,{tags:e.recipe.tags,onRecipeChange:e.onRecipeChange})},{id:"equipment",name:(0,u.S)("Equipment"),elem:o.createElement(As,{type:e.recipe.type,equipment:e.recipe.equipment,onRecipeChange:e.onRecipeChange})},{id:"ingredients",name:"howto"===e.recipe.type?(0,u.S)("Materials"):(0,u.S)("Ingredients"),elem:o.createElement(fs,{type:e.recipe.type,ingredients:e.recipe.ingredients_flat,linkType:e.recipe.ingredient_links_type,onRecipeChange:e.onRecipeChange,onModeChange:e.onModeChange})},{id:"instructions",name:(0,u.S)("Instructions"),elem:o.createElement(nu,{type:e.recipe.type,instructions:e.recipe.instructions_flat,onRecipeChange:e.onRecipeChange,allowVideo:r&&"other"!==e.recipe.type})}];return"howto"!==e.recipe.type&&i.push({id:"nutrition",name:(0,u.S)("Nutrition"),elem:o.createElement(fu,{nutrition:e.recipe.nutrition,servings:{amount:e.recipe.servings,unit:e.recipe.servings_unit},onRecipeChange:e.onRecipeChange,onModeChange:e.onModeChange})}),wprm_admin_modal.custom_fields&&wprm_admin_modal.custom_fields.fields&&0<Object.keys(wprm_admin_modal.custom_fields.fields).length&&i.push({id:"custom-fields",name:(0,u.S)("Custom Fields"),elem:o.createElement(hu,{fields:e.recipe.custom_fields,onFieldChange:function(t,n){var r=Object.assign({},JSON.parse(JSON.stringify(e.recipe.custom_fields)));r[t]=n,e.onRecipeChange({custom_fields:r})}})}),i.push({id:"notes",name:(0,u.S)("Notes"),elem:o.createElement(xu,{notes:e.recipe.notes,onRecipeChange:e.onRecipeChange})}),o.createElement(o.Fragment,null,o.createElement(d.Z,{onCloseModal:e.onCloseModal},e.loadingRecipe?(0,u.S)("Loading Recipe..."):o.createElement(o.Fragment,null,e.recipe.id?"".concat((0,u.S)("Editing Recipe")," #").concat(e.recipe.id).concat(e.recipe.name?" - ".concat(e.recipe.name):""):"".concat((0,u.S)("Creating new Recipe")).concat(e.recipe.name?" - ".concat(e.recipe.name):""))),o.createElement("div",{className:"wprm-admin-modal-recipe-quicklinks"},i.map((function(e,t){return o.createElement(Ze.rU,{to:"wprm-admin-modal-fields-group-".concat(e.id),containerId:"wprm-admin-modal-recipe-content",className:"wprm-admin-modal-recipe-quicklink",activeClass:"active",spy:!0,offset:-10,smooth:!0,duration:400,key:t},e.name)}))),o.createElement(Ze.W_,{className:"wprm-admin-modal-content",id:"wprm-admin-modal-recipe-content"},e.loadingRecipe?o.createElement(We.Z,null):o.createElement("form",{className:"wprm-admin-modal-recipe-fields"},i.map((function(t,n){return o.createElement(Ge,{header:t.name,id:t.id,key:100*e.forceRerender+n},t.elem)})))),o.createElement("div",{id:"wprm-admin-modal-toolbar-container"}),"waiting"===e.saveResult?o.createElement(f.Z,{savingChanges:!1},o.createElement(Ue(),{text:JSON.stringify(e.recipe),onCopy:function(e,t){t?alert((0,u.S)('The recipe has been copied and can be used in the "Import from JSON" feature.')):alert((0,u.S)("Something went wrong. Please contact support."))}},o.createElement("a",{href:"#",onClick:function(e){e.preventDefault()}},(0,u.S)("This is taking a long time. Maybe something went wrong?")," ",(0,u.S)("Click to copy the recipe to your clipboard.")))," ",o.createElement(We.Z,null)):o.createElement(f.Z,{savingChanges:e.savingChanges},"failed"===e.saveResult&&o.createElement(Ue(),{text:JSON.stringify(e.recipe),onCopy:function(e,t){t?alert((0,u.S)('The recipe has been copied and can be used in the "Import from JSON" feature.')):alert((0,u.S)("Something went wrong. Please contact support."))}},o.createElement("a",{href:"#",onClick:function(e){e.preventDefault()}},(0,u.S)("Something went wrong during saving.")," ",(0,u.S)("Click to copy the recipe to your clipboard."))),"ok"===e.saveResult?o.createElement("span",null,(0,u.S)("Saved successfully")):null,o.createElement("button",{className:"button button-primary",onClick:function(){e.saveRecipe(!1)},disabled:!e.changesMade},(0,u.S)("Save")),o.createElement("button",{className:"button button-primary",onClick:function(){e.changesMade?e.saveRecipe(!0):e.onCloseModal()}},e.changesMade?(0,u.S)("Save & Close"):(0,u.S)("Close"))))},Cu=function(e){return o.createElement("div",{className:"wprm-admin-modal-field-text-import-groups"},o.createElement("p",null,(0,u.S)("All of these will be imported. Use the checkbox to indicate group headers.")," "),e.value.map((function(t,n){return o.createElement("div",{className:"wprm-admin-modal-field-text-import-groups-field",key:n},o.createElement("input",{type:"checkbox",checked:t.group,onChange:function(t){var r=JSON.parse(JSON.stringify(e.value));r[n].group=t.target.checked,e.onChange(r)}}),o.createElement("input",{type:"text",value:t.text,style:t.group?{fontWeight:"bold"}:null,onChange:function(t){var r=JSON.parse(JSON.stringify(e.value));r[n].text=t.target.value,e.onChange(r)}}))})))};function Du(e){return(Du="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pu(Object(n),!0).forEach((function(t){ku(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ku(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Au(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Nu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nu(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Nu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ju(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Tu(e,t){return(Tu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Lu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Fu(e);if(t){var o=Fu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ru(this,n)}}function Ru(e,t){return!t||"object"!==Du(t)&&"function"!=typeof t?_u(e):t}function _u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fu(e){return(Fu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Bu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Tu(e,t)}(a,e);var t,n,r,i=Lu(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).textInput=o.createRef();var n="";return e.text&&(n=t.cleanUpText(e.text)),t.state={text:n,name:!1,summary:!1,equipment:!1,ingredients:!1,instructions:!1,notes:!1,isParsing:!1},t.cleanUpText=t.cleanUpText.bind(_u(t)),t.setSelection=t.setSelection.bind(_u(t)),t.useValues=t.useValues.bind(_u(t)),t}return t=a,(n=[{key:"componentDidMount",value:function(){this.textInput.current.focus()}},{key:"cleanUpText",value:function(e){return e=e.replace(/(<([^>]+)>)/gi,""),e=M().decode(e)}},{key:"setSelection",value:function(e){var t=this.textInput.current,n=t.value.substring(t.selectionStart,t.selectionEnd);if(n=n||!1,"equipment"!==e&&"ingredients"!==e&&"instructions"!==e||(n=this.getSeperateFields(n)),n!==this.state[e]){var r={};r[e]=n,this.setState(r)}}},{key:"getSeperateFields",value:function(e){if(!1===e)return!1;var t,n=[],r=Au(e.split(/[\r\n]+/));try{for(r.s();!(t=r.n()).done;){var o=t.value;(o=(o=o.trim()).replace(/^(\d+\)\s+|\d+\.\s+|[a-z]+\)\s+|•\s+|[A-Z]+\.\s+|[IVX]+\.\s+)/,""))&&n.push({group:!1,text:o})}}catch(i){r.e(i)}finally{r.f()}return!!n.length&&n}},{key:"useValues",value:function(){var e=this,t={};if(!1!==this.state.name&&(t.name=this.state.name),!1!==this.state.summary&&(t.summary=this.state.summary),!1!==this.state.notes&&(t.notes=this.state.notes),!1!==this.state.equipment){var n=[];this.state.equipment.map((function(e,t){n.push({uid:t,name:e.text})})),t.equipment=n}if(!1!==this.state.instructions){var r=[];this.state.instructions.map((function(e,t){e.group?r.push({uid:t,type:"group",name:e.text}):r.push({uid:t,type:"instruction",text:e.text,image:0,image_url:""})})),t.instructions_flat=r}var o=[],i={};!1!==this.state.ingredients&&(this.state.ingredients.map((function(e,t){e.group?o.push({uid:t,type:"group",name:e.text}):(o.push({uid:t,type:"ingredient",amount:"",unit:"",name:"",notes:""}),i[t]=e.text)})),t.ingredients_flat=o),0<Object.keys(i).length?this.setState({isParsing:!0},(function(){c.Z.import.parseIngredients(i).then((function(n){if(n){for(var r in n.parsed){var o=n.parsed[r];t.ingredients_flat[r]=Mu(Mu({},t.ingredients_flat[r]),o)}e.props.onImportValues(t)}else e.setState({isParsing:!1})}))})):this.props.onImportValues(t)}},{key:"render",value:function(){var e=this,t=!1!==this.state.name||!1!==this.state.summary||!1!==this.state.equipment||!1!==this.state.ingredients||!1!==this.state.instructions||!1!==this.state.notes;return o.createElement(o.Fragment,null,o.createElement(d.Z,{onCloseModal:this.props.onCloseModal},this.props.recipe.name?"".concat(this.props.recipe.name," - ").concat((0,u.S)("Import from Text")):"".concat((0,u.S)("Recipe")," - ").concat((0,u.S)("Import from Text"))),o.createElement("div",{className:"wprm-admin-modal-field-text-import-container"},o.createElement("h2",null,(0,u.S)("1. Highlight text and click the corresponding button")),o.createElement("div",{className:"wprm-admin-modal-field-text-import-selection"},o.createElement("div",{className:"wprm-admin-modal-field-text-import-buttons"},o.createElement("button",{className:!1!==this.state.name?"button wprm-selection-made":"button",onClick:function(){return e.setSelection("name")}},(0,u.S)("Name")),o.createElement("button",{className:!1!==this.state.summary?"button wprm-selection-made":"button",onClick:function(){return e.setSelection("summary")}},(0,u.S)("Summary")),o.createElement("button",{className:!1!==this.state.equipment?"button wprm-selection-made":"button",onClick:function(){return e.setSelection("equipment")}},(0,u.S)("Equipment")),o.createElement("button",{className:!1!==this.state.ingredients?"button wprm-selection-made":"button",onClick:function(){return e.setSelection("ingredients")}},(0,u.S)("Ingredients")),o.createElement("button",{className:!1!==this.state.instructions?"button wprm-selection-made":"button",onClick:function(){return e.setSelection("instructions")}},(0,u.S)("Instructions")),o.createElement("button",{className:!1!==this.state.notes?"button wprm-selection-made":"button",onClick:function(){return e.setSelection("notes")}},(0,u.S)("Notes"))),o.createElement("textarea",{ref:this.textInput,value:this.state.text,placeholder:(0,u.S)("Paste or type recipe"),onChange:function(t){e.setState({text:e.cleanUpText(t.target.value)})}})),o.createElement("h2",null,(0,u.S)("2. Fine-tune selections")),o.createElement("div",{className:"wprm-admin-modal-field-text-import-finetune"},t?o.createElement(o.Fragment,null,!1!==this.state.name&&o.createElement(C.Z,{label:(0,u.S)("Name")},o.createElement(h.Z,{name:"recipe-name",value:this.state.name,onChange:function(t){e.setState({name:t})}})),!1!==this.state.summary&&o.createElement(C.Z,{label:(0,u.S)("Summary")},o.createElement(be,{value:this.state.summary,onChange:function(t){e.setState({summary:t})}})),!1!==this.state.equipment&&o.createElement(C.Z,{label:(0,u.S)("Equipment")},this.state.equipment.map((function(t,n){return o.createElement("div",{className:"wprm-admin-modal-field-text-import-equipment-field",key:n},o.createElement(h.Z,{value:t.text,onChange:function(t){var r=JSON.parse(JSON.stringify(e.state.equipment));r[n].text=t,e.setState({equipment:r})}}))}))),!1!==this.state.ingredients&&o.createElement(C.Z,{label:(0,u.S)("Ingredients"),help:(0,u.S)("Use the checkboxes to indicate group headers (like Frosting and Cake)")},o.createElement(Cu,{value:this.state.ingredients,onChange:function(t){e.setState({ingredients:t})}})),!1!==this.state.instructions&&o.createElement(C.Z,{label:(0,u.S)("Instructions"),help:(0,u.S)("Use the checkboxes to indicate group headers (like Frosting and Cake)")},o.createElement(Cu,{value:this.state.instructions,onChange:function(t){e.setState({instructions:t})}})),!1!==this.state.notes&&o.createElement(C.Z,{label:(0,u.S)("Notes")},o.createElement(be,{value:this.state.notes,onChange:function(t){e.setState({notes:t})}}))):o.createElement("p",null,(0,u.S)("Make a selection using the buttons above first.")))),o.createElement(f.Z,{savingChanges:this.state.isParsing},o.createElement("button",{className:"button",onClick:this.props.onCancel},(0,u.S)("Cancel")),o.createElement("button",{className:"button button-primary",onClick:this.useValues,disabled:!t},(0,u.S)("Use these Values"))))}}])&&ju(t.prototype,n),r&&ju(t,r),a}(o.Component);function Zu(e){return(Zu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Hu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Uu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hu(Object(n),!0).forEach((function(t){Wu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zu(e,t){return(zu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function qu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Yu(e);if(t){var o=Yu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vu(this,n)}}function Vu(e,t){return!t||"object"!==Zu(t)&&"function"!=typeof t?Ju(e):t}function Ju(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yu(e){return(Yu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Qu=WPRecipeMaker["wp-recipe-maker/dist/shared"].hooks,Xu={"text-import":Bu,recipe:Ou},Ku=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zu(e,t)}(a,e);var t,n,r,i=qu(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=i.call(this,e);var n=JSON.parse(JSON.stringify(wprm_admin_modal.recipe)),r=!1;return e.args.hasOwnProperty("recipe")?n=JSON.parse(JSON.stringify(e.args.recipe)):e.args.hasOwnProperty("recipeId")&&(r=!0,c.Z.recipe.get(e.args.recipeId).then((function(n){if(n){var r=JSON.parse(JSON.stringify(n.recipe));e.args.cloneRecipe&&delete r.id,t.setState({recipe:r,originalRecipe:e.args.cloneRecipe||e.args.restoreRevision?{}:JSON.parse(JSON.stringify(r)),loadingRecipe:!1,mode:"recipe"}),t.scrollToGroup()}else t.setState({loadingRecipe:!1})}))),t.state={recipe:n,originalRecipe:e.args.cloneRecipe||e.args.restoreRevision?{}:JSON.parse(JSON.stringify(n)),savingChanges:!1,saveResult:!1,loadingRecipe:r,forceRerender:0,mode:"recipe"},t.scrollToGroup=t.scrollToGroup.bind(Ju(t)),t.onModeChange=t.onModeChange.bind(Ju(t)),t.onRecipeChange=t.onRecipeChange.bind(Ju(t)),t.saveRecipe=t.saveRecipe.bind(Ju(t)),t.allowCloseModal=t.allowCloseModal.bind(Ju(t)),t.changesMade=t.changesMade.bind(Ju(t)),t}return t=a,(n=[{key:"componentDidMount",value:function(){"recipe"!==this.state.mode||this.state.loadingRecipe||this.scrollToGroup()}},{key:"onModeChange",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={mode:e};"text-import"===e&&(r.textImportText=n),this.setState(r,(function(){"recipe"===e&&(n=n||"media",t.scrollToGroup(n))}))}},{key:"scrollToGroup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"media";Ze.OK.scrollTo("wprm-admin-modal-fields-group-".concat(e),{containerId:"wprm-admin-modal-recipe-content",offset:-10})}},{key:"onRecipeChange",value:function(e){this.setState((function(t){return{recipe:Uu(Uu({},t.recipe),e)}}))}},{key:"saveRecipe",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.state.savingChanges){var n=setTimeout((function(){e.setState({saveResult:"waiting"})}),5e3);this.setState({savingChanges:!0,saveResult:!1},(function(){c.Z.recipe.save(e.state.recipe).then((function(r){if(clearTimeout(n),r&&r.recipe){var o=JSON.parse(JSON.stringify(r.recipe));e.setState((function(e){return{recipe:o,originalRecipe:JSON.parse(JSON.stringify(o)),savingChanges:!1,saveResult:"ok",forceRerender:e.forceRerender+1}}),(function(){"function"==typeof e.props.args.saveCallback&&e.props.args.saveCallback(o),t&&e.props.maybeCloseModal(),setTimeout((function(){"ok"===e.state.saveResult&&e.setState({saveResult:!1})}),3e3)}))}else e.setState({savingChanges:!1,saveResult:"failed"})}))}))}}},{key:"allowCloseModal",value:function(){switch(this.state.mode){case"nutrition-calculation":return confirm((0,u.S)("Are you sure you want to stop calculating the nutrition facts?"))&&this.onModeChange("recipe","nutrition"),!1;case"ingredient-links":return this.onModeChange("recipe","ingredients"),!1;case"text-import":return this.onModeChange("recipe"),!1}return!this.state.savingChanges&&(!this.changesMade()||confirm((0,u.S)("Are you sure you want to close without saving changes?")))}},{key:"changesMade",value:function(){return void 0!==window.lodash?!window.lodash.isEqual(this.state.recipe,this.state.originalRecipe):JSON.stringify(this.state.recipe)!==JSON.stringify(this.state.originalRecipe)}},{key:"render",value:function(){var e=this,t=Qu.applyFilters("modalRecipe",Xu),n=!!t.hasOwnProperty(this.state.mode)&&t[this.state.mode];if(!n)return null;switch(this.state.mode){case"nutrition-calculation":return o.createElement(n,{onCloseModal:this.props.maybeCloseModal,name:this.state.recipe.name,servings:this.state.recipe.servings,ingredients:this.state.recipe.ingredients_flat,onCancel:function(){e.onModeChange("recipe","nutrition")},onNutritionChange:function(t){var n={};Object.keys(wprm_admin_modal.nutrition).map((function(e,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=!1})),n.serving_size=!(!e.state.recipe.hasOwnProperty("nutrition")||!e.state.recipe.nutrition.hasOwnProperty("serving_size"))&&e.state.recipe.nutrition.serving_size,n.serving_unit=!(!e.state.recipe.hasOwnProperty("nutrition")||!e.state.recipe.nutrition.hasOwnProperty("serving_unit"))&&e.state.recipe.nutrition.serving_unit,e.onRecipeChange({nutrition:n}),e.onModeChange("recipe","nutrition")}});case"ingredient-links":return o.createElement(n,{onCloseModal:this.props.maybeCloseModal,onCancel:function(){e.onModeChange("recipe","ingredients")},ingredients:this.state.recipe.ingredients_flat,onIngredientsChange:function(t){e.onRecipeChange({ingredients_flat:t}),e.onModeChange("recipe","ingredients")}});case"text-import":return o.createElement(n,{onCloseModal:this.props.maybeCloseModal,onCancel:function(){e.onModeChange("recipe")},text:this.state.textImportText,recipe:this.state.recipe,onImportValues:function(t){e.onRecipeChange(t),e.onModeChange("recipe")}});default:return o.createElement(n,{onCloseModal:this.props.maybeCloseModal,changesMade:this.changesMade(),savingChanges:this.state.savingChanges,saveResult:this.state.saveResult,loadingRecipe:this.state.loadingRecipe,recipe:this.state.recipe,onRecipeChange:this.onRecipeChange,saveRecipe:this.saveRecipe,forceRerender:this.state.forceRerender,onModeChange:this.onModeChange})}}}])&&Gu(t.prototype,n),r&&Gu(t,r),a}(o.Component),$u=(n(35054),n(72975),n(96463));function ec(e){return(ec="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nc(e,t){return(nc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function rc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ac(e);if(t){var o=ac(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return oc(this,n)}}function oc(e,t){return!t||"object"!==ec(t)&&"function"!=typeof t?ic(e):t}function ic(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ac(e){return(ac=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var sc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&nc(e,t)}(a,e);var t,n,r,i=rc(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=i.call(this,e);var n="internal",r="",o=!1,s=!0,u="",c="",l={id:0,url:""};if(e.args.fields&&e.args.fields.roundup){var p=e.args.fields.roundup;!p.id&&p.link&&(n="external",r=p.link,o=!!p.nofollow,s=!!p.newtab,u=p.name,c=p.summary,l.id=p.image,l.url=p.image_url)}return t.state={type:n,recipe:!1,link:r,nofollow:o,newtab:s,name:u,summary:c,image:l,loading:!1,saving:!1},t.loadDetailsFromURL=t.loadDetailsFromURL.bind(ic(t)),t.saveImage=t.saveImage.bind(ic(t)),t}return t=a,(n=[{key:"selectionsMade",value:function(){return"external"===this.state.type?""!==this.state.link:!1!==this.state.recipe}},{key:"loadDetailsFromURL",value:function(){var e=this,t=this.state.link;new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(t)&&this.setState({loading:!0},(function(){fetch("https://api.microlink.io?url="+encodeURIComponent(t)).then((function(e){return e.json()})).then((function(t){var n={loading:!1};"success"===t.status&&(t.data.title&&(n.name=t.data.title),t.data.description&&(n.summary=t.data.description),t.data.image&&t.data.image.url&&(n.image={id:-1,url:t.data.image.url})),e.setState(n)}))}))}},{key:"saveImage",value:function(){var e=this,t=this.state.image.url;t&&this.setState({saving:!0},(function(){c.Z.utilities.saveImage(t).then((function(t){var n={saving:!1};t&&t.id&&(n.image=t),e.setState(n)}))}))}},{key:"render",value:function(){var e=this;return o.createElement(o.Fragment,null,o.createElement(d.Z,{onCloseModal:this.props.maybeCloseModal},(0,u.S)("Select Roundup Recipe")),o.createElement("div",{className:"wprm-admin-modal-roundup-container wprm-admin-modal-roundup-container-".concat(this.state.type)},o.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Type")),o.createElement(g.Z,{id:"type",options:[{value:"internal",label:(0,u.S)("Use one of your own recipes")},{value:"external",label:(0,u.S)("Use external recipe from a different website")}],value:this.state.type,onChange:function(t){e.setState({type:t})}}),"internal"===this.state.type?o.createElement(o.Fragment,null,o.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Recipe")),o.createElement($u.Z,{options:[],value:this.state.recipe,onValueChange:function(t){e.setState({recipe:t})}})):o.createElement(o.Fragment,null,o.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Link")),o.createElement(h.Z,{name:"roundup-link",placeholder:"https://demo.wprecipemaker.com/amazing-vegetable-pizza/",type:"url",value:this.state.link,onChange:function(t){e.setState({link:t})},disabled:this.state.loading}),this.state.loading?o.createElement(We.Z,null):o.createElement(o.Fragment,null,o.createElement("div",{className:"wprm-admin-modal-roundup-field-load-details-container",style:this.state.link?{}:{visibility:"hidden"}},o.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.loadDetailsFromURL()}},(0,u.S)("Try to load details from URL"))),o.createElement("div",{className:"wprm-admin-modal-roundup-field-nofollow-container"},o.createElement("input",{id:"wprm-admin-modal-roundup-field-nofollow",type:"checkbox",checked:this.state.nofollow,onChange:function(t){e.setState({nofollow:t.target.checked})}})," ",o.createElement("label",{htmlFor:"wprm-admin-modal-roundup-field-nofollow"},(0,u.S)('Add rel="nofollow" to link'))),o.createElement("div",{className:"wprm-admin-modal-roundup-field-new-tab-container"},o.createElement("input",{id:"wprm-admin-modal-roundup-field-new-tab",type:"checkbox",checked:this.state.newtab,onChange:function(t){e.setState({newtab:t.target.checked})}})," ",o.createElement("label",{htmlFor:"wprm-admin-modal-roundup-field-new-tab"},(0,u.S)("Open link in new tab"))),o.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Image")),this.state.saving?o.createElement(We.Z,null):o.createElement(o.Fragment,null,-1===this.state.image.id&&""!==this.state.image.url?o.createElement("div",{className:"wprm-admin-modal-field-image"},o.createElement("p",null,(0,u.S)("External image. Recommended:")," ",o.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.saveImage()}},(0,u.S)("Save image locally"))),o.createElement("div",{className:"wprm-admin-modal-field-image-preview"},o.createElement("img",{src:this.state.image.url}),o.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.setState({image:{id:0,url:""}})}},(0,u.S)("Remove Image")))):o.createElement(Ve,{id:this.state.image.id,url:this.state.image.url,onChange:function(t,n){e.setState({image:{id:t,url:n}})}})),o.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Name")),o.createElement(h.Z,{name:"recipe-name",placeholder:(0,u.S)("Recipe Name"),value:this.state.name,onChange:function(t){e.setState({name:t})}}),o.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Summary")),o.createElement(be,{placeholder:(0,u.S)("Short description of this recipe..."),value:this.state.summary,onChange:function(t){e.setState({summary:t})}})))),o.createElement(f.Z,{savingChanges:this.state.loading||this.state.saving},o.createElement("button",{className:"button button-primary",onClick:function(){"function"==typeof e.props.args.insertCallback&&e.props.args.insertCallback(e.state),e.props.maybeCloseModal()},disabled:!this.selectionsMade()},(0,u.S)("Use"))))}}])&&tc(t.prototype,n),r&&tc(t,r),a}(o.Component);function uc(e){return(uc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function lc(e,t){return(lc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fc(e);if(t){var o=fc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return dc(this,n)}}function dc(e,t){return!t||"object"!==uc(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function fc(e){return(fc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var mc={id:0,text:(0,u.S)("First recipe on page")},hc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&lc(e,t)}(a,e);var t,n,r,i=pc(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=i.call(this,e);var n=!1;return e.args.fields.recipe.showFirst&&(n=mc),t.state={recipe:n},t}return t=a,(n=[{key:"selectionsMade",value:function(){return!1!==this.state.recipe}},{key:"render",value:function(){var e=this;return o.createElement(o.Fragment,null,o.createElement(d.Z,{onCloseModal:this.props.maybeCloseModal},this.props.args.title?this.props.args.title:"WP Recipe Maker"),o.createElement("div",{className:"wprm-admin-modal-select-container"},this.props.args.fields.recipe?o.createElement($u.Z,{options:this.props.args.fields.recipe.showFirst?[mc]:[],value:this.state.recipe,onValueChange:function(t){e.setState({recipe:t})}}):null),o.createElement(f.Z,{savingChanges:!1},o.createElement("button",{className:"button button-primary",onClick:function(){"function"==typeof e.props.args.nextStepCallback?e.props.args.nextStepCallback(e.state):("function"==typeof e.props.args.insertCallback&&e.props.args.insertCallback(e.state),e.props.maybeCloseModal())},disabled:!this.selectionsMade()},this.props.args.button?this.props.args.button:(0,u.S)("Select"))))}}])&&cc(t.prototype,n),r&&cc(t,r),a}(o.Component),gc=n(40481);function vc(e){return(vc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yc(e,t){return(yc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function wc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ic(e);if(t){var o=Ic(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ec(this,n)}}function Ec(e,t){return!t||"object"!==vc(t)&&"function"!=typeof t?Sc(e):t}function Sc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ic(e){return(Ic=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}document.getElementById("wprm-admin-modal")&&a().setAppElement("#wprm-admin-modal");var xc=WPRecipeMaker["wp-recipe-maker/dist/shared"].hooks,Oc={"bulk-edit":ve,"input-fields":De,menu:Be,recipe:Ku,roundup:sc,select:hc},Cc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yc(e,t)}(c,e);var t,n,r,i=wc(c);function c(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(e=i.call(this)).state={modalIsOpen:!1,mode:"",args:{}},e.content=o.createRef(),e.close=e.close.bind(Sc(e)),e.closeIfAllowed=e.closeIfAllowed.bind(Sc(e)),e}return t=c,(n=[{key:"open",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];!n&&this.state.modalIsOpen||this.setState({modalIsOpen:!0,mode:e,args:t},(function(){window.onbeforeunload=function(){return(0,u.S)("Are you sure you want to leave this page?")}}))}},{key:"close",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.setState({modalIsOpen:!1},(function(){window.onbeforeunload=null,"function"==typeof e&&e()}))}},{key:"closeIfAllowed",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(!this.content.current||!this.content.current.hasOwnProperty("allowCloseModal"))&&this.content.current.allowCloseModal;t&&!t()||this.close(e)}},{key:"addTextToEditor",value:function(e,t){if("undefined"==typeof tinyMCE||!tinyMCE.get(t)||tinyMCE.get(t).isHidden()){var n=gc("textarea#"+t).val();gc("textarea#"+t).val(n+e)}else tinyMCE.get(t).focus(!0),tinyMCE.activeEditor.selection.collapse(!1),tinyMCE.activeEditor.execCommand("mceInsertContent",!1,e)}},{key:"refreshEditor",value:function(e){"undefined"!=typeof tinyMCE&&tinyMCE.get(e)&&!tinyMCE.get(e).isHidden()&&(tinyMCE.get(e).focus(!0),tinyMCE.activeEditor.setContent(tinyMCE.activeEditor.getContent()))}},{key:"render",value:function(){var e=xc.applyFilters("modal",Oc),t=!!e.hasOwnProperty(this.state.mode)&&e[this.state.mode];return t?o.createElement(a(),{isOpen:this.state.modalIsOpen,onRequestClose:this.closeIfAllowed,overlayClassName:"wprm-admin-modal-overlay",className:"wprm-admin-modal wprm-admin-modal-".concat(this.state.mode)},o.createElement(s.Z,{module:"Modal"},o.createElement(t,{ref:this.content,mode:this.state.mode,args:this.state.args,maybeCloseModal:this.closeIfAllowed}))):null}}])&&bc(t.prototype,n),r&&bc(t,r),c}(o.Component);n.g._babelPolyfill||n(28059);var Dc=document.getElementById("wprm-admin-modal");Dc&&r.render(o.createElement(Cc,{ref:function(e){window.WPRM_Modal=e}}),Dc)},43636:function(e,t,n){"use strict";var r=n(89526),o=n(62834);t.Z=function(e){var t="wprm-admin-modal-field-container";e.id&&(t+=" wprm-admin-modal-field-container-".concat(e.id));var n=null;return e.help&&(n=r.createElement(o.Z,{type:"question",title:e.help,className:"wprm-admin-icon-help"})),r.createElement("div",{className:t},e.label?r.createElement(r.Fragment,null,r.createElement("div",{className:"wprm-admin-modal-field-label"},e.label,n),r.createElement("div",{className:"wprm-admin-modal-field"},e.children)):e.children)}},69347:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});n(26364),n(86632),n(61928),n(55862),n(19701),n(42900),n(61078),n(54883),n(77295),n(33130),n(80238),n(12938),n(56908),n(80044),n(10853),n(54130),n(33290),n(45007),n(6208),n(68995);var r=n(89526),o=n(844);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(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}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(c,e);var t,n,i,s=f(c);function c(){return l(this,c),s.apply(this,arguments)}return t=c,(n=[{key:"shouldComponentUpdate",value:function(e){return JSON.stringify(this.props.options)!==JSON.stringify(e.options)||this.props.value!==e.value||this.props.isDisabled!==e.isDisabled}},{key:"render",value:function(){var e=this,t=!1;this.props.options&&(t=this.props.options.reduce((function(e,t){return t.hasOwnProperty("options")?e=e.concat(t.options):e.push(t),e}),[]).find((function(t){return t.value===e.props.value})));var n=this.props.custom?this.props.custom:{};return r.createElement(o.ZP,a({isDisabled:this.props.isDisabled,options:this.props.options,value:t,placeholder:this.props.placeholder,onChange:function(t){e.props.onChange(t.value)},styles:{control:function(e){return u(u({},e),{},{backgroundColor:"white"})},container:function(t){return u(u({},t),{},{width:"100%",maxWidth:e.props.width?e.props.width:"100%"})}}},n))}}])&&p(t.prototype,n),i&&p(t,i),c}(r.Component)},24207:function(e,t,n){"use strict";n(55862),n(73214);var r=n(89526);t.Z=function(e){return r.createElement(r.Fragment,null,e.options.map((function(t){return r.createElement("div",{className:"wprm-admin-modal-field-radio-option",key:t.value},r.createElement("input",{type:"radio",value:t.value,name:"wprm-admin-radio-".concat(e.id),id:"wprm-admin-radio-".concat(e.id,"-").concat(t.value),checked:e.value==t.value,onChange:function(t){e.onChange(t.target.value)}}),r.createElement("label",{htmlFor:"wprm-admin-radio-".concat(e.id,"-").concat(t.value)},t.label))})))}},59905:function(e,t,n){"use strict";n(54994);var r=n(89526);t.Z=function(e){var t=!!e.hasOwnProperty("disabled")&&e.disabled,n=e.hasOwnProperty("type")?e.type:"text";return r.createElement("input",{type:n,disabled:t,name:e.name,value:e.value,placeholder:e.placeholder,onChange:function(t){e.onChange(t.target.value)},onKeyDown:function(t){e.onKeyDown&&e.onKeyDown(t)}})}},86605:function(e,t,n){"use strict";var r=n(89526),o=n(34133);t.Z=function(e){return r.createElement("div",{className:"wprm-admin-modal-footer"},e.savingChanges?r.createElement(o.Z,null):r.createElement(r.Fragment,null,e.children))}},96005:function(e,t,n){"use strict";var r=n(89526),o=n(52082),i=n(62834);t.Z=function(e){return r.createElement("div",{className:"wprm-admin-modal-header"},r.createElement("h2",null,e.children),r.createElement("div",{className:"wprm-admin-modal-close",onClick:e.onCloseModal},r.createElement(i.Z,{type:"close",title:(0,o.S)("Close")})))}},5308:function(e,t,n){"use strict";n(87191);var r=n(52082),o={selectImage:function(e){this.select("image",e)},selectVideo:function(e){this.select("video",e)},select:function(e,t){var n={title:(0,r.S)("Select Media"),button:{text:(0,r.S)("Select")},multiple:!1};"video"===e?(n.frame="video",n.state="video-details"):n.library={type:"image"};var o=wp.media(n);o.on("select",(function(){var e=o.state().get("selection").first().toJSON();t(e)})),o.on("update",(function(){var e=o.state().media.attachment;e&&t(e)})),o.open()}};t.Z=o},96463:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});n(26364),n(86632),n(61928),n(55862),n(54883),n(56908),n(10853),n(35054),n(54130),n(33290),n(45007),n(68995);var r=n(89526),o=n(45624),i=n(52082);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(d,e);var t,n,a,p=l(d);function d(){return s(this,d),p.apply(this,arguments)}return t=d,(n=[{key:"getOptions",value:function(e){return e?fetch(wprm_admin.ajax_url,{method:"POST",credentials:"same-origin",body:"action=wprm_search_recipes&security="+wprm_admin.nonce+"&search="+encodeURIComponent(e),headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded; charset=utf-8"}}).then((function(e){return e.json()})).then((function(e){return e.data.recipes_with_id})):Promise.resolve({options:[]})}},{key:"render",value:function(){return r.createElement(o.ZP,{placeholder:(0,i.S)("Select or search a recipe"),value:this.props.value,onChange:this.props.onValueChange,getOptionValue:function(e){return e.id},getOptionLabel:function(e){return e.text},defaultOptions:this.props.options.concat(wprm_admin.latest_recipes),loadOptions:this.getOptions.bind(this),noOptionsMessage:function(){return(0,i.S)("No recipes found")},clearable:!1})}}])&&u(t.prototype,n),a&&u(t,a),d}(r.Component)},37673:function(e,t,n){"use strict";n.d(t,{Z:function(){return T}});n(55862);var r=n(46087),o=wprm_admin.endpoints.analytics,i={delete:function(e){return r.Z.call("".concat(o,"/").concat(e),"DELETE")}},a=wprm_admin.endpoints.notices,s={dismissNotice:function(e){var t={id:e};return r.Z.call(a,"DELETE",t)}},u=wprm_admin.endpoints.modal,c={parseIngredients:function(e){var t={ingredients:e};return r.Z.call("".concat(u,"/ingredient/parse"),"POST",t)}},l=(n(10853),n(35054),wprm_admin.endpoints.manage),p=wprm_admin.endpoints.rating,d=wprm_admin.endpoints.taxonomy,f=!1,m=!1,h={getData:function(e){return f?(m=e,new Promise((function(e){return e(!1)}))):this.getDataDebounced(e)},getDataDebounced:function(e){var t=this;return f=!0,r.Z.call("".concat(l,"/").concat(e.route),"POST",e).then((function(e){if(m){var n=m;return m=!1,t.getDataDebounced(n)}return f=!1,e}))},deleteUserRatings:function(e){return r.Z.call("".concat(p,"/recipe/").concat(e),"DELETE")},getTerm:function(e,t){return r.Z.call("".concat(d).concat(e,"/").concat(t))},createTerm:function(e,t){var n={name:t};return r.Z.call("".concat(d).concat(e),"POST",n)},deleteTerm:function(e,t){return r.Z.call("".concat(d).concat(e,"/").concat(t,"?force=true"),"DELETE")},renameTerm:function(e,t,n){var o={name:n};return r.Z.call("".concat(d).concat(e,"/").concat(t),"POST",o)},renameTermLabel:function(e,t,n){var o={type:e,id:t,label:n};return r.Z.call("".concat(l,"/taxonomy/label"),"POST",o)},mergeTerm:function(e,t,n){var o={type:e,oldId:t,newId:n};return r.Z.call("".concat(l,"/taxonomy/merge"),"POST",o)},updateTaxonomyMeta:function(e,t,n){var o={};return o[e]=n,r.Z.call("".concat(d).concat(e,"/").concat(t),"POST",o)},bulkEdit:function(e,t,n,o){var i={type:t,ids:n,action:o};return r.Z.call("".concat(l,"/").concat(e,"/bulk"),"POST",i)}},g=wprm_admin.endpoints.modal,v=!1,b=!1,y={getSuggestions:function(e){return v?(b=e,new Promise((function(e){return e(!1)}))):this.getSuggestionsDebounced(e)},getSuggestionsDebounced:function(e){var t=this;return v=!0,r.Z.call("".concat(g,"/suggest"),"POST",e).then((function(e){if(b){var n=b;return b=!1,t.getSuggestionsDebounced(n)}return v=!1,e}))}},w=wprm_admin.endpoints.rating,E={update:function(e){var t={rating:e};return r.Z.call("".concat(w),"POST",t)},delete:function(e){return r.Z.call("".concat(w,"/").concat(e),"DELETE")}},S=wprm_admin.endpoints.recipe,I=wprm_admin.endpoints.manage,x={get:function(e){return r.Z.call("".concat(S,"/").concat(e))},save:function(e){var t={recipe:e},n=S,o="POST",i=!!e.id&&parseInt(e.id);return i&&(n+="/".concat(i),o="PUT"),r.Z.call(n,o,t)},updateStatus:function(e,t){var n={status:t};return r.Z.call("".concat(S,"/").concat(e),"PUT",n)},delete:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n="".concat(S,"/").concat(e);return t&&(n+="?force=true"),r.Z.call(n,"DELETE")},deleteRevision:function(e){return r.Z.call("".concat(I,"/revision/").concat(e),"DELETE")}},O=wprm_admin.endpoints.setting,C={save:function(e){var t={settings:e};return r.Z.call(O,"POST",t)}},D=(n(61078),n(6208),wprm_admin.endpoints.template),P=[],M={},k=null,A={previewShortcode:function(e,t,n){var r=this;return M[e]=t,clearTimeout(k),k=setTimeout((function(){r.previewShortcodes(n)}),500),new Promise((function(e){return P.push(e)}))},previewShortcodes:function(e){var t=P,n=M;P=[],M={};var r={recipeId:e,shortcodes:n};fetch("".concat(D,"/preview"),{method:"POST",headers:{"X-WP-Nonce":wprm_admin.api_nonce,Accept:"application/json","Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(r)}).then((function(e){return e.json().then((function(n){var r=e.ok?n.preview:{};t.forEach((function(e){return e(r)}))}))}))},searchRecipes:function(e){return fetch(wprm_admin.ajax_url,{method:"POST",credentials:"same-origin",body:"action=wprm_search_recipes&security="+wprm_admin.nonce+"&search="+encodeURIComponent(e),headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded; charset=utf-8"}}).then((function(e){return e.json()}))},save:function(e){var t={template:e};return r.Z.call(D,"POST",t)},delete:function(e){var t={slug:e};return r.Z.call(D,"DELETE",t)}},N=wprm_admin.endpoints.utilities,j={saveImage:function(e){var t={url:e};return r.Z.call("".concat(N,"/save_image"),"POST",t)}},T=WPRecipeMaker["wp-recipe-maker/dist/shared"].hooks.applyFilters("api",{analytics:i,general:s,import:c,manage:h,modal:y,rating:E,recipe:x,settings:C,template:A,utilities:j})},46087:function(e,t,n){"use strict";n(26364),n(86632),n(61928),n(55862),n(31807),n(54883),n(10853),n(35054),n(45007),n(68995);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.Z={call:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=wprm_admin.api_nonce;"object"===r(window.wpApiSettings)&&window.wpApiSettings.nonce&&(o=window.wpApiSettings.nonce);var i={method:t,headers:{"X-WP-Nonce":o,Accept:"application/json","Content-Type":"application/json","Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:0},credentials:"same-origin"};return"PUT"!==t&&"DELETE"!==t||(i.method="POST",i.headers["X-HTTP-Method-Override"]=t),n&&(i.body=JSON.stringify(n)),fetch(e,i).then((function(t){if(t.ok)return t.json();console.log(e,i),console.log(t);var n="Something went wrong. Using a firewall like Cloudflare or Sucuri? Try whitelisting your IP. If that doesn't work, please contact support@bootstrapped.ventures with the following details:",r="".concat(t.url," ").concat(t.redirected?"(redirected)":"","- ").concat(t.status," - ").concat(t.statusText);try{t.text().then((function(e){console.log(e),-1!==e.indexOf("rest_cookie_invalid_nonce")?alert("You got logged out or your session expired. Please try logging out of WordPress and back in again."):alert("".concat(n,"\r\n\r\n").concat(r,"\r\n\r\n").concat(e))}))}catch(o){console.log(o),alert("".concat(n,"\r\n\r\n").concat(r,"\r\n\r\n").concat(o))}return!1}))}}},48618:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});n(26364),n(86632),n(61928),n(54883),n(56908),n(10853),n(54130),n(33290),n(45007),n(68995);var r=n(89526);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(c,e);var t,n,o,u=s(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=u.call(this,e)).state={hasError:!1,error:!1,info:!1},t}return t=c,(n=[{key:"componentDidCatch",value:function(e,t){this.setState({hasError:!0,error:e,info:t})}},{key:"render",value:function(){return r.createElement(r.Fragment,null,this.state.hasError?r.createElement("div",{className:"wprm-error-boundary"},r.createElement("p",null,r.createElement("strong",null,"Something went wrong"),r.createElement("br",null),"Please contact ",r.createElement("a",{href:"mailto:support@bootstrapped.ventures"},"support@bootstrapped.ventures")," and send along the following information:"),r.createElement("pre",null,this.props.module?"Module: ".concat(this.props.module,"\n"):null,this.state.error?"Error: ".concat(this.state.error.toString(),"\n"):null,this.state.info?"Stack: ".concat(this.state.info.componentStack):null)):this.props.children)}}])&&i(t.prototype,n),o&&i(t,o),c}(r.Component)},62834:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(89526),o=n(49092),i=n(95075),a={adjustable:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWN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bGluZSBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjEyLjUiIHkxPSIxMS41IiB4Mj0iMTMuNSIgeTI9IjExLjUiIGRhdGEtY29sb3I9ImNvbG9yLTIiLz4gPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTE0LjUsMTUuNWgtMTMgYy0wLjU1MiwwLTEtMC40NDgtMS0xdi0xM2MwLTAuNTUyLDAuNDQ4LTEsMS0xaDEzYzAuNTUyLDAsMSwwLjQ0OCwxLDF2MTNDMTUuNSwxNS4wNTIsMTUuMDUyLDE1LjUsMTQuNSwxNS41eiIvPjwvZz48L3N2Zz4="},s=function(e){var t=!!a.hasOwnProperty(e.type)&&a[e.type];if(!t)return null;var n=e.title,s=e.className?"wprm-admin-icon ".concat(e.className):"wprm-admin-icon",u=!!e.hasOwnProperty("hidden")&&e.hidden;return u&&(n="",s+=" wprm-admin-icon-hidden"),r.createElement(i.Z,{content:n},r.createElement("span",{className:s,onClick:u?function(){}:e.onClick},r.createElement(o.Z,{src:t})))}},34133:function(e,t,n){"use strict";var r=n(89526);t.Z=function(e){return r.createElement("div",{className:"wprm-admin-loader"})}},95075:function(e,t,n){"use strict";n(26364),n(19701),n(61078),n(80238),n(12938),n(80044),n(6208);var r=n(89526),o=n(20877);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.Z=function(e){if(!e.content)return e.children;var t=e.hasOwnProperty("style")?e.style:{};return r.createElement(o.Tooltip,{html:r.createElement("div",{dangerouslySetInnerHTML:{__html:e.content}}),popperOptions:{modifiers:{addZIndex:{enabled:!0,order:810,fn:function(e){return a(a({},e),{},{styles:a(a({},e.styles),{},{zIndex:1e5})})}},preventOverflow:{boundariesElement:"window"}}},style:t},e.children)}},52082:function(e,t,n){"use strict";n.d(t,{S:function(){return s}});n(26364),n(19701),n(61078),n(80238),n(12938),n(80044),n(6208);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a={};function s(e){return a.hasOwnProperty(e)?a[e]:e}window.hasOwnProperty("wprm_public")&&wprm_public.hasOwnProperty("translations")&&(a=o(o({},a),wprm_public.translations)),window.hasOwnProperty("wprm_admin")&&wprm_admin.hasOwnProperty("translations")&&(a=o(o({},a),wprm_admin.translations))},61416:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:function(){return r}})},93661:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},71236:function(e,t,n){"use strict";var r=n(59833),o=n(24697),i="/*|*/";function a(e){e&&s.current.insert(e+"}")}var s={current:null},u=function(e,t,n,r,o,u,c,l,p,d){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return s.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===l)return t+i;break;case 3:switch(l){case 102:case 112:return s.current.insert(n[0]+t),"";default:return t+(0===d?i:"")}case-2:t.split("/*|*/}").forEach(a)}};t.Z=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var i=new o.Z(t);var a,c={};a=e.container||document.head;var l,p=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(p,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){c[e]=!0})),e.parentNode!==a&&a.appendChild(e)})),i.use(e.stylisPlugins)(u),l=function(e,t,n,r){var o=t.name;s.current=n,i(e,t.styles),r&&(d.inserted[o]=!0)};var d={key:n,sheet:new r.m({key:n,container:a,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:c,registered:{},insert:l};return d}},12821:function(e,t,n){"use strict";n.d(t,{nq:function(){return p},tZ:function(){return v},F4:function(){return b},ms:function(){return E}});var r=n(89526),o=n(71236),i=n(56002),a=n(26794),s=n(59833),u=n(72144);var c=(0,r.createContext)((0,o.Z)()),l=(0,r.createContext)({}),p=c.Provider,d=function(e){return(0,r.forwardRef)((function(t,n){return(0,r.createElement)(c.Consumer,null,(function(r){return e(t,r,n)}))}))},f="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",m=Object.prototype.hasOwnProperty,h=function(e,t,n,o){var s=t[f],u=[],c="",l=null===n?t.css:t.css(n);"string"==typeof l&&void 0!==e.registered[l]&&(l=e.registered[l]),u.push(l),void 0!==t.className&&(c=(0,i.f)(e.registered,u,t.className));var p=(0,a.O)(u);(0,i.M)(e,p,"string"==typeof s);c+=e.key+"-"+p.name;var d={};for(var h in t)m.call(t,h)&&"css"!==h&&h!==f&&(d[h]=t[h]);return d.ref=o,d.className=c,(0,r.createElement)(s,d)},g=d((function(e,t,n){return"function"==typeof e.css?(0,r.createElement)(l.Consumer,null,(function(r){return h(t,e,r,n)})):h(t,e,null,n)}));var v=function(e,t){var n=arguments;if(null==t||null==t.css)return r.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=g;var a={};for(var s in t)m.call(t,s)&&(a[s]=t[s]);a[f]=e,i[1]=a;for(var u=2;u<o;u++)i[u]=n[u];return r.createElement.apply(null,i)},b=(r.Component,function(){var e=u.Z.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}),y=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var s in a="",i)i[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};function w(e,t,n){var r=[],o=(0,i.f)(e,r,n);return r.length<2?n:o+t(r)}var E=d((function(e,t){return(0,r.createElement)(l.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=(0,a.O)(n,t.registered);return(0,i.M)(t,o,!1),t.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return w(t.registered,r,y(n))},theme:n},s=e.children(o);return!0,s}))}))},72144:function(e,t,n){"use strict";var r=n(26794);t.Z=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.O)(t)}},95862:function(e,t){"use strict";t.Z=function(e){for(var t,n=e.length,r=n^n,o=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++o;switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),((r^=r>>>15)>>>0).toString(36)}},93059:function(e,t){"use strict";t.Z=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},26794:function(e,t,n){"use strict";n.d(t,{O:function(){return f}});var r=n(95862),o=n(8560),i=n(93059),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u=(0,i.Z)((function(e){return e.replace(a,"-$&").toLowerCase()})),c=function(e,t){if(null==t||"boolean"==typeof t)return"";switch(e){case"animation":case"animationName":"string"==typeof t&&(t=t.replace(s,(function(e,t,n){return p={name:t,styles:n,next:p},t})))}return 1!==o.Z[e]&&45!==e.charCodeAt(1)&&"number"==typeof t&&0!==t?t+"px":t};function l(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return p={name:n.name,styles:n.styles,next:p},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)p={name:o.name,styles:o.styles,next:p},o=o.next;return n.styles}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=l(e,t,n[o],!1);else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":r+=u(i)+":"+c(i,a)+";";else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]])r+=i+"{"+l(e,t,a,!1)+"}";else for(var s=0;s<a.length;s++)r+=u(i)+":"+c(i,a[s])+";"}return r}(e,t,n);case"function":if(void 0!==e){var i=p,a=n(e);return p=i,l(e,t,a,r)}default:if(null==t)return n;var s=t[n];return void 0===s||r?n:s}}var p,d=/label:\s*([^\s;\n{]+)\s*;/g;var f=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,i="";p=void 0;var a=e[0];null==a||void 0===a.raw?(o=!1,i+=l(n,t,a,!1)):i+=a[0];for(var s=1;s<e.length;s++)i+=l(n,t,e[s],46===i.charCodeAt(i.length-1)),o&&(i+=a[s]);d.lastIndex=0;for(var u,c="";null!==(u=d.exec(i));)c+="-"+u[1];return{name:(0,r.Z)(i)+c,styles:i,next:p}}},59833:function(e,t,n){"use strict";n.d(t,{m:function(){return r}});var r=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var i=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,i?0:o.cssRules.length)}catch(a){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}()},24697:function(e,t){"use strict";t.Z=function(e){function t(e,r,u,c,d){for(var f,m,h,g,w,S=0,I=0,x=0,O=0,C=0,N=0,T=h=f=0,R=0,_=0,F=0,B=0,Z=u.length,H=Z-1,U="",W="",G="",z="";R<Z;){if(m=u.charCodeAt(R),R===H&&0!==I+O+x+S&&(0!==I&&(m=47===I?10:47),O=x=S=0,Z++,H++),0===I+O+x+S){if(R===H&&(0<_&&(U=U.replace(p,"")),0<U.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:U+=u.charAt(R)}m=59}switch(m){case 123:for(f=(U=U.trim()).charCodeAt(0),h=1,B=++R;R<Z;){switch(m=u.charCodeAt(R)){case 123:h++;break;case 125:h--;break;case 47:switch(m=u.charCodeAt(R+1)){case 42:case 47:e:{for(T=R+1;T<H;++T)switch(u.charCodeAt(T)){case 47:if(42===m&&42===u.charCodeAt(T-1)&&R+2!==T){R=T+1;break e}break;case 10:if(47===m){R=T+1;break e}}R=T}}break;case 91:m++;case 40:m++;case 34:case 39:for(;R++<H&&u.charCodeAt(R)!==m;);}if(0===h)break;R++}switch(h=u.substring(B,R),0===f&&(f=(U=U.replace(l,"").trim()).charCodeAt(0)),f){case 64:switch(0<_&&(U=U.replace(p,"")),m=U.charCodeAt(1)){case 100:case 109:case 115:case 45:_=r;break;default:_=A}if(B=(h=t(r,_,h,m,d+1)).length,0<j&&(w=s(3,h,_=n(A,U,F),r,P,D,B,m,d,c),U=_.join(""),void 0!==w&&0===(B=(h=w.trim()).length)&&(m=0,h="")),0<B)switch(m){case 115:U=U.replace(E,a);case 100:case 109:case 45:h=U+"{"+h+"}";break;case 107:h=(U=U.replace(v,"$1 $2"))+"{"+h+"}",h=1===k||2===k&&i("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=U+h,112===c&&(W+=h,h="")}else h="";break;default:h=t(r,n(r,U,F),h,c,d+1)}G+=h,h=F=_=T=f=0,U="",m=u.charCodeAt(++R);break;case 125:case 59:if(1<(B=(U=(0<_?U.replace(p,""):U).trim()).length))switch(0===T&&(f=U.charCodeAt(0),45===f||96<f&&123>f)&&(B=(U=U.replace(" ",":")).length),0<j&&void 0!==(w=s(1,U,r,e,P,D,W.length,c,d,c))&&0===(B=(U=w.trim()).length)&&(U="\0\0"),f=U.charCodeAt(0),m=U.charCodeAt(1),f){case 0:break;case 64:if(105===m||99===m){z+=U+u.charAt(R);break}default:58!==U.charCodeAt(B-1)&&(W+=o(U,f,m,U.charCodeAt(2)))}F=_=T=f=0,U="",m=u.charCodeAt(++R)}}switch(m){case 13:case 10:47===I?I=0:0===1+f&&107!==c&&0<U.length&&(_=1,U+="\0"),0<j*L&&s(0,U,r,e,P,D,W.length,c,d,c),D=1,P++;break;case 59:case 125:if(0===I+O+x+S){D++;break}default:switch(D++,g=u.charAt(R),m){case 9:case 32:if(0===O+S+I)switch(C){case 44:case 58:case 9:case 32:g="";break;default:32!==m&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===O+I+S&&(_=F=1,g="\f"+g);break;case 108:if(0===O+I+S+M&&0<T)switch(R-T){case 2:112===C&&58===u.charCodeAt(R-3)&&(M=C);case 8:111===N&&(M=N)}break;case 58:0===O+I+S&&(T=R);break;case 44:0===I+x+O+S&&(_=1,g+="\r");break;case 34:case 39:0===I&&(O=O===m?0:0===O?m:O);break;case 91:0===O+I+x&&S++;break;case 93:0===O+I+x&&S--;break;case 41:0===O+I+S&&x--;break;case 40:if(0===O+I+S){if(0===f)switch(2*C+3*N){case 533:break;default:f=1}x++}break;case 64:0===I+x+O+S+T+h&&(h=1);break;case 42:case 47:if(!(0<O+S+x))switch(I){case 0:switch(2*m+3*u.charCodeAt(R+1)){case 235:I=47;break;case 220:B=R,I=42}break;case 42:47===m&&42===C&&B+2!==R&&(33===u.charCodeAt(B+2)&&(W+=u.substring(B,R+1)),g="",I=0)}}0===I&&(U+=g)}N=C,C=m,R++}if(0<(B=W.length)){if(_=r,0<j&&(void 0!==(w=s(2,W,_,e,P,D,B,c,d,c))&&0===(W=w).length))return z+W+G;if(W=_.join(",")+"{"+W+"}",0!=k*M){switch(2!==k||i(W,2)||(M=0),M){case 111:W=W.replace(y,":-moz-$1")+W;break;case 112:W=W.replace(b,"::-webkit-input-$1")+W.replace(b,"::-moz-$1")+W.replace(b,":-ms-input-$1")+W}M=0}}return z+W+G}function n(e,t,n){var o=t.trim().split(h);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=r(e,t[s],n).trim();break;default:var u=s=0;for(t=[];s<i;++s)for(var c=0;c<a;++c)t[u++]=r(e[c]+" ",o[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===k||2===k&&i(u,1)?"-webkit-"+u+u:u}if(0===k||2===k&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(C,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return f.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=a.replace(w,"tb");break;case 232:u=a.replace(w,"tb-rl");break;case 220:u=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(u=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(I,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(I,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===O.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),T(2!==t?r:r.replace(x,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(S," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,o,i,a,s,u,l){for(var p,d=0,f=t;d<j;++d)switch(p=N[d].call(c,e,f,n,r,o,i,a,s,u,l)){case void 0:case!1:case!0:case null:break;default:f=p}if(f!==t)return f}function u(e){return void 0!==(e=e.prefix)&&(T=null,e?"function"!=typeof e?k=1:(k=2,T=e):k=0),u}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<j){var o=s(-1,n,r,r,P,D,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var i=t(A,r,n,0,0);return 0<j&&(void 0!==(o=s(-2,i,r,r,P,D,i.length,0,0,0))&&(i=o)),"",M=0,D=P=1,i}var l=/^\0+/g,p=/[\0\r\f]/g,d=/: */g,f=/zoo|gra/,m=/([,: ])(transform)/g,h=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,y=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,E=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,I=/-self|flex-/g,x=/[^]*?(:[rp][el]a[\w-]+)[^]*/,O=/stretch|:\s*\w+\-(?:conte|avail)/,C=/([^-])(image-set\()/,D=1,P=1,M=0,k=1,A=[],N=[],j=0,T=null,L=0;return c.use=function e(t){switch(t){case void 0:case null:j=N.length=0;break;default:if("function"==typeof t)N[j++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else L=0|!!t}return e},c.set=u,void 0!==e&&u(e),c}},8560:function(e,t){"use strict";t.Z={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},56002:function(e,t,n){"use strict";n.d(t,{f:function(){return r},M:function(){return o}});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var o=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+r,o,e.sheet,!0);o=o.next}while(void 0!==o)}}},38974:function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},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=90)}({17:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(18),o=function(){function e(){}return e.getFirstMatch=function(e,t){var n=t.match(e);return n&&n.length>0&&n[1]||""},e.getSecondMatch=function(e,t){var n=t.match(e);return n&&n.length>1&&n[2]||""},e.matchAndReturnConst=function(e,t,n){if(e.test(t))return n},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,n,r){void 0===r&&(r=!1);var o=e.getVersionPrecision(t),i=e.getVersionPrecision(n),a=Math.max(o,i),s=0,u=e.map([t,n],(function(t){var n=a-e.getVersionPrecision(t),r=t+new Array(n+1).join(".0");return e.map(r.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(r&&(s=a-Math.min(o,i)),a-=1;a>=s;){if(u[0][a]>u[1][a])return 1;if(u[0][a]===u[1][a]){if(a===s)return 0;a-=1}else if(u[0][a]<u[1][a])return-1}},e.map=function(e,t){var n,r=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n<e.length;n+=1)r.push(t(e[n]));return r},e.find=function(e,t){var n,r;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(n=0,r=e.length;n<r;n+=1){var o=e[n];if(t(o,n))return o}},e.assign=function(e){for(var t,n,r=e,o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];if(Object.assign)return Object.assign.apply(Object,[e].concat(i));var s=function(){var e=i[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){r[t]=e[t]}))};for(t=0,n=i.length;t<n;t+=1)s();return e},e.getBrowserAlias=function(e){return r.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return r.BROWSER_MAP[e]||""},e}();t.default=o,e.exports=t.default},18:function(e,t,n){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=n(91))&&r.__esModule?r:{default:r},i=n(18);function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function e(){}var t,n,r;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new o.default(e,t)},e.parse=function(e){return new o.default(e).getResult()},t=e,r=[{key:"BROWSER_MAP",get:function(){return i.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return i.ENGINE_MAP}},{key:"OS_MAP",get:function(){return i.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return i.PLATFORMS_MAP}}],(n=null)&&a(t.prototype,n),r&&a(t,r),e}();t.default=s,e.exports=t.default},91:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=u(n(92)),o=u(n(93)),i=u(n(94)),a=u(n(95)),s=u(n(17));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=s.default.find(r.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=s.default.find(o.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=s.default.find(i.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=s.default.find(a.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return s.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,n={},r=0,o={},i=0;if(Object.keys(e).forEach((function(t){var a=e[t];"string"==typeof a?(o[t]=a,i+=1):"object"==typeof a&&(n[t]=a,r+=1)})),r>0){var a=Object.keys(n),u=s.default.find(a,(function(e){return t.isOS(e)}));if(u){var c=this.satisfies(n[u]);if(void 0!==c)return c}var l=s.default.find(a,(function(e){return t.isPlatform(e)}));if(l){var p=this.satisfies(n[l]);if(void 0!==p)return p}}if(i>0){var d=Object.keys(o),f=s.default.find(d,(function(e){return t.isBrowser(e,!0)}));if(void 0!==f)return this.compareVersion(o[f])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),o=s.default.getBrowserTypeByAlias(r);return t&&o&&(r=o.toLowerCase()),r===n},t.compareVersion=function(e){var t=[0],n=e,r=!1,o=this.getBrowserVersion();if("string"==typeof o)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(r=!0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(r=!0,n=e.substr(1)),t.indexOf(s.default.compareVersions(o,n,r))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=c,e.exports=t.default},92:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},n=o.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},n=o.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},n=o.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},n=o.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},n=o.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},n=o.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},n=o.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},n=o.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=o.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},n=o.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},n=o.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},n=o.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},n=o.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},n=o.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},n=o.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},n=o.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},n=o.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},n=o.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},n=o.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},n=o.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},n=o.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},n=o.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},n=o.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},n=o.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},n=o.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},n=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},n=o.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t={name:"Android Browser"},n=o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},n=o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},n=o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:o.default.getFirstMatch(t,e),version:o.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=n(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=o.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:i.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=o.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=o.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=o.default.getWindowsVersionName(t);return{name:i.OS_MAP.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:i.OS_MAP.iOS},n=o.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe:function(e){var t=o.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=o.default.getMacOSVersionName(t),r={name:i.OS_MAP.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=o.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:i.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t=o.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=o.default.getAndroidVersionName(t),r={name:i.OS_MAP.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=o.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:i.OS_MAP.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=o.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||o.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||o.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:i.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=o.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=o.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:i.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:i.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=o.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=n(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=o.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:i.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe:function(e){var t=o.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:i.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=n(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:i.ENGINE_MAP.Blink};var t=o.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:i.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:i.ENGINE_MAP.Trident},n=o.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:i.ENGINE_MAP.Presto},n=o.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe:function(e){var t={name:i.ENGINE_MAP.Gecko},n=o.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:i.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:i.ENGINE_MAP.WebKit},n=o.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];t.default=a,e.exports=t.default}})},77447:function(e,t,n){"use strict";var r=n(12817);e.exports=function(e,t){var n,o,i,a,s,u,c=!1;t||(t={}),n=t.debug||!1;try{if(i=r(),a=document.createRange(),s=document.getSelection(),(u=document.createElement("span")).textContent=e,u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(n){n.stopPropagation(),t.format&&(n.preventDefault(),n.clipboardData.clearData(),n.clipboardData.setData(t.format,e))})),document.body.appendChild(u),a.selectNodeContents(u),s.addRange(a),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!0}catch(l){n&&console.error("unable to copy using execCommand: ",l),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),c=!0}catch(l){n&&console.error("unable to copy using clipboardData: ",l),n&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(a):s.removeAllRanges()),u&&document.body.removeChild(u),i()}return c}},22020:function(e,t,n){n(59789),n(68502);var r=n(13145);e.exports=r("Array","flat")},9968:function(e,t,n){var r=n(22020);e.exports=r},28641:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},75017:function(e,t,n){var r=n(52786);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},6677:function(e,t,n){var r=n(52280),o=n(51569),i=n(86385),a=r("unscopables"),s=Array.prototype;null==s[a]&&i.f(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},13350:function(e,t,n){"use strict";var r=n(91140).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},9519:function(e){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},83875:function(e,t,n){var r=n(52786);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},20379:function(e,t,n){"use strict";var r=n(68671).forEach,o=n(54324),i=n(5673),a=o("forEach"),s=i("forEach");e.exports=a&&s?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},84899:function(e,t,n){"use strict";var r=n(98166),o=n(30744),i=n(9637),a=n(68089),s=n(35108),u=n(35039),c=n(77193);e.exports=function(e){var t,n,l,p,d,f,m=o(e),h="function"==typeof this?this:Array,g=arguments.length,v=g>1?arguments[1]:void 0,b=void 0!==v,y=c(m),w=0;if(b&&(v=r(v,g>2?arguments[2]:void 0,2)),null==y||h==Array&&a(y))for(n=new h(t=s(m.length));t>w;w++)f=b?v(m[w],w):m[w],u(n,w,f);else for(d=(p=y.call(m)).next,n=new h;!(l=d.call(p)).done;w++)f=b?i(p,v,[l.value,w],!0):l.value,u(n,w,f);return n.length=w,n}},37190:function(e,t,n){var r=n(29580),o=n(35108),i=n(32565),a=function(e){return function(t,n,a){var s,u=r(t),c=o(u.length),l=i(a,c);if(e&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},68671:function(e,t,n){var r=n(98166),o=n(78609),i=n(30744),a=n(35108),s=n(80150),u=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,l=4==e,p=6==e,d=5==e||p;return function(f,m,h,g){for(var v,b,y=i(f),w=o(y),E=r(m,h,3),S=a(w.length),I=0,x=g||s,O=t?x(f,S):n?x(f,0):void 0;S>I;I++)if((d||I in w)&&(b=E(v=w[I],I,y),e))if(t)O[I]=b;else if(b)switch(e){case 3:return!0;case 5:return v;case 6:return I;case 2:u.call(O,v)}else if(l)return!1;return p?-1:c||l?l:O}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},82091:function(e,t,n){var r=n(79044),o=n(52280),i=n(11197),a=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},54324:function(e,t,n){"use strict";var r=n(79044);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},5673:function(e,t,n){var r=n(7493),o=n(79044),i=n(40454),a=Object.defineProperty,s={},u=function(e){throw e};e.exports=function(e,t){if(i(s,e))return s[e];t||(t={});var n=[][e],c=!!i(t,"ACCESSORS")&&t.ACCESSORS,l=i(t,0)?t[0]:u,p=i(t,1)?t[1]:void 0;return s[e]=!!n&&!o((function(){if(c&&!r)return!0;var e={length:-1};c?a(e,1,{enumerable:!0,get:u}):e[1]=1,n.call(e,l,p)}))}},86596:function(e,t,n){var r=n(28641),o=n(30744),i=n(78609),a=n(35108),s=function(e){return function(t,n,s,u){r(n);var c=o(t),l=i(c),p=a(c.length),d=e?p-1:0,f=e?-1:1;if(s<2)for(;;){if(d in l){u=l[d],d+=f;break}if(d+=f,e?d<0:p<=d)throw TypeError("Reduce of empty array with no initial value")}for(;e?d>=0:p>d;d+=f)d in l&&(u=n(u,l[d],d,c));return u}};e.exports={left:s(!1),right:s(!0)}},80150:function(e,t,n){var r=n(52786),o=n(71982),i=n(52280)("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},9637:function(e,t,n){var r=n(83875);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(a){var i=e.return;throw void 0!==i&&r(i.call(e)),a}}},8662:function(e,t,n){var r=n(52280)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(s){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(s){}return n}},79159:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},36994:function(e,t,n){var r=n(57301),o=n(79159),i=n(52280)("toStringTag"),a="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),i))?n:a?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},73870:function(e,t,n){var r=n(40454),o=n(31561),i=n(66012),a=n(86385);e.exports=function(e,t){for(var n=o(t),s=a.f,u=i.f,c=0;c<n.length;c++){var l=n[c];r(e,l)||s(e,l,u(t,l))}}},15454:function(e,t,n){var r=n(52280)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(o){}}return!1}},25115:function(e,t,n){var r=n(79044);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},75304:function(e,t,n){var r=n(96411),o=/"/g;e.exports=function(e,t,n,i){var a=String(r(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(i).replace(o,"&quot;")+'"'),s+">"+a+"</"+t+">"}},6181:function(e,t,n){"use strict";var r=n(97022).IteratorPrototype,o=n(51569),i=n(69199),a=n(60878),s=n(44818),u=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),a(e,c,!1,!0),s[c]=u,e}},45899:function(e,t,n){var r=n(7493),o=n(86385),i=n(69199);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},69199:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},35039:function(e,t,n){"use strict";var r=n(21893),o=n(86385),i=n(69199);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},61495:function(e,t,n){"use strict";var r=n(19882),o=n(6181),i=n(12654),a=n(22412),s=n(60878),u=n(45899),c=n(35974),l=n(52280),p=n(21178),d=n(44818),f=n(97022),m=f.IteratorPrototype,h=f.BUGGY_SAFARI_ITERATORS,g=l("iterator"),v="keys",b="values",y="entries",w=function(){return this};e.exports=function(e,t,n,l,f,E,S){o(n,t,l);var I,x,O,C=function(e){if(e===f&&A)return A;if(!h&&e in M)return M[e];switch(e){case v:case b:case y:return function(){return new n(this,e)}}return function(){return new n(this)}},D=t+" Iterator",P=!1,M=e.prototype,k=M[g]||M["@@iterator"]||f&&M[f],A=!h&&k||C(f),N="Array"==t&&M.entries||k;if(N&&(I=i(N.call(new e)),m!==Object.prototype&&I.next&&(p||i(I)===m||(a?a(I,m):"function"!=typeof I[g]&&u(I,g,w)),s(I,D,!0,!0),p&&(d[D]=w))),f==b&&k&&k.name!==b&&(P=!0,A=function(){return k.call(this)}),p&&!S||M[g]===A||u(M,g,A),d[t]=A,f)if(x={values:C(b),keys:E?A:C(v),entries:C(y)},S)for(O in x)(h||P||!(O in M))&&c(M,O,x[O]);else r({target:t,proto:!0,forced:h||P},x);return x}},68308:function(e,t,n){var r=n(67290),o=n(40454),i=n(20127),a=n(86385).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},7493:function(e,t,n){var r=n(79044);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},92750:function(e,t,n){var r=n(98363),o=n(52786),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},12848:function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},53121:function(e,t,n){var r=n(82647);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},82647:function(e,t,n){var r=n(22773);e.exports=r("navigator","userAgent")||""},11197:function(e,t,n){var r,o,i=n(98363),a=n(82647),s=i.process,u=s&&s.versions,c=u&&u.v8;c?o=(r=c.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=r[1]),e.exports=o&&+o},13145:function(e,t,n){var r=n(98363),o=n(98166),i=Function.call;e.exports=function(e,t,n){return o(i,r[e].prototype[t],n)}},48869:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},19882:function(e,t,n){var r=n(98363),o=n(66012).f,i=n(45899),a=n(35974),s=n(51621),u=n(73870),c=n(86291);e.exports=function(e,t){var n,l,p,d,f,m=e.target,h=e.global,g=e.stat;if(n=h?r:g?r[m]||s(m,{}):(r[m]||{}).prototype)for(l in t){if(d=t[l],p=e.noTargetGet?(f=o(n,l))&&f.value:n[l],!c(h?l:m+(g?".":"#")+l,e.forced)&&void 0!==p){if(typeof d==typeof p)continue;u(d,p)}(e.sham||p&&p.sham)&&i(d,"sham",!0),a(n,l,d,e)}}},79044:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},81492:function(e,t,n){"use strict";n(39275);var r=n(35974),o=n(79044),i=n(52280),a=n(99749),s=n(45899),u=i("species"),c=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),l="$0"==="a".replace(/./,"$0"),p=i("replace"),d=!!/./[p]&&""===/./[p]("a","$0"),f=!o((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,p){var m=i(e),h=!o((function(){var t={};return t[m]=function(){return 7},7!=""[e](t)})),g=h&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[m]=/./[m]),n.exec=function(){return t=!0,null},n[m](""),!t}));if(!h||!g||"replace"===e&&(!c||!l||d)||"split"===e&&!f){var v=/./[m],b=n(m,""[e],(function(e,t,n,r,o){return t.exec===a?h&&!o?{done:!0,value:v.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),y=b[0],w=b[1];r(String.prototype,e,y),r(RegExp.prototype,m,2==t?function(e,t){return w.call(e,this,t)}:function(e){return w.call(e,this)})}p&&s(RegExp.prototype[m],"sham",!0)}},92613:function(e,t,n){"use strict";var r=n(71982),o=n(35108),i=n(98166),a=function(e,t,n,s,u,c,l,p){for(var d,f=u,m=0,h=!!l&&i(l,p,3);m<s;){if(m in n){if(d=h?h(n[m],m,t):n[m],c>0&&r(d))f=a(e,t,d,o(d.length),f,c-1)-1;else{if(f>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[f]=d}f++}m++}return f};e.exports=a},98166:function(e,t,n){var r=n(28641);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},52381:function(e,t,n){"use strict";var r=n(28641),o=n(52786),i=[].slice,a={},s=function(e,t,n){if(!(t in a)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";a[t]=Function("C,a","return new C("+r.join(",")+")")}return a[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=i.call(arguments,1),a=function(){var r=n.concat(i.call(arguments));return this instanceof a?s(t,r.length,r):t.apply(e,r)};return o(t.prototype)&&(a.prototype=t.prototype),a}},22773:function(e,t,n){var r=n(67290),o=n(98363),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},77193:function(e,t,n){var r=n(36994),o=n(44818),i=n(52280)("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},98363:function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||Function("return this")()},40454:function(e){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},47505:function(e){e.exports={}},46271:function(e,t,n){var r=n(98363);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},47055:function(e,t,n){var r=n(22773);e.exports=r("document","documentElement")},67548:function(e,t,n){var r=n(7493),o=n(79044),i=n(92750);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},78609:function(e,t,n){var r=n(79044),o=n(79159),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},59250:function(e,t,n){var r=n(52786),o=n(22412);e.exports=function(e,t,n){var i,a;return o&&"function"==typeof(i=t.constructor)&&i!==n&&r(a=i.prototype)&&a!==n.prototype&&o(e,a),e}},56429:function(e,t,n){var r=n(49415),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},20821:function(e,t,n){var r,o,i,a=n(36830),s=n(98363),u=n(52786),c=n(45899),l=n(40454),p=n(50466),d=n(47505),f=s.WeakMap;if(a){var m=new f,h=m.get,g=m.has,v=m.set;r=function(e,t){return v.call(m,e,t),t},o=function(e){return h.call(m,e)||{}},i=function(e){return g.call(m,e)}}else{var b=p("state");d[b]=!0,r=function(e,t){return c(e,b,t),t},o=function(e){return l(e,b)?e[b]:{}},i=function(e){return l(e,b)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},68089:function(e,t,n){var r=n(52280),o=n(44818),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},71982:function(e,t,n){var r=n(79159);e.exports=Array.isArray||function(e){return"Array"==r(e)}},86291:function(e,t,n){var r=n(79044),o=/#|\.prototype\./,i=function(e,t){var n=s[a(e)];return n==c||n!=u&&("function"==typeof t?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=i.data={},u=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},68746:function(e,t,n){var r=n(52786),o=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&o(e)===e}},52786:function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},21178:function(e){e.exports=!1},42622:function(e,t,n){var r=n(52786),o=n(79159),i=n(52280)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},5166:function(e,t,n){var r=n(83875),o=n(68089),i=n(35108),a=n(98166),s=n(77193),u=n(9637),c=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,l,p){var d,f,m,h,g,v,b,y=a(t,n,l?2:1);if(p)d=e;else{if("function"!=typeof(f=s(e)))throw TypeError("Target is not iterable");if(o(f)){for(m=0,h=i(e.length);h>m;m++)if((g=l?y(r(b=e[m])[0],b[1]):y(e[m]))&&g instanceof c)return g;return new c(!1)}d=f.call(e)}for(v=d.next;!(b=v.call(d)).done;)if("object"==typeof(g=u(d,y,b.value,l))&&g&&g instanceof c)return g;return new c(!1)}).stop=function(e){return new c(!0,e)}},97022:function(e,t,n){"use strict";var r,o,i,a=n(12654),s=n(45899),u=n(40454),c=n(52280),l=n(21178),p=c("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(r=o):d=!0),null==r&&(r={}),l||u(r,p)||s(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},44818:function(e){e.exports={}},71800:function(e,t,n){var r,o,i,a,s,u,c,l,p=n(98363),d=n(66012).f,f=n(79159),m=n(84643).set,h=n(53121),g=p.MutationObserver||p.WebKitMutationObserver,v=p.process,b=p.Promise,y="process"==f(v),w=d(p,"queueMicrotask"),E=w&&w.value;E||(r=function(){var e,t;for(y&&(e=v.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(n){throw o?a():i=void 0,n}}i=void 0,e&&e.enter()},y?a=function(){v.nextTick(r)}:g&&!h?(s=!0,u=document.createTextNode(""),new g(r).observe(u,{characterData:!0}),a=function(){u.data=s=!s}):b&&b.resolve?(c=b.resolve(void 0),l=c.then,a=function(){l.call(c,r)}):a=function(){m.call(p,r)}),e.exports=E||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,a()),i=t}},58369:function(e,t,n){var r=n(98363);e.exports=r.Promise},3850:function(e,t,n){var r=n(79044);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},36830:function(e,t,n){var r=n(98363),o=n(56429),i=r.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},29269:function(e,t,n){"use strict";var r=n(28641),o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},21049:function(e,t,n){var r=n(42622);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},45856:function(e,t,n){"use strict";var r=n(7493),o=n(79044),i=n(60667),a=n(89612),s=n(81513),u=n(30744),c=n(78609),l=Object.assign,p=Object.defineProperty;e.exports=!l||o((function(){if(r&&1!==l({b:1},l(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||i(l({},t)).join("")!=o}))?function(e,t){for(var n=u(e),o=arguments.length,l=1,p=a.f,d=s.f;o>l;)for(var f,m=c(arguments[l++]),h=p?i(m).concat(p(m)):i(m),g=h.length,v=0;g>v;)f=h[v++],r&&!d.call(m,f)||(n[f]=m[f]);return n}:l},51569:function(e,t,n){var r,o=n(83875),i=n(17840),a=n(48869),s=n(47505),u=n(47055),c=n(92750),l=n(50466),p=l("IE_PROTO"),d=function(){},f=function(e){return"<script>"+e+"</"+"script>"},m=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(o){}var e,t;m=r?function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=c("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete m.prototype[a[n]];return m()};s[p]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(d.prototype=o(e),n=new d,d.prototype=null,n[p]=e):n=m(),void 0===t?n:i(n,t)}},17840:function(e,t,n){var r=n(7493),o=n(86385),i=n(83875),a=n(60667);e.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=a(t),s=r.length,u=0;s>u;)o.f(e,n=r[u++],t[n]);return e}},86385:function(e,t,n){var r=n(7493),o=n(67548),i=n(83875),a=n(21893),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(i(e),t=a(t,!0),i(n),o)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},66012:function(e,t,n){var r=n(7493),o=n(81513),i=n(69199),a=n(29580),s=n(21893),u=n(40454),c=n(67548),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=a(e),t=s(t,!0),c)try{return l(e,t)}catch(n){}if(u(e,t))return i(!o.f.call(e,t),e[t])}},74938:function(e,t,n){var r=n(29580),o=n(87994).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(t){return a.slice()}}(e):o(r(e))}},87994:function(e,t,n){var r=n(18794),o=n(48869).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},89612:function(e,t){t.f=Object.getOwnPropertySymbols},12654:function(e,t,n){var r=n(40454),o=n(30744),i=n(50466),a=n(25115),s=i("IE_PROTO"),u=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=o(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},18794:function(e,t,n){var r=n(40454),o=n(29580),i=n(37190).indexOf,a=n(47505);e.exports=function(e,t){var n,s=o(e),u=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~i(c,n)||c.push(n));return c}},60667:function(e,t,n){var r=n(18794),o=n(48869);e.exports=Object.keys||function(e){return r(e,o)}},81513:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},22412:function(e,t,n){var r=n(83875),o=n(75017);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(i){}return function(n,i){return r(n),o(i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},8765:function(e,t,n){var r=n(7493),o=n(60667),i=n(29580),a=n(81513).f,s=function(e){return function(t){for(var n,s=i(t),u=o(s),c=u.length,l=0,p=[];c>l;)n=u[l++],r&&!a.call(s,n)||p.push(e?[n,s[n]]:s[n]);return p}};e.exports={entries:s(!0),values:s(!1)}},36699:function(e,t,n){"use strict";var r=n(57301),o=n(36994);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},31561:function(e,t,n){var r=n(22773),o=n(87994),i=n(89612),a=n(83875);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},67290:function(e,t,n){var r=n(98363);e.exports=r},74443:function(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},11621:function(e,t,n){var r=n(83875),o=n(52786),i=n(29269);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},7592:function(e,t,n){var r=n(35974);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},35974:function(e,t,n){var r=n(98363),o=n(45899),i=n(40454),a=n(51621),s=n(56429),u=n(20821),c=u.get,l=u.enforce,p=String(String).split("String");(e.exports=function(e,t,n,s){var u=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||o(n,"name",t),l(n).source=p.join("string"==typeof t?t:"")),e!==r?(u?!d&&e[t]&&(c=!0):delete e[t],c?e[t]=n:o(e,t,n)):c?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},94088:function(e,t,n){var r=n(79159),o=n(99749);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},99749:function(e,t,n){"use strict";var r,o,i=n(58083),a=n(97047),s=RegExp.prototype.exec,u=String.prototype.replace,c=s,l=(r=/a/,o=/b*/g,s.call(r,"a"),s.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),p=a.UNSUPPORTED_Y||a.BROKEN_CARET,d=void 0!==/()??/.exec("")[1];(l||d||p)&&(c=function(e){var t,n,r,o,a=this,c=p&&a.sticky,f=i.call(a),m=a.source,h=0,g=e;return c&&(-1===(f=f.replace("y","")).indexOf("g")&&(f+="g"),g=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(m="(?: "+m+")",g=" "+g,h++),n=new RegExp("^(?:"+m+")",f)),d&&(n=new RegExp("^"+m+"$(?!\\s)",f)),l&&(t=a.lastIndex),r=s.call(c?n:a,g),c?r?(r.input=r.input.slice(h),r[0]=r[0].slice(h),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:l&&r&&(a.lastIndex=a.global?r.index+r[0].length:t),d&&r&&r.length>1&&u.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),e.exports=c},58083:function(e,t,n){"use strict";var r=n(83875);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},97047:function(e,t,n){"use strict";var r=n(79044);function o(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},96411:function(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},10420:function(e){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},51621:function(e,t,n){var r=n(98363),o=n(45899);e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},57323:function(e,t,n){"use strict";var r=n(22773),o=n(86385),i=n(52280),a=n(7493),s=i("species");e.exports=function(e){var t=r(e),n=o.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},60878:function(e,t,n){var r=n(86385).f,o=n(40454),i=n(52280)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},50466:function(e,t,n){var r=n(53580),o=n(34524),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},49415:function(e,t,n){var r=n(98363),o=n(51621),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},53580:function(e,t,n){var r=n(21178),o=n(49415);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},7270:function(e,t,n){var r=n(83875),o=n(28641),i=n(52280)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},13881:function(e,t,n){var r=n(79044);e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},91140:function(e,t,n){var r=n(98330),o=n(96411),i=function(e){return function(t,n){var i,a,s=String(o(t)),u=r(n),c=s.length;return u<0||u>=c?e?"":void 0:(i=s.charCodeAt(u))<55296||i>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):i:e?s.slice(u,u+2):a-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},26031:function(e,t,n){"use strict";var r=n(98330),o=n(96411);e.exports="".repeat||function(e){var t=String(o(this)),n="",i=r(e);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},68487:function(e,t,n){var r=n(79044),o=n(2569);e.exports=function(e){return r((function(){return!!o[e]()||"​…᠎"!="​…᠎"[e]()||o[e].name!==e}))}},10287:function(e,t,n){var r=n(96411),o="["+n(2569)+"]",i=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$"),s=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(i,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:s(1),end:s(2),trim:s(3)}},84643:function(e,t,n){var r,o,i,a=n(98363),s=n(79044),u=n(79159),c=n(98166),l=n(47055),p=n(92750),d=n(53121),f=a.location,m=a.setImmediate,h=a.clearImmediate,g=a.process,v=a.MessageChannel,b=a.Dispatch,y=0,w={},E="onreadystatechange",S=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},I=function(e){return function(){S(e)}},x=function(e){S(e.data)},O=function(e){a.postMessage(e+"",f.protocol+"//"+f.host)};m&&h||(m=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return w[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(y),y},h=function(e){delete w[e]},"process"==u(g)?r=function(e){g.nextTick(I(e))}:b&&b.now?r=function(e){b.now(I(e))}:v&&!d?(i=(o=new v).port2,o.port1.onmessage=x,r=c(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(O)||"file:"===f.protocol?r=E in p("script")?function(e){l.appendChild(p("script")).onreadystatechange=function(){l.removeChild(this),S(e)}}:function(e){setTimeout(I(e),0)}:(r=O,a.addEventListener("message",x,!1))),e.exports={set:m,clear:h}},41655:function(e,t,n){var r=n(79159);e.exports=function(e){if("number"!=typeof e&&"Number"!=r(e))throw TypeError("Incorrect invocation");return+e}},32565:function(e,t,n){var r=n(98330),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},29580:function(e,t,n){var r=n(78609),o=n(96411);e.exports=function(e){return r(o(e))}},98330:function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},35108:function(e,t,n){var r=n(98330),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},30744:function(e,t,n){var r=n(96411);e.exports=function(e){return Object(r(e))}},21893:function(e,t,n){var r=n(52786);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},57301:function(e,t,n){var r={};r[n(52280)("toStringTag")]="z",e.exports="[object z]"===String(r)},34524:function(e){var t=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+n).toString(36)}},189:function(e,t,n){var r=n(3850);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},20127:function(e,t,n){var r=n(52280);t.f=r},52280:function(e,t,n){var r=n(98363),o=n(53580),i=n(40454),a=n(34524),s=n(3850),u=n(189),c=o("wks"),l=r.Symbol,p=u?l:l&&l.withoutSetter||a;e.exports=function(e){return i(c,e)||(s&&i(l,e)?c[e]=l[e]:c[e]=p("Symbol."+e)),c[e]}},2569:function(e){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},55862:function(e,t,n){"use strict";var r=n(19882),o=n(79044),i=n(71982),a=n(52786),s=n(30744),u=n(35108),c=n(35039),l=n(80150),p=n(82091),d=n(52280),f=n(11197),m=d("isConcatSpreadable"),h=9007199254740991,g="Maximum allowed index exceeded",v=f>=51||!o((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),b=p("concat"),y=function(e){if(!a(e))return!1;var t=e[m];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,forced:!v||!b},{concat:function(e){var t,n,r,o,i,a=s(this),p=l(a,0),d=0;for(t=-1,r=arguments.length;t<r;t++)if(y(i=-1===t?a:arguments[t])){if(d+(o=u(i.length))>h)throw TypeError(g);for(n=0;n<o;n++,d++)n in i&&c(p,d,i[n])}else{if(d>=h)throw TypeError(g);c(p,d++,i)}return p.length=d,p}})},19701:function(e,t,n){"use strict";var r=n(19882),o=n(68671).filter,i=n(82091),a=n(5673),s=i("filter"),u=a("filter");r({target:"Array",proto:!0,forced:!s||!u},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},9115:function(e,t,n){"use strict";var r=n(19882),o=n(68671).findIndex,i=n(6677),a=n(5673),s="findIndex",u=!0,c=a(s);s in[]&&Array(1).findIndex((function(){u=!1})),r({target:"Array",proto:!0,forced:u||!c},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(s)},42900:function(e,t,n){"use strict";var r=n(19882),o=n(68671).find,i=n(6677),a=n(5673),s="find",u=!0,c=a(s);s in[]&&Array(1).find((function(){u=!1})),r({target:"Array",proto:!0,forced:u||!c},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(s)},59789:function(e,t,n){"use strict";var r=n(19882),o=n(92613),i=n(30744),a=n(35108),s=n(98330),u=n(80150);r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=i(this),n=a(t.length),r=u(t,0);return r.length=o(r,t,t,n,0,void 0===e?1:s(e)),r}})},61078:function(e,t,n){"use strict";var r=n(19882),o=n(20379);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},4845:function(e,t,n){var r=n(19882),o=n(84899);r({target:"Array",stat:!0,forced:!n(8662)((function(e){Array.from(e)}))},{from:o})},18183:function(e,t,n){"use strict";var r=n(19882),o=n(37190).includes,i=n(6677);r({target:"Array",proto:!0,forced:!n(5673)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},31807:function(e,t,n){"use strict";var r=n(19882),o=n(37190).indexOf,i=n(54324),a=n(5673),s=[].indexOf,u=!!s&&1/[1].indexOf(1,-0)<0,c=i("indexOf"),l=a("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:u||!c||!l},{indexOf:function(e){return u?s.apply(this,arguments)||0:o(this,e,arguments.length>1?arguments[1]:void 0)}})},54883:function(e,t,n){"use strict";var r=n(29580),o=n(6677),i=n(44818),a=n(20821),s=n(61495),u="Array Iterator",c=a.set,l=a.getterFor(u);e.exports=s(Array,"Array",(function(e,t){c(this,{type:u,target:r(e),index:0,kind:t})}),(function(){var e=l(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},85005:function(e,t,n){"use strict";var r=n(19882),o=n(78609),i=n(29580),a=n(54324),s=[].join,u=o!=Object,c=a("join",",");r({target:"Array",proto:!0,forced:u||!c},{join:function(e){return s.call(i(this),void 0===e?",":e)}})},73214:function(e,t,n){"use strict";var r=n(19882),o=n(68671).map,i=n(82091),a=n(5673),s=i("map"),u=a("map");r({target:"Array",proto:!0,forced:!s||!u},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},77295:function(e,t,n){"use strict";var r=n(19882),o=n(86596).left,i=n(54324),a=n(5673),s=i("reduce"),u=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!s||!u},{reduce:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},18821:function(e,t,n){"use strict";var r=n(19882),o=n(52786),i=n(71982),a=n(32565),s=n(35108),u=n(29580),c=n(35039),l=n(52280),p=n(82091),d=n(5673),f=p("slice"),m=d("slice",{ACCESSORS:!0,0:0,1:2}),h=l("species"),g=[].slice,v=Math.max;r({target:"Array",proto:!0,forced:!f||!m},{slice:function(e,t){var n,r,l,p=u(this),d=s(p.length),f=a(e,d),m=a(void 0===t?d:t,d);if(i(p)&&("function"!=typeof(n=p.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[h])&&(n=void 0):n=void 0,n===Array||void 0===n))return g.call(p,f,m);for(r=new(void 0===n?Array:n)(v(m-f,0)),l=0;f<m;f++,l++)f in p&&c(r,l,p[f]);return r.length=l,r}})},45550:function(e,t,n){"use strict";var r=n(19882),o=n(32565),i=n(98330),a=n(35108),s=n(30744),u=n(80150),c=n(35039),l=n(82091),p=n(5673),d=l("splice"),f=p("splice",{ACCESSORS:!0,0:0,1:2}),m=Math.max,h=Math.min,g=9007199254740991,v="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!d||!f},{splice:function(e,t){var n,r,l,p,d,f,b=s(this),y=a(b.length),w=o(e,y),E=arguments.length;if(0===E?n=r=0:1===E?(n=0,r=y-w):(n=E-2,r=h(m(i(t),0),y-w)),y+n-r>g)throw TypeError(v);for(l=u(b,r),p=0;p<r;p++)(d=w+p)in b&&c(l,p,b[d]);if(l.length=r,n<r){for(p=w;p<y-r;p++)f=p+n,(d=p+r)in b?b[f]=b[d]:delete b[f];for(p=y;p>y-r+n;p--)delete b[p-1]}else if(n>r)for(p=y-r;p>w;p--)f=p+n-1,(d=p+r-1)in b?b[f]=b[d]:delete b[f];for(p=0;p<n;p++)b[p+w]=arguments[p+2];return b.length=y-r+n,l}})},68502:function(e,t,n){n(6677)("flat")},54994:function(e,t,n){var r=n(7493),o=n(86385).f,i=Function.prototype,a=i.toString,s=/^\s*function ([^ (]*)/,u="name";r&&!(u in i)&&o(i,u,{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(e){return""}}})},80174:function(e,t,n){"use strict";var r=n(7493),o=n(98363),i=n(86291),a=n(35974),s=n(40454),u=n(79159),c=n(59250),l=n(21893),p=n(79044),d=n(51569),f=n(87994).f,m=n(66012).f,h=n(86385).f,g=n(10287).trim,v="Number",b=o.Number,y=b.prototype,w=u(d(y))==v,E=function(e){var t,n,r,o,i,a,s,u,c=l(e,!1);if("string"==typeof c&&c.length>2)if(43===(t=(c=g(c)).charCodeAt(0))||45===t){if(88===(n=c.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+c}for(a=(i=c.slice(2)).length,s=0;s<a;s++)if((u=i.charCodeAt(s))<48||u>o)return NaN;return parseInt(i,r)}return+c};if(i(v,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var S,I=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof I&&(w?p((function(){y.valueOf.call(n)})):u(n)!=v)?c(new b(E(t)),n,I):E(t)},x=r?f(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),O=0;x.length>O;O++)s(b,S=x[O])&&!s(I,S)&&h(I,S,m(b,S));I.prototype=y,y.constructor=I,a(o,v,I)}},35727:function(e,t,n){n(19882)({target:"Number",stat:!0},{isInteger:n(68746)})},7089:function(e,t,n){n(19882)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},12798:function(e,t,n){"use strict";var r=n(19882),o=n(98330),i=n(41655),a=n(26031),s=n(79044),u=1..toFixed,c=Math.floor,l=function(e,t,n){return 0===t?n:t%2==1?l(e,t-1,n*e):l(e*e,t/2,n)};r({target:"Number",proto:!0,forced:u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){u.call({})}))},{toFixed:function(e){var t,n,r,s,u=i(this),p=o(e),d=[0,0,0,0,0,0],f="",m="0",h=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*d[n],d[n]=r%1e7,r=c(r/1e7)},g=function(e){for(var t=6,n=0;--t>=0;)n+=d[t],d[t]=c(n/e),n=n%e*1e7},v=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==d[e]){var n=String(d[e]);t=""===t?n:t+a.call("0",7-n.length)+n}return t};if(p<0||p>20)throw RangeError("Incorrect fraction digits");if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(f="-",u=-u),u>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(u*l(2,69,1))-69)<0?u*l(2,-t,1):u/l(2,t,1),n*=4503599627370496,(t=52-t)>0){for(h(0,n),r=p;r>=7;)h(1e7,0),r-=7;for(h(l(10,r,1),0),r=t-1;r>=23;)g(1<<23),r-=23;g(1<<r),h(1,1),g(2),m=v()}else h(0,n),h(1<<-t,0),m=v()+a.call("0",p);return m=p>0?f+((s=m.length)<=p?"0."+a.call("0",p-s)+m:m.slice(0,s-p)+"."+m.slice(s-p)):f+m}})},33130:function(e,t,n){var r=n(19882),o=n(45856);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},80238:function(e,t,n){var r=n(19882),o=n(79044),i=n(29580),a=n(66012).f,s=n(7493),u=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||u,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},12938:function(e,t,n){var r=n(19882),o=n(7493),i=n(31561),a=n(29580),s=n(66012),u=n(35039);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),o=s.f,c=i(r),l={},p=0;c.length>p;)void 0!==(n=o(r,t=c[p++]))&&u(l,t,n);return l}})},56908:function(e,t,n){var r=n(19882),o=n(79044),i=n(30744),a=n(12654),s=n(25115);r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(i(e))}})},80044:function(e,t,n){var r=n(19882),o=n(30744),i=n(60667);r({target:"Object",stat:!0,forced:n(79044)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},10853:function(e,t,n){var r=n(57301),o=n(35974),i=n(36699);r||o(Object.prototype,"toString",i,{unsafe:!0})},19457:function(e,t,n){var r=n(19882),o=n(8765).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},35054:function(e,t,n){"use strict";var r,o,i,a,s=n(19882),u=n(21178),c=n(98363),l=n(22773),p=n(58369),d=n(35974),f=n(7592),m=n(60878),h=n(57323),g=n(52786),v=n(28641),b=n(9519),y=n(79159),w=n(56429),E=n(5166),S=n(8662),I=n(7270),x=n(84643).set,O=n(71800),C=n(11621),D=n(46271),P=n(29269),M=n(74443),k=n(20821),A=n(86291),N=n(52280),j=n(11197),T=N("species"),L="Promise",R=k.get,_=k.set,F=k.getterFor(L),B=p,Z=c.TypeError,H=c.document,U=c.process,W=l("fetch"),G=P.f,z=G,q="process"==y(U),V=!!(H&&H.createEvent&&c.dispatchEvent),J="unhandledrejection",Y=A(L,(function(){if(!(w(B)!==String(B))){if(66===j)return!0;if(!q&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!B.prototype.finally)return!0;if(j>=51&&/native code/.test(B))return!1;var e=B.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[T]=t,!(e.then((function(){}))instanceof t)})),Q=Y||!S((function(e){B.all(e).catch((function(){}))})),X=function(e){var t;return!(!g(e)||"function"!=typeof(t=e.then))&&t},K=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;O((function(){for(var o=t.value,i=1==t.state,a=0;r.length>a;){var s,u,c,l=r[a++],p=i?l.ok:l.fail,d=l.resolve,f=l.reject,m=l.domain;try{p?(i||(2===t.rejection&&ne(e,t),t.rejection=1),!0===p?s=o:(m&&m.enter(),s=p(o),m&&(m.exit(),c=!0)),s===l.promise?f(Z("Promise-chain cycle")):(u=X(s))?u.call(s,d,f):d(s)):f(o)}catch(h){m&&!c&&m.exit(),f(h)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&ee(e,t)}))}},$=function(e,t,n){var r,o;V?((r=H.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},(o=c["on"+e])?o(r):e===J&&D("Unhandled promise rejection",n)},ee=function(e,t){x.call(c,(function(){var n,r=t.value;if(te(t)&&(n=M((function(){q?U.emit("unhandledRejection",r,e):$(J,e,r)})),t.rejection=q||te(t)?2:1,n.error))throw n.value}))},te=function(e){return 1!==e.rejection&&!e.parent},ne=function(e,t){x.call(c,(function(){q?U.emit("rejectionHandled",e):$("rejectionhandled",e,t.value)}))},re=function(e,t,n,r){return function(o){e(t,n,o,r)}},oe=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,K(e,t,!0))},ie=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw Z("Promise can't be resolved itself");var o=X(n);o?O((function(){var r={done:!1};try{o.call(n,re(ie,e,r,t),re(oe,e,r,t))}catch(i){oe(e,r,i,t)}})):(t.value=n,t.state=1,K(e,t,!1))}catch(i){oe(e,{done:!1},i,t)}}};Y&&(B=function(e){b(this,B,L),v(e),r.call(this);var t=R(this);try{e(re(ie,this,t),re(oe,this,t))}catch(n){oe(this,t,n)}},(r=function(e){_(this,{type:L,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=f(B.prototype,{then:function(e,t){var n=F(this),r=G(I(this,B));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=q?U.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&K(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r,t=R(e);this.promise=e,this.resolve=re(ie,e,t),this.reject=re(oe,e,t)},P.f=G=function(e){return e===B||e===i?new o(e):z(e)},u||"function"!=typeof p||(a=p.prototype.then,d(p.prototype,"then",(function(e,t){var n=this;return new B((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof W&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return C(B,W.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:Y},{Promise:B}),m(B,L,!1,!0),h(L),i=l(L),s({target:L,stat:!0,forced:Y},{reject:function(e){var t=G(this);return t.reject.call(void 0,e),t.promise}}),s({target:L,stat:!0,forced:u||Y},{resolve:function(e){return C(u&&this===i?B:this,e)}}),s({target:L,stat:!0,forced:Q},{all:function(e){var t=this,n=G(t),r=n.resolve,o=n.reject,i=M((function(){var n=v(t.resolve),i=[],a=0,s=1;E(e,(function(e){var u=a++,c=!1;i.push(void 0),s++,n.call(t,e).then((function(e){c||(c=!0,i[u]=e,--s||r(i))}),o)})),--s||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=G(t),r=n.reject,o=M((function(){var o=v(t.resolve);E(e,(function(e){o.call(t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},54130:function(e,t,n){var r=n(19882),o=n(22773),i=n(28641),a=n(83875),s=n(52786),u=n(51569),c=n(52381),l=n(79044),p=o("Reflect","construct"),d=l((function(){function e(){}return!(p((function(){}),[],e)instanceof e)})),f=!l((function(){p((function(){}))})),m=d||f;r({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(e,t){i(e),a(t);var n=arguments.length<3?e:i(arguments[2]);if(f&&!d)return p(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(c.apply(e,r))}var o=n.prototype,l=u(s(o)?o:Object.prototype),m=Function.apply.call(e,l,t);return s(m)?m:l}})},72975:function(e,t,n){var r=n(7493),o=n(98363),i=n(86291),a=n(59250),s=n(86385).f,u=n(87994).f,c=n(42622),l=n(58083),p=n(97047),d=n(35974),f=n(79044),m=n(20821).set,h=n(57323),g=n(52280)("match"),v=o.RegExp,b=v.prototype,y=/a/g,w=/a/g,E=new v(y)!==y,S=p.UNSUPPORTED_Y;if(r&&i("RegExp",!E||S||f((function(){return w[g]=!1,v(y)!=y||v(w)==w||"/a/i"!=v(y,"i")})))){for(var I=function(e,t){var n,r=this instanceof I,o=c(e),i=void 0===t;if(!r&&o&&e.constructor===I&&i)return e;E?o&&!i&&(e=e.source):e instanceof I&&(i&&(t=l.call(e)),e=e.source),S&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var s=a(E?new v(e,t):v(e,t),r?this:b,I);return S&&n&&m(s,{sticky:n}),s},x=function(e){e in I||s(I,e,{configurable:!0,get:function(){return v[e]},set:function(t){v[e]=t}})},O=u(v),C=0;O.length>C;)x(O[C++]);b.constructor=I,I.prototype=b,d(o,"RegExp",I)}h("RegExp")},39275:function(e,t,n){"use strict";var r=n(19882),o=n(99749);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},33290:function(e,t,n){"use strict";var r=n(35974),o=n(83875),i=n(79044),a=n(58083),s="toString",u=RegExp.prototype,c=u.toString,l=i((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),p=c.name!=s;(l||p)&&r(RegExp.prototype,s,(function(){var e=o(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in u)?a.call(e):n)}),{unsafe:!0})},91967:function(e,t,n){"use strict";var r=n(19882),o=n(75304);r({target:"String",proto:!0,forced:n(13881)("bold")},{bold:function(){return o(this,"b","","")}})},19985:function(e,t,n){"use strict";var r=n(19882),o=n(21049),i=n(96411);r({target:"String",proto:!0,forced:!n(15454)("includes")},{includes:function(e){return!!~String(i(this)).indexOf(o(e),arguments.length>1?arguments[1]:void 0)}})},45007:function(e,t,n){"use strict";var r=n(91140).charAt,o=n(20821),i=n(61495),a="String Iterator",s=o.set,u=o.getterFor(a);i(String,"String",(function(e){s(this,{type:a,string:String(e),index:0})}),(function(){var e,t=u(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},86125:function(e,t,n){"use strict";var r=n(19882),o=n(75304);r({target:"String",proto:!0,forced:n(13881)("link")},{link:function(e){return o(this,"a","href",e)}})},22321:function(e,t,n){"use strict";var r=n(81492),o=n(83875),i=n(30744),a=n(35108),s=n(98330),u=n(96411),c=n(13350),l=n(94088),p=Math.max,d=Math.min,f=Math.floor,m=/\$([$&'`]|\d\d?|<[^>]*>)/g,h=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(e,t,n,r){var g=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,v=r.REPLACE_KEEPS_$0,b=g?"$":"$0";return[function(n,r){var o=u(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!g&&v||"string"==typeof r&&-1===r.indexOf(b)){var i=n(t,e,this,r);if(i.done)return i.value}var u=o(e),f=String(this),m="function"==typeof r;m||(r=String(r));var h=u.global;if(h){var w=u.unicode;u.lastIndex=0}for(var E=[];;){var S=l(u,f);if(null===S)break;if(E.push(S),!h)break;""===String(S[0])&&(u.lastIndex=c(f,a(u.lastIndex),w))}for(var I,x="",O=0,C=0;C<E.length;C++){S=E[C];for(var D=String(S[0]),P=p(d(s(S.index),f.length),0),M=[],k=1;k<S.length;k++)M.push(void 0===(I=S[k])?I:String(I));var A=S.groups;if(m){var N=[D].concat(M,P,f);void 0!==A&&N.push(A);var j=String(r.apply(void 0,N))}else j=y(D,f,P,M,A,r);P>=O&&(x+=f.slice(O,P)+j,O=P+D.length)}return x+f.slice(O)}];function y(e,n,r,o,a,s){var u=r+e.length,c=o.length,l=h;return void 0!==a&&(a=i(a),l=m),t.call(s,l,(function(t,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(u);case"<":s=a[i.slice(1,-1)];break;default:var l=+i;if(0===l)return t;if(l>c){var p=f(l/10);return 0===p?t:p<=c?void 0===o[p-1]?i.charAt(1):o[p-1]+i.charAt(1):t}s=o[l-1]}return void 0===s?"":s}))}}))},23528:function(e,t,n){"use strict";var r=n(81492),o=n(83875),i=n(96411),a=n(10420),s=n(94088);r("search",1,(function(e,t,n){return[function(t){var n=i(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=o(e),u=String(this),c=i.lastIndex;a(c,0)||(i.lastIndex=0);var l=s(i,u);return a(i.lastIndex,c)||(i.lastIndex=c),null===l?-1:l.index}]}))},67838:function(e,t,n){"use strict";var r=n(81492),o=n(42622),i=n(83875),a=n(96411),s=n(7270),u=n(13350),c=n(35108),l=n(94088),p=n(99749),d=n(79044),f=[].push,m=Math.min,h=4294967295,g=!d((function(){return!RegExp(h,"y")}));r("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(a(this)),i=void 0===n?h:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!o(e))return t.call(r,e,i);for(var s,u,c,l=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,g=new RegExp(e.source,d+"g");(s=p.call(g,r))&&!((u=g.lastIndex)>m&&(l.push(r.slice(m,s.index)),s.length>1&&s.index<r.length&&f.apply(l,s.slice(1)),c=s[0].length,m=u,l.length>=i));)g.lastIndex===s.index&&g.lastIndex++;return m===r.length?!c&&g.test("")||l.push(""):l.push(r.slice(m)),l.length>i?l.slice(0,i):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=a(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,o,n):r.call(String(o),t,n)},function(e,o){var a=n(r,e,this,o,r!==t);if(a.done)return a.value;var p=i(e),d=String(this),f=s(p,RegExp),v=p.unicode,b=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(g?"y":"g"),y=new f(g?p:"^(?:"+p.source+")",b),w=void 0===o?h:o>>>0;if(0===w)return[];if(0===d.length)return null===l(y,d)?[d]:[];for(var E=0,S=0,I=[];S<d.length;){y.lastIndex=g?S:0;var x,O=l(y,g?d:d.slice(S));if(null===O||(x=m(c(y.lastIndex+(g?0:S)),d.length))===E)S=u(d,S,v);else{if(I.push(d.slice(E,S)),I.length===w)return I;for(var C=1;C<=O.length-1;C++)if(I.push(O[C]),I.length===w)return I;S=E=x}}return I.push(d.slice(E)),I}]}),!g)},29897:function(e,t,n){"use strict";var r=n(19882),o=n(10287).trim;r({target:"String",proto:!0,forced:n(68487)("trim")},{trim:function(){return o(this)}})},86632:function(e,t,n){"use strict";var r=n(19882),o=n(7493),i=n(98363),a=n(40454),s=n(52786),u=n(86385).f,c=n(73870),l=i.Symbol;if(o&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var p={},d=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof d?new l(e):void 0===e?l():l(e);return""===e&&(p[t]=!0),t};c(d,l);var f=d.prototype=l.prototype;f.constructor=d;var m=f.toString,h="Symbol(test)"==String(l("test")),g=/^Symbol\((.*)\)[^)]+$/;u(f,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=m.call(e);if(a(p,e))return"";var n=h?t.slice(7,-1):t.replace(g,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:d})}},61928:function(e,t,n){n(68308)("iterator")},26364:function(e,t,n){"use strict";var r=n(19882),o=n(98363),i=n(22773),a=n(21178),s=n(7493),u=n(3850),c=n(189),l=n(79044),p=n(40454),d=n(71982),f=n(52786),m=n(83875),h=n(30744),g=n(29580),v=n(21893),b=n(69199),y=n(51569),w=n(60667),E=n(87994),S=n(74938),I=n(89612),x=n(66012),O=n(86385),C=n(81513),D=n(45899),P=n(35974),M=n(53580),k=n(50466),A=n(47505),N=n(34524),j=n(52280),T=n(20127),L=n(68308),R=n(60878),_=n(20821),F=n(68671).forEach,B=k("hidden"),Z="Symbol",H=j("toPrimitive"),U=_.set,W=_.getterFor(Z),G=Object.prototype,z=o.Symbol,q=i("JSON","stringify"),V=x.f,J=O.f,Y=S.f,Q=C.f,X=M("symbols"),K=M("op-symbols"),$=M("string-to-symbol-registry"),ee=M("symbol-to-string-registry"),te=M("wks"),ne=o.QObject,re=!ne||!ne.prototype||!ne.prototype.findChild,oe=s&&l((function(){return 7!=y(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=V(G,t);r&&delete G[t],J(e,t,n),r&&e!==G&&J(G,t,r)}:J,ie=function(e,t){var n=X[e]=y(z.prototype);return U(n,{type:Z,tag:e,description:t}),s||(n.description=t),n},ae=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof z},se=function(e,t,n){e===G&&se(K,t,n),m(e);var r=v(t,!0);return m(n),p(X,r)?(n.enumerable?(p(e,B)&&e[B][r]&&(e[B][r]=!1),n=y(n,{enumerable:b(0,!1)})):(p(e,B)||J(e,B,b(1,{})),e[B][r]=!0),oe(e,r,n)):J(e,r,n)},ue=function(e,t){m(e);var n=g(t),r=w(n).concat(de(n));return F(r,(function(t){s&&!ce.call(n,t)||se(e,t,n[t])})),e},ce=function(e){var t=v(e,!0),n=Q.call(this,t);return!(this===G&&p(X,t)&&!p(K,t))&&(!(n||!p(this,t)||!p(X,t)||p(this,B)&&this[B][t])||n)},le=function(e,t){var n=g(e),r=v(t,!0);if(n!==G||!p(X,r)||p(K,r)){var o=V(n,r);return!o||!p(X,r)||p(n,B)&&n[B][r]||(o.enumerable=!0),o}},pe=function(e){var t=Y(g(e)),n=[];return F(t,(function(e){p(X,e)||p(A,e)||n.push(e)})),n},de=function(e){var t=e===G,n=Y(t?K:g(e)),r=[];return F(n,(function(e){!p(X,e)||t&&!p(G,e)||r.push(X[e])})),r};(u||(P((z=function(){if(this instanceof z)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=N(e),n=function(e){this===G&&n.call(K,e),p(this,B)&&p(this[B],t)&&(this[B][t]=!1),oe(this,t,b(1,e))};return s&&re&&oe(G,t,{configurable:!0,set:n}),ie(t,e)}).prototype,"toString",(function(){return W(this).tag})),P(z,"withoutSetter",(function(e){return ie(N(e),e)})),C.f=ce,O.f=se,x.f=le,E.f=S.f=pe,I.f=de,T.f=function(e){return ie(j(e),e)},s&&(J(z.prototype,"description",{configurable:!0,get:function(){return W(this).description}}),a||P(G,"propertyIsEnumerable",ce,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:z}),F(w(te),(function(e){L(e)})),r({target:Z,stat:!0,forced:!u},{for:function(e){var t=String(e);if(p($,t))return $[t];var n=z(t);return $[t]=n,ee[n]=t,n},keyFor:function(e){if(!ae(e))throw TypeError(e+" is not a symbol");if(p(ee,e))return ee[e]},useSetter:function(){re=!0},useSimple:function(){re=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:function(e,t){return void 0===t?y(e):ue(y(e),t)},defineProperty:se,defineProperties:ue,getOwnPropertyDescriptor:le}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:pe,getOwnPropertySymbols:de}),r({target:"Object",stat:!0,forced:l((function(){I.f(1)}))},{getOwnPropertySymbols:function(e){return I.f(h(e))}}),q)&&r({target:"JSON",stat:!0,forced:!u||l((function(){var e=z();return"[null]"!=q([e])||"{}"!=q({a:e})||"{}"!=q(Object(e))}))},{stringify:function(e,t,n){for(var r,o=[e],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=t,(f(t)||void 0!==e)&&!ae(e))return d(t)||(t=function(e,t){