@producteca/producteca-ui-kit 1.36.0 → 1.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/image/image.d.ts +4 -2
- package/dist/components/inputs/selectField/selectField.d.ts +2 -2
- package/dist/components/patterns/iconWithIdentifier/iconWithIdentifier.d.ts +1 -0
- package/dist/producteca-ui-kit.es.js +5 -5
- package/dist/producteca-ui-kit.umd.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject0,_templateObject1,_templateObject10,_templateObject11,_templateObject12,_templateObject13;function _wrapNativeSuper(t){var r="function"==typeof Map?new Map():void 0;return _wrapNativeSuper=function _wrapNativeSuper(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper);}function Wrapper(){return _construct(t,arguments,_getPrototypeOf2(this).constructor);}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf2(Wrapper,t);},_wrapNativeSuper(t);}function _construct(t,e,r){if(_isNativeReflectConstruct3())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o))();return r&&_setPrototypeOf2(p,r.prototype),p;}function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]");}catch(n){return"function"==typeof t;}}function _readOnlyError(r){throw new TypeError('"'+r+'" is read-only');}function _toArray(r){return _arrayWithHoles2(r)||_iterableToArray2(r)||_unsupportedIterableToArray2(r)||_nonIterableRest2();}function _callSuper(t,o,e){return o=_getPrototypeOf2(o),_possibleConstructorReturn2(t,_isNativeReflectConstruct3()?Reflect.construct(o,e||[],_getPrototypeOf2(t).constructor):o.apply(t,e));}function _possibleConstructorReturn2(t,e){if(e&&("object"==_typeof2(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized2(t);}function _assertThisInitialized2(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct3(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct3=function _isNativeReflectConstruct3(){return!!t;})();}function _getPrototypeOf2(t){return _getPrototypeOf2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf2(t);}function _inherits2(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf2(t,e);}function _setPrototypeOf2(t,e){return _setPrototypeOf2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf2(t,e);}function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return _regeneratorDefine2(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,r){return i=t,c=0,u=e,G.n=r,a;}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0));}if(o||r>1)return a;throw y=!0,n;}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0);}else 1===c&&(t=i.return)&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e;}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break;}catch(t){i=e,c=1,u=t;}finally{f=1;}}return{value:t,done:y};};}(r,o,i),!0),u;}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this;}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e;}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this;}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]";}),(_regenerator=function _regenerator(){return{w:i,m:f};})();}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{});}catch(e){i=0;}_regeneratorDefine2=function _regeneratorDefine(e,r,n,t){function o(r,n){_regeneratorDefine2(e,r,function(e){return this._invoke(r,n,e);});}r?i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:(o("next",0),o("throw",1),o("return",2));},_regeneratorDefine2(e,r,n,t);}function _taggedTemplateLiteral2(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck2(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function __defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey2(o.key),o);}}function _createClass2(e,r,t){return r&&__defineProperties(e.prototype,r),t&&__defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toConsumableArray2(r){return _arrayWithoutHoles2(r)||_iterableToArray2(r)||_unsupportedIterableToArray2(r)||_nonIterableSpread2();}function _nonIterableSpread2(){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 _iterableToArray2(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles2(r){if(Array.isArray(r))return _arrayLikeToArray2(r);}function _slicedToArray2(r,e){return _arrayWithHoles2(r)||_iterableToArrayLimit2(r,e)||_unsupportedIterableToArray2(r,e)||_nonIterableRest2();}function _nonIterableRest2(){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 _iterableToArrayLimit2(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles2(r){if(Array.isArray(r))return r;}function _defineProperty2(e,r,t){return(r=_toPropertyKey2(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _toPropertyKey2(t){var i=_toPrimitive2(t,"string");return"symbol"==_typeof2(i)?i:i+"";}function _toPrimitive2(t,r){if("object"!=_typeof2(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof2(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _typeof2(o){"@babel/helpers - typeof";return _typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof2(o);}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray2(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n2=0,F=function F(){};return{s:F,n:function n(){return _n2>=r.length?{done:!0}:{done:!1,value:r[_n2++]};},e:function e(r){throw r;},f:F};}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 o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t.return||t.return();}finally{if(u)throw o;}}};}function _unsupportedIterableToArray2(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray2(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray2(r,a):void 0;}}function _arrayLikeToArray2(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}var __defProp=Object.defineProperty;var __defProps=Object.defineProperties;var __getOwnPropDescs=Object.getOwnPropertyDescriptors;var __getOwnPropSymbols=Object.getOwnPropertySymbols;var __hasOwnProp=Object.prototype.hasOwnProperty;var __propIsEnum=Object.prototype.propertyIsEnumerable;var __pow=Math.pow;var __defNormalProp=function __defNormalProp(obj,key,value){return key in obj?__defProp(obj,key,{enumerable:true,configurable:true,writable:true,value:value}):obj[key]=value;};var __spreadValues=function __spreadValues(a,b){for(var prop in b||(b={}))if(__hasOwnProp.call(b,prop))__defNormalProp(a,prop,b[prop]);if(__getOwnPropSymbols){var _iterator=_createForOfIteratorHelper(__getOwnPropSymbols(b)),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var prop=_step.value;if(__propIsEnum.call(b,prop))__defNormalProp(a,prop,b[prop]);}}catch(err){_iterator.e(err);}finally{_iterator.f();}}return a;};var __spreadProps=function __spreadProps(a,b){return __defProps(a,__getOwnPropDescs(b));};var __restKey=function __restKey(key){return _typeof2(key)==="symbol"?key:key+"";};var __objRest=function __objRest(source,exclude){var target={};for(var prop in source)if(__hasOwnProp.call(source,prop)&&exclude.indexOf(prop)<0)target[prop]=source[prop];if(source!=null&&__getOwnPropSymbols){var _iterator2=_createForOfIteratorHelper(__getOwnPropSymbols(source)),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var prop=_step2.value;if(exclude.indexOf(prop)<0&&__propIsEnum.call(source,prop))target[prop]=source[prop];}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}}return target;};var __publicField=function __publicField(obj,key,value){return __defNormalProp(obj,_typeof2(key)!=="symbol"?key+"":key,value);};var __async=function __async(__this,__arguments,generator){return new Promise(function(resolve,reject){var fulfilled=function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}};var rejected=function rejected(value){try{step(generator.throw(value));}catch(e){reject(e);}};var step=function step(x){return x.done?resolve(x.value):Promise.resolve(x.value).then(fulfilled,rejected);};step((generator=generator.apply(__this,__arguments)).next());});};import{jsxs,jsx as jsx$1,Fragment as Fragment$1}from"react/jsx-runtime";import*as React from"react";import React__default,{forwardRef,useContext,isValidElement,cloneElement,Children,useState,useCallback,useLayoutEffect,useRef,useMemo,createContext,Component,Fragment,useEffect,createElement}from"react";import*as ReactDOM from"react-dom";import ReactDOM__default,{createPortal}from"react-dom";function _arrayLikeToArray$1(r2,a){(null==a||a>r2.length)&&(a=r2.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r2[e];return n;}function _arrayWithHoles$1(r2){if(Array.isArray(r2))return r2;}function _defineProperty$1(e,r2,t){return(r2=_toPropertyKey(r2))in e?Object.defineProperty(e,r2,{value:t,enumerable:true,configurable:true,writable:true}):e[r2]=t,e;}function _iterableToArrayLimit$1(r2,l){var t=null==r2?null:"undefined"!=typeof Symbol&&r2[Symbol.iterator]||r2["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=true,o=false;try{if(i=(t=t.call(r2)).next,0===l);else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=true);}catch(r3){o=true,n=r3;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _nonIterableRest$1(){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 ownKeys$1(e,r2){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r2&&(o=o.filter(function(r3){return Object.getOwnPropertyDescriptor(e,r3).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread2$1(e){for(var r2=1;r2<arguments.length;r2++){var t=null!=arguments[r2]?arguments[r2]:{};r2%2?ownKeys$1(Object(t),true).forEach(function(r3){_defineProperty$1(e,r3,t[r3]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys$1(Object(t)).forEach(function(r3){Object.defineProperty(e,r3,Object.getOwnPropertyDescriptor(t,r3));});}return e;}function _objectWithoutProperties$1(e,t){if(null==e)return{};var o,r2,i=_objectWithoutPropertiesLoose$1(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r2=0;r2<n.length;r2++)o=n[r2],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}function _objectWithoutPropertiesLoose$1(r2,e){if(null==r2)return{};var t={};for(var n in r2)if({}.hasOwnProperty.call(r2,n)){if(-1!==e.indexOf(n))continue;t[n]=r2[n];}return t;}function _slicedToArray$1(r2,e){return _arrayWithHoles$1(r2)||_iterableToArrayLimit$1(r2,e)||_unsupportedIterableToArray$1(r2,e)||_nonIterableRest$1();}function _toPrimitive(t,r2){if("object"!=_typeof2(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r2);if("object"!=_typeof2(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r2?String:Number)(t);}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof2(i)?i:i+"";}function _typeof$1(o){"@babel/helpers - typeof";return _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o2){return typeof o2;}:function(o2){return o2&&"function"==typeof Symbol&&o2.constructor===Symbol&&o2!==Symbol.prototype?"symbol":typeof o2;},_typeof$1(o);}function _unsupportedIterableToArray$1(r2,a){if(r2){if("string"==typeof r2)return _arrayLikeToArray$1(r2,a);var t={}.toString.call(r2).slice(8,-1);return"Object"===t&&r2.constructor&&(t=r2.constructor.name),"Map"===t||"Set"===t?Array.from(r2):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray$1(r2,a):void 0;}}var btn="button-module_btn_XFZLT";var disabled$7="button-module_disabled_tB8LZ";var fullwidth$2="button-module_fullwidth_03y8a";var lg$a="button-module_lg_Hkfw0";var md$7="button-module_md_REpcP";var sm$9="button-module_sm_QYj0l";var primary$1="button-module_primary_ppbyq";var success$2="button-module_success_PUJLB";var secondary$1="button-module_secondary_esy5L";var error$4="button-module_error_eUPLx";var outline$1="button-module_outline_qVYGR";var link$1="button-module_link_imZgM";var styles$s={btn:btn,disabled:disabled$7,fullwidth:fullwidth$2,lg:lg$a,md:md$7,sm:sm$9,"with-adornment":"button-module_with-adornment_biWLE","left-adornment":"button-module_left-adornment_ifsGV","right-adornment":"button-module_right-adornment_8B4BV",primary:primary$1,success:success$2,secondary:secondary$1,error:error$4,outline:outline$1,link:link$1,"tooltip-link":"button-module_tooltip-link_BqvZl"};function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==_typeof2(e))if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n;}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n;}var _excluded$14=["type","variant","size","label","outline","leftAdornment","rightAdornment","className"];var Button$2=function Button(_ref3){var _ref$type=_ref3.type,type=_ref$type===void 0?"button":_ref$type,_ref$variant=_ref3.variant,variant=_ref$variant===void 0?"primary":_ref$variant,_ref$size=_ref3.size,size2=_ref$size===void 0?"lg":_ref$size,label2=_ref3.label,outline2=_ref3.outline,leftAdornment=_ref3.leftAdornment,rightAdornment=_ref3.rightAdornment,_ref$className=_ref3.className,className=_ref$className===void 0?"":_ref$className,props=_objectWithoutProperties$1(_ref3,_excluded$14);var adornmentStyle=!!leftAdornment||!!rightAdornment?"with-adornment":"";return/* @__PURE__ */jsxs("button",_objectSpread2$1(_objectSpread2$1({},props),{},{type:type,className:clsx(styles$s["btn"],styles$s[size2],styles$s[adornmentStyle],styles$s[variant],_defineProperty$1(_defineProperty$1({},styles$s["outline"],outline2),className,className)),children:[!!leftAdornment&&/* @__PURE__ */jsx$1("span",{className:"".concat(styles$s["left-adornment"]),children:leftAdornment}),label2,!!rightAdornment&&/* @__PURE__ */jsx$1("span",{className:"".concat(styles$s["right-adornment"]),children:rightAdornment})]}));};var common={black:"#000",white:"#fff"};var red={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"};var purple={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"};var blue={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"};var lightBlue={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"};var green={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};var orange={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"};var grey$1={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function formatMuiErrorMessage(code){var url=new URL("https://mui.com/production-error/?code=".concat(code));for(var _len5=arguments.length,args=new Array(_len5>1?_len5-1:0),_key5=1;_key5<_len5;_key5++){args[_key5-1]=arguments[_key5];}args.forEach(function(arg2){return url.searchParams.append("args[]",arg2);});return"Minified MUI error #".concat(code,"; visit ").concat(url," for the full message.");}var THEME_ID="$$material";function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r2 in t)({}).hasOwnProperty.call(t,r2)&&(n[r2]=t[r2]);}return n;},_extends$1.apply(null,arguments);}function sheetForTag$1(tag){if(tag.sheet){return tag.sheet;}for(var i=0;i<document.styleSheets.length;i++){if(document.styleSheets[i].ownerNode===tag){return document.styleSheets[i];}}return void 0;}function createStyleElement$1(options){var tag=document.createElement("style");tag.setAttribute("data-emotion",options.key);if(options.nonce!==void 0){tag.setAttribute("nonce",options.nonce);}tag.appendChild(document.createTextNode(""));tag.setAttribute("data-s","");return tag;}var StyleSheet$1=/* @__PURE__ */function(){function StyleSheet2(options){var _this=this;this._insertTag=function(tag){var before;if(_this.tags.length===0){if(_this.insertionPoint){before=_this.insertionPoint.nextSibling;}else if(_this.prepend){before=_this.container.firstChild;}else{before=_this.before;}}else{before=_this.tags[_this.tags.length-1].nextSibling;}_this.container.insertBefore(tag,before);_this.tags.push(tag);};this.isSpeedy=options.speedy===void 0?true:options.speedy;this.tags=[];this.ctr=0;this.nonce=options.nonce;this.key=options.key;this.container=options.container;this.prepend=options.prepend;this.insertionPoint=options.insertionPoint;this.before=null;}var _proto=StyleSheet2.prototype;_proto.hydrate=function hydrate(nodes){nodes.forEach(this._insertTag);};_proto.insert=function insert(rule){if(this.ctr%(this.isSpeedy?65e3:1)===0){this._insertTag(createStyleElement$1(this));}var tag=this.tags[this.tags.length-1];if(this.isSpeedy){var sheet=sheetForTag$1(tag);try{sheet.insertRule(rule,sheet.cssRules.length);}catch(e){}}else{tag.appendChild(document.createTextNode(rule));}this.ctr++;};_proto.flush=function flush(){this.tags.forEach(function(tag){var _tag$parentNode;return(_tag$parentNode=tag.parentNode)==null?void 0:_tag$parentNode.removeChild(tag);});this.tags=[];this.ctr=0;};return StyleSheet2;}();var MS$1="-ms-";var MOZ$1="-moz-";var WEBKIT$1="-webkit-";var COMMENT$1="comm";var RULESET$1="rule";var DECLARATION$1="decl";var IMPORT$1="@import";var KEYFRAMES$1="@keyframes";var LAYER="@layer";var abs$1=Math.abs;var from$1=String.fromCharCode;var assign$1=Object.assign;function hash$5(value,length2){return charat$1(value,0)^45?(((length2<<2^charat$1(value,0))<<2^charat$1(value,1))<<2^charat$1(value,2))<<2^charat$1(value,3):0;}function trim$1(value){return value.trim();}function match$3(value,pattern){return(value=pattern.exec(value))?value[0]:value;}function replace$1(value,pattern,replacement){return value.replace(pattern,replacement);}function indexof$1(value,search){return value.indexOf(search);}function charat$1(value,index2){return value.charCodeAt(index2)|0;}function substr$1(value,begin,end2){return value.slice(begin,end2);}function strlen$1(value){return value.length;}function sizeof$1(value){return value.length;}function append$1(value,array){return array.push(value),value;}function combine$1(array,callback){return array.map(callback).join("");}var line$1=1;var column$1=1;var length$1=0;var position$1=0;var character$1=0;var characters$1="";function node$1(value,root2,parent,type,props,children,length2){return{value:value,root:root2,parent:parent,type:type,props:props,children:children,line:line$1,column:column$1,length:length2,return:""};}function copy$2(root2,props){return assign$1(node$1("",null,null,"",null,null,0),root2,{length:-root2.length},props);}function char$1(){return character$1;}function prev$1(){character$1=position$1>0?charat$1(characters$1,--position$1):0;if(column$1--,character$1===10)column$1=1,line$1--;return character$1;}function next$1(){character$1=position$1<length$1?charat$1(characters$1,position$1++):0;if(column$1++,character$1===10)column$1=1,line$1++;return character$1;}function peek$1(){return charat$1(characters$1,position$1);}function caret$1(){return position$1;}function slice$1(begin,end2){return substr$1(characters$1,begin,end2);}function token$1(type){switch(type){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1;}return 0;}function alloc$1(value){return line$1=column$1=1,length$1=strlen$1(characters$1=value),position$1=0,[];}function dealloc$1(value){return characters$1="",value;}function delimit$1(type){return trim$1(slice$1(position$1-1,delimiter$1(type===91?type+2:type===40?type+1:type)));}function whitespace$1(type){while(character$1=peek$1())if(character$1<33)next$1();else break;return token$1(type)>2||token$1(character$1)>3?"":" ";}function escaping$1(index2,count2){while(--count2&&next$1())if(character$1<48||character$1>102||character$1>57&&character$1<65||character$1>70&&character$1<97)break;return slice$1(index2,caret$1()+(count2<6&&peek$1()==32&&next$1()==32));}function delimiter$1(type){while(next$1())switch(character$1){case type:return position$1;case 34:case 39:if(type!==34&&type!==39)delimiter$1(character$1);break;case 40:if(type===41)delimiter$1(type);break;case 92:next$1();break;}return position$1;}function commenter$1(type,index2){while(next$1())if(type+character$1===47+10)break;else if(type+character$1===42+42&&peek$1()===47)break;return"/*"+slice$1(index2,position$1-1)+"*"+from$1(type===47?type:next$1());}function identifier$2(index2){while(!token$1(peek$1()))next$1();return slice$1(index2,position$1);}function compile$1(value){return dealloc$1(parse$2("",null,null,null,[""],value=alloc$1(value),0,[0],value));}function parse$2(value,root2,parent,rule,rules,rulesets,pseudo,points,declarations){var index2=0;var offset2=0;var length2=pseudo;var atrule=0;var property2=0;var previous=0;var variable=1;var scanning=1;var ampersand=1;var character2=0;var type="";var props=rules;var children=rulesets;var reference2=rule;var characters2=type;while(scanning)switch(previous=character2,character2=next$1()){case 40:if(previous!=108&&charat$1(characters2,length2-1)==58){if(indexof$1(characters2+=replace$1(delimit$1(character2),"&","&\f"),"&\f")!=-1)ampersand=-1;break;}case 34:case 39:case 91:characters2+=delimit$1(character2);break;case 9:case 10:case 13:case 32:characters2+=whitespace$1(previous);break;case 92:characters2+=escaping$1(caret$1()-1,7);continue;case 47:switch(peek$1()){case 42:case 47:append$1(comment$1(commenter$1(next$1(),caret$1()),root2,parent),declarations);break;default:characters2+="/";}break;case 123*variable:points[index2++]=strlen$1(characters2)*ampersand;case 125*variable:case 59:case 0:switch(character2){case 0:case 125:scanning=0;case 59+offset2:if(ampersand==-1)characters2=replace$1(characters2,/\f/g,"");if(property2>0&&strlen$1(characters2)-length2)append$1(property2>32?declaration$1(characters2+";",rule,parent,length2-1):declaration$1(replace$1(characters2," ","")+";",rule,parent,length2-2),declarations);break;case 59:characters2+=";";default:append$1(reference2=ruleset$1(characters2,root2,parent,index2,offset2,rules,points,type,props=[],children=[],length2),rulesets);if(character2===123)if(offset2===0)parse$2(characters2,root2,reference2,reference2,props,rulesets,length2,points,children);else switch(atrule===99&&charat$1(characters2,3)===110?100:atrule){case 100:case 108:case 109:case 115:parse$2(value,reference2,reference2,rule&&append$1(ruleset$1(value,reference2,reference2,0,0,rules,points,type,rules,props=[],length2),children),rules,children,length2,points,rule?props:children);break;default:parse$2(characters2,reference2,reference2,reference2,[""],children,0,points,children);}}index2=offset2=property2=0,variable=ampersand=1,type=characters2="",length2=pseudo;break;case 58:length2=1+strlen$1(characters2),property2=previous;default:if(variable<1){if(character2==123)--variable;else if(character2==125&&variable++==0&&prev$1()==125)continue;}switch(characters2+=from$1(character2),character2*variable){case 38:ampersand=offset2>0?1:(characters2+="\f",-1);break;case 44:points[index2++]=(strlen$1(characters2)-1)*ampersand,ampersand=1;break;case 64:if(peek$1()===45)characters2+=delimit$1(next$1());atrule=peek$1(),offset2=length2=strlen$1(type=characters2+=identifier$2(caret$1())),character2++;break;case 45:if(previous===45&&strlen$1(characters2)==2)variable=0;}}return rulesets;}function ruleset$1(value,root2,parent,index2,offset2,rules,points,type,props,children,length2){var post=offset2-1;var rule=offset2===0?rules:[""];var size2=sizeof$1(rule);for(var i=0,j=0,k=0;i<index2;++i)for(var x=0,y=substr$1(value,post+1,post=abs$1(j=points[i])),z=value;x<size2;++x)if(z=trim$1(j>0?rule[x]+" "+y:replace$1(y,/&\f/g,rule[x])))props[k++]=z;return node$1(value,root2,parent,offset2===0?RULESET$1:type,props,children,length2);}function comment$1(value,root2,parent){return node$1(value,root2,parent,COMMENT$1,from$1(char$1()),substr$1(value,2,-2),0);}function declaration$1(value,root2,parent,length2){return node$1(value,root2,parent,DECLARATION$1,substr$1(value,0,length2),substr$1(value,length2+1,-1),length2);}function serialize$1(children,callback){var output="";var length2=sizeof$1(children);for(var i=0;i<length2;i++)output+=callback(children[i],i,children,callback)||"";return output;}function stringify$1(element,index2,children,callback){switch(element.type){case LAYER:if(element.children.length)break;case IMPORT$1:case DECLARATION$1:return element.return=element.return||element.value;case COMMENT$1:return"";case KEYFRAMES$1:return element.return=element.value+"{"+serialize$1(element.children,callback)+"}";case RULESET$1:element.value=element.props.join(",");}return strlen$1(children=serialize$1(element.children,callback))?element.return=element.value+"{"+children+"}":"";}function middleware$1(collection){var length2=sizeof$1(collection);return function(element,index2,children,callback){var output="";for(var i=0;i<length2;i++)output+=collection[i](element,index2,children,callback)||"";return output;};}function rulesheet$1(callback){return function(element){if(!element.root){if(element=element.return)callback(element);}};}function memoize$4(fn3){var cache=/* @__PURE__ */Object.create(null);return function(arg2){if(cache[arg2]===void 0)cache[arg2]=fn3(arg2);return cache[arg2];};}var identifierWithPointTracking$1=function identifierWithPointTracking(begin,points,index2){var previous=0;var character2=0;while(true){previous=character2;character2=peek$1();if(previous===38&&character2===12){points[index2]=1;}if(token$1(character2)){break;}next$1();}return slice$1(begin,position$1);};var toRules$1=function toRules(parsed,points){var index2=-1;var character2=44;do{switch(token$1(character2)){case 0:if(character2===38&&peek$1()===12){points[index2]=1;}parsed[index2]+=identifierWithPointTracking$1(position$1-1,points,index2);break;case 2:parsed[index2]+=delimit$1(character2);break;case 4:if(character2===44){parsed[++index2]=peek$1()===58?"&\f":"";points[index2]=parsed[index2].length;break;}default:parsed[index2]+=from$1(character2);}}while(character2=next$1());return parsed;};var getRules$1=function getRules(value,points){return dealloc$1(toRules$1(alloc$1(value),points));};var fixedElements$1=/* @__PURE__ */new WeakMap();var compat$1=function compat(element){if(element.type!=="rule"||!element.parent||// positive .length indicates that this rule contains pseudo
|
|
1
|
+
var _templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject0,_templateObject1,_templateObject10,_templateObject11,_templateObject12,_templateObject13;function _wrapNativeSuper(t){var r="function"==typeof Map?new Map():void 0;return _wrapNativeSuper=function _wrapNativeSuper(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper);}function Wrapper(){return _construct(t,arguments,_getPrototypeOf2(this).constructor);}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf2(Wrapper,t);},_wrapNativeSuper(t);}function _construct(t,e,r){if(_isNativeReflectConstruct3())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o))();return r&&_setPrototypeOf2(p,r.prototype),p;}function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]");}catch(n){return"function"==typeof t;}}function _readOnlyError(r){throw new TypeError('"'+r+'" is read-only');}function _toArray(r){return _arrayWithHoles2(r)||_iterableToArray2(r)||_unsupportedIterableToArray2(r)||_nonIterableRest2();}function _callSuper(t,o,e){return o=_getPrototypeOf2(o),_possibleConstructorReturn2(t,_isNativeReflectConstruct3()?Reflect.construct(o,e||[],_getPrototypeOf2(t).constructor):o.apply(t,e));}function _possibleConstructorReturn2(t,e){if(e&&("object"==_typeof2(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized2(t);}function _assertThisInitialized2(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct3(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct3=function _isNativeReflectConstruct3(){return!!t;})();}function _getPrototypeOf2(t){return _getPrototypeOf2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf2(t);}function _inherits2(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf2(t,e);}function _setPrototypeOf2(t,e){return _setPrototypeOf2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf2(t,e);}function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return _regeneratorDefine2(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,r){return i=t,c=0,u=e,G.n=r,a;}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0));}if(o||r>1)return a;throw y=!0,n;}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0);}else 1===c&&(t=i.return)&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e;}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break;}catch(t){i=e,c=1,u=t;}finally{f=1;}}return{value:t,done:y};};}(r,o,i),!0),u;}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this;}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e;}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this;}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]";}),(_regenerator=function _regenerator(){return{w:i,m:f};})();}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{});}catch(e){i=0;}_regeneratorDefine2=function _regeneratorDefine(e,r,n,t){function o(r,n){_regeneratorDefine2(e,r,function(e){return this._invoke(r,n,e);});}r?i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:(o("next",0),o("throw",1),o("return",2));},_regeneratorDefine2(e,r,n,t);}function _taggedTemplateLiteral2(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck2(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function __defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey2(o.key),o);}}function _createClass2(e,r,t){return r&&__defineProperties(e.prototype,r),t&&__defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toConsumableArray2(r){return _arrayWithoutHoles2(r)||_iterableToArray2(r)||_unsupportedIterableToArray2(r)||_nonIterableSpread2();}function _nonIterableSpread2(){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 _iterableToArray2(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles2(r){if(Array.isArray(r))return _arrayLikeToArray2(r);}function _slicedToArray2(r,e){return _arrayWithHoles2(r)||_iterableToArrayLimit2(r,e)||_unsupportedIterableToArray2(r,e)||_nonIterableRest2();}function _nonIterableRest2(){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 _iterableToArrayLimit2(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles2(r){if(Array.isArray(r))return r;}function _defineProperty2(e,r,t){return(r=_toPropertyKey2(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _toPropertyKey2(t){var i=_toPrimitive2(t,"string");return"symbol"==_typeof2(i)?i:i+"";}function _toPrimitive2(t,r){if("object"!=_typeof2(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof2(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _typeof2(o){"@babel/helpers - typeof";return _typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof2(o);}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray2(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n2=0,F=function F(){};return{s:F,n:function n(){return _n2>=r.length?{done:!0}:{done:!1,value:r[_n2++]};},e:function e(r){throw r;},f:F};}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 o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t.return||t.return();}finally{if(u)throw o;}}};}function _unsupportedIterableToArray2(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray2(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray2(r,a):void 0;}}function _arrayLikeToArray2(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}var __defProp=Object.defineProperty;var __defProps=Object.defineProperties;var __getOwnPropDescs=Object.getOwnPropertyDescriptors;var __getOwnPropSymbols=Object.getOwnPropertySymbols;var __hasOwnProp=Object.prototype.hasOwnProperty;var __propIsEnum=Object.prototype.propertyIsEnumerable;var __pow=Math.pow;var __defNormalProp=function __defNormalProp(obj,key,value){return key in obj?__defProp(obj,key,{enumerable:true,configurable:true,writable:true,value:value}):obj[key]=value;};var __spreadValues=function __spreadValues(a,b){for(var prop in b||(b={}))if(__hasOwnProp.call(b,prop))__defNormalProp(a,prop,b[prop]);if(__getOwnPropSymbols){var _iterator=_createForOfIteratorHelper(__getOwnPropSymbols(b)),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var prop=_step.value;if(__propIsEnum.call(b,prop))__defNormalProp(a,prop,b[prop]);}}catch(err){_iterator.e(err);}finally{_iterator.f();}}return a;};var __spreadProps=function __spreadProps(a,b){return __defProps(a,__getOwnPropDescs(b));};var __restKey=function __restKey(key){return _typeof2(key)==="symbol"?key:key+"";};var __objRest=function __objRest(source,exclude){var target={};for(var prop in source)if(__hasOwnProp.call(source,prop)&&exclude.indexOf(prop)<0)target[prop]=source[prop];if(source!=null&&__getOwnPropSymbols){var _iterator2=_createForOfIteratorHelper(__getOwnPropSymbols(source)),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var prop=_step2.value;if(exclude.indexOf(prop)<0&&__propIsEnum.call(source,prop))target[prop]=source[prop];}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}}return target;};var __publicField=function __publicField(obj,key,value){return __defNormalProp(obj,_typeof2(key)!=="symbol"?key+"":key,value);};var __async=function __async(__this,__arguments,generator){return new Promise(function(resolve,reject){var fulfilled=function fulfilled(value){try{step(generator.next(value));}catch(e){reject(e);}};var rejected=function rejected(value){try{step(generator.throw(value));}catch(e){reject(e);}};var step=function step(x){return x.done?resolve(x.value):Promise.resolve(x.value).then(fulfilled,rejected);};step((generator=generator.apply(__this,__arguments)).next());});};import{jsxs,jsx as jsx$1,Fragment as Fragment$1}from"react/jsx-runtime";import*as React from"react";import React__default,{forwardRef,useContext,isValidElement,cloneElement,Children,useState,useCallback,useLayoutEffect,useRef,useMemo,createContext,Component,Fragment,useEffect,createElement}from"react";import*as ReactDOM from"react-dom";import ReactDOM__default,{createPortal}from"react-dom";function _arrayLikeToArray$1(r2,a){(null==a||a>r2.length)&&(a=r2.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r2[e];return n;}function _arrayWithHoles$1(r2){if(Array.isArray(r2))return r2;}function _defineProperty$1(e,r2,t){return(r2=_toPropertyKey(r2))in e?Object.defineProperty(e,r2,{value:t,enumerable:true,configurable:true,writable:true}):e[r2]=t,e;}function _iterableToArrayLimit$1(r2,l){var t=null==r2?null:"undefined"!=typeof Symbol&&r2[Symbol.iterator]||r2["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=true,o=false;try{if(i=(t=t.call(r2)).next,0===l);else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=true);}catch(r3){o=true,n=r3;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _nonIterableRest$1(){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 ownKeys$1(e,r2){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r2&&(o=o.filter(function(r3){return Object.getOwnPropertyDescriptor(e,r3).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread2$1(e){for(var r2=1;r2<arguments.length;r2++){var t=null!=arguments[r2]?arguments[r2]:{};r2%2?ownKeys$1(Object(t),true).forEach(function(r3){_defineProperty$1(e,r3,t[r3]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys$1(Object(t)).forEach(function(r3){Object.defineProperty(e,r3,Object.getOwnPropertyDescriptor(t,r3));});}return e;}function _objectWithoutProperties$1(e,t){if(null==e)return{};var o,r2,i=_objectWithoutPropertiesLoose$1(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r2=0;r2<n.length;r2++)o=n[r2],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}function _objectWithoutPropertiesLoose$1(r2,e){if(null==r2)return{};var t={};for(var n in r2)if({}.hasOwnProperty.call(r2,n)){if(-1!==e.indexOf(n))continue;t[n]=r2[n];}return t;}function _slicedToArray$1(r2,e){return _arrayWithHoles$1(r2)||_iterableToArrayLimit$1(r2,e)||_unsupportedIterableToArray$1(r2,e)||_nonIterableRest$1();}function _toPrimitive(t,r2){if("object"!=_typeof2(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r2);if("object"!=_typeof2(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r2?String:Number)(t);}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof2(i)?i:i+"";}function _typeof$1(o){"@babel/helpers - typeof";return _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o2){return typeof o2;}:function(o2){return o2&&"function"==typeof Symbol&&o2.constructor===Symbol&&o2!==Symbol.prototype?"symbol":typeof o2;},_typeof$1(o);}function _unsupportedIterableToArray$1(r2,a){if(r2){if("string"==typeof r2)return _arrayLikeToArray$1(r2,a);var t={}.toString.call(r2).slice(8,-1);return"Object"===t&&r2.constructor&&(t=r2.constructor.name),"Map"===t||"Set"===t?Array.from(r2):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray$1(r2,a):void 0;}}var btn="button-module_btn_XFZLT";var disabled$7="button-module_disabled_tB8LZ";var fullwidth$2="button-module_fullwidth_03y8a";var lg$a="button-module_lg_Hkfw0";var md$8="button-module_md_REpcP";var sm$a="button-module_sm_QYj0l";var primary$1="button-module_primary_ppbyq";var success$2="button-module_success_PUJLB";var secondary$1="button-module_secondary_esy5L";var error$4="button-module_error_eUPLx";var outline$1="button-module_outline_qVYGR";var link$1="button-module_link_imZgM";var styles$s={btn:btn,disabled:disabled$7,fullwidth:fullwidth$2,lg:lg$a,md:md$8,sm:sm$a,"with-adornment":"button-module_with-adornment_biWLE","left-adornment":"button-module_left-adornment_ifsGV","right-adornment":"button-module_right-adornment_8B4BV",primary:primary$1,success:success$2,secondary:secondary$1,error:error$4,outline:outline$1,link:link$1,"tooltip-link":"button-module_tooltip-link_BqvZl"};function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==_typeof2(e))if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n;}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n;}var _excluded$14=["type","variant","size","label","outline","leftAdornment","rightAdornment","className"];var Button$2=function Button(_ref3){var _ref$type=_ref3.type,type=_ref$type===void 0?"button":_ref$type,_ref$variant=_ref3.variant,variant=_ref$variant===void 0?"primary":_ref$variant,_ref$size=_ref3.size,size2=_ref$size===void 0?"lg":_ref$size,label2=_ref3.label,outline2=_ref3.outline,leftAdornment=_ref3.leftAdornment,rightAdornment=_ref3.rightAdornment,_ref$className=_ref3.className,className=_ref$className===void 0?"":_ref$className,props=_objectWithoutProperties$1(_ref3,_excluded$14);var adornmentStyle=!!leftAdornment||!!rightAdornment?"with-adornment":"";return/* @__PURE__ */jsxs("button",_objectSpread2$1(_objectSpread2$1({},props),{},{type:type,className:clsx(styles$s["btn"],styles$s[size2],styles$s[adornmentStyle],styles$s[variant],_defineProperty$1(_defineProperty$1({},styles$s["outline"],outline2),className,className)),children:[!!leftAdornment&&/* @__PURE__ */jsx$1("span",{className:"".concat(styles$s["left-adornment"]),children:leftAdornment}),label2,!!rightAdornment&&/* @__PURE__ */jsx$1("span",{className:"".concat(styles$s["right-adornment"]),children:rightAdornment})]}));};var common={black:"#000",white:"#fff"};var red={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"};var purple={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"};var blue={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"};var lightBlue={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"};var green={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};var orange={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"};var grey$1={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function formatMuiErrorMessage(code){var url=new URL("https://mui.com/production-error/?code=".concat(code));for(var _len5=arguments.length,args=new Array(_len5>1?_len5-1:0),_key5=1;_key5<_len5;_key5++){args[_key5-1]=arguments[_key5];}args.forEach(function(arg2){return url.searchParams.append("args[]",arg2);});return"Minified MUI error #".concat(code,"; visit ").concat(url," for the full message.");}var THEME_ID="$$material";function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r2 in t)({}).hasOwnProperty.call(t,r2)&&(n[r2]=t[r2]);}return n;},_extends$1.apply(null,arguments);}function sheetForTag$1(tag){if(tag.sheet){return tag.sheet;}for(var i=0;i<document.styleSheets.length;i++){if(document.styleSheets[i].ownerNode===tag){return document.styleSheets[i];}}return void 0;}function createStyleElement$1(options){var tag=document.createElement("style");tag.setAttribute("data-emotion",options.key);if(options.nonce!==void 0){tag.setAttribute("nonce",options.nonce);}tag.appendChild(document.createTextNode(""));tag.setAttribute("data-s","");return tag;}var StyleSheet$1=/* @__PURE__ */function(){function StyleSheet2(options){var _this=this;this._insertTag=function(tag){var before;if(_this.tags.length===0){if(_this.insertionPoint){before=_this.insertionPoint.nextSibling;}else if(_this.prepend){before=_this.container.firstChild;}else{before=_this.before;}}else{before=_this.tags[_this.tags.length-1].nextSibling;}_this.container.insertBefore(tag,before);_this.tags.push(tag);};this.isSpeedy=options.speedy===void 0?true:options.speedy;this.tags=[];this.ctr=0;this.nonce=options.nonce;this.key=options.key;this.container=options.container;this.prepend=options.prepend;this.insertionPoint=options.insertionPoint;this.before=null;}var _proto=StyleSheet2.prototype;_proto.hydrate=function hydrate(nodes){nodes.forEach(this._insertTag);};_proto.insert=function insert(rule){if(this.ctr%(this.isSpeedy?65e3:1)===0){this._insertTag(createStyleElement$1(this));}var tag=this.tags[this.tags.length-1];if(this.isSpeedy){var sheet=sheetForTag$1(tag);try{sheet.insertRule(rule,sheet.cssRules.length);}catch(e){}}else{tag.appendChild(document.createTextNode(rule));}this.ctr++;};_proto.flush=function flush(){this.tags.forEach(function(tag){var _tag$parentNode;return(_tag$parentNode=tag.parentNode)==null?void 0:_tag$parentNode.removeChild(tag);});this.tags=[];this.ctr=0;};return StyleSheet2;}();var MS$1="-ms-";var MOZ$1="-moz-";var WEBKIT$1="-webkit-";var COMMENT$1="comm";var RULESET$1="rule";var DECLARATION$1="decl";var IMPORT$1="@import";var KEYFRAMES$1="@keyframes";var LAYER="@layer";var abs$1=Math.abs;var from$1=String.fromCharCode;var assign$1=Object.assign;function hash$5(value,length2){return charat$1(value,0)^45?(((length2<<2^charat$1(value,0))<<2^charat$1(value,1))<<2^charat$1(value,2))<<2^charat$1(value,3):0;}function trim$1(value){return value.trim();}function match$3(value,pattern){return(value=pattern.exec(value))?value[0]:value;}function replace$1(value,pattern,replacement){return value.replace(pattern,replacement);}function indexof$1(value,search){return value.indexOf(search);}function charat$1(value,index2){return value.charCodeAt(index2)|0;}function substr$1(value,begin,end2){return value.slice(begin,end2);}function strlen$1(value){return value.length;}function sizeof$1(value){return value.length;}function append$1(value,array){return array.push(value),value;}function combine$1(array,callback){return array.map(callback).join("");}var line$1=1;var column$1=1;var length$1=0;var position$1=0;var character$1=0;var characters$1="";function node$1(value,root2,parent,type,props,children,length2){return{value:value,root:root2,parent:parent,type:type,props:props,children:children,line:line$1,column:column$1,length:length2,return:""};}function copy$2(root2,props){return assign$1(node$1("",null,null,"",null,null,0),root2,{length:-root2.length},props);}function char$1(){return character$1;}function prev$1(){character$1=position$1>0?charat$1(characters$1,--position$1):0;if(column$1--,character$1===10)column$1=1,line$1--;return character$1;}function next$1(){character$1=position$1<length$1?charat$1(characters$1,position$1++):0;if(column$1++,character$1===10)column$1=1,line$1++;return character$1;}function peek$1(){return charat$1(characters$1,position$1);}function caret$1(){return position$1;}function slice$1(begin,end2){return substr$1(characters$1,begin,end2);}function token$1(type){switch(type){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1;}return 0;}function alloc$1(value){return line$1=column$1=1,length$1=strlen$1(characters$1=value),position$1=0,[];}function dealloc$1(value){return characters$1="",value;}function delimit$1(type){return trim$1(slice$1(position$1-1,delimiter$1(type===91?type+2:type===40?type+1:type)));}function whitespace$1(type){while(character$1=peek$1())if(character$1<33)next$1();else break;return token$1(type)>2||token$1(character$1)>3?"":" ";}function escaping$1(index2,count2){while(--count2&&next$1())if(character$1<48||character$1>102||character$1>57&&character$1<65||character$1>70&&character$1<97)break;return slice$1(index2,caret$1()+(count2<6&&peek$1()==32&&next$1()==32));}function delimiter$1(type){while(next$1())switch(character$1){case type:return position$1;case 34:case 39:if(type!==34&&type!==39)delimiter$1(character$1);break;case 40:if(type===41)delimiter$1(type);break;case 92:next$1();break;}return position$1;}function commenter$1(type,index2){while(next$1())if(type+character$1===47+10)break;else if(type+character$1===42+42&&peek$1()===47)break;return"/*"+slice$1(index2,position$1-1)+"*"+from$1(type===47?type:next$1());}function identifier$2(index2){while(!token$1(peek$1()))next$1();return slice$1(index2,position$1);}function compile$1(value){return dealloc$1(parse$2("",null,null,null,[""],value=alloc$1(value),0,[0],value));}function parse$2(value,root2,parent,rule,rules,rulesets,pseudo,points,declarations){var index2=0;var offset2=0;var length2=pseudo;var atrule=0;var property2=0;var previous=0;var variable=1;var scanning=1;var ampersand=1;var character2=0;var type="";var props=rules;var children=rulesets;var reference2=rule;var characters2=type;while(scanning)switch(previous=character2,character2=next$1()){case 40:if(previous!=108&&charat$1(characters2,length2-1)==58){if(indexof$1(characters2+=replace$1(delimit$1(character2),"&","&\f"),"&\f")!=-1)ampersand=-1;break;}case 34:case 39:case 91:characters2+=delimit$1(character2);break;case 9:case 10:case 13:case 32:characters2+=whitespace$1(previous);break;case 92:characters2+=escaping$1(caret$1()-1,7);continue;case 47:switch(peek$1()){case 42:case 47:append$1(comment$1(commenter$1(next$1(),caret$1()),root2,parent),declarations);break;default:characters2+="/";}break;case 123*variable:points[index2++]=strlen$1(characters2)*ampersand;case 125*variable:case 59:case 0:switch(character2){case 0:case 125:scanning=0;case 59+offset2:if(ampersand==-1)characters2=replace$1(characters2,/\f/g,"");if(property2>0&&strlen$1(characters2)-length2)append$1(property2>32?declaration$1(characters2+";",rule,parent,length2-1):declaration$1(replace$1(characters2," ","")+";",rule,parent,length2-2),declarations);break;case 59:characters2+=";";default:append$1(reference2=ruleset$1(characters2,root2,parent,index2,offset2,rules,points,type,props=[],children=[],length2),rulesets);if(character2===123)if(offset2===0)parse$2(characters2,root2,reference2,reference2,props,rulesets,length2,points,children);else switch(atrule===99&&charat$1(characters2,3)===110?100:atrule){case 100:case 108:case 109:case 115:parse$2(value,reference2,reference2,rule&&append$1(ruleset$1(value,reference2,reference2,0,0,rules,points,type,rules,props=[],length2),children),rules,children,length2,points,rule?props:children);break;default:parse$2(characters2,reference2,reference2,reference2,[""],children,0,points,children);}}index2=offset2=property2=0,variable=ampersand=1,type=characters2="",length2=pseudo;break;case 58:length2=1+strlen$1(characters2),property2=previous;default:if(variable<1){if(character2==123)--variable;else if(character2==125&&variable++==0&&prev$1()==125)continue;}switch(characters2+=from$1(character2),character2*variable){case 38:ampersand=offset2>0?1:(characters2+="\f",-1);break;case 44:points[index2++]=(strlen$1(characters2)-1)*ampersand,ampersand=1;break;case 64:if(peek$1()===45)characters2+=delimit$1(next$1());atrule=peek$1(),offset2=length2=strlen$1(type=characters2+=identifier$2(caret$1())),character2++;break;case 45:if(previous===45&&strlen$1(characters2)==2)variable=0;}}return rulesets;}function ruleset$1(value,root2,parent,index2,offset2,rules,points,type,props,children,length2){var post=offset2-1;var rule=offset2===0?rules:[""];var size2=sizeof$1(rule);for(var i=0,j=0,k=0;i<index2;++i)for(var x=0,y=substr$1(value,post+1,post=abs$1(j=points[i])),z=value;x<size2;++x)if(z=trim$1(j>0?rule[x]+" "+y:replace$1(y,/&\f/g,rule[x])))props[k++]=z;return node$1(value,root2,parent,offset2===0?RULESET$1:type,props,children,length2);}function comment$1(value,root2,parent){return node$1(value,root2,parent,COMMENT$1,from$1(char$1()),substr$1(value,2,-2),0);}function declaration$1(value,root2,parent,length2){return node$1(value,root2,parent,DECLARATION$1,substr$1(value,0,length2),substr$1(value,length2+1,-1),length2);}function serialize$1(children,callback){var output="";var length2=sizeof$1(children);for(var i=0;i<length2;i++)output+=callback(children[i],i,children,callback)||"";return output;}function stringify$1(element,index2,children,callback){switch(element.type){case LAYER:if(element.children.length)break;case IMPORT$1:case DECLARATION$1:return element.return=element.return||element.value;case COMMENT$1:return"";case KEYFRAMES$1:return element.return=element.value+"{"+serialize$1(element.children,callback)+"}";case RULESET$1:element.value=element.props.join(",");}return strlen$1(children=serialize$1(element.children,callback))?element.return=element.value+"{"+children+"}":"";}function middleware$1(collection){var length2=sizeof$1(collection);return function(element,index2,children,callback){var output="";for(var i=0;i<length2;i++)output+=collection[i](element,index2,children,callback)||"";return output;};}function rulesheet$1(callback){return function(element){if(!element.root){if(element=element.return)callback(element);}};}function memoize$4(fn3){var cache=/* @__PURE__ */Object.create(null);return function(arg2){if(cache[arg2]===void 0)cache[arg2]=fn3(arg2);return cache[arg2];};}var identifierWithPointTracking$1=function identifierWithPointTracking(begin,points,index2){var previous=0;var character2=0;while(true){previous=character2;character2=peek$1();if(previous===38&&character2===12){points[index2]=1;}if(token$1(character2)){break;}next$1();}return slice$1(begin,position$1);};var toRules$1=function toRules(parsed,points){var index2=-1;var character2=44;do{switch(token$1(character2)){case 0:if(character2===38&&peek$1()===12){points[index2]=1;}parsed[index2]+=identifierWithPointTracking$1(position$1-1,points,index2);break;case 2:parsed[index2]+=delimit$1(character2);break;case 4:if(character2===44){parsed[++index2]=peek$1()===58?"&\f":"";points[index2]=parsed[index2].length;break;}default:parsed[index2]+=from$1(character2);}}while(character2=next$1());return parsed;};var getRules$1=function getRules(value,points){return dealloc$1(toRules$1(alloc$1(value),points));};var fixedElements$1=/* @__PURE__ */new WeakMap();var compat$1=function compat(element){if(element.type!=="rule"||!element.parent||// positive .length indicates that this rule contains pseudo
|
|
2
2
|
// negative .length indicates that this rule has been already prefixed
|
|
3
3
|
element.length<1){return;}var value=element.value;var parent=element.parent;var isImplicitRule=element.column===parent.column&&element.line===parent.line;while(parent.type!=="rule"){parent=parent.parent;if(!parent)return;}if(element.props.length===1&&value.charCodeAt(0)!==58&&!fixedElements$1.get(parent)){return;}if(isImplicitRule){return;}fixedElements$1.set(element,true);var points=[];var rules=getRules$1(value,points);var parentRules=parent.props;for(var i=0,k=0;i<rules.length;i++){for(var j=0;j<parentRules.length;j++,k++){element.props[k]=points[i]?rules[i].replace(/&\f/g,parentRules[j]):parentRules[j]+" "+rules[i];}}};var removeLabel$1=function removeLabel(element){if(element.type==="decl"){var value=element.value;if(// charcode for l
|
|
4
4
|
value.charCodeAt(0)===108&&// charcode for b
|
|
@@ -3405,7 +3405,7 @@ tabsMeta.clientWidth!==0){tabsMeta=null;console.error(["MUI: The `value` provide
|
|
|
3405
3405
|
key=="length"||// Node.js 0.10 has enumerable non-index properties on buffers.
|
|
3406
3406
|
isBuff&&(key=="offset"||key=="parent")||// PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
3407
3407
|
isType&&(key=="buffer"||key=="byteLength"||key=="byteOffset")||// Skip index properties.
|
|
3408
|
-
isIndex2(key,length2)))){result2.push(key);}}return result2;}function arraySample(array){var length2=array.length;return length2?array[baseRandom(0,length2-1)]:undefined$1;}function arraySampleSize(array,n){return shuffleSelf(copyArray(array),baseClamp(n,0,array.length));}function arrayShuffle(array){return shuffleSelf(copyArray(array));}function assignMergeValue(object,key,value){if(value!==undefined$1&&!eq2(object[key],value)||value===undefined$1&&!(key in object)){baseAssignValue(object,key,value);}}function assignValue(object,key,value){var objValue=object[key];if(!(hasOwnProperty2.call(object,key)&&eq2(objValue,value))||value===undefined$1&&!(key in object)){baseAssignValue(object,key,value);}}function assocIndexOf2(array,key){var length2=array.length;while(length2--){if(eq2(array[length2][0],key)){return length2;}}return-1;}function baseAggregator(collection,setter,iteratee2,accumulator){baseEach2(collection,function(value,key,collection2){setter(accumulator,value,iteratee2(value),collection2);});return accumulator;}function baseAssign(object,source){return object&©Object(source,keys2(source),object);}function baseAssignIn(object,source){return object&©Object(source,keysIn(source),object);}function baseAssignValue(object,key,value){if(key=="__proto__"&&defineProperty){defineProperty(object,key,{"configurable":true,"enumerable":true,"value":value,"writable":true});}else{object[key]=value;}}function baseAt(object,paths){var index2=-1,length2=paths.length,result2=Array2(length2),skip=object==null;while(++index2<length2){result2[index2]=skip?undefined$1:get2(object,paths[index2]);}return result2;}function baseClamp(number,lower,upper){if(number===number){if(upper!==undefined$1){number=number<=upper?number:upper;}if(lower!==undefined$1){number=number>=lower?number:lower;}}return number;}function baseClone(value,bitmask,customizer,key,object,stack){var result2,isDeep=bitmask&CLONE_DEEP_FLAG,isFlat=bitmask&CLONE_FLAT_FLAG,isFull=bitmask&CLONE_SYMBOLS_FLAG;if(customizer){result2=object?customizer(value,key,object,stack):customizer(value);}if(result2!==undefined$1){return result2;}if(!isObject2(value)){return value;}var isArr=isArray2(value);if(isArr){result2=initCloneArray(value);if(!isDeep){return copyArray(value,result2);}}else{var tag=getTag2(value),isFunc=tag==funcTag2||tag==genTag2;if(isBuffer2(value)){return cloneBuffer(value,isDeep);}if(tag==objectTag2||tag==argsTag2||isFunc&&!object){result2=isFlat||isFunc?{}:initCloneObject(value);if(!isDeep){return isFlat?copySymbolsIn(value,baseAssignIn(result2,value)):copySymbols(value,baseAssign(result2,value));}}else{if(!cloneableTags[tag]){return object?value:{};}result2=initCloneByTag(value,tag,isDeep);}}stack||(stack=new Stack2());var stacked=stack.get(value);if(stacked){return stacked;}stack.set(value,result2);if(isSet(value)){value.forEach(function(subValue){result2.add(baseClone(subValue,bitmask,customizer,subValue,value,stack));});}else if(isMap(value)){value.forEach(function(subValue,key2){result2.set(key2,baseClone(subValue,bitmask,customizer,key2,value,stack));});}var keysFunc=isFull?isFlat?getAllKeysIn:getAllKeys2:isFlat?keysIn:keys2;var props=isArr?undefined$1:keysFunc(value);arrayEach(props||value,function(subValue,key2){if(props){key2=subValue;subValue=value[key2];}assignValue(result2,key2,baseClone(subValue,bitmask,customizer,key2,value,stack));});return result2;}function baseConforms(source){var props=keys2(source);return function(object){return baseConformsTo(object,source,props);};}function baseConformsTo(object,source,props){var length2=props.length;if(object==null){return!length2;}object=Object2(object);while(length2--){var key=props[length2],predicate=source[key],value=object[key];if(value===undefined$1&&!(key in object)||!predicate(value)){return false;}}return true;}function baseDelay(func,wait,args){if(typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}return setTimeout2(function(){func.apply(undefined$1,args);},wait);}function baseDifference(array,values3,iteratee2,comparator){var index2=-1,includes2=arrayIncludes2,isCommon=true,length2=array.length,result2=[],valuesLength=values3.length;if(!length2){return result2;}if(iteratee2){values3=arrayMap2(values3,baseUnary2(iteratee2));}if(comparator){includes2=arrayIncludesWith;isCommon=false;}else if(values3.length>=LARGE_ARRAY_SIZE2){includes2=cacheHas2;isCommon=false;values3=new SetCache2(values3);}outer:while(++index2<length2){var value=array[index2],computed=iteratee2==null?value:iteratee2(value);value=comparator||value!==0?value:0;if(isCommon&&computed===computed){var valuesIndex=valuesLength;while(valuesIndex--){if(values3[valuesIndex]===computed){continue outer;}}result2.push(value);}else if(!includes2(values3,computed,comparator)){result2.push(value);}}return result2;}var baseEach2=createBaseEach2(baseForOwn2);var baseEachRight=createBaseEach2(baseForOwnRight,true);function baseEvery(collection,predicate){var result2=true;baseEach2(collection,function(value,index2,collection2){result2=!!predicate(value,index2,collection2);return result2;});return result2;}function baseExtremum(array,iteratee2,comparator){var index2=-1,length2=array.length;while(++index2<length2){var value=array[index2],current=iteratee2(value);if(current!=null&&(computed===undefined$1?current===current&&!isSymbol2(current):comparator(current,computed))){var computed=current,result2=value;}}return result2;}function baseFill(array,value,start2,end2){var length2=array.length;start2=toInteger2(start2);if(start2<0){start2=-start2>length2?0:length2+start2;}end2=end2===undefined$1||end2>length2?length2:toInteger2(end2);if(end2<0){end2+=length2;}end2=start2>end2?0:toLength(end2);while(start2<end2){array[start2++]=value;}return array;}function baseFilter(collection,predicate){var result2=[];baseEach2(collection,function(value,index2,collection2){if(predicate(value,index2,collection2)){result2.push(value);}});return result2;}function baseFlatten(array,depth,predicate,isStrict,result2){var index2=-1,length2=array.length;predicate||(predicate=isFlattenable);result2||(result2=[]);while(++index2<length2){var value=array[index2];if(depth>0&&predicate(value)){if(depth>1){baseFlatten(value,depth-1,predicate,isStrict,result2);}else{arrayPush2(result2,value);}}else if(!isStrict){result2[result2.length]=value;}}return result2;}var baseFor2=createBaseFor2();var baseForRight=createBaseFor2(true);function baseForOwn2(object,iteratee2){return object&&baseFor2(object,iteratee2,keys2);}function baseForOwnRight(object,iteratee2){return object&&baseForRight(object,iteratee2,keys2);}function baseFunctions(object,props){return arrayFilter2(props,function(key){return isFunction2(object[key]);});}function baseGet2(object,path){path=castPath2(path,object);var index2=0,length2=path.length;while(object!=null&&index2<length2){object=object[toKey2(path[index2++])];}return index2&&index2==length2?object:undefined$1;}function baseGetAllKeys2(object,keysFunc,symbolsFunc){var result2=keysFunc(object);return isArray2(object)?result2:arrayPush2(result2,symbolsFunc(object));}function baseGetTag2(value){if(value==null){return value===undefined$1?undefinedTag2:nullTag2;}return symToStringTag2&&symToStringTag2 in Object2(value)?getRawTag2(value):objectToString2(value);}function baseGt(value,other){return value>other;}function baseHas(object,key){return object!=null&&hasOwnProperty2.call(object,key);}function baseHasIn2(object,key){return object!=null&&key in Object2(object);}function baseInRange(number,start2,end2){return number>=nativeMin(start2,end2)&&number<nativeMax2(start2,end2);}function baseIntersection(arrays,iteratee2,comparator){var includes2=comparator?arrayIncludesWith:arrayIncludes2,length2=arrays[0].length,othLength=arrays.length,othIndex=othLength,caches=Array2(othLength),maxLength=Infinity,result2=[];while(othIndex--){var array=arrays[othIndex];if(othIndex&&iteratee2){array=arrayMap2(array,baseUnary2(iteratee2));}maxLength=nativeMin(array.length,maxLength);caches[othIndex]=!comparator&&(iteratee2||length2>=120&&array.length>=120)?new SetCache2(othIndex&&array):undefined$1;}array=arrays[0];var index2=-1,seen=caches[0];outer:while(++index2<length2&&result2.length<maxLength){var value=array[index2],computed=iteratee2?iteratee2(value):value;value=comparator||value!==0?value:0;if(!(seen?cacheHas2(seen,computed):includes2(result2,computed,comparator))){othIndex=othLength;while(--othIndex){var cache=caches[othIndex];if(!(cache?cacheHas2(cache,computed):includes2(arrays[othIndex],computed,comparator))){continue outer;}}if(seen){seen.push(computed);}result2.push(value);}}return result2;}function baseInverter(object,setter,iteratee2,accumulator){baseForOwn2(object,function(value,key,object2){setter(accumulator,iteratee2(value),key,object2);});return accumulator;}function baseInvoke(object,path,args){path=castPath2(path,object);object=parent(object,path);var func=object==null?object:object[toKey2(last(path))];return func==null?undefined$1:apply(func,object,args);}function baseIsArguments2(value){return isObjectLike2(value)&&baseGetTag2(value)==argsTag2;}function baseIsArrayBuffer(value){return isObjectLike2(value)&&baseGetTag2(value)==arrayBufferTag2;}function baseIsDate(value){return isObjectLike2(value)&&baseGetTag2(value)==dateTag2;}function baseIsEqual2(value,other,bitmask,customizer,stack){if(value===other){return true;}if(value==null||other==null||!isObjectLike2(value)&&!isObjectLike2(other)){return value!==value&&other!==other;}return baseIsEqualDeep2(value,other,bitmask,customizer,baseIsEqual2,stack);}function baseIsEqualDeep2(object,other,bitmask,customizer,equalFunc,stack){var objIsArr=isArray2(object),othIsArr=isArray2(other),objTag=objIsArr?arrayTag2:getTag2(object),othTag=othIsArr?arrayTag2:getTag2(other);objTag=objTag==argsTag2?objectTag2:objTag;othTag=othTag==argsTag2?objectTag2:othTag;var objIsObj=objTag==objectTag2,othIsObj=othTag==objectTag2,isSameTag=objTag==othTag;if(isSameTag&&isBuffer2(object)){if(!isBuffer2(other)){return false;}objIsArr=true;objIsObj=false;}if(isSameTag&&!objIsObj){stack||(stack=new Stack2());return objIsArr||isTypedArray2(object)?equalArrays2(object,other,bitmask,customizer,equalFunc,stack):equalByTag2(object,other,objTag,bitmask,customizer,equalFunc,stack);}if(!(bitmask&COMPARE_PARTIAL_FLAG2)){var objIsWrapped=objIsObj&&hasOwnProperty2.call(object,"__wrapped__"),othIsWrapped=othIsObj&&hasOwnProperty2.call(other,"__wrapped__");if(objIsWrapped||othIsWrapped){var objUnwrapped=objIsWrapped?object.value():object,othUnwrapped=othIsWrapped?other.value():other;stack||(stack=new Stack2());return equalFunc(objUnwrapped,othUnwrapped,bitmask,customizer,stack);}}if(!isSameTag){return false;}stack||(stack=new Stack2());return equalObjects2(object,other,bitmask,customizer,equalFunc,stack);}function baseIsMap(value){return isObjectLike2(value)&&getTag2(value)==mapTag2;}function baseIsMatch2(object,source,matchData,customizer){var index2=matchData.length,length2=index2,noCustomizer=!customizer;if(object==null){return!length2;}object=Object2(object);while(index2--){var data=matchData[index2];if(noCustomizer&&data[2]?data[1]!==object[data[0]]:!(data[0]in object)){return false;}}while(++index2<length2){data=matchData[index2];var key=data[0],objValue=object[key],srcValue=data[1];if(noCustomizer&&data[2]){if(objValue===undefined$1&&!(key in object)){return false;}}else{var stack=new Stack2();if(customizer){var result2=customizer(objValue,srcValue,key,object,source,stack);}if(!(result2===undefined$1?baseIsEqual2(srcValue,objValue,COMPARE_PARTIAL_FLAG2|COMPARE_UNORDERED_FLAG2,customizer,stack):result2)){return false;}}}return true;}function baseIsNative2(value){if(!isObject2(value)||isMasked2(value)){return false;}var pattern=isFunction2(value)?reIsNative2:reIsHostCtor2;return pattern.test(toSource2(value));}function baseIsRegExp(value){return isObjectLike2(value)&&baseGetTag2(value)==regexpTag2;}function baseIsSet(value){return isObjectLike2(value)&&getTag2(value)==setTag2;}function baseIsTypedArray2(value){return isObjectLike2(value)&&isLength2(value.length)&&!!typedArrayTags2[baseGetTag2(value)];}function baseIteratee2(value){if(typeof value=="function"){return value;}if(value==null){return identity2;}if(_typeof2(value)=="object"){return isArray2(value)?baseMatchesProperty2(value[0],value[1]):baseMatches2(value);}return property2(value);}function baseKeys2(object){if(!isPrototype2(object)){return nativeKeys2(object);}var result2=[];for(var key in Object2(object)){if(hasOwnProperty2.call(object,key)&&key!="constructor"){result2.push(key);}}return result2;}function baseKeysIn(object){if(!isObject2(object)){return nativeKeysIn(object);}var isProto=isPrototype2(object),result2=[];for(var key in object){if(!(key=="constructor"&&(isProto||!hasOwnProperty2.call(object,key)))){result2.push(key);}}return result2;}function baseLt(value,other){return value<other;}function baseMap2(collection,iteratee2){var index2=-1,result2=isArrayLike2(collection)?Array2(collection.length):[];baseEach2(collection,function(value,key,collection2){result2[++index2]=iteratee2(value,key,collection2);});return result2;}function baseMatches2(source){var matchData=getMatchData2(source);if(matchData.length==1&&matchData[0][2]){return matchesStrictComparable2(matchData[0][0],matchData[0][1]);}return function(object){return object===source||baseIsMatch2(object,source,matchData);};}function baseMatchesProperty2(path,srcValue){if(isKey2(path)&&isStrictComparable2(srcValue)){return matchesStrictComparable2(toKey2(path),srcValue);}return function(object){var objValue=get2(object,path);return objValue===undefined$1&&objValue===srcValue?hasIn2(object,path):baseIsEqual2(srcValue,objValue,COMPARE_PARTIAL_FLAG2|COMPARE_UNORDERED_FLAG2);};}function baseMerge(object,source,srcIndex,customizer,stack){if(object===source){return;}baseFor2(source,function(srcValue,key){stack||(stack=new Stack2());if(isObject2(srcValue)){baseMergeDeep(object,source,key,srcIndex,baseMerge,customizer,stack);}else{var newValue=customizer?customizer(safeGet(object,key),srcValue,key+"",object,source,stack):undefined$1;if(newValue===undefined$1){newValue=srcValue;}assignMergeValue(object,key,newValue);}},keysIn);}function baseMergeDeep(object,source,key,srcIndex,mergeFunc,customizer,stack){var objValue=safeGet(object,key),srcValue=safeGet(source,key),stacked=stack.get(srcValue);if(stacked){assignMergeValue(object,key,stacked);return;}var newValue=customizer?customizer(objValue,srcValue,key+"",object,source,stack):undefined$1;var isCommon=newValue===undefined$1;if(isCommon){var isArr=isArray2(srcValue),isBuff=!isArr&&isBuffer2(srcValue),isTyped=!isArr&&!isBuff&&isTypedArray2(srcValue);newValue=srcValue;if(isArr||isBuff||isTyped){if(isArray2(objValue)){newValue=objValue;}else if(isArrayLikeObject(objValue)){newValue=copyArray(objValue);}else if(isBuff){isCommon=false;newValue=cloneBuffer(srcValue,true);}else if(isTyped){isCommon=false;newValue=cloneTypedArray(srcValue,true);}else{newValue=[];}}else if(isPlainObject2(srcValue)||isArguments2(srcValue)){newValue=objValue;if(isArguments2(objValue)){newValue=toPlainObject(objValue);}else if(!isObject2(objValue)||isFunction2(objValue)){newValue=initCloneObject(srcValue);}}else{isCommon=false;}}if(isCommon){stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,stack);stack["delete"](srcValue);}assignMergeValue(object,key,newValue);}function baseNth(array,n){var length2=array.length;if(!length2){return;}n+=n<0?length2:0;return isIndex2(n,length2)?array[n]:undefined$1;}function baseOrderBy(collection,iteratees,orders){if(iteratees.length){iteratees=arrayMap2(iteratees,function(iteratee2){if(isArray2(iteratee2)){return function(value){return baseGet2(value,iteratee2.length===1?iteratee2[0]:iteratee2);};}return iteratee2;});}else{iteratees=[identity2];}var index2=-1;iteratees=arrayMap2(iteratees,baseUnary2(getIteratee()));var result2=baseMap2(collection,function(value,key,collection2){var criteria=arrayMap2(iteratees,function(iteratee2){return iteratee2(value);});return{"criteria":criteria,"index":++index2,"value":value};});return baseSortBy(result2,function(object,other){return compareMultiple(object,other,orders);});}function basePick(object,paths){return basePickBy(object,paths,function(value,path){return hasIn2(object,path);});}function basePickBy(object,paths,predicate){var index2=-1,length2=paths.length,result2={};while(++index2<length2){var path=paths[index2],value=baseGet2(object,path);if(predicate(value,path)){baseSet(result2,castPath2(path,object),value);}}return result2;}function basePropertyDeep2(path){return function(object){return baseGet2(object,path);};}function basePullAll(array,values3,iteratee2,comparator){var indexOf2=comparator?baseIndexOfWith:baseIndexOf,index2=-1,length2=values3.length,seen=array;if(array===values3){values3=copyArray(values3);}if(iteratee2){seen=arrayMap2(array,baseUnary2(iteratee2));}while(++index2<length2){var fromIndex=0,value=values3[index2],computed=iteratee2?iteratee2(value):value;while((fromIndex=indexOf2(seen,computed,fromIndex,comparator))>-1){if(seen!==array){splice2.call(seen,fromIndex,1);}splice2.call(array,fromIndex,1);}}return array;}function basePullAt(array,indexes){var length2=array?indexes.length:0,lastIndex=length2-1;while(length2--){var index2=indexes[length2];if(length2==lastIndex||index2!==previous){var previous=index2;if(isIndex2(index2)){splice2.call(array,index2,1);}else{baseUnset(array,index2);}}}return array;}function baseRandom(lower,upper){return lower+nativeFloor(nativeRandom()*(upper-lower+1));}function baseRange(start2,end2,step,fromRight){var index2=-1,length2=nativeMax2(nativeCeil((end2-start2)/(step||1)),0),result2=Array2(length2);while(length2--){result2[fromRight?length2:++index2]=start2;start2+=step;}return result2;}function baseRepeat(string,n){var result2="";if(!string||n<1||n>MAX_SAFE_INTEGER2){return result2;}do{if(n%2){result2+=string;}n=nativeFloor(n/2);if(n){string+=string;}}while(n);return result2;}function baseRest(func,start2){return setToString(overRest(func,start2,identity2),func+"");}function baseSample(collection){return arraySample(values2(collection));}function baseSampleSize(collection,n){var array=values2(collection);return shuffleSelf(array,baseClamp(n,0,array.length));}function baseSet(object,path,value,customizer){if(!isObject2(object)){return object;}path=castPath2(path,object);var index2=-1,length2=path.length,lastIndex=length2-1,nested=object;while(nested!=null&&++index2<length2){var key=toKey2(path[index2]),newValue=value;if(key==="__proto__"||key==="constructor"||key==="prototype"){return object;}if(index2!=lastIndex){var objValue=nested[key];newValue=customizer?customizer(objValue,key,nested):undefined$1;if(newValue===undefined$1){newValue=isObject2(objValue)?objValue:isIndex2(path[index2+1])?[]:{};}}assignValue(nested,key,newValue);nested=nested[key];}return object;}var baseSetData=!metaMap?identity2:function(func,data){metaMap.set(func,data);return func;};var baseSetToString=!defineProperty?identity2:function(func,string){return defineProperty(func,"toString",{"configurable":true,"enumerable":false,"value":constant(string),"writable":true});};function baseShuffle(collection){return shuffleSelf(values2(collection));}function baseSlice(array,start2,end2){var index2=-1,length2=array.length;if(start2<0){start2=-start2>length2?0:length2+start2;}end2=end2>length2?length2:end2;if(end2<0){end2+=length2;}length2=start2>end2?0:end2-start2>>>0;start2>>>=0;var result2=Array2(length2);while(++index2<length2){result2[index2]=array[index2+start2];}return result2;}function baseSome(collection,predicate){var result2;baseEach2(collection,function(value,index2,collection2){result2=predicate(value,index2,collection2);return!result2;});return!!result2;}function baseSortedIndex(array,value,retHighest){var low=0,high=array==null?low:array.length;if(typeof value=="number"&&value===value&&high<=HALF_MAX_ARRAY_LENGTH){while(low<high){var mid=low+high>>>1,computed=array[mid];if(computed!==null&&!isSymbol2(computed)&&(retHighest?computed<=value:computed<value)){low=mid+1;}else{high=mid;}}return high;}return baseSortedIndexBy(array,value,identity2,retHighest);}function baseSortedIndexBy(array,value,iteratee2,retHighest){var low=0,high=array==null?0:array.length;if(high===0){return 0;}value=iteratee2(value);var valIsNaN=value!==value,valIsNull=value===null,valIsSymbol=isSymbol2(value),valIsUndefined=value===undefined$1;while(low<high){var mid=nativeFloor((low+high)/2),computed=iteratee2(array[mid]),othIsDefined=computed!==undefined$1,othIsNull=computed===null,othIsReflexive=computed===computed,othIsSymbol=isSymbol2(computed);if(valIsNaN){var setLow=retHighest||othIsReflexive;}else if(valIsUndefined){setLow=othIsReflexive&&(retHighest||othIsDefined);}else if(valIsNull){setLow=othIsReflexive&&othIsDefined&&(retHighest||!othIsNull);}else if(valIsSymbol){setLow=othIsReflexive&&othIsDefined&&!othIsNull&&(retHighest||!othIsSymbol);}else if(othIsNull||othIsSymbol){setLow=false;}else{setLow=retHighest?computed<=value:computed<value;}if(setLow){low=mid+1;}else{high=mid;}}return nativeMin(high,MAX_ARRAY_INDEX);}function baseSortedUniq(array,iteratee2){var index2=-1,length2=array.length,resIndex=0,result2=[];while(++index2<length2){var value=array[index2],computed=iteratee2?iteratee2(value):value;if(!index2||!eq2(computed,seen)){var seen=computed;result2[resIndex++]=value===0?0:value;}}return result2;}function baseToNumber(value){if(typeof value=="number"){return value;}if(isSymbol2(value)){return NAN2;}return+value;}function baseToString2(value){if(typeof value=="string"){return value;}if(isArray2(value)){return arrayMap2(value,baseToString2)+"";}if(isSymbol2(value)){return symbolToString2?symbolToString2.call(value):"";}var result2=value+"";return result2=="0"&&1/value==-INFINITY2?"-0":result2;}function baseUniq(array,iteratee2,comparator){var index2=-1,includes2=arrayIncludes2,length2=array.length,isCommon=true,result2=[],seen=result2;if(comparator){isCommon=false;includes2=arrayIncludesWith;}else if(length2>=LARGE_ARRAY_SIZE2){var set2=iteratee2?null:createSet(array);if(set2){return setToArray2(set2);}isCommon=false;includes2=cacheHas2;seen=new SetCache2();}else{seen=iteratee2?[]:result2;}outer:while(++index2<length2){var value=array[index2],computed=iteratee2?iteratee2(value):value;value=comparator||value!==0?value:0;if(isCommon&&computed===computed){var seenIndex=seen.length;while(seenIndex--){if(seen[seenIndex]===computed){continue outer;}}if(iteratee2){seen.push(computed);}result2.push(value);}else if(!includes2(seen,computed,comparator)){if(seen!==result2){seen.push(computed);}result2.push(value);}}return result2;}function baseUnset(object,path){path=castPath2(path,object);object=parent(object,path);return object==null||delete object[toKey2(last(path))];}function baseUpdate(object,path,updater,customizer){return baseSet(object,path,updater(baseGet2(object,path)),customizer);}function baseWhile(array,predicate,isDrop,fromRight){var length2=array.length,index2=fromRight?length2:-1;while((fromRight?index2--:++index2<length2)&&predicate(array[index2],index2,array)){}return isDrop?baseSlice(array,fromRight?0:index2,fromRight?index2+1:length2):baseSlice(array,fromRight?index2+1:0,fromRight?length2:index2);}function baseWrapperValue(value,actions){var result2=value;if(result2 instanceof LazyWrapper){result2=result2.value();}return arrayReduce(actions,function(result3,action2){return action2.func.apply(action2.thisArg,arrayPush2([result3],action2.args));},result2);}function baseXor(arrays,iteratee2,comparator){var length2=arrays.length;if(length2<2){return length2?baseUniq(arrays[0]):[];}var index2=-1,result2=Array2(length2);while(++index2<length2){var array=arrays[index2],othIndex=-1;while(++othIndex<length2){if(othIndex!=index2){result2[index2]=baseDifference(result2[index2]||array,arrays[othIndex],iteratee2,comparator);}}}return baseUniq(baseFlatten(result2,1),iteratee2,comparator);}function baseZipObject(props,values3,assignFunc){var index2=-1,length2=props.length,valsLength=values3.length,result2={};while(++index2<length2){var value=index2<valsLength?values3[index2]:undefined$1;assignFunc(result2,props[index2],value);}return result2;}function castArrayLikeObject(value){return isArrayLikeObject(value)?value:[];}function castFunction(value){return typeof value=="function"?value:identity2;}function castPath2(value,object){if(isArray2(value)){return value;}return isKey2(value,object)?[value]:stringToPath2(toString2(value));}var castRest=baseRest;function castSlice(array,start2,end2){var length2=array.length;end2=end2===undefined$1?length2:end2;return!start2&&end2>=length2?array:baseSlice(array,start2,end2);}var clearTimeout2=ctxClearTimeout||function(id){return root2.clearTimeout(id);};function cloneBuffer(buffer,isDeep){if(isDeep){return buffer.slice();}var length2=buffer.length,result2=allocUnsafe?allocUnsafe(length2):new buffer.constructor(length2);buffer.copy(result2);return result2;}function cloneArrayBuffer(arrayBuffer){var result2=new arrayBuffer.constructor(arrayBuffer.byteLength);new Uint8Array3(result2).set(new Uint8Array3(arrayBuffer));return result2;}function cloneDataView(dataView,isDeep){var buffer=isDeep?cloneArrayBuffer(dataView.buffer):dataView.buffer;return new dataView.constructor(buffer,dataView.byteOffset,dataView.byteLength);}function cloneRegExp(regexp){var result2=new regexp.constructor(regexp.source,reFlags.exec(regexp));result2.lastIndex=regexp.lastIndex;return result2;}function cloneSymbol(symbol){return symbolValueOf2?Object2(symbolValueOf2.call(symbol)):{};}function cloneTypedArray(typedArray,isDeep){var buffer=isDeep?cloneArrayBuffer(typedArray.buffer):typedArray.buffer;return new typedArray.constructor(buffer,typedArray.byteOffset,typedArray.length);}function compareAscending(value,other){if(value!==other){var valIsDefined=value!==undefined$1,valIsNull=value===null,valIsReflexive=value===value,valIsSymbol=isSymbol2(value);var othIsDefined=other!==undefined$1,othIsNull=other===null,othIsReflexive=other===other,othIsSymbol=isSymbol2(other);if(!othIsNull&&!othIsSymbol&&!valIsSymbol&&value>other||valIsSymbol&&othIsDefined&&othIsReflexive&&!othIsNull&&!othIsSymbol||valIsNull&&othIsDefined&&othIsReflexive||!valIsDefined&&othIsReflexive||!valIsReflexive){return 1;}if(!valIsNull&&!valIsSymbol&&!othIsSymbol&&value<other||othIsSymbol&&valIsDefined&&valIsReflexive&&!valIsNull&&!valIsSymbol||othIsNull&&valIsDefined&&valIsReflexive||!othIsDefined&&valIsReflexive||!othIsReflexive){return-1;}}return 0;}function compareMultiple(object,other,orders){var index2=-1,objCriteria=object.criteria,othCriteria=other.criteria,length2=objCriteria.length,ordersLength=orders.length;while(++index2<length2){var result2=compareAscending(objCriteria[index2],othCriteria[index2]);if(result2){if(index2>=ordersLength){return result2;}var order2=orders[index2];return result2*(order2=="desc"?-1:1);}}return object.index-other.index;}function composeArgs(args,partials,holders,isCurried){var argsIndex=-1,argsLength=args.length,holdersLength=holders.length,leftIndex=-1,leftLength=partials.length,rangeLength=nativeMax2(argsLength-holdersLength,0),result2=Array2(leftLength+rangeLength),isUncurried=!isCurried;while(++leftIndex<leftLength){result2[leftIndex]=partials[leftIndex];}while(++argsIndex<holdersLength){if(isUncurried||argsIndex<argsLength){result2[holders[argsIndex]]=args[argsIndex];}}while(rangeLength--){result2[leftIndex++]=args[argsIndex++];}return result2;}function composeArgsRight(args,partials,holders,isCurried){var argsIndex=-1,argsLength=args.length,holdersIndex=-1,holdersLength=holders.length,rightIndex=-1,rightLength=partials.length,rangeLength=nativeMax2(argsLength-holdersLength,0),result2=Array2(rangeLength+rightLength),isUncurried=!isCurried;while(++argsIndex<rangeLength){result2[argsIndex]=args[argsIndex];}var offset2=argsIndex;while(++rightIndex<rightLength){result2[offset2+rightIndex]=partials[rightIndex];}while(++holdersIndex<holdersLength){if(isUncurried||argsIndex<argsLength){result2[offset2+holders[holdersIndex]]=args[argsIndex++];}}return result2;}function copyArray(source,array){var index2=-1,length2=source.length;array||(array=Array2(length2));while(++index2<length2){array[index2]=source[index2];}return array;}function copyObject(source,props,object,customizer){var isNew=!object;object||(object={});var index2=-1,length2=props.length;while(++index2<length2){var key=props[index2];var newValue=customizer?customizer(object[key],source[key],key,object,source):undefined$1;if(newValue===undefined$1){newValue=source[key];}if(isNew){baseAssignValue(object,key,newValue);}else{assignValue(object,key,newValue);}}return object;}function copySymbols(source,object){return copyObject(source,getSymbols2(source),object);}function copySymbolsIn(source,object){return copyObject(source,getSymbolsIn(source),object);}function createAggregator(setter,initializer){return function(collection,iteratee2){var func=isArray2(collection)?arrayAggregator:baseAggregator,accumulator=initializer?initializer():{};return func(collection,setter,getIteratee(iteratee2,2),accumulator);};}function createAssigner(assigner){return baseRest(function(object,sources){var index2=-1,length2=sources.length,customizer=length2>1?sources[length2-1]:undefined$1,guard=length2>2?sources[2]:undefined$1;customizer=assigner.length>3&&typeof customizer=="function"?(length2--,customizer):undefined$1;if(guard&&isIterateeCall(sources[0],sources[1],guard)){customizer=length2<3?undefined$1:customizer;length2=1;}object=Object2(object);while(++index2<length2){var source=sources[index2];if(source){assigner(object,source,index2,customizer);}}return object;});}function createBaseEach2(eachFunc,fromRight){return function(collection,iteratee2){if(collection==null){return collection;}if(!isArrayLike2(collection)){return eachFunc(collection,iteratee2);}var length2=collection.length,index2=fromRight?length2:-1,iterable=Object2(collection);while(fromRight?index2--:++index2<length2){if(iteratee2(iterable[index2],index2,iterable)===false){break;}}return collection;};}function createBaseFor2(fromRight){return function(object,iteratee2,keysFunc){var index2=-1,iterable=Object2(object),props=keysFunc(object),length2=props.length;while(length2--){var key=props[fromRight?length2:++index2];if(iteratee2(iterable[key],key,iterable)===false){break;}}return object;};}function createBind(func,bitmask,thisArg){var isBind=bitmask&WRAP_BIND_FLAG,Ctor=createCtor(func);function wrapper2(){var fn3=this&&this!==root2&&this instanceof wrapper2?Ctor:func;return fn3.apply(isBind?thisArg:this,arguments);}return wrapper2;}function createCaseFirst(methodName){return function(string){string=toString2(string);var strSymbols=hasUnicode(string)?stringToArray(string):undefined$1;var chr=strSymbols?strSymbols[0]:string.charAt(0);var trailing=strSymbols?castSlice(strSymbols,1).join(""):string.slice(1);return chr[methodName]()+trailing;};}function createCompounder(callback){return function(string){return arrayReduce(words(deburr(string).replace(reApos,"")),callback,"");};}function createCtor(Ctor){return function(){var args=arguments;switch(args.length){case 0:return new Ctor();case 1:return new Ctor(args[0]);case 2:return new Ctor(args[0],args[1]);case 3:return new Ctor(args[0],args[1],args[2]);case 4:return new Ctor(args[0],args[1],args[2],args[3]);case 5:return new Ctor(args[0],args[1],args[2],args[3],args[4]);case 6:return new Ctor(args[0],args[1],args[2],args[3],args[4],args[5]);case 7:return new Ctor(args[0],args[1],args[2],args[3],args[4],args[5],args[6]);}var thisBinding=baseCreate(Ctor.prototype),result2=Ctor.apply(thisBinding,args);return isObject2(result2)?result2:thisBinding;};}function createCurry(func,bitmask,arity){var Ctor=createCtor(func);function wrapper2(){var length2=arguments.length,args=Array2(length2),index2=length2,placeholder=getHolder(wrapper2);while(index2--){args[index2]=arguments[index2];}var holders=length2<3&&args[0]!==placeholder&&args[length2-1]!==placeholder?[]:replaceHolders(args,placeholder);length2-=holders.length;if(length2<arity){return createRecurry(func,bitmask,createHybrid,wrapper2.placeholder,undefined$1,args,holders,undefined$1,undefined$1,arity-length2);}var fn3=this&&this!==root2&&this instanceof wrapper2?Ctor:func;return apply(fn3,this,args);}return wrapper2;}function createFind2(findIndexFunc){return function(collection,predicate,fromIndex){var iterable=Object2(collection);if(!isArrayLike2(collection)){var iteratee2=getIteratee(predicate,3);collection=keys2(collection);predicate=function predicate(key){return iteratee2(iterable[key],key,iterable);};}var index2=findIndexFunc(collection,predicate,fromIndex);return index2>-1?iterable[iteratee2?collection[index2]:index2]:undefined$1;};}function createFlow(fromRight){return flatRest(function(funcs){var length2=funcs.length,index2=length2,prereq=LodashWrapper.prototype.thru;if(fromRight){funcs.reverse();}while(index2--){var func=funcs[index2];if(typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}if(prereq&&!wrapper2&&getFuncName(func)=="wrapper"){var wrapper2=new LodashWrapper([],true);}}index2=wrapper2?index2:length2;while(++index2<length2){func=funcs[index2];var funcName=getFuncName(func),data=funcName=="wrapper"?getData(func):undefined$1;if(data&&isLaziable(data[0])&&data[1]==(WRAP_ARY_FLAG|WRAP_CURRY_FLAG|WRAP_PARTIAL_FLAG|WRAP_REARG_FLAG)&&!data[4].length&&data[9]==1){wrapper2=wrapper2[getFuncName(data[0])].apply(wrapper2,data[3]);}else{wrapper2=func.length==1&&isLaziable(func)?wrapper2[funcName]():wrapper2.thru(func);}}return function(){var args=arguments,value=args[0];if(wrapper2&&args.length==1&&isArray2(value)){return wrapper2.plant(value).value();}var index3=0,result2=length2?funcs[index3].apply(this,args):value;while(++index3<length2){result2=funcs[index3].call(this,result2);}return result2;};});}function createHybrid(func,bitmask,thisArg,partials,holders,partialsRight,holdersRight,argPos,ary2,arity){var isAry=bitmask&WRAP_ARY_FLAG,isBind=bitmask&WRAP_BIND_FLAG,isBindKey=bitmask&WRAP_BIND_KEY_FLAG,isCurried=bitmask&(WRAP_CURRY_FLAG|WRAP_CURRY_RIGHT_FLAG),isFlip=bitmask&WRAP_FLIP_FLAG,Ctor=isBindKey?undefined$1:createCtor(func);function wrapper2(){var length2=arguments.length,args=Array2(length2),index2=length2;while(index2--){args[index2]=arguments[index2];}if(isCurried){var placeholder=getHolder(wrapper2),holdersCount=countHolders(args,placeholder);}if(partials){args=composeArgs(args,partials,holders,isCurried);}if(partialsRight){args=composeArgsRight(args,partialsRight,holdersRight,isCurried);}length2-=holdersCount;if(isCurried&&length2<arity){var newHolders=replaceHolders(args,placeholder);return createRecurry(func,bitmask,createHybrid,wrapper2.placeholder,thisArg,args,newHolders,argPos,ary2,arity-length2);}var thisBinding=isBind?thisArg:this,fn3=isBindKey?thisBinding[func]:func;length2=args.length;if(argPos){args=reorder(args,argPos);}else if(isFlip&&length2>1){args.reverse();}if(isAry&&ary2<length2){args.length=ary2;}if(this&&this!==root2&&this instanceof wrapper2){fn3=Ctor||createCtor(fn3);}return fn3.apply(thisBinding,args);}return wrapper2;}function createInverter(setter,toIteratee){return function(object,iteratee2){return baseInverter(object,setter,toIteratee(iteratee2),{});};}function createMathOperation(operator,defaultValue){return function(value,other){var result2;if(value===undefined$1&&other===undefined$1){return defaultValue;}if(value!==undefined$1){result2=value;}if(other!==undefined$1){if(result2===undefined$1){return other;}if(typeof value=="string"||typeof other=="string"){value=baseToString2(value);other=baseToString2(other);}else{value=baseToNumber(value);other=baseToNumber(other);}result2=operator(value,other);}return result2;};}function createOver(arrayFunc){return flatRest(function(iteratees){iteratees=arrayMap2(iteratees,baseUnary2(getIteratee()));return baseRest(function(args){var thisArg=this;return arrayFunc(iteratees,function(iteratee2){return apply(iteratee2,thisArg,args);});});});}function createPadding(length2,chars2){chars2=chars2===undefined$1?" ":baseToString2(chars2);var charsLength=chars2.length;if(charsLength<2){return charsLength?baseRepeat(chars2,length2):chars2;}var result2=baseRepeat(chars2,nativeCeil(length2/stringSize(chars2)));return hasUnicode(chars2)?castSlice(stringToArray(result2),0,length2).join(""):result2.slice(0,length2);}function createPartial(func,bitmask,thisArg,partials){var isBind=bitmask&WRAP_BIND_FLAG,Ctor=createCtor(func);function wrapper2(){var argsIndex=-1,argsLength=arguments.length,leftIndex=-1,leftLength=partials.length,args=Array2(leftLength+argsLength),fn3=this&&this!==root2&&this instanceof wrapper2?Ctor:func;while(++leftIndex<leftLength){args[leftIndex]=partials[leftIndex];}while(argsLength--){args[leftIndex++]=arguments[++argsIndex];}return apply(fn3,isBind?thisArg:this,args);}return wrapper2;}function createRange(fromRight){return function(start2,end2,step){if(step&&typeof step!="number"&&isIterateeCall(start2,end2,step)){end2=step=undefined$1;}start2=toFinite2(start2);if(end2===undefined$1){end2=start2;start2=0;}else{end2=toFinite2(end2);}step=step===undefined$1?start2<end2?1:-1:toFinite2(step);return baseRange(start2,end2,step,fromRight);};}function createRelationalOperation(operator){return function(value,other){if(!(typeof value=="string"&&typeof other=="string")){value=toNumber2(value);other=toNumber2(other);}return operator(value,other);};}function createRecurry(func,bitmask,wrapFunc,placeholder,thisArg,partials,holders,argPos,ary2,arity){var isCurry=bitmask&WRAP_CURRY_FLAG,newHolders=isCurry?holders:undefined$1,newHoldersRight=isCurry?undefined$1:holders,newPartials=isCurry?partials:undefined$1,newPartialsRight=isCurry?undefined$1:partials;bitmask|=isCurry?WRAP_PARTIAL_FLAG:WRAP_PARTIAL_RIGHT_FLAG;bitmask&=~(isCurry?WRAP_PARTIAL_RIGHT_FLAG:WRAP_PARTIAL_FLAG);if(!(bitmask&WRAP_CURRY_BOUND_FLAG)){bitmask&=-4;}var newData=[func,bitmask,thisArg,newPartials,newHolders,newPartialsRight,newHoldersRight,argPos,ary2,arity];var result2=wrapFunc.apply(undefined$1,newData);if(isLaziable(func)){setData(result2,newData);}result2.placeholder=placeholder;return setWrapToString(result2,func,bitmask);}function createRound(methodName){var func=Math2[methodName];return function(number,precision){number=toNumber2(number);precision=precision==null?0:nativeMin(toInteger2(precision),292);if(precision&&nativeIsFinite(number)){var pair=(toString2(number)+"e").split("e"),value=func(pair[0]+"e"+(+pair[1]+precision));pair=(toString2(value)+"e").split("e");return+(pair[0]+"e"+(+pair[1]-precision));}return func(number);};}var createSet=!(Set2&&1/setToArray2(new Set2([,-0]))[1]==INFINITY2)?noop4:function(values3){return new Set2(values3);};function createToPairs(keysFunc){return function(object){var tag=getTag2(object);if(tag==mapTag2){return mapToArray2(object);}if(tag==setTag2){return setToPairs(object);}return baseToPairs(object,keysFunc(object));};}function createWrap(func,bitmask,thisArg,partials,holders,argPos,ary2,arity){var isBindKey=bitmask&WRAP_BIND_KEY_FLAG;if(!isBindKey&&typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}var length2=partials?partials.length:0;if(!length2){bitmask&=-97;partials=holders=undefined$1;}ary2=ary2===undefined$1?ary2:nativeMax2(toInteger2(ary2),0);arity=arity===undefined$1?arity:toInteger2(arity);length2-=holders?holders.length:0;if(bitmask&WRAP_PARTIAL_RIGHT_FLAG){var partialsRight=partials,holdersRight=holders;partials=holders=undefined$1;}var data=isBindKey?undefined$1:getData(func);var newData=[func,bitmask,thisArg,partials,holders,partialsRight,holdersRight,argPos,ary2,arity];if(data){mergeData(newData,data);}func=newData[0];bitmask=newData[1];thisArg=newData[2];partials=newData[3];holders=newData[4];arity=newData[9]=newData[9]===undefined$1?isBindKey?0:func.length:nativeMax2(newData[9]-length2,0);if(!arity&&bitmask&(WRAP_CURRY_FLAG|WRAP_CURRY_RIGHT_FLAG)){bitmask&=-25;}if(!bitmask||bitmask==WRAP_BIND_FLAG){var result2=createBind(func,bitmask,thisArg);}else if(bitmask==WRAP_CURRY_FLAG||bitmask==WRAP_CURRY_RIGHT_FLAG){result2=createCurry(func,bitmask,arity);}else if((bitmask==WRAP_PARTIAL_FLAG||bitmask==(WRAP_BIND_FLAG|WRAP_PARTIAL_FLAG))&&!holders.length){result2=createPartial(func,bitmask,thisArg,partials);}else{result2=createHybrid.apply(undefined$1,newData);}var setter=data?baseSetData:setData;return setWrapToString(setter(result2,newData),func,bitmask);}function customDefaultsAssignIn(objValue,srcValue,key,object){if(objValue===undefined$1||eq2(objValue,objectProto2[key])&&!hasOwnProperty2.call(object,key)){return srcValue;}return objValue;}function customDefaultsMerge(objValue,srcValue,key,object,source,stack){if(isObject2(objValue)&&isObject2(srcValue)){stack.set(srcValue,objValue);baseMerge(objValue,srcValue,undefined$1,customDefaultsMerge,stack);stack["delete"](srcValue);}return objValue;}function customOmitClone(value){return isPlainObject2(value)?undefined$1:value;}function equalArrays2(array,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG2,arrLength=array.length,othLength=other.length;if(arrLength!=othLength&&!(isPartial&&othLength>arrLength)){return false;}var arrStacked=stack.get(array);var othStacked=stack.get(other);if(arrStacked&&othStacked){return arrStacked==other&&othStacked==array;}var index2=-1,result2=true,seen=bitmask&COMPARE_UNORDERED_FLAG2?new SetCache2():undefined$1;stack.set(array,other);stack.set(other,array);while(++index2<arrLength){var arrValue=array[index2],othValue=other[index2];if(customizer){var compared=isPartial?customizer(othValue,arrValue,index2,other,array,stack):customizer(arrValue,othValue,index2,array,other,stack);}if(compared!==undefined$1){if(compared){continue;}result2=false;break;}if(seen){if(!arraySome2(other,function(othValue2,othIndex){if(!cacheHas2(seen,othIndex)&&(arrValue===othValue2||equalFunc(arrValue,othValue2,bitmask,customizer,stack))){return seen.push(othIndex);}})){result2=false;break;}}else if(!(arrValue===othValue||equalFunc(arrValue,othValue,bitmask,customizer,stack))){result2=false;break;}}stack["delete"](array);stack["delete"](other);return result2;}function equalByTag2(object,other,tag,bitmask,customizer,equalFunc,stack){switch(tag){case dataViewTag2:if(object.byteLength!=other.byteLength||object.byteOffset!=other.byteOffset){return false;}object=object.buffer;other=other.buffer;case arrayBufferTag2:if(object.byteLength!=other.byteLength||!equalFunc(new Uint8Array3(object),new Uint8Array3(other))){return false;}return true;case boolTag2:case dateTag2:case numberTag2:return eq2(+object,+other);case errorTag2:return object.name==other.name&&object.message==other.message;case regexpTag2:case stringTag2:return object==other+"";case mapTag2:var convert=mapToArray2;case setTag2:var isPartial=bitmask&COMPARE_PARTIAL_FLAG2;convert||(convert=setToArray2);if(object.size!=other.size&&!isPartial){return false;}var stacked=stack.get(object);if(stacked){return stacked==other;}bitmask|=COMPARE_UNORDERED_FLAG2;stack.set(object,other);var result2=equalArrays2(convert(object),convert(other),bitmask,customizer,equalFunc,stack);stack["delete"](object);return result2;case symbolTag2:if(symbolValueOf2){return symbolValueOf2.call(object)==symbolValueOf2.call(other);}}return false;}function equalObjects2(object,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG2,objProps=getAllKeys2(object),objLength=objProps.length,othProps=getAllKeys2(other),othLength=othProps.length;if(objLength!=othLength&&!isPartial){return false;}var index2=objLength;while(index2--){var key=objProps[index2];if(!(isPartial?key in other:hasOwnProperty2.call(other,key))){return false;}}var objStacked=stack.get(object);var othStacked=stack.get(other);if(objStacked&&othStacked){return objStacked==other&&othStacked==object;}var result2=true;stack.set(object,other);stack.set(other,object);var skipCtor=isPartial;while(++index2<objLength){key=objProps[index2];var objValue=object[key],othValue=other[key];if(customizer){var compared=isPartial?customizer(othValue,objValue,key,other,object,stack):customizer(objValue,othValue,key,object,other,stack);}if(!(compared===undefined$1?objValue===othValue||equalFunc(objValue,othValue,bitmask,customizer,stack):compared)){result2=false;break;}skipCtor||(skipCtor=key=="constructor");}if(result2&&!skipCtor){var objCtor=object.constructor,othCtor=other.constructor;if(objCtor!=othCtor&&"constructor"in object&&"constructor"in other&&!(typeof objCtor=="function"&&objCtor instanceof objCtor&&typeof othCtor=="function"&&othCtor instanceof othCtor)){result2=false;}}stack["delete"](object);stack["delete"](other);return result2;}function flatRest(func){return setToString(overRest(func,undefined$1,flatten),func+"");}function getAllKeys2(object){return baseGetAllKeys2(object,keys2,getSymbols2);}function getAllKeysIn(object){return baseGetAllKeys2(object,keysIn,getSymbolsIn);}var getData=!metaMap?noop4:function(func){return metaMap.get(func);};function getFuncName(func){var result2=func.name+"",array=realNames[result2],length2=hasOwnProperty2.call(realNames,result2)?array.length:0;while(length2--){var data=array[length2],otherFunc=data.func;if(otherFunc==null||otherFunc==func){return data.name;}}return result2;}function getHolder(func){var object=hasOwnProperty2.call(lodash2,"placeholder")?lodash2:func;return object.placeholder;}function getIteratee(){var result2=lodash2.iteratee||iteratee;result2=result2===iteratee?baseIteratee2:result2;return arguments.length?result2(arguments[0],arguments[1]):result2;}function getMapData2(map3,key){var data=map3.__data__;return isKeyable2(key)?data[typeof key=="string"?"string":"hash"]:data.map;}function getMatchData2(object){var result2=keys2(object),length2=result2.length;while(length2--){var key=result2[length2],value=object[key];result2[length2]=[key,value,isStrictComparable2(value)];}return result2;}function getNative2(object,key){var value=getValue2(object,key);return baseIsNative2(value)?value:undefined$1;}function getRawTag2(value){var isOwn=hasOwnProperty2.call(value,symToStringTag2),tag=value[symToStringTag2];try{value[symToStringTag2]=undefined$1;var unmasked=true;}catch(e){}var result2=nativeObjectToString2.call(value);if(unmasked){if(isOwn){value[symToStringTag2]=tag;}else{delete value[symToStringTag2];}}return result2;}var getSymbols2=!nativeGetSymbols2?stubArray2:function(object){if(object==null){return[];}object=Object2(object);return arrayFilter2(nativeGetSymbols2(object),function(symbol){return propertyIsEnumerable2.call(object,symbol);});};var getSymbolsIn=!nativeGetSymbols2?stubArray2:function(object){var result2=[];while(object){arrayPush2(result2,getSymbols2(object));object=getPrototype(object);}return result2;};var getTag2=baseGetTag2;if(DataView2&&getTag2(new DataView2(new ArrayBuffer(1)))!=dataViewTag2||Map2&&getTag2(new Map2())!=mapTag2||Promise2&&getTag2(Promise2.resolve())!=promiseTag2||Set2&&getTag2(new Set2())!=setTag2||WeakMap2&&getTag2(new WeakMap2())!=weakMapTag2){getTag2=function getTag2(value){var result2=baseGetTag2(value),Ctor=result2==objectTag2?value.constructor:undefined$1,ctorString=Ctor?toSource2(Ctor):"";if(ctorString){switch(ctorString){case dataViewCtorString2:return dataViewTag2;case mapCtorString2:return mapTag2;case promiseCtorString2:return promiseTag2;case setCtorString2:return setTag2;case weakMapCtorString2:return weakMapTag2;}}return result2;};}function getView(start2,end2,transforms){var index2=-1,length2=transforms.length;while(++index2<length2){var data=transforms[index2],size3=data.size;switch(data.type){case"drop":start2+=size3;break;case"dropRight":end2-=size3;break;case"take":end2=nativeMin(end2,start2+size3);break;case"takeRight":start2=nativeMax2(start2,end2-size3);break;}}return{"start":start2,"end":end2};}function getWrapDetails(source){var match2=source.match(reWrapDetails);return match2?match2[1].split(reSplitDetails):[];}function hasPath2(object,path,hasFunc){path=castPath2(path,object);var index2=-1,length2=path.length,result2=false;while(++index2<length2){var key=toKey2(path[index2]);if(!(result2=object!=null&&hasFunc(object,key))){break;}object=object[key];}if(result2||++index2!=length2){return result2;}length2=object==null?0:object.length;return!!length2&&isLength2(length2)&&isIndex2(key,length2)&&(isArray2(object)||isArguments2(object));}function initCloneArray(array){var length2=array.length,result2=new array.constructor(length2);if(length2&&typeof array[0]=="string"&&hasOwnProperty2.call(array,"index")){result2.index=array.index;result2.input=array.input;}return result2;}function initCloneObject(object){return typeof object.constructor=="function"&&!isPrototype2(object)?baseCreate(getPrototype(object)):{};}function initCloneByTag(object,tag,isDeep){var Ctor=object.constructor;switch(tag){case arrayBufferTag2:return cloneArrayBuffer(object);case boolTag2:case dateTag2:return new Ctor(+object);case dataViewTag2:return cloneDataView(object,isDeep);case float32Tag2:case float64Tag2:case int8Tag2:case int16Tag2:case int32Tag2:case uint8Tag2:case uint8ClampedTag2:case uint16Tag2:case uint32Tag2:return cloneTypedArray(object,isDeep);case mapTag2:return new Ctor();case numberTag2:case stringTag2:return new Ctor(object);case regexpTag2:return cloneRegExp(object);case setTag2:return new Ctor();case symbolTag2:return cloneSymbol(object);}}function insertWrapDetails(source,details){var length2=details.length;if(!length2){return source;}var lastIndex=length2-1;details[lastIndex]=(length2>1?"& ":"")+details[lastIndex];details=details.join(length2>2?", ":" ");return source.replace(reWrapComment,"{\n/* [wrapped with "+details+"] */\n");}function isFlattenable(value){return isArray2(value)||isArguments2(value)||!!(spreadableSymbol&&value&&value[spreadableSymbol]);}function isIndex2(value,length2){var type=_typeof2(value);length2=length2==null?MAX_SAFE_INTEGER2:length2;return!!length2&&(type=="number"||type!="symbol"&&reIsUint2.test(value))&&value>-1&&value%1==0&&value<length2;}function isIterateeCall(value,index2,object){if(!isObject2(object)){return false;}var type=_typeof2(index2);if(type=="number"?isArrayLike2(object)&&isIndex2(index2,object.length):type=="string"&&index2 in object){return eq2(object[index2],value);}return false;}function isKey2(value,object){if(isArray2(value)){return false;}var type=_typeof2(value);if(type=="number"||type=="symbol"||type=="boolean"||value==null||isSymbol2(value)){return true;}return reIsPlainProp2.test(value)||!reIsDeepProp2.test(value)||object!=null&&value in Object2(object);}function isKeyable2(value){var type=_typeof2(value);return type=="string"||type=="number"||type=="symbol"||type=="boolean"?value!=="__proto__":value===null;}function isLaziable(func){var funcName=getFuncName(func),other=lodash2[funcName];if(typeof other!="function"||!(funcName in LazyWrapper.prototype)){return false;}if(func===other){return true;}var data=getData(other);return!!data&&func===data[0];}function isMasked2(func){return!!maskSrcKey2&&maskSrcKey2 in func;}var isMaskable=coreJsData2?isFunction2:stubFalse2;function isPrototype2(value){var Ctor=value&&value.constructor,proto=typeof Ctor=="function"&&Ctor.prototype||objectProto2;return value===proto;}function isStrictComparable2(value){return value===value&&!isObject2(value);}function matchesStrictComparable2(key,srcValue){return function(object){if(object==null){return false;}return object[key]===srcValue&&(srcValue!==undefined$1||key in Object2(object));};}function memoizeCapped2(func){var result2=memoize2(func,function(key){if(cache.size===MAX_MEMOIZE_SIZE2){cache.clear();}return key;});var cache=result2.cache;return result2;}function mergeData(data,source){var bitmask=data[1],srcBitmask=source[1],newBitmask=bitmask|srcBitmask,isCommon=newBitmask<(WRAP_BIND_FLAG|WRAP_BIND_KEY_FLAG|WRAP_ARY_FLAG);var isCombo=srcBitmask==WRAP_ARY_FLAG&&bitmask==WRAP_CURRY_FLAG||srcBitmask==WRAP_ARY_FLAG&&bitmask==WRAP_REARG_FLAG&&data[7].length<=source[8]||srcBitmask==(WRAP_ARY_FLAG|WRAP_REARG_FLAG)&&source[7].length<=source[8]&&bitmask==WRAP_CURRY_FLAG;if(!(isCommon||isCombo)){return data;}if(srcBitmask&WRAP_BIND_FLAG){data[2]=source[2];newBitmask|=bitmask&WRAP_BIND_FLAG?0:WRAP_CURRY_BOUND_FLAG;}var value=source[3];if(value){var partials=data[3];data[3]=partials?composeArgs(partials,value,source[4]):value;data[4]=partials?replaceHolders(data[3],PLACEHOLDER):source[4];}value=source[5];if(value){partials=data[5];data[5]=partials?composeArgsRight(partials,value,source[6]):value;data[6]=partials?replaceHolders(data[5],PLACEHOLDER):source[6];}value=source[7];if(value){data[7]=value;}if(srcBitmask&WRAP_ARY_FLAG){data[8]=data[8]==null?source[8]:nativeMin(data[8],source[8]);}if(data[9]==null){data[9]=source[9];}data[0]=source[0];data[1]=newBitmask;return data;}function nativeKeysIn(object){var result2=[];if(object!=null){for(var key in Object2(object)){result2.push(key);}}return result2;}function objectToString2(value){return nativeObjectToString2.call(value);}function overRest(func,start2,transform2){start2=nativeMax2(start2===undefined$1?func.length-1:start2,0);return function(){var args=arguments,index2=-1,length2=nativeMax2(args.length-start2,0),array=Array2(length2);while(++index2<length2){array[index2]=args[start2+index2];}index2=-1;var otherArgs=Array2(start2+1);while(++index2<start2){otherArgs[index2]=args[index2];}otherArgs[start2]=transform2(array);return apply(func,this,otherArgs);};}function parent(object,path){return path.length<2?object:baseGet2(object,baseSlice(path,0,-1));}function reorder(array,indexes){var arrLength=array.length,length2=nativeMin(indexes.length,arrLength),oldArray=copyArray(array);while(length2--){var index2=indexes[length2];array[length2]=isIndex2(index2,arrLength)?oldArray[index2]:undefined$1;}return array;}function safeGet(object,key){if(key==="constructor"&&typeof object[key]==="function"){return;}if(key=="__proto__"){return;}return object[key];}var setData=shortOut(baseSetData);var setTimeout2=ctxSetTimeout||function(func,wait){return root2.setTimeout(func,wait);};var setToString=shortOut(baseSetToString);function setWrapToString(wrapper2,reference2,bitmask){var source=reference2+"";return setToString(wrapper2,insertWrapDetails(source,updateWrapDetails(getWrapDetails(source),bitmask)));}function shortOut(func){var count2=0,lastCalled=0;return function(){var stamp=nativeNow(),remaining=HOT_SPAN-(stamp-lastCalled);lastCalled=stamp;if(remaining>0){if(++count2>=HOT_COUNT){return arguments[0];}}else{count2=0;}return func.apply(undefined$1,arguments);};}function shuffleSelf(array,size3){var index2=-1,length2=array.length,lastIndex=length2-1;size3=size3===undefined$1?length2:size3;while(++index2<size3){var rand=baseRandom(index2,lastIndex),value=array[rand];array[rand]=array[index2];array[index2]=value;}array.length=size3;return array;}var stringToPath2=memoizeCapped2(function(string){var result2=[];if(string.charCodeAt(0)===46){result2.push("");}string.replace(rePropName2,function(match2,number,quote,subString){result2.push(quote?subString.replace(reEscapeChar2,"$1"):number||match2);});return result2;});function toKey2(value){if(typeof value=="string"||isSymbol2(value)){return value;}var result2=value+"";return result2=="0"&&1/value==-INFINITY2?"-0":result2;}function toSource2(func){if(func!=null){try{return funcToString2.call(func);}catch(e){}try{return func+"";}catch(e){}}return"";}function updateWrapDetails(details,bitmask){arrayEach(wrapFlags,function(pair){var value="_."+pair[0];if(bitmask&pair[1]&&!arrayIncludes2(details,value)){details.push(value);}});return details.sort();}function wrapperClone(wrapper2){if(wrapper2 instanceof LazyWrapper){return wrapper2.clone();}var result2=new LodashWrapper(wrapper2.__wrapped__,wrapper2.__chain__);result2.__actions__=copyArray(wrapper2.__actions__);result2.__index__=wrapper2.__index__;result2.__values__=wrapper2.__values__;return result2;}function chunk(array,size3,guard){if(guard?isIterateeCall(array,size3,guard):size3===undefined$1){size3=1;}else{size3=nativeMax2(toInteger2(size3),0);}var length2=array==null?0:array.length;if(!length2||size3<1){return[];}var index2=0,resIndex=0,result2=Array2(nativeCeil(length2/size3));while(index2<length2){result2[resIndex++]=baseSlice(array,index2,index2+=size3);}return result2;}function compact(array){var index2=-1,length2=array==null?0:array.length,resIndex=0,result2=[];while(++index2<length2){var value=array[index2];if(value){result2[resIndex++]=value;}}return result2;}function concat(){var length2=arguments.length;if(!length2){return[];}var args=Array2(length2-1),array=arguments[0],index2=length2;while(index2--){args[index2-1]=arguments[index2];}return arrayPush2(isArray2(array)?copyArray(array):[array],baseFlatten(args,1));}var difference=baseRest(function(array,values3){return isArrayLikeObject(array)?baseDifference(array,baseFlatten(values3,1,isArrayLikeObject,true)):[];});var differenceBy=baseRest(function(array,values3){var iteratee2=last(values3);if(isArrayLikeObject(iteratee2)){iteratee2=undefined$1;}return isArrayLikeObject(array)?baseDifference(array,baseFlatten(values3,1,isArrayLikeObject,true),getIteratee(iteratee2,2)):[];});var differenceWith=baseRest(function(array,values3){var comparator=last(values3);if(isArrayLikeObject(comparator)){comparator=undefined$1;}return isArrayLikeObject(array)?baseDifference(array,baseFlatten(values3,1,isArrayLikeObject,true),undefined$1,comparator):[];});function drop(array,n,guard){var length2=array==null?0:array.length;if(!length2){return[];}n=guard||n===undefined$1?1:toInteger2(n);return baseSlice(array,n<0?0:n,length2);}function dropRight(array,n,guard){var length2=array==null?0:array.length;if(!length2){return[];}n=guard||n===undefined$1?1:toInteger2(n);n=length2-n;return baseSlice(array,0,n<0?0:n);}function dropRightWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3),true,true):[];}function dropWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3),true):[];}function fill(array,value,start2,end2){var length2=array==null?0:array.length;if(!length2){return[];}if(start2&&typeof start2!="number"&&isIterateeCall(array,value,start2)){start2=0;end2=length2;}return baseFill(array,value,start2,end2);}function findIndex2(array,predicate,fromIndex){var length2=array==null?0:array.length;if(!length2){return-1;}var index2=fromIndex==null?0:toInteger2(fromIndex);if(index2<0){index2=nativeMax2(length2+index2,0);}return baseFindIndex2(array,getIteratee(predicate,3),index2);}function findLastIndex(array,predicate,fromIndex){var length2=array==null?0:array.length;if(!length2){return-1;}var index2=length2-1;if(fromIndex!==undefined$1){index2=toInteger2(fromIndex);index2=fromIndex<0?nativeMax2(length2+index2,0):nativeMin(index2,length2-1);}return baseFindIndex2(array,getIteratee(predicate,3),index2,true);}function flatten(array){var length2=array==null?0:array.length;return length2?baseFlatten(array,1):[];}function flattenDeep(array){var length2=array==null?0:array.length;return length2?baseFlatten(array,INFINITY2):[];}function flattenDepth(array,depth){var length2=array==null?0:array.length;if(!length2){return[];}depth=depth===undefined$1?1:toInteger2(depth);return baseFlatten(array,depth);}function fromPairs(pairs){var index2=-1,length2=pairs==null?0:pairs.length,result2={};while(++index2<length2){var pair=pairs[index2];result2[pair[0]]=pair[1];}return result2;}function head2(array){return array&&array.length?array[0]:undefined$1;}function indexOf(array,value,fromIndex){var length2=array==null?0:array.length;if(!length2){return-1;}var index2=fromIndex==null?0:toInteger2(fromIndex);if(index2<0){index2=nativeMax2(length2+index2,0);}return baseIndexOf(array,value,index2);}function initial(array){var length2=array==null?0:array.length;return length2?baseSlice(array,0,-1):[];}var intersection=baseRest(function(arrays){var mapped=arrayMap2(arrays,castArrayLikeObject);return mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped):[];});var intersectionBy=baseRest(function(arrays){var iteratee2=last(arrays),mapped=arrayMap2(arrays,castArrayLikeObject);if(iteratee2===last(mapped)){iteratee2=undefined$1;}else{mapped.pop();}return mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped,getIteratee(iteratee2,2)):[];});var intersectionWith=baseRest(function(arrays){var comparator=last(arrays),mapped=arrayMap2(arrays,castArrayLikeObject);comparator=typeof comparator=="function"?comparator:undefined$1;if(comparator){mapped.pop();}return mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped,undefined$1,comparator):[];});function join(array,separator){return array==null?"":nativeJoin.call(array,separator);}function last(array){var length2=array==null?0:array.length;return length2?array[length2-1]:undefined$1;}function lastIndexOf(array,value,fromIndex){var length2=array==null?0:array.length;if(!length2){return-1;}var index2=length2;if(fromIndex!==undefined$1){index2=toInteger2(fromIndex);index2=index2<0?nativeMax2(length2+index2,0):nativeMin(index2,length2-1);}return value===value?strictLastIndexOf(array,value,index2):baseFindIndex2(array,baseIsNaN,index2,true);}function nth(array,n){return array&&array.length?baseNth(array,toInteger2(n)):undefined$1;}var pull=baseRest(pullAll);function pullAll(array,values3){return array&&array.length&&values3&&values3.length?basePullAll(array,values3):array;}function pullAllBy(array,values3,iteratee2){return array&&array.length&&values3&&values3.length?basePullAll(array,values3,getIteratee(iteratee2,2)):array;}function pullAllWith(array,values3,comparator){return array&&array.length&&values3&&values3.length?basePullAll(array,values3,undefined$1,comparator):array;}var pullAt=flatRest(function(array,indexes){var length2=array==null?0:array.length,result2=baseAt(array,indexes);basePullAt(array,arrayMap2(indexes,function(index2){return isIndex2(index2,length2)?+index2:index2;}).sort(compareAscending));return result2;});function remove(array,predicate){var result2=[];if(!(array&&array.length)){return result2;}var index2=-1,indexes=[],length2=array.length;predicate=getIteratee(predicate,3);while(++index2<length2){var value=array[index2];if(predicate(value,index2,array)){result2.push(value);indexes.push(index2);}}basePullAt(array,indexes);return result2;}function reverse(array){return array==null?array:nativeReverse.call(array);}function slice2(array,start2,end2){var length2=array==null?0:array.length;if(!length2){return[];}if(end2&&typeof end2!="number"&&isIterateeCall(array,start2,end2)){start2=0;end2=length2;}else{start2=start2==null?0:toInteger2(start2);end2=end2===undefined$1?length2:toInteger2(end2);}return baseSlice(array,start2,end2);}function sortedIndex(array,value){return baseSortedIndex(array,value);}function sortedIndexBy(array,value,iteratee2){return baseSortedIndexBy(array,value,getIteratee(iteratee2,2));}function sortedIndexOf(array,value){var length2=array==null?0:array.length;if(length2){var index2=baseSortedIndex(array,value);if(index2<length2&&eq2(array[index2],value)){return index2;}}return-1;}function sortedLastIndex(array,value){return baseSortedIndex(array,value,true);}function sortedLastIndexBy(array,value,iteratee2){return baseSortedIndexBy(array,value,getIteratee(iteratee2,2),true);}function sortedLastIndexOf(array,value){var length2=array==null?0:array.length;if(length2){var index2=baseSortedIndex(array,value,true)-1;if(eq2(array[index2],value)){return index2;}}return-1;}function sortedUniq(array){return array&&array.length?baseSortedUniq(array):[];}function sortedUniqBy(array,iteratee2){return array&&array.length?baseSortedUniq(array,getIteratee(iteratee2,2)):[];}function tail(array){var length2=array==null?0:array.length;return length2?baseSlice(array,1,length2):[];}function take(array,n,guard){if(!(array&&array.length)){return[];}n=guard||n===undefined$1?1:toInteger2(n);return baseSlice(array,0,n<0?0:n);}function takeRight(array,n,guard){var length2=array==null?0:array.length;if(!length2){return[];}n=guard||n===undefined$1?1:toInteger2(n);n=length2-n;return baseSlice(array,n<0?0:n,length2);}function takeRightWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3),false,true):[];}function takeWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3)):[];}var union=baseRest(function(arrays){return baseUniq(baseFlatten(arrays,1,isArrayLikeObject,true));});var unionBy=baseRest(function(arrays){var iteratee2=last(arrays);if(isArrayLikeObject(iteratee2)){iteratee2=undefined$1;}return baseUniq(baseFlatten(arrays,1,isArrayLikeObject,true),getIteratee(iteratee2,2));});var unionWith=baseRest(function(arrays){var comparator=last(arrays);comparator=typeof comparator=="function"?comparator:undefined$1;return baseUniq(baseFlatten(arrays,1,isArrayLikeObject,true),undefined$1,comparator);});function uniq(array){return array&&array.length?baseUniq(array):[];}function uniqBy(array,iteratee2){return array&&array.length?baseUniq(array,getIteratee(iteratee2,2)):[];}function uniqWith(array,comparator){comparator=typeof comparator=="function"?comparator:undefined$1;return array&&array.length?baseUniq(array,undefined$1,comparator):[];}function unzip(array){if(!(array&&array.length)){return[];}var length2=0;array=arrayFilter2(array,function(group){if(isArrayLikeObject(group)){length2=nativeMax2(group.length,length2);return true;}});return baseTimes2(length2,function(index2){return arrayMap2(array,baseProperty2(index2));});}function unzipWith(array,iteratee2){if(!(array&&array.length)){return[];}var result2=unzip(array);if(iteratee2==null){return result2;}return arrayMap2(result2,function(group){return apply(iteratee2,undefined$1,group);});}var without=baseRest(function(array,values3){return isArrayLikeObject(array)?baseDifference(array,values3):[];});var xor=baseRest(function(arrays){return baseXor(arrayFilter2(arrays,isArrayLikeObject));});var xorBy=baseRest(function(arrays){var iteratee2=last(arrays);if(isArrayLikeObject(iteratee2)){iteratee2=undefined$1;}return baseXor(arrayFilter2(arrays,isArrayLikeObject),getIteratee(iteratee2,2));});var xorWith=baseRest(function(arrays){var comparator=last(arrays);comparator=typeof comparator=="function"?comparator:undefined$1;return baseXor(arrayFilter2(arrays,isArrayLikeObject),undefined$1,comparator);});var zip=baseRest(unzip);function zipObject(props,values3){return baseZipObject(props||[],values3||[],assignValue);}function zipObjectDeep(props,values3){return baseZipObject(props||[],values3||[],baseSet);}var zipWith=baseRest(function(arrays){var length2=arrays.length,iteratee2=length2>1?arrays[length2-1]:undefined$1;iteratee2=typeof iteratee2=="function"?(arrays.pop(),iteratee2):undefined$1;return unzipWith(arrays,iteratee2);});function chain(value){var result2=lodash2(value);result2.__chain__=true;return result2;}function tap(value,interceptor){interceptor(value);return value;}function thru(value,interceptor){return interceptor(value);}var wrapperAt=flatRest(function(paths){var length2=paths.length,start2=length2?paths[0]:0,value=this.__wrapped__,interceptor=function interceptor(object){return baseAt(object,paths);};if(length2>1||this.__actions__.length||!(value instanceof LazyWrapper)||!isIndex2(start2)){return this.thru(interceptor);}value=value.slice(start2,+start2+(length2?1:0));value.__actions__.push({"func":thru,"args":[interceptor],"thisArg":undefined$1});return new LodashWrapper(value,this.__chain__).thru(function(array){if(length2&&!array.length){array.push(undefined$1);}return array;});});function wrapperChain(){return chain(this);}function wrapperCommit(){return new LodashWrapper(this.value(),this.__chain__);}function wrapperNext(){if(this.__values__===undefined$1){this.__values__=toArray(this.value());}var done=this.__index__>=this.__values__.length,value=done?undefined$1:this.__values__[this.__index__++];return{"done":done,"value":value};}function wrapperToIterator(){return this;}function wrapperPlant(value){var result2,parent2=this;while(parent2 instanceof baseLodash){var clone2=wrapperClone(parent2);clone2.__index__=0;clone2.__values__=undefined$1;if(result2){previous.__wrapped__=clone2;}else{result2=clone2;}var previous=clone2;parent2=parent2.__wrapped__;}previous.__wrapped__=value;return result2;}function wrapperReverse(){var value=this.__wrapped__;if(value instanceof LazyWrapper){var wrapped=value;if(this.__actions__.length){wrapped=new LazyWrapper(this);}wrapped=wrapped.reverse();wrapped.__actions__.push({"func":thru,"args":[reverse],"thisArg":undefined$1});return new LodashWrapper(wrapped,this.__chain__);}return this.thru(reverse);}function wrapperValue(){return baseWrapperValue(this.__wrapped__,this.__actions__);}var countBy=createAggregator(function(result2,value,key){if(hasOwnProperty2.call(result2,key)){++result2[key];}else{baseAssignValue(result2,key,1);}});function every(collection,predicate,guard){var func=isArray2(collection)?arrayEvery:baseEvery;if(guard&&isIterateeCall(collection,predicate,guard)){predicate=undefined$1;}return func(collection,getIteratee(predicate,3));}function filter(collection,predicate){var func=isArray2(collection)?arrayFilter2:baseFilter;return func(collection,getIteratee(predicate,3));}var find2=createFind2(findIndex2);var findLast=createFind2(findLastIndex);function flatMap(collection,iteratee2){return baseFlatten(map2(collection,iteratee2),1);}function flatMapDeep(collection,iteratee2){return baseFlatten(map2(collection,iteratee2),INFINITY2);}function flatMapDepth(collection,iteratee2,depth){depth=depth===undefined$1?1:toInteger2(depth);return baseFlatten(map2(collection,iteratee2),depth);}function forEach(collection,iteratee2){var func=isArray2(collection)?arrayEach:baseEach2;return func(collection,getIteratee(iteratee2,3));}function forEachRight(collection,iteratee2){var func=isArray2(collection)?arrayEachRight:baseEachRight;return func(collection,getIteratee(iteratee2,3));}var groupBy=createAggregator(function(result2,value,key){if(hasOwnProperty2.call(result2,key)){result2[key].push(value);}else{baseAssignValue(result2,key,[value]);}});function includes(collection,value,fromIndex,guard){collection=isArrayLike2(collection)?collection:values2(collection);fromIndex=fromIndex&&!guard?toInteger2(fromIndex):0;var length2=collection.length;if(fromIndex<0){fromIndex=nativeMax2(length2+fromIndex,0);}return isString2(collection)?fromIndex<=length2&&collection.indexOf(value,fromIndex)>-1:!!length2&&baseIndexOf(collection,value,fromIndex)>-1;}var invokeMap=baseRest(function(collection,path,args){var index2=-1,isFunc=typeof path=="function",result2=isArrayLike2(collection)?Array2(collection.length):[];baseEach2(collection,function(value){result2[++index2]=isFunc?apply(path,value,args):baseInvoke(value,path,args);});return result2;});var keyBy=createAggregator(function(result2,value,key){baseAssignValue(result2,key,value);});function map2(collection,iteratee2){var func=isArray2(collection)?arrayMap2:baseMap2;return func(collection,getIteratee(iteratee2,3));}function orderBy(collection,iteratees,orders,guard){if(collection==null){return[];}if(!isArray2(iteratees)){iteratees=iteratees==null?[]:[iteratees];}orders=guard?undefined$1:orders;if(!isArray2(orders)){orders=orders==null?[]:[orders];}return baseOrderBy(collection,iteratees,orders);}var partition=createAggregator(function(result2,value,key){result2[key?0:1].push(value);},function(){return[[],[]];});function reduce(collection,iteratee2,accumulator){var func=isArray2(collection)?arrayReduce:baseReduce,initAccum=arguments.length<3;return func(collection,getIteratee(iteratee2,4),accumulator,initAccum,baseEach2);}function reduceRight(collection,iteratee2,accumulator){var func=isArray2(collection)?arrayReduceRight:baseReduce,initAccum=arguments.length<3;return func(collection,getIteratee(iteratee2,4),accumulator,initAccum,baseEachRight);}function reject(collection,predicate){var func=isArray2(collection)?arrayFilter2:baseFilter;return func(collection,negate(getIteratee(predicate,3)));}function sample(collection){var func=isArray2(collection)?arraySample:baseSample;return func(collection);}function sampleSize(collection,n,guard){if(guard?isIterateeCall(collection,n,guard):n===undefined$1){n=1;}else{n=toInteger2(n);}var func=isArray2(collection)?arraySampleSize:baseSampleSize;return func(collection,n);}function shuffle(collection){var func=isArray2(collection)?arrayShuffle:baseShuffle;return func(collection);}function size2(collection){if(collection==null){return 0;}if(isArrayLike2(collection)){return isString2(collection)?stringSize(collection):collection.length;}var tag=getTag2(collection);if(tag==mapTag2||tag==setTag2){return collection.size;}return baseKeys2(collection).length;}function some(collection,predicate,guard){var func=isArray2(collection)?arraySome2:baseSome;if(guard&&isIterateeCall(collection,predicate,guard)){predicate=undefined$1;}return func(collection,getIteratee(predicate,3));}var sortBy=baseRest(function(collection,iteratees){if(collection==null){return[];}var length2=iteratees.length;if(length2>1&&isIterateeCall(collection,iteratees[0],iteratees[1])){iteratees=[];}else if(length2>2&&isIterateeCall(iteratees[0],iteratees[1],iteratees[2])){iteratees=[iteratees[0]];}return baseOrderBy(collection,baseFlatten(iteratees,1),[]);});var now=ctxNow||function(){return root2.Date.now();};function after(n,func){if(typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}n=toInteger2(n);return function(){if(--n<1){return func.apply(this,arguments);}};}function ary(func,n,guard){n=guard?undefined$1:n;n=func&&n==null?func.length:n;return createWrap(func,WRAP_ARY_FLAG,undefined$1,undefined$1,undefined$1,undefined$1,n);}function before(n,func){var result2;if(typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}n=toInteger2(n);return function(){if(--n>0){result2=func.apply(this,arguments);}if(n<=1){func=undefined$1;}return result2;};}var bind=baseRest(function(func,thisArg,partials){var bitmask=WRAP_BIND_FLAG;if(partials.length){var holders=replaceHolders(partials,getHolder(bind));bitmask|=WRAP_PARTIAL_FLAG;}return createWrap(func,bitmask,thisArg,partials,holders);});var bindKey=baseRest(function(object,key,partials){var bitmask=WRAP_BIND_FLAG|WRAP_BIND_KEY_FLAG;if(partials.length){var holders=replaceHolders(partials,getHolder(bindKey));bitmask|=WRAP_PARTIAL_FLAG;}return createWrap(key,bitmask,object,partials,holders);});function curry(func,arity,guard){arity=guard?undefined$1:arity;var result2=createWrap(func,WRAP_CURRY_FLAG,undefined$1,undefined$1,undefined$1,undefined$1,undefined$1,arity);result2.placeholder=curry.placeholder;return result2;}function curryRight(func,arity,guard){arity=guard?undefined$1:arity;var result2=createWrap(func,WRAP_CURRY_RIGHT_FLAG,undefined$1,undefined$1,undefined$1,undefined$1,undefined$1,arity);result2.placeholder=curryRight.placeholder;return result2;}function debounce2(func,wait,options){var lastArgs,lastThis,maxWait,result2,timerId,lastCallTime,lastInvokeTime=0,leading=false,maxing=false,trailing=true;if(typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}wait=toNumber2(wait)||0;if(isObject2(options)){leading=!!options.leading;maxing="maxWait"in options;maxWait=maxing?nativeMax2(toNumber2(options.maxWait)||0,wait):maxWait;trailing="trailing"in options?!!options.trailing:trailing;}function invokeFunc(time){var args=lastArgs,thisArg=lastThis;lastArgs=lastThis=undefined$1;lastInvokeTime=time;result2=func.apply(thisArg,args);return result2;}function leadingEdge(time){lastInvokeTime=time;timerId=setTimeout2(timerExpired,wait);return leading?invokeFunc(time):result2;}function remainingWait(time){var timeSinceLastCall=time-lastCallTime,timeSinceLastInvoke=time-lastInvokeTime,timeWaiting=wait-timeSinceLastCall;return maxing?nativeMin(timeWaiting,maxWait-timeSinceLastInvoke):timeWaiting;}function shouldInvoke(time){var timeSinceLastCall=time-lastCallTime,timeSinceLastInvoke=time-lastInvokeTime;return lastCallTime===undefined$1||timeSinceLastCall>=wait||timeSinceLastCall<0||maxing&&timeSinceLastInvoke>=maxWait;}function timerExpired(){var time=now();if(shouldInvoke(time)){return trailingEdge(time);}timerId=setTimeout2(timerExpired,remainingWait(time));}function trailingEdge(time){timerId=undefined$1;if(trailing&&lastArgs){return invokeFunc(time);}lastArgs=lastThis=undefined$1;return result2;}function cancel(){if(timerId!==undefined$1){clearTimeout2(timerId);}lastInvokeTime=0;lastArgs=lastCallTime=lastThis=timerId=undefined$1;}function flush(){return timerId===undefined$1?result2:trailingEdge(now());}function debounced(){var time=now(),isInvoking=shouldInvoke(time);lastArgs=arguments;lastThis=this;lastCallTime=time;if(isInvoking){if(timerId===undefined$1){return leadingEdge(lastCallTime);}if(maxing){clearTimeout2(timerId);timerId=setTimeout2(timerExpired,wait);return invokeFunc(lastCallTime);}}if(timerId===undefined$1){timerId=setTimeout2(timerExpired,wait);}return result2;}debounced.cancel=cancel;debounced.flush=flush;return debounced;}var defer2=baseRest(function(func,args){return baseDelay(func,1,args);});var delay=baseRest(function(func,wait,args){return baseDelay(func,toNumber2(wait)||0,args);});function flip2(func){return createWrap(func,WRAP_FLIP_FLAG);}function memoize2(func,resolver){if(typeof func!="function"||resolver!=null&&typeof resolver!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}var _memoized=function memoized(){var args=arguments,key=resolver?resolver.apply(this,args):args[0],cache=_memoized.cache;if(cache.has(key)){return cache.get(key);}var result2=func.apply(this,args);_memoized.cache=cache.set(key,result2)||cache;return result2;};_memoized.cache=new(memoize2.Cache||MapCache2)();return _memoized;}memoize2.Cache=MapCache2;function negate(predicate){if(typeof predicate!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}return function(){var args=arguments;switch(args.length){case 0:return!predicate.call(this);case 1:return!predicate.call(this,args[0]);case 2:return!predicate.call(this,args[0],args[1]);case 3:return!predicate.call(this,args[0],args[1],args[2]);}return!predicate.apply(this,args);};}function once(func){return before(2,func);}var overArgs=castRest(function(func,transforms){transforms=transforms.length==1&&isArray2(transforms[0])?arrayMap2(transforms[0],baseUnary2(getIteratee())):arrayMap2(baseFlatten(transforms,1),baseUnary2(getIteratee()));var funcsLength=transforms.length;return baseRest(function(args){var index2=-1,length2=nativeMin(args.length,funcsLength);while(++index2<length2){args[index2]=transforms[index2].call(this,args[index2]);}return apply(func,this,args);});});var partial=baseRest(function(func,partials){var holders=replaceHolders(partials,getHolder(partial));return createWrap(func,WRAP_PARTIAL_FLAG,undefined$1,partials,holders);});var partialRight=baseRest(function(func,partials){var holders=replaceHolders(partials,getHolder(partialRight));return createWrap(func,WRAP_PARTIAL_RIGHT_FLAG,undefined$1,partials,holders);});var rearg=flatRest(function(func,indexes){return createWrap(func,WRAP_REARG_FLAG,undefined$1,undefined$1,undefined$1,indexes);});function rest(func,start2){if(typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}start2=start2===undefined$1?start2:toInteger2(start2);return baseRest(func,start2);}function spread(func,start2){if(typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}start2=start2==null?0:nativeMax2(toInteger2(start2),0);return baseRest(function(args){var array=args[start2],otherArgs=castSlice(args,0,start2);if(array){arrayPush2(otherArgs,array);}return apply(func,this,otherArgs);});}function throttle(func,wait,options){var leading=true,trailing=true;if(typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}if(isObject2(options)){leading="leading"in options?!!options.leading:leading;trailing="trailing"in options?!!options.trailing:trailing;}return debounce2(func,wait,{"leading":leading,"maxWait":wait,"trailing":trailing});}function unary(func){return ary(func,1);}function wrap(value,wrapper2){return partial(castFunction(wrapper2),value);}function castArray(){if(!arguments.length){return[];}var value=arguments[0];return isArray2(value)?value:[value];}function clone(value){return baseClone(value,CLONE_SYMBOLS_FLAG);}function cloneWith(value,customizer){customizer=typeof customizer=="function"?customizer:undefined$1;return baseClone(value,CLONE_SYMBOLS_FLAG,customizer);}function cloneDeep(value){return baseClone(value,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG);}function cloneDeepWith(value,customizer){customizer=typeof customizer=="function"?customizer:undefined$1;return baseClone(value,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG,customizer);}function conformsTo(object,source){return source==null||baseConformsTo(object,source,keys2(source));}function eq2(value,other){return value===other||value!==value&&other!==other;}var gt=createRelationalOperation(baseGt);var gte=createRelationalOperation(function(value,other){return value>=other;});var isArguments2=baseIsArguments2(/* @__PURE__ */function(){return arguments;}())?baseIsArguments2:function(value){return isObjectLike2(value)&&hasOwnProperty2.call(value,"callee")&&!propertyIsEnumerable2.call(value,"callee");};var isArray2=Array2.isArray;var isArrayBuffer=nodeIsArrayBuffer?baseUnary2(nodeIsArrayBuffer):baseIsArrayBuffer;function isArrayLike2(value){return value!=null&&isLength2(value.length)&&!isFunction2(value);}function isArrayLikeObject(value){return isObjectLike2(value)&&isArrayLike2(value);}function isBoolean(value){return value===true||value===false||isObjectLike2(value)&&baseGetTag2(value)==boolTag2;}var isBuffer2=nativeIsBuffer||stubFalse2;var isDate2=nodeIsDate?baseUnary2(nodeIsDate):baseIsDate;function isElement2(value){return isObjectLike2(value)&&value.nodeType===1&&!isPlainObject2(value);}function isEmpty2(value){if(value==null){return true;}if(isArrayLike2(value)&&(isArray2(value)||typeof value=="string"||typeof value.splice=="function"||isBuffer2(value)||isTypedArray2(value)||isArguments2(value))){return!value.length;}var tag=getTag2(value);if(tag==mapTag2||tag==setTag2){return!value.size;}if(isPrototype2(value)){return!baseKeys2(value).length;}for(var key in value){if(hasOwnProperty2.call(value,key)){return false;}}return true;}function isEqual2(value,other){return baseIsEqual2(value,other);}function isEqualWith(value,other,customizer){customizer=typeof customizer=="function"?customizer:undefined$1;var result2=customizer?customizer(value,other):undefined$1;return result2===undefined$1?baseIsEqual2(value,other,undefined$1,customizer):!!result2;}function isError(value){if(!isObjectLike2(value)){return false;}var tag=baseGetTag2(value);return tag==errorTag2||tag==domExcTag||typeof value.message=="string"&&typeof value.name=="string"&&!isPlainObject2(value);}function isFinite2(value){return typeof value=="number"&&nativeIsFinite(value);}function isFunction2(value){if(!isObject2(value)){return false;}var tag=baseGetTag2(value);return tag==funcTag2||tag==genTag2||tag==asyncTag2||tag==proxyTag2;}function isInteger(value){return typeof value=="number"&&value==toInteger2(value);}function isLength2(value){return typeof value=="number"&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER2;}function isObject2(value){var type=_typeof2(value);return value!=null&&(type=="object"||type=="function");}function isObjectLike2(value){return value!=null&&_typeof2(value)=="object";}var isMap=nodeIsMap?baseUnary2(nodeIsMap):baseIsMap;function isMatch(object,source){return object===source||baseIsMatch2(object,source,getMatchData2(source));}function isMatchWith(object,source,customizer){customizer=typeof customizer=="function"?customizer:undefined$1;return baseIsMatch2(object,source,getMatchData2(source),customizer);}function isNaN2(value){return isNumber(value)&&value!=+value;}function isNative(value){if(isMaskable(value)){throw new Error2(CORE_ERROR_TEXT);}return baseIsNative2(value);}function isNull(value){return value===null;}function isNil(value){return value==null;}function isNumber(value){return typeof value=="number"||isObjectLike2(value)&&baseGetTag2(value)==numberTag2;}function isPlainObject2(value){if(!isObjectLike2(value)||baseGetTag2(value)!=objectTag2){return false;}var proto=getPrototype(value);if(proto===null){return true;}var Ctor=hasOwnProperty2.call(proto,"constructor")&&proto.constructor;return typeof Ctor=="function"&&Ctor instanceof Ctor&&funcToString2.call(Ctor)==objectCtorString;}var isRegExp=nodeIsRegExp?baseUnary2(nodeIsRegExp):baseIsRegExp;function isSafeInteger(value){return isInteger(value)&&value>=-MAX_SAFE_INTEGER2&&value<=MAX_SAFE_INTEGER2;}var isSet=nodeIsSet?baseUnary2(nodeIsSet):baseIsSet;function isString2(value){return typeof value=="string"||!isArray2(value)&&isObjectLike2(value)&&baseGetTag2(value)==stringTag2;}function isSymbol2(value){return _typeof2(value)=="symbol"||isObjectLike2(value)&&baseGetTag2(value)==symbolTag2;}var isTypedArray2=nodeIsTypedArray2?baseUnary2(nodeIsTypedArray2):baseIsTypedArray2;function isUndefined2(value){return value===undefined$1;}function isWeakMap(value){return isObjectLike2(value)&&getTag2(value)==weakMapTag2;}function isWeakSet(value){return isObjectLike2(value)&&baseGetTag2(value)==weakSetTag;}var lt=createRelationalOperation(baseLt);var lte=createRelationalOperation(function(value,other){return value<=other;});function toArray(value){if(!value){return[];}if(isArrayLike2(value)){return isString2(value)?stringToArray(value):copyArray(value);}if(symIterator&&value[symIterator]){return iteratorToArray(value[symIterator]());}var tag=getTag2(value),func=tag==mapTag2?mapToArray2:tag==setTag2?setToArray2:values2;return func(value);}function toFinite2(value){if(!value){return value===0?value:0;}value=toNumber2(value);if(value===INFINITY2||value===-INFINITY2){var sign=value<0?-1:1;return sign*MAX_INTEGER2;}return value===value?value:0;}function toInteger2(value){var result2=toFinite2(value),remainder=result2%1;return result2===result2?remainder?result2-remainder:result2:0;}function toLength(value){return value?baseClamp(toInteger2(value),0,MAX_ARRAY_LENGTH):0;}function toNumber2(value){if(typeof value=="number"){return value;}if(isSymbol2(value)){return NAN2;}if(isObject2(value)){var other=typeof value.valueOf=="function"?value.valueOf():value;value=isObject2(other)?other+"":other;}if(typeof value!="string"){return value===0?value:+value;}value=baseTrim2(value);var isBinary=reIsBinary2.test(value);return isBinary||reIsOctal2.test(value)?freeParseInt2(value.slice(2),isBinary?2:8):reIsBadHex2.test(value)?NAN2:+value;}function toPlainObject(value){return copyObject(value,keysIn(value));}function toSafeInteger(value){return value?baseClamp(toInteger2(value),-MAX_SAFE_INTEGER2,MAX_SAFE_INTEGER2):value===0?value:0;}function toString2(value){return value==null?"":baseToString2(value);}var assign2=createAssigner(function(object,source){if(isPrototype2(source)||isArrayLike2(source)){copyObject(source,keys2(source),object);return;}for(var key in source){if(hasOwnProperty2.call(source,key)){assignValue(object,key,source[key]);}}});var assignIn=createAssigner(function(object,source){copyObject(source,keysIn(source),object);});var assignInWith=createAssigner(function(object,source,srcIndex,customizer){copyObject(source,keysIn(source),object,customizer);});var assignWith=createAssigner(function(object,source,srcIndex,customizer){copyObject(source,keys2(source),object,customizer);});var at=flatRest(baseAt);function create(prototype,properties2){var result2=baseCreate(prototype);return properties2==null?result2:baseAssign(result2,properties2);}var defaults=baseRest(function(object,sources){object=Object2(object);var index2=-1;var length2=sources.length;var guard=length2>2?sources[2]:undefined$1;if(guard&&isIterateeCall(sources[0],sources[1],guard)){length2=1;}while(++index2<length2){var source=sources[index2];var props=keysIn(source);var propsIndex=-1;var propsLength=props.length;while(++propsIndex<propsLength){var key=props[propsIndex];var value=object[key];if(value===undefined$1||eq2(value,objectProto2[key])&&!hasOwnProperty2.call(object,key)){object[key]=source[key];}}}return object;});var defaultsDeep=baseRest(function(args){args.push(undefined$1,customDefaultsMerge);return apply(mergeWith,undefined$1,args);});function findKey2(object,predicate){return baseFindKey(object,getIteratee(predicate,3),baseForOwn2);}function findLastKey(object,predicate){return baseFindKey(object,getIteratee(predicate,3),baseForOwnRight);}function forIn(object,iteratee2){return object==null?object:baseFor2(object,getIteratee(iteratee2,3),keysIn);}function forInRight(object,iteratee2){return object==null?object:baseForRight(object,getIteratee(iteratee2,3),keysIn);}function forOwn(object,iteratee2){return object&&baseForOwn2(object,getIteratee(iteratee2,3));}function forOwnRight(object,iteratee2){return object&&baseForOwnRight(object,getIteratee(iteratee2,3));}function functions(object){return object==null?[]:baseFunctions(object,keys2(object));}function functionsIn(object){return object==null?[]:baseFunctions(object,keysIn(object));}function get2(object,path,defaultValue){var result2=object==null?undefined$1:baseGet2(object,path);return result2===undefined$1?defaultValue:result2;}function has2(object,path){return object!=null&&hasPath2(object,path,baseHas);}function hasIn2(object,path){return object!=null&&hasPath2(object,path,baseHasIn2);}var invert=createInverter(function(result2,value,key){if(value!=null&&typeof value.toString!="function"){value=nativeObjectToString2.call(value);}result2[value]=key;},constant(identity2));var invertBy=createInverter(function(result2,value,key){if(value!=null&&typeof value.toString!="function"){value=nativeObjectToString2.call(value);}if(hasOwnProperty2.call(result2,value)){result2[value].push(key);}else{result2[value]=[key];}},getIteratee);var invoke=baseRest(baseInvoke);function keys2(object){return isArrayLike2(object)?arrayLikeKeys2(object):baseKeys2(object);}function keysIn(object){return isArrayLike2(object)?arrayLikeKeys2(object,true):baseKeysIn(object);}function mapKeys(object,iteratee2){var result2={};iteratee2=getIteratee(iteratee2,3);baseForOwn2(object,function(value,key,object2){baseAssignValue(result2,iteratee2(value,key,object2),value);});return result2;}function mapValues(object,iteratee2){var result2={};iteratee2=getIteratee(iteratee2,3);baseForOwn2(object,function(value,key,object2){baseAssignValue(result2,key,iteratee2(value,key,object2));});return result2;}var merge2=createAssigner(function(object,source,srcIndex){baseMerge(object,source,srcIndex);});var mergeWith=createAssigner(function(object,source,srcIndex,customizer){baseMerge(object,source,srcIndex,customizer);});var omit=flatRest(function(object,paths){var result2={};if(object==null){return result2;}var isDeep=false;paths=arrayMap2(paths,function(path){path=castPath2(path,object);isDeep||(isDeep=path.length>1);return path;});copyObject(object,getAllKeysIn(object),result2);if(isDeep){result2=baseClone(result2,CLONE_DEEP_FLAG|CLONE_FLAT_FLAG|CLONE_SYMBOLS_FLAG,customOmitClone);}var length2=paths.length;while(length2--){baseUnset(result2,paths[length2]);}return result2;});function omitBy(object,predicate){return pickBy(object,negate(getIteratee(predicate)));}var pick=flatRest(function(object,paths){return object==null?{}:basePick(object,paths);});function pickBy(object,predicate){if(object==null){return{};}var props=arrayMap2(getAllKeysIn(object),function(prop){return[prop];});predicate=getIteratee(predicate);return basePickBy(object,props,function(value,path){return predicate(value,path[0]);});}function result(object,path,defaultValue){path=castPath2(path,object);var index2=-1,length2=path.length;if(!length2){length2=1;object=undefined$1;}while(++index2<length2){var value=object==null?undefined$1:object[toKey2(path[index2])];if(value===undefined$1){index2=length2;value=defaultValue;}object=isFunction2(value)?value.call(object):value;}return object;}function set(object,path,value){return object==null?object:baseSet(object,path,value);}function setWith(object,path,value,customizer){customizer=typeof customizer=="function"?customizer:undefined$1;return object==null?object:baseSet(object,path,value,customizer);}var toPairs=createToPairs(keys2);var toPairsIn=createToPairs(keysIn);function transform(object,iteratee2,accumulator){var isArr=isArray2(object),isArrLike=isArr||isBuffer2(object)||isTypedArray2(object);iteratee2=getIteratee(iteratee2,4);if(accumulator==null){var Ctor=object&&object.constructor;if(isArrLike){accumulator=isArr?new Ctor():[];}else if(isObject2(object)){accumulator=isFunction2(Ctor)?baseCreate(getPrototype(object)):{};}else{accumulator={};}}(isArrLike?arrayEach:baseForOwn2)(object,function(value,index2,object2){return iteratee2(accumulator,value,index2,object2);});return accumulator;}function unset(object,path){return object==null?true:baseUnset(object,path);}function update(object,path,updater){return object==null?object:baseUpdate(object,path,castFunction(updater));}function updateWith(object,path,updater,customizer){customizer=typeof customizer=="function"?customizer:undefined$1;return object==null?object:baseUpdate(object,path,castFunction(updater),customizer);}function values2(object){return object==null?[]:baseValues(object,keys2(object));}function valuesIn(object){return object==null?[]:baseValues(object,keysIn(object));}function clamp2(number,lower,upper){if(upper===undefined$1){upper=lower;lower=undefined$1;}if(upper!==undefined$1){upper=toNumber2(upper);upper=upper===upper?upper:0;}if(lower!==undefined$1){lower=toNumber2(lower);lower=lower===lower?lower:0;}return baseClamp(toNumber2(number),lower,upper);}function inRange(number,start2,end2){start2=toFinite2(start2);if(end2===undefined$1){end2=start2;start2=0;}else{end2=toFinite2(end2);}number=toNumber2(number);return baseInRange(number,start2,end2);}function random(lower,upper,floating){if(floating&&typeof floating!="boolean"&&isIterateeCall(lower,upper,floating)){upper=floating=undefined$1;}if(floating===undefined$1){if(typeof upper=="boolean"){floating=upper;upper=undefined$1;}else if(typeof lower=="boolean"){floating=lower;lower=undefined$1;}}if(lower===undefined$1&&upper===undefined$1){lower=0;upper=1;}else{lower=toFinite2(lower);if(upper===undefined$1){upper=lower;lower=0;}else{upper=toFinite2(upper);}}if(lower>upper){var temp=lower;lower=upper;upper=temp;}if(floating||lower%1||upper%1){var rand=nativeRandom();return nativeMin(lower+rand*(upper-lower+freeParseFloat("1e-"+((rand+"").length-1))),upper);}return baseRandom(lower,upper);}var camelCase=createCompounder(function(result2,word,index2){word=word.toLowerCase();return result2+(index2?capitalize2(word):word);});function capitalize2(string){return upperFirst(toString2(string).toLowerCase());}function deburr(string){string=toString2(string);return string&&string.replace(reLatin,deburrLetter).replace(reComboMark,"");}function endsWith(string,target,position2){string=toString2(string);target=baseToString2(target);var length2=string.length;position2=position2===undefined$1?length2:baseClamp(toInteger2(position2),0,length2);var end2=position2;position2-=target.length;return position2>=0&&string.slice(position2,end2)==target;}function escape2(string){string=toString2(string);return string&&reHasUnescapedHtml.test(string)?string.replace(reUnescapedHtml,escapeHtmlChar):string;}function escapeRegExp(string){string=toString2(string);return string&&reHasRegExpChar.test(string)?string.replace(reRegExpChar2,"\\$&"):string;}var kebabCase=createCompounder(function(result2,word,index2){return result2+(index2?"-":"")+word.toLowerCase();});var lowerCase=createCompounder(function(result2,word,index2){return result2+(index2?" ":"")+word.toLowerCase();});var lowerFirst=createCaseFirst("toLowerCase");function pad(string,length2,chars2){string=toString2(string);length2=toInteger2(length2);var strLength=length2?stringSize(string):0;if(!length2||strLength>=length2){return string;}var mid=(length2-strLength)/2;return createPadding(nativeFloor(mid),chars2)+string+createPadding(nativeCeil(mid),chars2);}function padEnd(string,length2,chars2){string=toString2(string);length2=toInteger2(length2);var strLength=length2?stringSize(string):0;return length2&&strLength<length2?string+createPadding(length2-strLength,chars2):string;}function padStart(string,length2,chars2){string=toString2(string);length2=toInteger2(length2);var strLength=length2?stringSize(string):0;return length2&&strLength<length2?createPadding(length2-strLength,chars2)+string:string;}function parseInt2(string,radix,guard){if(guard||radix==null){radix=0;}else if(radix){radix=+radix;}return nativeParseInt(toString2(string).replace(reTrimStart2,""),radix||0);}function repeat(string,n,guard){if(guard?isIterateeCall(string,n,guard):n===undefined$1){n=1;}else{n=toInteger2(n);}return baseRepeat(toString2(string),n);}function replace2(){var args=arguments,string=toString2(args[0]);return args.length<3?string:string.replace(args[1],args[2]);}var snakeCase=createCompounder(function(result2,word,index2){return result2+(index2?"_":"")+word.toLowerCase();});function split(string,separator,limit){if(limit&&typeof limit!="number"&&isIterateeCall(string,separator,limit)){separator=limit=undefined$1;}limit=limit===undefined$1?MAX_ARRAY_LENGTH:limit>>>0;if(!limit){return[];}string=toString2(string);if(string&&(typeof separator=="string"||separator!=null&&!isRegExp(separator))){separator=baseToString2(separator);if(!separator&&hasUnicode(string)){return castSlice(stringToArray(string),0,limit);}}return string.split(separator,limit);}var startCase=createCompounder(function(result2,word,index2){return result2+(index2?" ":"")+upperFirst(word);});function startsWith(string,target,position2){string=toString2(string);position2=position2==null?0:baseClamp(toInteger2(position2),0,string.length);target=baseToString2(target);return string.slice(position2,position2+target.length)==target;}function template(string,options,guard){var settings=lodash2.templateSettings;if(guard&&isIterateeCall(string,options,guard)){options=undefined$1;}string=toString2(string);options=assignInWith({},options,settings,customDefaultsAssignIn);var imports=assignInWith({},options.imports,settings.imports,customDefaultsAssignIn),importsKeys=keys2(imports),importsValues=baseValues(imports,importsKeys);var isEscaping,isEvaluating,index2=0,interpolate=options.interpolate||reNoMatch,source="__p += '";var reDelimiters=RegExp2((options.escape||reNoMatch).source+"|"+interpolate.source+"|"+(interpolate===reInterpolate?reEsTemplate:reNoMatch).source+"|"+(options.evaluate||reNoMatch).source+"|$","g");var sourceURL="//# sourceURL="+(hasOwnProperty2.call(options,"sourceURL")?(options.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++templateCounter+"]")+"\n";string.replace(reDelimiters,function(match2,escapeValue,interpolateValue,esTemplateValue,evaluateValue,offset2){interpolateValue||(interpolateValue=esTemplateValue);source+=string.slice(index2,offset2).replace(reUnescapedString,escapeStringChar);if(escapeValue){isEscaping=true;source+="' +\n__e("+escapeValue+") +\n'";}if(evaluateValue){isEvaluating=true;source+="';\n"+evaluateValue+";\n__p += '";}if(interpolateValue){source+="' +\n((__t = ("+interpolateValue+")) == null ? '' : __t) +\n'";}index2=offset2+match2.length;return match2;});source+="';\n";var variable=hasOwnProperty2.call(options,"variable")&&options.variable;if(!variable){source="with (obj) {\n"+source+"\n}\n";}else if(reForbiddenIdentifierChars.test(variable)){throw new Error2(INVALID_TEMPL_VAR_ERROR_TEXT);}source=(isEvaluating?source.replace(reEmptyStringLeading,""):source).replace(reEmptyStringMiddle,"$1").replace(reEmptyStringTrailing,"$1;");source="function("+(variable||"obj")+") {\n"+(variable?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(isEscaping?", __e = _.escape":"")+(isEvaluating?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+source+"return __p\n}";var result2=attempt(function(){return Function2(importsKeys,sourceURL+"return "+source).apply(undefined$1,importsValues);});result2.source=source;if(isError(result2)){throw result2;}return result2;}function toLower(value){return toString2(value).toLowerCase();}function toUpper(value){return toString2(value).toUpperCase();}function trim2(string,chars2,guard){string=toString2(string);if(string&&(guard||chars2===undefined$1)){return baseTrim2(string);}if(!string||!(chars2=baseToString2(chars2))){return string;}var strSymbols=stringToArray(string),chrSymbols=stringToArray(chars2),start2=charsStartIndex(strSymbols,chrSymbols),end2=charsEndIndex(strSymbols,chrSymbols)+1;return castSlice(strSymbols,start2,end2).join("");}function trimEnd(string,chars2,guard){string=toString2(string);if(string&&(guard||chars2===undefined$1)){return string.slice(0,trimmedEndIndex2(string)+1);}if(!string||!(chars2=baseToString2(chars2))){return string;}var strSymbols=stringToArray(string),end2=charsEndIndex(strSymbols,stringToArray(chars2))+1;return castSlice(strSymbols,0,end2).join("");}function trimStart(string,chars2,guard){string=toString2(string);if(string&&(guard||chars2===undefined$1)){return string.replace(reTrimStart2,"");}if(!string||!(chars2=baseToString2(chars2))){return string;}var strSymbols=stringToArray(string),start2=charsStartIndex(strSymbols,stringToArray(chars2));return castSlice(strSymbols,start2).join("");}function truncate(string,options){var length2=DEFAULT_TRUNC_LENGTH,omission=DEFAULT_TRUNC_OMISSION;if(isObject2(options)){var separator="separator"in options?options.separator:separator;length2="length"in options?toInteger2(options.length):length2;omission="omission"in options?baseToString2(options.omission):omission;}string=toString2(string);var strLength=string.length;if(hasUnicode(string)){var strSymbols=stringToArray(string);strLength=strSymbols.length;}if(length2>=strLength){return string;}var end2=length2-stringSize(omission);if(end2<1){return omission;}var result2=strSymbols?castSlice(strSymbols,0,end2).join(""):string.slice(0,end2);if(separator===undefined$1){return result2+omission;}if(strSymbols){end2+=result2.length-end2;}if(isRegExp(separator)){if(string.slice(end2).search(separator)){var match2,substring=result2;if(!separator.global){separator=RegExp2(separator.source,toString2(reFlags.exec(separator))+"g");}separator.lastIndex=0;while(match2=separator.exec(substring)){var newEnd=match2.index;}result2=result2.slice(0,newEnd===undefined$1?end2:newEnd);}}else if(string.indexOf(baseToString2(separator),end2)!=end2){var index2=result2.lastIndexOf(separator);if(index2>-1){result2=result2.slice(0,index2);}}return result2+omission;}function unescape2(string){string=toString2(string);return string&&reHasEscapedHtml.test(string)?string.replace(reEscapedHtml,unescapeHtmlChar):string;}var upperCase=createCompounder(function(result2,word,index2){return result2+(index2?" ":"")+word.toUpperCase();});var upperFirst=createCaseFirst("toUpperCase");function words(string,pattern,guard){string=toString2(string);pattern=guard?undefined$1:pattern;if(pattern===undefined$1){return hasUnicodeWord(string)?unicodeWords(string):asciiWords(string);}return string.match(pattern)||[];}var attempt=baseRest(function(func,args){try{return apply(func,undefined$1,args);}catch(e){return isError(e)?e:new Error2(e);}});var bindAll=flatRest(function(object,methodNames){arrayEach(methodNames,function(key){key=toKey2(key);baseAssignValue(object,key,bind(object[key],object));});return object;});function cond(pairs){var length2=pairs==null?0:pairs.length,toIteratee=getIteratee();pairs=!length2?[]:arrayMap2(pairs,function(pair){if(typeof pair[1]!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}return[toIteratee(pair[0]),pair[1]];});return baseRest(function(args){var index2=-1;while(++index2<length2){var pair=pairs[index2];if(apply(pair[0],this,args)){return apply(pair[1],this,args);}}});}function conforms(source){return baseConforms(baseClone(source,CLONE_DEEP_FLAG));}function constant(value){return function(){return value;};}function defaultTo(value,defaultValue){return value==null||value!==value?defaultValue:value;}var flow=createFlow();var flowRight=createFlow(true);function identity2(value){return value;}function iteratee(func){return baseIteratee2(typeof func=="function"?func:baseClone(func,CLONE_DEEP_FLAG));}function matches(source){return baseMatches2(baseClone(source,CLONE_DEEP_FLAG));}function matchesProperty(path,srcValue){return baseMatchesProperty2(path,baseClone(srcValue,CLONE_DEEP_FLAG));}var method=baseRest(function(path,args){return function(object){return baseInvoke(object,path,args);};});var methodOf=baseRest(function(object,args){return function(path){return baseInvoke(object,path,args);};});function mixin(object,source,options){var props=keys2(source),methodNames=baseFunctions(source,props);if(options==null&&!(isObject2(source)&&(methodNames.length||!props.length))){options=source;source=object;object=this;methodNames=baseFunctions(source,keys2(source));}var chain2=!(isObject2(options)&&"chain"in options)||!!options.chain,isFunc=isFunction2(object);arrayEach(methodNames,function(methodName){var func=source[methodName];object[methodName]=func;if(isFunc){object.prototype[methodName]=function(){var chainAll=this.__chain__;if(chain2||chainAll){var result2=object(this.__wrapped__),actions=result2.__actions__=copyArray(this.__actions__);actions.push({"func":func,"args":arguments,"thisArg":object});result2.__chain__=chainAll;return result2;}return func.apply(object,arrayPush2([this.value()],arguments));};}});return object;}function noConflict(){if(root2._===this){root2._=oldDash;}return this;}function noop4(){}function nthArg(n){n=toInteger2(n);return baseRest(function(args){return baseNth(args,n);});}var over=createOver(arrayMap2);var overEvery=createOver(arrayEvery);var overSome=createOver(arraySome2);function property2(path){return isKey2(path)?baseProperty2(toKey2(path)):basePropertyDeep2(path);}function propertyOf(object){return function(path){return object==null?undefined$1:baseGet2(object,path);};}var range=createRange();var rangeRight=createRange(true);function stubArray2(){return[];}function stubFalse2(){return false;}function stubObject(){return{};}function stubString(){return"";}function stubTrue(){return true;}function times(n,iteratee2){n=toInteger2(n);if(n<1||n>MAX_SAFE_INTEGER2){return[];}var index2=MAX_ARRAY_LENGTH,length2=nativeMin(n,MAX_ARRAY_LENGTH);iteratee2=getIteratee(iteratee2);n-=MAX_ARRAY_LENGTH;var result2=baseTimes2(length2,iteratee2);while(++index2<n){iteratee2(index2);}return result2;}function toPath(value){if(isArray2(value)){return arrayMap2(value,toKey2);}return isSymbol2(value)?[value]:copyArray(stringToPath2(toString2(value)));}function uniqueId(prefix2){var id=++idCounter2;return toString2(prefix2)+id;}var add=createMathOperation(function(augend,addend){return augend+addend;},0);var ceil=createRound("ceil");var divide=createMathOperation(function(dividend,divisor){return dividend/divisor;},1);var floor2=createRound("floor");function max2(array){return array&&array.length?baseExtremum(array,identity2,baseGt):undefined$1;}function maxBy(array,iteratee2){return array&&array.length?baseExtremum(array,getIteratee(iteratee2,2),baseGt):undefined$1;}function mean(array){return baseMean(array,identity2);}function meanBy(array,iteratee2){return baseMean(array,getIteratee(iteratee2,2));}function min2(array){return array&&array.length?baseExtremum(array,identity2,baseLt):undefined$1;}function minBy(array,iteratee2){return array&&array.length?baseExtremum(array,getIteratee(iteratee2,2),baseLt):undefined$1;}var multiply=createMathOperation(function(multiplier,multiplicand){return multiplier*multiplicand;},1);var round2=createRound("round");var subtract=createMathOperation(function(minuend,subtrahend){return minuend-subtrahend;},0);function sum(array){return array&&array.length?baseSum(array,identity2):0;}function sumBy(array,iteratee2){return array&&array.length?baseSum(array,getIteratee(iteratee2,2)):0;}lodash2.after=after;lodash2.ary=ary;lodash2.assign=assign2;lodash2.assignIn=assignIn;lodash2.assignInWith=assignInWith;lodash2.assignWith=assignWith;lodash2.at=at;lodash2.before=before;lodash2.bind=bind;lodash2.bindAll=bindAll;lodash2.bindKey=bindKey;lodash2.castArray=castArray;lodash2.chain=chain;lodash2.chunk=chunk;lodash2.compact=compact;lodash2.concat=concat;lodash2.cond=cond;lodash2.conforms=conforms;lodash2.constant=constant;lodash2.countBy=countBy;lodash2.create=create;lodash2.curry=curry;lodash2.curryRight=curryRight;lodash2.debounce=debounce2;lodash2.defaults=defaults;lodash2.defaultsDeep=defaultsDeep;lodash2.defer=defer2;lodash2.delay=delay;lodash2.difference=difference;lodash2.differenceBy=differenceBy;lodash2.differenceWith=differenceWith;lodash2.drop=drop;lodash2.dropRight=dropRight;lodash2.dropRightWhile=dropRightWhile;lodash2.dropWhile=dropWhile;lodash2.fill=fill;lodash2.filter=filter;lodash2.flatMap=flatMap;lodash2.flatMapDeep=flatMapDeep;lodash2.flatMapDepth=flatMapDepth;lodash2.flatten=flatten;lodash2.flattenDeep=flattenDeep;lodash2.flattenDepth=flattenDepth;lodash2.flip=flip2;lodash2.flow=flow;lodash2.flowRight=flowRight;lodash2.fromPairs=fromPairs;lodash2.functions=functions;lodash2.functionsIn=functionsIn;lodash2.groupBy=groupBy;lodash2.initial=initial;lodash2.intersection=intersection;lodash2.intersectionBy=intersectionBy;lodash2.intersectionWith=intersectionWith;lodash2.invert=invert;lodash2.invertBy=invertBy;lodash2.invokeMap=invokeMap;lodash2.iteratee=iteratee;lodash2.keyBy=keyBy;lodash2.keys=keys2;lodash2.keysIn=keysIn;lodash2.map=map2;lodash2.mapKeys=mapKeys;lodash2.mapValues=mapValues;lodash2.matches=matches;lodash2.matchesProperty=matchesProperty;lodash2.memoize=memoize2;lodash2.merge=merge2;lodash2.mergeWith=mergeWith;lodash2.method=method;lodash2.methodOf=methodOf;lodash2.mixin=mixin;lodash2.negate=negate;lodash2.nthArg=nthArg;lodash2.omit=omit;lodash2.omitBy=omitBy;lodash2.once=once;lodash2.orderBy=orderBy;lodash2.over=over;lodash2.overArgs=overArgs;lodash2.overEvery=overEvery;lodash2.overSome=overSome;lodash2.partial=partial;lodash2.partialRight=partialRight;lodash2.partition=partition;lodash2.pick=pick;lodash2.pickBy=pickBy;lodash2.property=property2;lodash2.propertyOf=propertyOf;lodash2.pull=pull;lodash2.pullAll=pullAll;lodash2.pullAllBy=pullAllBy;lodash2.pullAllWith=pullAllWith;lodash2.pullAt=pullAt;lodash2.range=range;lodash2.rangeRight=rangeRight;lodash2.rearg=rearg;lodash2.reject=reject;lodash2.remove=remove;lodash2.rest=rest;lodash2.reverse=reverse;lodash2.sampleSize=sampleSize;lodash2.set=set;lodash2.setWith=setWith;lodash2.shuffle=shuffle;lodash2.slice=slice2;lodash2.sortBy=sortBy;lodash2.sortedUniq=sortedUniq;lodash2.sortedUniqBy=sortedUniqBy;lodash2.split=split;lodash2.spread=spread;lodash2.tail=tail;lodash2.take=take;lodash2.takeRight=takeRight;lodash2.takeRightWhile=takeRightWhile;lodash2.takeWhile=takeWhile;lodash2.tap=tap;lodash2.throttle=throttle;lodash2.thru=thru;lodash2.toArray=toArray;lodash2.toPairs=toPairs;lodash2.toPairsIn=toPairsIn;lodash2.toPath=toPath;lodash2.toPlainObject=toPlainObject;lodash2.transform=transform;lodash2.unary=unary;lodash2.union=union;lodash2.unionBy=unionBy;lodash2.unionWith=unionWith;lodash2.uniq=uniq;lodash2.uniqBy=uniqBy;lodash2.uniqWith=uniqWith;lodash2.unset=unset;lodash2.unzip=unzip;lodash2.unzipWith=unzipWith;lodash2.update=update;lodash2.updateWith=updateWith;lodash2.values=values2;lodash2.valuesIn=valuesIn;lodash2.without=without;lodash2.words=words;lodash2.wrap=wrap;lodash2.xor=xor;lodash2.xorBy=xorBy;lodash2.xorWith=xorWith;lodash2.zip=zip;lodash2.zipObject=zipObject;lodash2.zipObjectDeep=zipObjectDeep;lodash2.zipWith=zipWith;lodash2.entries=toPairs;lodash2.entriesIn=toPairsIn;lodash2.extend=assignIn;lodash2.extendWith=assignInWith;mixin(lodash2,lodash2);lodash2.add=add;lodash2.attempt=attempt;lodash2.camelCase=camelCase;lodash2.capitalize=capitalize2;lodash2.ceil=ceil;lodash2.clamp=clamp2;lodash2.clone=clone;lodash2.cloneDeep=cloneDeep;lodash2.cloneDeepWith=cloneDeepWith;lodash2.cloneWith=cloneWith;lodash2.conformsTo=conformsTo;lodash2.deburr=deburr;lodash2.defaultTo=defaultTo;lodash2.divide=divide;lodash2.endsWith=endsWith;lodash2.eq=eq2;lodash2.escape=escape2;lodash2.escapeRegExp=escapeRegExp;lodash2.every=every;lodash2.find=find2;lodash2.findIndex=findIndex2;lodash2.findKey=findKey2;lodash2.findLast=findLast;lodash2.findLastIndex=findLastIndex;lodash2.findLastKey=findLastKey;lodash2.floor=floor2;lodash2.forEach=forEach;lodash2.forEachRight=forEachRight;lodash2.forIn=forIn;lodash2.forInRight=forInRight;lodash2.forOwn=forOwn;lodash2.forOwnRight=forOwnRight;lodash2.get=get2;lodash2.gt=gt;lodash2.gte=gte;lodash2.has=has2;lodash2.hasIn=hasIn2;lodash2.head=head2;lodash2.identity=identity2;lodash2.includes=includes;lodash2.indexOf=indexOf;lodash2.inRange=inRange;lodash2.invoke=invoke;lodash2.isArguments=isArguments2;lodash2.isArray=isArray2;lodash2.isArrayBuffer=isArrayBuffer;lodash2.isArrayLike=isArrayLike2;lodash2.isArrayLikeObject=isArrayLikeObject;lodash2.isBoolean=isBoolean;lodash2.isBuffer=isBuffer2;lodash2.isDate=isDate2;lodash2.isElement=isElement2;lodash2.isEmpty=isEmpty2;lodash2.isEqual=isEqual2;lodash2.isEqualWith=isEqualWith;lodash2.isError=isError;lodash2.isFinite=isFinite2;lodash2.isFunction=isFunction2;lodash2.isInteger=isInteger;lodash2.isLength=isLength2;lodash2.isMap=isMap;lodash2.isMatch=isMatch;lodash2.isMatchWith=isMatchWith;lodash2.isNaN=isNaN2;lodash2.isNative=isNative;lodash2.isNil=isNil;lodash2.isNull=isNull;lodash2.isNumber=isNumber;lodash2.isObject=isObject2;lodash2.isObjectLike=isObjectLike2;lodash2.isPlainObject=isPlainObject2;lodash2.isRegExp=isRegExp;lodash2.isSafeInteger=isSafeInteger;lodash2.isSet=isSet;lodash2.isString=isString2;lodash2.isSymbol=isSymbol2;lodash2.isTypedArray=isTypedArray2;lodash2.isUndefined=isUndefined2;lodash2.isWeakMap=isWeakMap;lodash2.isWeakSet=isWeakSet;lodash2.join=join;lodash2.kebabCase=kebabCase;lodash2.last=last;lodash2.lastIndexOf=lastIndexOf;lodash2.lowerCase=lowerCase;lodash2.lowerFirst=lowerFirst;lodash2.lt=lt;lodash2.lte=lte;lodash2.max=max2;lodash2.maxBy=maxBy;lodash2.mean=mean;lodash2.meanBy=meanBy;lodash2.min=min2;lodash2.minBy=minBy;lodash2.stubArray=stubArray2;lodash2.stubFalse=stubFalse2;lodash2.stubObject=stubObject;lodash2.stubString=stubString;lodash2.stubTrue=stubTrue;lodash2.multiply=multiply;lodash2.nth=nth;lodash2.noConflict=noConflict;lodash2.noop=noop4;lodash2.now=now;lodash2.pad=pad;lodash2.padEnd=padEnd;lodash2.padStart=padStart;lodash2.parseInt=parseInt2;lodash2.random=random;lodash2.reduce=reduce;lodash2.reduceRight=reduceRight;lodash2.repeat=repeat;lodash2.replace=replace2;lodash2.result=result;lodash2.round=round2;lodash2.runInContext=runInContext2;lodash2.sample=sample;lodash2.size=size2;lodash2.snakeCase=snakeCase;lodash2.some=some;lodash2.sortedIndex=sortedIndex;lodash2.sortedIndexBy=sortedIndexBy;lodash2.sortedIndexOf=sortedIndexOf;lodash2.sortedLastIndex=sortedLastIndex;lodash2.sortedLastIndexBy=sortedLastIndexBy;lodash2.sortedLastIndexOf=sortedLastIndexOf;lodash2.startCase=startCase;lodash2.startsWith=startsWith;lodash2.subtract=subtract;lodash2.sum=sum;lodash2.sumBy=sumBy;lodash2.template=template;lodash2.times=times;lodash2.toFinite=toFinite2;lodash2.toInteger=toInteger2;lodash2.toLength=toLength;lodash2.toLower=toLower;lodash2.toNumber=toNumber2;lodash2.toSafeInteger=toSafeInteger;lodash2.toString=toString2;lodash2.toUpper=toUpper;lodash2.trim=trim2;lodash2.trimEnd=trimEnd;lodash2.trimStart=trimStart;lodash2.truncate=truncate;lodash2.unescape=unescape2;lodash2.uniqueId=uniqueId;lodash2.upperCase=upperCase;lodash2.upperFirst=upperFirst;lodash2.each=forEach;lodash2.eachRight=forEachRight;lodash2.first=head2;mixin(lodash2,function(){var source={};baseForOwn2(lodash2,function(func,methodName){if(!hasOwnProperty2.call(lodash2.prototype,methodName)){source[methodName]=func;}});return source;}(),{"chain":false});lodash2.VERSION=VERSION;arrayEach(["bind","bindKey","curry","curryRight","partial","partialRight"],function(methodName){lodash2[methodName].placeholder=lodash2;});arrayEach(["drop","take"],function(methodName,index2){LazyWrapper.prototype[methodName]=function(n){n=n===undefined$1?1:nativeMax2(toInteger2(n),0);var result2=this.__filtered__&&!index2?new LazyWrapper(this):this.clone();if(result2.__filtered__){result2.__takeCount__=nativeMin(n,result2.__takeCount__);}else{result2.__views__.push({"size":nativeMin(n,MAX_ARRAY_LENGTH),"type":methodName+(result2.__dir__<0?"Right":"")});}return result2;};LazyWrapper.prototype[methodName+"Right"]=function(n){return this.reverse()[methodName](n).reverse();};});arrayEach(["filter","map","takeWhile"],function(methodName,index2){var type=index2+1,isFilter=type==LAZY_FILTER_FLAG||type==LAZY_WHILE_FLAG;LazyWrapper.prototype[methodName]=function(iteratee2){var result2=this.clone();result2.__iteratees__.push({"iteratee":getIteratee(iteratee2,3),"type":type});result2.__filtered__=result2.__filtered__||isFilter;return result2;};});arrayEach(["head","last"],function(methodName,index2){var takeName="take"+(index2?"Right":"");LazyWrapper.prototype[methodName]=function(){return this[takeName](1).value()[0];};});arrayEach(["initial","tail"],function(methodName,index2){var dropName="drop"+(index2?"":"Right");LazyWrapper.prototype[methodName]=function(){return this.__filtered__?new LazyWrapper(this):this[dropName](1);};});LazyWrapper.prototype.compact=function(){return this.filter(identity2);};LazyWrapper.prototype.find=function(predicate){return this.filter(predicate).head();};LazyWrapper.prototype.findLast=function(predicate){return this.reverse().find(predicate);};LazyWrapper.prototype.invokeMap=baseRest(function(path,args){if(typeof path=="function"){return new LazyWrapper(this);}return this.map(function(value){return baseInvoke(value,path,args);});});LazyWrapper.prototype.reject=function(predicate){return this.filter(negate(getIteratee(predicate)));};LazyWrapper.prototype.slice=function(start2,end2){start2=toInteger2(start2);var result2=this;if(result2.__filtered__&&(start2>0||end2<0)){return new LazyWrapper(result2);}if(start2<0){result2=result2.takeRight(-start2);}else if(start2){result2=result2.drop(start2);}if(end2!==undefined$1){end2=toInteger2(end2);result2=end2<0?result2.dropRight(-end2):result2.take(end2-start2);}return result2;};LazyWrapper.prototype.takeRightWhile=function(predicate){return this.reverse().takeWhile(predicate).reverse();};LazyWrapper.prototype.toArray=function(){return this.take(MAX_ARRAY_LENGTH);};baseForOwn2(LazyWrapper.prototype,function(func,methodName){var checkIteratee=/^(?:filter|find|map|reject)|While$/.test(methodName),isTaker=/^(?:head|last)$/.test(methodName),lodashFunc=lodash2[isTaker?"take"+(methodName=="last"?"Right":""):methodName],retUnwrapped=isTaker||/^find/.test(methodName);if(!lodashFunc){return;}lodash2.prototype[methodName]=function(){var value=this.__wrapped__,args=isTaker?[1]:arguments,isLazy=value instanceof LazyWrapper,iteratee2=args[0],useLazy=isLazy||isArray2(value);var interceptor=function interceptor(value2){var result3=lodashFunc.apply(lodash2,arrayPush2([value2],args));return isTaker&&chainAll?result3[0]:result3;};if(useLazy&&checkIteratee&&typeof iteratee2=="function"&&iteratee2.length!=1){isLazy=useLazy=false;}var chainAll=this.__chain__,isHybrid=!!this.__actions__.length,isUnwrapped=retUnwrapped&&!chainAll,onlyLazy=isLazy&&!isHybrid;if(!retUnwrapped&&useLazy){value=onlyLazy?value:new LazyWrapper(this);var result2=func.apply(value,args);result2.__actions__.push({"func":thru,"args":[interceptor],"thisArg":undefined$1});return new LodashWrapper(result2,chainAll);}if(isUnwrapped&&onlyLazy){return func.apply(this,args);}result2=this.thru(interceptor);return isUnwrapped?isTaker?result2.value()[0]:result2.value():result2;};});arrayEach(["pop","push","shift","sort","splice","unshift"],function(methodName){var func=arrayProto2[methodName],chainName=/^(?:push|sort|unshift)$/.test(methodName)?"tap":"thru",retUnwrapped=/^(?:pop|shift)$/.test(methodName);lodash2.prototype[methodName]=function(){var args=arguments;if(retUnwrapped&&!this.__chain__){var value=this.value();return func.apply(isArray2(value)?value:[],args);}return this[chainName](function(value2){return func.apply(isArray2(value2)?value2:[],args);});};});baseForOwn2(LazyWrapper.prototype,function(func,methodName){var lodashFunc=lodash2[methodName];if(lodashFunc){var key=lodashFunc.name+"";if(!hasOwnProperty2.call(realNames,key)){realNames[key]=[];}realNames[key].push({"name":methodName,"func":lodashFunc});}});realNames[createHybrid(undefined$1,WRAP_BIND_KEY_FLAG).name]=[{"name":"wrapper","func":undefined$1}];LazyWrapper.prototype.clone=lazyClone;LazyWrapper.prototype.reverse=lazyReverse;LazyWrapper.prototype.value=lazyValue;lodash2.prototype.at=wrapperAt;lodash2.prototype.chain=wrapperChain;lodash2.prototype.commit=wrapperCommit;lodash2.prototype.next=wrapperNext;lodash2.prototype.plant=wrapperPlant;lodash2.prototype.reverse=wrapperReverse;lodash2.prototype.toJSON=lodash2.prototype.valueOf=lodash2.prototype.value=wrapperValue;lodash2.prototype.first=lodash2.prototype.head;if(symIterator){lodash2.prototype[symIterator]=wrapperToIterator;}return lodash2;};var _2=runInContext();if(freeModule){(freeModule.exports=_2)._=_2;freeExports._=_2;}else{root2._=_2;}}).call(commonjsGlobal);})(lodash,lodash.exports);var lodashExports=lodash.exports;var _=/* @__PURE__ */getDefaultExportFromCjs(lodashExports);var Colors={grey:{"900":"#252525","800":"#404040","733":"#666666","700":"#797979","500":"#ACACAC","400":"#D7D7D7","200":"#EDEDED","100":"#F5F5F5","50":"#FAFAFA"},error:{"900":"#9A1414","700":"#D90C0C","500":"#FF5A5A","300":"#FF8383","100":"#FFC8C8","50":"#FCECEB"},success:{"900":"#136A19","700":"#21962A","500":"#1FB62A","300":"#43DC4E","100":"#85EA8D","50":"#CEF3D1"},secondary:{"900":"#A86501","700":"#DC8400","500":"#FF9900","300":"#FFC56F","100":"#FFE1B4","50":"#FFF3D1"},primary:{"900":"#0045AD","700":"#0058DB","500":"#0066FF","300":"#76ADFF","100":"#A7CAFF","50":"#E6F1FF"}};var getColor=function getColor2(category,shade){var _Colors$category;return((_Colors$category=Colors[category])===null||_Colors$category===void 0?void 0:_Colors$category[shade])||"";};var allColors=_.flatMap(Colors,function(shades,category){return _.compact(_.map(shades,function(color2,shade){return color2?{title:"".concat(category," ").concat(shade),color:color2}:null;}));});var ColorOptions=_.map(allColors,"title");var ColorValues=_.map(allColors,"color");var Shades=_.map(Colors["grey"],function(color2,shade){return shade;});var Categories=_.map(Colors,function(shades,category){return category;});var isValidColor=function isValidColor2(color2){return _.includes(ColorValues,color2);};var _excluded$13=["color","size","sx","children","disabled","className"];var CustomIcon=function CustomIcon2(_ref3){var _ref$color=_ref3.color,color2=_ref$color===void 0?getColor("grey","500"):_ref$color,_ref$size=_ref3.size,size2=_ref$size===void 0?"16":_ref$size,sx=_ref3.sx,children=_ref3.children,_ref$disabled=_ref3.disabled,disabled2=_ref$disabled===void 0?false:_ref$disabled,className=_ref3.className,props=_objectWithoutProperties$1(_ref3,_excluded$13);var fontSize=_translateSizeToFontSize(size2);return/* @__PURE__ */jsx$1(SvgIcon,_objectSpread2$1(_objectSpread2$1({className:className},props),{},{sx:_objectSpread2$1(_objectSpread2$1({color:color2,fontSize:"".concat(fontSize,"px"),cursor:disabled2?"default":"pointer",opacity:disabled2?0.5:1,pointerEvents:disabled2?"none":"auto"},sx),{},{"& path":{fill:color2}}),children:children}));};var _translateSizeToFontSize=function _translateSizeToFontSize2(size2){var transform={"32":"38","24":"31","20":"27","16":"23","12":"19","8":"15"};return transform[size2]||transform["16"];};var CloseRoundedIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"}),"CloseRounded");var chip="chip-module_chip_U3kfP";var title$7="chip-module_title_DARz9";var text="chip-module_text_4xvju";var sm$8="chip-module_sm_lA7fZ";var lg$9="chip-module_lg_i8n4n";var tab$1="chip-module_tab_TQ-ke";var grey="chip-module_grey_M9U8T";var active$3="chip-module_active_uJfiq";var disabled$6="chip-module_disabled_21ZO5";var success$1="chip-module_success_BJKfz";var error$3="chip-module_error_an-gm";var secondary="chip-module_secondary_3aQ1S";var primary="chip-module_primary_maGV7";var action$1="chip-module_action_ByEO0";var styles$m={chip:chip,title:title$7,text:text,sm:sm$8,lg:lg$9,tab:tab$1,grey:grey,active:active$3,disabled:disabled$6,success:success$1,error:error$3,secondary:secondary,primary:primary,action:action$1};var Chip2=function Chip3(_ref3){var isActive=_ref3.isActive,title2=_ref3.title,text2=_ref3.text,_ref$onRemove=_ref3.onRemove,onRemove=_ref$onRemove===void 0?void 0:_ref$onRemove,_ref$disabled=_ref3.disabled,disabled2=_ref$disabled===void 0?false:_ref$disabled,_ref$variant=_ref3.variant,variant=_ref$variant===void 0?"primary":_ref$variant,_ref$size=_ref3.size,size2=_ref$size===void 0?"lg":_ref$size;var canRemove=onRemove&&!disabled2;return/* @__PURE__ */jsx$1(Grow,{in:!!text2||!!title2,unmountOnExit:true,children:/* @__PURE__ */jsxs("span",{className:clsx(styles$m.chip,styles$m[variant],styles$m[size2],_defineProperty$1(_defineProperty$1({},styles$m.disabled,disabled2),styles$m.active,isActive)),children:[/* @__PURE__ */jsxs("span",{children:[!!title2&&/* @__PURE__ */jsxs("span",{className:styles$m.title,children:[title2," ",text2&&": "]}),!!text2&&/* @__PURE__ */jsx$1("span",{className:styles$m.text,children:text2})]}),canRemove&&/* @__PURE__ */jsx$1(CustomIcon,{className:styles$m.action,size:"8",onClick:canRemove?onRemove:void 0,color:getColor("grey","700"),children:/* @__PURE__ */jsx$1(CloseRoundedIcon,{})})]})});};var defaultColor$4=getColor("grey","500");var SearchPublication=function SearchPublication2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?100:_ref$size,_ref$color=_ref3.color,color2=_ref$color===void 0?defaultColor$4:_ref$color;var resolvedColor=isValidColor(color2)?color2:defaultColor$4;return/* @__PURE__ */jsx$1("svg",{id:"Capa_1","data-name":"Capa 1",xmlns:"http://www.w3.org/2000/svg",width:size2,height:"100%",viewBox:"0 0 95 95",children:/* @__PURE__ */jsxs("g",{id:"Grupo_1315","data-name":"Grupo 1315",children:[/* @__PURE__ */jsx$1("path",{id:"Trazado_2280","data-name":"Trazado 2280",style:{fill:resolvedColor},d:"M0,13.62c.09-.37.16-.76.26-1.14a7.22,7.22,0,0,1,7-5.28H24.3c.23,0,.3,0,.29-.29a7,7,0,0,1,.58-3.25A6.37,6.37,0,0,1,33.63.6a6.47,6.47,0,0,1,1.75,1.22,6.2,6.2,0,0,1,1.89,4.53c0,.22,0,.43,0,.65s0,.2.21.2H54.63a7.21,7.21,0,0,1,7.24,7.18V34.23a1.45,1.45,0,0,1-1.33,1.55h-.16A1.44,1.44,0,0,1,59,34.5c0-.12,0-.25,0-.37V14.55a4.33,4.33,0,0,0-4.2-4.46H7.4A4.34,4.34,0,0,0,3,13.44a4.07,4.07,0,0,0-.12,1V79.22a4.33,4.33,0,0,0,4.32,4.32H54.44a1.5,1.5,0,0,1,1.49.83,1.45,1.45,0,0,1-.68,1.93,1.39,1.39,0,0,1-.53.14,2.62,2.62,0,0,1-.28,0H7.29A7.25,7.25,0,0,1,.06,80.26c0-.1,0-.21-.06-.3ZM30.91,7.2h3.23c.17,0,.23,0,.22-.22s0-.47,0-.7A3.43,3.43,0,0,0,28,4.62a4.27,4.27,0,0,0-.45,2.3c0,.22,0,.29.27.29,1,0,2.09,0,3.14,0Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2281","data-name":"Trazado 2281",style:{fill:resolvedColor},d:"M54.79,38.4c8.35-.94,15.22,1.7,20.36,8.46A19.94,19.94,0,0,1,79.1,57a20.86,20.86,0,0,1-2,11.63.24.24,0,0,0,.05.34h0L92.23,82.66a5.82,5.82,0,1,1-7.83,8.62l-.07-.06Q76.76,84.37,69.2,77.47c-.15-.13-.23-.09-.37,0a21.24,21.24,0,0,1-7,2.6,21.08,21.08,0,0,1-21-8.55,20.4,20.4,0,0,1-3.79-10A21.15,21.15,0,0,1,51.26,39.31,23.75,23.75,0,0,1,54.79,38.4Zm21.72,18A18.62,18.62,0,1,0,61,77.68h0A18.64,18.64,0,0,0,76.51,56.39Zm15.08,30a3.31,3.31,0,0,0-1.12-2L75.89,71.17c-.16-.14-.23-.14-.36,0a20.4,20.4,0,0,1-4.16,4.49c-.2.15-.19.23,0,.39,1.78,1.6,3.56,3.22,5.34,4.84l9.39,8.52a3.32,3.32,0,0,0,5.5-3Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2282","data-name":"Trazado 2282",style:{fill:resolvedColor},d:"M31,19.9H20.38A5.76,5.76,0,0,1,14.57,15a3.12,3.12,0,0,1,0-1.1,1.45,1.45,0,0,1,2.88.22,2.85,2.85,0,0,0,1.74,2.68A2.54,2.54,0,0,0,20.3,17H42a2.9,2.9,0,0,0,2.89-2.85,1.46,1.46,0,0,1,2.91-.07v.1a5.8,5.8,0,0,1-5.72,5.72Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2283","data-name":"Trazado 2283",style:{fill:resolvedColor},d:"M13.22,68V66.07A1.86,1.86,0,0,1,15,64.15c1.36,0,2.73,0,4.09,0A1.86,1.86,0,0,1,20.88,66q0,2,0,3.93A1.91,1.91,0,0,1,19,71.83c-1.28,0-2.57,0-3.85,0a1.91,1.91,0,0,1-1.91-1.9V68Zm2.24,0v.76a.77.77,0,0,0,.71.85.28.28,0,0,0,.13,0c.5,0,1,0,1.49,0a.78.78,0,0,0,.85-.73v-.09c0-.51,0-1,0-1.54a.76.76,0,0,0-.72-.8h0a12.2,12.2,0,0,0-1.71,0,.76.76,0,0,0-.72.79h0V68Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2284","data-name":"Trazado 2284",style:{fill:resolvedColor},d:"M13.22,52.67V50.75a1.87,1.87,0,0,1,1.83-1.9q2,0,4,0a1.88,1.88,0,0,1,1.84,1.81c0,1.35,0,2.71,0,4.06a1.84,1.84,0,0,1-1.77,1.79,39.85,39.85,0,0,1-4.09,0,1.85,1.85,0,0,1-1.81-1.89.19.19,0,0,1,0-.08ZM17,54.27h.76a.79.79,0,0,0,.84-.73v-.07c0-.52,0-1,0-1.57a.76.76,0,0,0-.71-.79c-.6,0-1.2,0-1.79,0a.74.74,0,0,0-.68.75q0,.83,0,1.65a.77.77,0,0,0,.77.75Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2285","data-name":"Trazado 2285",style:{fill:resolvedColor},d:"M13.22,37.38v-2a1.88,1.88,0,0,1,1.86-1.87q2,0,3.93,0a1.85,1.85,0,0,1,1.86,1.78c0,1.37,0,2.74,0,4.12A1.85,1.85,0,0,1,19,41.23q-2,0-4,0a1.88,1.88,0,0,1-1.85-1.9ZM17.05,39h.75a.8.8,0,0,0,.84-.74v-.06c0-.53,0-1,0-1.57a.77.77,0,0,0-.75-.8H16.2a.77.77,0,0,0-.74.76c0,.55,0,1.1,0,1.66a.77.77,0,0,0,.77.75c.27,0,.54,0,.81,0Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2286","data-name":"Trazado 2286",style:{fill:resolvedColor},d:"M30.54,38.84h-5a1.45,1.45,0,0,1-1.47-1.43A1.48,1.48,0,0,1,25.26,36a2,2,0,0,1,.35,0h9.87a1.45,1.45,0,0,1,.11,2.9H30.54Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2287","data-name":"Trazado 2287",style:{fill:resolvedColor},d:"M28.44,54.14H25.59a1.44,1.44,0,0,1-1.49-1.39s0,0,0-.06a1.48,1.48,0,0,1,1.47-1.46h5.73a1.45,1.45,0,0,1,1.52,1.38,1.44,1.44,0,0,1-1.37,1.52h-3Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2288","data-name":"Trazado 2288",style:{fill:resolvedColor},d:"M27.36,66.54c.63,0,1.26,0,1.9,0a1.44,1.44,0,0,1,1.36,1.27,1.47,1.47,0,0,1-1,1.56,1.6,1.6,0,0,1-.54.07H25.64a1.46,1.46,0,0,1-.17-2.91.43.43,0,0,1,.16,0h1.73Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2289","data-name":"Trazado 2289",style:{fill:resolvedColor},d:"M54.49,47.45a13.8,13.8,0,0,1,8.82,1.95,12.64,12.64,0,0,1,4.62,5.36,18.36,18.36,0,0,1,1.44,4.33,1.24,1.24,0,0,1-1,1.45h0A1.22,1.22,0,0,1,67,59.63a16.4,16.4,0,0,0-1.56-4.37A9.91,9.91,0,0,0,57,49.91a11.82,11.82,0,0,0-2.59.08,1.23,1.23,0,0,1-1.47-.94v0a1.23,1.23,0,0,1,1-1.47H54Z"})]})});};var defaultColor$3=getColor("primary","500");var MailIcon=function MailIcon2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?24:_ref$size,_ref$color=_ref3.color,color2=_ref$color===void 0?defaultColor$3:_ref$color;var resolvedColor=isValidColor(color2)?color2:defaultColor$3;return/* @__PURE__ */jsxs("svg",{width:size2,height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[/* @__PURE__ */jsx$1("path",{d:"M4 4H20C21.1 4 22 4.9 22 6V18C22 19.1 21.1 20 20 20H4C2.9 20 2 19.1 2 18V6C2 4.9 2.9 4 4 4Z",stroke:resolvedColor,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */jsx$1("path",{d:"M22 6L12 13L2 6",stroke:resolvedColor,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});};var defaultColor$2=getColor("primary","500");var FileIcon=function FileIcon2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?24:_ref$size,_ref$color=_ref3.color,color2=_ref$color===void 0?defaultColor$2:_ref$color;var resolvedColor=isValidColor(color2)?color2:defaultColor$2;return/* @__PURE__ */jsxs("svg",{width:size2,height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[/* @__PURE__ */jsx$1("path",{d:"M13 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V9L13 2Z",stroke:resolvedColor,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */jsx$1("path",{d:"M13 2V9H20",stroke:resolvedColor,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});};var defaultColor$1=getColor("primary","500");var PriceDownIcon=function PriceDownIcon2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?24:_ref$size,_ref$color=_ref3.color,color2=_ref$color===void 0?defaultColor$1:_ref$color;var resolvedColor=isValidColor(color2)?color2:defaultColor$1;return/* @__PURE__ */jsxs("svg",{width:size2,height:"100%",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[/* @__PURE__ */jsx$1("path",{d:"M19.012 23.8615C19.2082 24.0664 19.5353 24.0672 19.7325 23.8633L23.2885 20.1866C23.595 19.8697 23.3712 19.3401 22.9303 19.339L15.8363 19.3217C15.3955 19.3206 15.1691 19.8492 15.474 20.1676L19.012 23.8615Z",fill:resolvedColor}),/* @__PURE__ */jsx$1("mask",{id:"path-2-inside-1_1_1191",fill:"white",children:/* @__PURE__ */jsx$1("path",{d:"M21.651 11.1531C22.2033 11.1531 22.6557 10.7044 22.6051 10.1544C22.4392 8.35049 21.8256 6.61063 20.8131 5.09564C19.6148 3.30264 17.9116 1.90517 15.9188 1.07995C13.9261 0.254719 11.7334 0.0388023 9.61795 0.459499C7.50249 0.880196 5.55932 1.91861 4.03417 3.44343C2.50901 4.96825 1.47036 6.91099 1.04957 9.02598C0.628782 11.141 0.844747 13.3332 1.67016 15.3255C2.49557 17.3177 3.89335 19.0206 5.68674 20.2186C7.20212 21.2309 8.94246 21.8444 10.7469 22.0103C11.2969 22.0609 11.7455 21.6084 11.7455 21.0561V20.6624C11.7455 20.1101 11.2962 19.6684 10.7478 19.6037C9.41766 19.4467 8.13837 18.9775 7.01693 18.2283C5.61727 17.2933 4.52637 15.9643 3.88217 14.4094C3.23798 12.8546 3.06943 11.1436 3.39784 9.49297C3.72624 7.84233 4.53686 6.32611 5.72717 5.13606C6.91748 3.94601 8.43404 3.13558 10.085 2.80724C11.7361 2.47891 13.4474 2.64742 15.0026 3.29147C16.5578 3.93552 17.8871 5.02618 18.8223 6.42553C19.5716 7.54666 20.041 8.82559 20.198 10.1553C20.2628 10.7038 20.7044 11.1531 21.2567 11.1531H21.651Z"})}),/* @__PURE__ */jsx$1("path",{d:"M21.651 11.1531C22.2033 11.1531 22.6557 10.7044 22.6051 10.1544C22.4392 8.35049 21.8256 6.61063 20.8131 5.09564C19.6148 3.30264 17.9116 1.90517 15.9188 1.07995C13.9261 0.254719 11.7334 0.0388023 9.61795 0.459499C7.50249 0.880196 5.55932 1.91861 4.03417 3.44343C2.50901 4.96825 1.47036 6.91099 1.04957 9.02598C0.628782 11.141 0.844747 13.3332 1.67016 15.3255C2.49557 17.3177 3.89335 19.0206 5.68674 20.2186C7.20212 21.2309 8.94246 21.8444 10.7469 22.0103C11.2969 22.0609 11.7455 21.6084 11.7455 21.0561V20.6624C11.7455 20.1101 11.2962 19.6684 10.7478 19.6037C9.41766 19.4467 8.13837 18.9775 7.01693 18.2283C5.61727 17.2933 4.52637 15.9643 3.88217 14.4094C3.23798 12.8546 3.06943 11.1436 3.39784 9.49297C3.72624 7.84233 4.53686 6.32611 5.72717 5.13606C6.91748 3.94601 8.43404 3.13558 10.085 2.80724C11.7361 2.47891 13.4474 2.64742 15.0026 3.29147C16.5578 3.93552 17.8871 5.02618 18.8223 6.42553C19.5716 7.54666 20.041 8.82559 20.198 10.1553C20.2628 10.7038 20.7044 11.1531 21.2567 11.1531H21.651Z",fill:"white",stroke:resolvedColor,strokeWidth:"4",mask:"url(#path-2-inside-1_1_1191)"}),/* @__PURE__ */jsx$1("path",{d:"M19.3793 14.424V23.1464",stroke:resolvedColor,strokeWidth:"2"}),/* @__PURE__ */jsx$1("path",{d:"M11.4043 17.7033V4.97607H12.2197V17.7033H11.4043ZM13.567 9.17707C13.5272 8.77603 13.3565 8.46447 13.0549 8.24241C12.7533 8.02034 12.344 7.90931 11.8269 7.90931C11.4756 7.90931 11.179 7.95903 10.937 8.05846C10.6951 8.15458 10.5095 8.28881 10.3802 8.46116C10.2543 8.63351 10.1913 8.82906 10.1913 9.04781C10.1847 9.2301 10.2228 9.38919 10.3056 9.52508C10.3918 9.66097 10.5095 9.77863 10.6586 9.87806C10.8078 9.97418 10.9801 10.0587 11.1757 10.1316C11.3712 10.2012 11.58 10.2609 11.8021 10.3106L12.7168 10.5293C13.161 10.6288 13.5686 10.7613 13.9399 10.9271C14.3111 11.0928 14.6326 11.2966 14.9043 11.5386C15.1761 11.7805 15.3866 12.0656 15.5357 12.3937C15.6882 12.7218 15.7661 13.098 15.7694 13.5222C15.7661 14.1453 15.607 14.6856 15.2921 15.143C14.9806 15.597 14.5298 15.95 13.9399 16.2019C13.3532 16.4505 12.6456 16.5748 11.817 16.5748C10.995 16.5748 10.2791 16.4488 9.66926 16.197C9.06273 15.9451 8.58877 15.5722 8.24739 15.0783C7.90932 14.5812 7.732 13.9664 7.71543 13.2339H9.79852C9.82172 13.5753 9.9195 13.8603 10.0918 14.089C10.2675 14.3144 10.5012 14.4851 10.7928 14.6011C11.0878 14.7138 11.4209 14.7701 11.7921 14.7701C12.1567 14.7701 12.4732 14.7171 12.7417 14.611C13.0135 14.505 13.2239 14.3575 13.3731 14.1685C13.5222 13.9796 13.5968 13.7625 13.5968 13.5173C13.5968 13.2886 13.5289 13.0963 13.393 12.9406C13.2604 12.7848 13.0649 12.6522 12.8063 12.5428C12.5511 12.4335 12.2379 12.334 11.8667 12.2445L10.758 11.9661C9.89961 11.7573 9.22182 11.4309 8.72466 10.9867C8.2275 10.5426 7.98058 9.94435 7.98389 9.19198C7.98058 8.5755 8.14464 8.03692 8.47608 7.57622C8.81083 7.11551 9.26988 6.7559 9.85321 6.49738C10.4365 6.23886 11.0994 6.1096 11.8418 6.1096C12.5975 6.1096 13.2571 6.23886 13.8205 6.49738C14.3873 6.7559 14.8281 7.11551 15.143 7.57622C15.4579 8.03692 15.6203 8.57053 15.6302 9.17707H13.567Z",fill:resolvedColor})]});};var defaultColor=getColor("grey","500");var PriceCloseIcon=function PriceCloseIcon2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?24:_ref$size,_ref$color=_ref3.color,color2=_ref$color===void 0?defaultColor:_ref$color;var resolvedColor=isValidColor(color2)?color2:defaultColor;return/* @__PURE__ */jsxs("svg",{width:size2,height:"100%",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[/* @__PURE__ */jsx$1("path",{d:"M22.6371 18.2207H22.1451V17.2905C22.1505 16.9818 22.0908 16.675 21.9697 16.3883C21.8485 16.1015 21.6681 15.8404 21.4392 15.6203C21.2103 15.4001 20.9373 15.2252 20.6362 15.1059C20.3351 14.9865 20.0119 14.925 19.6854 14.925C19.3589 14.925 19.0357 14.9865 18.7346 15.1059C18.4335 15.2252 18.1605 15.4001 17.9316 15.6203C17.7026 15.8404 17.5223 16.1015 17.4011 16.3883C17.2799 16.675 17.2203 16.9818 17.2257 17.2905V18.2207H16.7337C16.4724 18.2214 16.2221 18.3201 16.0377 18.495C15.8532 18.67 15.7496 18.907 15.7496 19.1541V23.8077C15.7503 24.0543 15.8542 24.2907 16.0386 24.4651C16.223 24.6395 16.4729 24.7378 16.7337 24.7385H22.6405C22.9012 24.7378 23.1511 24.6395 23.3355 24.4651C23.5199 24.2907 23.6238 24.0543 23.6245 23.8077V19.1541C23.6245 19.0315 23.5989 18.9101 23.5493 18.7968C23.4997 18.6835 23.4269 18.5806 23.3352 18.4939C23.2435 18.4072 23.1347 18.3385 23.0149 18.2916C22.8951 18.2447 22.7667 18.2207 22.6371 18.2207ZM19.6837 22.4114C19.4891 22.4114 19.2988 22.3568 19.137 22.2545C18.9752 22.1523 18.8491 22.0069 18.7746 21.8368C18.7001 21.6667 18.6806 21.4795 18.7186 21.299C18.7566 21.1184 18.8503 20.9526 18.9879 20.8224C19.1255 20.6922 19.3008 20.6035 19.4917 20.5676C19.6826 20.5317 19.8805 20.5501 20.0603 20.6206C20.2401 20.691 20.3938 20.8104 20.5019 20.9634C20.61 21.1165 20.6677 21.2965 20.6677 21.4806C20.6665 21.7267 20.5625 21.9624 20.3785 22.1364C20.1945 22.3103 19.9452 22.4085 19.685 22.4095L19.6837 22.4114ZM21.2087 18.2207H18.16V17.2905C18.16 16.9079 18.3207 16.541 18.6067 16.2705C18.8927 15.9999 19.2806 15.8479 19.685 15.8479C20.0895 15.8479 20.4774 15.9999 20.7634 16.2705C21.0494 16.541 21.2101 16.9079 21.2101 17.2905L21.2087 18.2207Z",fill:resolvedColor}),/* @__PURE__ */jsx$1("mask",{id:"path-2-inside-1_1_970",fill:"white",children:/* @__PURE__ */jsx$1("path",{d:"M21.4995 11.6539C22.0518 11.6539 22.5044 11.2052 22.4523 10.6553C22.2811 8.8512 21.6481 7.11114 20.6036 5.596C19.3675 3.80287 17.6105 2.4053 15.5549 1.58001C13.4992 0.75472 11.2373 0.538787 9.05505 0.959515C6.87281 1.38024 4.86829 2.41874 3.29498 3.94367C1.72167 5.4686 0.650236 7.41148 0.216161 9.52663C-0.217914 11.6418 0.00486931 13.8342 0.856338 15.8266C1.70781 17.819 3.14972 19.522 4.99973 20.7201C6.57173 21.7382 8.3784 22.3529 10.251 22.5147C10.8012 22.5622 11.2498 22.11 11.2498 21.5577V21.1638C11.2498 20.6115 10.8007 20.1695 10.2518 20.1087C8.86847 19.9553 7.53753 19.4845 6.37192 18.7296C4.92807 17.7945 3.80272 16.4655 3.13819 14.9105C2.47366 13.3555 2.29979 11.6444 2.63856 9.99366C2.97734 8.34289 3.81354 6.82656 5.04144 5.63642C6.26933 4.44628 7.83376 3.63579 9.5369 3.30743C11.24 2.97907 13.0054 3.1476 14.6097 3.7917C16.214 4.4358 17.5853 5.52654 18.55 6.92599C19.323 8.04726 19.8072 9.32637 19.9692 10.6563C20.0359 11.2045 20.4774 11.6539 21.0297 11.6539H21.4995Z"})}),/* @__PURE__ */jsx$1("path",{d:"M21.4995 11.6539C22.0518 11.6539 22.5044 11.2052 22.4523 10.6553C22.2811 8.8512 21.6481 7.11114 20.6036 5.596C19.3675 3.80287 17.6105 2.4053 15.5549 1.58001C13.4992 0.75472 11.2373 0.538787 9.05505 0.959515C6.87281 1.38024 4.86829 2.41874 3.29498 3.94367C1.72167 5.4686 0.650236 7.41148 0.216161 9.52663C-0.217914 11.6418 0.00486931 13.8342 0.856338 15.8266C1.70781 17.819 3.14972 19.522 4.99973 20.7201C6.57173 21.7382 8.3784 22.3529 10.251 22.5147C10.8012 22.5622 11.2498 22.11 11.2498 21.5577V21.1638C11.2498 20.6115 10.8007 20.1695 10.2518 20.1087C8.86847 19.9553 7.53753 19.4845 6.37192 18.7296C4.92807 17.7945 3.80272 16.4655 3.13819 14.9105C2.47366 13.3555 2.29979 11.6444 2.63856 9.99366C2.97734 8.34289 3.81354 6.82656 5.04144 5.63642C6.26933 4.44628 7.83376 3.63579 9.5369 3.30743C11.24 2.97907 13.0054 3.1476 14.6097 3.7917C16.214 4.4358 17.5853 5.52654 18.55 6.92599C19.323 8.04726 19.8072 9.32637 19.9692 10.6563C20.0359 11.2045 20.4774 11.6539 21.0297 11.6539H21.4995Z",fill:"white",stroke:resolvedColor,strokeWidth:"4",mask:"url(#path-2-inside-1_1_970)"}),/* @__PURE__ */jsx$1("path",{d:"M10.9086 18.2035V5.47624H11.7239V18.2035H10.9086ZM13.0712 9.67723C13.0315 9.27619 12.8608 8.96464 12.5592 8.74258C12.2575 8.52051 11.8482 8.40948 11.3312 8.40948C10.9798 8.40948 10.6832 8.45919 10.4413 8.55863C10.1993 8.65474 10.0137 8.78898 9.88444 8.96133C9.7585 9.13367 9.69552 9.32922 9.69552 9.54797C9.68889 9.73027 9.72701 9.88936 9.80987 10.0252C9.89604 10.1611 10.0137 10.2788 10.1629 10.3782C10.312 10.4743 10.4843 10.5589 10.6799 10.6318C10.8754 10.7014 11.0843 10.761 11.3063 10.8108L12.2211 11.0295C12.6652 11.1289 13.0729 11.2615 13.4441 11.4272C13.8153 11.593 14.1368 11.7968 14.4086 12.0387C14.6804 12.2807 14.8908 12.5657 15.04 12.8939C15.1924 13.222 15.2703 13.5982 15.2736 14.0224C15.2703 14.6455 15.1112 15.1858 14.7964 15.6431C14.4848 16.0972 14.0341 16.4502 13.4441 16.7021C12.8575 16.9507 12.1498 17.075 11.3212 17.075C10.4993 17.075 9.78335 16.949 9.1735 16.6971C8.56697 16.4452 8.09301 16.0724 7.75163 15.5785C7.41356 15.0814 7.23624 14.4665 7.21967 13.7341H9.30277C9.32597 14.0754 9.42374 14.3605 9.59609 14.5892C9.77175 14.8145 10.0054 14.9852 10.2971 15.1012C10.5921 15.2139 10.9252 15.2703 11.2964 15.2703C11.661 15.2703 11.9775 15.2172 12.2459 15.1112C12.5177 15.0051 12.7282 14.8576 12.8773 14.6687C13.0265 14.4798 13.1011 14.2627 13.1011 14.0174C13.1011 13.7887 13.0331 13.5965 12.8972 13.4407C12.7647 13.285 12.5691 13.1524 12.3106 13.043C12.0554 12.9336 11.7422 12.8342 11.3709 12.7447L10.2623 12.4663C9.40386 12.2575 8.72606 11.931 8.2289 11.4869C7.73174 11.0428 7.48482 10.4445 7.48814 9.69215C7.48482 9.07567 7.64888 8.53708 7.98032 8.07638C8.31508 7.61568 8.77412 7.25607 9.35745 6.99755C9.94079 6.73902 10.6037 6.60976 11.3461 6.60976C12.1018 6.60976 12.7613 6.73902 13.3248 6.99755C13.8915 7.25607 14.3324 7.61568 14.6472 8.07638C14.9621 8.53708 15.1245 9.0707 15.1344 9.67723H13.0712Z",fill:resolvedColor})]});};function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o2){return typeof o2;}:function(o2){return o2&&"function"==typeof Symbol&&o2.constructor===Symbol&&o2!==Symbol.prototype?"symbol":typeof o2;},_typeof(o);}function toPrimitive(t,r2){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r2);if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r2?String:Number)(t);}function toPropertyKey(t){var i=toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _defineProperty(e,r2,t){return(r2=toPropertyKey(r2))in e?Object.defineProperty(e,r2,{value:t,enumerable:true,configurable:true,writable:true}):e[r2]=t,e;}function ownKeys(e,r2){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r2&&(o=o.filter(function(r3){return Object.getOwnPropertyDescriptor(e,r3).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread2(e){for(var r2=1;r2<arguments.length;r2++){var t=null!=arguments[r2]?arguments[r2]:{};r2%2?ownKeys(Object(t),true).forEach(function(r3){_defineProperty(e,r3,t[r3]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r3){Object.defineProperty(e,r3,Object.getOwnPropertyDescriptor(t,r3));});}return e;}function _arrayWithHoles(r2){if(Array.isArray(r2))return r2;}function _iterableToArrayLimit(r2,l){var t=null==r2?null:"undefined"!=typeof Symbol&&r2[Symbol.iterator]||r2["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=true,o=false;try{if(i=(t=t.call(r2)).next,0===l){if(Object(t)!==t)return;f=false;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=true);}catch(r3){o=true,n=r3;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayLikeToArray(r2,a){(null==a||a>r2.length)&&(a=r2.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r2[e];return n;}function _unsupportedIterableToArray(r2,a){if(r2){if("string"==typeof r2)return _arrayLikeToArray(r2,a);var t={}.toString.call(r2).slice(8,-1);return"Object"===t&&r2.constructor&&(t=r2.constructor.name),"Map"===t||"Set"===t?Array.from(r2):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r2,a):void 0;}}function _nonIterableRest(){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 _slicedToArray(r2,e){return _arrayWithHoles(r2)||_iterableToArrayLimit(r2,e)||_unsupportedIterableToArray(r2,e)||_nonIterableRest();}function _objectWithoutProperties(e,t){if(null==e)return{};var o,r2,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r2=0;r2<n.length;r2++)o=n[r2],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}var _excluded$12=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function useStateManager(_ref3){var _ref$defaultInputValu=_ref3.defaultInputValue,defaultInputValue=_ref$defaultInputValu===void 0?"":_ref$defaultInputValu,_ref$defaultMenuIsOpe=_ref3.defaultMenuIsOpen,defaultMenuIsOpen=_ref$defaultMenuIsOpe===void 0?false:_ref$defaultMenuIsOpe,_ref$defaultValue=_ref3.defaultValue,defaultValue=_ref$defaultValue===void 0?null:_ref$defaultValue,propsInputValue=_ref3.inputValue,propsMenuIsOpen=_ref3.menuIsOpen,propsOnChange=_ref3.onChange,propsOnInputChange=_ref3.onInputChange,propsOnMenuClose=_ref3.onMenuClose,propsOnMenuOpen=_ref3.onMenuOpen,propsValue=_ref3.value,restSelectProps=_objectWithoutProperties(_ref3,_excluded$12);var _useState=useState(propsInputValue!==void 0?propsInputValue:defaultInputValue),_useState2=_slicedToArray(_useState,2),stateInputValue=_useState2[0],setStateInputValue=_useState2[1];var _useState3=useState(propsMenuIsOpen!==void 0?propsMenuIsOpen:defaultMenuIsOpen),_useState4=_slicedToArray(_useState3,2),stateMenuIsOpen=_useState4[0],setStateMenuIsOpen=_useState4[1];var _useState5=useState(propsValue!==void 0?propsValue:defaultValue),_useState6=_slicedToArray(_useState5,2),stateValue=_useState6[0],setStateValue=_useState6[1];var onChange2=useCallback(function(value2,actionMeta){if(typeof propsOnChange==="function"){propsOnChange(value2,actionMeta);}setStateValue(value2);},[propsOnChange]);var onInputChange2=useCallback(function(value2,actionMeta){var newValue;if(typeof propsOnInputChange==="function"){newValue=propsOnInputChange(value2,actionMeta);}setStateInputValue(newValue!==void 0?newValue:value2);},[propsOnInputChange]);var onMenuOpen=useCallback(function(){if(typeof propsOnMenuOpen==="function"){propsOnMenuOpen();}setStateMenuIsOpen(true);},[propsOnMenuOpen]);var onMenuClose=useCallback(function(){if(typeof propsOnMenuClose==="function"){propsOnMenuClose();}setStateMenuIsOpen(false);},[propsOnMenuClose]);var inputValue=propsInputValue!==void 0?propsInputValue:stateInputValue;var menuIsOpen=propsMenuIsOpen!==void 0?propsMenuIsOpen:stateMenuIsOpen;var value=propsValue!==void 0?propsValue:stateValue;return _objectSpread2(_objectSpread2({},restSelectProps),{},{inputValue:inputValue,menuIsOpen:menuIsOpen,onChange:onChange2,onInputChange:onInputChange2,onMenuClose:onMenuClose,onMenuOpen:onMenuOpen,value:value});}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r2){for(var t=0;t<r2.length;t++){var o=r2[t];o.enumerable=o.enumerable||false,o.configurable=true,"value"in o&&(o.writable=true),Object.defineProperty(e,toPropertyKey(o.key),o);}}function _createClass(e,r2,t){return r2&&_defineProperties(e.prototype,r2),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:false}),e;}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}}),Object.defineProperty(t,"prototype",{writable:false}),e&&_setPrototypeOf(t,e);}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t2){return t2.__proto__||Object.getPrototypeOf(t2);},_getPrototypeOf(t);}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t2){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct2(){return!!t;})();}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _createSuper(t){var r2=_isNativeReflectConstruct();return function(){var e,o=_getPrototypeOf(t);if(r2){var s=_getPrototypeOf(this).constructor;e=Reflect.construct(o,arguments,s);}else e=o.apply(this,arguments);return _possibleConstructorReturn(this,e);};}function _arrayWithoutHoles(r2){if(Array.isArray(r2))return _arrayLikeToArray(r2);}function _iterableToArray(r2){if("undefined"!=typeof Symbol&&null!=r2[Symbol.iterator]||null!=r2["@@iterator"])return Array.from(r2);}function _nonIterableSpread(){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 _toConsumableArray(r2){return _arrayWithoutHoles(r2)||_iterableToArray(r2)||_unsupportedIterableToArray(r2)||_nonIterableSpread();}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}var sides=["top","right","bottom","left"];var min$2=Math.min;var max$2=Math.max;var round$2=Math.round;var floor=Math.floor;var createCoords=function createCoords(v){return{x:v,y:v};};var oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"};var oppositeAlignmentMap={start:"end",end:"start"};function clamp(start2,value,end2){return max$2(start2,min$2(value,end2));}function evaluate(value,param){return typeof value==="function"?value(param):value;}function getSide(placement){return placement.split("-")[0];}function getAlignment(placement){return placement.split("-")[1];}function getOppositeAxis(axis){return axis==="x"?"y":"x";}function getAxisLength(axis){return axis==="y"?"height":"width";}var yAxisSides=/* @__PURE__ */new Set(["top","bottom"]);function getSideAxis(placement){return yAxisSides.has(getSide(placement))?"y":"x";}function getAlignmentAxis(placement){return getOppositeAxis(getSideAxis(placement));}function getAlignmentSides(placement,rects,rtl){if(rtl===void 0){rtl=false;}var alignment=getAlignment(placement);var alignmentAxis=getAlignmentAxis(placement);var length2=getAxisLength(alignmentAxis);var mainAlignmentSide=alignmentAxis==="x"?alignment===(rtl?"end":"start")?"right":"left":alignment==="start"?"bottom":"top";if(rects.reference[length2]>rects.floating[length2]){mainAlignmentSide=getOppositePlacement$1(mainAlignmentSide);}return[mainAlignmentSide,getOppositePlacement$1(mainAlignmentSide)];}function getExpandedPlacements(placement){var oppositePlacement=getOppositePlacement$1(placement);return[getOppositeAlignmentPlacement(placement),oppositePlacement,getOppositeAlignmentPlacement(oppositePlacement)];}function getOppositeAlignmentPlacement(placement){return placement.replace(/start|end/g,function(alignment){return oppositeAlignmentMap[alignment];});}var lrPlacement=["left","right"];var rlPlacement=["right","left"];var tbPlacement=["top","bottom"];var btPlacement=["bottom","top"];function getSideList(side,isStart,rtl){switch(side){case"top":case"bottom":if(rtl)return isStart?rlPlacement:lrPlacement;return isStart?lrPlacement:rlPlacement;case"left":case"right":return isStart?tbPlacement:btPlacement;default:return[];}}function getOppositeAxisPlacements(placement,flipAlignment,direction,rtl){var alignment=getAlignment(placement);var list2=getSideList(getSide(placement),direction==="start",rtl);if(alignment){list2=list2.map(function(side){return side+"-"+alignment;});if(flipAlignment){list2=list2.concat(list2.map(getOppositeAlignmentPlacement));}}return list2;}function getOppositePlacement$1(placement){return placement.replace(/left|right|bottom|top/g,function(side){return oppositeSideMap[side];});}function expandPaddingObject(padding2){return __spreadValues({top:0,right:0,bottom:0,left:0},padding2);}function getPaddingObject(padding2){return typeof padding2!=="number"?expandPaddingObject(padding2):{top:padding2,right:padding2,bottom:padding2,left:padding2};}function rectToClientRect$1(rect){var x=rect.x,y=rect.y,width2=rect.width,height2=rect.height;return{width:width2,height:height2,top:y,left:x,right:x+width2,bottom:y+height2,x:x,y:y};}function computeCoordsFromPlacement(_ref3,placement,rtl){var reference2=_ref3.reference,floating=_ref3.floating;var sideAxis=getSideAxis(placement);var alignmentAxis=getAlignmentAxis(placement);var alignLength=getAxisLength(alignmentAxis);var side=getSide(placement);var isVertical=sideAxis==="y";var commonX=reference2.x+reference2.width/2-floating.width/2;var commonY=reference2.y+reference2.height/2-floating.height/2;var commonAlign=reference2[alignLength]/2-floating[alignLength]/2;var coords;switch(side){case"top":coords={x:commonX,y:reference2.y-floating.height};break;case"bottom":coords={x:commonX,y:reference2.y+reference2.height};break;case"right":coords={x:reference2.x+reference2.width,y:commonY};break;case"left":coords={x:reference2.x-floating.width,y:commonY};break;default:coords={x:reference2.x,y:reference2.y};}switch(getAlignment(placement)){case"start":coords[alignmentAxis]-=commonAlign*(rtl&&isVertical?-1:1);break;case"end":coords[alignmentAxis]+=commonAlign*(rtl&&isVertical?-1:1);break;}return coords;}var computePosition$1=function computePosition$1(reference2,floating,config2){return __async(void 0,null,/*#__PURE__*/_regenerator().m(function _callee(){var _config2$placement,placement,_config2$strategy,strategy,_config2$middleware,middleware2,platform2,validMiddleware,rtl,rects,_computeCoordsFromPla,x,y,statefulPlacement,middlewareData,resetCount,_i0,_validMiddleware$_i,name,fn3,_yield$fn,nextX,nextY,data,reset,_computeCoordsFromPla2,_t;return _regenerator().w(function(_context){while(1)switch(_context.n){case 0:_config2$placement=config2.placement,placement=_config2$placement===void 0?"bottom":_config2$placement,_config2$strategy=config2.strategy,strategy=_config2$strategy===void 0?"absolute":_config2$strategy,_config2$middleware=config2.middleware,middleware2=_config2$middleware===void 0?[]:_config2$middleware,platform2=config2.platform;validMiddleware=middleware2.filter(Boolean);_context.n=1;return platform2.isRTL==null?void 0:platform2.isRTL(floating);case 1:rtl=_context.v;_context.n=2;return platform2.getElementRects({reference:reference2,floating:floating,strategy:strategy});case 2:rects=_context.v;_computeCoordsFromPla=computeCoordsFromPlacement(rects,placement,rtl),x=_computeCoordsFromPla.x,y=_computeCoordsFromPla.y;statefulPlacement=placement;middlewareData={};resetCount=0;_i0=0;case 3:if(!(_i0<validMiddleware.length)){_context.n=11;break;}_validMiddleware$_i=validMiddleware[_i0],name=_validMiddleware$_i.name,fn3=_validMiddleware$_i.fn;_context.n=4;return fn3({x:x,y:y,initialPlacement:placement,placement:statefulPlacement,strategy:strategy,middlewareData:middlewareData,rects:rects,platform:platform2,elements:{reference:reference2,floating:floating}});case 4:_yield$fn=_context.v;nextX=_yield$fn.x;nextY=_yield$fn.y;data=_yield$fn.data;reset=_yield$fn.reset;x=nextX!=null?nextX:x;y=nextY!=null?nextY:y;middlewareData=__spreadProps(__spreadValues({},middlewareData),_defineProperty2({},name,__spreadValues(__spreadValues({},middlewareData[name]),data)));if(!(reset&&resetCount<=50)){_context.n=10;break;}resetCount++;if(!(_typeof2(reset)==="object")){_context.n=9;break;}if(reset.placement){statefulPlacement=reset.placement;}if(!reset.rects){_context.n=8;break;}if(!(reset.rects===true)){_context.n=6;break;}_context.n=5;return platform2.getElementRects({reference:reference2,floating:floating,strategy:strategy});case 5:_t=_context.v;_context.n=7;break;case 6:_t=reset.rects;case 7:rects=_t;case 8:_computeCoordsFromPla2=computeCoordsFromPlacement(rects,statefulPlacement,rtl);x=_computeCoordsFromPla2.x;y=_computeCoordsFromPla2.y;case 9:_i0=-1;case 10:_i0++;_context.n=3;break;case 11:return _context.a(2,{x:x,y:y,placement:statefulPlacement,strategy:strategy,middlewareData:middlewareData});}},_callee);}));};function detectOverflow$1(state,options){return __async(this,null,/*#__PURE__*/_regenerator().m(function _callee2(){var _await$platform$isEle,x,y,platform2,rects,elements,strategy,_evaluate,_evaluate$boundary,boundary,_evaluate$rootBoundar,rootBoundary,_evaluate$elementCont,elementContext,_evaluate$altBoundary,altBoundary,_evaluate$padding,padding2,paddingObject,altContext,element,clippingClientRect,rect,offsetParent,offsetScale,elementClientRect,_t2,_t3,_t4,_t5,_t6,_t7,_t8,_t9,_t0,_t1,_t10,_t11,_t12,_t13;return _regenerator().w(function(_context2){while(1)switch(_context2.n){case 0:if(options===void 0){options={};}x=state.x,y=state.y,platform2=state.platform,rects=state.rects,elements=state.elements,strategy=state.strategy;_evaluate=evaluate(options,state),_evaluate$boundary=_evaluate.boundary,boundary=_evaluate$boundary===void 0?"clippingAncestors":_evaluate$boundary,_evaluate$rootBoundar=_evaluate.rootBoundary,rootBoundary=_evaluate$rootBoundar===void 0?"viewport":_evaluate$rootBoundar,_evaluate$elementCont=_evaluate.elementContext,elementContext=_evaluate$elementCont===void 0?"floating":_evaluate$elementCont,_evaluate$altBoundary=_evaluate.altBoundary,altBoundary=_evaluate$altBoundary===void 0?false:_evaluate$altBoundary,_evaluate$padding=_evaluate.padding,padding2=_evaluate$padding===void 0?0:_evaluate$padding;paddingObject=getPaddingObject(padding2);altContext=elementContext==="floating"?"reference":"floating";element=elements[altBoundary?altContext:elementContext];_t2=rectToClientRect$1;_t3=platform2;_context2.n=1;return platform2.isElement==null?void 0:platform2.isElement(element);case 1:_t4=_await$platform$isEle=_context2.v;if(!(_t4!=null)){_context2.n=2;break;}_t5=_await$platform$isEle;_context2.n=3;break;case 2:_t5=true;case 3:if(!_t5){_context2.n=4;break;}_t6=element;_context2.n=7;break;case 4:_t7=element.contextElement;if(_t7){_context2.n=6;break;}_context2.n=5;return platform2.getDocumentElement==null?void 0:platform2.getDocumentElement(elements.floating);case 5:_t7=_context2.v;case 6:_t6=_t7;case 7:_t8=_t6;_t9=boundary;_t0=rootBoundary;_t1=strategy;_context2.n=8;return _t3.getClippingRect.call(_t3,{element:_t8,boundary:_t9,rootBoundary:_t0,strategy:_t1});case 8:clippingClientRect=_t2(_context2.v);rect=elementContext==="floating"?{x:x,y:y,width:rects.floating.width,height:rects.floating.height}:rects.reference;_context2.n=9;return platform2.getOffsetParent==null?void 0:platform2.getOffsetParent(elements.floating);case 9:offsetParent=_context2.v;_context2.n=10;return platform2.isElement==null?void 0:platform2.isElement(offsetParent);case 10:if(!_context2.v){_context2.n=13;break;}_context2.n=11;return platform2.getScale==null?void 0:platform2.getScale(offsetParent);case 11:_t11=_context2.v;if(_t11){_context2.n=12;break;}_t11={x:1,y:1};case 12:_t10=_t11;_context2.n=14;break;case 13:_t10={x:1,y:1};case 14:offsetScale=_t10;_t12=rectToClientRect$1;if(!platform2.convertOffsetParentRelativeRectToViewportRelativeRect){_context2.n=16;break;}_context2.n=15;return platform2.convertOffsetParentRelativeRectToViewportRelativeRect({elements:elements,rect:rect,offsetParent:offsetParent,strategy:strategy});case 15:_t13=_context2.v;_context2.n=17;break;case 16:_t13=rect;case 17:elementClientRect=_t12(_t13);return _context2.a(2,{top:(clippingClientRect.top-elementClientRect.top+paddingObject.top)/offsetScale.y,bottom:(elementClientRect.bottom-clippingClientRect.bottom+paddingObject.bottom)/offsetScale.y,left:(clippingClientRect.left-elementClientRect.left+paddingObject.left)/offsetScale.x,right:(elementClientRect.right-clippingClientRect.right+paddingObject.right)/offsetScale.x});}},_callee2);}));}var arrow$4=function arrow$4(options){return{name:"arrow",options:options,fn:function fn(state){return __async(this,null,/*#__PURE__*/_regenerator().m(function _callee3(){var x,y,placement,rects,platform2,elements,middlewareData,_ref292,element,_ref292$padding,padding2,paddingObject,coords,axis,length2,arrowDimensions,isYAxis,minProp,maxProp,clientProp,endDiff,startDiff,arrowOffsetParent,clientSize,centerToReference,largestPossiblePadding,minPadding,maxPadding,min$12,max2,center,offset2,shouldAddOffset,alignmentOffset,_t14;return _regenerator().w(function(_context3){while(1)switch(_context3.n){case 0:x=state.x,y=state.y,placement=state.placement,rects=state.rects,platform2=state.platform,elements=state.elements,middlewareData=state.middlewareData;_ref292=evaluate(options,state)||{},element=_ref292.element,_ref292$padding=_ref292.padding,padding2=_ref292$padding===void 0?0:_ref292$padding;if(!(element==null)){_context3.n=1;break;}return _context3.a(2,{});case 1:paddingObject=getPaddingObject(padding2);coords={x:x,y:y};axis=getAlignmentAxis(placement);length2=getAxisLength(axis);_context3.n=2;return platform2.getDimensions(element);case 2:arrowDimensions=_context3.v;isYAxis=axis==="y";minProp=isYAxis?"top":"left";maxProp=isYAxis?"bottom":"right";clientProp=isYAxis?"clientHeight":"clientWidth";endDiff=rects.reference[length2]+rects.reference[axis]-coords[axis]-rects.floating[length2];startDiff=coords[axis]-rects.reference[axis];_context3.n=3;return platform2.getOffsetParent==null?void 0:platform2.getOffsetParent(element);case 3:arrowOffsetParent=_context3.v;clientSize=arrowOffsetParent?arrowOffsetParent[clientProp]:0;_t14=!clientSize;if(_t14){_context3.n=5;break;}_context3.n=4;return platform2.isElement==null?void 0:platform2.isElement(arrowOffsetParent);case 4:_t14=!_context3.v;case 5:if(!_t14){_context3.n=6;break;}clientSize=elements.floating[clientProp]||rects.floating[length2];case 6:centerToReference=endDiff/2-startDiff/2;largestPossiblePadding=clientSize/2-arrowDimensions[length2]/2-1;minPadding=min$2(paddingObject[minProp],largestPossiblePadding);maxPadding=min$2(paddingObject[maxProp],largestPossiblePadding);min$12=minPadding;max2=clientSize-arrowDimensions[length2]-maxPadding;center=clientSize/2-arrowDimensions[length2]/2+centerToReference;offset2=clamp(min$12,center,max2);shouldAddOffset=!middlewareData.arrow&&getAlignment(placement)!=null&¢er!==offset2&&rects.reference[length2]/2-(center<min$12?minPadding:maxPadding)-arrowDimensions[length2]/2<0;alignmentOffset=shouldAddOffset?center<min$12?center-min$12:center-max2:0;return _context3.a(2,_defineProperty2(_defineProperty2(_defineProperty2({},axis,coords[axis]+alignmentOffset),"data",__spreadValues(_defineProperty2(_defineProperty2({},axis,offset2),"centerOffset",center-offset2-alignmentOffset),shouldAddOffset&&{alignmentOffset:alignmentOffset})),"reset",shouldAddOffset));}},_callee3);}));}};};var flip$4=function flip$4(options){if(options===void 0){options={};}return{name:"flip",options:options,fn:function fn(state){return __async(this,null,/*#__PURE__*/_regenerator().m(function _callee4(){var _middlewareData$arrow,_middlewareData$flip,placement,middlewareData,rects,initialPlacement,platform2,elements,_a2,_a2$mainAxis,checkMainAxis,_a2$crossAxis,checkCrossAxis,specifiedFallbackPlacements,_a2$fallbackStrategy,fallbackStrategy,_a2$fallbackAxisSideD,fallbackAxisSideDirection,_a2$flipAlignment,flipAlignment,detectOverflowOptions,side,initialSideAxis,isBasePlacement,rtl,fallbackPlacements,hasFallbackAxisSideDirection,placements2,overflow,overflows,overflowsData,sides2,_middlewareData$flip2,_overflowsData$filter,nextIndex,nextPlacement,ignoreCrossAxisOverflow,resetPlacement,_overflowsData$filter2,placement2,_t15;return _regenerator().w(function(_context4){while(1)switch(_context4.n){case 0:placement=state.placement,middlewareData=state.middlewareData,rects=state.rects,initialPlacement=state.initialPlacement,platform2=state.platform,elements=state.elements;_a2=evaluate(options,state),_a2$mainAxis=_a2.mainAxis,checkMainAxis=_a2$mainAxis===void 0?true:_a2$mainAxis,_a2$crossAxis=_a2.crossAxis,checkCrossAxis=_a2$crossAxis===void 0?true:_a2$crossAxis,specifiedFallbackPlacements=_a2.fallbackPlacements,_a2$fallbackStrategy=_a2.fallbackStrategy,fallbackStrategy=_a2$fallbackStrategy===void 0?"bestFit":_a2$fallbackStrategy,_a2$fallbackAxisSideD=_a2.fallbackAxisSideDirection,fallbackAxisSideDirection=_a2$fallbackAxisSideD===void 0?"none":_a2$fallbackAxisSideD,_a2$flipAlignment=_a2.flipAlignment,flipAlignment=_a2$flipAlignment===void 0?true:_a2$flipAlignment,detectOverflowOptions=__objRest(_a2,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if(!((_middlewareData$arrow=middlewareData.arrow)!=null&&_middlewareData$arrow.alignmentOffset)){_context4.n=1;break;}return _context4.a(2,{});case 1:side=getSide(placement);initialSideAxis=getSideAxis(initialPlacement);isBasePlacement=getSide(initialPlacement)===initialPlacement;_context4.n=2;return platform2.isRTL==null?void 0:platform2.isRTL(elements.floating);case 2:rtl=_context4.v;fallbackPlacements=specifiedFallbackPlacements||(isBasePlacement||!flipAlignment?[getOppositePlacement$1(initialPlacement)]:getExpandedPlacements(initialPlacement));hasFallbackAxisSideDirection=fallbackAxisSideDirection!=="none";if(!specifiedFallbackPlacements&&hasFallbackAxisSideDirection){fallbackPlacements.push.apply(fallbackPlacements,_toConsumableArray2(getOppositeAxisPlacements(initialPlacement,flipAlignment,fallbackAxisSideDirection,rtl)));}placements2=[initialPlacement].concat(_toConsumableArray2(fallbackPlacements));_context4.n=3;return detectOverflow$1(state,detectOverflowOptions);case 3:overflow=_context4.v;overflows=[];overflowsData=((_middlewareData$flip=middlewareData.flip)==null?void 0:_middlewareData$flip.overflows)||[];if(checkMainAxis){overflows.push(overflow[side]);}if(checkCrossAxis){sides2=getAlignmentSides(placement,rects,rtl);overflows.push(overflow[sides2[0]],overflow[sides2[1]]);}overflowsData=[].concat(_toConsumableArray2(overflowsData),[{placement:placement,overflows:overflows}]);if(overflows.every(function(side2){return side2<=0;})){_context4.n=8;break;}nextIndex=(((_middlewareData$flip2=middlewareData.flip)==null?void 0:_middlewareData$flip2.index)||0)+1;nextPlacement=placements2[nextIndex];if(!nextPlacement){_context4.n=4;break;}ignoreCrossAxisOverflow=checkCrossAxis==="alignment"?initialSideAxis!==getSideAxis(nextPlacement):false;if(!(!ignoreCrossAxisOverflow||// We leave the current main axis only if every placement on that axis
|
|
3408
|
+
isIndex2(key,length2)))){result2.push(key);}}return result2;}function arraySample(array){var length2=array.length;return length2?array[baseRandom(0,length2-1)]:undefined$1;}function arraySampleSize(array,n){return shuffleSelf(copyArray(array),baseClamp(n,0,array.length));}function arrayShuffle(array){return shuffleSelf(copyArray(array));}function assignMergeValue(object,key,value){if(value!==undefined$1&&!eq2(object[key],value)||value===undefined$1&&!(key in object)){baseAssignValue(object,key,value);}}function assignValue(object,key,value){var objValue=object[key];if(!(hasOwnProperty2.call(object,key)&&eq2(objValue,value))||value===undefined$1&&!(key in object)){baseAssignValue(object,key,value);}}function assocIndexOf2(array,key){var length2=array.length;while(length2--){if(eq2(array[length2][0],key)){return length2;}}return-1;}function baseAggregator(collection,setter,iteratee2,accumulator){baseEach2(collection,function(value,key,collection2){setter(accumulator,value,iteratee2(value),collection2);});return accumulator;}function baseAssign(object,source){return object&©Object(source,keys2(source),object);}function baseAssignIn(object,source){return object&©Object(source,keysIn(source),object);}function baseAssignValue(object,key,value){if(key=="__proto__"&&defineProperty){defineProperty(object,key,{"configurable":true,"enumerable":true,"value":value,"writable":true});}else{object[key]=value;}}function baseAt(object,paths){var index2=-1,length2=paths.length,result2=Array2(length2),skip=object==null;while(++index2<length2){result2[index2]=skip?undefined$1:get2(object,paths[index2]);}return result2;}function baseClamp(number,lower,upper){if(number===number){if(upper!==undefined$1){number=number<=upper?number:upper;}if(lower!==undefined$1){number=number>=lower?number:lower;}}return number;}function baseClone(value,bitmask,customizer,key,object,stack){var result2,isDeep=bitmask&CLONE_DEEP_FLAG,isFlat=bitmask&CLONE_FLAT_FLAG,isFull=bitmask&CLONE_SYMBOLS_FLAG;if(customizer){result2=object?customizer(value,key,object,stack):customizer(value);}if(result2!==undefined$1){return result2;}if(!isObject2(value)){return value;}var isArr=isArray2(value);if(isArr){result2=initCloneArray(value);if(!isDeep){return copyArray(value,result2);}}else{var tag=getTag2(value),isFunc=tag==funcTag2||tag==genTag2;if(isBuffer2(value)){return cloneBuffer(value,isDeep);}if(tag==objectTag2||tag==argsTag2||isFunc&&!object){result2=isFlat||isFunc?{}:initCloneObject(value);if(!isDeep){return isFlat?copySymbolsIn(value,baseAssignIn(result2,value)):copySymbols(value,baseAssign(result2,value));}}else{if(!cloneableTags[tag]){return object?value:{};}result2=initCloneByTag(value,tag,isDeep);}}stack||(stack=new Stack2());var stacked=stack.get(value);if(stacked){return stacked;}stack.set(value,result2);if(isSet(value)){value.forEach(function(subValue){result2.add(baseClone(subValue,bitmask,customizer,subValue,value,stack));});}else if(isMap(value)){value.forEach(function(subValue,key2){result2.set(key2,baseClone(subValue,bitmask,customizer,key2,value,stack));});}var keysFunc=isFull?isFlat?getAllKeysIn:getAllKeys2:isFlat?keysIn:keys2;var props=isArr?undefined$1:keysFunc(value);arrayEach(props||value,function(subValue,key2){if(props){key2=subValue;subValue=value[key2];}assignValue(result2,key2,baseClone(subValue,bitmask,customizer,key2,value,stack));});return result2;}function baseConforms(source){var props=keys2(source);return function(object){return baseConformsTo(object,source,props);};}function baseConformsTo(object,source,props){var length2=props.length;if(object==null){return!length2;}object=Object2(object);while(length2--){var key=props[length2],predicate=source[key],value=object[key];if(value===undefined$1&&!(key in object)||!predicate(value)){return false;}}return true;}function baseDelay(func,wait,args){if(typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}return setTimeout2(function(){func.apply(undefined$1,args);},wait);}function baseDifference(array,values3,iteratee2,comparator){var index2=-1,includes2=arrayIncludes2,isCommon=true,length2=array.length,result2=[],valuesLength=values3.length;if(!length2){return result2;}if(iteratee2){values3=arrayMap2(values3,baseUnary2(iteratee2));}if(comparator){includes2=arrayIncludesWith;isCommon=false;}else if(values3.length>=LARGE_ARRAY_SIZE2){includes2=cacheHas2;isCommon=false;values3=new SetCache2(values3);}outer:while(++index2<length2){var value=array[index2],computed=iteratee2==null?value:iteratee2(value);value=comparator||value!==0?value:0;if(isCommon&&computed===computed){var valuesIndex=valuesLength;while(valuesIndex--){if(values3[valuesIndex]===computed){continue outer;}}result2.push(value);}else if(!includes2(values3,computed,comparator)){result2.push(value);}}return result2;}var baseEach2=createBaseEach2(baseForOwn2);var baseEachRight=createBaseEach2(baseForOwnRight,true);function baseEvery(collection,predicate){var result2=true;baseEach2(collection,function(value,index2,collection2){result2=!!predicate(value,index2,collection2);return result2;});return result2;}function baseExtremum(array,iteratee2,comparator){var index2=-1,length2=array.length;while(++index2<length2){var value=array[index2],current=iteratee2(value);if(current!=null&&(computed===undefined$1?current===current&&!isSymbol2(current):comparator(current,computed))){var computed=current,result2=value;}}return result2;}function baseFill(array,value,start2,end2){var length2=array.length;start2=toInteger2(start2);if(start2<0){start2=-start2>length2?0:length2+start2;}end2=end2===undefined$1||end2>length2?length2:toInteger2(end2);if(end2<0){end2+=length2;}end2=start2>end2?0:toLength(end2);while(start2<end2){array[start2++]=value;}return array;}function baseFilter(collection,predicate){var result2=[];baseEach2(collection,function(value,index2,collection2){if(predicate(value,index2,collection2)){result2.push(value);}});return result2;}function baseFlatten(array,depth,predicate,isStrict,result2){var index2=-1,length2=array.length;predicate||(predicate=isFlattenable);result2||(result2=[]);while(++index2<length2){var value=array[index2];if(depth>0&&predicate(value)){if(depth>1){baseFlatten(value,depth-1,predicate,isStrict,result2);}else{arrayPush2(result2,value);}}else if(!isStrict){result2[result2.length]=value;}}return result2;}var baseFor2=createBaseFor2();var baseForRight=createBaseFor2(true);function baseForOwn2(object,iteratee2){return object&&baseFor2(object,iteratee2,keys2);}function baseForOwnRight(object,iteratee2){return object&&baseForRight(object,iteratee2,keys2);}function baseFunctions(object,props){return arrayFilter2(props,function(key){return isFunction2(object[key]);});}function baseGet2(object,path){path=castPath2(path,object);var index2=0,length2=path.length;while(object!=null&&index2<length2){object=object[toKey2(path[index2++])];}return index2&&index2==length2?object:undefined$1;}function baseGetAllKeys2(object,keysFunc,symbolsFunc){var result2=keysFunc(object);return isArray2(object)?result2:arrayPush2(result2,symbolsFunc(object));}function baseGetTag2(value){if(value==null){return value===undefined$1?undefinedTag2:nullTag2;}return symToStringTag2&&symToStringTag2 in Object2(value)?getRawTag2(value):objectToString2(value);}function baseGt(value,other){return value>other;}function baseHas(object,key){return object!=null&&hasOwnProperty2.call(object,key);}function baseHasIn2(object,key){return object!=null&&key in Object2(object);}function baseInRange(number,start2,end2){return number>=nativeMin(start2,end2)&&number<nativeMax2(start2,end2);}function baseIntersection(arrays,iteratee2,comparator){var includes2=comparator?arrayIncludesWith:arrayIncludes2,length2=arrays[0].length,othLength=arrays.length,othIndex=othLength,caches=Array2(othLength),maxLength=Infinity,result2=[];while(othIndex--){var array=arrays[othIndex];if(othIndex&&iteratee2){array=arrayMap2(array,baseUnary2(iteratee2));}maxLength=nativeMin(array.length,maxLength);caches[othIndex]=!comparator&&(iteratee2||length2>=120&&array.length>=120)?new SetCache2(othIndex&&array):undefined$1;}array=arrays[0];var index2=-1,seen=caches[0];outer:while(++index2<length2&&result2.length<maxLength){var value=array[index2],computed=iteratee2?iteratee2(value):value;value=comparator||value!==0?value:0;if(!(seen?cacheHas2(seen,computed):includes2(result2,computed,comparator))){othIndex=othLength;while(--othIndex){var cache=caches[othIndex];if(!(cache?cacheHas2(cache,computed):includes2(arrays[othIndex],computed,comparator))){continue outer;}}if(seen){seen.push(computed);}result2.push(value);}}return result2;}function baseInverter(object,setter,iteratee2,accumulator){baseForOwn2(object,function(value,key,object2){setter(accumulator,iteratee2(value),key,object2);});return accumulator;}function baseInvoke(object,path,args){path=castPath2(path,object);object=parent(object,path);var func=object==null?object:object[toKey2(last(path))];return func==null?undefined$1:apply(func,object,args);}function baseIsArguments2(value){return isObjectLike2(value)&&baseGetTag2(value)==argsTag2;}function baseIsArrayBuffer(value){return isObjectLike2(value)&&baseGetTag2(value)==arrayBufferTag2;}function baseIsDate(value){return isObjectLike2(value)&&baseGetTag2(value)==dateTag2;}function baseIsEqual2(value,other,bitmask,customizer,stack){if(value===other){return true;}if(value==null||other==null||!isObjectLike2(value)&&!isObjectLike2(other)){return value!==value&&other!==other;}return baseIsEqualDeep2(value,other,bitmask,customizer,baseIsEqual2,stack);}function baseIsEqualDeep2(object,other,bitmask,customizer,equalFunc,stack){var objIsArr=isArray2(object),othIsArr=isArray2(other),objTag=objIsArr?arrayTag2:getTag2(object),othTag=othIsArr?arrayTag2:getTag2(other);objTag=objTag==argsTag2?objectTag2:objTag;othTag=othTag==argsTag2?objectTag2:othTag;var objIsObj=objTag==objectTag2,othIsObj=othTag==objectTag2,isSameTag=objTag==othTag;if(isSameTag&&isBuffer2(object)){if(!isBuffer2(other)){return false;}objIsArr=true;objIsObj=false;}if(isSameTag&&!objIsObj){stack||(stack=new Stack2());return objIsArr||isTypedArray2(object)?equalArrays2(object,other,bitmask,customizer,equalFunc,stack):equalByTag2(object,other,objTag,bitmask,customizer,equalFunc,stack);}if(!(bitmask&COMPARE_PARTIAL_FLAG2)){var objIsWrapped=objIsObj&&hasOwnProperty2.call(object,"__wrapped__"),othIsWrapped=othIsObj&&hasOwnProperty2.call(other,"__wrapped__");if(objIsWrapped||othIsWrapped){var objUnwrapped=objIsWrapped?object.value():object,othUnwrapped=othIsWrapped?other.value():other;stack||(stack=new Stack2());return equalFunc(objUnwrapped,othUnwrapped,bitmask,customizer,stack);}}if(!isSameTag){return false;}stack||(stack=new Stack2());return equalObjects2(object,other,bitmask,customizer,equalFunc,stack);}function baseIsMap(value){return isObjectLike2(value)&&getTag2(value)==mapTag2;}function baseIsMatch2(object,source,matchData,customizer){var index2=matchData.length,length2=index2,noCustomizer=!customizer;if(object==null){return!length2;}object=Object2(object);while(index2--){var data=matchData[index2];if(noCustomizer&&data[2]?data[1]!==object[data[0]]:!(data[0]in object)){return false;}}while(++index2<length2){data=matchData[index2];var key=data[0],objValue=object[key],srcValue=data[1];if(noCustomizer&&data[2]){if(objValue===undefined$1&&!(key in object)){return false;}}else{var stack=new Stack2();if(customizer){var result2=customizer(objValue,srcValue,key,object,source,stack);}if(!(result2===undefined$1?baseIsEqual2(srcValue,objValue,COMPARE_PARTIAL_FLAG2|COMPARE_UNORDERED_FLAG2,customizer,stack):result2)){return false;}}}return true;}function baseIsNative2(value){if(!isObject2(value)||isMasked2(value)){return false;}var pattern=isFunction2(value)?reIsNative2:reIsHostCtor2;return pattern.test(toSource2(value));}function baseIsRegExp(value){return isObjectLike2(value)&&baseGetTag2(value)==regexpTag2;}function baseIsSet(value){return isObjectLike2(value)&&getTag2(value)==setTag2;}function baseIsTypedArray2(value){return isObjectLike2(value)&&isLength2(value.length)&&!!typedArrayTags2[baseGetTag2(value)];}function baseIteratee2(value){if(typeof value=="function"){return value;}if(value==null){return identity2;}if(_typeof2(value)=="object"){return isArray2(value)?baseMatchesProperty2(value[0],value[1]):baseMatches2(value);}return property2(value);}function baseKeys2(object){if(!isPrototype2(object)){return nativeKeys2(object);}var result2=[];for(var key in Object2(object)){if(hasOwnProperty2.call(object,key)&&key!="constructor"){result2.push(key);}}return result2;}function baseKeysIn(object){if(!isObject2(object)){return nativeKeysIn(object);}var isProto=isPrototype2(object),result2=[];for(var key in object){if(!(key=="constructor"&&(isProto||!hasOwnProperty2.call(object,key)))){result2.push(key);}}return result2;}function baseLt(value,other){return value<other;}function baseMap2(collection,iteratee2){var index2=-1,result2=isArrayLike2(collection)?Array2(collection.length):[];baseEach2(collection,function(value,key,collection2){result2[++index2]=iteratee2(value,key,collection2);});return result2;}function baseMatches2(source){var matchData=getMatchData2(source);if(matchData.length==1&&matchData[0][2]){return matchesStrictComparable2(matchData[0][0],matchData[0][1]);}return function(object){return object===source||baseIsMatch2(object,source,matchData);};}function baseMatchesProperty2(path,srcValue){if(isKey2(path)&&isStrictComparable2(srcValue)){return matchesStrictComparable2(toKey2(path),srcValue);}return function(object){var objValue=get2(object,path);return objValue===undefined$1&&objValue===srcValue?hasIn2(object,path):baseIsEqual2(srcValue,objValue,COMPARE_PARTIAL_FLAG2|COMPARE_UNORDERED_FLAG2);};}function baseMerge(object,source,srcIndex,customizer,stack){if(object===source){return;}baseFor2(source,function(srcValue,key){stack||(stack=new Stack2());if(isObject2(srcValue)){baseMergeDeep(object,source,key,srcIndex,baseMerge,customizer,stack);}else{var newValue=customizer?customizer(safeGet(object,key),srcValue,key+"",object,source,stack):undefined$1;if(newValue===undefined$1){newValue=srcValue;}assignMergeValue(object,key,newValue);}},keysIn);}function baseMergeDeep(object,source,key,srcIndex,mergeFunc,customizer,stack){var objValue=safeGet(object,key),srcValue=safeGet(source,key),stacked=stack.get(srcValue);if(stacked){assignMergeValue(object,key,stacked);return;}var newValue=customizer?customizer(objValue,srcValue,key+"",object,source,stack):undefined$1;var isCommon=newValue===undefined$1;if(isCommon){var isArr=isArray2(srcValue),isBuff=!isArr&&isBuffer2(srcValue),isTyped=!isArr&&!isBuff&&isTypedArray2(srcValue);newValue=srcValue;if(isArr||isBuff||isTyped){if(isArray2(objValue)){newValue=objValue;}else if(isArrayLikeObject(objValue)){newValue=copyArray(objValue);}else if(isBuff){isCommon=false;newValue=cloneBuffer(srcValue,true);}else if(isTyped){isCommon=false;newValue=cloneTypedArray(srcValue,true);}else{newValue=[];}}else if(isPlainObject2(srcValue)||isArguments2(srcValue)){newValue=objValue;if(isArguments2(objValue)){newValue=toPlainObject(objValue);}else if(!isObject2(objValue)||isFunction2(objValue)){newValue=initCloneObject(srcValue);}}else{isCommon=false;}}if(isCommon){stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,stack);stack["delete"](srcValue);}assignMergeValue(object,key,newValue);}function baseNth(array,n){var length2=array.length;if(!length2){return;}n+=n<0?length2:0;return isIndex2(n,length2)?array[n]:undefined$1;}function baseOrderBy(collection,iteratees,orders){if(iteratees.length){iteratees=arrayMap2(iteratees,function(iteratee2){if(isArray2(iteratee2)){return function(value){return baseGet2(value,iteratee2.length===1?iteratee2[0]:iteratee2);};}return iteratee2;});}else{iteratees=[identity2];}var index2=-1;iteratees=arrayMap2(iteratees,baseUnary2(getIteratee()));var result2=baseMap2(collection,function(value,key,collection2){var criteria=arrayMap2(iteratees,function(iteratee2){return iteratee2(value);});return{"criteria":criteria,"index":++index2,"value":value};});return baseSortBy(result2,function(object,other){return compareMultiple(object,other,orders);});}function basePick(object,paths){return basePickBy(object,paths,function(value,path){return hasIn2(object,path);});}function basePickBy(object,paths,predicate){var index2=-1,length2=paths.length,result2={};while(++index2<length2){var path=paths[index2],value=baseGet2(object,path);if(predicate(value,path)){baseSet(result2,castPath2(path,object),value);}}return result2;}function basePropertyDeep2(path){return function(object){return baseGet2(object,path);};}function basePullAll(array,values3,iteratee2,comparator){var indexOf2=comparator?baseIndexOfWith:baseIndexOf,index2=-1,length2=values3.length,seen=array;if(array===values3){values3=copyArray(values3);}if(iteratee2){seen=arrayMap2(array,baseUnary2(iteratee2));}while(++index2<length2){var fromIndex=0,value=values3[index2],computed=iteratee2?iteratee2(value):value;while((fromIndex=indexOf2(seen,computed,fromIndex,comparator))>-1){if(seen!==array){splice2.call(seen,fromIndex,1);}splice2.call(array,fromIndex,1);}}return array;}function basePullAt(array,indexes){var length2=array?indexes.length:0,lastIndex=length2-1;while(length2--){var index2=indexes[length2];if(length2==lastIndex||index2!==previous){var previous=index2;if(isIndex2(index2)){splice2.call(array,index2,1);}else{baseUnset(array,index2);}}}return array;}function baseRandom(lower,upper){return lower+nativeFloor(nativeRandom()*(upper-lower+1));}function baseRange(start2,end2,step,fromRight){var index2=-1,length2=nativeMax2(nativeCeil((end2-start2)/(step||1)),0),result2=Array2(length2);while(length2--){result2[fromRight?length2:++index2]=start2;start2+=step;}return result2;}function baseRepeat(string,n){var result2="";if(!string||n<1||n>MAX_SAFE_INTEGER2){return result2;}do{if(n%2){result2+=string;}n=nativeFloor(n/2);if(n){string+=string;}}while(n);return result2;}function baseRest(func,start2){return setToString(overRest(func,start2,identity2),func+"");}function baseSample(collection){return arraySample(values2(collection));}function baseSampleSize(collection,n){var array=values2(collection);return shuffleSelf(array,baseClamp(n,0,array.length));}function baseSet(object,path,value,customizer){if(!isObject2(object)){return object;}path=castPath2(path,object);var index2=-1,length2=path.length,lastIndex=length2-1,nested=object;while(nested!=null&&++index2<length2){var key=toKey2(path[index2]),newValue=value;if(key==="__proto__"||key==="constructor"||key==="prototype"){return object;}if(index2!=lastIndex){var objValue=nested[key];newValue=customizer?customizer(objValue,key,nested):undefined$1;if(newValue===undefined$1){newValue=isObject2(objValue)?objValue:isIndex2(path[index2+1])?[]:{};}}assignValue(nested,key,newValue);nested=nested[key];}return object;}var baseSetData=!metaMap?identity2:function(func,data){metaMap.set(func,data);return func;};var baseSetToString=!defineProperty?identity2:function(func,string){return defineProperty(func,"toString",{"configurable":true,"enumerable":false,"value":constant(string),"writable":true});};function baseShuffle(collection){return shuffleSelf(values2(collection));}function baseSlice(array,start2,end2){var index2=-1,length2=array.length;if(start2<0){start2=-start2>length2?0:length2+start2;}end2=end2>length2?length2:end2;if(end2<0){end2+=length2;}length2=start2>end2?0:end2-start2>>>0;start2>>>=0;var result2=Array2(length2);while(++index2<length2){result2[index2]=array[index2+start2];}return result2;}function baseSome(collection,predicate){var result2;baseEach2(collection,function(value,index2,collection2){result2=predicate(value,index2,collection2);return!result2;});return!!result2;}function baseSortedIndex(array,value,retHighest){var low=0,high=array==null?low:array.length;if(typeof value=="number"&&value===value&&high<=HALF_MAX_ARRAY_LENGTH){while(low<high){var mid=low+high>>>1,computed=array[mid];if(computed!==null&&!isSymbol2(computed)&&(retHighest?computed<=value:computed<value)){low=mid+1;}else{high=mid;}}return high;}return baseSortedIndexBy(array,value,identity2,retHighest);}function baseSortedIndexBy(array,value,iteratee2,retHighest){var low=0,high=array==null?0:array.length;if(high===0){return 0;}value=iteratee2(value);var valIsNaN=value!==value,valIsNull=value===null,valIsSymbol=isSymbol2(value),valIsUndefined=value===undefined$1;while(low<high){var mid=nativeFloor((low+high)/2),computed=iteratee2(array[mid]),othIsDefined=computed!==undefined$1,othIsNull=computed===null,othIsReflexive=computed===computed,othIsSymbol=isSymbol2(computed);if(valIsNaN){var setLow=retHighest||othIsReflexive;}else if(valIsUndefined){setLow=othIsReflexive&&(retHighest||othIsDefined);}else if(valIsNull){setLow=othIsReflexive&&othIsDefined&&(retHighest||!othIsNull);}else if(valIsSymbol){setLow=othIsReflexive&&othIsDefined&&!othIsNull&&(retHighest||!othIsSymbol);}else if(othIsNull||othIsSymbol){setLow=false;}else{setLow=retHighest?computed<=value:computed<value;}if(setLow){low=mid+1;}else{high=mid;}}return nativeMin(high,MAX_ARRAY_INDEX);}function baseSortedUniq(array,iteratee2){var index2=-1,length2=array.length,resIndex=0,result2=[];while(++index2<length2){var value=array[index2],computed=iteratee2?iteratee2(value):value;if(!index2||!eq2(computed,seen)){var seen=computed;result2[resIndex++]=value===0?0:value;}}return result2;}function baseToNumber(value){if(typeof value=="number"){return value;}if(isSymbol2(value)){return NAN2;}return+value;}function baseToString2(value){if(typeof value=="string"){return value;}if(isArray2(value)){return arrayMap2(value,baseToString2)+"";}if(isSymbol2(value)){return symbolToString2?symbolToString2.call(value):"";}var result2=value+"";return result2=="0"&&1/value==-INFINITY2?"-0":result2;}function baseUniq(array,iteratee2,comparator){var index2=-1,includes2=arrayIncludes2,length2=array.length,isCommon=true,result2=[],seen=result2;if(comparator){isCommon=false;includes2=arrayIncludesWith;}else if(length2>=LARGE_ARRAY_SIZE2){var set2=iteratee2?null:createSet(array);if(set2){return setToArray2(set2);}isCommon=false;includes2=cacheHas2;seen=new SetCache2();}else{seen=iteratee2?[]:result2;}outer:while(++index2<length2){var value=array[index2],computed=iteratee2?iteratee2(value):value;value=comparator||value!==0?value:0;if(isCommon&&computed===computed){var seenIndex=seen.length;while(seenIndex--){if(seen[seenIndex]===computed){continue outer;}}if(iteratee2){seen.push(computed);}result2.push(value);}else if(!includes2(seen,computed,comparator)){if(seen!==result2){seen.push(computed);}result2.push(value);}}return result2;}function baseUnset(object,path){path=castPath2(path,object);object=parent(object,path);return object==null||delete object[toKey2(last(path))];}function baseUpdate(object,path,updater,customizer){return baseSet(object,path,updater(baseGet2(object,path)),customizer);}function baseWhile(array,predicate,isDrop,fromRight){var length2=array.length,index2=fromRight?length2:-1;while((fromRight?index2--:++index2<length2)&&predicate(array[index2],index2,array)){}return isDrop?baseSlice(array,fromRight?0:index2,fromRight?index2+1:length2):baseSlice(array,fromRight?index2+1:0,fromRight?length2:index2);}function baseWrapperValue(value,actions){var result2=value;if(result2 instanceof LazyWrapper){result2=result2.value();}return arrayReduce(actions,function(result3,action2){return action2.func.apply(action2.thisArg,arrayPush2([result3],action2.args));},result2);}function baseXor(arrays,iteratee2,comparator){var length2=arrays.length;if(length2<2){return length2?baseUniq(arrays[0]):[];}var index2=-1,result2=Array2(length2);while(++index2<length2){var array=arrays[index2],othIndex=-1;while(++othIndex<length2){if(othIndex!=index2){result2[index2]=baseDifference(result2[index2]||array,arrays[othIndex],iteratee2,comparator);}}}return baseUniq(baseFlatten(result2,1),iteratee2,comparator);}function baseZipObject(props,values3,assignFunc){var index2=-1,length2=props.length,valsLength=values3.length,result2={};while(++index2<length2){var value=index2<valsLength?values3[index2]:undefined$1;assignFunc(result2,props[index2],value);}return result2;}function castArrayLikeObject(value){return isArrayLikeObject(value)?value:[];}function castFunction(value){return typeof value=="function"?value:identity2;}function castPath2(value,object){if(isArray2(value)){return value;}return isKey2(value,object)?[value]:stringToPath2(toString2(value));}var castRest=baseRest;function castSlice(array,start2,end2){var length2=array.length;end2=end2===undefined$1?length2:end2;return!start2&&end2>=length2?array:baseSlice(array,start2,end2);}var clearTimeout2=ctxClearTimeout||function(id){return root2.clearTimeout(id);};function cloneBuffer(buffer,isDeep){if(isDeep){return buffer.slice();}var length2=buffer.length,result2=allocUnsafe?allocUnsafe(length2):new buffer.constructor(length2);buffer.copy(result2);return result2;}function cloneArrayBuffer(arrayBuffer){var result2=new arrayBuffer.constructor(arrayBuffer.byteLength);new Uint8Array3(result2).set(new Uint8Array3(arrayBuffer));return result2;}function cloneDataView(dataView,isDeep){var buffer=isDeep?cloneArrayBuffer(dataView.buffer):dataView.buffer;return new dataView.constructor(buffer,dataView.byteOffset,dataView.byteLength);}function cloneRegExp(regexp){var result2=new regexp.constructor(regexp.source,reFlags.exec(regexp));result2.lastIndex=regexp.lastIndex;return result2;}function cloneSymbol(symbol){return symbolValueOf2?Object2(symbolValueOf2.call(symbol)):{};}function cloneTypedArray(typedArray,isDeep){var buffer=isDeep?cloneArrayBuffer(typedArray.buffer):typedArray.buffer;return new typedArray.constructor(buffer,typedArray.byteOffset,typedArray.length);}function compareAscending(value,other){if(value!==other){var valIsDefined=value!==undefined$1,valIsNull=value===null,valIsReflexive=value===value,valIsSymbol=isSymbol2(value);var othIsDefined=other!==undefined$1,othIsNull=other===null,othIsReflexive=other===other,othIsSymbol=isSymbol2(other);if(!othIsNull&&!othIsSymbol&&!valIsSymbol&&value>other||valIsSymbol&&othIsDefined&&othIsReflexive&&!othIsNull&&!othIsSymbol||valIsNull&&othIsDefined&&othIsReflexive||!valIsDefined&&othIsReflexive||!valIsReflexive){return 1;}if(!valIsNull&&!valIsSymbol&&!othIsSymbol&&value<other||othIsSymbol&&valIsDefined&&valIsReflexive&&!valIsNull&&!valIsSymbol||othIsNull&&valIsDefined&&valIsReflexive||!othIsDefined&&valIsReflexive||!othIsReflexive){return-1;}}return 0;}function compareMultiple(object,other,orders){var index2=-1,objCriteria=object.criteria,othCriteria=other.criteria,length2=objCriteria.length,ordersLength=orders.length;while(++index2<length2){var result2=compareAscending(objCriteria[index2],othCriteria[index2]);if(result2){if(index2>=ordersLength){return result2;}var order2=orders[index2];return result2*(order2=="desc"?-1:1);}}return object.index-other.index;}function composeArgs(args,partials,holders,isCurried){var argsIndex=-1,argsLength=args.length,holdersLength=holders.length,leftIndex=-1,leftLength=partials.length,rangeLength=nativeMax2(argsLength-holdersLength,0),result2=Array2(leftLength+rangeLength),isUncurried=!isCurried;while(++leftIndex<leftLength){result2[leftIndex]=partials[leftIndex];}while(++argsIndex<holdersLength){if(isUncurried||argsIndex<argsLength){result2[holders[argsIndex]]=args[argsIndex];}}while(rangeLength--){result2[leftIndex++]=args[argsIndex++];}return result2;}function composeArgsRight(args,partials,holders,isCurried){var argsIndex=-1,argsLength=args.length,holdersIndex=-1,holdersLength=holders.length,rightIndex=-1,rightLength=partials.length,rangeLength=nativeMax2(argsLength-holdersLength,0),result2=Array2(rangeLength+rightLength),isUncurried=!isCurried;while(++argsIndex<rangeLength){result2[argsIndex]=args[argsIndex];}var offset2=argsIndex;while(++rightIndex<rightLength){result2[offset2+rightIndex]=partials[rightIndex];}while(++holdersIndex<holdersLength){if(isUncurried||argsIndex<argsLength){result2[offset2+holders[holdersIndex]]=args[argsIndex++];}}return result2;}function copyArray(source,array){var index2=-1,length2=source.length;array||(array=Array2(length2));while(++index2<length2){array[index2]=source[index2];}return array;}function copyObject(source,props,object,customizer){var isNew=!object;object||(object={});var index2=-1,length2=props.length;while(++index2<length2){var key=props[index2];var newValue=customizer?customizer(object[key],source[key],key,object,source):undefined$1;if(newValue===undefined$1){newValue=source[key];}if(isNew){baseAssignValue(object,key,newValue);}else{assignValue(object,key,newValue);}}return object;}function copySymbols(source,object){return copyObject(source,getSymbols2(source),object);}function copySymbolsIn(source,object){return copyObject(source,getSymbolsIn(source),object);}function createAggregator(setter,initializer){return function(collection,iteratee2){var func=isArray2(collection)?arrayAggregator:baseAggregator,accumulator=initializer?initializer():{};return func(collection,setter,getIteratee(iteratee2,2),accumulator);};}function createAssigner(assigner){return baseRest(function(object,sources){var index2=-1,length2=sources.length,customizer=length2>1?sources[length2-1]:undefined$1,guard=length2>2?sources[2]:undefined$1;customizer=assigner.length>3&&typeof customizer=="function"?(length2--,customizer):undefined$1;if(guard&&isIterateeCall(sources[0],sources[1],guard)){customizer=length2<3?undefined$1:customizer;length2=1;}object=Object2(object);while(++index2<length2){var source=sources[index2];if(source){assigner(object,source,index2,customizer);}}return object;});}function createBaseEach2(eachFunc,fromRight){return function(collection,iteratee2){if(collection==null){return collection;}if(!isArrayLike2(collection)){return eachFunc(collection,iteratee2);}var length2=collection.length,index2=fromRight?length2:-1,iterable=Object2(collection);while(fromRight?index2--:++index2<length2){if(iteratee2(iterable[index2],index2,iterable)===false){break;}}return collection;};}function createBaseFor2(fromRight){return function(object,iteratee2,keysFunc){var index2=-1,iterable=Object2(object),props=keysFunc(object),length2=props.length;while(length2--){var key=props[fromRight?length2:++index2];if(iteratee2(iterable[key],key,iterable)===false){break;}}return object;};}function createBind(func,bitmask,thisArg){var isBind=bitmask&WRAP_BIND_FLAG,Ctor=createCtor(func);function wrapper2(){var fn3=this&&this!==root2&&this instanceof wrapper2?Ctor:func;return fn3.apply(isBind?thisArg:this,arguments);}return wrapper2;}function createCaseFirst(methodName){return function(string){string=toString2(string);var strSymbols=hasUnicode(string)?stringToArray(string):undefined$1;var chr=strSymbols?strSymbols[0]:string.charAt(0);var trailing=strSymbols?castSlice(strSymbols,1).join(""):string.slice(1);return chr[methodName]()+trailing;};}function createCompounder(callback){return function(string){return arrayReduce(words(deburr(string).replace(reApos,"")),callback,"");};}function createCtor(Ctor){return function(){var args=arguments;switch(args.length){case 0:return new Ctor();case 1:return new Ctor(args[0]);case 2:return new Ctor(args[0],args[1]);case 3:return new Ctor(args[0],args[1],args[2]);case 4:return new Ctor(args[0],args[1],args[2],args[3]);case 5:return new Ctor(args[0],args[1],args[2],args[3],args[4]);case 6:return new Ctor(args[0],args[1],args[2],args[3],args[4],args[5]);case 7:return new Ctor(args[0],args[1],args[2],args[3],args[4],args[5],args[6]);}var thisBinding=baseCreate(Ctor.prototype),result2=Ctor.apply(thisBinding,args);return isObject2(result2)?result2:thisBinding;};}function createCurry(func,bitmask,arity){var Ctor=createCtor(func);function wrapper2(){var length2=arguments.length,args=Array2(length2),index2=length2,placeholder=getHolder(wrapper2);while(index2--){args[index2]=arguments[index2];}var holders=length2<3&&args[0]!==placeholder&&args[length2-1]!==placeholder?[]:replaceHolders(args,placeholder);length2-=holders.length;if(length2<arity){return createRecurry(func,bitmask,createHybrid,wrapper2.placeholder,undefined$1,args,holders,undefined$1,undefined$1,arity-length2);}var fn3=this&&this!==root2&&this instanceof wrapper2?Ctor:func;return apply(fn3,this,args);}return wrapper2;}function createFind2(findIndexFunc){return function(collection,predicate,fromIndex){var iterable=Object2(collection);if(!isArrayLike2(collection)){var iteratee2=getIteratee(predicate,3);collection=keys2(collection);predicate=function predicate(key){return iteratee2(iterable[key],key,iterable);};}var index2=findIndexFunc(collection,predicate,fromIndex);return index2>-1?iterable[iteratee2?collection[index2]:index2]:undefined$1;};}function createFlow(fromRight){return flatRest(function(funcs){var length2=funcs.length,index2=length2,prereq=LodashWrapper.prototype.thru;if(fromRight){funcs.reverse();}while(index2--){var func=funcs[index2];if(typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}if(prereq&&!wrapper2&&getFuncName(func)=="wrapper"){var wrapper2=new LodashWrapper([],true);}}index2=wrapper2?index2:length2;while(++index2<length2){func=funcs[index2];var funcName=getFuncName(func),data=funcName=="wrapper"?getData(func):undefined$1;if(data&&isLaziable(data[0])&&data[1]==(WRAP_ARY_FLAG|WRAP_CURRY_FLAG|WRAP_PARTIAL_FLAG|WRAP_REARG_FLAG)&&!data[4].length&&data[9]==1){wrapper2=wrapper2[getFuncName(data[0])].apply(wrapper2,data[3]);}else{wrapper2=func.length==1&&isLaziable(func)?wrapper2[funcName]():wrapper2.thru(func);}}return function(){var args=arguments,value=args[0];if(wrapper2&&args.length==1&&isArray2(value)){return wrapper2.plant(value).value();}var index3=0,result2=length2?funcs[index3].apply(this,args):value;while(++index3<length2){result2=funcs[index3].call(this,result2);}return result2;};});}function createHybrid(func,bitmask,thisArg,partials,holders,partialsRight,holdersRight,argPos,ary2,arity){var isAry=bitmask&WRAP_ARY_FLAG,isBind=bitmask&WRAP_BIND_FLAG,isBindKey=bitmask&WRAP_BIND_KEY_FLAG,isCurried=bitmask&(WRAP_CURRY_FLAG|WRAP_CURRY_RIGHT_FLAG),isFlip=bitmask&WRAP_FLIP_FLAG,Ctor=isBindKey?undefined$1:createCtor(func);function wrapper2(){var length2=arguments.length,args=Array2(length2),index2=length2;while(index2--){args[index2]=arguments[index2];}if(isCurried){var placeholder=getHolder(wrapper2),holdersCount=countHolders(args,placeholder);}if(partials){args=composeArgs(args,partials,holders,isCurried);}if(partialsRight){args=composeArgsRight(args,partialsRight,holdersRight,isCurried);}length2-=holdersCount;if(isCurried&&length2<arity){var newHolders=replaceHolders(args,placeholder);return createRecurry(func,bitmask,createHybrid,wrapper2.placeholder,thisArg,args,newHolders,argPos,ary2,arity-length2);}var thisBinding=isBind?thisArg:this,fn3=isBindKey?thisBinding[func]:func;length2=args.length;if(argPos){args=reorder(args,argPos);}else if(isFlip&&length2>1){args.reverse();}if(isAry&&ary2<length2){args.length=ary2;}if(this&&this!==root2&&this instanceof wrapper2){fn3=Ctor||createCtor(fn3);}return fn3.apply(thisBinding,args);}return wrapper2;}function createInverter(setter,toIteratee){return function(object,iteratee2){return baseInverter(object,setter,toIteratee(iteratee2),{});};}function createMathOperation(operator,defaultValue){return function(value,other){var result2;if(value===undefined$1&&other===undefined$1){return defaultValue;}if(value!==undefined$1){result2=value;}if(other!==undefined$1){if(result2===undefined$1){return other;}if(typeof value=="string"||typeof other=="string"){value=baseToString2(value);other=baseToString2(other);}else{value=baseToNumber(value);other=baseToNumber(other);}result2=operator(value,other);}return result2;};}function createOver(arrayFunc){return flatRest(function(iteratees){iteratees=arrayMap2(iteratees,baseUnary2(getIteratee()));return baseRest(function(args){var thisArg=this;return arrayFunc(iteratees,function(iteratee2){return apply(iteratee2,thisArg,args);});});});}function createPadding(length2,chars2){chars2=chars2===undefined$1?" ":baseToString2(chars2);var charsLength=chars2.length;if(charsLength<2){return charsLength?baseRepeat(chars2,length2):chars2;}var result2=baseRepeat(chars2,nativeCeil(length2/stringSize(chars2)));return hasUnicode(chars2)?castSlice(stringToArray(result2),0,length2).join(""):result2.slice(0,length2);}function createPartial(func,bitmask,thisArg,partials){var isBind=bitmask&WRAP_BIND_FLAG,Ctor=createCtor(func);function wrapper2(){var argsIndex=-1,argsLength=arguments.length,leftIndex=-1,leftLength=partials.length,args=Array2(leftLength+argsLength),fn3=this&&this!==root2&&this instanceof wrapper2?Ctor:func;while(++leftIndex<leftLength){args[leftIndex]=partials[leftIndex];}while(argsLength--){args[leftIndex++]=arguments[++argsIndex];}return apply(fn3,isBind?thisArg:this,args);}return wrapper2;}function createRange(fromRight){return function(start2,end2,step){if(step&&typeof step!="number"&&isIterateeCall(start2,end2,step)){end2=step=undefined$1;}start2=toFinite2(start2);if(end2===undefined$1){end2=start2;start2=0;}else{end2=toFinite2(end2);}step=step===undefined$1?start2<end2?1:-1:toFinite2(step);return baseRange(start2,end2,step,fromRight);};}function createRelationalOperation(operator){return function(value,other){if(!(typeof value=="string"&&typeof other=="string")){value=toNumber2(value);other=toNumber2(other);}return operator(value,other);};}function createRecurry(func,bitmask,wrapFunc,placeholder,thisArg,partials,holders,argPos,ary2,arity){var isCurry=bitmask&WRAP_CURRY_FLAG,newHolders=isCurry?holders:undefined$1,newHoldersRight=isCurry?undefined$1:holders,newPartials=isCurry?partials:undefined$1,newPartialsRight=isCurry?undefined$1:partials;bitmask|=isCurry?WRAP_PARTIAL_FLAG:WRAP_PARTIAL_RIGHT_FLAG;bitmask&=~(isCurry?WRAP_PARTIAL_RIGHT_FLAG:WRAP_PARTIAL_FLAG);if(!(bitmask&WRAP_CURRY_BOUND_FLAG)){bitmask&=-4;}var newData=[func,bitmask,thisArg,newPartials,newHolders,newPartialsRight,newHoldersRight,argPos,ary2,arity];var result2=wrapFunc.apply(undefined$1,newData);if(isLaziable(func)){setData(result2,newData);}result2.placeholder=placeholder;return setWrapToString(result2,func,bitmask);}function createRound(methodName){var func=Math2[methodName];return function(number,precision){number=toNumber2(number);precision=precision==null?0:nativeMin(toInteger2(precision),292);if(precision&&nativeIsFinite(number)){var pair=(toString2(number)+"e").split("e"),value=func(pair[0]+"e"+(+pair[1]+precision));pair=(toString2(value)+"e").split("e");return+(pair[0]+"e"+(+pair[1]-precision));}return func(number);};}var createSet=!(Set2&&1/setToArray2(new Set2([,-0]))[1]==INFINITY2)?noop4:function(values3){return new Set2(values3);};function createToPairs(keysFunc){return function(object){var tag=getTag2(object);if(tag==mapTag2){return mapToArray2(object);}if(tag==setTag2){return setToPairs(object);}return baseToPairs(object,keysFunc(object));};}function createWrap(func,bitmask,thisArg,partials,holders,argPos,ary2,arity){var isBindKey=bitmask&WRAP_BIND_KEY_FLAG;if(!isBindKey&&typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}var length2=partials?partials.length:0;if(!length2){bitmask&=-97;partials=holders=undefined$1;}ary2=ary2===undefined$1?ary2:nativeMax2(toInteger2(ary2),0);arity=arity===undefined$1?arity:toInteger2(arity);length2-=holders?holders.length:0;if(bitmask&WRAP_PARTIAL_RIGHT_FLAG){var partialsRight=partials,holdersRight=holders;partials=holders=undefined$1;}var data=isBindKey?undefined$1:getData(func);var newData=[func,bitmask,thisArg,partials,holders,partialsRight,holdersRight,argPos,ary2,arity];if(data){mergeData(newData,data);}func=newData[0];bitmask=newData[1];thisArg=newData[2];partials=newData[3];holders=newData[4];arity=newData[9]=newData[9]===undefined$1?isBindKey?0:func.length:nativeMax2(newData[9]-length2,0);if(!arity&&bitmask&(WRAP_CURRY_FLAG|WRAP_CURRY_RIGHT_FLAG)){bitmask&=-25;}if(!bitmask||bitmask==WRAP_BIND_FLAG){var result2=createBind(func,bitmask,thisArg);}else if(bitmask==WRAP_CURRY_FLAG||bitmask==WRAP_CURRY_RIGHT_FLAG){result2=createCurry(func,bitmask,arity);}else if((bitmask==WRAP_PARTIAL_FLAG||bitmask==(WRAP_BIND_FLAG|WRAP_PARTIAL_FLAG))&&!holders.length){result2=createPartial(func,bitmask,thisArg,partials);}else{result2=createHybrid.apply(undefined$1,newData);}var setter=data?baseSetData:setData;return setWrapToString(setter(result2,newData),func,bitmask);}function customDefaultsAssignIn(objValue,srcValue,key,object){if(objValue===undefined$1||eq2(objValue,objectProto2[key])&&!hasOwnProperty2.call(object,key)){return srcValue;}return objValue;}function customDefaultsMerge(objValue,srcValue,key,object,source,stack){if(isObject2(objValue)&&isObject2(srcValue)){stack.set(srcValue,objValue);baseMerge(objValue,srcValue,undefined$1,customDefaultsMerge,stack);stack["delete"](srcValue);}return objValue;}function customOmitClone(value){return isPlainObject2(value)?undefined$1:value;}function equalArrays2(array,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG2,arrLength=array.length,othLength=other.length;if(arrLength!=othLength&&!(isPartial&&othLength>arrLength)){return false;}var arrStacked=stack.get(array);var othStacked=stack.get(other);if(arrStacked&&othStacked){return arrStacked==other&&othStacked==array;}var index2=-1,result2=true,seen=bitmask&COMPARE_UNORDERED_FLAG2?new SetCache2():undefined$1;stack.set(array,other);stack.set(other,array);while(++index2<arrLength){var arrValue=array[index2],othValue=other[index2];if(customizer){var compared=isPartial?customizer(othValue,arrValue,index2,other,array,stack):customizer(arrValue,othValue,index2,array,other,stack);}if(compared!==undefined$1){if(compared){continue;}result2=false;break;}if(seen){if(!arraySome2(other,function(othValue2,othIndex){if(!cacheHas2(seen,othIndex)&&(arrValue===othValue2||equalFunc(arrValue,othValue2,bitmask,customizer,stack))){return seen.push(othIndex);}})){result2=false;break;}}else if(!(arrValue===othValue||equalFunc(arrValue,othValue,bitmask,customizer,stack))){result2=false;break;}}stack["delete"](array);stack["delete"](other);return result2;}function equalByTag2(object,other,tag,bitmask,customizer,equalFunc,stack){switch(tag){case dataViewTag2:if(object.byteLength!=other.byteLength||object.byteOffset!=other.byteOffset){return false;}object=object.buffer;other=other.buffer;case arrayBufferTag2:if(object.byteLength!=other.byteLength||!equalFunc(new Uint8Array3(object),new Uint8Array3(other))){return false;}return true;case boolTag2:case dateTag2:case numberTag2:return eq2(+object,+other);case errorTag2:return object.name==other.name&&object.message==other.message;case regexpTag2:case stringTag2:return object==other+"";case mapTag2:var convert=mapToArray2;case setTag2:var isPartial=bitmask&COMPARE_PARTIAL_FLAG2;convert||(convert=setToArray2);if(object.size!=other.size&&!isPartial){return false;}var stacked=stack.get(object);if(stacked){return stacked==other;}bitmask|=COMPARE_UNORDERED_FLAG2;stack.set(object,other);var result2=equalArrays2(convert(object),convert(other),bitmask,customizer,equalFunc,stack);stack["delete"](object);return result2;case symbolTag2:if(symbolValueOf2){return symbolValueOf2.call(object)==symbolValueOf2.call(other);}}return false;}function equalObjects2(object,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG2,objProps=getAllKeys2(object),objLength=objProps.length,othProps=getAllKeys2(other),othLength=othProps.length;if(objLength!=othLength&&!isPartial){return false;}var index2=objLength;while(index2--){var key=objProps[index2];if(!(isPartial?key in other:hasOwnProperty2.call(other,key))){return false;}}var objStacked=stack.get(object);var othStacked=stack.get(other);if(objStacked&&othStacked){return objStacked==other&&othStacked==object;}var result2=true;stack.set(object,other);stack.set(other,object);var skipCtor=isPartial;while(++index2<objLength){key=objProps[index2];var objValue=object[key],othValue=other[key];if(customizer){var compared=isPartial?customizer(othValue,objValue,key,other,object,stack):customizer(objValue,othValue,key,object,other,stack);}if(!(compared===undefined$1?objValue===othValue||equalFunc(objValue,othValue,bitmask,customizer,stack):compared)){result2=false;break;}skipCtor||(skipCtor=key=="constructor");}if(result2&&!skipCtor){var objCtor=object.constructor,othCtor=other.constructor;if(objCtor!=othCtor&&"constructor"in object&&"constructor"in other&&!(typeof objCtor=="function"&&objCtor instanceof objCtor&&typeof othCtor=="function"&&othCtor instanceof othCtor)){result2=false;}}stack["delete"](object);stack["delete"](other);return result2;}function flatRest(func){return setToString(overRest(func,undefined$1,flatten),func+"");}function getAllKeys2(object){return baseGetAllKeys2(object,keys2,getSymbols2);}function getAllKeysIn(object){return baseGetAllKeys2(object,keysIn,getSymbolsIn);}var getData=!metaMap?noop4:function(func){return metaMap.get(func);};function getFuncName(func){var result2=func.name+"",array=realNames[result2],length2=hasOwnProperty2.call(realNames,result2)?array.length:0;while(length2--){var data=array[length2],otherFunc=data.func;if(otherFunc==null||otherFunc==func){return data.name;}}return result2;}function getHolder(func){var object=hasOwnProperty2.call(lodash2,"placeholder")?lodash2:func;return object.placeholder;}function getIteratee(){var result2=lodash2.iteratee||iteratee;result2=result2===iteratee?baseIteratee2:result2;return arguments.length?result2(arguments[0],arguments[1]):result2;}function getMapData2(map3,key){var data=map3.__data__;return isKeyable2(key)?data[typeof key=="string"?"string":"hash"]:data.map;}function getMatchData2(object){var result2=keys2(object),length2=result2.length;while(length2--){var key=result2[length2],value=object[key];result2[length2]=[key,value,isStrictComparable2(value)];}return result2;}function getNative2(object,key){var value=getValue2(object,key);return baseIsNative2(value)?value:undefined$1;}function getRawTag2(value){var isOwn=hasOwnProperty2.call(value,symToStringTag2),tag=value[symToStringTag2];try{value[symToStringTag2]=undefined$1;var unmasked=true;}catch(e){}var result2=nativeObjectToString2.call(value);if(unmasked){if(isOwn){value[symToStringTag2]=tag;}else{delete value[symToStringTag2];}}return result2;}var getSymbols2=!nativeGetSymbols2?stubArray2:function(object){if(object==null){return[];}object=Object2(object);return arrayFilter2(nativeGetSymbols2(object),function(symbol){return propertyIsEnumerable2.call(object,symbol);});};var getSymbolsIn=!nativeGetSymbols2?stubArray2:function(object){var result2=[];while(object){arrayPush2(result2,getSymbols2(object));object=getPrototype(object);}return result2;};var getTag2=baseGetTag2;if(DataView2&&getTag2(new DataView2(new ArrayBuffer(1)))!=dataViewTag2||Map2&&getTag2(new Map2())!=mapTag2||Promise2&&getTag2(Promise2.resolve())!=promiseTag2||Set2&&getTag2(new Set2())!=setTag2||WeakMap2&&getTag2(new WeakMap2())!=weakMapTag2){getTag2=function getTag2(value){var result2=baseGetTag2(value),Ctor=result2==objectTag2?value.constructor:undefined$1,ctorString=Ctor?toSource2(Ctor):"";if(ctorString){switch(ctorString){case dataViewCtorString2:return dataViewTag2;case mapCtorString2:return mapTag2;case promiseCtorString2:return promiseTag2;case setCtorString2:return setTag2;case weakMapCtorString2:return weakMapTag2;}}return result2;};}function getView(start2,end2,transforms){var index2=-1,length2=transforms.length;while(++index2<length2){var data=transforms[index2],size3=data.size;switch(data.type){case"drop":start2+=size3;break;case"dropRight":end2-=size3;break;case"take":end2=nativeMin(end2,start2+size3);break;case"takeRight":start2=nativeMax2(start2,end2-size3);break;}}return{"start":start2,"end":end2};}function getWrapDetails(source){var match2=source.match(reWrapDetails);return match2?match2[1].split(reSplitDetails):[];}function hasPath2(object,path,hasFunc){path=castPath2(path,object);var index2=-1,length2=path.length,result2=false;while(++index2<length2){var key=toKey2(path[index2]);if(!(result2=object!=null&&hasFunc(object,key))){break;}object=object[key];}if(result2||++index2!=length2){return result2;}length2=object==null?0:object.length;return!!length2&&isLength2(length2)&&isIndex2(key,length2)&&(isArray2(object)||isArguments2(object));}function initCloneArray(array){var length2=array.length,result2=new array.constructor(length2);if(length2&&typeof array[0]=="string"&&hasOwnProperty2.call(array,"index")){result2.index=array.index;result2.input=array.input;}return result2;}function initCloneObject(object){return typeof object.constructor=="function"&&!isPrototype2(object)?baseCreate(getPrototype(object)):{};}function initCloneByTag(object,tag,isDeep){var Ctor=object.constructor;switch(tag){case arrayBufferTag2:return cloneArrayBuffer(object);case boolTag2:case dateTag2:return new Ctor(+object);case dataViewTag2:return cloneDataView(object,isDeep);case float32Tag2:case float64Tag2:case int8Tag2:case int16Tag2:case int32Tag2:case uint8Tag2:case uint8ClampedTag2:case uint16Tag2:case uint32Tag2:return cloneTypedArray(object,isDeep);case mapTag2:return new Ctor();case numberTag2:case stringTag2:return new Ctor(object);case regexpTag2:return cloneRegExp(object);case setTag2:return new Ctor();case symbolTag2:return cloneSymbol(object);}}function insertWrapDetails(source,details){var length2=details.length;if(!length2){return source;}var lastIndex=length2-1;details[lastIndex]=(length2>1?"& ":"")+details[lastIndex];details=details.join(length2>2?", ":" ");return source.replace(reWrapComment,"{\n/* [wrapped with "+details+"] */\n");}function isFlattenable(value){return isArray2(value)||isArguments2(value)||!!(spreadableSymbol&&value&&value[spreadableSymbol]);}function isIndex2(value,length2){var type=_typeof2(value);length2=length2==null?MAX_SAFE_INTEGER2:length2;return!!length2&&(type=="number"||type!="symbol"&&reIsUint2.test(value))&&value>-1&&value%1==0&&value<length2;}function isIterateeCall(value,index2,object){if(!isObject2(object)){return false;}var type=_typeof2(index2);if(type=="number"?isArrayLike2(object)&&isIndex2(index2,object.length):type=="string"&&index2 in object){return eq2(object[index2],value);}return false;}function isKey2(value,object){if(isArray2(value)){return false;}var type=_typeof2(value);if(type=="number"||type=="symbol"||type=="boolean"||value==null||isSymbol2(value)){return true;}return reIsPlainProp2.test(value)||!reIsDeepProp2.test(value)||object!=null&&value in Object2(object);}function isKeyable2(value){var type=_typeof2(value);return type=="string"||type=="number"||type=="symbol"||type=="boolean"?value!=="__proto__":value===null;}function isLaziable(func){var funcName=getFuncName(func),other=lodash2[funcName];if(typeof other!="function"||!(funcName in LazyWrapper.prototype)){return false;}if(func===other){return true;}var data=getData(other);return!!data&&func===data[0];}function isMasked2(func){return!!maskSrcKey2&&maskSrcKey2 in func;}var isMaskable=coreJsData2?isFunction2:stubFalse2;function isPrototype2(value){var Ctor=value&&value.constructor,proto=typeof Ctor=="function"&&Ctor.prototype||objectProto2;return value===proto;}function isStrictComparable2(value){return value===value&&!isObject2(value);}function matchesStrictComparable2(key,srcValue){return function(object){if(object==null){return false;}return object[key]===srcValue&&(srcValue!==undefined$1||key in Object2(object));};}function memoizeCapped2(func){var result2=memoize2(func,function(key){if(cache.size===MAX_MEMOIZE_SIZE2){cache.clear();}return key;});var cache=result2.cache;return result2;}function mergeData(data,source){var bitmask=data[1],srcBitmask=source[1],newBitmask=bitmask|srcBitmask,isCommon=newBitmask<(WRAP_BIND_FLAG|WRAP_BIND_KEY_FLAG|WRAP_ARY_FLAG);var isCombo=srcBitmask==WRAP_ARY_FLAG&&bitmask==WRAP_CURRY_FLAG||srcBitmask==WRAP_ARY_FLAG&&bitmask==WRAP_REARG_FLAG&&data[7].length<=source[8]||srcBitmask==(WRAP_ARY_FLAG|WRAP_REARG_FLAG)&&source[7].length<=source[8]&&bitmask==WRAP_CURRY_FLAG;if(!(isCommon||isCombo)){return data;}if(srcBitmask&WRAP_BIND_FLAG){data[2]=source[2];newBitmask|=bitmask&WRAP_BIND_FLAG?0:WRAP_CURRY_BOUND_FLAG;}var value=source[3];if(value){var partials=data[3];data[3]=partials?composeArgs(partials,value,source[4]):value;data[4]=partials?replaceHolders(data[3],PLACEHOLDER):source[4];}value=source[5];if(value){partials=data[5];data[5]=partials?composeArgsRight(partials,value,source[6]):value;data[6]=partials?replaceHolders(data[5],PLACEHOLDER):source[6];}value=source[7];if(value){data[7]=value;}if(srcBitmask&WRAP_ARY_FLAG){data[8]=data[8]==null?source[8]:nativeMin(data[8],source[8]);}if(data[9]==null){data[9]=source[9];}data[0]=source[0];data[1]=newBitmask;return data;}function nativeKeysIn(object){var result2=[];if(object!=null){for(var key in Object2(object)){result2.push(key);}}return result2;}function objectToString2(value){return nativeObjectToString2.call(value);}function overRest(func,start2,transform2){start2=nativeMax2(start2===undefined$1?func.length-1:start2,0);return function(){var args=arguments,index2=-1,length2=nativeMax2(args.length-start2,0),array=Array2(length2);while(++index2<length2){array[index2]=args[start2+index2];}index2=-1;var otherArgs=Array2(start2+1);while(++index2<start2){otherArgs[index2]=args[index2];}otherArgs[start2]=transform2(array);return apply(func,this,otherArgs);};}function parent(object,path){return path.length<2?object:baseGet2(object,baseSlice(path,0,-1));}function reorder(array,indexes){var arrLength=array.length,length2=nativeMin(indexes.length,arrLength),oldArray=copyArray(array);while(length2--){var index2=indexes[length2];array[length2]=isIndex2(index2,arrLength)?oldArray[index2]:undefined$1;}return array;}function safeGet(object,key){if(key==="constructor"&&typeof object[key]==="function"){return;}if(key=="__proto__"){return;}return object[key];}var setData=shortOut(baseSetData);var setTimeout2=ctxSetTimeout||function(func,wait){return root2.setTimeout(func,wait);};var setToString=shortOut(baseSetToString);function setWrapToString(wrapper2,reference2,bitmask){var source=reference2+"";return setToString(wrapper2,insertWrapDetails(source,updateWrapDetails(getWrapDetails(source),bitmask)));}function shortOut(func){var count2=0,lastCalled=0;return function(){var stamp=nativeNow(),remaining=HOT_SPAN-(stamp-lastCalled);lastCalled=stamp;if(remaining>0){if(++count2>=HOT_COUNT){return arguments[0];}}else{count2=0;}return func.apply(undefined$1,arguments);};}function shuffleSelf(array,size3){var index2=-1,length2=array.length,lastIndex=length2-1;size3=size3===undefined$1?length2:size3;while(++index2<size3){var rand=baseRandom(index2,lastIndex),value=array[rand];array[rand]=array[index2];array[index2]=value;}array.length=size3;return array;}var stringToPath2=memoizeCapped2(function(string){var result2=[];if(string.charCodeAt(0)===46){result2.push("");}string.replace(rePropName2,function(match2,number,quote,subString){result2.push(quote?subString.replace(reEscapeChar2,"$1"):number||match2);});return result2;});function toKey2(value){if(typeof value=="string"||isSymbol2(value)){return value;}var result2=value+"";return result2=="0"&&1/value==-INFINITY2?"-0":result2;}function toSource2(func){if(func!=null){try{return funcToString2.call(func);}catch(e){}try{return func+"";}catch(e){}}return"";}function updateWrapDetails(details,bitmask){arrayEach(wrapFlags,function(pair){var value="_."+pair[0];if(bitmask&pair[1]&&!arrayIncludes2(details,value)){details.push(value);}});return details.sort();}function wrapperClone(wrapper2){if(wrapper2 instanceof LazyWrapper){return wrapper2.clone();}var result2=new LodashWrapper(wrapper2.__wrapped__,wrapper2.__chain__);result2.__actions__=copyArray(wrapper2.__actions__);result2.__index__=wrapper2.__index__;result2.__values__=wrapper2.__values__;return result2;}function chunk(array,size3,guard){if(guard?isIterateeCall(array,size3,guard):size3===undefined$1){size3=1;}else{size3=nativeMax2(toInteger2(size3),0);}var length2=array==null?0:array.length;if(!length2||size3<1){return[];}var index2=0,resIndex=0,result2=Array2(nativeCeil(length2/size3));while(index2<length2){result2[resIndex++]=baseSlice(array,index2,index2+=size3);}return result2;}function compact(array){var index2=-1,length2=array==null?0:array.length,resIndex=0,result2=[];while(++index2<length2){var value=array[index2];if(value){result2[resIndex++]=value;}}return result2;}function concat(){var length2=arguments.length;if(!length2){return[];}var args=Array2(length2-1),array=arguments[0],index2=length2;while(index2--){args[index2-1]=arguments[index2];}return arrayPush2(isArray2(array)?copyArray(array):[array],baseFlatten(args,1));}var difference=baseRest(function(array,values3){return isArrayLikeObject(array)?baseDifference(array,baseFlatten(values3,1,isArrayLikeObject,true)):[];});var differenceBy=baseRest(function(array,values3){var iteratee2=last(values3);if(isArrayLikeObject(iteratee2)){iteratee2=undefined$1;}return isArrayLikeObject(array)?baseDifference(array,baseFlatten(values3,1,isArrayLikeObject,true),getIteratee(iteratee2,2)):[];});var differenceWith=baseRest(function(array,values3){var comparator=last(values3);if(isArrayLikeObject(comparator)){comparator=undefined$1;}return isArrayLikeObject(array)?baseDifference(array,baseFlatten(values3,1,isArrayLikeObject,true),undefined$1,comparator):[];});function drop(array,n,guard){var length2=array==null?0:array.length;if(!length2){return[];}n=guard||n===undefined$1?1:toInteger2(n);return baseSlice(array,n<0?0:n,length2);}function dropRight(array,n,guard){var length2=array==null?0:array.length;if(!length2){return[];}n=guard||n===undefined$1?1:toInteger2(n);n=length2-n;return baseSlice(array,0,n<0?0:n);}function dropRightWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3),true,true):[];}function dropWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3),true):[];}function fill(array,value,start2,end2){var length2=array==null?0:array.length;if(!length2){return[];}if(start2&&typeof start2!="number"&&isIterateeCall(array,value,start2)){start2=0;end2=length2;}return baseFill(array,value,start2,end2);}function findIndex2(array,predicate,fromIndex){var length2=array==null?0:array.length;if(!length2){return-1;}var index2=fromIndex==null?0:toInteger2(fromIndex);if(index2<0){index2=nativeMax2(length2+index2,0);}return baseFindIndex2(array,getIteratee(predicate,3),index2);}function findLastIndex(array,predicate,fromIndex){var length2=array==null?0:array.length;if(!length2){return-1;}var index2=length2-1;if(fromIndex!==undefined$1){index2=toInteger2(fromIndex);index2=fromIndex<0?nativeMax2(length2+index2,0):nativeMin(index2,length2-1);}return baseFindIndex2(array,getIteratee(predicate,3),index2,true);}function flatten(array){var length2=array==null?0:array.length;return length2?baseFlatten(array,1):[];}function flattenDeep(array){var length2=array==null?0:array.length;return length2?baseFlatten(array,INFINITY2):[];}function flattenDepth(array,depth){var length2=array==null?0:array.length;if(!length2){return[];}depth=depth===undefined$1?1:toInteger2(depth);return baseFlatten(array,depth);}function fromPairs(pairs){var index2=-1,length2=pairs==null?0:pairs.length,result2={};while(++index2<length2){var pair=pairs[index2];result2[pair[0]]=pair[1];}return result2;}function head2(array){return array&&array.length?array[0]:undefined$1;}function indexOf(array,value,fromIndex){var length2=array==null?0:array.length;if(!length2){return-1;}var index2=fromIndex==null?0:toInteger2(fromIndex);if(index2<0){index2=nativeMax2(length2+index2,0);}return baseIndexOf(array,value,index2);}function initial(array){var length2=array==null?0:array.length;return length2?baseSlice(array,0,-1):[];}var intersection=baseRest(function(arrays){var mapped=arrayMap2(arrays,castArrayLikeObject);return mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped):[];});var intersectionBy=baseRest(function(arrays){var iteratee2=last(arrays),mapped=arrayMap2(arrays,castArrayLikeObject);if(iteratee2===last(mapped)){iteratee2=undefined$1;}else{mapped.pop();}return mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped,getIteratee(iteratee2,2)):[];});var intersectionWith=baseRest(function(arrays){var comparator=last(arrays),mapped=arrayMap2(arrays,castArrayLikeObject);comparator=typeof comparator=="function"?comparator:undefined$1;if(comparator){mapped.pop();}return mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped,undefined$1,comparator):[];});function join(array,separator){return array==null?"":nativeJoin.call(array,separator);}function last(array){var length2=array==null?0:array.length;return length2?array[length2-1]:undefined$1;}function lastIndexOf(array,value,fromIndex){var length2=array==null?0:array.length;if(!length2){return-1;}var index2=length2;if(fromIndex!==undefined$1){index2=toInteger2(fromIndex);index2=index2<0?nativeMax2(length2+index2,0):nativeMin(index2,length2-1);}return value===value?strictLastIndexOf(array,value,index2):baseFindIndex2(array,baseIsNaN,index2,true);}function nth(array,n){return array&&array.length?baseNth(array,toInteger2(n)):undefined$1;}var pull=baseRest(pullAll);function pullAll(array,values3){return array&&array.length&&values3&&values3.length?basePullAll(array,values3):array;}function pullAllBy(array,values3,iteratee2){return array&&array.length&&values3&&values3.length?basePullAll(array,values3,getIteratee(iteratee2,2)):array;}function pullAllWith(array,values3,comparator){return array&&array.length&&values3&&values3.length?basePullAll(array,values3,undefined$1,comparator):array;}var pullAt=flatRest(function(array,indexes){var length2=array==null?0:array.length,result2=baseAt(array,indexes);basePullAt(array,arrayMap2(indexes,function(index2){return isIndex2(index2,length2)?+index2:index2;}).sort(compareAscending));return result2;});function remove(array,predicate){var result2=[];if(!(array&&array.length)){return result2;}var index2=-1,indexes=[],length2=array.length;predicate=getIteratee(predicate,3);while(++index2<length2){var value=array[index2];if(predicate(value,index2,array)){result2.push(value);indexes.push(index2);}}basePullAt(array,indexes);return result2;}function reverse(array){return array==null?array:nativeReverse.call(array);}function slice2(array,start2,end2){var length2=array==null?0:array.length;if(!length2){return[];}if(end2&&typeof end2!="number"&&isIterateeCall(array,start2,end2)){start2=0;end2=length2;}else{start2=start2==null?0:toInteger2(start2);end2=end2===undefined$1?length2:toInteger2(end2);}return baseSlice(array,start2,end2);}function sortedIndex(array,value){return baseSortedIndex(array,value);}function sortedIndexBy(array,value,iteratee2){return baseSortedIndexBy(array,value,getIteratee(iteratee2,2));}function sortedIndexOf(array,value){var length2=array==null?0:array.length;if(length2){var index2=baseSortedIndex(array,value);if(index2<length2&&eq2(array[index2],value)){return index2;}}return-1;}function sortedLastIndex(array,value){return baseSortedIndex(array,value,true);}function sortedLastIndexBy(array,value,iteratee2){return baseSortedIndexBy(array,value,getIteratee(iteratee2,2),true);}function sortedLastIndexOf(array,value){var length2=array==null?0:array.length;if(length2){var index2=baseSortedIndex(array,value,true)-1;if(eq2(array[index2],value)){return index2;}}return-1;}function sortedUniq(array){return array&&array.length?baseSortedUniq(array):[];}function sortedUniqBy(array,iteratee2){return array&&array.length?baseSortedUniq(array,getIteratee(iteratee2,2)):[];}function tail(array){var length2=array==null?0:array.length;return length2?baseSlice(array,1,length2):[];}function take(array,n,guard){if(!(array&&array.length)){return[];}n=guard||n===undefined$1?1:toInteger2(n);return baseSlice(array,0,n<0?0:n);}function takeRight(array,n,guard){var length2=array==null?0:array.length;if(!length2){return[];}n=guard||n===undefined$1?1:toInteger2(n);n=length2-n;return baseSlice(array,n<0?0:n,length2);}function takeRightWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3),false,true):[];}function takeWhile(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3)):[];}var union=baseRest(function(arrays){return baseUniq(baseFlatten(arrays,1,isArrayLikeObject,true));});var unionBy=baseRest(function(arrays){var iteratee2=last(arrays);if(isArrayLikeObject(iteratee2)){iteratee2=undefined$1;}return baseUniq(baseFlatten(arrays,1,isArrayLikeObject,true),getIteratee(iteratee2,2));});var unionWith=baseRest(function(arrays){var comparator=last(arrays);comparator=typeof comparator=="function"?comparator:undefined$1;return baseUniq(baseFlatten(arrays,1,isArrayLikeObject,true),undefined$1,comparator);});function uniq(array){return array&&array.length?baseUniq(array):[];}function uniqBy(array,iteratee2){return array&&array.length?baseUniq(array,getIteratee(iteratee2,2)):[];}function uniqWith(array,comparator){comparator=typeof comparator=="function"?comparator:undefined$1;return array&&array.length?baseUniq(array,undefined$1,comparator):[];}function unzip(array){if(!(array&&array.length)){return[];}var length2=0;array=arrayFilter2(array,function(group){if(isArrayLikeObject(group)){length2=nativeMax2(group.length,length2);return true;}});return baseTimes2(length2,function(index2){return arrayMap2(array,baseProperty2(index2));});}function unzipWith(array,iteratee2){if(!(array&&array.length)){return[];}var result2=unzip(array);if(iteratee2==null){return result2;}return arrayMap2(result2,function(group){return apply(iteratee2,undefined$1,group);});}var without=baseRest(function(array,values3){return isArrayLikeObject(array)?baseDifference(array,values3):[];});var xor=baseRest(function(arrays){return baseXor(arrayFilter2(arrays,isArrayLikeObject));});var xorBy=baseRest(function(arrays){var iteratee2=last(arrays);if(isArrayLikeObject(iteratee2)){iteratee2=undefined$1;}return baseXor(arrayFilter2(arrays,isArrayLikeObject),getIteratee(iteratee2,2));});var xorWith=baseRest(function(arrays){var comparator=last(arrays);comparator=typeof comparator=="function"?comparator:undefined$1;return baseXor(arrayFilter2(arrays,isArrayLikeObject),undefined$1,comparator);});var zip=baseRest(unzip);function zipObject(props,values3){return baseZipObject(props||[],values3||[],assignValue);}function zipObjectDeep(props,values3){return baseZipObject(props||[],values3||[],baseSet);}var zipWith=baseRest(function(arrays){var length2=arrays.length,iteratee2=length2>1?arrays[length2-1]:undefined$1;iteratee2=typeof iteratee2=="function"?(arrays.pop(),iteratee2):undefined$1;return unzipWith(arrays,iteratee2);});function chain(value){var result2=lodash2(value);result2.__chain__=true;return result2;}function tap(value,interceptor){interceptor(value);return value;}function thru(value,interceptor){return interceptor(value);}var wrapperAt=flatRest(function(paths){var length2=paths.length,start2=length2?paths[0]:0,value=this.__wrapped__,interceptor=function interceptor(object){return baseAt(object,paths);};if(length2>1||this.__actions__.length||!(value instanceof LazyWrapper)||!isIndex2(start2)){return this.thru(interceptor);}value=value.slice(start2,+start2+(length2?1:0));value.__actions__.push({"func":thru,"args":[interceptor],"thisArg":undefined$1});return new LodashWrapper(value,this.__chain__).thru(function(array){if(length2&&!array.length){array.push(undefined$1);}return array;});});function wrapperChain(){return chain(this);}function wrapperCommit(){return new LodashWrapper(this.value(),this.__chain__);}function wrapperNext(){if(this.__values__===undefined$1){this.__values__=toArray(this.value());}var done=this.__index__>=this.__values__.length,value=done?undefined$1:this.__values__[this.__index__++];return{"done":done,"value":value};}function wrapperToIterator(){return this;}function wrapperPlant(value){var result2,parent2=this;while(parent2 instanceof baseLodash){var clone2=wrapperClone(parent2);clone2.__index__=0;clone2.__values__=undefined$1;if(result2){previous.__wrapped__=clone2;}else{result2=clone2;}var previous=clone2;parent2=parent2.__wrapped__;}previous.__wrapped__=value;return result2;}function wrapperReverse(){var value=this.__wrapped__;if(value instanceof LazyWrapper){var wrapped=value;if(this.__actions__.length){wrapped=new LazyWrapper(this);}wrapped=wrapped.reverse();wrapped.__actions__.push({"func":thru,"args":[reverse],"thisArg":undefined$1});return new LodashWrapper(wrapped,this.__chain__);}return this.thru(reverse);}function wrapperValue(){return baseWrapperValue(this.__wrapped__,this.__actions__);}var countBy=createAggregator(function(result2,value,key){if(hasOwnProperty2.call(result2,key)){++result2[key];}else{baseAssignValue(result2,key,1);}});function every(collection,predicate,guard){var func=isArray2(collection)?arrayEvery:baseEvery;if(guard&&isIterateeCall(collection,predicate,guard)){predicate=undefined$1;}return func(collection,getIteratee(predicate,3));}function filter(collection,predicate){var func=isArray2(collection)?arrayFilter2:baseFilter;return func(collection,getIteratee(predicate,3));}var find2=createFind2(findIndex2);var findLast=createFind2(findLastIndex);function flatMap(collection,iteratee2){return baseFlatten(map2(collection,iteratee2),1);}function flatMapDeep(collection,iteratee2){return baseFlatten(map2(collection,iteratee2),INFINITY2);}function flatMapDepth(collection,iteratee2,depth){depth=depth===undefined$1?1:toInteger2(depth);return baseFlatten(map2(collection,iteratee2),depth);}function forEach(collection,iteratee2){var func=isArray2(collection)?arrayEach:baseEach2;return func(collection,getIteratee(iteratee2,3));}function forEachRight(collection,iteratee2){var func=isArray2(collection)?arrayEachRight:baseEachRight;return func(collection,getIteratee(iteratee2,3));}var groupBy=createAggregator(function(result2,value,key){if(hasOwnProperty2.call(result2,key)){result2[key].push(value);}else{baseAssignValue(result2,key,[value]);}});function includes(collection,value,fromIndex,guard){collection=isArrayLike2(collection)?collection:values2(collection);fromIndex=fromIndex&&!guard?toInteger2(fromIndex):0;var length2=collection.length;if(fromIndex<0){fromIndex=nativeMax2(length2+fromIndex,0);}return isString2(collection)?fromIndex<=length2&&collection.indexOf(value,fromIndex)>-1:!!length2&&baseIndexOf(collection,value,fromIndex)>-1;}var invokeMap=baseRest(function(collection,path,args){var index2=-1,isFunc=typeof path=="function",result2=isArrayLike2(collection)?Array2(collection.length):[];baseEach2(collection,function(value){result2[++index2]=isFunc?apply(path,value,args):baseInvoke(value,path,args);});return result2;});var keyBy=createAggregator(function(result2,value,key){baseAssignValue(result2,key,value);});function map2(collection,iteratee2){var func=isArray2(collection)?arrayMap2:baseMap2;return func(collection,getIteratee(iteratee2,3));}function orderBy(collection,iteratees,orders,guard){if(collection==null){return[];}if(!isArray2(iteratees)){iteratees=iteratees==null?[]:[iteratees];}orders=guard?undefined$1:orders;if(!isArray2(orders)){orders=orders==null?[]:[orders];}return baseOrderBy(collection,iteratees,orders);}var partition=createAggregator(function(result2,value,key){result2[key?0:1].push(value);},function(){return[[],[]];});function reduce(collection,iteratee2,accumulator){var func=isArray2(collection)?arrayReduce:baseReduce,initAccum=arguments.length<3;return func(collection,getIteratee(iteratee2,4),accumulator,initAccum,baseEach2);}function reduceRight(collection,iteratee2,accumulator){var func=isArray2(collection)?arrayReduceRight:baseReduce,initAccum=arguments.length<3;return func(collection,getIteratee(iteratee2,4),accumulator,initAccum,baseEachRight);}function reject(collection,predicate){var func=isArray2(collection)?arrayFilter2:baseFilter;return func(collection,negate(getIteratee(predicate,3)));}function sample(collection){var func=isArray2(collection)?arraySample:baseSample;return func(collection);}function sampleSize(collection,n,guard){if(guard?isIterateeCall(collection,n,guard):n===undefined$1){n=1;}else{n=toInteger2(n);}var func=isArray2(collection)?arraySampleSize:baseSampleSize;return func(collection,n);}function shuffle(collection){var func=isArray2(collection)?arrayShuffle:baseShuffle;return func(collection);}function size2(collection){if(collection==null){return 0;}if(isArrayLike2(collection)){return isString2(collection)?stringSize(collection):collection.length;}var tag=getTag2(collection);if(tag==mapTag2||tag==setTag2){return collection.size;}return baseKeys2(collection).length;}function some(collection,predicate,guard){var func=isArray2(collection)?arraySome2:baseSome;if(guard&&isIterateeCall(collection,predicate,guard)){predicate=undefined$1;}return func(collection,getIteratee(predicate,3));}var sortBy=baseRest(function(collection,iteratees){if(collection==null){return[];}var length2=iteratees.length;if(length2>1&&isIterateeCall(collection,iteratees[0],iteratees[1])){iteratees=[];}else if(length2>2&&isIterateeCall(iteratees[0],iteratees[1],iteratees[2])){iteratees=[iteratees[0]];}return baseOrderBy(collection,baseFlatten(iteratees,1),[]);});var now=ctxNow||function(){return root2.Date.now();};function after(n,func){if(typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}n=toInteger2(n);return function(){if(--n<1){return func.apply(this,arguments);}};}function ary(func,n,guard){n=guard?undefined$1:n;n=func&&n==null?func.length:n;return createWrap(func,WRAP_ARY_FLAG,undefined$1,undefined$1,undefined$1,undefined$1,n);}function before(n,func){var result2;if(typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}n=toInteger2(n);return function(){if(--n>0){result2=func.apply(this,arguments);}if(n<=1){func=undefined$1;}return result2;};}var bind=baseRest(function(func,thisArg,partials){var bitmask=WRAP_BIND_FLAG;if(partials.length){var holders=replaceHolders(partials,getHolder(bind));bitmask|=WRAP_PARTIAL_FLAG;}return createWrap(func,bitmask,thisArg,partials,holders);});var bindKey=baseRest(function(object,key,partials){var bitmask=WRAP_BIND_FLAG|WRAP_BIND_KEY_FLAG;if(partials.length){var holders=replaceHolders(partials,getHolder(bindKey));bitmask|=WRAP_PARTIAL_FLAG;}return createWrap(key,bitmask,object,partials,holders);});function curry(func,arity,guard){arity=guard?undefined$1:arity;var result2=createWrap(func,WRAP_CURRY_FLAG,undefined$1,undefined$1,undefined$1,undefined$1,undefined$1,arity);result2.placeholder=curry.placeholder;return result2;}function curryRight(func,arity,guard){arity=guard?undefined$1:arity;var result2=createWrap(func,WRAP_CURRY_RIGHT_FLAG,undefined$1,undefined$1,undefined$1,undefined$1,undefined$1,arity);result2.placeholder=curryRight.placeholder;return result2;}function debounce2(func,wait,options){var lastArgs,lastThis,maxWait,result2,timerId,lastCallTime,lastInvokeTime=0,leading=false,maxing=false,trailing=true;if(typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}wait=toNumber2(wait)||0;if(isObject2(options)){leading=!!options.leading;maxing="maxWait"in options;maxWait=maxing?nativeMax2(toNumber2(options.maxWait)||0,wait):maxWait;trailing="trailing"in options?!!options.trailing:trailing;}function invokeFunc(time){var args=lastArgs,thisArg=lastThis;lastArgs=lastThis=undefined$1;lastInvokeTime=time;result2=func.apply(thisArg,args);return result2;}function leadingEdge(time){lastInvokeTime=time;timerId=setTimeout2(timerExpired,wait);return leading?invokeFunc(time):result2;}function remainingWait(time){var timeSinceLastCall=time-lastCallTime,timeSinceLastInvoke=time-lastInvokeTime,timeWaiting=wait-timeSinceLastCall;return maxing?nativeMin(timeWaiting,maxWait-timeSinceLastInvoke):timeWaiting;}function shouldInvoke(time){var timeSinceLastCall=time-lastCallTime,timeSinceLastInvoke=time-lastInvokeTime;return lastCallTime===undefined$1||timeSinceLastCall>=wait||timeSinceLastCall<0||maxing&&timeSinceLastInvoke>=maxWait;}function timerExpired(){var time=now();if(shouldInvoke(time)){return trailingEdge(time);}timerId=setTimeout2(timerExpired,remainingWait(time));}function trailingEdge(time){timerId=undefined$1;if(trailing&&lastArgs){return invokeFunc(time);}lastArgs=lastThis=undefined$1;return result2;}function cancel(){if(timerId!==undefined$1){clearTimeout2(timerId);}lastInvokeTime=0;lastArgs=lastCallTime=lastThis=timerId=undefined$1;}function flush(){return timerId===undefined$1?result2:trailingEdge(now());}function debounced(){var time=now(),isInvoking=shouldInvoke(time);lastArgs=arguments;lastThis=this;lastCallTime=time;if(isInvoking){if(timerId===undefined$1){return leadingEdge(lastCallTime);}if(maxing){clearTimeout2(timerId);timerId=setTimeout2(timerExpired,wait);return invokeFunc(lastCallTime);}}if(timerId===undefined$1){timerId=setTimeout2(timerExpired,wait);}return result2;}debounced.cancel=cancel;debounced.flush=flush;return debounced;}var defer2=baseRest(function(func,args){return baseDelay(func,1,args);});var delay=baseRest(function(func,wait,args){return baseDelay(func,toNumber2(wait)||0,args);});function flip2(func){return createWrap(func,WRAP_FLIP_FLAG);}function memoize2(func,resolver){if(typeof func!="function"||resolver!=null&&typeof resolver!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}var _memoized=function memoized(){var args=arguments,key=resolver?resolver.apply(this,args):args[0],cache=_memoized.cache;if(cache.has(key)){return cache.get(key);}var result2=func.apply(this,args);_memoized.cache=cache.set(key,result2)||cache;return result2;};_memoized.cache=new(memoize2.Cache||MapCache2)();return _memoized;}memoize2.Cache=MapCache2;function negate(predicate){if(typeof predicate!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}return function(){var args=arguments;switch(args.length){case 0:return!predicate.call(this);case 1:return!predicate.call(this,args[0]);case 2:return!predicate.call(this,args[0],args[1]);case 3:return!predicate.call(this,args[0],args[1],args[2]);}return!predicate.apply(this,args);};}function once(func){return before(2,func);}var overArgs=castRest(function(func,transforms){transforms=transforms.length==1&&isArray2(transforms[0])?arrayMap2(transforms[0],baseUnary2(getIteratee())):arrayMap2(baseFlatten(transforms,1),baseUnary2(getIteratee()));var funcsLength=transforms.length;return baseRest(function(args){var index2=-1,length2=nativeMin(args.length,funcsLength);while(++index2<length2){args[index2]=transforms[index2].call(this,args[index2]);}return apply(func,this,args);});});var partial=baseRest(function(func,partials){var holders=replaceHolders(partials,getHolder(partial));return createWrap(func,WRAP_PARTIAL_FLAG,undefined$1,partials,holders);});var partialRight=baseRest(function(func,partials){var holders=replaceHolders(partials,getHolder(partialRight));return createWrap(func,WRAP_PARTIAL_RIGHT_FLAG,undefined$1,partials,holders);});var rearg=flatRest(function(func,indexes){return createWrap(func,WRAP_REARG_FLAG,undefined$1,undefined$1,undefined$1,indexes);});function rest(func,start2){if(typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}start2=start2===undefined$1?start2:toInteger2(start2);return baseRest(func,start2);}function spread(func,start2){if(typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}start2=start2==null?0:nativeMax2(toInteger2(start2),0);return baseRest(function(args){var array=args[start2],otherArgs=castSlice(args,0,start2);if(array){arrayPush2(otherArgs,array);}return apply(func,this,otherArgs);});}function throttle(func,wait,options){var leading=true,trailing=true;if(typeof func!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}if(isObject2(options)){leading="leading"in options?!!options.leading:leading;trailing="trailing"in options?!!options.trailing:trailing;}return debounce2(func,wait,{"leading":leading,"maxWait":wait,"trailing":trailing});}function unary(func){return ary(func,1);}function wrap(value,wrapper2){return partial(castFunction(wrapper2),value);}function castArray(){if(!arguments.length){return[];}var value=arguments[0];return isArray2(value)?value:[value];}function clone(value){return baseClone(value,CLONE_SYMBOLS_FLAG);}function cloneWith(value,customizer){customizer=typeof customizer=="function"?customizer:undefined$1;return baseClone(value,CLONE_SYMBOLS_FLAG,customizer);}function cloneDeep(value){return baseClone(value,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG);}function cloneDeepWith(value,customizer){customizer=typeof customizer=="function"?customizer:undefined$1;return baseClone(value,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG,customizer);}function conformsTo(object,source){return source==null||baseConformsTo(object,source,keys2(source));}function eq2(value,other){return value===other||value!==value&&other!==other;}var gt=createRelationalOperation(baseGt);var gte=createRelationalOperation(function(value,other){return value>=other;});var isArguments2=baseIsArguments2(/* @__PURE__ */function(){return arguments;}())?baseIsArguments2:function(value){return isObjectLike2(value)&&hasOwnProperty2.call(value,"callee")&&!propertyIsEnumerable2.call(value,"callee");};var isArray2=Array2.isArray;var isArrayBuffer=nodeIsArrayBuffer?baseUnary2(nodeIsArrayBuffer):baseIsArrayBuffer;function isArrayLike2(value){return value!=null&&isLength2(value.length)&&!isFunction2(value);}function isArrayLikeObject(value){return isObjectLike2(value)&&isArrayLike2(value);}function isBoolean(value){return value===true||value===false||isObjectLike2(value)&&baseGetTag2(value)==boolTag2;}var isBuffer2=nativeIsBuffer||stubFalse2;var isDate2=nodeIsDate?baseUnary2(nodeIsDate):baseIsDate;function isElement2(value){return isObjectLike2(value)&&value.nodeType===1&&!isPlainObject2(value);}function isEmpty2(value){if(value==null){return true;}if(isArrayLike2(value)&&(isArray2(value)||typeof value=="string"||typeof value.splice=="function"||isBuffer2(value)||isTypedArray2(value)||isArguments2(value))){return!value.length;}var tag=getTag2(value);if(tag==mapTag2||tag==setTag2){return!value.size;}if(isPrototype2(value)){return!baseKeys2(value).length;}for(var key in value){if(hasOwnProperty2.call(value,key)){return false;}}return true;}function isEqual2(value,other){return baseIsEqual2(value,other);}function isEqualWith(value,other,customizer){customizer=typeof customizer=="function"?customizer:undefined$1;var result2=customizer?customizer(value,other):undefined$1;return result2===undefined$1?baseIsEqual2(value,other,undefined$1,customizer):!!result2;}function isError(value){if(!isObjectLike2(value)){return false;}var tag=baseGetTag2(value);return tag==errorTag2||tag==domExcTag||typeof value.message=="string"&&typeof value.name=="string"&&!isPlainObject2(value);}function isFinite2(value){return typeof value=="number"&&nativeIsFinite(value);}function isFunction2(value){if(!isObject2(value)){return false;}var tag=baseGetTag2(value);return tag==funcTag2||tag==genTag2||tag==asyncTag2||tag==proxyTag2;}function isInteger(value){return typeof value=="number"&&value==toInteger2(value);}function isLength2(value){return typeof value=="number"&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER2;}function isObject2(value){var type=_typeof2(value);return value!=null&&(type=="object"||type=="function");}function isObjectLike2(value){return value!=null&&_typeof2(value)=="object";}var isMap=nodeIsMap?baseUnary2(nodeIsMap):baseIsMap;function isMatch(object,source){return object===source||baseIsMatch2(object,source,getMatchData2(source));}function isMatchWith(object,source,customizer){customizer=typeof customizer=="function"?customizer:undefined$1;return baseIsMatch2(object,source,getMatchData2(source),customizer);}function isNaN2(value){return isNumber(value)&&value!=+value;}function isNative(value){if(isMaskable(value)){throw new Error2(CORE_ERROR_TEXT);}return baseIsNative2(value);}function isNull(value){return value===null;}function isNil(value){return value==null;}function isNumber(value){return typeof value=="number"||isObjectLike2(value)&&baseGetTag2(value)==numberTag2;}function isPlainObject2(value){if(!isObjectLike2(value)||baseGetTag2(value)!=objectTag2){return false;}var proto=getPrototype(value);if(proto===null){return true;}var Ctor=hasOwnProperty2.call(proto,"constructor")&&proto.constructor;return typeof Ctor=="function"&&Ctor instanceof Ctor&&funcToString2.call(Ctor)==objectCtorString;}var isRegExp=nodeIsRegExp?baseUnary2(nodeIsRegExp):baseIsRegExp;function isSafeInteger(value){return isInteger(value)&&value>=-MAX_SAFE_INTEGER2&&value<=MAX_SAFE_INTEGER2;}var isSet=nodeIsSet?baseUnary2(nodeIsSet):baseIsSet;function isString2(value){return typeof value=="string"||!isArray2(value)&&isObjectLike2(value)&&baseGetTag2(value)==stringTag2;}function isSymbol2(value){return _typeof2(value)=="symbol"||isObjectLike2(value)&&baseGetTag2(value)==symbolTag2;}var isTypedArray2=nodeIsTypedArray2?baseUnary2(nodeIsTypedArray2):baseIsTypedArray2;function isUndefined2(value){return value===undefined$1;}function isWeakMap(value){return isObjectLike2(value)&&getTag2(value)==weakMapTag2;}function isWeakSet(value){return isObjectLike2(value)&&baseGetTag2(value)==weakSetTag;}var lt=createRelationalOperation(baseLt);var lte=createRelationalOperation(function(value,other){return value<=other;});function toArray(value){if(!value){return[];}if(isArrayLike2(value)){return isString2(value)?stringToArray(value):copyArray(value);}if(symIterator&&value[symIterator]){return iteratorToArray(value[symIterator]());}var tag=getTag2(value),func=tag==mapTag2?mapToArray2:tag==setTag2?setToArray2:values2;return func(value);}function toFinite2(value){if(!value){return value===0?value:0;}value=toNumber2(value);if(value===INFINITY2||value===-INFINITY2){var sign=value<0?-1:1;return sign*MAX_INTEGER2;}return value===value?value:0;}function toInteger2(value){var result2=toFinite2(value),remainder=result2%1;return result2===result2?remainder?result2-remainder:result2:0;}function toLength(value){return value?baseClamp(toInteger2(value),0,MAX_ARRAY_LENGTH):0;}function toNumber2(value){if(typeof value=="number"){return value;}if(isSymbol2(value)){return NAN2;}if(isObject2(value)){var other=typeof value.valueOf=="function"?value.valueOf():value;value=isObject2(other)?other+"":other;}if(typeof value!="string"){return value===0?value:+value;}value=baseTrim2(value);var isBinary=reIsBinary2.test(value);return isBinary||reIsOctal2.test(value)?freeParseInt2(value.slice(2),isBinary?2:8):reIsBadHex2.test(value)?NAN2:+value;}function toPlainObject(value){return copyObject(value,keysIn(value));}function toSafeInteger(value){return value?baseClamp(toInteger2(value),-MAX_SAFE_INTEGER2,MAX_SAFE_INTEGER2):value===0?value:0;}function toString2(value){return value==null?"":baseToString2(value);}var assign2=createAssigner(function(object,source){if(isPrototype2(source)||isArrayLike2(source)){copyObject(source,keys2(source),object);return;}for(var key in source){if(hasOwnProperty2.call(source,key)){assignValue(object,key,source[key]);}}});var assignIn=createAssigner(function(object,source){copyObject(source,keysIn(source),object);});var assignInWith=createAssigner(function(object,source,srcIndex,customizer){copyObject(source,keysIn(source),object,customizer);});var assignWith=createAssigner(function(object,source,srcIndex,customizer){copyObject(source,keys2(source),object,customizer);});var at=flatRest(baseAt);function create(prototype,properties2){var result2=baseCreate(prototype);return properties2==null?result2:baseAssign(result2,properties2);}var defaults=baseRest(function(object,sources){object=Object2(object);var index2=-1;var length2=sources.length;var guard=length2>2?sources[2]:undefined$1;if(guard&&isIterateeCall(sources[0],sources[1],guard)){length2=1;}while(++index2<length2){var source=sources[index2];var props=keysIn(source);var propsIndex=-1;var propsLength=props.length;while(++propsIndex<propsLength){var key=props[propsIndex];var value=object[key];if(value===undefined$1||eq2(value,objectProto2[key])&&!hasOwnProperty2.call(object,key)){object[key]=source[key];}}}return object;});var defaultsDeep=baseRest(function(args){args.push(undefined$1,customDefaultsMerge);return apply(mergeWith,undefined$1,args);});function findKey2(object,predicate){return baseFindKey(object,getIteratee(predicate,3),baseForOwn2);}function findLastKey(object,predicate){return baseFindKey(object,getIteratee(predicate,3),baseForOwnRight);}function forIn(object,iteratee2){return object==null?object:baseFor2(object,getIteratee(iteratee2,3),keysIn);}function forInRight(object,iteratee2){return object==null?object:baseForRight(object,getIteratee(iteratee2,3),keysIn);}function forOwn(object,iteratee2){return object&&baseForOwn2(object,getIteratee(iteratee2,3));}function forOwnRight(object,iteratee2){return object&&baseForOwnRight(object,getIteratee(iteratee2,3));}function functions(object){return object==null?[]:baseFunctions(object,keys2(object));}function functionsIn(object){return object==null?[]:baseFunctions(object,keysIn(object));}function get2(object,path,defaultValue){var result2=object==null?undefined$1:baseGet2(object,path);return result2===undefined$1?defaultValue:result2;}function has2(object,path){return object!=null&&hasPath2(object,path,baseHas);}function hasIn2(object,path){return object!=null&&hasPath2(object,path,baseHasIn2);}var invert=createInverter(function(result2,value,key){if(value!=null&&typeof value.toString!="function"){value=nativeObjectToString2.call(value);}result2[value]=key;},constant(identity2));var invertBy=createInverter(function(result2,value,key){if(value!=null&&typeof value.toString!="function"){value=nativeObjectToString2.call(value);}if(hasOwnProperty2.call(result2,value)){result2[value].push(key);}else{result2[value]=[key];}},getIteratee);var invoke=baseRest(baseInvoke);function keys2(object){return isArrayLike2(object)?arrayLikeKeys2(object):baseKeys2(object);}function keysIn(object){return isArrayLike2(object)?arrayLikeKeys2(object,true):baseKeysIn(object);}function mapKeys(object,iteratee2){var result2={};iteratee2=getIteratee(iteratee2,3);baseForOwn2(object,function(value,key,object2){baseAssignValue(result2,iteratee2(value,key,object2),value);});return result2;}function mapValues(object,iteratee2){var result2={};iteratee2=getIteratee(iteratee2,3);baseForOwn2(object,function(value,key,object2){baseAssignValue(result2,key,iteratee2(value,key,object2));});return result2;}var merge2=createAssigner(function(object,source,srcIndex){baseMerge(object,source,srcIndex);});var mergeWith=createAssigner(function(object,source,srcIndex,customizer){baseMerge(object,source,srcIndex,customizer);});var omit=flatRest(function(object,paths){var result2={};if(object==null){return result2;}var isDeep=false;paths=arrayMap2(paths,function(path){path=castPath2(path,object);isDeep||(isDeep=path.length>1);return path;});copyObject(object,getAllKeysIn(object),result2);if(isDeep){result2=baseClone(result2,CLONE_DEEP_FLAG|CLONE_FLAT_FLAG|CLONE_SYMBOLS_FLAG,customOmitClone);}var length2=paths.length;while(length2--){baseUnset(result2,paths[length2]);}return result2;});function omitBy(object,predicate){return pickBy(object,negate(getIteratee(predicate)));}var pick=flatRest(function(object,paths){return object==null?{}:basePick(object,paths);});function pickBy(object,predicate){if(object==null){return{};}var props=arrayMap2(getAllKeysIn(object),function(prop){return[prop];});predicate=getIteratee(predicate);return basePickBy(object,props,function(value,path){return predicate(value,path[0]);});}function result(object,path,defaultValue){path=castPath2(path,object);var index2=-1,length2=path.length;if(!length2){length2=1;object=undefined$1;}while(++index2<length2){var value=object==null?undefined$1:object[toKey2(path[index2])];if(value===undefined$1){index2=length2;value=defaultValue;}object=isFunction2(value)?value.call(object):value;}return object;}function set(object,path,value){return object==null?object:baseSet(object,path,value);}function setWith(object,path,value,customizer){customizer=typeof customizer=="function"?customizer:undefined$1;return object==null?object:baseSet(object,path,value,customizer);}var toPairs=createToPairs(keys2);var toPairsIn=createToPairs(keysIn);function transform(object,iteratee2,accumulator){var isArr=isArray2(object),isArrLike=isArr||isBuffer2(object)||isTypedArray2(object);iteratee2=getIteratee(iteratee2,4);if(accumulator==null){var Ctor=object&&object.constructor;if(isArrLike){accumulator=isArr?new Ctor():[];}else if(isObject2(object)){accumulator=isFunction2(Ctor)?baseCreate(getPrototype(object)):{};}else{accumulator={};}}(isArrLike?arrayEach:baseForOwn2)(object,function(value,index2,object2){return iteratee2(accumulator,value,index2,object2);});return accumulator;}function unset(object,path){return object==null?true:baseUnset(object,path);}function update(object,path,updater){return object==null?object:baseUpdate(object,path,castFunction(updater));}function updateWith(object,path,updater,customizer){customizer=typeof customizer=="function"?customizer:undefined$1;return object==null?object:baseUpdate(object,path,castFunction(updater),customizer);}function values2(object){return object==null?[]:baseValues(object,keys2(object));}function valuesIn(object){return object==null?[]:baseValues(object,keysIn(object));}function clamp2(number,lower,upper){if(upper===undefined$1){upper=lower;lower=undefined$1;}if(upper!==undefined$1){upper=toNumber2(upper);upper=upper===upper?upper:0;}if(lower!==undefined$1){lower=toNumber2(lower);lower=lower===lower?lower:0;}return baseClamp(toNumber2(number),lower,upper);}function inRange(number,start2,end2){start2=toFinite2(start2);if(end2===undefined$1){end2=start2;start2=0;}else{end2=toFinite2(end2);}number=toNumber2(number);return baseInRange(number,start2,end2);}function random(lower,upper,floating){if(floating&&typeof floating!="boolean"&&isIterateeCall(lower,upper,floating)){upper=floating=undefined$1;}if(floating===undefined$1){if(typeof upper=="boolean"){floating=upper;upper=undefined$1;}else if(typeof lower=="boolean"){floating=lower;lower=undefined$1;}}if(lower===undefined$1&&upper===undefined$1){lower=0;upper=1;}else{lower=toFinite2(lower);if(upper===undefined$1){upper=lower;lower=0;}else{upper=toFinite2(upper);}}if(lower>upper){var temp=lower;lower=upper;upper=temp;}if(floating||lower%1||upper%1){var rand=nativeRandom();return nativeMin(lower+rand*(upper-lower+freeParseFloat("1e-"+((rand+"").length-1))),upper);}return baseRandom(lower,upper);}var camelCase=createCompounder(function(result2,word,index2){word=word.toLowerCase();return result2+(index2?capitalize2(word):word);});function capitalize2(string){return upperFirst(toString2(string).toLowerCase());}function deburr(string){string=toString2(string);return string&&string.replace(reLatin,deburrLetter).replace(reComboMark,"");}function endsWith(string,target,position2){string=toString2(string);target=baseToString2(target);var length2=string.length;position2=position2===undefined$1?length2:baseClamp(toInteger2(position2),0,length2);var end2=position2;position2-=target.length;return position2>=0&&string.slice(position2,end2)==target;}function escape2(string){string=toString2(string);return string&&reHasUnescapedHtml.test(string)?string.replace(reUnescapedHtml,escapeHtmlChar):string;}function escapeRegExp(string){string=toString2(string);return string&&reHasRegExpChar.test(string)?string.replace(reRegExpChar2,"\\$&"):string;}var kebabCase=createCompounder(function(result2,word,index2){return result2+(index2?"-":"")+word.toLowerCase();});var lowerCase=createCompounder(function(result2,word,index2){return result2+(index2?" ":"")+word.toLowerCase();});var lowerFirst=createCaseFirst("toLowerCase");function pad(string,length2,chars2){string=toString2(string);length2=toInteger2(length2);var strLength=length2?stringSize(string):0;if(!length2||strLength>=length2){return string;}var mid=(length2-strLength)/2;return createPadding(nativeFloor(mid),chars2)+string+createPadding(nativeCeil(mid),chars2);}function padEnd(string,length2,chars2){string=toString2(string);length2=toInteger2(length2);var strLength=length2?stringSize(string):0;return length2&&strLength<length2?string+createPadding(length2-strLength,chars2):string;}function padStart(string,length2,chars2){string=toString2(string);length2=toInteger2(length2);var strLength=length2?stringSize(string):0;return length2&&strLength<length2?createPadding(length2-strLength,chars2)+string:string;}function parseInt2(string,radix,guard){if(guard||radix==null){radix=0;}else if(radix){radix=+radix;}return nativeParseInt(toString2(string).replace(reTrimStart2,""),radix||0);}function repeat(string,n,guard){if(guard?isIterateeCall(string,n,guard):n===undefined$1){n=1;}else{n=toInteger2(n);}return baseRepeat(toString2(string),n);}function replace2(){var args=arguments,string=toString2(args[0]);return args.length<3?string:string.replace(args[1],args[2]);}var snakeCase=createCompounder(function(result2,word,index2){return result2+(index2?"_":"")+word.toLowerCase();});function split(string,separator,limit){if(limit&&typeof limit!="number"&&isIterateeCall(string,separator,limit)){separator=limit=undefined$1;}limit=limit===undefined$1?MAX_ARRAY_LENGTH:limit>>>0;if(!limit){return[];}string=toString2(string);if(string&&(typeof separator=="string"||separator!=null&&!isRegExp(separator))){separator=baseToString2(separator);if(!separator&&hasUnicode(string)){return castSlice(stringToArray(string),0,limit);}}return string.split(separator,limit);}var startCase=createCompounder(function(result2,word,index2){return result2+(index2?" ":"")+upperFirst(word);});function startsWith(string,target,position2){string=toString2(string);position2=position2==null?0:baseClamp(toInteger2(position2),0,string.length);target=baseToString2(target);return string.slice(position2,position2+target.length)==target;}function template(string,options,guard){var settings=lodash2.templateSettings;if(guard&&isIterateeCall(string,options,guard)){options=undefined$1;}string=toString2(string);options=assignInWith({},options,settings,customDefaultsAssignIn);var imports=assignInWith({},options.imports,settings.imports,customDefaultsAssignIn),importsKeys=keys2(imports),importsValues=baseValues(imports,importsKeys);var isEscaping,isEvaluating,index2=0,interpolate=options.interpolate||reNoMatch,source="__p += '";var reDelimiters=RegExp2((options.escape||reNoMatch).source+"|"+interpolate.source+"|"+(interpolate===reInterpolate?reEsTemplate:reNoMatch).source+"|"+(options.evaluate||reNoMatch).source+"|$","g");var sourceURL="//# sourceURL="+(hasOwnProperty2.call(options,"sourceURL")?(options.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++templateCounter+"]")+"\n";string.replace(reDelimiters,function(match2,escapeValue,interpolateValue,esTemplateValue,evaluateValue,offset2){interpolateValue||(interpolateValue=esTemplateValue);source+=string.slice(index2,offset2).replace(reUnescapedString,escapeStringChar);if(escapeValue){isEscaping=true;source+="' +\n__e("+escapeValue+") +\n'";}if(evaluateValue){isEvaluating=true;source+="';\n"+evaluateValue+";\n__p += '";}if(interpolateValue){source+="' +\n((__t = ("+interpolateValue+")) == null ? '' : __t) +\n'";}index2=offset2+match2.length;return match2;});source+="';\n";var variable=hasOwnProperty2.call(options,"variable")&&options.variable;if(!variable){source="with (obj) {\n"+source+"\n}\n";}else if(reForbiddenIdentifierChars.test(variable)){throw new Error2(INVALID_TEMPL_VAR_ERROR_TEXT);}source=(isEvaluating?source.replace(reEmptyStringLeading,""):source).replace(reEmptyStringMiddle,"$1").replace(reEmptyStringTrailing,"$1;");source="function("+(variable||"obj")+") {\n"+(variable?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(isEscaping?", __e = _.escape":"")+(isEvaluating?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+source+"return __p\n}";var result2=attempt(function(){return Function2(importsKeys,sourceURL+"return "+source).apply(undefined$1,importsValues);});result2.source=source;if(isError(result2)){throw result2;}return result2;}function toLower(value){return toString2(value).toLowerCase();}function toUpper(value){return toString2(value).toUpperCase();}function trim2(string,chars2,guard){string=toString2(string);if(string&&(guard||chars2===undefined$1)){return baseTrim2(string);}if(!string||!(chars2=baseToString2(chars2))){return string;}var strSymbols=stringToArray(string),chrSymbols=stringToArray(chars2),start2=charsStartIndex(strSymbols,chrSymbols),end2=charsEndIndex(strSymbols,chrSymbols)+1;return castSlice(strSymbols,start2,end2).join("");}function trimEnd(string,chars2,guard){string=toString2(string);if(string&&(guard||chars2===undefined$1)){return string.slice(0,trimmedEndIndex2(string)+1);}if(!string||!(chars2=baseToString2(chars2))){return string;}var strSymbols=stringToArray(string),end2=charsEndIndex(strSymbols,stringToArray(chars2))+1;return castSlice(strSymbols,0,end2).join("");}function trimStart(string,chars2,guard){string=toString2(string);if(string&&(guard||chars2===undefined$1)){return string.replace(reTrimStart2,"");}if(!string||!(chars2=baseToString2(chars2))){return string;}var strSymbols=stringToArray(string),start2=charsStartIndex(strSymbols,stringToArray(chars2));return castSlice(strSymbols,start2).join("");}function truncate(string,options){var length2=DEFAULT_TRUNC_LENGTH,omission=DEFAULT_TRUNC_OMISSION;if(isObject2(options)){var separator="separator"in options?options.separator:separator;length2="length"in options?toInteger2(options.length):length2;omission="omission"in options?baseToString2(options.omission):omission;}string=toString2(string);var strLength=string.length;if(hasUnicode(string)){var strSymbols=stringToArray(string);strLength=strSymbols.length;}if(length2>=strLength){return string;}var end2=length2-stringSize(omission);if(end2<1){return omission;}var result2=strSymbols?castSlice(strSymbols,0,end2).join(""):string.slice(0,end2);if(separator===undefined$1){return result2+omission;}if(strSymbols){end2+=result2.length-end2;}if(isRegExp(separator)){if(string.slice(end2).search(separator)){var match2,substring=result2;if(!separator.global){separator=RegExp2(separator.source,toString2(reFlags.exec(separator))+"g");}separator.lastIndex=0;while(match2=separator.exec(substring)){var newEnd=match2.index;}result2=result2.slice(0,newEnd===undefined$1?end2:newEnd);}}else if(string.indexOf(baseToString2(separator),end2)!=end2){var index2=result2.lastIndexOf(separator);if(index2>-1){result2=result2.slice(0,index2);}}return result2+omission;}function unescape2(string){string=toString2(string);return string&&reHasEscapedHtml.test(string)?string.replace(reEscapedHtml,unescapeHtmlChar):string;}var upperCase=createCompounder(function(result2,word,index2){return result2+(index2?" ":"")+word.toUpperCase();});var upperFirst=createCaseFirst("toUpperCase");function words(string,pattern,guard){string=toString2(string);pattern=guard?undefined$1:pattern;if(pattern===undefined$1){return hasUnicodeWord(string)?unicodeWords(string):asciiWords(string);}return string.match(pattern)||[];}var attempt=baseRest(function(func,args){try{return apply(func,undefined$1,args);}catch(e){return isError(e)?e:new Error2(e);}});var bindAll=flatRest(function(object,methodNames){arrayEach(methodNames,function(key){key=toKey2(key);baseAssignValue(object,key,bind(object[key],object));});return object;});function cond(pairs){var length2=pairs==null?0:pairs.length,toIteratee=getIteratee();pairs=!length2?[]:arrayMap2(pairs,function(pair){if(typeof pair[1]!="function"){throw new TypeError2(FUNC_ERROR_TEXT2);}return[toIteratee(pair[0]),pair[1]];});return baseRest(function(args){var index2=-1;while(++index2<length2){var pair=pairs[index2];if(apply(pair[0],this,args)){return apply(pair[1],this,args);}}});}function conforms(source){return baseConforms(baseClone(source,CLONE_DEEP_FLAG));}function constant(value){return function(){return value;};}function defaultTo(value,defaultValue){return value==null||value!==value?defaultValue:value;}var flow=createFlow();var flowRight=createFlow(true);function identity2(value){return value;}function iteratee(func){return baseIteratee2(typeof func=="function"?func:baseClone(func,CLONE_DEEP_FLAG));}function matches(source){return baseMatches2(baseClone(source,CLONE_DEEP_FLAG));}function matchesProperty(path,srcValue){return baseMatchesProperty2(path,baseClone(srcValue,CLONE_DEEP_FLAG));}var method=baseRest(function(path,args){return function(object){return baseInvoke(object,path,args);};});var methodOf=baseRest(function(object,args){return function(path){return baseInvoke(object,path,args);};});function mixin(object,source,options){var props=keys2(source),methodNames=baseFunctions(source,props);if(options==null&&!(isObject2(source)&&(methodNames.length||!props.length))){options=source;source=object;object=this;methodNames=baseFunctions(source,keys2(source));}var chain2=!(isObject2(options)&&"chain"in options)||!!options.chain,isFunc=isFunction2(object);arrayEach(methodNames,function(methodName){var func=source[methodName];object[methodName]=func;if(isFunc){object.prototype[methodName]=function(){var chainAll=this.__chain__;if(chain2||chainAll){var result2=object(this.__wrapped__),actions=result2.__actions__=copyArray(this.__actions__);actions.push({"func":func,"args":arguments,"thisArg":object});result2.__chain__=chainAll;return result2;}return func.apply(object,arrayPush2([this.value()],arguments));};}});return object;}function noConflict(){if(root2._===this){root2._=oldDash;}return this;}function noop4(){}function nthArg(n){n=toInteger2(n);return baseRest(function(args){return baseNth(args,n);});}var over=createOver(arrayMap2);var overEvery=createOver(arrayEvery);var overSome=createOver(arraySome2);function property2(path){return isKey2(path)?baseProperty2(toKey2(path)):basePropertyDeep2(path);}function propertyOf(object){return function(path){return object==null?undefined$1:baseGet2(object,path);};}var range=createRange();var rangeRight=createRange(true);function stubArray2(){return[];}function stubFalse2(){return false;}function stubObject(){return{};}function stubString(){return"";}function stubTrue(){return true;}function times(n,iteratee2){n=toInteger2(n);if(n<1||n>MAX_SAFE_INTEGER2){return[];}var index2=MAX_ARRAY_LENGTH,length2=nativeMin(n,MAX_ARRAY_LENGTH);iteratee2=getIteratee(iteratee2);n-=MAX_ARRAY_LENGTH;var result2=baseTimes2(length2,iteratee2);while(++index2<n){iteratee2(index2);}return result2;}function toPath(value){if(isArray2(value)){return arrayMap2(value,toKey2);}return isSymbol2(value)?[value]:copyArray(stringToPath2(toString2(value)));}function uniqueId(prefix2){var id=++idCounter2;return toString2(prefix2)+id;}var add=createMathOperation(function(augend,addend){return augend+addend;},0);var ceil=createRound("ceil");var divide=createMathOperation(function(dividend,divisor){return dividend/divisor;},1);var floor2=createRound("floor");function max2(array){return array&&array.length?baseExtremum(array,identity2,baseGt):undefined$1;}function maxBy(array,iteratee2){return array&&array.length?baseExtremum(array,getIteratee(iteratee2,2),baseGt):undefined$1;}function mean(array){return baseMean(array,identity2);}function meanBy(array,iteratee2){return baseMean(array,getIteratee(iteratee2,2));}function min2(array){return array&&array.length?baseExtremum(array,identity2,baseLt):undefined$1;}function minBy(array,iteratee2){return array&&array.length?baseExtremum(array,getIteratee(iteratee2,2),baseLt):undefined$1;}var multiply=createMathOperation(function(multiplier,multiplicand){return multiplier*multiplicand;},1);var round2=createRound("round");var subtract=createMathOperation(function(minuend,subtrahend){return minuend-subtrahend;},0);function sum(array){return array&&array.length?baseSum(array,identity2):0;}function sumBy(array,iteratee2){return array&&array.length?baseSum(array,getIteratee(iteratee2,2)):0;}lodash2.after=after;lodash2.ary=ary;lodash2.assign=assign2;lodash2.assignIn=assignIn;lodash2.assignInWith=assignInWith;lodash2.assignWith=assignWith;lodash2.at=at;lodash2.before=before;lodash2.bind=bind;lodash2.bindAll=bindAll;lodash2.bindKey=bindKey;lodash2.castArray=castArray;lodash2.chain=chain;lodash2.chunk=chunk;lodash2.compact=compact;lodash2.concat=concat;lodash2.cond=cond;lodash2.conforms=conforms;lodash2.constant=constant;lodash2.countBy=countBy;lodash2.create=create;lodash2.curry=curry;lodash2.curryRight=curryRight;lodash2.debounce=debounce2;lodash2.defaults=defaults;lodash2.defaultsDeep=defaultsDeep;lodash2.defer=defer2;lodash2.delay=delay;lodash2.difference=difference;lodash2.differenceBy=differenceBy;lodash2.differenceWith=differenceWith;lodash2.drop=drop;lodash2.dropRight=dropRight;lodash2.dropRightWhile=dropRightWhile;lodash2.dropWhile=dropWhile;lodash2.fill=fill;lodash2.filter=filter;lodash2.flatMap=flatMap;lodash2.flatMapDeep=flatMapDeep;lodash2.flatMapDepth=flatMapDepth;lodash2.flatten=flatten;lodash2.flattenDeep=flattenDeep;lodash2.flattenDepth=flattenDepth;lodash2.flip=flip2;lodash2.flow=flow;lodash2.flowRight=flowRight;lodash2.fromPairs=fromPairs;lodash2.functions=functions;lodash2.functionsIn=functionsIn;lodash2.groupBy=groupBy;lodash2.initial=initial;lodash2.intersection=intersection;lodash2.intersectionBy=intersectionBy;lodash2.intersectionWith=intersectionWith;lodash2.invert=invert;lodash2.invertBy=invertBy;lodash2.invokeMap=invokeMap;lodash2.iteratee=iteratee;lodash2.keyBy=keyBy;lodash2.keys=keys2;lodash2.keysIn=keysIn;lodash2.map=map2;lodash2.mapKeys=mapKeys;lodash2.mapValues=mapValues;lodash2.matches=matches;lodash2.matchesProperty=matchesProperty;lodash2.memoize=memoize2;lodash2.merge=merge2;lodash2.mergeWith=mergeWith;lodash2.method=method;lodash2.methodOf=methodOf;lodash2.mixin=mixin;lodash2.negate=negate;lodash2.nthArg=nthArg;lodash2.omit=omit;lodash2.omitBy=omitBy;lodash2.once=once;lodash2.orderBy=orderBy;lodash2.over=over;lodash2.overArgs=overArgs;lodash2.overEvery=overEvery;lodash2.overSome=overSome;lodash2.partial=partial;lodash2.partialRight=partialRight;lodash2.partition=partition;lodash2.pick=pick;lodash2.pickBy=pickBy;lodash2.property=property2;lodash2.propertyOf=propertyOf;lodash2.pull=pull;lodash2.pullAll=pullAll;lodash2.pullAllBy=pullAllBy;lodash2.pullAllWith=pullAllWith;lodash2.pullAt=pullAt;lodash2.range=range;lodash2.rangeRight=rangeRight;lodash2.rearg=rearg;lodash2.reject=reject;lodash2.remove=remove;lodash2.rest=rest;lodash2.reverse=reverse;lodash2.sampleSize=sampleSize;lodash2.set=set;lodash2.setWith=setWith;lodash2.shuffle=shuffle;lodash2.slice=slice2;lodash2.sortBy=sortBy;lodash2.sortedUniq=sortedUniq;lodash2.sortedUniqBy=sortedUniqBy;lodash2.split=split;lodash2.spread=spread;lodash2.tail=tail;lodash2.take=take;lodash2.takeRight=takeRight;lodash2.takeRightWhile=takeRightWhile;lodash2.takeWhile=takeWhile;lodash2.tap=tap;lodash2.throttle=throttle;lodash2.thru=thru;lodash2.toArray=toArray;lodash2.toPairs=toPairs;lodash2.toPairsIn=toPairsIn;lodash2.toPath=toPath;lodash2.toPlainObject=toPlainObject;lodash2.transform=transform;lodash2.unary=unary;lodash2.union=union;lodash2.unionBy=unionBy;lodash2.unionWith=unionWith;lodash2.uniq=uniq;lodash2.uniqBy=uniqBy;lodash2.uniqWith=uniqWith;lodash2.unset=unset;lodash2.unzip=unzip;lodash2.unzipWith=unzipWith;lodash2.update=update;lodash2.updateWith=updateWith;lodash2.values=values2;lodash2.valuesIn=valuesIn;lodash2.without=without;lodash2.words=words;lodash2.wrap=wrap;lodash2.xor=xor;lodash2.xorBy=xorBy;lodash2.xorWith=xorWith;lodash2.zip=zip;lodash2.zipObject=zipObject;lodash2.zipObjectDeep=zipObjectDeep;lodash2.zipWith=zipWith;lodash2.entries=toPairs;lodash2.entriesIn=toPairsIn;lodash2.extend=assignIn;lodash2.extendWith=assignInWith;mixin(lodash2,lodash2);lodash2.add=add;lodash2.attempt=attempt;lodash2.camelCase=camelCase;lodash2.capitalize=capitalize2;lodash2.ceil=ceil;lodash2.clamp=clamp2;lodash2.clone=clone;lodash2.cloneDeep=cloneDeep;lodash2.cloneDeepWith=cloneDeepWith;lodash2.cloneWith=cloneWith;lodash2.conformsTo=conformsTo;lodash2.deburr=deburr;lodash2.defaultTo=defaultTo;lodash2.divide=divide;lodash2.endsWith=endsWith;lodash2.eq=eq2;lodash2.escape=escape2;lodash2.escapeRegExp=escapeRegExp;lodash2.every=every;lodash2.find=find2;lodash2.findIndex=findIndex2;lodash2.findKey=findKey2;lodash2.findLast=findLast;lodash2.findLastIndex=findLastIndex;lodash2.findLastKey=findLastKey;lodash2.floor=floor2;lodash2.forEach=forEach;lodash2.forEachRight=forEachRight;lodash2.forIn=forIn;lodash2.forInRight=forInRight;lodash2.forOwn=forOwn;lodash2.forOwnRight=forOwnRight;lodash2.get=get2;lodash2.gt=gt;lodash2.gte=gte;lodash2.has=has2;lodash2.hasIn=hasIn2;lodash2.head=head2;lodash2.identity=identity2;lodash2.includes=includes;lodash2.indexOf=indexOf;lodash2.inRange=inRange;lodash2.invoke=invoke;lodash2.isArguments=isArguments2;lodash2.isArray=isArray2;lodash2.isArrayBuffer=isArrayBuffer;lodash2.isArrayLike=isArrayLike2;lodash2.isArrayLikeObject=isArrayLikeObject;lodash2.isBoolean=isBoolean;lodash2.isBuffer=isBuffer2;lodash2.isDate=isDate2;lodash2.isElement=isElement2;lodash2.isEmpty=isEmpty2;lodash2.isEqual=isEqual2;lodash2.isEqualWith=isEqualWith;lodash2.isError=isError;lodash2.isFinite=isFinite2;lodash2.isFunction=isFunction2;lodash2.isInteger=isInteger;lodash2.isLength=isLength2;lodash2.isMap=isMap;lodash2.isMatch=isMatch;lodash2.isMatchWith=isMatchWith;lodash2.isNaN=isNaN2;lodash2.isNative=isNative;lodash2.isNil=isNil;lodash2.isNull=isNull;lodash2.isNumber=isNumber;lodash2.isObject=isObject2;lodash2.isObjectLike=isObjectLike2;lodash2.isPlainObject=isPlainObject2;lodash2.isRegExp=isRegExp;lodash2.isSafeInteger=isSafeInteger;lodash2.isSet=isSet;lodash2.isString=isString2;lodash2.isSymbol=isSymbol2;lodash2.isTypedArray=isTypedArray2;lodash2.isUndefined=isUndefined2;lodash2.isWeakMap=isWeakMap;lodash2.isWeakSet=isWeakSet;lodash2.join=join;lodash2.kebabCase=kebabCase;lodash2.last=last;lodash2.lastIndexOf=lastIndexOf;lodash2.lowerCase=lowerCase;lodash2.lowerFirst=lowerFirst;lodash2.lt=lt;lodash2.lte=lte;lodash2.max=max2;lodash2.maxBy=maxBy;lodash2.mean=mean;lodash2.meanBy=meanBy;lodash2.min=min2;lodash2.minBy=minBy;lodash2.stubArray=stubArray2;lodash2.stubFalse=stubFalse2;lodash2.stubObject=stubObject;lodash2.stubString=stubString;lodash2.stubTrue=stubTrue;lodash2.multiply=multiply;lodash2.nth=nth;lodash2.noConflict=noConflict;lodash2.noop=noop4;lodash2.now=now;lodash2.pad=pad;lodash2.padEnd=padEnd;lodash2.padStart=padStart;lodash2.parseInt=parseInt2;lodash2.random=random;lodash2.reduce=reduce;lodash2.reduceRight=reduceRight;lodash2.repeat=repeat;lodash2.replace=replace2;lodash2.result=result;lodash2.round=round2;lodash2.runInContext=runInContext2;lodash2.sample=sample;lodash2.size=size2;lodash2.snakeCase=snakeCase;lodash2.some=some;lodash2.sortedIndex=sortedIndex;lodash2.sortedIndexBy=sortedIndexBy;lodash2.sortedIndexOf=sortedIndexOf;lodash2.sortedLastIndex=sortedLastIndex;lodash2.sortedLastIndexBy=sortedLastIndexBy;lodash2.sortedLastIndexOf=sortedLastIndexOf;lodash2.startCase=startCase;lodash2.startsWith=startsWith;lodash2.subtract=subtract;lodash2.sum=sum;lodash2.sumBy=sumBy;lodash2.template=template;lodash2.times=times;lodash2.toFinite=toFinite2;lodash2.toInteger=toInteger2;lodash2.toLength=toLength;lodash2.toLower=toLower;lodash2.toNumber=toNumber2;lodash2.toSafeInteger=toSafeInteger;lodash2.toString=toString2;lodash2.toUpper=toUpper;lodash2.trim=trim2;lodash2.trimEnd=trimEnd;lodash2.trimStart=trimStart;lodash2.truncate=truncate;lodash2.unescape=unescape2;lodash2.uniqueId=uniqueId;lodash2.upperCase=upperCase;lodash2.upperFirst=upperFirst;lodash2.each=forEach;lodash2.eachRight=forEachRight;lodash2.first=head2;mixin(lodash2,function(){var source={};baseForOwn2(lodash2,function(func,methodName){if(!hasOwnProperty2.call(lodash2.prototype,methodName)){source[methodName]=func;}});return source;}(),{"chain":false});lodash2.VERSION=VERSION;arrayEach(["bind","bindKey","curry","curryRight","partial","partialRight"],function(methodName){lodash2[methodName].placeholder=lodash2;});arrayEach(["drop","take"],function(methodName,index2){LazyWrapper.prototype[methodName]=function(n){n=n===undefined$1?1:nativeMax2(toInteger2(n),0);var result2=this.__filtered__&&!index2?new LazyWrapper(this):this.clone();if(result2.__filtered__){result2.__takeCount__=nativeMin(n,result2.__takeCount__);}else{result2.__views__.push({"size":nativeMin(n,MAX_ARRAY_LENGTH),"type":methodName+(result2.__dir__<0?"Right":"")});}return result2;};LazyWrapper.prototype[methodName+"Right"]=function(n){return this.reverse()[methodName](n).reverse();};});arrayEach(["filter","map","takeWhile"],function(methodName,index2){var type=index2+1,isFilter=type==LAZY_FILTER_FLAG||type==LAZY_WHILE_FLAG;LazyWrapper.prototype[methodName]=function(iteratee2){var result2=this.clone();result2.__iteratees__.push({"iteratee":getIteratee(iteratee2,3),"type":type});result2.__filtered__=result2.__filtered__||isFilter;return result2;};});arrayEach(["head","last"],function(methodName,index2){var takeName="take"+(index2?"Right":"");LazyWrapper.prototype[methodName]=function(){return this[takeName](1).value()[0];};});arrayEach(["initial","tail"],function(methodName,index2){var dropName="drop"+(index2?"":"Right");LazyWrapper.prototype[methodName]=function(){return this.__filtered__?new LazyWrapper(this):this[dropName](1);};});LazyWrapper.prototype.compact=function(){return this.filter(identity2);};LazyWrapper.prototype.find=function(predicate){return this.filter(predicate).head();};LazyWrapper.prototype.findLast=function(predicate){return this.reverse().find(predicate);};LazyWrapper.prototype.invokeMap=baseRest(function(path,args){if(typeof path=="function"){return new LazyWrapper(this);}return this.map(function(value){return baseInvoke(value,path,args);});});LazyWrapper.prototype.reject=function(predicate){return this.filter(negate(getIteratee(predicate)));};LazyWrapper.prototype.slice=function(start2,end2){start2=toInteger2(start2);var result2=this;if(result2.__filtered__&&(start2>0||end2<0)){return new LazyWrapper(result2);}if(start2<0){result2=result2.takeRight(-start2);}else if(start2){result2=result2.drop(start2);}if(end2!==undefined$1){end2=toInteger2(end2);result2=end2<0?result2.dropRight(-end2):result2.take(end2-start2);}return result2;};LazyWrapper.prototype.takeRightWhile=function(predicate){return this.reverse().takeWhile(predicate).reverse();};LazyWrapper.prototype.toArray=function(){return this.take(MAX_ARRAY_LENGTH);};baseForOwn2(LazyWrapper.prototype,function(func,methodName){var checkIteratee=/^(?:filter|find|map|reject)|While$/.test(methodName),isTaker=/^(?:head|last)$/.test(methodName),lodashFunc=lodash2[isTaker?"take"+(methodName=="last"?"Right":""):methodName],retUnwrapped=isTaker||/^find/.test(methodName);if(!lodashFunc){return;}lodash2.prototype[methodName]=function(){var value=this.__wrapped__,args=isTaker?[1]:arguments,isLazy=value instanceof LazyWrapper,iteratee2=args[0],useLazy=isLazy||isArray2(value);var interceptor=function interceptor(value2){var result3=lodashFunc.apply(lodash2,arrayPush2([value2],args));return isTaker&&chainAll?result3[0]:result3;};if(useLazy&&checkIteratee&&typeof iteratee2=="function"&&iteratee2.length!=1){isLazy=useLazy=false;}var chainAll=this.__chain__,isHybrid=!!this.__actions__.length,isUnwrapped=retUnwrapped&&!chainAll,onlyLazy=isLazy&&!isHybrid;if(!retUnwrapped&&useLazy){value=onlyLazy?value:new LazyWrapper(this);var result2=func.apply(value,args);result2.__actions__.push({"func":thru,"args":[interceptor],"thisArg":undefined$1});return new LodashWrapper(result2,chainAll);}if(isUnwrapped&&onlyLazy){return func.apply(this,args);}result2=this.thru(interceptor);return isUnwrapped?isTaker?result2.value()[0]:result2.value():result2;};});arrayEach(["pop","push","shift","sort","splice","unshift"],function(methodName){var func=arrayProto2[methodName],chainName=/^(?:push|sort|unshift)$/.test(methodName)?"tap":"thru",retUnwrapped=/^(?:pop|shift)$/.test(methodName);lodash2.prototype[methodName]=function(){var args=arguments;if(retUnwrapped&&!this.__chain__){var value=this.value();return func.apply(isArray2(value)?value:[],args);}return this[chainName](function(value2){return func.apply(isArray2(value2)?value2:[],args);});};});baseForOwn2(LazyWrapper.prototype,function(func,methodName){var lodashFunc=lodash2[methodName];if(lodashFunc){var key=lodashFunc.name+"";if(!hasOwnProperty2.call(realNames,key)){realNames[key]=[];}realNames[key].push({"name":methodName,"func":lodashFunc});}});realNames[createHybrid(undefined$1,WRAP_BIND_KEY_FLAG).name]=[{"name":"wrapper","func":undefined$1}];LazyWrapper.prototype.clone=lazyClone;LazyWrapper.prototype.reverse=lazyReverse;LazyWrapper.prototype.value=lazyValue;lodash2.prototype.at=wrapperAt;lodash2.prototype.chain=wrapperChain;lodash2.prototype.commit=wrapperCommit;lodash2.prototype.next=wrapperNext;lodash2.prototype.plant=wrapperPlant;lodash2.prototype.reverse=wrapperReverse;lodash2.prototype.toJSON=lodash2.prototype.valueOf=lodash2.prototype.value=wrapperValue;lodash2.prototype.first=lodash2.prototype.head;if(symIterator){lodash2.prototype[symIterator]=wrapperToIterator;}return lodash2;};var _2=runInContext();if(freeModule){(freeModule.exports=_2)._=_2;freeExports._=_2;}else{root2._=_2;}}).call(commonjsGlobal);})(lodash,lodash.exports);var lodashExports=lodash.exports;var _=/* @__PURE__ */getDefaultExportFromCjs(lodashExports);var Colors={grey:{"900":"#252525","800":"#404040","733":"#666666","700":"#797979","500":"#ACACAC","400":"#D7D7D7","200":"#EDEDED","100":"#F5F5F5","50":"#FAFAFA"},error:{"900":"#9A1414","700":"#D90C0C","500":"#FF5A5A","300":"#FF8383","100":"#FFC8C8","50":"#FCECEB"},success:{"900":"#136A19","700":"#21962A","500":"#1FB62A","300":"#43DC4E","100":"#85EA8D","50":"#CEF3D1"},secondary:{"900":"#A86501","700":"#DC8400","500":"#FF9900","300":"#FFC56F","100":"#FFE1B4","50":"#FFF3D1"},primary:{"900":"#0045AD","700":"#0058DB","500":"#0066FF","300":"#76ADFF","100":"#A7CAFF","50":"#E6F1FF"}};var getColor=function getColor2(category,shade){var _Colors$category;return((_Colors$category=Colors[category])===null||_Colors$category===void 0?void 0:_Colors$category[shade])||"";};var allColors=_.flatMap(Colors,function(shades,category){return _.compact(_.map(shades,function(color2,shade){return color2?{title:"".concat(category," ").concat(shade),color:color2}:null;}));});var ColorOptions=_.map(allColors,"title");var ColorValues=_.map(allColors,"color");var Shades=_.map(Colors["grey"],function(color2,shade){return shade;});var Categories=_.map(Colors,function(shades,category){return category;});var isValidColor=function isValidColor2(color2){return _.includes(ColorValues,color2);};var _excluded$13=["color","size","sx","children","disabled","className"];var CustomIcon=function CustomIcon2(_ref3){var _ref$color=_ref3.color,color2=_ref$color===void 0?getColor("grey","500"):_ref$color,_ref$size=_ref3.size,size2=_ref$size===void 0?"16":_ref$size,sx=_ref3.sx,children=_ref3.children,_ref$disabled=_ref3.disabled,disabled2=_ref$disabled===void 0?false:_ref$disabled,className=_ref3.className,props=_objectWithoutProperties$1(_ref3,_excluded$13);var fontSize=_translateSizeToFontSize(size2);return/* @__PURE__ */jsx$1(SvgIcon,_objectSpread2$1(_objectSpread2$1({className:className},props),{},{sx:_objectSpread2$1(_objectSpread2$1({color:color2,fontSize:"".concat(fontSize,"px"),cursor:disabled2?"default":"pointer",opacity:disabled2?0.5:1,pointerEvents:disabled2?"none":"auto"},sx),{},{"& path":{fill:color2}}),children:children}));};var _translateSizeToFontSize=function _translateSizeToFontSize2(size2){var transform={"32":"38","24":"31","20":"27","16":"23","12":"19","8":"15"};return transform[size2]||transform["16"];};var CloseRoundedIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"}),"CloseRounded");var chip="chip-module_chip_U3kfP";var title$7="chip-module_title_DARz9";var text="chip-module_text_4xvju";var sm$9="chip-module_sm_lA7fZ";var lg$9="chip-module_lg_i8n4n";var tab$1="chip-module_tab_TQ-ke";var grey="chip-module_grey_M9U8T";var active$3="chip-module_active_uJfiq";var disabled$6="chip-module_disabled_21ZO5";var success$1="chip-module_success_BJKfz";var error$3="chip-module_error_an-gm";var secondary="chip-module_secondary_3aQ1S";var primary="chip-module_primary_maGV7";var action$1="chip-module_action_ByEO0";var styles$m={chip:chip,title:title$7,text:text,sm:sm$9,lg:lg$9,tab:tab$1,grey:grey,active:active$3,disabled:disabled$6,success:success$1,error:error$3,secondary:secondary,primary:primary,action:action$1};var Chip2=function Chip3(_ref3){var isActive=_ref3.isActive,title2=_ref3.title,text2=_ref3.text,_ref$onRemove=_ref3.onRemove,onRemove=_ref$onRemove===void 0?void 0:_ref$onRemove,_ref$disabled=_ref3.disabled,disabled2=_ref$disabled===void 0?false:_ref$disabled,_ref$variant=_ref3.variant,variant=_ref$variant===void 0?"primary":_ref$variant,_ref$size=_ref3.size,size2=_ref$size===void 0?"lg":_ref$size;var canRemove=onRemove&&!disabled2;return/* @__PURE__ */jsx$1(Grow,{in:!!text2||!!title2,unmountOnExit:true,children:/* @__PURE__ */jsxs("span",{className:clsx(styles$m.chip,styles$m[variant],styles$m[size2],_defineProperty$1(_defineProperty$1({},styles$m.disabled,disabled2),styles$m.active,isActive)),children:[/* @__PURE__ */jsxs("span",{children:[!!title2&&/* @__PURE__ */jsxs("span",{className:styles$m.title,children:[title2," ",text2&&": "]}),!!text2&&/* @__PURE__ */jsx$1("span",{className:styles$m.text,children:text2})]}),canRemove&&/* @__PURE__ */jsx$1(CustomIcon,{className:styles$m.action,size:"8",onClick:canRemove?onRemove:void 0,color:getColor("grey","700"),children:/* @__PURE__ */jsx$1(CloseRoundedIcon,{})})]})});};var defaultColor$4=getColor("grey","500");var SearchPublication=function SearchPublication2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?100:_ref$size,_ref$color=_ref3.color,color2=_ref$color===void 0?defaultColor$4:_ref$color;var resolvedColor=isValidColor(color2)?color2:defaultColor$4;return/* @__PURE__ */jsx$1("svg",{id:"Capa_1","data-name":"Capa 1",xmlns:"http://www.w3.org/2000/svg",width:size2,height:"100%",viewBox:"0 0 95 95",children:/* @__PURE__ */jsxs("g",{id:"Grupo_1315","data-name":"Grupo 1315",children:[/* @__PURE__ */jsx$1("path",{id:"Trazado_2280","data-name":"Trazado 2280",style:{fill:resolvedColor},d:"M0,13.62c.09-.37.16-.76.26-1.14a7.22,7.22,0,0,1,7-5.28H24.3c.23,0,.3,0,.29-.29a7,7,0,0,1,.58-3.25A6.37,6.37,0,0,1,33.63.6a6.47,6.47,0,0,1,1.75,1.22,6.2,6.2,0,0,1,1.89,4.53c0,.22,0,.43,0,.65s0,.2.21.2H54.63a7.21,7.21,0,0,1,7.24,7.18V34.23a1.45,1.45,0,0,1-1.33,1.55h-.16A1.44,1.44,0,0,1,59,34.5c0-.12,0-.25,0-.37V14.55a4.33,4.33,0,0,0-4.2-4.46H7.4A4.34,4.34,0,0,0,3,13.44a4.07,4.07,0,0,0-.12,1V79.22a4.33,4.33,0,0,0,4.32,4.32H54.44a1.5,1.5,0,0,1,1.49.83,1.45,1.45,0,0,1-.68,1.93,1.39,1.39,0,0,1-.53.14,2.62,2.62,0,0,1-.28,0H7.29A7.25,7.25,0,0,1,.06,80.26c0-.1,0-.21-.06-.3ZM30.91,7.2h3.23c.17,0,.23,0,.22-.22s0-.47,0-.7A3.43,3.43,0,0,0,28,4.62a4.27,4.27,0,0,0-.45,2.3c0,.22,0,.29.27.29,1,0,2.09,0,3.14,0Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2281","data-name":"Trazado 2281",style:{fill:resolvedColor},d:"M54.79,38.4c8.35-.94,15.22,1.7,20.36,8.46A19.94,19.94,0,0,1,79.1,57a20.86,20.86,0,0,1-2,11.63.24.24,0,0,0,.05.34h0L92.23,82.66a5.82,5.82,0,1,1-7.83,8.62l-.07-.06Q76.76,84.37,69.2,77.47c-.15-.13-.23-.09-.37,0a21.24,21.24,0,0,1-7,2.6,21.08,21.08,0,0,1-21-8.55,20.4,20.4,0,0,1-3.79-10A21.15,21.15,0,0,1,51.26,39.31,23.75,23.75,0,0,1,54.79,38.4Zm21.72,18A18.62,18.62,0,1,0,61,77.68h0A18.64,18.64,0,0,0,76.51,56.39Zm15.08,30a3.31,3.31,0,0,0-1.12-2L75.89,71.17c-.16-.14-.23-.14-.36,0a20.4,20.4,0,0,1-4.16,4.49c-.2.15-.19.23,0,.39,1.78,1.6,3.56,3.22,5.34,4.84l9.39,8.52a3.32,3.32,0,0,0,5.5-3Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2282","data-name":"Trazado 2282",style:{fill:resolvedColor},d:"M31,19.9H20.38A5.76,5.76,0,0,1,14.57,15a3.12,3.12,0,0,1,0-1.1,1.45,1.45,0,0,1,2.88.22,2.85,2.85,0,0,0,1.74,2.68A2.54,2.54,0,0,0,20.3,17H42a2.9,2.9,0,0,0,2.89-2.85,1.46,1.46,0,0,1,2.91-.07v.1a5.8,5.8,0,0,1-5.72,5.72Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2283","data-name":"Trazado 2283",style:{fill:resolvedColor},d:"M13.22,68V66.07A1.86,1.86,0,0,1,15,64.15c1.36,0,2.73,0,4.09,0A1.86,1.86,0,0,1,20.88,66q0,2,0,3.93A1.91,1.91,0,0,1,19,71.83c-1.28,0-2.57,0-3.85,0a1.91,1.91,0,0,1-1.91-1.9V68Zm2.24,0v.76a.77.77,0,0,0,.71.85.28.28,0,0,0,.13,0c.5,0,1,0,1.49,0a.78.78,0,0,0,.85-.73v-.09c0-.51,0-1,0-1.54a.76.76,0,0,0-.72-.8h0a12.2,12.2,0,0,0-1.71,0,.76.76,0,0,0-.72.79h0V68Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2284","data-name":"Trazado 2284",style:{fill:resolvedColor},d:"M13.22,52.67V50.75a1.87,1.87,0,0,1,1.83-1.9q2,0,4,0a1.88,1.88,0,0,1,1.84,1.81c0,1.35,0,2.71,0,4.06a1.84,1.84,0,0,1-1.77,1.79,39.85,39.85,0,0,1-4.09,0,1.85,1.85,0,0,1-1.81-1.89.19.19,0,0,1,0-.08ZM17,54.27h.76a.79.79,0,0,0,.84-.73v-.07c0-.52,0-1,0-1.57a.76.76,0,0,0-.71-.79c-.6,0-1.2,0-1.79,0a.74.74,0,0,0-.68.75q0,.83,0,1.65a.77.77,0,0,0,.77.75Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2285","data-name":"Trazado 2285",style:{fill:resolvedColor},d:"M13.22,37.38v-2a1.88,1.88,0,0,1,1.86-1.87q2,0,3.93,0a1.85,1.85,0,0,1,1.86,1.78c0,1.37,0,2.74,0,4.12A1.85,1.85,0,0,1,19,41.23q-2,0-4,0a1.88,1.88,0,0,1-1.85-1.9ZM17.05,39h.75a.8.8,0,0,0,.84-.74v-.06c0-.53,0-1,0-1.57a.77.77,0,0,0-.75-.8H16.2a.77.77,0,0,0-.74.76c0,.55,0,1.1,0,1.66a.77.77,0,0,0,.77.75c.27,0,.54,0,.81,0Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2286","data-name":"Trazado 2286",style:{fill:resolvedColor},d:"M30.54,38.84h-5a1.45,1.45,0,0,1-1.47-1.43A1.48,1.48,0,0,1,25.26,36a2,2,0,0,1,.35,0h9.87a1.45,1.45,0,0,1,.11,2.9H30.54Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2287","data-name":"Trazado 2287",style:{fill:resolvedColor},d:"M28.44,54.14H25.59a1.44,1.44,0,0,1-1.49-1.39s0,0,0-.06a1.48,1.48,0,0,1,1.47-1.46h5.73a1.45,1.45,0,0,1,1.52,1.38,1.44,1.44,0,0,1-1.37,1.52h-3Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2288","data-name":"Trazado 2288",style:{fill:resolvedColor},d:"M27.36,66.54c.63,0,1.26,0,1.9,0a1.44,1.44,0,0,1,1.36,1.27,1.47,1.47,0,0,1-1,1.56,1.6,1.6,0,0,1-.54.07H25.64a1.46,1.46,0,0,1-.17-2.91.43.43,0,0,1,.16,0h1.73Z"}),/* @__PURE__ */jsx$1("path",{id:"Trazado_2289","data-name":"Trazado 2289",style:{fill:resolvedColor},d:"M54.49,47.45a13.8,13.8,0,0,1,8.82,1.95,12.64,12.64,0,0,1,4.62,5.36,18.36,18.36,0,0,1,1.44,4.33,1.24,1.24,0,0,1-1,1.45h0A1.22,1.22,0,0,1,67,59.63a16.4,16.4,0,0,0-1.56-4.37A9.91,9.91,0,0,0,57,49.91a11.82,11.82,0,0,0-2.59.08,1.23,1.23,0,0,1-1.47-.94v0a1.23,1.23,0,0,1,1-1.47H54Z"})]})});};var defaultColor$3=getColor("primary","500");var MailIcon=function MailIcon2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?24:_ref$size,_ref$color=_ref3.color,color2=_ref$color===void 0?defaultColor$3:_ref$color;var resolvedColor=isValidColor(color2)?color2:defaultColor$3;return/* @__PURE__ */jsxs("svg",{width:size2,height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[/* @__PURE__ */jsx$1("path",{d:"M4 4H20C21.1 4 22 4.9 22 6V18C22 19.1 21.1 20 20 20H4C2.9 20 2 19.1 2 18V6C2 4.9 2.9 4 4 4Z",stroke:resolvedColor,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */jsx$1("path",{d:"M22 6L12 13L2 6",stroke:resolvedColor,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});};var defaultColor$2=getColor("primary","500");var FileIcon=function FileIcon2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?24:_ref$size,_ref$color=_ref3.color,color2=_ref$color===void 0?defaultColor$2:_ref$color;var resolvedColor=isValidColor(color2)?color2:defaultColor$2;return/* @__PURE__ */jsxs("svg",{width:size2,height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[/* @__PURE__ */jsx$1("path",{d:"M13 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V9L13 2Z",stroke:resolvedColor,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */jsx$1("path",{d:"M13 2V9H20",stroke:resolvedColor,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});};var defaultColor$1=getColor("primary","500");var PriceDownIcon=function PriceDownIcon2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?24:_ref$size,_ref$color=_ref3.color,color2=_ref$color===void 0?defaultColor$1:_ref$color;var resolvedColor=isValidColor(color2)?color2:defaultColor$1;return/* @__PURE__ */jsxs("svg",{width:size2,height:"100%",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[/* @__PURE__ */jsx$1("path",{d:"M19.012 23.8615C19.2082 24.0664 19.5353 24.0672 19.7325 23.8633L23.2885 20.1866C23.595 19.8697 23.3712 19.3401 22.9303 19.339L15.8363 19.3217C15.3955 19.3206 15.1691 19.8492 15.474 20.1676L19.012 23.8615Z",fill:resolvedColor}),/* @__PURE__ */jsx$1("mask",{id:"path-2-inside-1_1_1191",fill:"white",children:/* @__PURE__ */jsx$1("path",{d:"M21.651 11.1531C22.2033 11.1531 22.6557 10.7044 22.6051 10.1544C22.4392 8.35049 21.8256 6.61063 20.8131 5.09564C19.6148 3.30264 17.9116 1.90517 15.9188 1.07995C13.9261 0.254719 11.7334 0.0388023 9.61795 0.459499C7.50249 0.880196 5.55932 1.91861 4.03417 3.44343C2.50901 4.96825 1.47036 6.91099 1.04957 9.02598C0.628782 11.141 0.844747 13.3332 1.67016 15.3255C2.49557 17.3177 3.89335 19.0206 5.68674 20.2186C7.20212 21.2309 8.94246 21.8444 10.7469 22.0103C11.2969 22.0609 11.7455 21.6084 11.7455 21.0561V20.6624C11.7455 20.1101 11.2962 19.6684 10.7478 19.6037C9.41766 19.4467 8.13837 18.9775 7.01693 18.2283C5.61727 17.2933 4.52637 15.9643 3.88217 14.4094C3.23798 12.8546 3.06943 11.1436 3.39784 9.49297C3.72624 7.84233 4.53686 6.32611 5.72717 5.13606C6.91748 3.94601 8.43404 3.13558 10.085 2.80724C11.7361 2.47891 13.4474 2.64742 15.0026 3.29147C16.5578 3.93552 17.8871 5.02618 18.8223 6.42553C19.5716 7.54666 20.041 8.82559 20.198 10.1553C20.2628 10.7038 20.7044 11.1531 21.2567 11.1531H21.651Z"})}),/* @__PURE__ */jsx$1("path",{d:"M21.651 11.1531C22.2033 11.1531 22.6557 10.7044 22.6051 10.1544C22.4392 8.35049 21.8256 6.61063 20.8131 5.09564C19.6148 3.30264 17.9116 1.90517 15.9188 1.07995C13.9261 0.254719 11.7334 0.0388023 9.61795 0.459499C7.50249 0.880196 5.55932 1.91861 4.03417 3.44343C2.50901 4.96825 1.47036 6.91099 1.04957 9.02598C0.628782 11.141 0.844747 13.3332 1.67016 15.3255C2.49557 17.3177 3.89335 19.0206 5.68674 20.2186C7.20212 21.2309 8.94246 21.8444 10.7469 22.0103C11.2969 22.0609 11.7455 21.6084 11.7455 21.0561V20.6624C11.7455 20.1101 11.2962 19.6684 10.7478 19.6037C9.41766 19.4467 8.13837 18.9775 7.01693 18.2283C5.61727 17.2933 4.52637 15.9643 3.88217 14.4094C3.23798 12.8546 3.06943 11.1436 3.39784 9.49297C3.72624 7.84233 4.53686 6.32611 5.72717 5.13606C6.91748 3.94601 8.43404 3.13558 10.085 2.80724C11.7361 2.47891 13.4474 2.64742 15.0026 3.29147C16.5578 3.93552 17.8871 5.02618 18.8223 6.42553C19.5716 7.54666 20.041 8.82559 20.198 10.1553C20.2628 10.7038 20.7044 11.1531 21.2567 11.1531H21.651Z",fill:"white",stroke:resolvedColor,strokeWidth:"4",mask:"url(#path-2-inside-1_1_1191)"}),/* @__PURE__ */jsx$1("path",{d:"M19.3793 14.424V23.1464",stroke:resolvedColor,strokeWidth:"2"}),/* @__PURE__ */jsx$1("path",{d:"M11.4043 17.7033V4.97607H12.2197V17.7033H11.4043ZM13.567 9.17707C13.5272 8.77603 13.3565 8.46447 13.0549 8.24241C12.7533 8.02034 12.344 7.90931 11.8269 7.90931C11.4756 7.90931 11.179 7.95903 10.937 8.05846C10.6951 8.15458 10.5095 8.28881 10.3802 8.46116C10.2543 8.63351 10.1913 8.82906 10.1913 9.04781C10.1847 9.2301 10.2228 9.38919 10.3056 9.52508C10.3918 9.66097 10.5095 9.77863 10.6586 9.87806C10.8078 9.97418 10.9801 10.0587 11.1757 10.1316C11.3712 10.2012 11.58 10.2609 11.8021 10.3106L12.7168 10.5293C13.161 10.6288 13.5686 10.7613 13.9399 10.9271C14.3111 11.0928 14.6326 11.2966 14.9043 11.5386C15.1761 11.7805 15.3866 12.0656 15.5357 12.3937C15.6882 12.7218 15.7661 13.098 15.7694 13.5222C15.7661 14.1453 15.607 14.6856 15.2921 15.143C14.9806 15.597 14.5298 15.95 13.9399 16.2019C13.3532 16.4505 12.6456 16.5748 11.817 16.5748C10.995 16.5748 10.2791 16.4488 9.66926 16.197C9.06273 15.9451 8.58877 15.5722 8.24739 15.0783C7.90932 14.5812 7.732 13.9664 7.71543 13.2339H9.79852C9.82172 13.5753 9.9195 13.8603 10.0918 14.089C10.2675 14.3144 10.5012 14.4851 10.7928 14.6011C11.0878 14.7138 11.4209 14.7701 11.7921 14.7701C12.1567 14.7701 12.4732 14.7171 12.7417 14.611C13.0135 14.505 13.2239 14.3575 13.3731 14.1685C13.5222 13.9796 13.5968 13.7625 13.5968 13.5173C13.5968 13.2886 13.5289 13.0963 13.393 12.9406C13.2604 12.7848 13.0649 12.6522 12.8063 12.5428C12.5511 12.4335 12.2379 12.334 11.8667 12.2445L10.758 11.9661C9.89961 11.7573 9.22182 11.4309 8.72466 10.9867C8.2275 10.5426 7.98058 9.94435 7.98389 9.19198C7.98058 8.5755 8.14464 8.03692 8.47608 7.57622C8.81083 7.11551 9.26988 6.7559 9.85321 6.49738C10.4365 6.23886 11.0994 6.1096 11.8418 6.1096C12.5975 6.1096 13.2571 6.23886 13.8205 6.49738C14.3873 6.7559 14.8281 7.11551 15.143 7.57622C15.4579 8.03692 15.6203 8.57053 15.6302 9.17707H13.567Z",fill:resolvedColor})]});};var defaultColor=getColor("grey","500");var PriceCloseIcon=function PriceCloseIcon2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?24:_ref$size,_ref$color=_ref3.color,color2=_ref$color===void 0?defaultColor:_ref$color;var resolvedColor=isValidColor(color2)?color2:defaultColor;return/* @__PURE__ */jsxs("svg",{width:size2,height:"100%",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[/* @__PURE__ */jsx$1("path",{d:"M22.6371 18.2207H22.1451V17.2905C22.1505 16.9818 22.0908 16.675 21.9697 16.3883C21.8485 16.1015 21.6681 15.8404 21.4392 15.6203C21.2103 15.4001 20.9373 15.2252 20.6362 15.1059C20.3351 14.9865 20.0119 14.925 19.6854 14.925C19.3589 14.925 19.0357 14.9865 18.7346 15.1059C18.4335 15.2252 18.1605 15.4001 17.9316 15.6203C17.7026 15.8404 17.5223 16.1015 17.4011 16.3883C17.2799 16.675 17.2203 16.9818 17.2257 17.2905V18.2207H16.7337C16.4724 18.2214 16.2221 18.3201 16.0377 18.495C15.8532 18.67 15.7496 18.907 15.7496 19.1541V23.8077C15.7503 24.0543 15.8542 24.2907 16.0386 24.4651C16.223 24.6395 16.4729 24.7378 16.7337 24.7385H22.6405C22.9012 24.7378 23.1511 24.6395 23.3355 24.4651C23.5199 24.2907 23.6238 24.0543 23.6245 23.8077V19.1541C23.6245 19.0315 23.5989 18.9101 23.5493 18.7968C23.4997 18.6835 23.4269 18.5806 23.3352 18.4939C23.2435 18.4072 23.1347 18.3385 23.0149 18.2916C22.8951 18.2447 22.7667 18.2207 22.6371 18.2207ZM19.6837 22.4114C19.4891 22.4114 19.2988 22.3568 19.137 22.2545C18.9752 22.1523 18.8491 22.0069 18.7746 21.8368C18.7001 21.6667 18.6806 21.4795 18.7186 21.299C18.7566 21.1184 18.8503 20.9526 18.9879 20.8224C19.1255 20.6922 19.3008 20.6035 19.4917 20.5676C19.6826 20.5317 19.8805 20.5501 20.0603 20.6206C20.2401 20.691 20.3938 20.8104 20.5019 20.9634C20.61 21.1165 20.6677 21.2965 20.6677 21.4806C20.6665 21.7267 20.5625 21.9624 20.3785 22.1364C20.1945 22.3103 19.9452 22.4085 19.685 22.4095L19.6837 22.4114ZM21.2087 18.2207H18.16V17.2905C18.16 16.9079 18.3207 16.541 18.6067 16.2705C18.8927 15.9999 19.2806 15.8479 19.685 15.8479C20.0895 15.8479 20.4774 15.9999 20.7634 16.2705C21.0494 16.541 21.2101 16.9079 21.2101 17.2905L21.2087 18.2207Z",fill:resolvedColor}),/* @__PURE__ */jsx$1("mask",{id:"path-2-inside-1_1_970",fill:"white",children:/* @__PURE__ */jsx$1("path",{d:"M21.4995 11.6539C22.0518 11.6539 22.5044 11.2052 22.4523 10.6553C22.2811 8.8512 21.6481 7.11114 20.6036 5.596C19.3675 3.80287 17.6105 2.4053 15.5549 1.58001C13.4992 0.75472 11.2373 0.538787 9.05505 0.959515C6.87281 1.38024 4.86829 2.41874 3.29498 3.94367C1.72167 5.4686 0.650236 7.41148 0.216161 9.52663C-0.217914 11.6418 0.00486931 13.8342 0.856338 15.8266C1.70781 17.819 3.14972 19.522 4.99973 20.7201C6.57173 21.7382 8.3784 22.3529 10.251 22.5147C10.8012 22.5622 11.2498 22.11 11.2498 21.5577V21.1638C11.2498 20.6115 10.8007 20.1695 10.2518 20.1087C8.86847 19.9553 7.53753 19.4845 6.37192 18.7296C4.92807 17.7945 3.80272 16.4655 3.13819 14.9105C2.47366 13.3555 2.29979 11.6444 2.63856 9.99366C2.97734 8.34289 3.81354 6.82656 5.04144 5.63642C6.26933 4.44628 7.83376 3.63579 9.5369 3.30743C11.24 2.97907 13.0054 3.1476 14.6097 3.7917C16.214 4.4358 17.5853 5.52654 18.55 6.92599C19.323 8.04726 19.8072 9.32637 19.9692 10.6563C20.0359 11.2045 20.4774 11.6539 21.0297 11.6539H21.4995Z"})}),/* @__PURE__ */jsx$1("path",{d:"M21.4995 11.6539C22.0518 11.6539 22.5044 11.2052 22.4523 10.6553C22.2811 8.8512 21.6481 7.11114 20.6036 5.596C19.3675 3.80287 17.6105 2.4053 15.5549 1.58001C13.4992 0.75472 11.2373 0.538787 9.05505 0.959515C6.87281 1.38024 4.86829 2.41874 3.29498 3.94367C1.72167 5.4686 0.650236 7.41148 0.216161 9.52663C-0.217914 11.6418 0.00486931 13.8342 0.856338 15.8266C1.70781 17.819 3.14972 19.522 4.99973 20.7201C6.57173 21.7382 8.3784 22.3529 10.251 22.5147C10.8012 22.5622 11.2498 22.11 11.2498 21.5577V21.1638C11.2498 20.6115 10.8007 20.1695 10.2518 20.1087C8.86847 19.9553 7.53753 19.4845 6.37192 18.7296C4.92807 17.7945 3.80272 16.4655 3.13819 14.9105C2.47366 13.3555 2.29979 11.6444 2.63856 9.99366C2.97734 8.34289 3.81354 6.82656 5.04144 5.63642C6.26933 4.44628 7.83376 3.63579 9.5369 3.30743C11.24 2.97907 13.0054 3.1476 14.6097 3.7917C16.214 4.4358 17.5853 5.52654 18.55 6.92599C19.323 8.04726 19.8072 9.32637 19.9692 10.6563C20.0359 11.2045 20.4774 11.6539 21.0297 11.6539H21.4995Z",fill:"white",stroke:resolvedColor,strokeWidth:"4",mask:"url(#path-2-inside-1_1_970)"}),/* @__PURE__ */jsx$1("path",{d:"M10.9086 18.2035V5.47624H11.7239V18.2035H10.9086ZM13.0712 9.67723C13.0315 9.27619 12.8608 8.96464 12.5592 8.74258C12.2575 8.52051 11.8482 8.40948 11.3312 8.40948C10.9798 8.40948 10.6832 8.45919 10.4413 8.55863C10.1993 8.65474 10.0137 8.78898 9.88444 8.96133C9.7585 9.13367 9.69552 9.32922 9.69552 9.54797C9.68889 9.73027 9.72701 9.88936 9.80987 10.0252C9.89604 10.1611 10.0137 10.2788 10.1629 10.3782C10.312 10.4743 10.4843 10.5589 10.6799 10.6318C10.8754 10.7014 11.0843 10.761 11.3063 10.8108L12.2211 11.0295C12.6652 11.1289 13.0729 11.2615 13.4441 11.4272C13.8153 11.593 14.1368 11.7968 14.4086 12.0387C14.6804 12.2807 14.8908 12.5657 15.04 12.8939C15.1924 13.222 15.2703 13.5982 15.2736 14.0224C15.2703 14.6455 15.1112 15.1858 14.7964 15.6431C14.4848 16.0972 14.0341 16.4502 13.4441 16.7021C12.8575 16.9507 12.1498 17.075 11.3212 17.075C10.4993 17.075 9.78335 16.949 9.1735 16.6971C8.56697 16.4452 8.09301 16.0724 7.75163 15.5785C7.41356 15.0814 7.23624 14.4665 7.21967 13.7341H9.30277C9.32597 14.0754 9.42374 14.3605 9.59609 14.5892C9.77175 14.8145 10.0054 14.9852 10.2971 15.1012C10.5921 15.2139 10.9252 15.2703 11.2964 15.2703C11.661 15.2703 11.9775 15.2172 12.2459 15.1112C12.5177 15.0051 12.7282 14.8576 12.8773 14.6687C13.0265 14.4798 13.1011 14.2627 13.1011 14.0174C13.1011 13.7887 13.0331 13.5965 12.8972 13.4407C12.7647 13.285 12.5691 13.1524 12.3106 13.043C12.0554 12.9336 11.7422 12.8342 11.3709 12.7447L10.2623 12.4663C9.40386 12.2575 8.72606 11.931 8.2289 11.4869C7.73174 11.0428 7.48482 10.4445 7.48814 9.69215C7.48482 9.07567 7.64888 8.53708 7.98032 8.07638C8.31508 7.61568 8.77412 7.25607 9.35745 6.99755C9.94079 6.73902 10.6037 6.60976 11.3461 6.60976C12.1018 6.60976 12.7613 6.73902 13.3248 6.99755C13.8915 7.25607 14.3324 7.61568 14.6472 8.07638C14.9621 8.53708 15.1245 9.0707 15.1344 9.67723H13.0712Z",fill:resolvedColor})]});};function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o2){return typeof o2;}:function(o2){return o2&&"function"==typeof Symbol&&o2.constructor===Symbol&&o2!==Symbol.prototype?"symbol":typeof o2;},_typeof(o);}function toPrimitive(t,r2){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r2);if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r2?String:Number)(t);}function toPropertyKey(t){var i=toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _defineProperty(e,r2,t){return(r2=toPropertyKey(r2))in e?Object.defineProperty(e,r2,{value:t,enumerable:true,configurable:true,writable:true}):e[r2]=t,e;}function ownKeys(e,r2){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r2&&(o=o.filter(function(r3){return Object.getOwnPropertyDescriptor(e,r3).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread2(e){for(var r2=1;r2<arguments.length;r2++){var t=null!=arguments[r2]?arguments[r2]:{};r2%2?ownKeys(Object(t),true).forEach(function(r3){_defineProperty(e,r3,t[r3]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r3){Object.defineProperty(e,r3,Object.getOwnPropertyDescriptor(t,r3));});}return e;}function _arrayWithHoles(r2){if(Array.isArray(r2))return r2;}function _iterableToArrayLimit(r2,l){var t=null==r2?null:"undefined"!=typeof Symbol&&r2[Symbol.iterator]||r2["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=true,o=false;try{if(i=(t=t.call(r2)).next,0===l){if(Object(t)!==t)return;f=false;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=true);}catch(r3){o=true,n=r3;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayLikeToArray(r2,a){(null==a||a>r2.length)&&(a=r2.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r2[e];return n;}function _unsupportedIterableToArray(r2,a){if(r2){if("string"==typeof r2)return _arrayLikeToArray(r2,a);var t={}.toString.call(r2).slice(8,-1);return"Object"===t&&r2.constructor&&(t=r2.constructor.name),"Map"===t||"Set"===t?Array.from(r2):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r2,a):void 0;}}function _nonIterableRest(){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 _slicedToArray(r2,e){return _arrayWithHoles(r2)||_iterableToArrayLimit(r2,e)||_unsupportedIterableToArray(r2,e)||_nonIterableRest();}function _objectWithoutProperties(e,t){if(null==e)return{};var o,r2,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r2=0;r2<n.length;r2++)o=n[r2],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}var _excluded$12=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function useStateManager(_ref3){var _ref$defaultInputValu=_ref3.defaultInputValue,defaultInputValue=_ref$defaultInputValu===void 0?"":_ref$defaultInputValu,_ref$defaultMenuIsOpe=_ref3.defaultMenuIsOpen,defaultMenuIsOpen=_ref$defaultMenuIsOpe===void 0?false:_ref$defaultMenuIsOpe,_ref$defaultValue=_ref3.defaultValue,defaultValue=_ref$defaultValue===void 0?null:_ref$defaultValue,propsInputValue=_ref3.inputValue,propsMenuIsOpen=_ref3.menuIsOpen,propsOnChange=_ref3.onChange,propsOnInputChange=_ref3.onInputChange,propsOnMenuClose=_ref3.onMenuClose,propsOnMenuOpen=_ref3.onMenuOpen,propsValue=_ref3.value,restSelectProps=_objectWithoutProperties(_ref3,_excluded$12);var _useState=useState(propsInputValue!==void 0?propsInputValue:defaultInputValue),_useState2=_slicedToArray(_useState,2),stateInputValue=_useState2[0],setStateInputValue=_useState2[1];var _useState3=useState(propsMenuIsOpen!==void 0?propsMenuIsOpen:defaultMenuIsOpen),_useState4=_slicedToArray(_useState3,2),stateMenuIsOpen=_useState4[0],setStateMenuIsOpen=_useState4[1];var _useState5=useState(propsValue!==void 0?propsValue:defaultValue),_useState6=_slicedToArray(_useState5,2),stateValue=_useState6[0],setStateValue=_useState6[1];var onChange2=useCallback(function(value2,actionMeta){if(typeof propsOnChange==="function"){propsOnChange(value2,actionMeta);}setStateValue(value2);},[propsOnChange]);var onInputChange2=useCallback(function(value2,actionMeta){var newValue;if(typeof propsOnInputChange==="function"){newValue=propsOnInputChange(value2,actionMeta);}setStateInputValue(newValue!==void 0?newValue:value2);},[propsOnInputChange]);var onMenuOpen=useCallback(function(){if(typeof propsOnMenuOpen==="function"){propsOnMenuOpen();}setStateMenuIsOpen(true);},[propsOnMenuOpen]);var onMenuClose=useCallback(function(){if(typeof propsOnMenuClose==="function"){propsOnMenuClose();}setStateMenuIsOpen(false);},[propsOnMenuClose]);var inputValue=propsInputValue!==void 0?propsInputValue:stateInputValue;var menuIsOpen=propsMenuIsOpen!==void 0?propsMenuIsOpen:stateMenuIsOpen;var value=propsValue!==void 0?propsValue:stateValue;return _objectSpread2(_objectSpread2({},restSelectProps),{},{inputValue:inputValue,menuIsOpen:menuIsOpen,onChange:onChange2,onInputChange:onInputChange2,onMenuClose:onMenuClose,onMenuOpen:onMenuOpen,value:value});}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r2){for(var t=0;t<r2.length;t++){var o=r2[t];o.enumerable=o.enumerable||false,o.configurable=true,"value"in o&&(o.writable=true),Object.defineProperty(e,toPropertyKey(o.key),o);}}function _createClass(e,r2,t){return r2&&_defineProperties(e.prototype,r2),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:false}),e;}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}}),Object.defineProperty(t,"prototype",{writable:false}),e&&_setPrototypeOf(t,e);}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t2){return t2.__proto__||Object.getPrototypeOf(t2);},_getPrototypeOf(t);}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t2){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct2(){return!!t;})();}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _createSuper(t){var r2=_isNativeReflectConstruct();return function(){var e,o=_getPrototypeOf(t);if(r2){var s=_getPrototypeOf(this).constructor;e=Reflect.construct(o,arguments,s);}else e=o.apply(this,arguments);return _possibleConstructorReturn(this,e);};}function _arrayWithoutHoles(r2){if(Array.isArray(r2))return _arrayLikeToArray(r2);}function _iterableToArray(r2){if("undefined"!=typeof Symbol&&null!=r2[Symbol.iterator]||null!=r2["@@iterator"])return Array.from(r2);}function _nonIterableSpread(){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 _toConsumableArray(r2){return _arrayWithoutHoles(r2)||_iterableToArray(r2)||_unsupportedIterableToArray(r2)||_nonIterableSpread();}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}var sides=["top","right","bottom","left"];var min$2=Math.min;var max$2=Math.max;var round$2=Math.round;var floor=Math.floor;var createCoords=function createCoords(v){return{x:v,y:v};};var oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"};var oppositeAlignmentMap={start:"end",end:"start"};function clamp(start2,value,end2){return max$2(start2,min$2(value,end2));}function evaluate(value,param){return typeof value==="function"?value(param):value;}function getSide(placement){return placement.split("-")[0];}function getAlignment(placement){return placement.split("-")[1];}function getOppositeAxis(axis){return axis==="x"?"y":"x";}function getAxisLength(axis){return axis==="y"?"height":"width";}var yAxisSides=/* @__PURE__ */new Set(["top","bottom"]);function getSideAxis(placement){return yAxisSides.has(getSide(placement))?"y":"x";}function getAlignmentAxis(placement){return getOppositeAxis(getSideAxis(placement));}function getAlignmentSides(placement,rects,rtl){if(rtl===void 0){rtl=false;}var alignment=getAlignment(placement);var alignmentAxis=getAlignmentAxis(placement);var length2=getAxisLength(alignmentAxis);var mainAlignmentSide=alignmentAxis==="x"?alignment===(rtl?"end":"start")?"right":"left":alignment==="start"?"bottom":"top";if(rects.reference[length2]>rects.floating[length2]){mainAlignmentSide=getOppositePlacement$1(mainAlignmentSide);}return[mainAlignmentSide,getOppositePlacement$1(mainAlignmentSide)];}function getExpandedPlacements(placement){var oppositePlacement=getOppositePlacement$1(placement);return[getOppositeAlignmentPlacement(placement),oppositePlacement,getOppositeAlignmentPlacement(oppositePlacement)];}function getOppositeAlignmentPlacement(placement){return placement.replace(/start|end/g,function(alignment){return oppositeAlignmentMap[alignment];});}var lrPlacement=["left","right"];var rlPlacement=["right","left"];var tbPlacement=["top","bottom"];var btPlacement=["bottom","top"];function getSideList(side,isStart,rtl){switch(side){case"top":case"bottom":if(rtl)return isStart?rlPlacement:lrPlacement;return isStart?lrPlacement:rlPlacement;case"left":case"right":return isStart?tbPlacement:btPlacement;default:return[];}}function getOppositeAxisPlacements(placement,flipAlignment,direction,rtl){var alignment=getAlignment(placement);var list2=getSideList(getSide(placement),direction==="start",rtl);if(alignment){list2=list2.map(function(side){return side+"-"+alignment;});if(flipAlignment){list2=list2.concat(list2.map(getOppositeAlignmentPlacement));}}return list2;}function getOppositePlacement$1(placement){return placement.replace(/left|right|bottom|top/g,function(side){return oppositeSideMap[side];});}function expandPaddingObject(padding2){return __spreadValues({top:0,right:0,bottom:0,left:0},padding2);}function getPaddingObject(padding2){return typeof padding2!=="number"?expandPaddingObject(padding2):{top:padding2,right:padding2,bottom:padding2,left:padding2};}function rectToClientRect$1(rect){var x=rect.x,y=rect.y,width2=rect.width,height2=rect.height;return{width:width2,height:height2,top:y,left:x,right:x+width2,bottom:y+height2,x:x,y:y};}function computeCoordsFromPlacement(_ref3,placement,rtl){var reference2=_ref3.reference,floating=_ref3.floating;var sideAxis=getSideAxis(placement);var alignmentAxis=getAlignmentAxis(placement);var alignLength=getAxisLength(alignmentAxis);var side=getSide(placement);var isVertical=sideAxis==="y";var commonX=reference2.x+reference2.width/2-floating.width/2;var commonY=reference2.y+reference2.height/2-floating.height/2;var commonAlign=reference2[alignLength]/2-floating[alignLength]/2;var coords;switch(side){case"top":coords={x:commonX,y:reference2.y-floating.height};break;case"bottom":coords={x:commonX,y:reference2.y+reference2.height};break;case"right":coords={x:reference2.x+reference2.width,y:commonY};break;case"left":coords={x:reference2.x-floating.width,y:commonY};break;default:coords={x:reference2.x,y:reference2.y};}switch(getAlignment(placement)){case"start":coords[alignmentAxis]-=commonAlign*(rtl&&isVertical?-1:1);break;case"end":coords[alignmentAxis]+=commonAlign*(rtl&&isVertical?-1:1);break;}return coords;}var computePosition$1=function computePosition$1(reference2,floating,config2){return __async(void 0,null,/*#__PURE__*/_regenerator().m(function _callee(){var _config2$placement,placement,_config2$strategy,strategy,_config2$middleware,middleware2,platform2,validMiddleware,rtl,rects,_computeCoordsFromPla,x,y,statefulPlacement,middlewareData,resetCount,_i0,_validMiddleware$_i,name,fn3,_yield$fn,nextX,nextY,data,reset,_computeCoordsFromPla2,_t;return _regenerator().w(function(_context){while(1)switch(_context.n){case 0:_config2$placement=config2.placement,placement=_config2$placement===void 0?"bottom":_config2$placement,_config2$strategy=config2.strategy,strategy=_config2$strategy===void 0?"absolute":_config2$strategy,_config2$middleware=config2.middleware,middleware2=_config2$middleware===void 0?[]:_config2$middleware,platform2=config2.platform;validMiddleware=middleware2.filter(Boolean);_context.n=1;return platform2.isRTL==null?void 0:platform2.isRTL(floating);case 1:rtl=_context.v;_context.n=2;return platform2.getElementRects({reference:reference2,floating:floating,strategy:strategy});case 2:rects=_context.v;_computeCoordsFromPla=computeCoordsFromPlacement(rects,placement,rtl),x=_computeCoordsFromPla.x,y=_computeCoordsFromPla.y;statefulPlacement=placement;middlewareData={};resetCount=0;_i0=0;case 3:if(!(_i0<validMiddleware.length)){_context.n=11;break;}_validMiddleware$_i=validMiddleware[_i0],name=_validMiddleware$_i.name,fn3=_validMiddleware$_i.fn;_context.n=4;return fn3({x:x,y:y,initialPlacement:placement,placement:statefulPlacement,strategy:strategy,middlewareData:middlewareData,rects:rects,platform:platform2,elements:{reference:reference2,floating:floating}});case 4:_yield$fn=_context.v;nextX=_yield$fn.x;nextY=_yield$fn.y;data=_yield$fn.data;reset=_yield$fn.reset;x=nextX!=null?nextX:x;y=nextY!=null?nextY:y;middlewareData=__spreadProps(__spreadValues({},middlewareData),_defineProperty2({},name,__spreadValues(__spreadValues({},middlewareData[name]),data)));if(!(reset&&resetCount<=50)){_context.n=10;break;}resetCount++;if(!(_typeof2(reset)==="object")){_context.n=9;break;}if(reset.placement){statefulPlacement=reset.placement;}if(!reset.rects){_context.n=8;break;}if(!(reset.rects===true)){_context.n=6;break;}_context.n=5;return platform2.getElementRects({reference:reference2,floating:floating,strategy:strategy});case 5:_t=_context.v;_context.n=7;break;case 6:_t=reset.rects;case 7:rects=_t;case 8:_computeCoordsFromPla2=computeCoordsFromPlacement(rects,statefulPlacement,rtl);x=_computeCoordsFromPla2.x;y=_computeCoordsFromPla2.y;case 9:_i0=-1;case 10:_i0++;_context.n=3;break;case 11:return _context.a(2,{x:x,y:y,placement:statefulPlacement,strategy:strategy,middlewareData:middlewareData});}},_callee);}));};function detectOverflow$1(state,options){return __async(this,null,/*#__PURE__*/_regenerator().m(function _callee2(){var _await$platform$isEle,x,y,platform2,rects,elements,strategy,_evaluate,_evaluate$boundary,boundary,_evaluate$rootBoundar,rootBoundary,_evaluate$elementCont,elementContext,_evaluate$altBoundary,altBoundary,_evaluate$padding,padding2,paddingObject,altContext,element,clippingClientRect,rect,offsetParent,offsetScale,elementClientRect,_t2,_t3,_t4,_t5,_t6,_t7,_t8,_t9,_t0,_t1,_t10,_t11,_t12,_t13;return _regenerator().w(function(_context2){while(1)switch(_context2.n){case 0:if(options===void 0){options={};}x=state.x,y=state.y,platform2=state.platform,rects=state.rects,elements=state.elements,strategy=state.strategy;_evaluate=evaluate(options,state),_evaluate$boundary=_evaluate.boundary,boundary=_evaluate$boundary===void 0?"clippingAncestors":_evaluate$boundary,_evaluate$rootBoundar=_evaluate.rootBoundary,rootBoundary=_evaluate$rootBoundar===void 0?"viewport":_evaluate$rootBoundar,_evaluate$elementCont=_evaluate.elementContext,elementContext=_evaluate$elementCont===void 0?"floating":_evaluate$elementCont,_evaluate$altBoundary=_evaluate.altBoundary,altBoundary=_evaluate$altBoundary===void 0?false:_evaluate$altBoundary,_evaluate$padding=_evaluate.padding,padding2=_evaluate$padding===void 0?0:_evaluate$padding;paddingObject=getPaddingObject(padding2);altContext=elementContext==="floating"?"reference":"floating";element=elements[altBoundary?altContext:elementContext];_t2=rectToClientRect$1;_t3=platform2;_context2.n=1;return platform2.isElement==null?void 0:platform2.isElement(element);case 1:_t4=_await$platform$isEle=_context2.v;if(!(_t4!=null)){_context2.n=2;break;}_t5=_await$platform$isEle;_context2.n=3;break;case 2:_t5=true;case 3:if(!_t5){_context2.n=4;break;}_t6=element;_context2.n=7;break;case 4:_t7=element.contextElement;if(_t7){_context2.n=6;break;}_context2.n=5;return platform2.getDocumentElement==null?void 0:platform2.getDocumentElement(elements.floating);case 5:_t7=_context2.v;case 6:_t6=_t7;case 7:_t8=_t6;_t9=boundary;_t0=rootBoundary;_t1=strategy;_context2.n=8;return _t3.getClippingRect.call(_t3,{element:_t8,boundary:_t9,rootBoundary:_t0,strategy:_t1});case 8:clippingClientRect=_t2(_context2.v);rect=elementContext==="floating"?{x:x,y:y,width:rects.floating.width,height:rects.floating.height}:rects.reference;_context2.n=9;return platform2.getOffsetParent==null?void 0:platform2.getOffsetParent(elements.floating);case 9:offsetParent=_context2.v;_context2.n=10;return platform2.isElement==null?void 0:platform2.isElement(offsetParent);case 10:if(!_context2.v){_context2.n=13;break;}_context2.n=11;return platform2.getScale==null?void 0:platform2.getScale(offsetParent);case 11:_t11=_context2.v;if(_t11){_context2.n=12;break;}_t11={x:1,y:1};case 12:_t10=_t11;_context2.n=14;break;case 13:_t10={x:1,y:1};case 14:offsetScale=_t10;_t12=rectToClientRect$1;if(!platform2.convertOffsetParentRelativeRectToViewportRelativeRect){_context2.n=16;break;}_context2.n=15;return platform2.convertOffsetParentRelativeRectToViewportRelativeRect({elements:elements,rect:rect,offsetParent:offsetParent,strategy:strategy});case 15:_t13=_context2.v;_context2.n=17;break;case 16:_t13=rect;case 17:elementClientRect=_t12(_t13);return _context2.a(2,{top:(clippingClientRect.top-elementClientRect.top+paddingObject.top)/offsetScale.y,bottom:(elementClientRect.bottom-clippingClientRect.bottom+paddingObject.bottom)/offsetScale.y,left:(clippingClientRect.left-elementClientRect.left+paddingObject.left)/offsetScale.x,right:(elementClientRect.right-clippingClientRect.right+paddingObject.right)/offsetScale.x});}},_callee2);}));}var arrow$4=function arrow$4(options){return{name:"arrow",options:options,fn:function fn(state){return __async(this,null,/*#__PURE__*/_regenerator().m(function _callee3(){var x,y,placement,rects,platform2,elements,middlewareData,_ref292,element,_ref292$padding,padding2,paddingObject,coords,axis,length2,arrowDimensions,isYAxis,minProp,maxProp,clientProp,endDiff,startDiff,arrowOffsetParent,clientSize,centerToReference,largestPossiblePadding,minPadding,maxPadding,min$12,max2,center,offset2,shouldAddOffset,alignmentOffset,_t14;return _regenerator().w(function(_context3){while(1)switch(_context3.n){case 0:x=state.x,y=state.y,placement=state.placement,rects=state.rects,platform2=state.platform,elements=state.elements,middlewareData=state.middlewareData;_ref292=evaluate(options,state)||{},element=_ref292.element,_ref292$padding=_ref292.padding,padding2=_ref292$padding===void 0?0:_ref292$padding;if(!(element==null)){_context3.n=1;break;}return _context3.a(2,{});case 1:paddingObject=getPaddingObject(padding2);coords={x:x,y:y};axis=getAlignmentAxis(placement);length2=getAxisLength(axis);_context3.n=2;return platform2.getDimensions(element);case 2:arrowDimensions=_context3.v;isYAxis=axis==="y";minProp=isYAxis?"top":"left";maxProp=isYAxis?"bottom":"right";clientProp=isYAxis?"clientHeight":"clientWidth";endDiff=rects.reference[length2]+rects.reference[axis]-coords[axis]-rects.floating[length2];startDiff=coords[axis]-rects.reference[axis];_context3.n=3;return platform2.getOffsetParent==null?void 0:platform2.getOffsetParent(element);case 3:arrowOffsetParent=_context3.v;clientSize=arrowOffsetParent?arrowOffsetParent[clientProp]:0;_t14=!clientSize;if(_t14){_context3.n=5;break;}_context3.n=4;return platform2.isElement==null?void 0:platform2.isElement(arrowOffsetParent);case 4:_t14=!_context3.v;case 5:if(!_t14){_context3.n=6;break;}clientSize=elements.floating[clientProp]||rects.floating[length2];case 6:centerToReference=endDiff/2-startDiff/2;largestPossiblePadding=clientSize/2-arrowDimensions[length2]/2-1;minPadding=min$2(paddingObject[minProp],largestPossiblePadding);maxPadding=min$2(paddingObject[maxProp],largestPossiblePadding);min$12=minPadding;max2=clientSize-arrowDimensions[length2]-maxPadding;center=clientSize/2-arrowDimensions[length2]/2+centerToReference;offset2=clamp(min$12,center,max2);shouldAddOffset=!middlewareData.arrow&&getAlignment(placement)!=null&¢er!==offset2&&rects.reference[length2]/2-(center<min$12?minPadding:maxPadding)-arrowDimensions[length2]/2<0;alignmentOffset=shouldAddOffset?center<min$12?center-min$12:center-max2:0;return _context3.a(2,_defineProperty2(_defineProperty2(_defineProperty2({},axis,coords[axis]+alignmentOffset),"data",__spreadValues(_defineProperty2(_defineProperty2({},axis,offset2),"centerOffset",center-offset2-alignmentOffset),shouldAddOffset&&{alignmentOffset:alignmentOffset})),"reset",shouldAddOffset));}},_callee3);}));}};};var flip$4=function flip$4(options){if(options===void 0){options={};}return{name:"flip",options:options,fn:function fn(state){return __async(this,null,/*#__PURE__*/_regenerator().m(function _callee4(){var _middlewareData$arrow,_middlewareData$flip,placement,middlewareData,rects,initialPlacement,platform2,elements,_a2,_a2$mainAxis,checkMainAxis,_a2$crossAxis,checkCrossAxis,specifiedFallbackPlacements,_a2$fallbackStrategy,fallbackStrategy,_a2$fallbackAxisSideD,fallbackAxisSideDirection,_a2$flipAlignment,flipAlignment,detectOverflowOptions,side,initialSideAxis,isBasePlacement,rtl,fallbackPlacements,hasFallbackAxisSideDirection,placements2,overflow,overflows,overflowsData,sides2,_middlewareData$flip2,_overflowsData$filter,nextIndex,nextPlacement,ignoreCrossAxisOverflow,resetPlacement,_overflowsData$filter2,placement2,_t15;return _regenerator().w(function(_context4){while(1)switch(_context4.n){case 0:placement=state.placement,middlewareData=state.middlewareData,rects=state.rects,initialPlacement=state.initialPlacement,platform2=state.platform,elements=state.elements;_a2=evaluate(options,state),_a2$mainAxis=_a2.mainAxis,checkMainAxis=_a2$mainAxis===void 0?true:_a2$mainAxis,_a2$crossAxis=_a2.crossAxis,checkCrossAxis=_a2$crossAxis===void 0?true:_a2$crossAxis,specifiedFallbackPlacements=_a2.fallbackPlacements,_a2$fallbackStrategy=_a2.fallbackStrategy,fallbackStrategy=_a2$fallbackStrategy===void 0?"bestFit":_a2$fallbackStrategy,_a2$fallbackAxisSideD=_a2.fallbackAxisSideDirection,fallbackAxisSideDirection=_a2$fallbackAxisSideD===void 0?"none":_a2$fallbackAxisSideD,_a2$flipAlignment=_a2.flipAlignment,flipAlignment=_a2$flipAlignment===void 0?true:_a2$flipAlignment,detectOverflowOptions=__objRest(_a2,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if(!((_middlewareData$arrow=middlewareData.arrow)!=null&&_middlewareData$arrow.alignmentOffset)){_context4.n=1;break;}return _context4.a(2,{});case 1:side=getSide(placement);initialSideAxis=getSideAxis(initialPlacement);isBasePlacement=getSide(initialPlacement)===initialPlacement;_context4.n=2;return platform2.isRTL==null?void 0:platform2.isRTL(elements.floating);case 2:rtl=_context4.v;fallbackPlacements=specifiedFallbackPlacements||(isBasePlacement||!flipAlignment?[getOppositePlacement$1(initialPlacement)]:getExpandedPlacements(initialPlacement));hasFallbackAxisSideDirection=fallbackAxisSideDirection!=="none";if(!specifiedFallbackPlacements&&hasFallbackAxisSideDirection){fallbackPlacements.push.apply(fallbackPlacements,_toConsumableArray2(getOppositeAxisPlacements(initialPlacement,flipAlignment,fallbackAxisSideDirection,rtl)));}placements2=[initialPlacement].concat(_toConsumableArray2(fallbackPlacements));_context4.n=3;return detectOverflow$1(state,detectOverflowOptions);case 3:overflow=_context4.v;overflows=[];overflowsData=((_middlewareData$flip=middlewareData.flip)==null?void 0:_middlewareData$flip.overflows)||[];if(checkMainAxis){overflows.push(overflow[side]);}if(checkCrossAxis){sides2=getAlignmentSides(placement,rects,rtl);overflows.push(overflow[sides2[0]],overflow[sides2[1]]);}overflowsData=[].concat(_toConsumableArray2(overflowsData),[{placement:placement,overflows:overflows}]);if(overflows.every(function(side2){return side2<=0;})){_context4.n=8;break;}nextIndex=(((_middlewareData$flip2=middlewareData.flip)==null?void 0:_middlewareData$flip2.index)||0)+1;nextPlacement=placements2[nextIndex];if(!nextPlacement){_context4.n=4;break;}ignoreCrossAxisOverflow=checkCrossAxis==="alignment"?initialSideAxis!==getSideAxis(nextPlacement):false;if(!(!ignoreCrossAxisOverflow||// We leave the current main axis only if every placement on that axis
|
|
3409
3409
|
// overflows the main axis.
|
|
3410
3410
|
overflowsData.every(function(d){return getSideAxis(d.placement)===initialSideAxis?d.overflows[0]>0:true;}))){_context4.n=4;break;}return _context4.a(2,{data:{index:nextIndex,overflows:overflowsData},reset:{placement:nextPlacement}});case 4:resetPlacement=(_overflowsData$filter=overflowsData.filter(function(d){return d.overflows[0]<=0;}).sort(function(a,b){return a.overflows[1]-b.overflows[1];})[0])==null?void 0:_overflowsData$filter.placement;if(resetPlacement){_context4.n=7;break;}_t15=fallbackStrategy;_context4.n=_t15==="bestFit"?5:_t15==="initialPlacement"?6:7;break;case 5:placement2=(_overflowsData$filter2=overflowsData.filter(function(d){if(hasFallbackAxisSideDirection){var currentSideAxis=getSideAxis(d.placement);return currentSideAxis===initialSideAxis||// Create a bias to the `y` side axis due to horizontal
|
|
3411
3411
|
// reading directions favoring greater width.
|
|
@@ -3455,7 +3455,7 @@ function startListeningToTouch(){if(document&&document.addEventListener){documen
|
|
|
3455
3455
|
// Renderers
|
|
3456
3456
|
// ==============================
|
|
3457
3457
|
function renderInput(){var _this$props8=this.props,isDisabled=_this$props8.isDisabled,isSearchable=_this$props8.isSearchable,inputId=_this$props8.inputId,inputValue=_this$props8.inputValue,tabIndex=_this$props8.tabIndex,form=_this$props8.form,menuIsOpen=_this$props8.menuIsOpen,required=_this$props8.required;var _this$getComponents=this.getComponents(),Input4=_this$getComponents.Input;var _this$state4=this.state,inputIsHidden=_this$state4.inputIsHidden,ariaSelection=_this$state4.ariaSelection;var commonProps=this.commonProps;var id=inputId||this.getElementId("input");var ariaAttributes=_objectSpread2(_objectSpread2(_objectSpread2({"aria-autocomplete":"list","aria-expanded":menuIsOpen,"aria-haspopup":true,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":required,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},menuIsOpen&&{"aria-controls":this.getElementId("listbox")}),!isSearchable&&{"aria-readonly":true}),this.hasValue()?(ariaSelection===null||ariaSelection===void 0?void 0:ariaSelection.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});if(!isSearchable){return/* @__PURE__ */React.createElement(DummyInput,_extends$1({id:id,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:noop$3,onFocus:this.onInputFocus,disabled:isDisabled,tabIndex:tabIndex,inputMode:"none",form:form,value:""},ariaAttributes));}return/* @__PURE__ */React.createElement(Input4,_extends$1({},commonProps,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:id,innerRef:this.getInputRef,isDisabled:isDisabled,isHidden:inputIsHidden,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:tabIndex,form:form,type:"text",value:inputValue},ariaAttributes));}},{key:"renderPlaceholderOrValue",value:function renderPlaceholderOrValue(){var _this3=this;var _this$getComponents2=this.getComponents(),MultiValue4=_this$getComponents2.MultiValue,MultiValueContainer2=_this$getComponents2.MultiValueContainer,MultiValueLabel2=_this$getComponents2.MultiValueLabel,MultiValueRemove2=_this$getComponents2.MultiValueRemove,SingleValue4=_this$getComponents2.SingleValue,Placeholder3=_this$getComponents2.Placeholder;var commonProps=this.commonProps;var _this$props9=this.props,controlShouldRenderValue=_this$props9.controlShouldRenderValue,isDisabled=_this$props9.isDisabled,isMulti=_this$props9.isMulti,inputValue=_this$props9.inputValue,placeholder=_this$props9.placeholder;var _this$state5=this.state,selectValue=_this$state5.selectValue,focusedValue=_this$state5.focusedValue,isFocused=_this$state5.isFocused;if(!this.hasValue()||!controlShouldRenderValue){return inputValue?null:/* @__PURE__ */React.createElement(Placeholder3,_extends$1({},commonProps,{key:"placeholder",isDisabled:isDisabled,isFocused:isFocused,innerProps:{id:this.getElementId("placeholder")}}),placeholder);}if(isMulti){return selectValue.map(function(opt,index2){var isOptionFocused=opt===focusedValue;var key="".concat(_this3.getOptionLabel(opt),"-").concat(_this3.getOptionValue(opt));return/* @__PURE__ */React.createElement(MultiValue4,_extends$1({},commonProps,{components:{Container:MultiValueContainer2,Label:MultiValueLabel2,Remove:MultiValueRemove2},isFocused:isOptionFocused,isDisabled:isDisabled,key:key,index:index2,removeProps:{onClick:function onClick(){return _this3.removeValue(opt);},onTouchEnd:function onTouchEnd(){return _this3.removeValue(opt);},onMouseDown:function onMouseDown(e){e.preventDefault();}},data:opt}),_this3.formatOptionLabel(opt,"value"));});}if(inputValue){return null;}var singleValue=selectValue[0];return/* @__PURE__ */React.createElement(SingleValue4,_extends$1({},commonProps,{data:singleValue,isDisabled:isDisabled}),this.formatOptionLabel(singleValue,"value"));}},{key:"renderClearIndicator",value:function renderClearIndicator(){var _this$getComponents3=this.getComponents(),ClearIndicator3=_this$getComponents3.ClearIndicator;var commonProps=this.commonProps;var _this$props10=this.props,isDisabled=_this$props10.isDisabled,isLoading=_this$props10.isLoading;var isFocused=this.state.isFocused;if(!this.isClearable()||!ClearIndicator3||isDisabled||!this.hasValue()||isLoading){return null;}var innerProps={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return/* @__PURE__ */React.createElement(ClearIndicator3,_extends$1({},commonProps,{innerProps:innerProps,isFocused:isFocused}));}},{key:"renderLoadingIndicator",value:function renderLoadingIndicator(){var _this$getComponents4=this.getComponents(),LoadingIndicator3=_this$getComponents4.LoadingIndicator;var commonProps=this.commonProps;var _this$props11=this.props,isDisabled=_this$props11.isDisabled,isLoading=_this$props11.isLoading;var isFocused=this.state.isFocused;if(!LoadingIndicator3||!isLoading)return null;var innerProps={"aria-hidden":"true"};return/* @__PURE__ */React.createElement(LoadingIndicator3,_extends$1({},commonProps,{innerProps:innerProps,isDisabled:isDisabled,isFocused:isFocused}));}},{key:"renderIndicatorSeparator",value:function renderIndicatorSeparator(){var _this$getComponents5=this.getComponents(),DropdownIndicator3=_this$getComponents5.DropdownIndicator,IndicatorSeparator3=_this$getComponents5.IndicatorSeparator;if(!DropdownIndicator3||!IndicatorSeparator3)return null;var commonProps=this.commonProps;var isDisabled=this.props.isDisabled;var isFocused=this.state.isFocused;return/* @__PURE__ */React.createElement(IndicatorSeparator3,_extends$1({},commonProps,{isDisabled:isDisabled,isFocused:isFocused}));}},{key:"renderDropdownIndicator",value:function renderDropdownIndicator(){var _this$getComponents6=this.getComponents(),DropdownIndicator3=_this$getComponents6.DropdownIndicator;if(!DropdownIndicator3)return null;var commonProps=this.commonProps;var isDisabled=this.props.isDisabled;var isFocused=this.state.isFocused;var innerProps={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return/* @__PURE__ */React.createElement(DropdownIndicator3,_extends$1({},commonProps,{innerProps:innerProps,isDisabled:isDisabled,isFocused:isFocused}));}},{key:"renderMenu",value:function renderMenu(){var _this4=this;var _this$getComponents7=this.getComponents(),Group3=_this$getComponents7.Group,GroupHeading3=_this$getComponents7.GroupHeading,Menu4=_this$getComponents7.Menu,MenuList4=_this$getComponents7.MenuList,MenuPortal3=_this$getComponents7.MenuPortal,LoadingMessage3=_this$getComponents7.LoadingMessage,NoOptionsMessage3=_this$getComponents7.NoOptionsMessage,Option4=_this$getComponents7.Option;var commonProps=this.commonProps;var focusedOption=this.state.focusedOption;var _this$props12=this.props,captureMenuScroll=_this$props12.captureMenuScroll,inputValue=_this$props12.inputValue,isLoading=_this$props12.isLoading,loadingMessage2=_this$props12.loadingMessage,minMenuHeight=_this$props12.minMenuHeight,maxMenuHeight=_this$props12.maxMenuHeight,menuIsOpen=_this$props12.menuIsOpen,menuPlacement=_this$props12.menuPlacement,menuPosition=_this$props12.menuPosition,menuPortalTarget=_this$props12.menuPortalTarget,menuShouldBlockScroll=_this$props12.menuShouldBlockScroll,menuShouldScrollIntoView=_this$props12.menuShouldScrollIntoView,noOptionsMessage2=_this$props12.noOptionsMessage,onMenuScrollToTop=_this$props12.onMenuScrollToTop,onMenuScrollToBottom=_this$props12.onMenuScrollToBottom;if(!menuIsOpen)return null;var render=function render2(props,id){var type=props.type,data=props.data,isDisabled=props.isDisabled,isSelected=props.isSelected,label2=props.label,value=props.value;var isFocused=focusedOption===data;var onHover=isDisabled?void 0:function(){return _this4.onOptionHover(data);};var onSelect=isDisabled?void 0:function(){return _this4.selectOption(data);};var optionId="".concat(_this4.getElementId("option"),"-").concat(id);var innerProps={id:optionId,onClick:onSelect,onMouseMove:onHover,onMouseOver:onHover,tabIndex:-1,role:"option","aria-selected":_this4.state.isAppleDevice?void 0:isSelected// is not supported on Apple devices
|
|
3458
|
-
};return/* @__PURE__ */React.createElement(Option4,_extends$1({},commonProps,{innerProps:innerProps,data:data,isDisabled:isDisabled,isSelected:isSelected,key:optionId,label:label2,type:type,value:value,isFocused:isFocused,innerRef:isFocused?_this4.getFocusedOptionRef:void 0}),_this4.formatOptionLabel(props.data,"menu"));};var menuUI;if(this.hasOptions()){menuUI=this.getCategorizedOptions().map(function(item2){if(item2.type==="group"){var _data=item2.data,options=item2.options,groupIndex=item2.index;var groupId="".concat(_this4.getElementId("group"),"-").concat(groupIndex);var headingId="".concat(groupId,"-heading");return/* @__PURE__ */React.createElement(Group3,_extends$1({},commonProps,{key:groupId,data:_data,options:options,Heading:GroupHeading3,headingProps:{id:headingId,data:item2.data},label:_this4.formatGroupLabel(item2.data)}),item2.options.map(function(option){return render(option,"".concat(groupIndex,"-").concat(option.index));}));}else if(item2.type==="option"){return render(item2,"".concat(item2.index));}});}else if(isLoading){var message2=loadingMessage2({inputValue:inputValue});if(message2===null)return null;menuUI=/* @__PURE__ */React.createElement(LoadingMessage3,commonProps,message2);}else{var _message=noOptionsMessage2({inputValue:inputValue});if(_message===null)return null;menuUI=/* @__PURE__ */React.createElement(NoOptionsMessage3,commonProps,_message);}var menuPlacementProps={minMenuHeight:minMenuHeight,maxMenuHeight:maxMenuHeight,menuPlacement:menuPlacement,menuPosition:menuPosition,menuShouldScrollIntoView:menuShouldScrollIntoView};var menuElement=/* @__PURE__ */React.createElement(MenuPlacer,_extends$1({},commonProps,menuPlacementProps),function(_ref4){var ref=_ref4.ref,_ref4$placerProps=_ref4.placerProps,placement=_ref4$placerProps.placement,maxHeight3=_ref4$placerProps.maxHeight;return/* @__PURE__ */React.createElement(Menu4,_extends$1({},commonProps,menuPlacementProps,{innerRef:ref,innerProps:{onMouseDown:_this4.onMenuMouseDown,onMouseMove:_this4.onMenuMouseMove},isLoading:isLoading,placement:placement}),/* @__PURE__ */React.createElement(ScrollManager,{captureEnabled:captureMenuScroll,onTopArrive:onMenuScrollToTop,onBottomArrive:onMenuScrollToBottom,lockEnabled:menuShouldBlockScroll},function(scrollTargetRef){return/* @__PURE__ */React.createElement(MenuList4,_extends$1({},commonProps,{innerRef:function innerRef(instance2){_this4.getMenuListRef(instance2);scrollTargetRef(instance2);},innerProps:{role:"listbox","aria-multiselectable":commonProps.isMulti,id:_this4.getElementId("listbox")},isLoading:isLoading,maxHeight:maxHeight3,focusedOption:focusedOption}),menuUI);}));});return menuPortalTarget||menuPosition==="fixed"?/* @__PURE__ */React.createElement(MenuPortal3,_extends$1({},commonProps,{appendTo:menuPortalTarget,controlElement:this.controlRef,menuPlacement:menuPlacement,menuPosition:menuPosition}),menuElement):menuElement;}},{key:"renderFormField",value:function renderFormField(){var _this5=this;var _this$props13=this.props,delimiter2=_this$props13.delimiter,isDisabled=_this$props13.isDisabled,isMulti=_this$props13.isMulti,name=_this$props13.name,required=_this$props13.required;var selectValue=this.state.selectValue;if(required&&!this.hasValue()&&!isDisabled){return/* @__PURE__ */React.createElement(RequiredInput$1,{name:name,onFocus:this.onValueInputFocus});}if(!name||isDisabled)return;if(isMulti){if(delimiter2){var value=selectValue.map(function(opt){return _this5.getOptionValue(opt);}).join(delimiter2);return/* @__PURE__ */React.createElement("input",{name:name,type:"hidden",value:value});}else{var input=selectValue.length>0?selectValue.map(function(opt,i){return/* @__PURE__ */React.createElement("input",{key:"i-".concat(i),name:name,type:"hidden",value:_this5.getOptionValue(opt)});}):/* @__PURE__ */React.createElement("input",{name:name,type:"hidden",value:""});return/* @__PURE__ */React.createElement("div",null,input);}}else{var _value=selectValue[0]?this.getOptionValue(selectValue[0]):"";return/* @__PURE__ */React.createElement("input",{name:name,type:"hidden",value:_value});}}},{key:"renderLiveRegion",value:function renderLiveRegion(){var commonProps=this.commonProps;var _this$state6=this.state,ariaSelection=_this$state6.ariaSelection,focusedOption=_this$state6.focusedOption,focusedValue=_this$state6.focusedValue,isFocused=_this$state6.isFocused,selectValue=_this$state6.selectValue;var focusableOptions=this.getFocusableOptions();return/* @__PURE__ */React.createElement(LiveRegion$1,_extends$1({},commonProps,{id:this.getElementId("live-region"),ariaSelection:ariaSelection,focusedOption:focusedOption,focusedValue:focusedValue,isFocused:isFocused,selectValue:selectValue,focusableOptions:focusableOptions,isAppleDevice:this.state.isAppleDevice}));}},{key:"render",value:function render(){var _this$getComponents8=this.getComponents(),Control3=_this$getComponents8.Control,IndicatorsContainer3=_this$getComponents8.IndicatorsContainer,SelectContainer3=_this$getComponents8.SelectContainer,ValueContainer3=_this$getComponents8.ValueContainer;var _this$props14=this.props,className=_this$props14.className,id=_this$props14.id,isDisabled=_this$props14.isDisabled,menuIsOpen=_this$props14.menuIsOpen;var isFocused=this.state.isFocused;var commonProps=this.commonProps=this.getCommonProps();return/* @__PURE__ */React.createElement(SelectContainer3,_extends$1({},commonProps,{className:className,innerProps:{id:id,onKeyDown:this.onKeyDown},isDisabled:isDisabled,isFocused:isFocused}),this.renderLiveRegion(),/* @__PURE__ */React.createElement(Control3,_extends$1({},commonProps,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:isDisabled,isFocused:isFocused,menuIsOpen:menuIsOpen}),/* @__PURE__ */React.createElement(ValueContainer3,_extends$1({},commonProps,{isDisabled:isDisabled}),this.renderPlaceholderOrValue(),this.renderInput()),/* @__PURE__ */React.createElement(IndicatorsContainer3,_extends$1({},commonProps,{isDisabled:isDisabled}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField());}}],[{key:"getDerivedStateFromProps",value:function getDerivedStateFromProps(props,state){var prevProps=state.prevProps,clearFocusValueOnUpdate=state.clearFocusValueOnUpdate,inputIsHiddenAfterUpdate=state.inputIsHiddenAfterUpdate,ariaSelection=state.ariaSelection,isFocused=state.isFocused,prevWasFocused=state.prevWasFocused,instancePrefix=state.instancePrefix;var options=props.options,value=props.value,menuIsOpen=props.menuIsOpen,inputValue=props.inputValue,isMulti=props.isMulti;var selectValue=cleanValue(value);var newMenuOptionsState={};if(prevProps&&(value!==prevProps.value||options!==prevProps.options||menuIsOpen!==prevProps.menuIsOpen||inputValue!==prevProps.inputValue)){var focusableOptions=menuIsOpen?buildFocusableOptions(props,selectValue):[];var focusableOptionsWithIds=menuIsOpen?buildFocusableOptionsWithIds(buildCategorizedOptions(props,selectValue),"".concat(instancePrefix,"-option")):[];var focusedValue=clearFocusValueOnUpdate?getNextFocusedValue(state,selectValue):null;var focusedOption=getNextFocusedOption(state,focusableOptions);var focusedOptionId=getFocusedOptionId(focusableOptionsWithIds,focusedOption);newMenuOptionsState={selectValue:selectValue,focusedOption:focusedOption,focusedOptionId:focusedOptionId,focusableOptionsWithIds:focusableOptionsWithIds,focusedValue:focusedValue,clearFocusValueOnUpdate:false};}var newInputIsHiddenState=inputIsHiddenAfterUpdate!=null&&props!==prevProps?{inputIsHidden:inputIsHiddenAfterUpdate,inputIsHiddenAfterUpdate:void 0}:{};var newAriaSelection=ariaSelection;var hasKeptFocus=isFocused&&prevWasFocused;if(isFocused&&!hasKeptFocus){newAriaSelection={value:valueTernary(isMulti,selectValue,selectValue[0]||null),options:selectValue,action:"initial-input-focus"};hasKeptFocus=!prevWasFocused;}if((ariaSelection===null||ariaSelection===void 0?void 0:ariaSelection.action)==="initial-input-focus"){newAriaSelection=null;}return _objectSpread2(_objectSpread2(_objectSpread2({},newMenuOptionsState),newInputIsHiddenState),{},{prevProps:props,ariaSelection:newAriaSelection,prevWasFocused:hasKeptFocus});}}]);return Select3;}(Component);Select$1.defaultProps=defaultProps;var StateManagedSelect=/* @__PURE__ */forwardRef(function(props,ref){var baseSelectProps=useStateManager(props);return/* @__PURE__ */React.createElement(Select$1,_extends$1({ref:ref},baseSelectProps));});var StateManagedSelect$1=StateManagedSelect;var isString=function isString(obj){return typeof obj==="string";};var defer=function defer(){var res;var rej;var promise=new Promise(function(resolve,reject){res=resolve;rej=reject;});promise.resolve=res;promise.reject=rej;return promise;};var makeString=function makeString(object){if(object==null)return"";return""+object;};var copy$1=function copy$1(a,s,t){a.forEach(function(m){if(s[m])t[m]=s[m];});};var lastOfPathSeparatorRegExp=/###/g;var cleanKey=function cleanKey(key){return key&&key.indexOf("###")>-1?key.replace(lastOfPathSeparatorRegExp,"."):key;};var canNotTraverseDeeper=function canNotTraverseDeeper(object){return!object||isString(object);};var getLastOfPath=function getLastOfPath(object,path,Empty){var stack=!isString(path)?path:path.split(".");var stackIndex=0;while(stackIndex<stack.length-1){if(canNotTraverseDeeper(object))return{};var key=cleanKey(stack[stackIndex]);if(!object[key]&&Empty)object[key]=new Empty();if(Object.prototype.hasOwnProperty.call(object,key)){object=object[key];}else{object={};}++stackIndex;}if(canNotTraverseDeeper(object))return{};return{obj:object,k:cleanKey(stack[stackIndex])};};var setPath=function setPath(object,path,newValue){var _getLastOfPath=getLastOfPath(object,path,Object),obj=_getLastOfPath.obj,k=_getLastOfPath.k;if(obj!==void 0||path.length===1){obj[k]=newValue;return;}var e=path[path.length-1];var p=path.slice(0,path.length-1);var last=getLastOfPath(object,p,Object);while(last.obj===void 0&&p.length){e="".concat(p[p.length-1],".").concat(e);p=p.slice(0,p.length-1);last=getLastOfPath(object,p,Object);if(last&&last.obj&&typeof last.obj["".concat(last.k,".").concat(e)]!=="undefined"){last.obj=void 0;}}last.obj["".concat(last.k,".").concat(e)]=newValue;};var pushPath=function pushPath(object,path,newValue,concat){var _getLastOfPath2=getLastOfPath(object,path,Object),obj=_getLastOfPath2.obj,k=_getLastOfPath2.k;obj[k]=obj[k]||[];obj[k].push(newValue);};var getPath=function getPath(object,path){var _getLastOfPath3=getLastOfPath(object,path),obj=_getLastOfPath3.obj,k=_getLastOfPath3.k;if(!obj)return void 0;return obj[k];};var getPathWithDefaults=function getPathWithDefaults(data,defaultData,key){var value=getPath(data,key);if(value!==void 0){return value;}return getPath(defaultData,key);};var _deepExtend=function deepExtend(target,source,overwrite){for(var prop in source){if(prop!=="__proto__"&&prop!=="constructor"){if(prop in target){if(isString(target[prop])||target[prop]instanceof String||isString(source[prop])||source[prop]instanceof String){if(overwrite)target[prop]=source[prop];}else{_deepExtend(target[prop],source[prop],overwrite);}}else{target[prop]=source[prop];}}}return target;};var regexEscape=function regexEscape(str){return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");};var _entityMap={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};var escape=function escape(data){if(isString(data)){return data.replace(/[&<>"'\/]/g,function(s){return _entityMap[s];});}return data;};var RegExpCache=/*#__PURE__*/function(){function RegExpCache(capacity){_classCallCheck2(this,RegExpCache);this.capacity=capacity;this.regExpMap=/* @__PURE__ */new Map();this.regExpQueue=[];}return _createClass2(RegExpCache,[{key:"getRegExp",value:function getRegExp(pattern){var regExpFromCache=this.regExpMap.get(pattern);if(regExpFromCache!==void 0){return regExpFromCache;}var regExpNew=new RegExp(pattern);if(this.regExpQueue.length===this.capacity){this.regExpMap.delete(this.regExpQueue.shift());}this.regExpMap.set(pattern,regExpNew);this.regExpQueue.push(pattern);return regExpNew;}}]);}();var chars=[" ",",","?","!",";"];var looksLikeObjectPathRegExpCache=new RegExpCache(20);var looksLikeObjectPath=function looksLikeObjectPath(key,nsSeparator,keySeparator){nsSeparator=nsSeparator||"";keySeparator=keySeparator||"";var possibleChars=chars.filter(function(c){return nsSeparator.indexOf(c)<0&&keySeparator.indexOf(c)<0;});if(possibleChars.length===0)return true;var r2=looksLikeObjectPathRegExpCache.getRegExp("(".concat(possibleChars.map(function(c){return c==="?"?"\\?":c;}).join("|"),")"));var matched=!r2.test(key);if(!matched){var ki=key.indexOf(keySeparator);if(ki>0&&!r2.test(key.substring(0,ki))){matched=true;}}return matched;};var deepFind=function deepFind(obj,path){var keySeparator=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!obj)return void 0;if(obj[path])return obj[path];var tokens=path.split(keySeparator);var current=obj;for(var _i1=0;_i1<tokens.length;){if(!current||_typeof2(current)!=="object"){return void 0;}var next2=void 0;var nextPath="";for(var _j2=_i1;_j2<tokens.length;++_j2){if(_j2!==_i1){nextPath+=keySeparator;}nextPath+=tokens[_j2];next2=current[nextPath];if(next2!==void 0){if(["string","number","boolean"].indexOf(_typeof2(next2))>-1&&_j2<tokens.length-1){continue;}_i1+=_j2-_i1+1;break;}}current=next2;}return current;};var getCleanedCode=function getCleanedCode(code){return code&&code.replace("_","-");};var consoleLogger={type:"logger",log:function log(args){this.output("log",args);},warn:function warn(args){this.output("warn",args);},error:function error(args){this.output("error",args);},output:function output(type,args){if(console&&console[type])console[type].apply(console,args);}};var Logger=/*#__PURE__*/function(){function Logger(concreteLogger){_classCallCheck2(this,Logger);var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(concreteLogger,options);}return _createClass2(Logger,[{key:"init",value:function init(concreteLogger){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=options.prefix||"i18next:";this.logger=concreteLogger||consoleLogger;this.options=options;this.debug=options.debug;}},{key:"log",value:function log(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key];}return this.forward(args,"log","",true);}},{key:"warn",value:function warn(){for(var _len2=arguments.length,args=new Array(_len2),_key2=0;_key2<_len2;_key2++){args[_key2]=arguments[_key2];}return this.forward(args,"warn","",true);}},{key:"error",value:function error(){for(var _len3=arguments.length,args=new Array(_len3),_key3=0;_key3<_len3;_key3++){args[_key3]=arguments[_key3];}return this.forward(args,"error","");}},{key:"deprecate",value:function deprecate(){for(var _len4=arguments.length,args=new Array(_len4),_key4=0;_key4<_len4;_key4++){args[_key4]=arguments[_key4];}return this.forward(args,"warn","WARNING DEPRECATED: ",true);}},{key:"forward",value:function forward(args,lvl,prefix2,debugOnly){if(debugOnly&&!this.debug)return null;if(isString(args[0]))args[0]="".concat(prefix2).concat(this.prefix," ").concat(args[0]);return this.logger[lvl](args);}},{key:"create",value:function create(moduleName){return new Logger(this.logger,__spreadValues(__spreadValues({},{prefix:"".concat(this.prefix,":").concat(moduleName,":")}),this.options));}},{key:"clone",value:function clone(options){options=options||this.options;options.prefix=options.prefix||this.prefix;return new Logger(this.logger,options);}}]);}();var baseLogger=new Logger();var EventEmitter=/*#__PURE__*/function(){function EventEmitter(){_classCallCheck2(this,EventEmitter);this.observers={};}return _createClass2(EventEmitter,[{key:"on",value:function on(events,listener){var _this11=this;events.split(" ").forEach(function(event){if(!_this11.observers[event])_this11.observers[event]=/* @__PURE__ */new Map();var numListeners=_this11.observers[event].get(listener)||0;_this11.observers[event].set(listener,numListeners+1);});return this;}},{key:"off",value:function off(event,listener){if(!this.observers[event])return;if(!listener){delete this.observers[event];return;}this.observers[event].delete(listener);}},{key:"emit",value:function emit(event){for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key];}if(this.observers[event]){var cloned=Array.from(this.observers[event].entries());cloned.forEach(function(_ref3){var _ref297=_slicedToArray2(_ref3,2),observer=_ref297[0],numTimesAdded=_ref297[1];for(var _i10=0;_i10<numTimesAdded;_i10++){observer.apply(void 0,args);}});}if(this.observers["*"]){var _cloned=Array.from(this.observers["*"].entries());_cloned.forEach(function(_ref22){var _ref298=_slicedToArray2(_ref22,2),observer=_ref298[0],numTimesAdded=_ref298[1];for(var _i11=0;_i11<numTimesAdded;_i11++){observer.apply(observer,[event].concat(args));}});}}}]);}();var ResourceStore=/*#__PURE__*/function(_EventEmitter){function ResourceStore(data){var _this12;_classCallCheck2(this,ResourceStore);var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};_this12=_callSuper(this,ResourceStore);_this12.data=data||{};_this12.options=options;if(_this12.options.keySeparator===void 0){_this12.options.keySeparator=".";}if(_this12.options.ignoreJSONStructure===void 0){_this12.options.ignoreJSONStructure=true;}return _this12;}_inherits2(ResourceStore,_EventEmitter);return _createClass2(ResourceStore,[{key:"addNamespaces",value:function addNamespaces(ns){if(this.options.ns.indexOf(ns)<0){this.options.ns.push(ns);}}},{key:"removeNamespaces",value:function removeNamespaces(ns){var index2=this.options.ns.indexOf(ns);if(index2>-1){this.options.ns.splice(index2,1);}}},{key:"getResource",value:function getResource(lng,ns,key){var options=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};var keySeparator=options.keySeparator!==void 0?options.keySeparator:this.options.keySeparator;var ignoreJSONStructure=options.ignoreJSONStructure!==void 0?options.ignoreJSONStructure:this.options.ignoreJSONStructure;var path;if(lng.indexOf(".")>-1){path=lng.split(".");}else{path=[lng,ns];if(key){if(Array.isArray(key)){var _path;(_path=path).push.apply(_path,_toConsumableArray2(key));}else if(isString(key)&&keySeparator){var _path2;(_path2=path).push.apply(_path2,_toConsumableArray2(key.split(keySeparator)));}else{path.push(key);}}}var result=getPath(this.data,path);if(!result&&!ns&&!key&&lng.indexOf(".")>-1){lng=path[0];ns=path[1];key=path.slice(2).join(".");}if(result||!ignoreJSONStructure||!isString(key))return result;return deepFind(this.data&&this.data[lng]&&this.data[lng][ns],key,keySeparator);}},{key:"addResource",value:function addResource(lng,ns,key,value){var options=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:false};var keySeparator=options.keySeparator!==void 0?options.keySeparator:this.options.keySeparator;var path=[lng,ns];if(key)path=path.concat(keySeparator?key.split(keySeparator):key);if(lng.indexOf(".")>-1){path=lng.split(".");value=ns;ns=path[1];}this.addNamespaces(ns);setPath(this.data,path,value);if(!options.silent)this.emit("added",lng,ns,key,value);}},{key:"addResources",value:function addResources(lng,ns,resources2){var options=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:false};for(var m in resources2){if(isString(resources2[m])||Array.isArray(resources2[m]))this.addResource(lng,ns,m,resources2[m],{silent:true});}if(!options.silent)this.emit("added",lng,ns,resources2);}},{key:"addResourceBundle",value:function addResourceBundle(lng,ns,resources2,deep,overwrite){var options=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:false,skipCopy:false};var path=[lng,ns];if(lng.indexOf(".")>-1){path=lng.split(".");deep=resources2;resources2=ns;ns=path[1];}this.addNamespaces(ns);var pack=getPath(this.data,path)||{};if(!options.skipCopy)resources2=JSON.parse(JSON.stringify(resources2));if(deep){_deepExtend(pack,resources2,overwrite);}else{pack=__spreadValues(__spreadValues({},pack),resources2);}setPath(this.data,path,pack);if(!options.silent)this.emit("added",lng,ns,resources2);}},{key:"removeResourceBundle",value:function removeResourceBundle(lng,ns){if(this.hasResourceBundle(lng,ns)){delete this.data[lng][ns];}this.removeNamespaces(ns);this.emit("removed",lng,ns);}},{key:"hasResourceBundle",value:function hasResourceBundle(lng,ns){return this.getResource(lng,ns)!==void 0;}},{key:"getResourceBundle",value:function getResourceBundle(lng,ns){if(!ns)ns=this.options.defaultNS;if(this.options.compatibilityAPI==="v1")return __spreadValues(__spreadValues({},{}),this.getResource(lng,ns));return this.getResource(lng,ns);}},{key:"getDataByLanguage",value:function getDataByLanguage(lng){return this.data[lng];}},{key:"hasLanguageSomeTranslations",value:function hasLanguageSomeTranslations(lng){var data=this.getDataByLanguage(lng);var n=data&&Object.keys(data)||[];return!!n.find(function(v){return data[v]&&Object.keys(data[v]).length>0;});}},{key:"toJSON",value:function toJSON(){return this.data;}}]);}(EventEmitter);var postProcessor={processors:{},addPostProcessor:function addPostProcessor(module){this.processors[module.name]=module;},handle:function handle(processors,value,key,options,translator){var _this13=this;processors.forEach(function(processor){if(_this13.processors[processor])value=_this13.processors[processor].process(value,key,options,translator);});return value;}};var checkedLoadedFor={};var Translator=/*#__PURE__*/function(_EventEmitter2){function Translator(services){var _this14;_classCallCheck2(this,Translator);var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_this14=_callSuper(this,Translator);copy$1(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],services,_this14);_this14.options=options;if(_this14.options.keySeparator===void 0){_this14.options.keySeparator=".";}_this14.logger=baseLogger.create("translator");return _this14;}_inherits2(Translator,_EventEmitter2);return _createClass2(Translator,[{key:"changeLanguage",value:function changeLanguage(lng){if(lng)this.language=lng;}},{key:"exists",value:function exists(key){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(key===void 0||key===null){return false;}var resolved=this.resolve(key,options);return resolved&&resolved.res!==void 0;}},{key:"extractFromKey",value:function extractFromKey(key,options){var nsSeparator=options.nsSeparator!==void 0?options.nsSeparator:this.options.nsSeparator;if(nsSeparator===void 0)nsSeparator=":";var keySeparator=options.keySeparator!==void 0?options.keySeparator:this.options.keySeparator;var namespaces=options.ns||this.options.defaultNS||[];var wouldCheckForNsInKey=nsSeparator&&key.indexOf(nsSeparator)>-1;var seemsNaturalLanguage=!this.options.userDefinedKeySeparator&&!options.keySeparator&&!this.options.userDefinedNsSeparator&&!options.nsSeparator&&!looksLikeObjectPath(key,nsSeparator,keySeparator);if(wouldCheckForNsInKey&&!seemsNaturalLanguage){var m=key.match(this.interpolator.nestingRegexp);if(m&&m.length>0){return{key:key,namespaces:isString(namespaces)?[namespaces]:namespaces};}var parts=key.split(nsSeparator);if(nsSeparator!==keySeparator||nsSeparator===keySeparator&&this.options.ns.indexOf(parts[0])>-1)namespaces=parts.shift();key=parts.join(keySeparator);}return{key:key,namespaces:isString(namespaces)?[namespaces]:namespaces};}},{key:"translate",value:function translate(keys2,options,lastKey){var _this15=this;if(_typeof2(options)!=="object"&&this.options.overloadTranslationOptionHandler){options=this.options.overloadTranslationOptionHandler(arguments);}if(_typeof2(options)==="object")options=__spreadValues({},options);if(!options)options={};if(keys2===void 0||keys2===null)return"";if(!Array.isArray(keys2))keys2=[String(keys2)];var returnDetails=options.returnDetails!==void 0?options.returnDetails:this.options.returnDetails;var keySeparator=options.keySeparator!==void 0?options.keySeparator:this.options.keySeparator;var _this$extractFromKey=this.extractFromKey(keys2[keys2.length-1],options),key=_this$extractFromKey.key,namespaces=_this$extractFromKey.namespaces;var namespace=namespaces[namespaces.length-1];var lng=options.lng||this.language;var appendNamespaceToCIMode=options.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(lng&&lng.toLowerCase()==="cimode"){if(appendNamespaceToCIMode){var nsSeparator=options.nsSeparator||this.options.nsSeparator;if(returnDetails){return{res:"".concat(namespace).concat(nsSeparator).concat(key),usedKey:key,exactUsedKey:key,usedLng:lng,usedNS:namespace,usedParams:this.getUsedParamsDetails(options)};}return"".concat(namespace).concat(nsSeparator).concat(key);}if(returnDetails){return{res:key,usedKey:key,exactUsedKey:key,usedLng:lng,usedNS:namespace,usedParams:this.getUsedParamsDetails(options)};}return key;}var resolved=this.resolve(keys2,options);var res=resolved&&resolved.res;var resUsedKey=resolved&&resolved.usedKey||key;var resExactUsedKey=resolved&&resolved.exactUsedKey||key;var resType=Object.prototype.toString.apply(res);var noObject=["[object Number]","[object Function]","[object RegExp]"];var joinArrays=options.joinArrays!==void 0?options.joinArrays:this.options.joinArrays;var handleAsObjectInI18nFormat=!this.i18nFormat||this.i18nFormat.handleAsObject;var handleAsObject=!isString(res)&&typeof res!=="boolean"&&typeof res!=="number";if(handleAsObjectInI18nFormat&&res&&handleAsObject&&noObject.indexOf(resType)<0&&!(isString(joinArrays)&&Array.isArray(res))){if(!options.returnObjects&&!this.options.returnObjects){if(!this.options.returnedObjectHandler){this.logger.warn("accessing an object - but returnObjects options is not enabled!");}var r2=this.options.returnedObjectHandler?this.options.returnedObjectHandler(resUsedKey,res,__spreadProps(__spreadValues({},options),{ns:namespaces})):"key '".concat(key," (").concat(this.language,")' returned an object instead of string.");if(returnDetails){resolved.res=r2;resolved.usedParams=this.getUsedParamsDetails(options);return resolved;}return r2;}if(keySeparator){var resTypeIsArray=Array.isArray(res);var copy2=resTypeIsArray?[]:{};var newKeyToUse=resTypeIsArray?resExactUsedKey:resUsedKey;for(var m in res){if(Object.prototype.hasOwnProperty.call(res,m)){var deepKey="".concat(newKeyToUse).concat(keySeparator).concat(m);copy2[m]=this.translate(deepKey,__spreadValues(__spreadValues({},options),{joinArrays:false,ns:namespaces}));if(copy2[m]===deepKey)copy2[m]=res[m];}}res=copy2;}}else if(handleAsObjectInI18nFormat&&isString(joinArrays)&&Array.isArray(res)){res=res.join(joinArrays);if(res)res=this.extendTranslation(res,keys2,options,lastKey);}else{var usedDefault=false;var usedKey=false;var needsPluralHandling=options.count!==void 0&&!isString(options.count);var hasDefaultValue=Translator.hasDefaultValue(options);var defaultValueSuffix=needsPluralHandling?this.pluralResolver.getSuffix(lng,options.count,options):"";var defaultValueSuffixOrdinalFallback=options.ordinal&&needsPluralHandling?this.pluralResolver.getSuffix(lng,options.count,{ordinal:false}):"";var needsZeroSuffixLookup=needsPluralHandling&&!options.ordinal&&options.count===0&&this.pluralResolver.shouldUseIntlApi();var defaultValue=needsZeroSuffixLookup&&options["defaultValue".concat(this.options.pluralSeparator,"zero")]||options["defaultValue".concat(defaultValueSuffix)]||options["defaultValue".concat(defaultValueSuffixOrdinalFallback)]||options.defaultValue;if(!this.isValidLookup(res)&&hasDefaultValue){usedDefault=true;res=defaultValue;}if(!this.isValidLookup(res)){usedKey=true;res=key;}var missingKeyNoValueFallbackToKey=options.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey;var resForMissing=missingKeyNoValueFallbackToKey&&usedKey?void 0:res;var updateMissing=hasDefaultValue&&defaultValue!==res&&this.options.updateMissing;if(usedKey||usedDefault||updateMissing){this.logger.log(updateMissing?"updateKey":"missingKey",lng,namespace,key,updateMissing?defaultValue:res);if(keySeparator){var fk=this.resolve(key,__spreadProps(__spreadValues({},options),{keySeparator:false}));if(fk&&fk.res)this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");}var lngs=[];var fallbackLngs=this.languageUtils.getFallbackCodes(this.options.fallbackLng,options.lng||this.language);if(this.options.saveMissingTo==="fallback"&&fallbackLngs&&fallbackLngs[0]){for(var _i12=0;_i12<fallbackLngs.length;_i12++){lngs.push(fallbackLngs[_i12]);}}else if(this.options.saveMissingTo==="all"){lngs=this.languageUtils.toResolveHierarchy(options.lng||this.language);}else{lngs.push(options.lng||this.language);}var send=function send(l,k,specificDefaultValue){var defaultForMissing=hasDefaultValue&&specificDefaultValue!==res?specificDefaultValue:resForMissing;if(_this15.options.missingKeyHandler){_this15.options.missingKeyHandler(l,namespace,k,defaultForMissing,updateMissing,options);}else if(_this15.backendConnector&&_this15.backendConnector.saveMissing){_this15.backendConnector.saveMissing(l,namespace,k,defaultForMissing,updateMissing,options);}_this15.emit("missingKey",l,namespace,k,res);};if(this.options.saveMissing){if(this.options.saveMissingPlurals&&needsPluralHandling){lngs.forEach(function(language){var suffixes=_this15.pluralResolver.getSuffixes(language,options);if(needsZeroSuffixLookup&&options["defaultValue".concat(_this15.options.pluralSeparator,"zero")]&&suffixes.indexOf("".concat(_this15.options.pluralSeparator,"zero"))<0){suffixes.push("".concat(_this15.options.pluralSeparator,"zero"));}suffixes.forEach(function(suffix){send([language],key+suffix,options["defaultValue".concat(suffix)]||defaultValue);});});}else{send(lngs,key,defaultValue);}}}res=this.extendTranslation(res,keys2,options,resolved,lastKey);if(usedKey&&res===key&&this.options.appendNamespaceToMissingKey)res="".concat(namespace,":").concat(key);if((usedKey||usedDefault)&&this.options.parseMissingKeyHandler){if(this.options.compatibilityAPI!=="v1"){res=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(namespace,":").concat(key):key,usedDefault?res:void 0);}else{res=this.options.parseMissingKeyHandler(res);}}}if(returnDetails){resolved.res=res;resolved.usedParams=this.getUsedParamsDetails(options);return resolved;}return res;}},{key:"extendTranslation",value:function extendTranslation(res,key,options,resolved,lastKey){var _this=this;if(this.i18nFormat&&this.i18nFormat.parse){res=this.i18nFormat.parse(res,__spreadValues(__spreadValues({},this.options.interpolation.defaultVariables),options),options.lng||this.language||resolved.usedLng,resolved.usedNS,resolved.usedKey,{resolved:resolved});}else if(!options.skipInterpolation){if(options.interpolation)this.interpolator.init(__spreadValues(__spreadValues({},options),{interpolation:__spreadValues(__spreadValues({},this.options.interpolation),options.interpolation)}));var skipOnVariables=isString(res)&&(options&&options.interpolation&&options.interpolation.skipOnVariables!==void 0?options.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);var nestBef;if(skipOnVariables){var nb=res.match(this.interpolator.nestingRegexp);nestBef=nb&&nb.length;}var data=options.replace&&!isString(options.replace)?options.replace:options;if(this.options.interpolation.defaultVariables)data=__spreadValues(__spreadValues({},this.options.interpolation.defaultVariables),data);res=this.interpolator.interpolate(res,data,options.lng||this.language||resolved.usedLng,options);if(skipOnVariables){var na=res.match(this.interpolator.nestingRegexp);var nestAft=na&&na.length;if(nestBef<nestAft)options.nest=false;}if(!options.lng&&this.options.compatibilityAPI!=="v1"&&resolved&&resolved.res)options.lng=this.language||resolved.usedLng;if(options.nest!==false)res=this.interpolator.nest(res,function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key];}if(lastKey&&lastKey[0]===args[0]&&!options.context){_this.logger.warn("It seems you are nesting recursively key: ".concat(args[0]," in key: ").concat(key[0]));return null;}return _this.translate.apply(_this,args.concat([key]));},options);if(options.interpolation)this.interpolator.reset();}var postProcess=options.postProcess||this.options.postProcess;var postProcessorNames=isString(postProcess)?[postProcess]:postProcess;if(res!==void 0&&res!==null&&postProcessorNames&&postProcessorNames.length&&options.applyPostProcessor!==false){res=postProcessor.handle(postProcessorNames,res,key,this.options&&this.options.postProcessPassResolved?__spreadValues({i18nResolved:__spreadProps(__spreadValues({},resolved),{usedParams:this.getUsedParamsDetails(options)})},options):options,this);}return res;}},{key:"resolve",value:function resolve(keys2){var _this16=this;var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var found;var usedKey;var exactUsedKey;var usedLng;var usedNS;if(isString(keys2))keys2=[keys2];keys2.forEach(function(k){if(_this16.isValidLookup(found))return;var extracted=_this16.extractFromKey(k,options);var key=extracted.key;usedKey=key;var namespaces=extracted.namespaces;if(_this16.options.fallbackNS)namespaces=namespaces.concat(_this16.options.fallbackNS);var needsPluralHandling=options.count!==void 0&&!isString(options.count);var needsZeroSuffixLookup=needsPluralHandling&&!options.ordinal&&options.count===0&&_this16.pluralResolver.shouldUseIntlApi();var needsContextHandling=options.context!==void 0&&(isString(options.context)||typeof options.context==="number")&&options.context!=="";var codes=options.lngs?options.lngs:_this16.languageUtils.toResolveHierarchy(options.lng||_this16.language,options.fallbackLng);namespaces.forEach(function(ns){if(_this16.isValidLookup(found))return;usedNS=ns;if(!checkedLoadedFor["".concat(codes[0],"-").concat(ns)]&&_this16.utils&&_this16.utils.hasLoadedNamespace&&!_this16.utils.hasLoadedNamespace(usedNS)){checkedLoadedFor["".concat(codes[0],"-").concat(ns)]=true;_this16.logger.warn("key \"".concat(usedKey,"\" for languages \"").concat(codes.join(", "),"\" won't get resolved as namespace \"").concat(usedNS,"\" was not yet loaded"),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");}codes.forEach(function(code){if(_this16.isValidLookup(found))return;usedLng=code;var finalKeys=[key];if(_this16.i18nFormat&&_this16.i18nFormat.addLookupKeys){_this16.i18nFormat.addLookupKeys(finalKeys,key,code,ns,options);}else{var pluralSuffix;if(needsPluralHandling)pluralSuffix=_this16.pluralResolver.getSuffix(code,options.count,options);var zeroSuffix="".concat(_this16.options.pluralSeparator,"zero");var ordinalPrefix="".concat(_this16.options.pluralSeparator,"ordinal").concat(_this16.options.pluralSeparator);if(needsPluralHandling){finalKeys.push(key+pluralSuffix);if(options.ordinal&&pluralSuffix.indexOf(ordinalPrefix)===0){finalKeys.push(key+pluralSuffix.replace(ordinalPrefix,_this16.options.pluralSeparator));}if(needsZeroSuffixLookup){finalKeys.push(key+zeroSuffix);}}if(needsContextHandling){var contextKey="".concat(key).concat(_this16.options.contextSeparator).concat(options.context);finalKeys.push(contextKey);if(needsPluralHandling){finalKeys.push(contextKey+pluralSuffix);if(options.ordinal&&pluralSuffix.indexOf(ordinalPrefix)===0){finalKeys.push(contextKey+pluralSuffix.replace(ordinalPrefix,_this16.options.pluralSeparator));}if(needsZeroSuffixLookup){finalKeys.push(contextKey+zeroSuffix);}}}}var possibleKey;while(possibleKey=finalKeys.pop()){if(!_this16.isValidLookup(found)){exactUsedKey=possibleKey;found=_this16.getResource(code,ns,possibleKey,options);}}});});});return{res:found,usedKey:usedKey,exactUsedKey:exactUsedKey,usedLng:usedLng,usedNS:usedNS};}},{key:"isValidLookup",value:function isValidLookup(res){return res!==void 0&&!(!this.options.returnNull&&res===null)&&!(!this.options.returnEmptyString&&res==="");}},{key:"getResource",value:function getResource(code,ns,key){var options=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(this.i18nFormat&&this.i18nFormat.getResource)return this.i18nFormat.getResource(code,ns,key,options);return this.resourceStore.getResource(code,ns,key,options);}},{key:"getUsedParamsDetails",value:function getUsedParamsDetails(){var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var optionsKeys=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"];var useOptionsReplaceForData=options.replace&&!isString(options.replace);var data=useOptionsReplaceForData?options.replace:options;if(useOptionsReplaceForData&&typeof options.count!=="undefined"){data.count=options.count;}if(this.options.interpolation.defaultVariables){data=__spreadValues(__spreadValues({},this.options.interpolation.defaultVariables),data);}if(!useOptionsReplaceForData){data=__spreadValues({},data);var _iterator4=_createForOfIteratorHelper(optionsKeys),_step5;try{for(_iterator4.s();!(_step5=_iterator4.n()).done;){var key=_step5.value;delete data[key];}}catch(err){_iterator4.e(err);}finally{_iterator4.f();}}return data;}}],[{key:"hasDefaultValue",value:function hasDefaultValue(options){var prefix2="defaultValue";for(var option in options){if(Object.prototype.hasOwnProperty.call(options,option)&&prefix2===option.substring(0,prefix2.length)&&void 0!==options[option]){return true;}}return false;}}]);}(EventEmitter);var capitalize=function capitalize(string){return string.charAt(0).toUpperCase()+string.slice(1);};var LanguageUtil=/*#__PURE__*/function(){function LanguageUtil(options){_classCallCheck2(this,LanguageUtil);this.options=options;this.supportedLngs=this.options.supportedLngs||false;this.logger=baseLogger.create("languageUtils");}return _createClass2(LanguageUtil,[{key:"getScriptPartFromCode",value:function getScriptPartFromCode(code){code=getCleanedCode(code);if(!code||code.indexOf("-")<0)return null;var p=code.split("-");if(p.length===2)return null;p.pop();if(p[p.length-1].toLowerCase()==="x")return null;return this.formatLanguageCode(p.join("-"));}},{key:"getLanguagePartFromCode",value:function getLanguagePartFromCode(code){code=getCleanedCode(code);if(!code||code.indexOf("-")<0)return code;var p=code.split("-");return this.formatLanguageCode(p[0]);}},{key:"formatLanguageCode",value:function formatLanguageCode(code){if(isString(code)&&code.indexOf("-")>-1){if(typeof Intl!=="undefined"&&typeof Intl.getCanonicalLocales!=="undefined"){try{var formattedCode=Intl.getCanonicalLocales(code)[0];if(formattedCode&&this.options.lowerCaseLng){formattedCode=formattedCode.toLowerCase();}if(formattedCode)return formattedCode;}catch(e){}}var specialCases=["hans","hant","latn","cyrl","cans","mong","arab"];var p=code.split("-");if(this.options.lowerCaseLng){p=p.map(function(part){return part.toLowerCase();});}else if(p.length===2){p[0]=p[0].toLowerCase();p[1]=p[1].toUpperCase();if(specialCases.indexOf(p[1].toLowerCase())>-1)p[1]=capitalize(p[1].toLowerCase());}else if(p.length===3){p[0]=p[0].toLowerCase();if(p[1].length===2)p[1]=p[1].toUpperCase();if(p[0]!=="sgn"&&p[2].length===2)p[2]=p[2].toUpperCase();if(specialCases.indexOf(p[1].toLowerCase())>-1)p[1]=capitalize(p[1].toLowerCase());if(specialCases.indexOf(p[2].toLowerCase())>-1)p[2]=capitalize(p[2].toLowerCase());}return p.join("-");}return this.options.cleanCode||this.options.lowerCaseLng?code.toLowerCase():code;}},{key:"isSupportedCode",value:function isSupportedCode(code){if(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs){code=this.getLanguagePartFromCode(code);}return!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(code)>-1;}},{key:"getBestMatchFromCodes",value:function getBestMatchFromCodes(codes){var _this17=this;if(!codes)return null;var found;codes.forEach(function(code){if(found)return;var cleanedLng=_this17.formatLanguageCode(code);if(!_this17.options.supportedLngs||_this17.isSupportedCode(cleanedLng))found=cleanedLng;});if(!found&&this.options.supportedLngs){codes.forEach(function(code){if(found)return;var lngOnly=_this17.getLanguagePartFromCode(code);if(_this17.isSupportedCode(lngOnly))return found=lngOnly;found=_this17.options.supportedLngs.find(function(supportedLng){if(supportedLng===lngOnly)return supportedLng;if(supportedLng.indexOf("-")<0&&lngOnly.indexOf("-")<0)return;if(supportedLng.indexOf("-")>0&&lngOnly.indexOf("-")<0&&supportedLng.substring(0,supportedLng.indexOf("-"))===lngOnly)return supportedLng;if(supportedLng.indexOf(lngOnly)===0&&lngOnly.length>1)return supportedLng;});});}if(!found)found=this.getFallbackCodes(this.options.fallbackLng)[0];return found;}},{key:"getFallbackCodes",value:function getFallbackCodes(fallbacks,code){if(!fallbacks)return[];if(typeof fallbacks==="function")fallbacks=fallbacks(code);if(isString(fallbacks))fallbacks=[fallbacks];if(Array.isArray(fallbacks))return fallbacks;if(!code)return fallbacks.default||[];var found=fallbacks[code];if(!found)found=fallbacks[this.getScriptPartFromCode(code)];if(!found)found=fallbacks[this.formatLanguageCode(code)];if(!found)found=fallbacks[this.getLanguagePartFromCode(code)];if(!found)found=fallbacks.default;return found||[];}},{key:"toResolveHierarchy",value:function toResolveHierarchy(code,fallbackCode){var _this18=this;var fallbackCodes=this.getFallbackCodes(fallbackCode||this.options.fallbackLng||[],code);var codes=[];var addCode=function addCode(c){if(!c)return;if(_this18.isSupportedCode(c)){codes.push(c);}else{_this18.logger.warn("rejecting language code not found in supportedLngs: ".concat(c));}};if(isString(code)&&(code.indexOf("-")>-1||code.indexOf("_")>-1)){if(this.options.load!=="languageOnly")addCode(this.formatLanguageCode(code));if(this.options.load!=="languageOnly"&&this.options.load!=="currentOnly")addCode(this.getScriptPartFromCode(code));if(this.options.load!=="currentOnly")addCode(this.getLanguagePartFromCode(code));}else if(isString(code)){addCode(this.formatLanguageCode(code));}fallbackCodes.forEach(function(fc){if(codes.indexOf(fc)<0)addCode(_this18.formatLanguageCode(fc));});return codes;}}]);}();var sets=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}];var _rulesPluralsTypes={1:function _(n){return Number(n>1);},2:function _(n){return Number(n!=1);},3:function _(n){return 0;},4:function _(n){return Number(n%10==1&&n%100!=11?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2);},5:function _(n){return Number(n==0?0:n==1?1:n==2?2:n%100>=3&&n%100<=10?3:n%100>=11?4:5);},6:function _(n){return Number(n==1?0:n>=2&&n<=4?1:2);},7:function _(n){return Number(n==1?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2);},8:function _(n){return Number(n==1?0:n==2?1:n!=8&&n!=11?2:3);},9:function _(n){return Number(n>=2);},10:function _(n){return Number(n==1?0:n==2?1:n<7?2:n<11?3:4);},11:function _(n){return Number(n==1||n==11?0:n==2||n==12?1:n>2&&n<20?2:3);},12:function _(n){return Number(n%10!=1||n%100==11);},13:function _(n){return Number(n!==0);},14:function _(n){return Number(n==1?0:n==2?1:n==3?2:3);},15:function _(n){return Number(n%10==1&&n%100!=11?0:n%10>=2&&(n%100<10||n%100>=20)?1:2);},16:function _(n){return Number(n%10==1&&n%100!=11?0:n!==0?1:2);},17:function _(n){return Number(n==1||n%10==1&&n%100!=11?0:1);},18:function _(n){return Number(n==0?0:n==1?1:2);},19:function _(n){return Number(n==1?0:n==0||n%100>1&&n%100<11?1:n%100>10&&n%100<20?2:3);},20:function _(n){return Number(n==1?0:n==0||n%100>0&&n%100<20?1:2);},21:function _(n){return Number(n%100==1?1:n%100==2?2:n%100==3||n%100==4?3:0);},22:function _(n){return Number(n==1?0:n==2?1:(n<0||n>10)&&n%10==0?2:3);}};var nonIntlVersions=["v1","v2","v3"];var intlVersions=["v4"];var suffixesOrder={zero:0,one:1,two:2,few:3,many:4,other:5};var createRules=function createRules(){var rules={};sets.forEach(function(set){set.lngs.forEach(function(l){rules[l]={numbers:set.nr,plurals:_rulesPluralsTypes[set.fc]};});});return rules;};var PluralResolver=/*#__PURE__*/function(){function PluralResolver(languageUtils){_classCallCheck2(this,PluralResolver);var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=languageUtils;this.options=options;this.logger=baseLogger.create("pluralResolver");if((!this.options.compatibilityJSON||intlVersions.includes(this.options.compatibilityJSON))&&(typeof Intl==="undefined"||!Intl.PluralRules)){this.options.compatibilityJSON="v3";this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.");}this.rules=createRules();this.pluralRulesCache={};}return _createClass2(PluralResolver,[{key:"addRule",value:function addRule(lng,obj){this.rules[lng]=obj;}},{key:"clearCache",value:function clearCache(){this.pluralRulesCache={};}},{key:"getRule",value:function getRule(code){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){var cleanedCode=getCleanedCode(code==="dev"?"en":code);var type=options.ordinal?"ordinal":"cardinal";var cacheKey=JSON.stringify({cleanedCode:cleanedCode,type:type});if(cacheKey in this.pluralRulesCache){return this.pluralRulesCache[cacheKey];}var rule;try{rule=new Intl.PluralRules(cleanedCode,{type:type});}catch(err){if(!code.match(/-|_/))return;var lngPart=this.languageUtils.getLanguagePartFromCode(code);rule=this.getRule(lngPart,options);}this.pluralRulesCache[cacheKey]=rule;return rule;}return this.rules[code]||this.rules[this.languageUtils.getLanguagePartFromCode(code)];}},{key:"needsPlural",value:function needsPlural(code){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var rule=this.getRule(code,options);if(this.shouldUseIntlApi()){return rule&&rule.resolvedOptions().pluralCategories.length>1;}return rule&&rule.numbers.length>1;}},{key:"getPluralFormsOfKey",value:function getPluralFormsOfKey(code,key){var options=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(code,options).map(function(suffix){return"".concat(key).concat(suffix);});}},{key:"getSuffixes",value:function getSuffixes(code){var _this19=this;var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var rule=this.getRule(code,options);if(!rule){return[];}if(this.shouldUseIntlApi()){return rule.resolvedOptions().pluralCategories.sort(function(pluralCategory1,pluralCategory2){return suffixesOrder[pluralCategory1]-suffixesOrder[pluralCategory2];}).map(function(pluralCategory){return"".concat(_this19.options.prepend).concat(options.ordinal?"ordinal".concat(_this19.options.prepend):"").concat(pluralCategory);});}return rule.numbers.map(function(number){return _this19.getSuffix(code,number,options);});}},{key:"getSuffix",value:function getSuffix(code,count2){var options=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var rule=this.getRule(code,options);if(rule){if(this.shouldUseIntlApi()){return"".concat(this.options.prepend).concat(options.ordinal?"ordinal".concat(this.options.prepend):"").concat(rule.select(count2));}return this.getSuffixRetroCompatible(rule,count2);}this.logger.warn("no plural rule found for: ".concat(code));return"";}},{key:"getSuffixRetroCompatible",value:function getSuffixRetroCompatible(rule,count2){var _this20=this;var idx=rule.noAbs?rule.plurals(count2):rule.plurals(Math.abs(count2));var suffix=rule.numbers[idx];if(this.options.simplifyPluralSuffix&&rule.numbers.length===2&&rule.numbers[0]===1){if(suffix===2){suffix="plural";}else if(suffix===1){suffix="";}}var returnSuffix=function returnSuffix(){return _this20.options.prepend&&suffix.toString()?_this20.options.prepend+suffix.toString():suffix.toString();};if(this.options.compatibilityJSON==="v1"){if(suffix===1)return"";if(typeof suffix==="number")return"_plural_".concat(suffix.toString());return returnSuffix();}else if(this.options.compatibilityJSON==="v2"){return returnSuffix();}else if(this.options.simplifyPluralSuffix&&rule.numbers.length===2&&rule.numbers[0]===1){return returnSuffix();}return this.options.prepend&&idx.toString()?this.options.prepend+idx.toString():idx.toString();}},{key:"shouldUseIntlApi",value:function shouldUseIntlApi(){return!nonIntlVersions.includes(this.options.compatibilityJSON);}}]);}();var deepFindWithDefaults=function deepFindWithDefaults(data,defaultData,key){var keySeparator=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".";var ignoreJSONStructure=arguments.length>4&&arguments[4]!==void 0?arguments[4]:true;var path=getPathWithDefaults(data,defaultData,key);if(!path&&ignoreJSONStructure&&isString(key)){path=deepFind(data,key,keySeparator);if(path===void 0)path=deepFind(defaultData,key,keySeparator);}return path;};var regexSafe=function regexSafe(val){return val.replace(/\$/g,"$$$$");};var Interpolator=/*#__PURE__*/function(){function Interpolator(){_classCallCheck2(this,Interpolator);var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=baseLogger.create("interpolator");this.options=options;this.format=options.interpolation&&options.interpolation.format||function(value){return value;};this.init(options);}return _createClass2(Interpolator,[{key:"init",value:function init(){var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!options.interpolation)options.interpolation={escapeValue:true};var _options$interpolatio=options.interpolation,escape$1=_options$interpolatio.escape,escapeValue=_options$interpolatio.escapeValue,useRawValueToEscape=_options$interpolatio.useRawValueToEscape,prefix2=_options$interpolatio.prefix,prefixEscaped=_options$interpolatio.prefixEscaped,suffix=_options$interpolatio.suffix,suffixEscaped=_options$interpolatio.suffixEscaped,formatSeparator=_options$interpolatio.formatSeparator,unescapeSuffix=_options$interpolatio.unescapeSuffix,unescapePrefix=_options$interpolatio.unescapePrefix,nestingPrefix=_options$interpolatio.nestingPrefix,nestingPrefixEscaped=_options$interpolatio.nestingPrefixEscaped,nestingSuffix=_options$interpolatio.nestingSuffix,nestingSuffixEscaped=_options$interpolatio.nestingSuffixEscaped,nestingOptionsSeparator=_options$interpolatio.nestingOptionsSeparator,maxReplaces=_options$interpolatio.maxReplaces,alwaysFormat=_options$interpolatio.alwaysFormat;this.escape=escape$1!==void 0?escape$1:escape;this.escapeValue=escapeValue!==void 0?escapeValue:true;this.useRawValueToEscape=useRawValueToEscape!==void 0?useRawValueToEscape:false;this.prefix=prefix2?regexEscape(prefix2):prefixEscaped||"{{";this.suffix=suffix?regexEscape(suffix):suffixEscaped||"}}";this.formatSeparator=formatSeparator||",";this.unescapePrefix=unescapeSuffix?"":unescapePrefix||"-";this.unescapeSuffix=this.unescapePrefix?"":unescapeSuffix||"";this.nestingPrefix=nestingPrefix?regexEscape(nestingPrefix):nestingPrefixEscaped||regexEscape("$t(");this.nestingSuffix=nestingSuffix?regexEscape(nestingSuffix):nestingSuffixEscaped||regexEscape(")");this.nestingOptionsSeparator=nestingOptionsSeparator||",";this.maxReplaces=maxReplaces||1e3;this.alwaysFormat=alwaysFormat!==void 0?alwaysFormat:false;this.resetRegExp();}},{key:"reset",value:function reset(){if(this.options)this.init(this.options);}},{key:"resetRegExp",value:function resetRegExp(){var getOrResetRegExp=function getOrResetRegExp(existingRegExp,pattern){if(existingRegExp&&existingRegExp.source===pattern){existingRegExp.lastIndex=0;return existingRegExp;}return new RegExp(pattern,"g");};this.regexp=getOrResetRegExp(this.regexp,"".concat(this.prefix,"(.+?)").concat(this.suffix));this.regexpUnescape=getOrResetRegExp(this.regexpUnescape,"".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix));this.nestingRegexp=getOrResetRegExp(this.nestingRegexp,"".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix));}},{key:"interpolate",value:function interpolate(str,data,lng,options){var _this21=this;var match2;var value;var replaces;var defaultData=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};var handleFormat=function handleFormat(key){if(key.indexOf(_this21.formatSeparator)<0){var path=deepFindWithDefaults(data,defaultData,key,_this21.options.keySeparator,_this21.options.ignoreJSONStructure);return _this21.alwaysFormat?_this21.format(path,void 0,lng,__spreadProps(__spreadValues(__spreadValues({},options),data),{interpolationkey:key})):path;}var p=key.split(_this21.formatSeparator);var k=p.shift().trim();var f=p.join(_this21.formatSeparator).trim();return _this21.format(deepFindWithDefaults(data,defaultData,k,_this21.options.keySeparator,_this21.options.ignoreJSONStructure),f,lng,__spreadProps(__spreadValues(__spreadValues({},options),data),{interpolationkey:k}));};this.resetRegExp();var missingInterpolationHandler=options&&options.missingInterpolationHandler||this.options.missingInterpolationHandler;var skipOnVariables=options&&options.interpolation&&options.interpolation.skipOnVariables!==void 0?options.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;var todos=[{regex:this.regexpUnescape,safeValue:function safeValue(val){return regexSafe(val);}},{regex:this.regexp,safeValue:function safeValue(val){return _this21.escapeValue?regexSafe(_this21.escape(val)):regexSafe(val);}}];todos.forEach(function(todo){replaces=0;while(match2=todo.regex.exec(str)){var matchedVar=match2[1].trim();value=handleFormat(matchedVar);if(value===void 0){if(typeof missingInterpolationHandler==="function"){var temp=missingInterpolationHandler(str,match2,options);value=isString(temp)?temp:"";}else if(options&&Object.prototype.hasOwnProperty.call(options,matchedVar)){value="";}else if(skipOnVariables){value=match2[0];continue;}else{_this21.logger.warn("missed to pass in variable ".concat(matchedVar," for interpolating ").concat(str));value="";}}else if(!isString(value)&&!_this21.useRawValueToEscape){value=makeString(value);}var safeValue=todo.safeValue(value);str=str.replace(match2[0],safeValue);if(skipOnVariables){todo.regex.lastIndex+=value.length;todo.regex.lastIndex-=match2[0].length;}else{todo.regex.lastIndex=0;}replaces++;if(replaces>=_this21.maxReplaces){break;}}});return str;}},{key:"nest",value:function nest(str,fc){var _this22=this;var options=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var match2;var value;var clonedOptions;var handleHasOptions=function handleHasOptions(key,inheritedOptions){var sep=_this22.nestingOptionsSeparator;if(key.indexOf(sep)<0)return key;var c=key.split(new RegExp("".concat(sep,"[ ]*{")));var optionsString="{".concat(c[1]);key=c[0];optionsString=_this22.interpolate(optionsString,clonedOptions);var matchedSingleQuotes=optionsString.match(/'/g);var matchedDoubleQuotes=optionsString.match(/"/g);if(matchedSingleQuotes&&matchedSingleQuotes.length%2===0&&!matchedDoubleQuotes||matchedDoubleQuotes.length%2!==0){optionsString=optionsString.replace(/'/g,'"');}try{clonedOptions=JSON.parse(optionsString);if(inheritedOptions)clonedOptions=__spreadValues(__spreadValues({},inheritedOptions),clonedOptions);}catch(e){_this22.logger.warn("failed parsing options string in nesting for key ".concat(key),e);return"".concat(key).concat(sep).concat(optionsString);}if(clonedOptions.defaultValue&&clonedOptions.defaultValue.indexOf(_this22.prefix)>-1)delete clonedOptions.defaultValue;return key;};while(match2=this.nestingRegexp.exec(str)){var formatters2=[];clonedOptions=__spreadValues({},options);clonedOptions=clonedOptions.replace&&!isString(clonedOptions.replace)?clonedOptions.replace:clonedOptions;clonedOptions.applyPostProcessor=false;delete clonedOptions.defaultValue;var doReduce=false;if(match2[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(match2[1])){var r2=match2[1].split(this.formatSeparator).map(function(elem){return elem.trim();});match2[1]=r2.shift();formatters2=r2;doReduce=true;}value=fc(handleHasOptions.call(this,match2[1].trim(),clonedOptions),clonedOptions);if(value&&match2[0]===str&&!isString(value))return value;if(!isString(value))value=makeString(value);if(!value){this.logger.warn("missed to resolve ".concat(match2[1]," for nesting ").concat(str));value="";}if(doReduce){value=formatters2.reduce(function(v,f){return _this22.format(v,f,options.lng,__spreadProps(__spreadValues({},options),{interpolationkey:match2[1].trim()}));},value.trim());}str=str.replace(match2[0],value);this.regexp.lastIndex=0;}return str;}}]);}();var parseFormatStr=function parseFormatStr(formatStr){var formatName=formatStr.toLowerCase().trim();var formatOptions={};if(formatStr.indexOf("(")>-1){var p=formatStr.split("(");formatName=p[0].toLowerCase().trim();var optStr=p[1].substring(0,p[1].length-1);if(formatName==="currency"&&optStr.indexOf(":")<0){if(!formatOptions.currency)formatOptions.currency=optStr.trim();}else if(formatName==="relativetime"&&optStr.indexOf(":")<0){if(!formatOptions.range)formatOptions.range=optStr.trim();}else{var opts=optStr.split(";");opts.forEach(function(opt){if(opt){var _opt$split=opt.split(":"),_opt$split2=_toArray(_opt$split),key=_opt$split2[0],rest=_opt$split2.slice(1);var val=rest.join(":").trim().replace(/^'+|'+$/g,"");var trimmedKey=key.trim();if(!formatOptions[trimmedKey])formatOptions[trimmedKey]=val;if(val==="false")formatOptions[trimmedKey]=false;if(val==="true")formatOptions[trimmedKey]=true;if(!isNaN(val))formatOptions[trimmedKey]=parseInt(val,10);}});}}return{formatName:formatName,formatOptions:formatOptions};};var createCachedFormatter=function createCachedFormatter(fn3){var cache={};return function(val,lng,options){var optForCache=options;if(options&&options.interpolationkey&&options.formatParams&&options.formatParams[options.interpolationkey]&&options[options.interpolationkey]){optForCache=__spreadProps(__spreadValues({},optForCache),_defineProperty2({},options.interpolationkey,void 0));}var key=lng+JSON.stringify(optForCache);var formatter=cache[key];if(!formatter){formatter=fn3(getCleanedCode(lng),options);cache[key]=formatter;}return formatter(val);};};var Formatter=/*#__PURE__*/function(){function Formatter(){_classCallCheck2(this,Formatter);var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=baseLogger.create("formatter");this.options=options;this.formats={number:createCachedFormatter(function(lng,opt){var formatter=new Intl.NumberFormat(lng,__spreadValues({},opt));return function(val){return formatter.format(val);};}),currency:createCachedFormatter(function(lng,opt){var formatter=new Intl.NumberFormat(lng,__spreadProps(__spreadValues({},opt),{style:"currency"}));return function(val){return formatter.format(val);};}),datetime:createCachedFormatter(function(lng,opt){var formatter=new Intl.DateTimeFormat(lng,__spreadValues({},opt));return function(val){return formatter.format(val);};}),relativetime:createCachedFormatter(function(lng,opt){var formatter=new Intl.RelativeTimeFormat(lng,__spreadValues({},opt));return function(val){return formatter.format(val,opt.range||"day");};}),list:createCachedFormatter(function(lng,opt){var formatter=new Intl.ListFormat(lng,__spreadValues({},opt));return function(val){return formatter.format(val);};})};this.init(options);}return _createClass2(Formatter,[{key:"init",value:function init(services){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=options.interpolation.formatSeparator||",";}},{key:"add",value:function add(name,fc){this.formats[name.toLowerCase().trim()]=fc;}},{key:"addCached",value:function addCached(name,fc){this.formats[name.toLowerCase().trim()]=createCachedFormatter(fc);}},{key:"format",value:function format(value,format2,lng){var _this23=this;var options=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};var formats=format2.split(this.formatSeparator);if(formats.length>1&&formats[0].indexOf("(")>1&&formats[0].indexOf(")")<0&&formats.find(function(f){return f.indexOf(")")>-1;})){var lastIndex=formats.findIndex(function(f){return f.indexOf(")")>-1;});formats[0]=[formats[0]].concat(_toConsumableArray2(formats.splice(1,lastIndex))).join(this.formatSeparator);}var result=formats.reduce(function(mem,f){var _parseFormatStr=parseFormatStr(f),formatName=_parseFormatStr.formatName,formatOptions=_parseFormatStr.formatOptions;if(_this23.formats[formatName]){var formatted=mem;try{var valOptions=options&&options.formatParams&&options.formatParams[options.interpolationkey]||{};var l=valOptions.locale||valOptions.lng||options.locale||options.lng||lng;formatted=_this23.formats[formatName](mem,l,__spreadValues(__spreadValues(__spreadValues({},formatOptions),options),valOptions));}catch(error2){_this23.logger.warn(error2);}return formatted;}else{_this23.logger.warn("there was no format function for ".concat(formatName));}return mem;},value);return result;}}]);}();var removePending=function removePending(q,name){if(q.pending[name]!==void 0){delete q.pending[name];q.pendingCount--;}};var Connector=/*#__PURE__*/function(_EventEmitter3){function Connector(backend,store,services){var _this24;_classCallCheck2(this,Connector);var options=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};_this24=_callSuper(this,Connector);_this24.backend=backend;_this24.store=store;_this24.services=services;_this24.languageUtils=services.languageUtils;_this24.options=options;_this24.logger=baseLogger.create("backendConnector");_this24.waitingReads=[];_this24.maxParallelReads=options.maxParallelReads||10;_this24.readingCalls=0;_this24.maxRetries=options.maxRetries>=0?options.maxRetries:5;_this24.retryTimeout=options.retryTimeout>=1?options.retryTimeout:350;_this24.state={};_this24.queue=[];if(_this24.backend&&_this24.backend.init){_this24.backend.init(services,options.backend,options);}return _this24;}_inherits2(Connector,_EventEmitter3);return _createClass2(Connector,[{key:"queueLoad",value:function queueLoad(languages,namespaces,options,callback){var _this25=this;var toLoad={};var pending={};var toLoadLanguages={};var toLoadNamespaces={};languages.forEach(function(lng){var hasAllNamespaces=true;namespaces.forEach(function(ns){var name="".concat(lng,"|").concat(ns);if(!options.reload&&_this25.store.hasResourceBundle(lng,ns)){_this25.state[name]=2;}else if(_this25.state[name]<0);else if(_this25.state[name]===1){if(pending[name]===void 0)pending[name]=true;}else{_this25.state[name]=1;hasAllNamespaces=false;if(pending[name]===void 0)pending[name]=true;if(toLoad[name]===void 0)toLoad[name]=true;if(toLoadNamespaces[ns]===void 0)toLoadNamespaces[ns]=true;}});if(!hasAllNamespaces)toLoadLanguages[lng]=true;});if(Object.keys(toLoad).length||Object.keys(pending).length){this.queue.push({pending:pending,pendingCount:Object.keys(pending).length,loaded:{},errors:[],callback:callback});}return{toLoad:Object.keys(toLoad),pending:Object.keys(pending),toLoadLanguages:Object.keys(toLoadLanguages),toLoadNamespaces:Object.keys(toLoadNamespaces)};}},{key:"loaded",value:function loaded(name,err,data){var s=name.split("|");var lng=s[0];var ns=s[1];if(err)this.emit("failedLoading",lng,ns,err);if(!err&&data){this.store.addResourceBundle(lng,ns,data,void 0,void 0,{skipCopy:true});}this.state[name]=err?-1:2;if(err&&data)this.state[name]=0;var loaded={};this.queue.forEach(function(q){pushPath(q.loaded,[lng],ns);removePending(q,name);if(err)q.errors.push(err);if(q.pendingCount===0&&!q.done){Object.keys(q.loaded).forEach(function(l){if(!loaded[l])loaded[l]={};var loadedKeys=q.loaded[l];if(loadedKeys.length){loadedKeys.forEach(function(n){if(loaded[l][n]===void 0)loaded[l][n]=true;});}});q.done=true;if(q.errors.length){q.callback(q.errors);}else{q.callback();}}});this.emit("loaded",loaded);this.queue=this.queue.filter(function(q){return!q.done;});}},{key:"read",value:function read(lng,ns,fcName){var _this26=this;var tried=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;var wait=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout;var callback=arguments.length>5?arguments[5]:void 0;if(!lng.length)return callback(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:lng,ns:ns,fcName:fcName,tried:tried,wait:wait,callback:callback});return;}this.readingCalls++;var resolver=function resolver(err,data){_this26.readingCalls--;if(_this26.waitingReads.length>0){var next2=_this26.waitingReads.shift();_this26.read(next2.lng,next2.ns,next2.fcName,next2.tried,next2.wait,next2.callback);}if(err&&data&&tried<_this26.maxRetries){setTimeout(function(){_this26.read.call(_this26,lng,ns,fcName,tried+1,wait*2,callback);},wait);return;}callback(err,data);};var fc=this.backend[fcName].bind(this.backend);if(fc.length===2){try{var r2=fc(lng,ns);if(r2&&typeof r2.then==="function"){r2.then(function(data){return resolver(null,data);}).catch(resolver);}else{resolver(null,r2);}}catch(err){resolver(err);}return;}return fc(lng,ns,resolver);}},{key:"prepareLoading",value:function prepareLoading(languages,namespaces){var _this27=this;var options=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var callback=arguments.length>3?arguments[3]:void 0;if(!this.backend){this.logger.warn("No backend was added via i18next.use. Will not load resources.");return callback&&callback();}if(isString(languages))languages=this.languageUtils.toResolveHierarchy(languages);if(isString(namespaces))namespaces=[namespaces];var toLoad=this.queueLoad(languages,namespaces,options,callback);if(!toLoad.toLoad.length){if(!toLoad.pending.length)callback();return null;}toLoad.toLoad.forEach(function(name){_this27.loadOne(name);});}},{key:"load",value:function load(languages,namespaces,callback){this.prepareLoading(languages,namespaces,{},callback);}},{key:"reload",value:function reload(languages,namespaces,callback){this.prepareLoading(languages,namespaces,{reload:true},callback);}},{key:"loadOne",value:function loadOne(name){var _this28=this;var prefix2=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";var s=name.split("|");var lng=s[0];var ns=s[1];this.read(lng,ns,"read",void 0,void 0,function(err,data){if(err)_this28.logger.warn("".concat(prefix2,"loading namespace ").concat(ns," for language ").concat(lng," failed"),err);if(!err&&data)_this28.logger.log("".concat(prefix2,"loaded namespace ").concat(ns," for language ").concat(lng),data);_this28.loaded(name,err,data);});}},{key:"saveMissing",value:function saveMissing(languages,namespace,key,fallbackValue,isUpdate){var options=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};var clb=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(namespace)){this.logger.warn("did not save key \"".concat(key,"\" as the namespace \"").concat(namespace,"\" was not yet loaded"),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return;}if(key===void 0||key===null||key==="")return;if(this.backend&&this.backend.create){var opts=__spreadProps(__spreadValues({},options),{isUpdate:isUpdate});var fc=this.backend.create.bind(this.backend);if(fc.length<6){try{var r2;if(fc.length===5){r2=fc(languages,namespace,key,fallbackValue,opts);}else{r2=fc(languages,namespace,key,fallbackValue);}if(r2&&typeof r2.then==="function"){r2.then(function(data){return clb(null,data);}).catch(clb);}else{clb(null,r2);}}catch(err){clb(err);}}else{fc(languages,namespace,key,fallbackValue,clb,opts);}}if(!languages||!languages[0])return;this.store.addResource(languages[0],namespace,key,fallbackValue);}}]);}(EventEmitter);var get$2=function get$2(){return{debug:false,initImmediate:true,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:false,supportedLngs:false,nonExplicitSupportedLngs:false,load:"all",preload:false,simplifyPluralSuffix:true,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:false,saveMissing:false,updateMissing:false,saveMissingTo:"fallback",saveMissingPlurals:true,missingKeyHandler:false,missingInterpolationHandler:false,postProcess:false,postProcessPassResolved:false,returnNull:false,returnEmptyString:true,returnObjects:false,joinArrays:false,returnedObjectHandler:false,parseMissingKeyHandler:false,appendNamespaceToMissingKey:false,appendNamespaceToCIMode:false,overloadTranslationOptionHandler:function overloadTranslationOptionHandler(args){var ret={};if(_typeof2(args[1])==="object")ret=args[1];if(isString(args[1]))ret.defaultValue=args[1];if(isString(args[2]))ret.tDescription=args[2];if(_typeof2(args[2])==="object"||_typeof2(args[3])==="object"){var _options3=args[3]||args[2];Object.keys(_options3).forEach(function(key){ret[key]=_options3[key];});}return ret;},interpolation:{escapeValue:true,format:function format(value){return value;},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:true}};};var transformOptions=function transformOptions(options){if(isString(options.ns))options.ns=[options.ns];if(isString(options.fallbackLng))options.fallbackLng=[options.fallbackLng];if(isString(options.fallbackNS))options.fallbackNS=[options.fallbackNS];if(options.supportedLngs&&options.supportedLngs.indexOf("cimode")<0){options.supportedLngs=options.supportedLngs.concat(["cimode"]);}return options;};var noop$2=function noop$2(){};var bindMemberFunctions=function bindMemberFunctions(inst){var mems=Object.getOwnPropertyNames(Object.getPrototypeOf(inst));mems.forEach(function(mem){if(typeof inst[mem]==="function"){inst[mem]=inst[mem].bind(inst);}});};var I18n=/*#__PURE__*/function(_EventEmitter4){function I18n(){var _this29;_classCallCheck2(this,I18n);var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var callback=arguments.length>1?arguments[1]:void 0;_this29=_callSuper(this,I18n);_this29.options=transformOptions(options);_this29.services={};_this29.logger=baseLogger;_this29.modules={external:[]};bindMemberFunctions(_this29);if(callback&&!_this29.isInitialized&&!options.isClone){if(!_this29.options.initImmediate){_this29.init(options,callback);return _possibleConstructorReturn2(_this29,_this29);}setTimeout(function(){_this29.init(options,callback);},0);}return _this29;}_inherits2(I18n,_EventEmitter4);return _createClass2(I18n,[{key:"init",value:function init(){var _this30=this;var _this=this;var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var callback=arguments.length>1?arguments[1]:void 0;this.isInitializing=true;if(typeof options==="function"){callback=options;options={};}if(!options.defaultNS&&options.defaultNS!==false&&options.ns){if(isString(options.ns)){options.defaultNS=options.ns;}else if(options.ns.indexOf("translation")<0){options.defaultNS=options.ns[0];}}var defOpts=get$2();this.options=__spreadValues(__spreadValues(__spreadValues({},defOpts),this.options),transformOptions(options));if(this.options.compatibilityAPI!=="v1"){this.options.interpolation=__spreadValues(__spreadValues({},defOpts.interpolation),this.options.interpolation);}if(options.keySeparator!==void 0){this.options.userDefinedKeySeparator=options.keySeparator;}if(options.nsSeparator!==void 0){this.options.userDefinedNsSeparator=options.nsSeparator;}var createClassOnDemand=function createClassOnDemand(ClassOrObject){if(!ClassOrObject)return null;if(typeof ClassOrObject==="function")return new ClassOrObject();return ClassOrObject;};if(!this.options.isClone){if(this.modules.logger){baseLogger.init(createClassOnDemand(this.modules.logger),this.options);}else{baseLogger.init(null,this.options);}var formatter;if(this.modules.formatter){formatter=this.modules.formatter;}else if(typeof Intl!=="undefined"){formatter=Formatter;}var lu=new LanguageUtil(this.options);this.store=new ResourceStore(this.options.resources,this.options);var s=this.services;s.logger=baseLogger;s.resourceStore=this.store;s.languageUtils=lu;s.pluralResolver=new PluralResolver(lu,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix});if(formatter&&(!this.options.interpolation.format||this.options.interpolation.format===defOpts.interpolation.format)){s.formatter=createClassOnDemand(formatter);s.formatter.init(s,this.options);this.options.interpolation.format=s.formatter.format.bind(s.formatter);}s.interpolator=new Interpolator(this.options);s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)};s.backendConnector=new Connector(createClassOnDemand(this.modules.backend),s.resourceStore,s,this.options);s.backendConnector.on("*",function(event){for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key];}_this.emit.apply(_this,[event].concat(args));});if(this.modules.languageDetector){s.languageDetector=createClassOnDemand(this.modules.languageDetector);if(s.languageDetector.init)s.languageDetector.init(s,this.options.detection,this.options);}if(this.modules.i18nFormat){s.i18nFormat=createClassOnDemand(this.modules.i18nFormat);if(s.i18nFormat.init)s.i18nFormat.init(this);}this.translator=new Translator(this.services,this.options);this.translator.on("*",function(event){for(var _len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++){args[_key2-1]=arguments[_key2];}_this.emit.apply(_this,[event].concat(args));});this.modules.external.forEach(function(m){if(m.init)m.init(_this30);});}this.format=this.options.interpolation.format;if(!callback)callback=noop$2;if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var codes=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);if(codes.length>0&&codes[0]!=="dev")this.options.lng=codes[0];}if(!this.services.languageDetector&&!this.options.lng){this.logger.warn("init: no languageDetector is used and no lng is defined");}var storeApi=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];storeApi.forEach(function(fcName){_this30[fcName]=function(){var _this$store;return(_this$store=_this.store)[fcName].apply(_this$store,arguments);};});var storeApiChained=["addResource","addResources","addResourceBundle","removeResourceBundle"];storeApiChained.forEach(function(fcName){_this30[fcName]=function(){var _this$store2;(_this$store2=_this.store)[fcName].apply(_this$store2,arguments);return _this;};});var deferred=defer();var load=function load(){var finish=function finish(err,t){_this30.isInitializing=false;if(_this30.isInitialized&&!_this30.initializedStoreOnce)_this30.logger.warn("init: i18next is already initialized. You should call init just once!");_this30.isInitialized=true;if(!_this30.options.isClone)_this30.logger.log("initialized",_this30.options);_this30.emit("initialized",_this30.options);deferred.resolve(t);callback(err,t);};if(_this30.languages&&_this30.options.compatibilityAPI!=="v1"&&!_this30.isInitialized)return finish(null,_this30.t.bind(_this30));_this30.changeLanguage(_this30.options.lng,finish);};if(this.options.resources||!this.options.initImmediate){load();}else{setTimeout(load,0);}return deferred;}},{key:"loadResources",value:function loadResources(language){var _this31=this;var callback=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$2;var usedCallback=callback;var usedLng=isString(language)?language:this.language;if(typeof language==="function")usedCallback=language;if(!this.options.resources||this.options.partialBundledLanguages){if(usedLng&&usedLng.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return usedCallback();var toLoad=[];var append2=function append2(lng){if(!lng)return;if(lng==="cimode")return;var lngs=_this31.services.languageUtils.toResolveHierarchy(lng);lngs.forEach(function(l){if(l==="cimode")return;if(toLoad.indexOf(l)<0)toLoad.push(l);});};if(!usedLng){var fallbacks=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);fallbacks.forEach(function(l){return append2(l);});}else{append2(usedLng);}if(this.options.preload){this.options.preload.forEach(function(l){return append2(l);});}this.services.backendConnector.load(toLoad,this.options.ns,function(e){if(!e&&!_this31.resolvedLanguage&&_this31.language)_this31.setResolvedLanguage(_this31.language);usedCallback(e);});}else{usedCallback(null);}}},{key:"reloadResources",value:function reloadResources(lngs,ns,callback){var deferred=defer();if(typeof lngs==="function"){callback=lngs;lngs=void 0;}if(typeof ns==="function"){callback=ns;ns=void 0;}if(!lngs)lngs=this.languages;if(!ns)ns=this.options.ns;if(!callback)callback=noop$2;this.services.backendConnector.reload(lngs,ns,function(err){deferred.resolve();callback(err);});return deferred;}},{key:"use",value:function use(module){if(!module)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!module.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");if(module.type==="backend"){this.modules.backend=module;}if(module.type==="logger"||module.log&&module.warn&&module.error){this.modules.logger=module;}if(module.type==="languageDetector"){this.modules.languageDetector=module;}if(module.type==="i18nFormat"){this.modules.i18nFormat=module;}if(module.type==="postProcessor"){postProcessor.addPostProcessor(module);}if(module.type==="formatter"){this.modules.formatter=module;}if(module.type==="3rdParty"){this.modules.external.push(module);}return this;}},{key:"setResolvedLanguage",value:function setResolvedLanguage(l){if(!l||!this.languages)return;if(["cimode","dev"].indexOf(l)>-1)return;for(var li=0;li<this.languages.length;li++){var lngInLngs=this.languages[li];if(["cimode","dev"].indexOf(lngInLngs)>-1)continue;if(this.store.hasLanguageSomeTranslations(lngInLngs)){this.resolvedLanguage=lngInLngs;break;}}}},{key:"changeLanguage",value:function changeLanguage(lng,callback){var _this32=this;var _this2=this;this.isLanguageChangingTo=lng;var deferred=defer();this.emit("languageChanging",lng);var setLngProps=function setLngProps(l){_this32.language=l;_this32.languages=_this32.services.languageUtils.toResolveHierarchy(l);_this32.resolvedLanguage=void 0;_this32.setResolvedLanguage(l);};var done=function done(err,l){if(l){setLngProps(l);_this32.translator.changeLanguage(l);_this32.isLanguageChangingTo=void 0;_this32.emit("languageChanged",l);_this32.logger.log("languageChanged",l);}else{_this32.isLanguageChangingTo=void 0;}deferred.resolve(function(){return _this2.t.apply(_this2,arguments);});if(callback)callback(err,function(){return _this2.t.apply(_this2,arguments);});};var setLng=function setLng(lngs){if(!lng&&!lngs&&_this32.services.languageDetector)lngs=[];var l=isString(lngs)?lngs:_this32.services.languageUtils.getBestMatchFromCodes(lngs);if(l){if(!_this32.language){setLngProps(l);}if(!_this32.translator.language)_this32.translator.changeLanguage(l);if(_this32.services.languageDetector&&_this32.services.languageDetector.cacheUserLanguage)_this32.services.languageDetector.cacheUserLanguage(l);}_this32.loadResources(l,function(err){done(err,l);});};if(!lng&&this.services.languageDetector&&!this.services.languageDetector.async){setLng(this.services.languageDetector.detect());}else if(!lng&&this.services.languageDetector&&this.services.languageDetector.async){if(this.services.languageDetector.detect.length===0){this.services.languageDetector.detect().then(setLng);}else{this.services.languageDetector.detect(setLng);}}else{setLng(lng);}return deferred;}},{key:"getFixedT",value:function getFixedT(lng,ns,keyPrefix){var _this3=this;var _fixedT=function fixedT(key,opts){var options;if(_typeof2(opts)!=="object"){for(var _len3=arguments.length,rest=new Array(_len3>2?_len3-2:0),_key3=2;_key3<_len3;_key3++){rest[_key3-2]=arguments[_key3];}options=_this3.options.overloadTranslationOptionHandler([key,opts].concat(rest));}else{options=__spreadValues({},opts);}options.lng=options.lng||_fixedT.lng;options.lngs=options.lngs||_fixedT.lngs;options.ns=options.ns||_fixedT.ns;if(options.keyPrefix!=="")options.keyPrefix=options.keyPrefix||keyPrefix||_fixedT.keyPrefix;var keySeparator=_this3.options.keySeparator||".";var resultKey;if(options.keyPrefix&&Array.isArray(key)){resultKey=key.map(function(k){return"".concat(options.keyPrefix).concat(keySeparator).concat(k);});}else{resultKey=options.keyPrefix?"".concat(options.keyPrefix).concat(keySeparator).concat(key):key;}return _this3.t(resultKey,options);};if(isString(lng)){_fixedT.lng=lng;}else{_fixedT.lngs=lng;}_fixedT.ns=ns;_fixedT.keyPrefix=keyPrefix;return _fixedT;}},{key:"t",value:function t(){var _this$translator;return this.translator&&(_this$translator=this.translator).translate.apply(_this$translator,arguments);}},{key:"exists",value:function exists(){var _this$translator2;return this.translator&&(_this$translator2=this.translator).exists.apply(_this$translator2,arguments);}},{key:"setDefaultNamespace",value:function setDefaultNamespace(ns){this.options.defaultNS=ns;}},{key:"hasLoadedNamespace",value:function hasLoadedNamespace(ns){var _this33=this;var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized){this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages);return false;}if(!this.languages||!this.languages.length){this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages);return false;}var lng=options.lng||this.resolvedLanguage||this.languages[0];var fallbackLng=this.options?this.options.fallbackLng:false;var lastLng=this.languages[this.languages.length-1];if(lng.toLowerCase()==="cimode")return true;var loadNotPending=function loadNotPending(l,n){var loadState=_this33.services.backendConnector.state["".concat(l,"|").concat(n)];return loadState===-1||loadState===0||loadState===2;};if(options.precheck){var preResult=options.precheck(this,loadNotPending);if(preResult!==void 0)return preResult;}if(this.hasResourceBundle(lng,ns))return true;if(!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages)return true;if(loadNotPending(lng,ns)&&(!fallbackLng||loadNotPending(lastLng,ns)))return true;return false;}},{key:"loadNamespaces",value:function loadNamespaces(ns,callback){var _this34=this;var deferred=defer();if(!this.options.ns){if(callback)callback();return Promise.resolve();}if(isString(ns))ns=[ns];ns.forEach(function(n){if(_this34.options.ns.indexOf(n)<0)_this34.options.ns.push(n);});this.loadResources(function(err){deferred.resolve();if(callback)callback(err);});return deferred;}},{key:"loadLanguages",value:function loadLanguages(lngs,callback){var _this35=this;var deferred=defer();if(isString(lngs))lngs=[lngs];var preloaded=this.options.preload||[];var newLngs=lngs.filter(function(lng){return preloaded.indexOf(lng)<0&&_this35.services.languageUtils.isSupportedCode(lng);});if(!newLngs.length){if(callback)callback();return Promise.resolve();}this.options.preload=preloaded.concat(newLngs);this.loadResources(function(err){deferred.resolve();if(callback)callback(err);});return deferred;}},{key:"dir",value:function dir(lng){if(!lng)lng=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language);if(!lng)return"rtl";var rtlLngs=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"];var languageUtils=this.services&&this.services.languageUtils||new LanguageUtil(get$2());return rtlLngs.indexOf(languageUtils.getLanguagePartFromCode(lng))>-1||lng.toLowerCase().indexOf("-arab")>1?"rtl":"ltr";}},{key:"cloneInstance",value:function cloneInstance(){var _this36=this;var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var callback=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$2;var forkResourceStore=options.forkResourceStore;if(forkResourceStore)delete options.forkResourceStore;var mergedOptions=__spreadValues(__spreadValues(__spreadValues({},this.options),options),{isClone:true});var clone=new I18n(mergedOptions);if(options.debug!==void 0||options.prefix!==void 0){clone.logger=clone.logger.clone(options);}var membersToCopy=["store","services","language"];membersToCopy.forEach(function(m){clone[m]=_this36[m];});clone.services=__spreadValues({},this.services);clone.services.utils={hasLoadedNamespace:clone.hasLoadedNamespace.bind(clone)};if(forkResourceStore){clone.store=new ResourceStore(this.store.data,mergedOptions);clone.services.resourceStore=clone.store;}clone.translator=new Translator(clone.services,mergedOptions);clone.translator.on("*",function(event){for(var _len4=arguments.length,args=new Array(_len4>1?_len4-1:0),_key4=1;_key4<_len4;_key4++){args[_key4-1]=arguments[_key4];}clone.emit.apply(clone,[event].concat(args));});clone.init(mergedOptions,callback);clone.translator.options=mergedOptions;clone.translator.backendConnector.services.utils={hasLoadedNamespace:clone.hasLoadedNamespace.bind(clone)};return clone;}},{key:"toJSON",value:function toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage};}}],[{key:"createInstance",value:function createInstance(){var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var callback=arguments.length>1?arguments[1]:void 0;return new I18n(options,callback);}}]);}(EventEmitter);var instance=I18n.createInstance();instance.createInstance=I18n.createInstance;instance.createInstance;instance.dir;instance.init;instance.loadResources;instance.reloadResources;instance.use;instance.changeLanguage;instance.getFixedT;instance.t;instance.exists;instance.setDefaultNamespace;instance.hasLoadedNamespace;instance.loadNamespaces;instance.loadLanguages;var matchHtmlEntity=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;var htmlEntities={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"};var unescapeHtmlEntity=function unescapeHtmlEntity(m){return htmlEntities[m];};var unescape=function unescape(text2){return text2.replace(matchHtmlEntity,unescapeHtmlEntity);};var defaultOptions$1={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:true,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:true,unescape:unescape};var setDefaults=function setDefaults(){var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};defaultOptions$1=__spreadValues(__spreadValues({},defaultOptions$1),options);};var initReactI18next={type:"3rdParty",init:function init(instance2){setDefaults(instance2.options.react);}};var onChangeSelectField="\n Callback que se dispara cuando cambia el valor del input.\n \n #### Parámetros\n event: `React.ChangeEvent<HTMLInputElement>`\n - `event.target.name`: El nombre del input.\n - `event.target.value`: El valor actual del input, que debe cumplir con la siguiente interfaz:\n \n ```typescript\n interface SelectOption {\n label: string;\n value: string | number;\n [key: string]: any;\n }\n ```\n";var onInputChange="\n Callback que se ejecuta cuando escribimos algo en el buscador.\n \n #### Parámetros\n event: `React.ChangeEvent<HTMLInputElement>`\n - `event.target.name`: El nombre del input.\n - `event.target.value`: El valor actual del input\n";var onChangeSearcher="\n Callback que se ejecuta cuando seleccionamos una opcion del buscador.\n \n #### Parámetros\n event: `React.ChangeEvent<HTMLInputElement>`\n - `event.target.name`: El nombre del input.\n - `event.target.value`: El valor actual del input, que debe cumplir con la siguiente interfaz:\n \n ``` typescript\n interface SelectOption {\n label: string;\n value: string | number;\n [key: string]: any;\n }\n ```\n";var onChangeCheckboxInput='\n Callback que se dispara cuando cambia el valor del input.\n \n #### Parámetros\n event: `React.ChangeEvent<HTMLInputElement>`\n - `event.target.name`: El nombre del input.\n - `event.target.value`: Siempre es "on"\n';var onChangeInput="\n Callback que se dispara cuando cambia el valor del input.\n \n #### Parámetros\n event: `React.ChangeEvent<HTMLInputElement>`\n - `event.target.name`: El nombre del input.\n - `event.target.value`: El valor actual del input, que debe cumplir con la siguiente interfaz:\n \n ``` typescript\n value: string | number; \n ```\n";var isOptionDisabled2=" \n Funcion que recibe un valor de tipo SelectOption y deberia devolver un valor booleano\n Si la opción tiene definida un tooltipMessage se va a mostrar al hacer hover.\n \n#### Ejemplo\n ``` typescript\n const isOptionDisabled = (option: SelectOption) => option.value === 2;\n ```\n \n #### Interfaz\n ```typescript\n interface SelectOption {\n label: string;\n value: string | number;\n tooltipMessage?: string;\n [key: string]: any;\n }\n ```\n";var selectFieldDescription='\n #### Ejemplo de uso \n ```typescript\n <SelectField\n name="productId"\n options={[{ label: "1", value: 1 }, { label: "2", value: 2, tooltipMessage: "Este valor no es representativo" }]}\n onChange={(event) => handleChange(event.target.name, event.target.value)}\n isMultiple\n isClearable={false}\n label={localize(\'product\')}\n isOptionDisabled={(option) => option.value == 2}\n rightModifier={shouldShowLoader && <Spinner />}\n />\n ```\n';var formFieldExample='\n #### Ejemplo de uso\n \n ``` typescript\n <FormField\n label="Título"\n name="textInput"\n onChange={(event) => handleChange(event.target.name, event.target.value)}\n placeholder="Placeholder"\n size="md"\n type="text"\n isValid={(inputValue) => _.isNumber(inputValue)}\n />\n ```\n';var isValidInput="\n Funcion que recibe un valor de tipo inputValue y deberia devolver un valor booleano.\n \n #### Por ejemplo: (inputValue) => _.isNumber(inputValue)\n \n ``` typescript\n type inputValue = string | number; \n ```\n";var checkboxInputGroupExample="\n #### Ejemplo de uso\n \n ``` typescript\n <CheckboxInput\n items={[\n {\n id: '1',\n label: 'Opci\xF3n 1'\n },\n {\n id: '2',\n label: 'Opci\xF3n 2'\n },\n {\n disabled: true,\n id: '3',\n label: 'Opci\xF3n 3'\n }\n ]}\n name=\"CheckboxList\"\n onChange={(event) => handleChange(event.target.name, event.target.value)}\n size=\"lg\"\n title=\"Selecciona una opci\xF3n\"\n type=\"checkbox\"\n />\n ```\n";var checkboxInputExample=' \n Versión con una sola opción tipo checkbox y un label personalizado:\n \n ```typescript\n const [checked, setChecked] = React.useState(false)\n <CheckboxInput\n name="Toggle"\n checked={checked}\n onChange={setChecked}\n label={"Amazon"}\n title={locale(\'syncStockFromChannel\')}\n />\n ```\n';var searcherExample=' \n Note la diferencia entre onChange y onInputChange (oficia de onSearch):\n \n ```typescript\n <Searcher\n label="Search label"\n name="Searcher"\n onChange={(event) => onSelectOption(event.target.value)}\n onInputChange={(event) => handleSearch(event.target.value)}\n options={[{ label: \'text\', value: 1 }]}\n />\n ```\n';var saveBarExample="\n #### Uso básico\n ```typescript\n <SaveBar\n saveProps={{\n onSave: () => handleSave(),\n label: 'Save'\n }}\n cancelProps={{\n onCancel: () => handleCancel(),\n label: 'Cancel'\n }}\n />\n ```\n #### Con botón de navegación\n ```typescript\n <SaveBar\n saveProps={{\n onSave: () => handleSave(),\n label: 'Save',\n variant: 'primary'\n }}\n cancelProps={{\n onCancel: () => handleCancel(),\n label: 'Cancel'\n }}\n previousProps={{\n onPrevious: () => handlePrevious(),\n label: 'Previous'\n }}\n />\n ```\n #### Ejemplo completo\n ```typescript\n <SaveBar\n saveProps={{\n onSave: () => handleSave(),\n label: 'Guardar cambios',\n variant: 'success',\n disabled: false,\n onClick: () => {},\n }}\n cancelProps={{\n onCancel: () => handleCancel(),\n label: 'Descartar',\n }}\n previousProps={{\n onPrevious: () => handlePrevious(),\n label: 'Anterior',\n variant: 'primary',\n outline: true,\n disabled: false,\n onClick: () => console.log('Previous clicked'),\n }}\n />\n ```\n";var checkboxInputReduxFormExample="\n #### Ejemplo de uso con Redux Form - CheckboxInput\n \n ```typescript\n <Field\n name=\"salesSync\"\n component={CheckboxInput}\n classComponent={'decrease-stock'}\n props={{\n name: 'cancelSales',\n value: this.salesSync().cancelSales,\n checked: this.salesSync().cancelSales,\n label: this.context.localize('settings.cancelSales')\n }}\n />\n ```\n";var breadcrumbItemFormat="\n ## Formato de BreadcrumbItem\n\n El componente Breadcrumb acepta un array de objetos `BreadcrumbItem` con las siguientes propiedades:\n\n ### Propiedades disponibles:\n\n - **`text`** (string, requerido): El texto que se muestra para el item del breadcrumb\n - **`onClick`** (function, opcional): Función que se ejecuta al hacer click en el item\n - **`isActive`** (boolean, opcional): Indica si el item está activo. Por defecto, el último item se considera activo\n - **`href`** (string, opcional): URL del enlace (actualmente no implementado en el renderizado)\n\n ### Comportamiento:\n\n - Los items con `onClick` se renderizan como botones clickeables\n - Los items sin `onClick` se renderizan como texto estático\n - El último item siempre se considera activo (a menos que se especifique `isActive: true` en otro item)\n - Cada item se separa automáticamente con el símbolo \">\"\n\n ### Ejemplo de uso:\n\n ```tsx\n const breadcrumbItems = [\n { text: 'Dashboard' },\n { text: 'Productos', onClick: () => navigate('/products') },\n { text: 'Detalles', isActive: true }\n ]\n\n <Breadcrumb items={breadcrumbItems} />\n ```\n";var menuItems="Lista de ítems que se mostrarán en el menú.\n \n**Tipo:** `MenuActionItem[]`\n\n```ts\ninterface MenuActionItem {\n label: React.ReactNode\n icon?: React.ReactElement\n onClick?: () => void\n selected?: boolean\n disabled?: boolean\n}\n```\n";var es$2={noResultsFound:"No se encontraron resultados",reloadPage:"Recargar página",selectPlaceholder:"Seleccionar...",selectOption:"Selecciona una opción",noOptionsMessage:"No hay opciones",noFoundOptions:"No se encontraron resultados",selectedPlural:"Seleccionados",selected:"Seleccionado",title:"Título",password:"Contraseña",selectRequiredText:"Campo obligatorio",exportedIcon:"Icono exportado de Material UI",syncStockFromChannel:'Selecciona qué sincronizar desde "canal"',loremIpsum:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",add:"Agregar",previous:"Anterior",continue:"Continuar",cancel:"Cancelar",save:"Guardar",guide:"Guía",size:"Tamaño",hideSelectedOptionsExplainText:"Oculta la opción seleccionada del menu. Solo puede modificarse si es selección simple",switchInput:{options:"Opciones",option:"Opción",large:"Large Switch",medium:"Medium Switch",small:"Small Switch (Default)"},tooltip:{hoverToSee:"Hover sobre mí para ver el tooltip",basicContent:"Este es el contenido del tooltip",showTooltipWhenHoverButton:"Muestra un tooltip al hacer hover sobre un botón.",showTooltipWhenDisabled:"Solo se muestra cuando el botón está deshabilitado",showTooltipWhenDisabledDescription:"Muestra el tooltip únicamente para un botón deshabilitado.",basicDescription:"Componente de tooltip básico que siempre muestra el tooltip al hacer hover.",overflowDescription:"Componente que detecta automáticamente cuando el contenido se desborda y muestra un tooltip solo cuando es necesario.",componentDescription:"Componentes de tooltip que detectan automáticamente cuando el contenido se desborda y muestran un tooltip. Incluye soporte para maxWidth personalizable.",maxWidthDescription:"Ancho máximo del tooltip (px, %, em, etc.). Por defecto: 600px",clickToSee:"Haz clic para ver el tooltip",clickableTitle:"Título del tooltip",clickableDescription:"Ejemplo de tooltip clickeable con contenido complejo incluyendo título y lista con enlaces.",bulletPoint:"Bullet: Lorem ipsum dolor sit.",linkText:"Link"},description:{checkboxInputReduxFormExample:checkboxInputReduxFormExample,onChangeSelectField:onChangeSelectField,onInputChange:onInputChange,onChangeSearcher:onChangeSearcher,onChangeCheckboxInput:onChangeCheckboxInput,onChangeInput:onChangeInput,isOptionDisabled:isOptionDisabled2,reduxForm:{input:"Prop de Redux Form. Cuando uses Redux Form, pasa el prop input desde el componente Field."},selectField:{example:selectFieldDescription,defaultValue:"Esta opción debe ser del tipo (string | number)[] Ej: 2 | [2] | [1,2] donde value = 2",disabled:"Campo deshabilitado",disabledOptions:"Opciones deshabilitadas",noOptions:"Sin opciones disponibles",withIcon:"Select con Icono",fullWidth:"SelectField con tamaño fullwidth que ocupa el 100% del ancho disponible.",labelFullWidth:"Select de ancho completo",getOptionLabel:"Resuelve el label de la opcion a un string. Ejemplo: (option) => localize(option.label)",getOptionValue:"Resuelve el value de una opcion. Ejemplo: (option) => option.id"},actionBar:{example:saveBarExample,saveButton:"Botón de guardar",cancelButton:"Botón de cancelar",previousButton:"Botón de anterior",saveButtonProps:"Props para el botón de guardar",cancelButtonProps:"Props para el botón de cancelar",previousButtonProps:"Props para el botón de anterior",withoutBorder:"Elimina el redondeado de la ActionBar",saveChanges:"Guardar cambios",discard:"Descartar",confirm:"Confirmar",verifySaveButtonOnly:"Verificar que solo se renderiza el botón de guardar",verifyInitialRendering:"Verificar renderizado inicial",clickSaveButton:"Hacer clic en botón guardar",clickCancelButton:"Hacer clic en botón cancelar",clickPreviousButton:"Hacer clic en botón anterior",clickSaveButtonOnly:"Hacer clic en el botón de guardar"},formField:{example:formFieldExample,isValid:isValidInput},checkboxInput:{example:checkboxInputExample,checkboxInputExample:checkboxInputExample,checkboxInputGroupExample:checkboxInputGroupExample},switchInput:{example:"Example of a single switch component."},icons:{size:"Tamaño del ícono en píxeles"},searcher:{example:searcherExample,exampleOption:"Ejemplo de búsqueda",searchPlaceholder:"Escribí para buscar...",searchLabel:"Buscar opción",noResults:"No se encontraron resultados",writeToSearch:"Escribí para buscar",clearOnSelectDescription:"Limpia el texto del input después de seleccionar una opción",clearOnSelectStoryDescription:"Ejemplo que muestra cómo se borra el texto de entrada después de seleccionar una opción cuando clearOnSelect está habilitado",isLoading:'Indica si el componente está en estado de carga. Se muestra un spinner en el mensaje de "no opciones".',loadOptions:"Función para cargar opciones de forma asíncrona",cacheOptions:"Determina si las opciones se cachean para mejor rendimiento",defaultOptions:"Opciones que se muestran por defecto al abrir el dropdown",apiSimulationDescription:"Ejemplo avanzado de Searcher con loadOptions usando una API real (JSONPlaceholder). Demuestra carga asíncrona, cache, opciones por defecto y manejo de errores.",apiSimulationLabel:"Buscar posts (API real)"},breadcrumb:{itemFormat:breadcrumbItemFormat},alert:{message:"Mensaje de éxito, este contenedor se ajusta al contenido, con un ancho máx de 1140 px",infoMessage:"Mensaje de información, este componente se ajusta al ancho del contenedor full width.",dontShowAgain:"No volver a mostrar este mensaje.",customAlert:"Alerta con ícono personalizado"}},headerSection:{edit:"Editar",duplicate:"Duplicate",delete:"Eliminar"},error:{required:"Este campo es obligatorio",notValid:"El valor ingresado es inválido",requiredDescription:"SelectField que muestra un error de campo obligatorio cuando está marcado como requerido y no tiene valor seleccionado."},copyButton:{copy:"Copiar",copied:"Copiado",textToCopy:"Este texto se copiará automáticamente",textCopied:"Este es el texto que se copiará",copyKey:"Copiar clave",copiedKey:"Clave copiada",custom:"Funcion Custom",running:"Corriendo...",alert:"Función personalizada ejecutada!"},linkWithIcon:{historyChange:"Historial de cambios",edit:"Editar",customAction:"Acción personalizada"},breadcrumb:{historyChanges:"Historial de cambios",products:"Productos",dashboard:"Dashboard",categories:"Categorías",electronics:"Electrónicos",details:"Detalles",page1:"Página 1",page2:"Página 2",page3:"Página 3",home:"Inicio"},datePicker:{name:"Nombre del campo",value:"Valor del campo",size:"Tamaño del componente",disabled:"Deshabilita el componente",required:"Marca el campo como requerido",noErrors:"Oculta los mensajes de error",placeholder:"Texto placeholder",label:"Label que se muestra arriba del input",format:"Formato de fecha que determina automáticamente el tipo de picker: YYYY (años), HH:mm (horas), DD/MM/YYYY (fecha), DD/MM/YYYY HH:mm (fecha y hora)",minDate:"Fecha mínima permitida",maxDate:"Fecha máxima permitida",rightAdornment:"Elemento que se muestra a la derecha del input",meta:"Metadatos para validación (error, touched, etc.)",isValid:"Función para validación personalizada",input:"Input object para integración con Redux Form",onChange:"Callback cuando cambia la fecha",selectDate:"Seleccionar fecha",dateLabel:"Fecha",selectADate:"Selecciona una fecha",requiredDate:"Fecha Requerida",requiredField:"Campo obligatorio",dateAndTime:"Fecha y Hora",dateWithLimits:"Fecha con Límites",onlyFutureDates:"Solo fechas futuras",customFormat:"Formato Personalizado",yearSelector:"Selector de Año",timeSelector:"Selector de Hora",timeSelectorWithSeconds:"Selector de Hora con Segundos",dateTimeSelector:"Selector de Fecha y Hora",selectYear:"Seleccionar año",selectTime:"Seleccionar hora",selectDateTime:"Seleccionar fecha y hora"},dateRangePicker:{size:"Tamaño del componente",disabled:"Deshabilita el componente",required:"Marca el campo como requerido",noErrors:"Oculta los mensajes de error",placeholder:"Texto placeholder",label:"Label que se muestra arriba del input",format:"Formato de fecha (por defecto DD/MM/YYYY)",minDate:"Fecha mínima permitida",maxDate:"Fecha máxima permitida",onChange:"Callback cuando cambia el rango de fechas",selectDateRange:"Seleccionar rango de fechas",dateRangeLabel:"Rango de fechas",disabledRange:"Rango deshabilitado",disabledComponent:"Componente deshabilitado",rangeWithMinMax:"Rango con min/max y deshabilitado",restrictedRange:"Rango restringido y deshabilitado",disabledWithRestrictions:"Story que demuestra la combinación de minDate, maxDate y disabled. El componente está deshabilitado pero también tiene restricciones de fechas.",completelyDisabled:"Story que demuestra el componente completamente deshabilitado usando la propiedad disabled como boolean."},chip:{text:"Texto",title:"Título",onRemove:"Función que se ejecuta al hacer clic en el ícono de cerrar",disabled:"Deshabilita el chip y oculta el ícono de cerrar",variant:"Variante visual del chip que cambia el color de fondo (default, success, error, warning, info)",size:"Tamaño del chip (sm: pequeño, lg: grande, undefined: tamaño por defecto)"},warningModal:{warning:"¡Atención!",dontShowAgain:"No volver a mostrar este mensaje"},tab:{tab1:"Pestaña 1",tab2:"Pestaña 2",tab3:"Pestaña 3"},menuAction:{edit:"Editar",delete:"Eliminar",duplicate:"Duplicar",itemsDescription:menuItems,id:"Identificador único opcional para el menú.\n\n**Tipo:** `string`",maxItems:"Número máximo de ítems visibles antes de mostrar un colapsado",icon:"Ícono opcional que acompaña al menú"},dropdown:{label:"Texto que se muestra en el botón del dropdown",variant:"Variante del botón",color:"Color del botón",disabled:"Si el dropdown está deshabilitado",onItemSelect:"Callback que se ejecuta cuando se selecciona un item",onToggle:"Callback que se ejecuta cuando se abre/cierra el dropdown",options:"Opciones",edit:"Editar",duplicate:"Duplicar",archive:"Archivar",more:"Más opciones",delete:"Eliminar",share:"Compartir",divider:"Divider",size:"Tamaño del botón"},sidebar:{monitoringCenter:"Centro de monitoreo",history:"Historial de cambios",integrations:"Integraciones",deposits:"Depositos y listas de precios",active:"Item Activo",alerts:"Alertas",moreOptions:"Mas opciones",itemsDescription:"Array de items { label, isActive, icon, onClick } para renderizar el sidebar",itemsSummary:"{ label: string; isActive?: Boolean; icon?: ReactNode; onClick?: () => void;}[]"}};var resources={en:{translation:{}},es:{translation:es$2}};instance.use(initReactI18next).init({resources:resources,lng:"es",interpolation:{escapeValue:false},debug:true});var locale=instance.t;var lg$8="selectField-module_lg_adYzi";var body$1="selectField-module_body_KiYeH";var md$6="selectField-module_md_sCCe1";var fullwidth$1="selectField-module_fullwidth_c4Kqo";var styles$l={"producteca-select-field-container":"selectField-module_producteca-select-field-container_wnPdM","producteca-select-field--is-required":"selectField-module_producteca-select-field--is-required_0f07A","producteca-select-field--with-modifier":"selectField-module_producteca-select-field--with-modifier_GN3AL","producteca-select-field-body":"selectField-module_producteca-select-field-body_-gy8S",lg:lg$8,body:body$1,"searcher-body":"selectField-module_searcher-body_8Hpy2",md:md$6,fullwidth:fullwidth$1,"producteca-select-field__is-clearable":"selectField-module_producteca-select-field__is-clearable_FzZz2","producteca-select-field__search-icon":"selectField-module_producteca-select-field__search-icon_rGbiw","producteca-select-field__is-multiple":"selectField-module_producteca-select-field__is-multiple_G71xD","producteca-select-field--is-clearable":"selectField-module_producteca-select-field--is-clearable_GZGnL","producteca-select-field--is-searchable":"selectField-module_producteca-select-field--is-searchable_YTkm-","producteca-select-field--on-error":"selectField-module_producteca-select-field--on-error_rNJN3","producteca-select-field__input-multiple":"selectField-module_producteca-select-field__input-multiple_K0bLb","option-with-tooltip":"selectField-module_option-with-tooltip_etqky"};var AutoStoriesIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"m19 1-5 5v11l5-4.5zM1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5V6c-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6m22 13.5V6c-.6-.45-1.25-.75-2-1v13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5v2c1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5z"}),"AutoStories");var CalendarTodayIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday");var Cancel=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel");var Check=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var CheckCircle=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle");var ClearRounded=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"}),"ClearRounded");var ContentCopy=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");var ErrorIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error");var Info=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info");var InsertPhotoRoundedIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.9 13.98l2.1 2.53 3.1-3.99c.2-.26.6-.26.8.01l3.51 4.68c.25.33.01.8-.4.8H6.02c-.42 0-.65-.48-.39-.81L8.12 14c.19-.26.57-.27.78-.02"}),"InsertPhotoRounded");var KeyboardArrowDownIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");var MoreVertIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert");var NavigateBeforeRoundedIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M14.91 6.71a.996.996 0 0 0-1.41 0L8.91 11.3c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L11.03 12l3.88-3.88c.38-.39.38-1.03 0-1.41"}),"NavigateBeforeRounded");var NavigateNextRoundedIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M9.31 6.71c-.39.39-.39 1.02 0 1.41L13.19 12l-3.88 3.88c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41L10.72 6.7c-.38-.38-1.02-.38-1.41.01"}),"NavigateNextRounded");var SearchRounded=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M15.5 14h-.79l-.28-.27c1.2-1.4 1.82-3.31 1.48-5.34-.47-2.78-2.79-5-5.59-5.34-4.23-.52-7.79 3.04-7.27 7.27.34 2.8 2.56 5.12 5.34 5.59 2.03.34 3.94-.28 5.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0s.41-1.08 0-1.49zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"SearchRounded");var Visibility=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");var VisibilityOff=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");function useReduxFormField(_ref3){var input=_ref3.input,onChange2=_ref3.onChange,onBlur=_ref3.onBlur,_ref$transformValue=_ref3.transformValue,transformValue=_ref$transformValue===void 0?function(value){return value;}:_ref$transformValue;var handleChange=function handleChange2(event){if(input){var transformedValue=transformValue(event,event);input.onChange(transformedValue);}else if(onChange2){onChange2(event);}};var handleBlur=function handleBlur2(){if(input){input.onBlur();}onBlur===null||onBlur===void 0||onBlur();};return{handleChange:handleChange,handleBlur:handleBlur};}var useOptionTooltip=function useOptionTooltip2(label2,isDisabled,tooltipMessage){var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),showTooltip=_useState2[0],setShowTooltip=_useState2[1];var _useState3=useState({top:0,left:0}),_useState4=_slicedToArray$1(_useState3,2),tooltipPosition=_useState4[0],setTooltipPosition=_useState4[1];var optionRef=useRef(null);var showDisabledTooltip=isDisabled&&!!tooltipMessage;var _updateTooltipPosition=useCallback(function(){if(optionRef.current&&showTooltip){var rect=optionRef.current.getBoundingClientRect();var centerY=rect.top+rect.height/2;setTooltipPosition({top:centerY,left:rect.right+5});}},[showTooltip]);var _handleMouseEnter=useCallback(function(){if(optionRef.current){var hasOverflow=optionRef.current.scrollWidth>optionRef.current.offsetWidth;var shouldShowTooltip=showDisabledTooltip||hasOverflow;if(shouldShowTooltip){setShowTooltip(true);setTimeout(function(){_updateTooltipPosition();},0);}}},[showDisabledTooltip,_updateTooltipPosition]);var _handleMouseLeave=useCallback(function(){setShowTooltip(false);},[]);useEffect(function(){var element=optionRef.current;if(element){element.addEventListener("mouseenter",_handleMouseEnter);element.addEventListener("mouseleave",_handleMouseLeave);return function(){element.removeEventListener("mouseenter",_handleMouseEnter);element.removeEventListener("mouseleave",_handleMouseLeave);};}},[_handleMouseEnter,_handleMouseLeave]);useEffect(function(){if(showTooltip){_updateTooltipPosition();window.addEventListener("scroll",_updateTooltipPosition,true);return function(){return window.removeEventListener("scroll",_updateTooltipPosition,true);};}},[showTooltip,_updateTooltipPosition]);return{showTooltip:showTooltip,tooltipPosition:tooltipPosition,optionRef:optionRef,showDisabledTooltip:showDisabledTooltip};};var hasError=function hasError2(props){var value=props.value,isValid2=props.isValid,required=props.required,_props$meta=props.meta,_props$meta2=_props$meta===void 0?{}:_props$meta,touched=_props$meta2.touched,error2=_props$meta2.error;var hasError22=isValid2&&!isValid2(value)||touched&&error2;return!!(required&&!value)||!!hasError22;};var hasWarning=function hasWarning2(props){var _props$meta3=props.meta,_props$meta4=_props$meta3===void 0?{}:_props$meta3,touched=_props$meta4.touched,warning2=_props$meta4.warning;return!!touched&&!!warning2;};var formValidation=function formValidation2(props){if(hasWarning(props))return"warning";if(hasError(props))return"error";return null;};var warning$1="errorMessage-module_warning_bXIaf";var message$2="errorMessage-module_message_5zSab";var error$2="errorMessage-module_error_QgQKc";var errorStyles={warning:warning$1,"Mui-focused":"errorMessage-module_Mui-focused_JfmdQ",message:message$2,error:error$2};var ErrorMessage=function ErrorMessage2(_ref3){var validationProps=_ref3.validationProps;var meta=validationProps.meta;var _ref22=meta||{},error2=_ref22.error,warning2=_ref22.warning;var messageClass=clsx(errorStyles.message,_defineProperty$1(_defineProperty$1({},errorStyles.error,hasError(validationProps)),errorStyles.warning,hasWarning(validationProps)));return/* @__PURE__ */jsxs("div",{className:messageClass,children:[hasError(validationProps)&&(error2===null||error2===void 0?void 0:error2.locale),hasWarning(validationProps)&&(warning2===null||warning2===void 0?void 0:warning2.locale)]});};var Option$1=function Option2(props){var _useOptionTooltip=useOptionTooltip(props.label,props.isDisabled,props.data.tooltipMessage),showTooltip=_useOptionTooltip.showTooltip,tooltipPosition=_useOptionTooltip.tooltipPosition,optionRef=_useOptionTooltip.optionRef,showDisabledTooltip=_useOptionTooltip.showDisabledTooltip;var tooltipMessage=showDisabledTooltip?props.data.tooltipMessage:props.label;var hasFormatOption=_.isFunction(props.formatOption);return/* @__PURE__ */jsx$1("div",{className:styles$l[showTooltip?"option-with-tooltip":""],"data-tooltip":tooltipMessage,style:showTooltip?{"--tooltip-top":"".concat(tooltipPosition.top,"px"),"--tooltip-left":"".concat(tooltipPosition.left,"px")}:void 0,children:/* @__PURE__ */jsx$1(components$1.Option,_objectSpread2$1(_objectSpread2$1({},props),{},{children:/* @__PURE__ */jsxs("div",{className:clsx(styles$l[props.isDisabled?"disabled":""],styles$l[props.isMulti?"producteca-select-field__input-multiple":""]),children:[props.isMulti&&/* @__PURE__ */jsx$1("input",{type:"checkbox",checked:props.isSelected,onChange:_.identity}),hasFormatOption?/* @__PURE__ */jsx$1("div",{ref:optionRef,children:props.formatOption(props.data)}):/* @__PURE__ */jsx$1("label",{ref:optionRef,children:props.label})]})}))});};var MultiValue2=function MultiValue3(props){return/* @__PURE__ */jsx$1(components$1.MultiValue,_objectSpread2$1(_objectSpread2$1({},props),{},{children:props.formatOption?props.formatOption(props.data):/* @__PURE__ */jsx$1("span",{children:props.data.label})}));};var SingleValue2=function SingleValue3(props){return/* @__PURE__ */jsx$1(components$1.SingleValue,_objectSpread2$1(_objectSpread2$1({},props),{},{children:props.getOptionLabel?props.getOptionLabel(props.data):/* @__PURE__ */jsx$1("span",{children:props.data.label})}));};var SearchComponent=function SearchComponent2(){return/* @__PURE__ */jsx$1("div",{className:styles$l["producteca-select-field__search-icon"],children:/* @__PURE__ */jsx$1(CustomIcon,{children:/* @__PURE__ */jsx$1(SearchRounded,{})})});};var MultipleTextComponent=function MultipleTextComponent2(_ref3){var _ref$optionSelected=_ref3.optionSelected,optionSelected=_ref$optionSelected===void 0?null:_ref$optionSelected;var isArrayWithSome=optionSelected&&_.isArray(optionSelected)&&optionSelected.length>0;var text2=optionSelected&&_.isArray(optionSelected)&&optionSelected.length===1?locale("selected"):locale("selectedPlural");return isArrayWithSome?/* @__PURE__ */jsx$1("div",{className:styles$l["producteca-select-field__is-multiple"],children:/* @__PURE__ */jsxs("span",{children:[optionSelected.length," ",text2]})}):null;};var ClearComponent=function ClearComponent2(_ref22){var optionSelected=_ref22.optionSelected,isClearable=_ref22.isClearable,handleChange=_ref22.handleChange;var isArrayWithSome=optionSelected&&_.isArray(optionSelected)&&optionSelected.length>0;var hasSelectedValue=!_.isArray(optionSelected)&&optionSelected&&"value"in optionSelected&&optionSelected.value;return isClearable&&(isArrayWithSome||hasSelectedValue)?/* @__PURE__ */jsx$1("a",{className:styles$l["producteca-select-field__is-clearable"],onClick:function onClick(){return handleChange(null);},children:/* @__PURE__ */jsx$1(CustomIcon,{children:/* @__PURE__ */jsx$1(ClearRounded,{})})}):null;};var SelectField=function SelectField2(props){var _input$value;var name=props.name,label2=props.label,_props$placeholder=props.placeholder,placeholder=_props$placeholder===void 0?locale("selectPlaceholder"):_props$placeholder,_props$noOptionsMessa=props.noOptionsMessage,_noOptionsMessage=_props$noOptionsMessa===void 0?locale("noFoundOptions"):_props$noOptionsMessa,options=props.options,_props$size=props.size,size2=_props$size===void 0?"md":_props$size,_props$hideSelectedOp=props.hideSelectedOptions,hideSelectedOptions=_props$hideSelectedOp===void 0?true:_props$hideSelectedOp,_props$isMultiple=props.isMultiple,isMultiple=_props$isMultiple===void 0?false:_props$isMultiple,_props$isSearchable=props.isSearchable,isSearchable=_props$isSearchable===void 0?true:_props$isSearchable,_props$isClearable=props.isClearable,isClearable=_props$isClearable===void 0?true:_props$isClearable,required=props.required,disabled2=props.disabled,rightModifier=props.rightModifier,isOptionDisabled3=props.isOptionDisabled,_onChange=props.onChange,defaultValue=props.defaultValue,input=props.input,propsOnBlur=props.onBlur,meta=props.meta,isValid2=props.isValid,_props$noErrors=props.noErrors,noErrors=_props$noErrors===void 0?false:_props$noErrors,formatOption=props.formatOption,getOptionLabel4=props.getOptionLabel,getOptionValue4=props.getOptionValue;var value=(_input$value=input===null||input===void 0?void 0:input.value)!==null&&_input$value!==void 0?_input$value:props.value;var defaultOption=_.filter(options,function(_ref3){var optionValue=_ref3.value;return _.includes(value,optionValue);});var _useState=useState(defaultOption||null),_useState2=_slicedToArray$1(_useState,2),optionSelected=_useState2[0],setOptionSelected=_useState2[1];var validationProps={meta:meta,value:value,isValid:isValid2,required:required};var validated=formValidation(validationProps);var _useReduxFormField=useReduxFormField({input:input,onChange:function onChange2(selected2){var selectedValue=isMultiple?_.map(selected2,function(opt){return opt.value;}):selected2===null||selected2===void 0?void 0:selected2.value;if(!input){var fakeEvent={target:{name:name,value:selectedValue}};_onChange===null||_onChange===void 0||_onChange(fakeEvent);}return selectedValue;},onBlur:propsOnBlur,transformValue:function transformValue(selected2){var selectedValue=isMultiple?_.map(selected2,function(opt){return opt.value;}):selected2===null||selected2===void 0?void 0:selected2.value;return selectedValue;}}),fieldHandleChange=_useReduxFormField.handleChange,handleBlur=_useReduxFormField.handleBlur;var handleChange=function handleChange2(selected2){fieldHandleChange(selected2);setOptionSelected(selected2);};useEffect(function(){if(defaultValue&&options.length>0){var val=_.isArray(defaultValue)?defaultValue:[defaultValue];var matchingOptions=_.filter(options,function(_ref4){var value2=_ref4.value;return _.includes(val,value2);});setOptionSelected(isMultiple?matchingOptions:matchingOptions[0]||null);}},[defaultValue,options]);var OptionWithFormat=function OptionWithFormat2(optionProps){return/* @__PURE__ */jsx$1(Option$1,_objectSpread2$1(_objectSpread2$1({},optionProps),{},{formatOption:formatOption}));};var SingleValueWithFormat=function SingleValueWithFormat2(singleValueProps){return/* @__PURE__ */jsx$1(SingleValue2,_objectSpread2$1(_objectSpread2$1({},singleValueProps),{},{getOptionLabel:getOptionLabel4}));};var MultiValueWithFormat=function MultiValueWithFormat2(multiValueProps){return/* @__PURE__ */jsx$1(MultiValue2,_objectSpread2$1(_objectSpread2$1({},multiValueProps),{},{formatOption:formatOption}));};var optionComponent=isMultiple?{Option:OptionWithFormat,MultiValue:MultiValueWithFormat}:{Option:OptionWithFormat,SingleValue:SingleValueWithFormat};return/* @__PURE__ */jsxs("div",{className:clsx(styles$l["producteca-select-field-container"],_defineProperty$1({},errorStyles[validated],validated)),"data-testid":"producteca-select-field-container",children:[label2&&/* @__PURE__ */jsx$1("label",{htmlFor:name,children:label2}),/* @__PURE__ */jsxs("div",{children:[/* @__PURE__ */jsxs("div",{className:clsx(styles$l[size2],styles$l["producteca-select-field-body"],_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1({},styles$l["producteca-select-field--on-error"],validated),styles$l["producteca-select-field--with-modifier"],rightModifier),styles$l["producteca-select-field--is-searchable"],isSearchable&&!isMultiple),styles$l["producteca-select-field--is-clearable"],isClearable)),children:[/* @__PURE__ */jsxs("div",{className:styles$l["body"],children:[isMultiple&&/* @__PURE__ */jsx$1(MultipleTextComponent,{optionSelected:optionSelected}),isSearchable&&!isMultiple&&/* @__PURE__ */jsx$1(SearchComponent,{}),/* @__PURE__ */jsx$1(StateManagedSelect$1,_objectSpread2$1(_objectSpread2$1({},props),{},{name:name,classNamePrefix:"producteca-select-field",placeholder:placeholder,isDisabled:disabled2,isMulti:isMultiple,closeMenuOnSelect:!isMultiple,hideSelectedOptions:hideSelectedOptions&&!isMultiple,isClearable:isClearable,isOptionDisabled:isOptionDisabled3,isSearchable:isSearchable&&!isMultiple,noOptionsMessage:function noOptionsMessage2(){return _noOptionsMessage;},getOptionValue:getOptionValue4,getOptionLabel:function getOptionLabel5(option){return option===null||option===void 0?void 0:option.label;},onChange:handleChange,onBlur:handleBlur,value:optionSelected,options:options,components:optionComponent,menuPortalTarget:document.body})),/* @__PURE__ */jsx$1(ClearComponent,{optionSelected:optionSelected,isClearable:isClearable,handleChange:handleChange})]}),!!rightModifier&&rightModifier]}),!noErrors&&/* @__PURE__ */jsx$1(ErrorMessage,{validationProps:validationProps})]})]});};var disabled$5="textInput-module_disabled_zmiie";var fullwidth="textInput-module_fullwidth_uG3VU";var lg$7="textInput-module_lg_rvzUN";var md$5="textInput-module_md_WTZlG";var sm$7="textInput-module_sm_3H7Tl";var title$6="textInput-module_title_Y61Pu";var styles$k={"form-field":"textInput-module_form-field_6ylpa","input-container":"textInput-module_input-container_YAHtg","right-modifier":"textInput-module_right-modifier_WqQCI","with-right-icon":"textInput-module_with-right-icon_K2CQ7","with-left-icon":"textInput-module_with-left-icon_WkTxr",disabled:disabled$5,"text-input-container":"textInput-module_text-input-container_ubBna","text-input":"textInput-module_text-input_9gGzW","right-icon":"textInput-module_right-icon_9Bh6D","left-icon":"textInput-module_left-icon_40v5M",fullwidth:fullwidth,lg:lg$7,md:md$5,sm:sm$7,title:title$6};var _excluded$$=["isValid","onChange","meta","value","noErrors","size","type","isClearable","max","min","leftIcon","rightIcon","input","inputRef","name"];var TextInput=function TextInput2(props){var _input$value;var isValid2=props.isValid,onChange2=props.onChange,meta=props.meta,_props$value=props.value,value=_props$value===void 0?"":_props$value,_props$noErrors=props.noErrors,noErrors=_props$noErrors===void 0?false:_props$noErrors,_props$size=props.size,size2=_props$size===void 0?"md":_props$size,_props$type=props.type,type=_props$type===void 0?"text":_props$type,isClearable=props.isClearable,max2=props.max,min2=props.min,leftIcon=props.leftIcon,rightIcon=props.rightIcon,input=props.input,inputRef=props.inputRef,name=props.name,otherProps=_objectWithoutProperties$1(props,_excluded$$);var inputValue=(_input$value=input===null||input===void 0?void 0:input.value)!==null&&_input$value!==void 0?_input$value:value;var _useState=useState(""),_useState2=_slicedToArray$1(_useState,2),currentValue=_useState2[0],setCurrentValue=_useState2[1];var validationProps={meta:meta,value:inputValue,isValid:isValid2,required:props.required};var validated=formValidation(validationProps);var numericLimits=type==="number"?{max:max2,min:min2}:{};useEffect(function(){setCurrentValue(inputValue);},[inputValue]);var _useReduxFormField=useReduxFormField({input:input,onChange:onChange2,transformValue:function transformValue(event){var value2=event.target.value;setCurrentValue(value2);return value2;}}),fieldHandleChange=_useReduxFormField.handleChange,handleBlur=_useReduxFormField.handleBlur;var handleChange=function handleChange2(event){fieldHandleChange(event);};var rightModifier=isClearable&&!rightIcon&¤tValue?/* @__PURE__ */jsx$1(CustomIcon,{"data-testid":"clear-icon",children:/* @__PURE__ */jsx$1(ClearRounded,{})}):rightIcon;var onClickRightModifier=isClearable&&!rightIcon?function(){return handleChange({target:{name:props.name,value:""}});}:_.identity;var isSmall=size2=="sm";return/* @__PURE__ */jsxs("div",{"data-testid":"text-input-container",className:clsx(styles$k[size2],styles$k["text-input-container"],validated?errorStyles[validated]:"",!!leftIcon&&!isSmall?styles$k["with-left-icon"]:"",!!rightModifier&&!isSmall?styles$k["with-right-icon"]:""),children:[!!leftIcon&&!isSmall&&/* @__PURE__ */jsx$1("div",{className:"".concat(styles$k["left-icon"]),children:leftIcon}),/* @__PURE__ */jsx$1("input",_objectSpread2$1(_objectSpread2$1({name:name,className:"text-input","data-testid":"text-input",value:currentValue?String(currentValue):"",type:type,onChange:handleChange,onBlur:handleBlur,ref:inputRef},numericLimits),otherProps)),!!rightModifier&&!isSmall&&/* @__PURE__ */jsx$1("div",{className:"".concat(styles$k["right-icon"]),onClick:onClickRightModifier,children:rightModifier}),!noErrors&&/* @__PURE__ */jsx$1(ErrorMessage,{validationProps:validationProps})]});};var PasswordInput=function PasswordInput2(props){var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),showPassword=_useState2[0],setShowPassword=_useState2[1];var type=showPassword?"text":"password";return/* @__PURE__ */jsx$1(TextInput,_objectSpread2$1(_objectSpread2$1({},props),{},{type:type,"data-testid":"password-input",rightIcon:/* @__PURE__ */jsx$1(VisibilityIcon,{showPassword:showPassword,setShowPassword:setShowPassword})}));};var VisibilityIcon=function VisibilityIcon2(_ref3){var showPassword=_ref3.showPassword,setShowPassword=_ref3.setShowPassword;return/* @__PURE__ */jsx$1("div",{"data-testid":"visibility-toggle",onClick:function onClick(){return setShowPassword(!showPassword);},children:showPassword?/* @__PURE__ */jsx$1(Visibility,{}):/* @__PURE__ */jsx$1(VisibilityOff,{})});};var areViewsEqual=function areViewsEqual(views,expectedViews){if(views.length!==expectedViews.length){return false;}return expectedViews.every(function(expectedView){return views.includes(expectedView);});};var applyDefaultViewProps=function applyDefaultViewProps(_ref299){var openTo=_ref299.openTo,defaultOpenTo=_ref299.defaultOpenTo,views=_ref299.views,defaultViews=_ref299.defaultViews;var viewsWithDefault=views!=null?views:defaultViews;var openToWithDefault;if(openTo!=null){openToWithDefault=openTo;}else if(viewsWithDefault.includes(defaultOpenTo)){openToWithDefault=defaultOpenTo;}else if(viewsWithDefault.length>0){openToWithDefault=viewsWithDefault[0];}else{throw new Error("MUI X: The `views` prop must contain at least one view.");}return{views:viewsWithDefault,openTo:openToWithDefault};};var mergeDateAndTime=function mergeDateAndTime(utils,dateParam,timeParam){var mergedDate=dateParam;mergedDate=utils.setHours(mergedDate,utils.getHours(timeParam));mergedDate=utils.setMinutes(mergedDate,utils.getMinutes(timeParam));mergedDate=utils.setSeconds(mergedDate,utils.getSeconds(timeParam));mergedDate=utils.setMilliseconds(mergedDate,utils.getMilliseconds(timeParam));return mergedDate;};var findClosestEnabledDate=function findClosestEnabledDate(_ref300){var date=_ref300.date,disableFuture=_ref300.disableFuture,disablePast=_ref300.disablePast,maxDate=_ref300.maxDate,minDate=_ref300.minDate,isDateDisabled=_ref300.isDateDisabled,utils=_ref300.utils,timezone=_ref300.timezone;var today=mergeDateAndTime(utils,utils.date(void 0,timezone),date);if(disablePast&&utils.isBefore(minDate,today)){minDate=today;}if(disableFuture&&utils.isAfter(maxDate,today)){maxDate=today;}var forward=date;var backward=date;if(utils.isBefore(date,minDate)){forward=minDate;backward=null;}if(utils.isAfter(date,maxDate)){if(backward){backward=maxDate;}forward=null;}while(forward||backward){if(forward&&utils.isAfter(forward,maxDate)){forward=null;}if(backward&&utils.isBefore(backward,minDate)){backward=null;}if(forward){if(!isDateDisabled(forward)){return forward;}forward=utils.addDays(forward,1);}if(backward){if(!isDateDisabled(backward)){return backward;}backward=utils.addDays(backward,-1);}}return null;};var replaceInvalidDateByNull=function replaceInvalidDateByNull(utils,value){return value==null||!utils.isValid(value)?null:value;};var applyDefaultDate=function applyDefaultDate(utils,value,defaultValue){if(value==null||!utils.isValid(value)){return defaultValue;}return value;};var areDatesEqual=function areDatesEqual(utils,a,b){if(!utils.isValid(a)&&a!=null&&!utils.isValid(b)&&b!=null){return true;}return utils.isEqual(a,b);};var getMonthsInYear=function getMonthsInYear(utils,year){var firstMonth=utils.startOfYear(year);var months2=[firstMonth];while(months2.length<12){var prevMonth=months2[months2.length-1];months2.push(utils.addMonths(prevMonth,1));}return months2;};var _getTodayDate=function getTodayDate(utils,timezone,valueType){return valueType==="date"?utils.startOfDay(utils.date(void 0,timezone)):utils.date(void 0,timezone);};var formatMeridiem=function formatMeridiem(utils,meridiem){var date=utils.setHours(utils.date(),meridiem==="am"?2:14);return utils.format(date,"meridiem");};var dateViews=["year","month","day"];var isDatePickerView=function isDatePickerView(view){return dateViews.includes(view);};var resolveDateFormat=function resolveDateFormat(utils,_ref301,isInToolbar){var format2=_ref301.format,views=_ref301.views;if(format2!=null){return format2;}var formats=utils.formats;if(areViewsEqual(views,["year"])){return formats.year;}if(areViewsEqual(views,["month"])){return formats.month;}if(areViewsEqual(views,["day"])){return formats.dayOfMonth;}if(areViewsEqual(views,["month","year"])){return"".concat(formats.month," ").concat(formats.year);}if(areViewsEqual(views,["day","month"])){return"".concat(formats.month," ").concat(formats.dayOfMonth);}if(isInToolbar){return /en/.test(utils.getCurrentLocaleCode())?formats.normalDateWithWeekday:formats.normalDate;}return formats.keyboardDate;};var getWeekdays$1=function getWeekdays$1(utils,date){var start2=utils.startOfWeek(date);return[0,1,2,3,4,5,6].map(function(diff){return utils.addDays(start2,diff);});};var timeViews=["hours","minutes","seconds"];var isTimeView=function isTimeView(view){return timeViews.includes(view);};var isInternalTimeView=function isInternalTimeView(view){return timeViews.includes(view)||view==="meridiem";};var getMeridiem=function getMeridiem(date,utils){if(!date){return null;}return utils.getHours(date)>=12?"pm":"am";};var convertValueToMeridiem=function convertValueToMeridiem(value,meridiem,ampm){if(ampm){var currentMeridiem=value>=12?"pm":"am";if(currentMeridiem!==meridiem){return meridiem==="am"?value-12:value+12;}}return value;};var convertToMeridiem=function convertToMeridiem(time,meridiem,ampm,utils){var newHoursAmount=convertValueToMeridiem(utils.getHours(time),meridiem,ampm);return utils.setHours(time,newHoursAmount);};var getSecondsInDay=function getSecondsInDay(date,utils){return utils.getHours(date)*3600+utils.getMinutes(date)*60+utils.getSeconds(date);};var createIsAfterIgnoreDatePart=function createIsAfterIgnoreDatePart(disableIgnoringDatePartForTimeValidation,utils){return function(dateLeft,dateRight){if(disableIgnoringDatePartForTimeValidation){return utils.isAfter(dateLeft,dateRight);}return getSecondsInDay(dateLeft,utils)>getSecondsInDay(dateRight,utils);};};var resolveTimeFormat=function resolveTimeFormat(utils,_ref302){var format2=_ref302.format,views=_ref302.views,ampm=_ref302.ampm;if(format2!=null){return format2;}var formats=utils.formats;if(areViewsEqual(views,["hours"])){return ampm?"".concat(formats.hours12h," ").concat(formats.meridiem):formats.hours24h;}if(areViewsEqual(views,["minutes"])){return formats.minutes;}if(areViewsEqual(views,["seconds"])){return formats.seconds;}if(areViewsEqual(views,["minutes","seconds"])){return"".concat(formats.minutes,":").concat(formats.seconds);}if(areViewsEqual(views,["hours","minutes","seconds"])){return ampm?"".concat(formats.hours12h,":").concat(formats.minutes,":").concat(formats.seconds," ").concat(formats.meridiem):"".concat(formats.hours24h,":").concat(formats.minutes,":").concat(formats.seconds);}return ampm?"".concat(formats.hours12h,":").concat(formats.minutes," ").concat(formats.meridiem):"".concat(formats.hours24h,":").concat(formats.minutes);};var SECTION_TYPE_GRANULARITY={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7};var getSectionTypeGranularity=function getSectionTypeGranularity(sections){return Math.max.apply(Math,_toConsumableArray2(sections.map(function(section){var _a;return(_a=SECTION_TYPE_GRANULARITY[section.type])!=null?_a:1;})));};var roundDate=function roundDate(utils,granularity,date){if(granularity===SECTION_TYPE_GRANULARITY.year){return utils.startOfYear(date);}if(granularity===SECTION_TYPE_GRANULARITY.month){return utils.startOfMonth(date);}if(granularity===SECTION_TYPE_GRANULARITY.day){return utils.startOfDay(date);}var roundedDate=date;if(granularity<SECTION_TYPE_GRANULARITY.minutes){roundedDate=utils.setMinutes(roundedDate,0);}if(granularity<SECTION_TYPE_GRANULARITY.seconds){roundedDate=utils.setSeconds(roundedDate,0);}if(granularity<SECTION_TYPE_GRANULARITY.milliseconds){roundedDate=utils.setMilliseconds(roundedDate,0);}return roundedDate;};var getDefaultReferenceDate=function getDefaultReferenceDate(_ref303){var props=_ref303.props,utils=_ref303.utils,granularity=_ref303.granularity,timezone=_ref303.timezone,inGetTodayDate=_ref303.getTodayDate;var _a;var referenceDate=inGetTodayDate?inGetTodayDate():roundDate(utils,granularity,_getTodayDate(utils,timezone));if(props.minDate!=null&&utils.isAfterDay(props.minDate,referenceDate)){referenceDate=roundDate(utils,granularity,props.minDate);}if(props.maxDate!=null&&utils.isBeforeDay(props.maxDate,referenceDate)){referenceDate=roundDate(utils,granularity,props.maxDate);}var isAfter2=createIsAfterIgnoreDatePart((_a=props.disableIgnoringDatePartForTimeValidation)!=null?_a:false,utils);if(props.minTime!=null&&isAfter2(props.minTime,referenceDate)){referenceDate=roundDate(utils,granularity,props.disableIgnoringDatePartForTimeValidation?props.minTime:mergeDateAndTime(utils,referenceDate,props.minTime));}if(props.maxTime!=null&&isAfter2(referenceDate,props.maxTime)){referenceDate=roundDate(utils,granularity,props.disableIgnoringDatePartForTimeValidation?props.maxTime:mergeDateAndTime(utils,referenceDate,props.maxTime));}return referenceDate;};var getDateSectionConfigFromFormatToken=function getDateSectionConfigFromFormatToken(utils,formatToken){var config2=utils.formatTokenMap[formatToken];if(config2==null){throw new Error(["MUI X: The token \"".concat(formatToken,"\" is not supported by the Date and Time Pickers."),"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join("\n"));}if(typeof config2==="string"){return{type:config2,contentType:config2==="meridiem"?"letter":"digit",maxLength:void 0};}return{type:config2.sectionType,contentType:config2.contentType,maxLength:config2.maxLength};};var getDeltaFromKeyCode=function getDeltaFromKeyCode(keyCode){switch(keyCode){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0;}};var getDaysInWeekStr=function getDaysInWeekStr(utils,format2){var elements=[];var now=utils.date(void 0,"default");var startDate=utils.startOfWeek(now);var endDate=utils.endOfWeek(now);var current=startDate;while(utils.isBefore(current,endDate)){elements.push(current);current=utils.addDays(current,1);}return elements.map(function(weekDay){return utils.formatByString(weekDay,format2);});};var getLetterEditingOptions=function getLetterEditingOptions(utils,timezone,sectionType,format2){switch(sectionType){case"month":{return getMonthsInYear(utils,utils.date(void 0,timezone)).map(function(month2){return utils.formatByString(month2,format2);});}case"weekDay":{return getDaysInWeekStr(utils,format2);}case"meridiem":{var now=utils.date(void 0,timezone);return[utils.startOfDay(now),utils.endOfDay(now)].map(function(date){return utils.formatByString(date,format2);});}default:{return[];}}};var FORMAT_SECONDS_NO_LEADING_ZEROS="s";var NON_LOCALIZED_DIGITS=["0","1","2","3","4","5","6","7","8","9"];var getLocalizedDigits=function getLocalizedDigits(utils){var today=utils.date(void 0);var formattedZero=utils.formatByString(utils.setSeconds(today,0),FORMAT_SECONDS_NO_LEADING_ZEROS);if(formattedZero==="0"){return NON_LOCALIZED_DIGITS;}return Array.from({length:10}).map(function(_2,index2){return utils.formatByString(utils.setSeconds(today,index2),FORMAT_SECONDS_NO_LEADING_ZEROS);});};var removeLocalizedDigits=function removeLocalizedDigits(valueStr,localizedDigits){if(localizedDigits[0]==="0"){return valueStr;}var digits=[];var currentFormattedDigit="";for(var _i13=0;_i13<valueStr.length;_i13+=1){currentFormattedDigit+=valueStr[_i13];var matchingDigitIndex=localizedDigits.indexOf(currentFormattedDigit);if(matchingDigitIndex>-1){digits.push(matchingDigitIndex.toString());currentFormattedDigit="";}}return digits.join("");};var applyLocalizedDigits=function applyLocalizedDigits(valueStr,localizedDigits){if(localizedDigits[0]==="0"){return valueStr;}return valueStr.split("").map(function(char2){return localizedDigits[Number(char2)];}).join("");};var isStringNumber=function isStringNumber(valueStr,localizedDigits){var nonLocalizedValueStr=removeLocalizedDigits(valueStr,localizedDigits);return nonLocalizedValueStr!==" "&&!Number.isNaN(Number(nonLocalizedValueStr));};var cleanLeadingZeros=function cleanLeadingZeros(valueStr,size2){var cleanValueStr=valueStr;cleanValueStr=Number(cleanValueStr).toString();while(cleanValueStr.length<size2){cleanValueStr="0".concat(cleanValueStr);}return cleanValueStr;};var cleanDigitSectionValue=function cleanDigitSectionValue(utils,value,sectionBoundaries,localizedDigits,section){if(process.env.NODE_ENV!=="production"){if(section.type!=="day"&§ion.contentType==="digit-with-letter"){throw new Error(["MUI X: The token \"".concat(section.format,"\" is a digit format with letter in it.'\n This type of format is only supported for 'day' sections")].join("\n"));}}if(section.type==="day"&§ion.contentType==="digit-with-letter"){var date=utils.setDate(sectionBoundaries.longestMonth,value);return utils.formatByString(date,section.format);}var valueStr=value.toString();if(section.hasLeadingZerosInInput){valueStr=cleanLeadingZeros(valueStr,section.maxLength);}return applyLocalizedDigits(valueStr,localizedDigits);};var adjustSectionValue=function adjustSectionValue(utils,timezone,section,keyCode,sectionsValueBoundaries,localizedDigits,activeDate,stepsAttributes){var delta=getDeltaFromKeyCode(keyCode);var isStart=keyCode==="Home";var isEnd=keyCode==="End";var shouldSetAbsolute=section.value===""||isStart||isEnd;var adjustDigitSection=function adjustDigitSection(){var sectionBoundaries=sectionsValueBoundaries[section.type]({currentDate:activeDate,format:section.format,contentType:section.contentType});var getCleanValue=function getCleanValue(value){return cleanDigitSectionValue(utils,value,sectionBoundaries,localizedDigits,section);};var step=section.type==="minutes"&&(stepsAttributes==null?void 0:stepsAttributes.minutesStep)?stepsAttributes.minutesStep:1;var newSectionValueNumber;if(shouldSetAbsolute){if(section.type==="year"&&!isEnd&&!isStart){return utils.formatByString(utils.date(void 0,timezone),section.format);}if(delta>0||isStart){newSectionValueNumber=sectionBoundaries.minimum;}else{newSectionValueNumber=sectionBoundaries.maximum;}}else{var currentSectionValue=parseInt(removeLocalizedDigits(section.value,localizedDigits),10);newSectionValueNumber=currentSectionValue+delta*step;}if(newSectionValueNumber%step!==0){if(delta<0||isStart){newSectionValueNumber+=step-(step+newSectionValueNumber)%step;}if(delta>0||isEnd){newSectionValueNumber-=newSectionValueNumber%step;}}if(newSectionValueNumber>sectionBoundaries.maximum){return getCleanValue(sectionBoundaries.minimum+(newSectionValueNumber-sectionBoundaries.maximum-1)%(sectionBoundaries.maximum-sectionBoundaries.minimum+1));}if(newSectionValueNumber<sectionBoundaries.minimum){return getCleanValue(sectionBoundaries.maximum-(sectionBoundaries.minimum-newSectionValueNumber-1)%(sectionBoundaries.maximum-sectionBoundaries.minimum+1));}return getCleanValue(newSectionValueNumber);};var adjustLetterSection=function adjustLetterSection(){var options=getLetterEditingOptions(utils,timezone,section.type,section.format);if(options.length===0){return section.value;}if(shouldSetAbsolute){if(delta>0||isStart){return options[0];}return options[options.length-1];}var currentOptionIndex=options.indexOf(section.value);var newOptionIndex=(currentOptionIndex+delta)%options.length;var clampedIndex=(newOptionIndex+options.length)%options.length;return options[clampedIndex];};if(section.contentType==="digit"||section.contentType==="digit-with-letter"){return adjustDigitSection();}return adjustLetterSection();};var getSectionVisibleValue=function getSectionVisibleValue(section,target,localizedDigits){var value=section.value||section.placeholder;var hasLeadingZeros=target==="non-input"?section.hasLeadingZerosInFormat:section.hasLeadingZerosInInput;if(target==="non-input"&§ion.hasLeadingZerosInInput&&!section.hasLeadingZerosInFormat){value=Number(removeLocalizedDigits(value,localizedDigits)).toString();}var shouldAddInvisibleSpace=["input-rtl","input-ltr"].includes(target)&§ion.contentType==="digit"&&!hasLeadingZeros&&value.length===1;if(shouldAddInvisibleSpace){value="".concat(value,"\u200E");}if(target==="input-rtl"){value="\u2068".concat(value,"\u2069");}return value;};var changeSectionValueFormat=function changeSectionValueFormat(utils,valueStr,currentFormat,newFormat){if(process.env.NODE_ENV!=="production"){if(getDateSectionConfigFromFormatToken(utils,currentFormat).type==="weekDay"){throw new Error("changeSectionValueFormat doesn't support week day formats");}}return utils.formatByString(utils.parse(valueStr,currentFormat),newFormat);};var isFourDigitYearFormat=function isFourDigitYearFormat(utils,format2){return utils.formatByString(utils.date(void 0,"system"),format2).length===4;};var doesSectionFormatHaveLeadingZeros=function doesSectionFormatHaveLeadingZeros(utils,contentType,sectionType,format2){if(contentType!=="digit"){return false;}var now=utils.date(void 0,"default");switch(sectionType){case"year":{if(utils.lib==="dayjs"&&format2==="YY"){return true;}return utils.formatByString(utils.setYear(now,1),format2).startsWith("0");}case"month":{return utils.formatByString(utils.startOfYear(now),format2).length>1;}case"day":{return utils.formatByString(utils.startOfMonth(now),format2).length>1;}case"weekDay":{return utils.formatByString(utils.startOfWeek(now),format2).length>1;}case"hours":{return utils.formatByString(utils.setHours(now,1),format2).length>1;}case"minutes":{return utils.formatByString(utils.setMinutes(now,1),format2).length>1;}case"seconds":{return utils.formatByString(utils.setSeconds(now,1),format2).length>1;}default:{throw new Error("Invalid section type");}}};var getDateFromDateSections=function getDateFromDateSections(utils,sections,localizedDigits){var shouldSkipWeekDays=sections.some(function(section){return section.type==="day";});var sectionFormats=[];var sectionValues=[];for(var _i14=0;_i14<sections.length;_i14+=1){var section=sections[_i14];var shouldSkip=shouldSkipWeekDays&§ion.type==="weekDay";if(!shouldSkip){sectionFormats.push(section.format);sectionValues.push(getSectionVisibleValue(section,"non-input",localizedDigits));}}var formatWithoutSeparator=sectionFormats.join(" ");var dateWithoutSeparatorStr=sectionValues.join(" ");return utils.parse(dateWithoutSeparatorStr,formatWithoutSeparator);};var createDateStrForV7HiddenInputFromSections=function createDateStrForV7HiddenInputFromSections(sections){return sections.map(function(section){return"".concat(section.startSeparator).concat(section.value||section.placeholder).concat(section.endSeparator);}).join("");};var createDateStrForV6InputFromSections=function createDateStrForV6InputFromSections(sections,localizedDigits,isRtl){var formattedSections=sections.map(function(section){var dateValue=getSectionVisibleValue(section,isRtl?"input-rtl":"input-ltr",localizedDigits);return"".concat(section.startSeparator).concat(dateValue).concat(section.endSeparator);});var dateStr=formattedSections.join("");if(!isRtl){return dateStr;}return"\u2066".concat(dateStr,"\u2069");};var getSectionsBoundaries=function getSectionsBoundaries(utils,localizedDigits,timezone){var today=utils.date(void 0,timezone);var endOfYear2=utils.endOfYear(today);var endOfDay=utils.endOfDay(today);var _getMonthsInYear$redu=getMonthsInYear(utils,today).reduce(function(acc,month2){var daysInMonth=utils.getDaysInMonth(month2);if(daysInMonth>acc.maxDaysInMonth){return{maxDaysInMonth:daysInMonth,longestMonth:month2};}return acc;},{maxDaysInMonth:0,longestMonth:null}),maxDaysInMonth=_getMonthsInYear$redu.maxDaysInMonth,longestMonth=_getMonthsInYear$redu.longestMonth;return{year:function year(_ref304){var format2=_ref304.format;return{minimum:0,maximum:isFourDigitYearFormat(utils,format2)?9999:99};},month:function month(){return{minimum:1,// Assumption: All years have the same amount of months
|
|
3458
|
+
};return/* @__PURE__ */React.createElement(Option4,_extends$1({},commonProps,{innerProps:innerProps,data:data,isDisabled:isDisabled,isSelected:isSelected,key:optionId,label:label2,type:type,value:value,isFocused:isFocused,innerRef:isFocused?_this4.getFocusedOptionRef:void 0}),_this4.formatOptionLabel(props.data,"menu"));};var menuUI;if(this.hasOptions()){menuUI=this.getCategorizedOptions().map(function(item2){if(item2.type==="group"){var _data=item2.data,options=item2.options,groupIndex=item2.index;var groupId="".concat(_this4.getElementId("group"),"-").concat(groupIndex);var headingId="".concat(groupId,"-heading");return/* @__PURE__ */React.createElement(Group3,_extends$1({},commonProps,{key:groupId,data:_data,options:options,Heading:GroupHeading3,headingProps:{id:headingId,data:item2.data},label:_this4.formatGroupLabel(item2.data)}),item2.options.map(function(option){return render(option,"".concat(groupIndex,"-").concat(option.index));}));}else if(item2.type==="option"){return render(item2,"".concat(item2.index));}});}else if(isLoading){var message2=loadingMessage2({inputValue:inputValue});if(message2===null)return null;menuUI=/* @__PURE__ */React.createElement(LoadingMessage3,commonProps,message2);}else{var _message=noOptionsMessage2({inputValue:inputValue});if(_message===null)return null;menuUI=/* @__PURE__ */React.createElement(NoOptionsMessage3,commonProps,_message);}var menuPlacementProps={minMenuHeight:minMenuHeight,maxMenuHeight:maxMenuHeight,menuPlacement:menuPlacement,menuPosition:menuPosition,menuShouldScrollIntoView:menuShouldScrollIntoView};var menuElement=/* @__PURE__ */React.createElement(MenuPlacer,_extends$1({},commonProps,menuPlacementProps),function(_ref4){var ref=_ref4.ref,_ref4$placerProps=_ref4.placerProps,placement=_ref4$placerProps.placement,maxHeight3=_ref4$placerProps.maxHeight;return/* @__PURE__ */React.createElement(Menu4,_extends$1({},commonProps,menuPlacementProps,{innerRef:ref,innerProps:{onMouseDown:_this4.onMenuMouseDown,onMouseMove:_this4.onMenuMouseMove},isLoading:isLoading,placement:placement}),/* @__PURE__ */React.createElement(ScrollManager,{captureEnabled:captureMenuScroll,onTopArrive:onMenuScrollToTop,onBottomArrive:onMenuScrollToBottom,lockEnabled:menuShouldBlockScroll},function(scrollTargetRef){return/* @__PURE__ */React.createElement(MenuList4,_extends$1({},commonProps,{innerRef:function innerRef(instance2){_this4.getMenuListRef(instance2);scrollTargetRef(instance2);},innerProps:{role:"listbox","aria-multiselectable":commonProps.isMulti,id:_this4.getElementId("listbox")},isLoading:isLoading,maxHeight:maxHeight3,focusedOption:focusedOption}),menuUI);}));});return menuPortalTarget||menuPosition==="fixed"?/* @__PURE__ */React.createElement(MenuPortal3,_extends$1({},commonProps,{appendTo:menuPortalTarget,controlElement:this.controlRef,menuPlacement:menuPlacement,menuPosition:menuPosition}),menuElement):menuElement;}},{key:"renderFormField",value:function renderFormField(){var _this5=this;var _this$props13=this.props,delimiter2=_this$props13.delimiter,isDisabled=_this$props13.isDisabled,isMulti=_this$props13.isMulti,name=_this$props13.name,required=_this$props13.required;var selectValue=this.state.selectValue;if(required&&!this.hasValue()&&!isDisabled){return/* @__PURE__ */React.createElement(RequiredInput$1,{name:name,onFocus:this.onValueInputFocus});}if(!name||isDisabled)return;if(isMulti){if(delimiter2){var value=selectValue.map(function(opt){return _this5.getOptionValue(opt);}).join(delimiter2);return/* @__PURE__ */React.createElement("input",{name:name,type:"hidden",value:value});}else{var input=selectValue.length>0?selectValue.map(function(opt,i){return/* @__PURE__ */React.createElement("input",{key:"i-".concat(i),name:name,type:"hidden",value:_this5.getOptionValue(opt)});}):/* @__PURE__ */React.createElement("input",{name:name,type:"hidden",value:""});return/* @__PURE__ */React.createElement("div",null,input);}}else{var _value=selectValue[0]?this.getOptionValue(selectValue[0]):"";return/* @__PURE__ */React.createElement("input",{name:name,type:"hidden",value:_value});}}},{key:"renderLiveRegion",value:function renderLiveRegion(){var commonProps=this.commonProps;var _this$state6=this.state,ariaSelection=_this$state6.ariaSelection,focusedOption=_this$state6.focusedOption,focusedValue=_this$state6.focusedValue,isFocused=_this$state6.isFocused,selectValue=_this$state6.selectValue;var focusableOptions=this.getFocusableOptions();return/* @__PURE__ */React.createElement(LiveRegion$1,_extends$1({},commonProps,{id:this.getElementId("live-region"),ariaSelection:ariaSelection,focusedOption:focusedOption,focusedValue:focusedValue,isFocused:isFocused,selectValue:selectValue,focusableOptions:focusableOptions,isAppleDevice:this.state.isAppleDevice}));}},{key:"render",value:function render(){var _this$getComponents8=this.getComponents(),Control3=_this$getComponents8.Control,IndicatorsContainer3=_this$getComponents8.IndicatorsContainer,SelectContainer3=_this$getComponents8.SelectContainer,ValueContainer3=_this$getComponents8.ValueContainer;var _this$props14=this.props,className=_this$props14.className,id=_this$props14.id,isDisabled=_this$props14.isDisabled,menuIsOpen=_this$props14.menuIsOpen;var isFocused=this.state.isFocused;var commonProps=this.commonProps=this.getCommonProps();return/* @__PURE__ */React.createElement(SelectContainer3,_extends$1({},commonProps,{className:className,innerProps:{id:id,onKeyDown:this.onKeyDown},isDisabled:isDisabled,isFocused:isFocused}),this.renderLiveRegion(),/* @__PURE__ */React.createElement(Control3,_extends$1({},commonProps,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:isDisabled,isFocused:isFocused,menuIsOpen:menuIsOpen}),/* @__PURE__ */React.createElement(ValueContainer3,_extends$1({},commonProps,{isDisabled:isDisabled}),this.renderPlaceholderOrValue(),this.renderInput()),/* @__PURE__ */React.createElement(IndicatorsContainer3,_extends$1({},commonProps,{isDisabled:isDisabled}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField());}}],[{key:"getDerivedStateFromProps",value:function getDerivedStateFromProps(props,state){var prevProps=state.prevProps,clearFocusValueOnUpdate=state.clearFocusValueOnUpdate,inputIsHiddenAfterUpdate=state.inputIsHiddenAfterUpdate,ariaSelection=state.ariaSelection,isFocused=state.isFocused,prevWasFocused=state.prevWasFocused,instancePrefix=state.instancePrefix;var options=props.options,value=props.value,menuIsOpen=props.menuIsOpen,inputValue=props.inputValue,isMulti=props.isMulti;var selectValue=cleanValue(value);var newMenuOptionsState={};if(prevProps&&(value!==prevProps.value||options!==prevProps.options||menuIsOpen!==prevProps.menuIsOpen||inputValue!==prevProps.inputValue)){var focusableOptions=menuIsOpen?buildFocusableOptions(props,selectValue):[];var focusableOptionsWithIds=menuIsOpen?buildFocusableOptionsWithIds(buildCategorizedOptions(props,selectValue),"".concat(instancePrefix,"-option")):[];var focusedValue=clearFocusValueOnUpdate?getNextFocusedValue(state,selectValue):null;var focusedOption=getNextFocusedOption(state,focusableOptions);var focusedOptionId=getFocusedOptionId(focusableOptionsWithIds,focusedOption);newMenuOptionsState={selectValue:selectValue,focusedOption:focusedOption,focusedOptionId:focusedOptionId,focusableOptionsWithIds:focusableOptionsWithIds,focusedValue:focusedValue,clearFocusValueOnUpdate:false};}var newInputIsHiddenState=inputIsHiddenAfterUpdate!=null&&props!==prevProps?{inputIsHidden:inputIsHiddenAfterUpdate,inputIsHiddenAfterUpdate:void 0}:{};var newAriaSelection=ariaSelection;var hasKeptFocus=isFocused&&prevWasFocused;if(isFocused&&!hasKeptFocus){newAriaSelection={value:valueTernary(isMulti,selectValue,selectValue[0]||null),options:selectValue,action:"initial-input-focus"};hasKeptFocus=!prevWasFocused;}if((ariaSelection===null||ariaSelection===void 0?void 0:ariaSelection.action)==="initial-input-focus"){newAriaSelection=null;}return _objectSpread2(_objectSpread2(_objectSpread2({},newMenuOptionsState),newInputIsHiddenState),{},{prevProps:props,ariaSelection:newAriaSelection,prevWasFocused:hasKeptFocus});}}]);return Select3;}(Component);Select$1.defaultProps=defaultProps;var StateManagedSelect=/* @__PURE__ */forwardRef(function(props,ref){var baseSelectProps=useStateManager(props);return/* @__PURE__ */React.createElement(Select$1,_extends$1({ref:ref},baseSelectProps));});var StateManagedSelect$1=StateManagedSelect;var isString=function isString(obj){return typeof obj==="string";};var defer=function defer(){var res;var rej;var promise=new Promise(function(resolve,reject){res=resolve;rej=reject;});promise.resolve=res;promise.reject=rej;return promise;};var makeString=function makeString(object){if(object==null)return"";return""+object;};var copy$1=function copy$1(a,s,t){a.forEach(function(m){if(s[m])t[m]=s[m];});};var lastOfPathSeparatorRegExp=/###/g;var cleanKey=function cleanKey(key){return key&&key.indexOf("###")>-1?key.replace(lastOfPathSeparatorRegExp,"."):key;};var canNotTraverseDeeper=function canNotTraverseDeeper(object){return!object||isString(object);};var getLastOfPath=function getLastOfPath(object,path,Empty){var stack=!isString(path)?path:path.split(".");var stackIndex=0;while(stackIndex<stack.length-1){if(canNotTraverseDeeper(object))return{};var key=cleanKey(stack[stackIndex]);if(!object[key]&&Empty)object[key]=new Empty();if(Object.prototype.hasOwnProperty.call(object,key)){object=object[key];}else{object={};}++stackIndex;}if(canNotTraverseDeeper(object))return{};return{obj:object,k:cleanKey(stack[stackIndex])};};var setPath=function setPath(object,path,newValue){var _getLastOfPath=getLastOfPath(object,path,Object),obj=_getLastOfPath.obj,k=_getLastOfPath.k;if(obj!==void 0||path.length===1){obj[k]=newValue;return;}var e=path[path.length-1];var p=path.slice(0,path.length-1);var last=getLastOfPath(object,p,Object);while(last.obj===void 0&&p.length){e="".concat(p[p.length-1],".").concat(e);p=p.slice(0,p.length-1);last=getLastOfPath(object,p,Object);if(last&&last.obj&&typeof last.obj["".concat(last.k,".").concat(e)]!=="undefined"){last.obj=void 0;}}last.obj["".concat(last.k,".").concat(e)]=newValue;};var pushPath=function pushPath(object,path,newValue,concat){var _getLastOfPath2=getLastOfPath(object,path,Object),obj=_getLastOfPath2.obj,k=_getLastOfPath2.k;obj[k]=obj[k]||[];obj[k].push(newValue);};var getPath=function getPath(object,path){var _getLastOfPath3=getLastOfPath(object,path),obj=_getLastOfPath3.obj,k=_getLastOfPath3.k;if(!obj)return void 0;return obj[k];};var getPathWithDefaults=function getPathWithDefaults(data,defaultData,key){var value=getPath(data,key);if(value!==void 0){return value;}return getPath(defaultData,key);};var _deepExtend=function deepExtend(target,source,overwrite){for(var prop in source){if(prop!=="__proto__"&&prop!=="constructor"){if(prop in target){if(isString(target[prop])||target[prop]instanceof String||isString(source[prop])||source[prop]instanceof String){if(overwrite)target[prop]=source[prop];}else{_deepExtend(target[prop],source[prop],overwrite);}}else{target[prop]=source[prop];}}}return target;};var regexEscape=function regexEscape(str){return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");};var _entityMap={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};var escape=function escape(data){if(isString(data)){return data.replace(/[&<>"'\/]/g,function(s){return _entityMap[s];});}return data;};var RegExpCache=/*#__PURE__*/function(){function RegExpCache(capacity){_classCallCheck2(this,RegExpCache);this.capacity=capacity;this.regExpMap=/* @__PURE__ */new Map();this.regExpQueue=[];}return _createClass2(RegExpCache,[{key:"getRegExp",value:function getRegExp(pattern){var regExpFromCache=this.regExpMap.get(pattern);if(regExpFromCache!==void 0){return regExpFromCache;}var regExpNew=new RegExp(pattern);if(this.regExpQueue.length===this.capacity){this.regExpMap.delete(this.regExpQueue.shift());}this.regExpMap.set(pattern,regExpNew);this.regExpQueue.push(pattern);return regExpNew;}}]);}();var chars=[" ",",","?","!",";"];var looksLikeObjectPathRegExpCache=new RegExpCache(20);var looksLikeObjectPath=function looksLikeObjectPath(key,nsSeparator,keySeparator){nsSeparator=nsSeparator||"";keySeparator=keySeparator||"";var possibleChars=chars.filter(function(c){return nsSeparator.indexOf(c)<0&&keySeparator.indexOf(c)<0;});if(possibleChars.length===0)return true;var r2=looksLikeObjectPathRegExpCache.getRegExp("(".concat(possibleChars.map(function(c){return c==="?"?"\\?":c;}).join("|"),")"));var matched=!r2.test(key);if(!matched){var ki=key.indexOf(keySeparator);if(ki>0&&!r2.test(key.substring(0,ki))){matched=true;}}return matched;};var deepFind=function deepFind(obj,path){var keySeparator=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!obj)return void 0;if(obj[path])return obj[path];var tokens=path.split(keySeparator);var current=obj;for(var _i1=0;_i1<tokens.length;){if(!current||_typeof2(current)!=="object"){return void 0;}var next2=void 0;var nextPath="";for(var _j2=_i1;_j2<tokens.length;++_j2){if(_j2!==_i1){nextPath+=keySeparator;}nextPath+=tokens[_j2];next2=current[nextPath];if(next2!==void 0){if(["string","number","boolean"].indexOf(_typeof2(next2))>-1&&_j2<tokens.length-1){continue;}_i1+=_j2-_i1+1;break;}}current=next2;}return current;};var getCleanedCode=function getCleanedCode(code){return code&&code.replace("_","-");};var consoleLogger={type:"logger",log:function log(args){this.output("log",args);},warn:function warn(args){this.output("warn",args);},error:function error(args){this.output("error",args);},output:function output(type,args){if(console&&console[type])console[type].apply(console,args);}};var Logger=/*#__PURE__*/function(){function Logger(concreteLogger){_classCallCheck2(this,Logger);var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(concreteLogger,options);}return _createClass2(Logger,[{key:"init",value:function init(concreteLogger){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=options.prefix||"i18next:";this.logger=concreteLogger||consoleLogger;this.options=options;this.debug=options.debug;}},{key:"log",value:function log(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key];}return this.forward(args,"log","",true);}},{key:"warn",value:function warn(){for(var _len2=arguments.length,args=new Array(_len2),_key2=0;_key2<_len2;_key2++){args[_key2]=arguments[_key2];}return this.forward(args,"warn","",true);}},{key:"error",value:function error(){for(var _len3=arguments.length,args=new Array(_len3),_key3=0;_key3<_len3;_key3++){args[_key3]=arguments[_key3];}return this.forward(args,"error","");}},{key:"deprecate",value:function deprecate(){for(var _len4=arguments.length,args=new Array(_len4),_key4=0;_key4<_len4;_key4++){args[_key4]=arguments[_key4];}return this.forward(args,"warn","WARNING DEPRECATED: ",true);}},{key:"forward",value:function forward(args,lvl,prefix2,debugOnly){if(debugOnly&&!this.debug)return null;if(isString(args[0]))args[0]="".concat(prefix2).concat(this.prefix," ").concat(args[0]);return this.logger[lvl](args);}},{key:"create",value:function create(moduleName){return new Logger(this.logger,__spreadValues(__spreadValues({},{prefix:"".concat(this.prefix,":").concat(moduleName,":")}),this.options));}},{key:"clone",value:function clone(options){options=options||this.options;options.prefix=options.prefix||this.prefix;return new Logger(this.logger,options);}}]);}();var baseLogger=new Logger();var EventEmitter=/*#__PURE__*/function(){function EventEmitter(){_classCallCheck2(this,EventEmitter);this.observers={};}return _createClass2(EventEmitter,[{key:"on",value:function on(events,listener){var _this11=this;events.split(" ").forEach(function(event){if(!_this11.observers[event])_this11.observers[event]=/* @__PURE__ */new Map();var numListeners=_this11.observers[event].get(listener)||0;_this11.observers[event].set(listener,numListeners+1);});return this;}},{key:"off",value:function off(event,listener){if(!this.observers[event])return;if(!listener){delete this.observers[event];return;}this.observers[event].delete(listener);}},{key:"emit",value:function emit(event){for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key];}if(this.observers[event]){var cloned=Array.from(this.observers[event].entries());cloned.forEach(function(_ref3){var _ref297=_slicedToArray2(_ref3,2),observer=_ref297[0],numTimesAdded=_ref297[1];for(var _i10=0;_i10<numTimesAdded;_i10++){observer.apply(void 0,args);}});}if(this.observers["*"]){var _cloned=Array.from(this.observers["*"].entries());_cloned.forEach(function(_ref22){var _ref298=_slicedToArray2(_ref22,2),observer=_ref298[0],numTimesAdded=_ref298[1];for(var _i11=0;_i11<numTimesAdded;_i11++){observer.apply(observer,[event].concat(args));}});}}}]);}();var ResourceStore=/*#__PURE__*/function(_EventEmitter){function ResourceStore(data){var _this12;_classCallCheck2(this,ResourceStore);var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};_this12=_callSuper(this,ResourceStore);_this12.data=data||{};_this12.options=options;if(_this12.options.keySeparator===void 0){_this12.options.keySeparator=".";}if(_this12.options.ignoreJSONStructure===void 0){_this12.options.ignoreJSONStructure=true;}return _this12;}_inherits2(ResourceStore,_EventEmitter);return _createClass2(ResourceStore,[{key:"addNamespaces",value:function addNamespaces(ns){if(this.options.ns.indexOf(ns)<0){this.options.ns.push(ns);}}},{key:"removeNamespaces",value:function removeNamespaces(ns){var index2=this.options.ns.indexOf(ns);if(index2>-1){this.options.ns.splice(index2,1);}}},{key:"getResource",value:function getResource(lng,ns,key){var options=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};var keySeparator=options.keySeparator!==void 0?options.keySeparator:this.options.keySeparator;var ignoreJSONStructure=options.ignoreJSONStructure!==void 0?options.ignoreJSONStructure:this.options.ignoreJSONStructure;var path;if(lng.indexOf(".")>-1){path=lng.split(".");}else{path=[lng,ns];if(key){if(Array.isArray(key)){var _path;(_path=path).push.apply(_path,_toConsumableArray2(key));}else if(isString(key)&&keySeparator){var _path2;(_path2=path).push.apply(_path2,_toConsumableArray2(key.split(keySeparator)));}else{path.push(key);}}}var result=getPath(this.data,path);if(!result&&!ns&&!key&&lng.indexOf(".")>-1){lng=path[0];ns=path[1];key=path.slice(2).join(".");}if(result||!ignoreJSONStructure||!isString(key))return result;return deepFind(this.data&&this.data[lng]&&this.data[lng][ns],key,keySeparator);}},{key:"addResource",value:function addResource(lng,ns,key,value){var options=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:false};var keySeparator=options.keySeparator!==void 0?options.keySeparator:this.options.keySeparator;var path=[lng,ns];if(key)path=path.concat(keySeparator?key.split(keySeparator):key);if(lng.indexOf(".")>-1){path=lng.split(".");value=ns;ns=path[1];}this.addNamespaces(ns);setPath(this.data,path,value);if(!options.silent)this.emit("added",lng,ns,key,value);}},{key:"addResources",value:function addResources(lng,ns,resources2){var options=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:false};for(var m in resources2){if(isString(resources2[m])||Array.isArray(resources2[m]))this.addResource(lng,ns,m,resources2[m],{silent:true});}if(!options.silent)this.emit("added",lng,ns,resources2);}},{key:"addResourceBundle",value:function addResourceBundle(lng,ns,resources2,deep,overwrite){var options=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:false,skipCopy:false};var path=[lng,ns];if(lng.indexOf(".")>-1){path=lng.split(".");deep=resources2;resources2=ns;ns=path[1];}this.addNamespaces(ns);var pack=getPath(this.data,path)||{};if(!options.skipCopy)resources2=JSON.parse(JSON.stringify(resources2));if(deep){_deepExtend(pack,resources2,overwrite);}else{pack=__spreadValues(__spreadValues({},pack),resources2);}setPath(this.data,path,pack);if(!options.silent)this.emit("added",lng,ns,resources2);}},{key:"removeResourceBundle",value:function removeResourceBundle(lng,ns){if(this.hasResourceBundle(lng,ns)){delete this.data[lng][ns];}this.removeNamespaces(ns);this.emit("removed",lng,ns);}},{key:"hasResourceBundle",value:function hasResourceBundle(lng,ns){return this.getResource(lng,ns)!==void 0;}},{key:"getResourceBundle",value:function getResourceBundle(lng,ns){if(!ns)ns=this.options.defaultNS;if(this.options.compatibilityAPI==="v1")return __spreadValues(__spreadValues({},{}),this.getResource(lng,ns));return this.getResource(lng,ns);}},{key:"getDataByLanguage",value:function getDataByLanguage(lng){return this.data[lng];}},{key:"hasLanguageSomeTranslations",value:function hasLanguageSomeTranslations(lng){var data=this.getDataByLanguage(lng);var n=data&&Object.keys(data)||[];return!!n.find(function(v){return data[v]&&Object.keys(data[v]).length>0;});}},{key:"toJSON",value:function toJSON(){return this.data;}}]);}(EventEmitter);var postProcessor={processors:{},addPostProcessor:function addPostProcessor(module){this.processors[module.name]=module;},handle:function handle(processors,value,key,options,translator){var _this13=this;processors.forEach(function(processor){if(_this13.processors[processor])value=_this13.processors[processor].process(value,key,options,translator);});return value;}};var checkedLoadedFor={};var Translator=/*#__PURE__*/function(_EventEmitter2){function Translator(services){var _this14;_classCallCheck2(this,Translator);var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_this14=_callSuper(this,Translator);copy$1(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],services,_this14);_this14.options=options;if(_this14.options.keySeparator===void 0){_this14.options.keySeparator=".";}_this14.logger=baseLogger.create("translator");return _this14;}_inherits2(Translator,_EventEmitter2);return _createClass2(Translator,[{key:"changeLanguage",value:function changeLanguage(lng){if(lng)this.language=lng;}},{key:"exists",value:function exists(key){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(key===void 0||key===null){return false;}var resolved=this.resolve(key,options);return resolved&&resolved.res!==void 0;}},{key:"extractFromKey",value:function extractFromKey(key,options){var nsSeparator=options.nsSeparator!==void 0?options.nsSeparator:this.options.nsSeparator;if(nsSeparator===void 0)nsSeparator=":";var keySeparator=options.keySeparator!==void 0?options.keySeparator:this.options.keySeparator;var namespaces=options.ns||this.options.defaultNS||[];var wouldCheckForNsInKey=nsSeparator&&key.indexOf(nsSeparator)>-1;var seemsNaturalLanguage=!this.options.userDefinedKeySeparator&&!options.keySeparator&&!this.options.userDefinedNsSeparator&&!options.nsSeparator&&!looksLikeObjectPath(key,nsSeparator,keySeparator);if(wouldCheckForNsInKey&&!seemsNaturalLanguage){var m=key.match(this.interpolator.nestingRegexp);if(m&&m.length>0){return{key:key,namespaces:isString(namespaces)?[namespaces]:namespaces};}var parts=key.split(nsSeparator);if(nsSeparator!==keySeparator||nsSeparator===keySeparator&&this.options.ns.indexOf(parts[0])>-1)namespaces=parts.shift();key=parts.join(keySeparator);}return{key:key,namespaces:isString(namespaces)?[namespaces]:namespaces};}},{key:"translate",value:function translate(keys2,options,lastKey){var _this15=this;if(_typeof2(options)!=="object"&&this.options.overloadTranslationOptionHandler){options=this.options.overloadTranslationOptionHandler(arguments);}if(_typeof2(options)==="object")options=__spreadValues({},options);if(!options)options={};if(keys2===void 0||keys2===null)return"";if(!Array.isArray(keys2))keys2=[String(keys2)];var returnDetails=options.returnDetails!==void 0?options.returnDetails:this.options.returnDetails;var keySeparator=options.keySeparator!==void 0?options.keySeparator:this.options.keySeparator;var _this$extractFromKey=this.extractFromKey(keys2[keys2.length-1],options),key=_this$extractFromKey.key,namespaces=_this$extractFromKey.namespaces;var namespace=namespaces[namespaces.length-1];var lng=options.lng||this.language;var appendNamespaceToCIMode=options.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(lng&&lng.toLowerCase()==="cimode"){if(appendNamespaceToCIMode){var nsSeparator=options.nsSeparator||this.options.nsSeparator;if(returnDetails){return{res:"".concat(namespace).concat(nsSeparator).concat(key),usedKey:key,exactUsedKey:key,usedLng:lng,usedNS:namespace,usedParams:this.getUsedParamsDetails(options)};}return"".concat(namespace).concat(nsSeparator).concat(key);}if(returnDetails){return{res:key,usedKey:key,exactUsedKey:key,usedLng:lng,usedNS:namespace,usedParams:this.getUsedParamsDetails(options)};}return key;}var resolved=this.resolve(keys2,options);var res=resolved&&resolved.res;var resUsedKey=resolved&&resolved.usedKey||key;var resExactUsedKey=resolved&&resolved.exactUsedKey||key;var resType=Object.prototype.toString.apply(res);var noObject=["[object Number]","[object Function]","[object RegExp]"];var joinArrays=options.joinArrays!==void 0?options.joinArrays:this.options.joinArrays;var handleAsObjectInI18nFormat=!this.i18nFormat||this.i18nFormat.handleAsObject;var handleAsObject=!isString(res)&&typeof res!=="boolean"&&typeof res!=="number";if(handleAsObjectInI18nFormat&&res&&handleAsObject&&noObject.indexOf(resType)<0&&!(isString(joinArrays)&&Array.isArray(res))){if(!options.returnObjects&&!this.options.returnObjects){if(!this.options.returnedObjectHandler){this.logger.warn("accessing an object - but returnObjects options is not enabled!");}var r2=this.options.returnedObjectHandler?this.options.returnedObjectHandler(resUsedKey,res,__spreadProps(__spreadValues({},options),{ns:namespaces})):"key '".concat(key," (").concat(this.language,")' returned an object instead of string.");if(returnDetails){resolved.res=r2;resolved.usedParams=this.getUsedParamsDetails(options);return resolved;}return r2;}if(keySeparator){var resTypeIsArray=Array.isArray(res);var copy2=resTypeIsArray?[]:{};var newKeyToUse=resTypeIsArray?resExactUsedKey:resUsedKey;for(var m in res){if(Object.prototype.hasOwnProperty.call(res,m)){var deepKey="".concat(newKeyToUse).concat(keySeparator).concat(m);copy2[m]=this.translate(deepKey,__spreadValues(__spreadValues({},options),{joinArrays:false,ns:namespaces}));if(copy2[m]===deepKey)copy2[m]=res[m];}}res=copy2;}}else if(handleAsObjectInI18nFormat&&isString(joinArrays)&&Array.isArray(res)){res=res.join(joinArrays);if(res)res=this.extendTranslation(res,keys2,options,lastKey);}else{var usedDefault=false;var usedKey=false;var needsPluralHandling=options.count!==void 0&&!isString(options.count);var hasDefaultValue=Translator.hasDefaultValue(options);var defaultValueSuffix=needsPluralHandling?this.pluralResolver.getSuffix(lng,options.count,options):"";var defaultValueSuffixOrdinalFallback=options.ordinal&&needsPluralHandling?this.pluralResolver.getSuffix(lng,options.count,{ordinal:false}):"";var needsZeroSuffixLookup=needsPluralHandling&&!options.ordinal&&options.count===0&&this.pluralResolver.shouldUseIntlApi();var defaultValue=needsZeroSuffixLookup&&options["defaultValue".concat(this.options.pluralSeparator,"zero")]||options["defaultValue".concat(defaultValueSuffix)]||options["defaultValue".concat(defaultValueSuffixOrdinalFallback)]||options.defaultValue;if(!this.isValidLookup(res)&&hasDefaultValue){usedDefault=true;res=defaultValue;}if(!this.isValidLookup(res)){usedKey=true;res=key;}var missingKeyNoValueFallbackToKey=options.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey;var resForMissing=missingKeyNoValueFallbackToKey&&usedKey?void 0:res;var updateMissing=hasDefaultValue&&defaultValue!==res&&this.options.updateMissing;if(usedKey||usedDefault||updateMissing){this.logger.log(updateMissing?"updateKey":"missingKey",lng,namespace,key,updateMissing?defaultValue:res);if(keySeparator){var fk=this.resolve(key,__spreadProps(__spreadValues({},options),{keySeparator:false}));if(fk&&fk.res)this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");}var lngs=[];var fallbackLngs=this.languageUtils.getFallbackCodes(this.options.fallbackLng,options.lng||this.language);if(this.options.saveMissingTo==="fallback"&&fallbackLngs&&fallbackLngs[0]){for(var _i12=0;_i12<fallbackLngs.length;_i12++){lngs.push(fallbackLngs[_i12]);}}else if(this.options.saveMissingTo==="all"){lngs=this.languageUtils.toResolveHierarchy(options.lng||this.language);}else{lngs.push(options.lng||this.language);}var send=function send(l,k,specificDefaultValue){var defaultForMissing=hasDefaultValue&&specificDefaultValue!==res?specificDefaultValue:resForMissing;if(_this15.options.missingKeyHandler){_this15.options.missingKeyHandler(l,namespace,k,defaultForMissing,updateMissing,options);}else if(_this15.backendConnector&&_this15.backendConnector.saveMissing){_this15.backendConnector.saveMissing(l,namespace,k,defaultForMissing,updateMissing,options);}_this15.emit("missingKey",l,namespace,k,res);};if(this.options.saveMissing){if(this.options.saveMissingPlurals&&needsPluralHandling){lngs.forEach(function(language){var suffixes=_this15.pluralResolver.getSuffixes(language,options);if(needsZeroSuffixLookup&&options["defaultValue".concat(_this15.options.pluralSeparator,"zero")]&&suffixes.indexOf("".concat(_this15.options.pluralSeparator,"zero"))<0){suffixes.push("".concat(_this15.options.pluralSeparator,"zero"));}suffixes.forEach(function(suffix){send([language],key+suffix,options["defaultValue".concat(suffix)]||defaultValue);});});}else{send(lngs,key,defaultValue);}}}res=this.extendTranslation(res,keys2,options,resolved,lastKey);if(usedKey&&res===key&&this.options.appendNamespaceToMissingKey)res="".concat(namespace,":").concat(key);if((usedKey||usedDefault)&&this.options.parseMissingKeyHandler){if(this.options.compatibilityAPI!=="v1"){res=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(namespace,":").concat(key):key,usedDefault?res:void 0);}else{res=this.options.parseMissingKeyHandler(res);}}}if(returnDetails){resolved.res=res;resolved.usedParams=this.getUsedParamsDetails(options);return resolved;}return res;}},{key:"extendTranslation",value:function extendTranslation(res,key,options,resolved,lastKey){var _this=this;if(this.i18nFormat&&this.i18nFormat.parse){res=this.i18nFormat.parse(res,__spreadValues(__spreadValues({},this.options.interpolation.defaultVariables),options),options.lng||this.language||resolved.usedLng,resolved.usedNS,resolved.usedKey,{resolved:resolved});}else if(!options.skipInterpolation){if(options.interpolation)this.interpolator.init(__spreadValues(__spreadValues({},options),{interpolation:__spreadValues(__spreadValues({},this.options.interpolation),options.interpolation)}));var skipOnVariables=isString(res)&&(options&&options.interpolation&&options.interpolation.skipOnVariables!==void 0?options.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);var nestBef;if(skipOnVariables){var nb=res.match(this.interpolator.nestingRegexp);nestBef=nb&&nb.length;}var data=options.replace&&!isString(options.replace)?options.replace:options;if(this.options.interpolation.defaultVariables)data=__spreadValues(__spreadValues({},this.options.interpolation.defaultVariables),data);res=this.interpolator.interpolate(res,data,options.lng||this.language||resolved.usedLng,options);if(skipOnVariables){var na=res.match(this.interpolator.nestingRegexp);var nestAft=na&&na.length;if(nestBef<nestAft)options.nest=false;}if(!options.lng&&this.options.compatibilityAPI!=="v1"&&resolved&&resolved.res)options.lng=this.language||resolved.usedLng;if(options.nest!==false)res=this.interpolator.nest(res,function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key];}if(lastKey&&lastKey[0]===args[0]&&!options.context){_this.logger.warn("It seems you are nesting recursively key: ".concat(args[0]," in key: ").concat(key[0]));return null;}return _this.translate.apply(_this,args.concat([key]));},options);if(options.interpolation)this.interpolator.reset();}var postProcess=options.postProcess||this.options.postProcess;var postProcessorNames=isString(postProcess)?[postProcess]:postProcess;if(res!==void 0&&res!==null&&postProcessorNames&&postProcessorNames.length&&options.applyPostProcessor!==false){res=postProcessor.handle(postProcessorNames,res,key,this.options&&this.options.postProcessPassResolved?__spreadValues({i18nResolved:__spreadProps(__spreadValues({},resolved),{usedParams:this.getUsedParamsDetails(options)})},options):options,this);}return res;}},{key:"resolve",value:function resolve(keys2){var _this16=this;var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var found;var usedKey;var exactUsedKey;var usedLng;var usedNS;if(isString(keys2))keys2=[keys2];keys2.forEach(function(k){if(_this16.isValidLookup(found))return;var extracted=_this16.extractFromKey(k,options);var key=extracted.key;usedKey=key;var namespaces=extracted.namespaces;if(_this16.options.fallbackNS)namespaces=namespaces.concat(_this16.options.fallbackNS);var needsPluralHandling=options.count!==void 0&&!isString(options.count);var needsZeroSuffixLookup=needsPluralHandling&&!options.ordinal&&options.count===0&&_this16.pluralResolver.shouldUseIntlApi();var needsContextHandling=options.context!==void 0&&(isString(options.context)||typeof options.context==="number")&&options.context!=="";var codes=options.lngs?options.lngs:_this16.languageUtils.toResolveHierarchy(options.lng||_this16.language,options.fallbackLng);namespaces.forEach(function(ns){if(_this16.isValidLookup(found))return;usedNS=ns;if(!checkedLoadedFor["".concat(codes[0],"-").concat(ns)]&&_this16.utils&&_this16.utils.hasLoadedNamespace&&!_this16.utils.hasLoadedNamespace(usedNS)){checkedLoadedFor["".concat(codes[0],"-").concat(ns)]=true;_this16.logger.warn("key \"".concat(usedKey,"\" for languages \"").concat(codes.join(", "),"\" won't get resolved as namespace \"").concat(usedNS,"\" was not yet loaded"),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");}codes.forEach(function(code){if(_this16.isValidLookup(found))return;usedLng=code;var finalKeys=[key];if(_this16.i18nFormat&&_this16.i18nFormat.addLookupKeys){_this16.i18nFormat.addLookupKeys(finalKeys,key,code,ns,options);}else{var pluralSuffix;if(needsPluralHandling)pluralSuffix=_this16.pluralResolver.getSuffix(code,options.count,options);var zeroSuffix="".concat(_this16.options.pluralSeparator,"zero");var ordinalPrefix="".concat(_this16.options.pluralSeparator,"ordinal").concat(_this16.options.pluralSeparator);if(needsPluralHandling){finalKeys.push(key+pluralSuffix);if(options.ordinal&&pluralSuffix.indexOf(ordinalPrefix)===0){finalKeys.push(key+pluralSuffix.replace(ordinalPrefix,_this16.options.pluralSeparator));}if(needsZeroSuffixLookup){finalKeys.push(key+zeroSuffix);}}if(needsContextHandling){var contextKey="".concat(key).concat(_this16.options.contextSeparator).concat(options.context);finalKeys.push(contextKey);if(needsPluralHandling){finalKeys.push(contextKey+pluralSuffix);if(options.ordinal&&pluralSuffix.indexOf(ordinalPrefix)===0){finalKeys.push(contextKey+pluralSuffix.replace(ordinalPrefix,_this16.options.pluralSeparator));}if(needsZeroSuffixLookup){finalKeys.push(contextKey+zeroSuffix);}}}}var possibleKey;while(possibleKey=finalKeys.pop()){if(!_this16.isValidLookup(found)){exactUsedKey=possibleKey;found=_this16.getResource(code,ns,possibleKey,options);}}});});});return{res:found,usedKey:usedKey,exactUsedKey:exactUsedKey,usedLng:usedLng,usedNS:usedNS};}},{key:"isValidLookup",value:function isValidLookup(res){return res!==void 0&&!(!this.options.returnNull&&res===null)&&!(!this.options.returnEmptyString&&res==="");}},{key:"getResource",value:function getResource(code,ns,key){var options=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(this.i18nFormat&&this.i18nFormat.getResource)return this.i18nFormat.getResource(code,ns,key,options);return this.resourceStore.getResource(code,ns,key,options);}},{key:"getUsedParamsDetails",value:function getUsedParamsDetails(){var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var optionsKeys=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"];var useOptionsReplaceForData=options.replace&&!isString(options.replace);var data=useOptionsReplaceForData?options.replace:options;if(useOptionsReplaceForData&&typeof options.count!=="undefined"){data.count=options.count;}if(this.options.interpolation.defaultVariables){data=__spreadValues(__spreadValues({},this.options.interpolation.defaultVariables),data);}if(!useOptionsReplaceForData){data=__spreadValues({},data);var _iterator4=_createForOfIteratorHelper(optionsKeys),_step5;try{for(_iterator4.s();!(_step5=_iterator4.n()).done;){var key=_step5.value;delete data[key];}}catch(err){_iterator4.e(err);}finally{_iterator4.f();}}return data;}}],[{key:"hasDefaultValue",value:function hasDefaultValue(options){var prefix2="defaultValue";for(var option in options){if(Object.prototype.hasOwnProperty.call(options,option)&&prefix2===option.substring(0,prefix2.length)&&void 0!==options[option]){return true;}}return false;}}]);}(EventEmitter);var capitalize=function capitalize(string){return string.charAt(0).toUpperCase()+string.slice(1);};var LanguageUtil=/*#__PURE__*/function(){function LanguageUtil(options){_classCallCheck2(this,LanguageUtil);this.options=options;this.supportedLngs=this.options.supportedLngs||false;this.logger=baseLogger.create("languageUtils");}return _createClass2(LanguageUtil,[{key:"getScriptPartFromCode",value:function getScriptPartFromCode(code){code=getCleanedCode(code);if(!code||code.indexOf("-")<0)return null;var p=code.split("-");if(p.length===2)return null;p.pop();if(p[p.length-1].toLowerCase()==="x")return null;return this.formatLanguageCode(p.join("-"));}},{key:"getLanguagePartFromCode",value:function getLanguagePartFromCode(code){code=getCleanedCode(code);if(!code||code.indexOf("-")<0)return code;var p=code.split("-");return this.formatLanguageCode(p[0]);}},{key:"formatLanguageCode",value:function formatLanguageCode(code){if(isString(code)&&code.indexOf("-")>-1){if(typeof Intl!=="undefined"&&typeof Intl.getCanonicalLocales!=="undefined"){try{var formattedCode=Intl.getCanonicalLocales(code)[0];if(formattedCode&&this.options.lowerCaseLng){formattedCode=formattedCode.toLowerCase();}if(formattedCode)return formattedCode;}catch(e){}}var specialCases=["hans","hant","latn","cyrl","cans","mong","arab"];var p=code.split("-");if(this.options.lowerCaseLng){p=p.map(function(part){return part.toLowerCase();});}else if(p.length===2){p[0]=p[0].toLowerCase();p[1]=p[1].toUpperCase();if(specialCases.indexOf(p[1].toLowerCase())>-1)p[1]=capitalize(p[1].toLowerCase());}else if(p.length===3){p[0]=p[0].toLowerCase();if(p[1].length===2)p[1]=p[1].toUpperCase();if(p[0]!=="sgn"&&p[2].length===2)p[2]=p[2].toUpperCase();if(specialCases.indexOf(p[1].toLowerCase())>-1)p[1]=capitalize(p[1].toLowerCase());if(specialCases.indexOf(p[2].toLowerCase())>-1)p[2]=capitalize(p[2].toLowerCase());}return p.join("-");}return this.options.cleanCode||this.options.lowerCaseLng?code.toLowerCase():code;}},{key:"isSupportedCode",value:function isSupportedCode(code){if(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs){code=this.getLanguagePartFromCode(code);}return!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(code)>-1;}},{key:"getBestMatchFromCodes",value:function getBestMatchFromCodes(codes){var _this17=this;if(!codes)return null;var found;codes.forEach(function(code){if(found)return;var cleanedLng=_this17.formatLanguageCode(code);if(!_this17.options.supportedLngs||_this17.isSupportedCode(cleanedLng))found=cleanedLng;});if(!found&&this.options.supportedLngs){codes.forEach(function(code){if(found)return;var lngOnly=_this17.getLanguagePartFromCode(code);if(_this17.isSupportedCode(lngOnly))return found=lngOnly;found=_this17.options.supportedLngs.find(function(supportedLng){if(supportedLng===lngOnly)return supportedLng;if(supportedLng.indexOf("-")<0&&lngOnly.indexOf("-")<0)return;if(supportedLng.indexOf("-")>0&&lngOnly.indexOf("-")<0&&supportedLng.substring(0,supportedLng.indexOf("-"))===lngOnly)return supportedLng;if(supportedLng.indexOf(lngOnly)===0&&lngOnly.length>1)return supportedLng;});});}if(!found)found=this.getFallbackCodes(this.options.fallbackLng)[0];return found;}},{key:"getFallbackCodes",value:function getFallbackCodes(fallbacks,code){if(!fallbacks)return[];if(typeof fallbacks==="function")fallbacks=fallbacks(code);if(isString(fallbacks))fallbacks=[fallbacks];if(Array.isArray(fallbacks))return fallbacks;if(!code)return fallbacks.default||[];var found=fallbacks[code];if(!found)found=fallbacks[this.getScriptPartFromCode(code)];if(!found)found=fallbacks[this.formatLanguageCode(code)];if(!found)found=fallbacks[this.getLanguagePartFromCode(code)];if(!found)found=fallbacks.default;return found||[];}},{key:"toResolveHierarchy",value:function toResolveHierarchy(code,fallbackCode){var _this18=this;var fallbackCodes=this.getFallbackCodes(fallbackCode||this.options.fallbackLng||[],code);var codes=[];var addCode=function addCode(c){if(!c)return;if(_this18.isSupportedCode(c)){codes.push(c);}else{_this18.logger.warn("rejecting language code not found in supportedLngs: ".concat(c));}};if(isString(code)&&(code.indexOf("-")>-1||code.indexOf("_")>-1)){if(this.options.load!=="languageOnly")addCode(this.formatLanguageCode(code));if(this.options.load!=="languageOnly"&&this.options.load!=="currentOnly")addCode(this.getScriptPartFromCode(code));if(this.options.load!=="currentOnly")addCode(this.getLanguagePartFromCode(code));}else if(isString(code)){addCode(this.formatLanguageCode(code));}fallbackCodes.forEach(function(fc){if(codes.indexOf(fc)<0)addCode(_this18.formatLanguageCode(fc));});return codes;}}]);}();var sets=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}];var _rulesPluralsTypes={1:function _(n){return Number(n>1);},2:function _(n){return Number(n!=1);},3:function _(n){return 0;},4:function _(n){return Number(n%10==1&&n%100!=11?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2);},5:function _(n){return Number(n==0?0:n==1?1:n==2?2:n%100>=3&&n%100<=10?3:n%100>=11?4:5);},6:function _(n){return Number(n==1?0:n>=2&&n<=4?1:2);},7:function _(n){return Number(n==1?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2);},8:function _(n){return Number(n==1?0:n==2?1:n!=8&&n!=11?2:3);},9:function _(n){return Number(n>=2);},10:function _(n){return Number(n==1?0:n==2?1:n<7?2:n<11?3:4);},11:function _(n){return Number(n==1||n==11?0:n==2||n==12?1:n>2&&n<20?2:3);},12:function _(n){return Number(n%10!=1||n%100==11);},13:function _(n){return Number(n!==0);},14:function _(n){return Number(n==1?0:n==2?1:n==3?2:3);},15:function _(n){return Number(n%10==1&&n%100!=11?0:n%10>=2&&(n%100<10||n%100>=20)?1:2);},16:function _(n){return Number(n%10==1&&n%100!=11?0:n!==0?1:2);},17:function _(n){return Number(n==1||n%10==1&&n%100!=11?0:1);},18:function _(n){return Number(n==0?0:n==1?1:2);},19:function _(n){return Number(n==1?0:n==0||n%100>1&&n%100<11?1:n%100>10&&n%100<20?2:3);},20:function _(n){return Number(n==1?0:n==0||n%100>0&&n%100<20?1:2);},21:function _(n){return Number(n%100==1?1:n%100==2?2:n%100==3||n%100==4?3:0);},22:function _(n){return Number(n==1?0:n==2?1:(n<0||n>10)&&n%10==0?2:3);}};var nonIntlVersions=["v1","v2","v3"];var intlVersions=["v4"];var suffixesOrder={zero:0,one:1,two:2,few:3,many:4,other:5};var createRules=function createRules(){var rules={};sets.forEach(function(set){set.lngs.forEach(function(l){rules[l]={numbers:set.nr,plurals:_rulesPluralsTypes[set.fc]};});});return rules;};var PluralResolver=/*#__PURE__*/function(){function PluralResolver(languageUtils){_classCallCheck2(this,PluralResolver);var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=languageUtils;this.options=options;this.logger=baseLogger.create("pluralResolver");if((!this.options.compatibilityJSON||intlVersions.includes(this.options.compatibilityJSON))&&(typeof Intl==="undefined"||!Intl.PluralRules)){this.options.compatibilityJSON="v3";this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.");}this.rules=createRules();this.pluralRulesCache={};}return _createClass2(PluralResolver,[{key:"addRule",value:function addRule(lng,obj){this.rules[lng]=obj;}},{key:"clearCache",value:function clearCache(){this.pluralRulesCache={};}},{key:"getRule",value:function getRule(code){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){var cleanedCode=getCleanedCode(code==="dev"?"en":code);var type=options.ordinal?"ordinal":"cardinal";var cacheKey=JSON.stringify({cleanedCode:cleanedCode,type:type});if(cacheKey in this.pluralRulesCache){return this.pluralRulesCache[cacheKey];}var rule;try{rule=new Intl.PluralRules(cleanedCode,{type:type});}catch(err){if(!code.match(/-|_/))return;var lngPart=this.languageUtils.getLanguagePartFromCode(code);rule=this.getRule(lngPart,options);}this.pluralRulesCache[cacheKey]=rule;return rule;}return this.rules[code]||this.rules[this.languageUtils.getLanguagePartFromCode(code)];}},{key:"needsPlural",value:function needsPlural(code){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var rule=this.getRule(code,options);if(this.shouldUseIntlApi()){return rule&&rule.resolvedOptions().pluralCategories.length>1;}return rule&&rule.numbers.length>1;}},{key:"getPluralFormsOfKey",value:function getPluralFormsOfKey(code,key){var options=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(code,options).map(function(suffix){return"".concat(key).concat(suffix);});}},{key:"getSuffixes",value:function getSuffixes(code){var _this19=this;var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var rule=this.getRule(code,options);if(!rule){return[];}if(this.shouldUseIntlApi()){return rule.resolvedOptions().pluralCategories.sort(function(pluralCategory1,pluralCategory2){return suffixesOrder[pluralCategory1]-suffixesOrder[pluralCategory2];}).map(function(pluralCategory){return"".concat(_this19.options.prepend).concat(options.ordinal?"ordinal".concat(_this19.options.prepend):"").concat(pluralCategory);});}return rule.numbers.map(function(number){return _this19.getSuffix(code,number,options);});}},{key:"getSuffix",value:function getSuffix(code,count2){var options=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var rule=this.getRule(code,options);if(rule){if(this.shouldUseIntlApi()){return"".concat(this.options.prepend).concat(options.ordinal?"ordinal".concat(this.options.prepend):"").concat(rule.select(count2));}return this.getSuffixRetroCompatible(rule,count2);}this.logger.warn("no plural rule found for: ".concat(code));return"";}},{key:"getSuffixRetroCompatible",value:function getSuffixRetroCompatible(rule,count2){var _this20=this;var idx=rule.noAbs?rule.plurals(count2):rule.plurals(Math.abs(count2));var suffix=rule.numbers[idx];if(this.options.simplifyPluralSuffix&&rule.numbers.length===2&&rule.numbers[0]===1){if(suffix===2){suffix="plural";}else if(suffix===1){suffix="";}}var returnSuffix=function returnSuffix(){return _this20.options.prepend&&suffix.toString()?_this20.options.prepend+suffix.toString():suffix.toString();};if(this.options.compatibilityJSON==="v1"){if(suffix===1)return"";if(typeof suffix==="number")return"_plural_".concat(suffix.toString());return returnSuffix();}else if(this.options.compatibilityJSON==="v2"){return returnSuffix();}else if(this.options.simplifyPluralSuffix&&rule.numbers.length===2&&rule.numbers[0]===1){return returnSuffix();}return this.options.prepend&&idx.toString()?this.options.prepend+idx.toString():idx.toString();}},{key:"shouldUseIntlApi",value:function shouldUseIntlApi(){return!nonIntlVersions.includes(this.options.compatibilityJSON);}}]);}();var deepFindWithDefaults=function deepFindWithDefaults(data,defaultData,key){var keySeparator=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".";var ignoreJSONStructure=arguments.length>4&&arguments[4]!==void 0?arguments[4]:true;var path=getPathWithDefaults(data,defaultData,key);if(!path&&ignoreJSONStructure&&isString(key)){path=deepFind(data,key,keySeparator);if(path===void 0)path=deepFind(defaultData,key,keySeparator);}return path;};var regexSafe=function regexSafe(val){return val.replace(/\$/g,"$$$$");};var Interpolator=/*#__PURE__*/function(){function Interpolator(){_classCallCheck2(this,Interpolator);var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=baseLogger.create("interpolator");this.options=options;this.format=options.interpolation&&options.interpolation.format||function(value){return value;};this.init(options);}return _createClass2(Interpolator,[{key:"init",value:function init(){var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!options.interpolation)options.interpolation={escapeValue:true};var _options$interpolatio=options.interpolation,escape$1=_options$interpolatio.escape,escapeValue=_options$interpolatio.escapeValue,useRawValueToEscape=_options$interpolatio.useRawValueToEscape,prefix2=_options$interpolatio.prefix,prefixEscaped=_options$interpolatio.prefixEscaped,suffix=_options$interpolatio.suffix,suffixEscaped=_options$interpolatio.suffixEscaped,formatSeparator=_options$interpolatio.formatSeparator,unescapeSuffix=_options$interpolatio.unescapeSuffix,unescapePrefix=_options$interpolatio.unescapePrefix,nestingPrefix=_options$interpolatio.nestingPrefix,nestingPrefixEscaped=_options$interpolatio.nestingPrefixEscaped,nestingSuffix=_options$interpolatio.nestingSuffix,nestingSuffixEscaped=_options$interpolatio.nestingSuffixEscaped,nestingOptionsSeparator=_options$interpolatio.nestingOptionsSeparator,maxReplaces=_options$interpolatio.maxReplaces,alwaysFormat=_options$interpolatio.alwaysFormat;this.escape=escape$1!==void 0?escape$1:escape;this.escapeValue=escapeValue!==void 0?escapeValue:true;this.useRawValueToEscape=useRawValueToEscape!==void 0?useRawValueToEscape:false;this.prefix=prefix2?regexEscape(prefix2):prefixEscaped||"{{";this.suffix=suffix?regexEscape(suffix):suffixEscaped||"}}";this.formatSeparator=formatSeparator||",";this.unescapePrefix=unescapeSuffix?"":unescapePrefix||"-";this.unescapeSuffix=this.unescapePrefix?"":unescapeSuffix||"";this.nestingPrefix=nestingPrefix?regexEscape(nestingPrefix):nestingPrefixEscaped||regexEscape("$t(");this.nestingSuffix=nestingSuffix?regexEscape(nestingSuffix):nestingSuffixEscaped||regexEscape(")");this.nestingOptionsSeparator=nestingOptionsSeparator||",";this.maxReplaces=maxReplaces||1e3;this.alwaysFormat=alwaysFormat!==void 0?alwaysFormat:false;this.resetRegExp();}},{key:"reset",value:function reset(){if(this.options)this.init(this.options);}},{key:"resetRegExp",value:function resetRegExp(){var getOrResetRegExp=function getOrResetRegExp(existingRegExp,pattern){if(existingRegExp&&existingRegExp.source===pattern){existingRegExp.lastIndex=0;return existingRegExp;}return new RegExp(pattern,"g");};this.regexp=getOrResetRegExp(this.regexp,"".concat(this.prefix,"(.+?)").concat(this.suffix));this.regexpUnescape=getOrResetRegExp(this.regexpUnescape,"".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix));this.nestingRegexp=getOrResetRegExp(this.nestingRegexp,"".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix));}},{key:"interpolate",value:function interpolate(str,data,lng,options){var _this21=this;var match2;var value;var replaces;var defaultData=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};var handleFormat=function handleFormat(key){if(key.indexOf(_this21.formatSeparator)<0){var path=deepFindWithDefaults(data,defaultData,key,_this21.options.keySeparator,_this21.options.ignoreJSONStructure);return _this21.alwaysFormat?_this21.format(path,void 0,lng,__spreadProps(__spreadValues(__spreadValues({},options),data),{interpolationkey:key})):path;}var p=key.split(_this21.formatSeparator);var k=p.shift().trim();var f=p.join(_this21.formatSeparator).trim();return _this21.format(deepFindWithDefaults(data,defaultData,k,_this21.options.keySeparator,_this21.options.ignoreJSONStructure),f,lng,__spreadProps(__spreadValues(__spreadValues({},options),data),{interpolationkey:k}));};this.resetRegExp();var missingInterpolationHandler=options&&options.missingInterpolationHandler||this.options.missingInterpolationHandler;var skipOnVariables=options&&options.interpolation&&options.interpolation.skipOnVariables!==void 0?options.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;var todos=[{regex:this.regexpUnescape,safeValue:function safeValue(val){return regexSafe(val);}},{regex:this.regexp,safeValue:function safeValue(val){return _this21.escapeValue?regexSafe(_this21.escape(val)):regexSafe(val);}}];todos.forEach(function(todo){replaces=0;while(match2=todo.regex.exec(str)){var matchedVar=match2[1].trim();value=handleFormat(matchedVar);if(value===void 0){if(typeof missingInterpolationHandler==="function"){var temp=missingInterpolationHandler(str,match2,options);value=isString(temp)?temp:"";}else if(options&&Object.prototype.hasOwnProperty.call(options,matchedVar)){value="";}else if(skipOnVariables){value=match2[0];continue;}else{_this21.logger.warn("missed to pass in variable ".concat(matchedVar," for interpolating ").concat(str));value="";}}else if(!isString(value)&&!_this21.useRawValueToEscape){value=makeString(value);}var safeValue=todo.safeValue(value);str=str.replace(match2[0],safeValue);if(skipOnVariables){todo.regex.lastIndex+=value.length;todo.regex.lastIndex-=match2[0].length;}else{todo.regex.lastIndex=0;}replaces++;if(replaces>=_this21.maxReplaces){break;}}});return str;}},{key:"nest",value:function nest(str,fc){var _this22=this;var options=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var match2;var value;var clonedOptions;var handleHasOptions=function handleHasOptions(key,inheritedOptions){var sep=_this22.nestingOptionsSeparator;if(key.indexOf(sep)<0)return key;var c=key.split(new RegExp("".concat(sep,"[ ]*{")));var optionsString="{".concat(c[1]);key=c[0];optionsString=_this22.interpolate(optionsString,clonedOptions);var matchedSingleQuotes=optionsString.match(/'/g);var matchedDoubleQuotes=optionsString.match(/"/g);if(matchedSingleQuotes&&matchedSingleQuotes.length%2===0&&!matchedDoubleQuotes||matchedDoubleQuotes.length%2!==0){optionsString=optionsString.replace(/'/g,'"');}try{clonedOptions=JSON.parse(optionsString);if(inheritedOptions)clonedOptions=__spreadValues(__spreadValues({},inheritedOptions),clonedOptions);}catch(e){_this22.logger.warn("failed parsing options string in nesting for key ".concat(key),e);return"".concat(key).concat(sep).concat(optionsString);}if(clonedOptions.defaultValue&&clonedOptions.defaultValue.indexOf(_this22.prefix)>-1)delete clonedOptions.defaultValue;return key;};while(match2=this.nestingRegexp.exec(str)){var formatters2=[];clonedOptions=__spreadValues({},options);clonedOptions=clonedOptions.replace&&!isString(clonedOptions.replace)?clonedOptions.replace:clonedOptions;clonedOptions.applyPostProcessor=false;delete clonedOptions.defaultValue;var doReduce=false;if(match2[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(match2[1])){var r2=match2[1].split(this.formatSeparator).map(function(elem){return elem.trim();});match2[1]=r2.shift();formatters2=r2;doReduce=true;}value=fc(handleHasOptions.call(this,match2[1].trim(),clonedOptions),clonedOptions);if(value&&match2[0]===str&&!isString(value))return value;if(!isString(value))value=makeString(value);if(!value){this.logger.warn("missed to resolve ".concat(match2[1]," for nesting ").concat(str));value="";}if(doReduce){value=formatters2.reduce(function(v,f){return _this22.format(v,f,options.lng,__spreadProps(__spreadValues({},options),{interpolationkey:match2[1].trim()}));},value.trim());}str=str.replace(match2[0],value);this.regexp.lastIndex=0;}return str;}}]);}();var parseFormatStr=function parseFormatStr(formatStr){var formatName=formatStr.toLowerCase().trim();var formatOptions={};if(formatStr.indexOf("(")>-1){var p=formatStr.split("(");formatName=p[0].toLowerCase().trim();var optStr=p[1].substring(0,p[1].length-1);if(formatName==="currency"&&optStr.indexOf(":")<0){if(!formatOptions.currency)formatOptions.currency=optStr.trim();}else if(formatName==="relativetime"&&optStr.indexOf(":")<0){if(!formatOptions.range)formatOptions.range=optStr.trim();}else{var opts=optStr.split(";");opts.forEach(function(opt){if(opt){var _opt$split=opt.split(":"),_opt$split2=_toArray(_opt$split),key=_opt$split2[0],rest=_opt$split2.slice(1);var val=rest.join(":").trim().replace(/^'+|'+$/g,"");var trimmedKey=key.trim();if(!formatOptions[trimmedKey])formatOptions[trimmedKey]=val;if(val==="false")formatOptions[trimmedKey]=false;if(val==="true")formatOptions[trimmedKey]=true;if(!isNaN(val))formatOptions[trimmedKey]=parseInt(val,10);}});}}return{formatName:formatName,formatOptions:formatOptions};};var createCachedFormatter=function createCachedFormatter(fn3){var cache={};return function(val,lng,options){var optForCache=options;if(options&&options.interpolationkey&&options.formatParams&&options.formatParams[options.interpolationkey]&&options[options.interpolationkey]){optForCache=__spreadProps(__spreadValues({},optForCache),_defineProperty2({},options.interpolationkey,void 0));}var key=lng+JSON.stringify(optForCache);var formatter=cache[key];if(!formatter){formatter=fn3(getCleanedCode(lng),options);cache[key]=formatter;}return formatter(val);};};var Formatter=/*#__PURE__*/function(){function Formatter(){_classCallCheck2(this,Formatter);var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=baseLogger.create("formatter");this.options=options;this.formats={number:createCachedFormatter(function(lng,opt){var formatter=new Intl.NumberFormat(lng,__spreadValues({},opt));return function(val){return formatter.format(val);};}),currency:createCachedFormatter(function(lng,opt){var formatter=new Intl.NumberFormat(lng,__spreadProps(__spreadValues({},opt),{style:"currency"}));return function(val){return formatter.format(val);};}),datetime:createCachedFormatter(function(lng,opt){var formatter=new Intl.DateTimeFormat(lng,__spreadValues({},opt));return function(val){return formatter.format(val);};}),relativetime:createCachedFormatter(function(lng,opt){var formatter=new Intl.RelativeTimeFormat(lng,__spreadValues({},opt));return function(val){return formatter.format(val,opt.range||"day");};}),list:createCachedFormatter(function(lng,opt){var formatter=new Intl.ListFormat(lng,__spreadValues({},opt));return function(val){return formatter.format(val);};})};this.init(options);}return _createClass2(Formatter,[{key:"init",value:function init(services){var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=options.interpolation.formatSeparator||",";}},{key:"add",value:function add(name,fc){this.formats[name.toLowerCase().trim()]=fc;}},{key:"addCached",value:function addCached(name,fc){this.formats[name.toLowerCase().trim()]=createCachedFormatter(fc);}},{key:"format",value:function format(value,format2,lng){var _this23=this;var options=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};var formats=format2.split(this.formatSeparator);if(formats.length>1&&formats[0].indexOf("(")>1&&formats[0].indexOf(")")<0&&formats.find(function(f){return f.indexOf(")")>-1;})){var lastIndex=formats.findIndex(function(f){return f.indexOf(")")>-1;});formats[0]=[formats[0]].concat(_toConsumableArray2(formats.splice(1,lastIndex))).join(this.formatSeparator);}var result=formats.reduce(function(mem,f){var _parseFormatStr=parseFormatStr(f),formatName=_parseFormatStr.formatName,formatOptions=_parseFormatStr.formatOptions;if(_this23.formats[formatName]){var formatted=mem;try{var valOptions=options&&options.formatParams&&options.formatParams[options.interpolationkey]||{};var l=valOptions.locale||valOptions.lng||options.locale||options.lng||lng;formatted=_this23.formats[formatName](mem,l,__spreadValues(__spreadValues(__spreadValues({},formatOptions),options),valOptions));}catch(error2){_this23.logger.warn(error2);}return formatted;}else{_this23.logger.warn("there was no format function for ".concat(formatName));}return mem;},value);return result;}}]);}();var removePending=function removePending(q,name){if(q.pending[name]!==void 0){delete q.pending[name];q.pendingCount--;}};var Connector=/*#__PURE__*/function(_EventEmitter3){function Connector(backend,store,services){var _this24;_classCallCheck2(this,Connector);var options=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};_this24=_callSuper(this,Connector);_this24.backend=backend;_this24.store=store;_this24.services=services;_this24.languageUtils=services.languageUtils;_this24.options=options;_this24.logger=baseLogger.create("backendConnector");_this24.waitingReads=[];_this24.maxParallelReads=options.maxParallelReads||10;_this24.readingCalls=0;_this24.maxRetries=options.maxRetries>=0?options.maxRetries:5;_this24.retryTimeout=options.retryTimeout>=1?options.retryTimeout:350;_this24.state={};_this24.queue=[];if(_this24.backend&&_this24.backend.init){_this24.backend.init(services,options.backend,options);}return _this24;}_inherits2(Connector,_EventEmitter3);return _createClass2(Connector,[{key:"queueLoad",value:function queueLoad(languages,namespaces,options,callback){var _this25=this;var toLoad={};var pending={};var toLoadLanguages={};var toLoadNamespaces={};languages.forEach(function(lng){var hasAllNamespaces=true;namespaces.forEach(function(ns){var name="".concat(lng,"|").concat(ns);if(!options.reload&&_this25.store.hasResourceBundle(lng,ns)){_this25.state[name]=2;}else if(_this25.state[name]<0);else if(_this25.state[name]===1){if(pending[name]===void 0)pending[name]=true;}else{_this25.state[name]=1;hasAllNamespaces=false;if(pending[name]===void 0)pending[name]=true;if(toLoad[name]===void 0)toLoad[name]=true;if(toLoadNamespaces[ns]===void 0)toLoadNamespaces[ns]=true;}});if(!hasAllNamespaces)toLoadLanguages[lng]=true;});if(Object.keys(toLoad).length||Object.keys(pending).length){this.queue.push({pending:pending,pendingCount:Object.keys(pending).length,loaded:{},errors:[],callback:callback});}return{toLoad:Object.keys(toLoad),pending:Object.keys(pending),toLoadLanguages:Object.keys(toLoadLanguages),toLoadNamespaces:Object.keys(toLoadNamespaces)};}},{key:"loaded",value:function loaded(name,err,data){var s=name.split("|");var lng=s[0];var ns=s[1];if(err)this.emit("failedLoading",lng,ns,err);if(!err&&data){this.store.addResourceBundle(lng,ns,data,void 0,void 0,{skipCopy:true});}this.state[name]=err?-1:2;if(err&&data)this.state[name]=0;var loaded={};this.queue.forEach(function(q){pushPath(q.loaded,[lng],ns);removePending(q,name);if(err)q.errors.push(err);if(q.pendingCount===0&&!q.done){Object.keys(q.loaded).forEach(function(l){if(!loaded[l])loaded[l]={};var loadedKeys=q.loaded[l];if(loadedKeys.length){loadedKeys.forEach(function(n){if(loaded[l][n]===void 0)loaded[l][n]=true;});}});q.done=true;if(q.errors.length){q.callback(q.errors);}else{q.callback();}}});this.emit("loaded",loaded);this.queue=this.queue.filter(function(q){return!q.done;});}},{key:"read",value:function read(lng,ns,fcName){var _this26=this;var tried=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;var wait=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout;var callback=arguments.length>5?arguments[5]:void 0;if(!lng.length)return callback(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:lng,ns:ns,fcName:fcName,tried:tried,wait:wait,callback:callback});return;}this.readingCalls++;var resolver=function resolver(err,data){_this26.readingCalls--;if(_this26.waitingReads.length>0){var next2=_this26.waitingReads.shift();_this26.read(next2.lng,next2.ns,next2.fcName,next2.tried,next2.wait,next2.callback);}if(err&&data&&tried<_this26.maxRetries){setTimeout(function(){_this26.read.call(_this26,lng,ns,fcName,tried+1,wait*2,callback);},wait);return;}callback(err,data);};var fc=this.backend[fcName].bind(this.backend);if(fc.length===2){try{var r2=fc(lng,ns);if(r2&&typeof r2.then==="function"){r2.then(function(data){return resolver(null,data);}).catch(resolver);}else{resolver(null,r2);}}catch(err){resolver(err);}return;}return fc(lng,ns,resolver);}},{key:"prepareLoading",value:function prepareLoading(languages,namespaces){var _this27=this;var options=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var callback=arguments.length>3?arguments[3]:void 0;if(!this.backend){this.logger.warn("No backend was added via i18next.use. Will not load resources.");return callback&&callback();}if(isString(languages))languages=this.languageUtils.toResolveHierarchy(languages);if(isString(namespaces))namespaces=[namespaces];var toLoad=this.queueLoad(languages,namespaces,options,callback);if(!toLoad.toLoad.length){if(!toLoad.pending.length)callback();return null;}toLoad.toLoad.forEach(function(name){_this27.loadOne(name);});}},{key:"load",value:function load(languages,namespaces,callback){this.prepareLoading(languages,namespaces,{},callback);}},{key:"reload",value:function reload(languages,namespaces,callback){this.prepareLoading(languages,namespaces,{reload:true},callback);}},{key:"loadOne",value:function loadOne(name){var _this28=this;var prefix2=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";var s=name.split("|");var lng=s[0];var ns=s[1];this.read(lng,ns,"read",void 0,void 0,function(err,data){if(err)_this28.logger.warn("".concat(prefix2,"loading namespace ").concat(ns," for language ").concat(lng," failed"),err);if(!err&&data)_this28.logger.log("".concat(prefix2,"loaded namespace ").concat(ns," for language ").concat(lng),data);_this28.loaded(name,err,data);});}},{key:"saveMissing",value:function saveMissing(languages,namespace,key,fallbackValue,isUpdate){var options=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};var clb=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(namespace)){this.logger.warn("did not save key \"".concat(key,"\" as the namespace \"").concat(namespace,"\" was not yet loaded"),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return;}if(key===void 0||key===null||key==="")return;if(this.backend&&this.backend.create){var opts=__spreadProps(__spreadValues({},options),{isUpdate:isUpdate});var fc=this.backend.create.bind(this.backend);if(fc.length<6){try{var r2;if(fc.length===5){r2=fc(languages,namespace,key,fallbackValue,opts);}else{r2=fc(languages,namespace,key,fallbackValue);}if(r2&&typeof r2.then==="function"){r2.then(function(data){return clb(null,data);}).catch(clb);}else{clb(null,r2);}}catch(err){clb(err);}}else{fc(languages,namespace,key,fallbackValue,clb,opts);}}if(!languages||!languages[0])return;this.store.addResource(languages[0],namespace,key,fallbackValue);}}]);}(EventEmitter);var get$2=function get$2(){return{debug:false,initImmediate:true,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:false,supportedLngs:false,nonExplicitSupportedLngs:false,load:"all",preload:false,simplifyPluralSuffix:true,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:false,saveMissing:false,updateMissing:false,saveMissingTo:"fallback",saveMissingPlurals:true,missingKeyHandler:false,missingInterpolationHandler:false,postProcess:false,postProcessPassResolved:false,returnNull:false,returnEmptyString:true,returnObjects:false,joinArrays:false,returnedObjectHandler:false,parseMissingKeyHandler:false,appendNamespaceToMissingKey:false,appendNamespaceToCIMode:false,overloadTranslationOptionHandler:function overloadTranslationOptionHandler(args){var ret={};if(_typeof2(args[1])==="object")ret=args[1];if(isString(args[1]))ret.defaultValue=args[1];if(isString(args[2]))ret.tDescription=args[2];if(_typeof2(args[2])==="object"||_typeof2(args[3])==="object"){var _options3=args[3]||args[2];Object.keys(_options3).forEach(function(key){ret[key]=_options3[key];});}return ret;},interpolation:{escapeValue:true,format:function format(value){return value;},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:true}};};var transformOptions=function transformOptions(options){if(isString(options.ns))options.ns=[options.ns];if(isString(options.fallbackLng))options.fallbackLng=[options.fallbackLng];if(isString(options.fallbackNS))options.fallbackNS=[options.fallbackNS];if(options.supportedLngs&&options.supportedLngs.indexOf("cimode")<0){options.supportedLngs=options.supportedLngs.concat(["cimode"]);}return options;};var noop$2=function noop$2(){};var bindMemberFunctions=function bindMemberFunctions(inst){var mems=Object.getOwnPropertyNames(Object.getPrototypeOf(inst));mems.forEach(function(mem){if(typeof inst[mem]==="function"){inst[mem]=inst[mem].bind(inst);}});};var I18n=/*#__PURE__*/function(_EventEmitter4){function I18n(){var _this29;_classCallCheck2(this,I18n);var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var callback=arguments.length>1?arguments[1]:void 0;_this29=_callSuper(this,I18n);_this29.options=transformOptions(options);_this29.services={};_this29.logger=baseLogger;_this29.modules={external:[]};bindMemberFunctions(_this29);if(callback&&!_this29.isInitialized&&!options.isClone){if(!_this29.options.initImmediate){_this29.init(options,callback);return _possibleConstructorReturn2(_this29,_this29);}setTimeout(function(){_this29.init(options,callback);},0);}return _this29;}_inherits2(I18n,_EventEmitter4);return _createClass2(I18n,[{key:"init",value:function init(){var _this30=this;var _this=this;var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var callback=arguments.length>1?arguments[1]:void 0;this.isInitializing=true;if(typeof options==="function"){callback=options;options={};}if(!options.defaultNS&&options.defaultNS!==false&&options.ns){if(isString(options.ns)){options.defaultNS=options.ns;}else if(options.ns.indexOf("translation")<0){options.defaultNS=options.ns[0];}}var defOpts=get$2();this.options=__spreadValues(__spreadValues(__spreadValues({},defOpts),this.options),transformOptions(options));if(this.options.compatibilityAPI!=="v1"){this.options.interpolation=__spreadValues(__spreadValues({},defOpts.interpolation),this.options.interpolation);}if(options.keySeparator!==void 0){this.options.userDefinedKeySeparator=options.keySeparator;}if(options.nsSeparator!==void 0){this.options.userDefinedNsSeparator=options.nsSeparator;}var createClassOnDemand=function createClassOnDemand(ClassOrObject){if(!ClassOrObject)return null;if(typeof ClassOrObject==="function")return new ClassOrObject();return ClassOrObject;};if(!this.options.isClone){if(this.modules.logger){baseLogger.init(createClassOnDemand(this.modules.logger),this.options);}else{baseLogger.init(null,this.options);}var formatter;if(this.modules.formatter){formatter=this.modules.formatter;}else if(typeof Intl!=="undefined"){formatter=Formatter;}var lu=new LanguageUtil(this.options);this.store=new ResourceStore(this.options.resources,this.options);var s=this.services;s.logger=baseLogger;s.resourceStore=this.store;s.languageUtils=lu;s.pluralResolver=new PluralResolver(lu,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix});if(formatter&&(!this.options.interpolation.format||this.options.interpolation.format===defOpts.interpolation.format)){s.formatter=createClassOnDemand(formatter);s.formatter.init(s,this.options);this.options.interpolation.format=s.formatter.format.bind(s.formatter);}s.interpolator=new Interpolator(this.options);s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)};s.backendConnector=new Connector(createClassOnDemand(this.modules.backend),s.resourceStore,s,this.options);s.backendConnector.on("*",function(event){for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key];}_this.emit.apply(_this,[event].concat(args));});if(this.modules.languageDetector){s.languageDetector=createClassOnDemand(this.modules.languageDetector);if(s.languageDetector.init)s.languageDetector.init(s,this.options.detection,this.options);}if(this.modules.i18nFormat){s.i18nFormat=createClassOnDemand(this.modules.i18nFormat);if(s.i18nFormat.init)s.i18nFormat.init(this);}this.translator=new Translator(this.services,this.options);this.translator.on("*",function(event){for(var _len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++){args[_key2-1]=arguments[_key2];}_this.emit.apply(_this,[event].concat(args));});this.modules.external.forEach(function(m){if(m.init)m.init(_this30);});}this.format=this.options.interpolation.format;if(!callback)callback=noop$2;if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var codes=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);if(codes.length>0&&codes[0]!=="dev")this.options.lng=codes[0];}if(!this.services.languageDetector&&!this.options.lng){this.logger.warn("init: no languageDetector is used and no lng is defined");}var storeApi=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];storeApi.forEach(function(fcName){_this30[fcName]=function(){var _this$store;return(_this$store=_this.store)[fcName].apply(_this$store,arguments);};});var storeApiChained=["addResource","addResources","addResourceBundle","removeResourceBundle"];storeApiChained.forEach(function(fcName){_this30[fcName]=function(){var _this$store2;(_this$store2=_this.store)[fcName].apply(_this$store2,arguments);return _this;};});var deferred=defer();var load=function load(){var finish=function finish(err,t){_this30.isInitializing=false;if(_this30.isInitialized&&!_this30.initializedStoreOnce)_this30.logger.warn("init: i18next is already initialized. You should call init just once!");_this30.isInitialized=true;if(!_this30.options.isClone)_this30.logger.log("initialized",_this30.options);_this30.emit("initialized",_this30.options);deferred.resolve(t);callback(err,t);};if(_this30.languages&&_this30.options.compatibilityAPI!=="v1"&&!_this30.isInitialized)return finish(null,_this30.t.bind(_this30));_this30.changeLanguage(_this30.options.lng,finish);};if(this.options.resources||!this.options.initImmediate){load();}else{setTimeout(load,0);}return deferred;}},{key:"loadResources",value:function loadResources(language){var _this31=this;var callback=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$2;var usedCallback=callback;var usedLng=isString(language)?language:this.language;if(typeof language==="function")usedCallback=language;if(!this.options.resources||this.options.partialBundledLanguages){if(usedLng&&usedLng.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return usedCallback();var toLoad=[];var append2=function append2(lng){if(!lng)return;if(lng==="cimode")return;var lngs=_this31.services.languageUtils.toResolveHierarchy(lng);lngs.forEach(function(l){if(l==="cimode")return;if(toLoad.indexOf(l)<0)toLoad.push(l);});};if(!usedLng){var fallbacks=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);fallbacks.forEach(function(l){return append2(l);});}else{append2(usedLng);}if(this.options.preload){this.options.preload.forEach(function(l){return append2(l);});}this.services.backendConnector.load(toLoad,this.options.ns,function(e){if(!e&&!_this31.resolvedLanguage&&_this31.language)_this31.setResolvedLanguage(_this31.language);usedCallback(e);});}else{usedCallback(null);}}},{key:"reloadResources",value:function reloadResources(lngs,ns,callback){var deferred=defer();if(typeof lngs==="function"){callback=lngs;lngs=void 0;}if(typeof ns==="function"){callback=ns;ns=void 0;}if(!lngs)lngs=this.languages;if(!ns)ns=this.options.ns;if(!callback)callback=noop$2;this.services.backendConnector.reload(lngs,ns,function(err){deferred.resolve();callback(err);});return deferred;}},{key:"use",value:function use(module){if(!module)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!module.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");if(module.type==="backend"){this.modules.backend=module;}if(module.type==="logger"||module.log&&module.warn&&module.error){this.modules.logger=module;}if(module.type==="languageDetector"){this.modules.languageDetector=module;}if(module.type==="i18nFormat"){this.modules.i18nFormat=module;}if(module.type==="postProcessor"){postProcessor.addPostProcessor(module);}if(module.type==="formatter"){this.modules.formatter=module;}if(module.type==="3rdParty"){this.modules.external.push(module);}return this;}},{key:"setResolvedLanguage",value:function setResolvedLanguage(l){if(!l||!this.languages)return;if(["cimode","dev"].indexOf(l)>-1)return;for(var li=0;li<this.languages.length;li++){var lngInLngs=this.languages[li];if(["cimode","dev"].indexOf(lngInLngs)>-1)continue;if(this.store.hasLanguageSomeTranslations(lngInLngs)){this.resolvedLanguage=lngInLngs;break;}}}},{key:"changeLanguage",value:function changeLanguage(lng,callback){var _this32=this;var _this2=this;this.isLanguageChangingTo=lng;var deferred=defer();this.emit("languageChanging",lng);var setLngProps=function setLngProps(l){_this32.language=l;_this32.languages=_this32.services.languageUtils.toResolveHierarchy(l);_this32.resolvedLanguage=void 0;_this32.setResolvedLanguage(l);};var done=function done(err,l){if(l){setLngProps(l);_this32.translator.changeLanguage(l);_this32.isLanguageChangingTo=void 0;_this32.emit("languageChanged",l);_this32.logger.log("languageChanged",l);}else{_this32.isLanguageChangingTo=void 0;}deferred.resolve(function(){return _this2.t.apply(_this2,arguments);});if(callback)callback(err,function(){return _this2.t.apply(_this2,arguments);});};var setLng=function setLng(lngs){if(!lng&&!lngs&&_this32.services.languageDetector)lngs=[];var l=isString(lngs)?lngs:_this32.services.languageUtils.getBestMatchFromCodes(lngs);if(l){if(!_this32.language){setLngProps(l);}if(!_this32.translator.language)_this32.translator.changeLanguage(l);if(_this32.services.languageDetector&&_this32.services.languageDetector.cacheUserLanguage)_this32.services.languageDetector.cacheUserLanguage(l);}_this32.loadResources(l,function(err){done(err,l);});};if(!lng&&this.services.languageDetector&&!this.services.languageDetector.async){setLng(this.services.languageDetector.detect());}else if(!lng&&this.services.languageDetector&&this.services.languageDetector.async){if(this.services.languageDetector.detect.length===0){this.services.languageDetector.detect().then(setLng);}else{this.services.languageDetector.detect(setLng);}}else{setLng(lng);}return deferred;}},{key:"getFixedT",value:function getFixedT(lng,ns,keyPrefix){var _this3=this;var _fixedT=function fixedT(key,opts){var options;if(_typeof2(opts)!=="object"){for(var _len3=arguments.length,rest=new Array(_len3>2?_len3-2:0),_key3=2;_key3<_len3;_key3++){rest[_key3-2]=arguments[_key3];}options=_this3.options.overloadTranslationOptionHandler([key,opts].concat(rest));}else{options=__spreadValues({},opts);}options.lng=options.lng||_fixedT.lng;options.lngs=options.lngs||_fixedT.lngs;options.ns=options.ns||_fixedT.ns;if(options.keyPrefix!=="")options.keyPrefix=options.keyPrefix||keyPrefix||_fixedT.keyPrefix;var keySeparator=_this3.options.keySeparator||".";var resultKey;if(options.keyPrefix&&Array.isArray(key)){resultKey=key.map(function(k){return"".concat(options.keyPrefix).concat(keySeparator).concat(k);});}else{resultKey=options.keyPrefix?"".concat(options.keyPrefix).concat(keySeparator).concat(key):key;}return _this3.t(resultKey,options);};if(isString(lng)){_fixedT.lng=lng;}else{_fixedT.lngs=lng;}_fixedT.ns=ns;_fixedT.keyPrefix=keyPrefix;return _fixedT;}},{key:"t",value:function t(){var _this$translator;return this.translator&&(_this$translator=this.translator).translate.apply(_this$translator,arguments);}},{key:"exists",value:function exists(){var _this$translator2;return this.translator&&(_this$translator2=this.translator).exists.apply(_this$translator2,arguments);}},{key:"setDefaultNamespace",value:function setDefaultNamespace(ns){this.options.defaultNS=ns;}},{key:"hasLoadedNamespace",value:function hasLoadedNamespace(ns){var _this33=this;var options=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized){this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages);return false;}if(!this.languages||!this.languages.length){this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages);return false;}var lng=options.lng||this.resolvedLanguage||this.languages[0];var fallbackLng=this.options?this.options.fallbackLng:false;var lastLng=this.languages[this.languages.length-1];if(lng.toLowerCase()==="cimode")return true;var loadNotPending=function loadNotPending(l,n){var loadState=_this33.services.backendConnector.state["".concat(l,"|").concat(n)];return loadState===-1||loadState===0||loadState===2;};if(options.precheck){var preResult=options.precheck(this,loadNotPending);if(preResult!==void 0)return preResult;}if(this.hasResourceBundle(lng,ns))return true;if(!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages)return true;if(loadNotPending(lng,ns)&&(!fallbackLng||loadNotPending(lastLng,ns)))return true;return false;}},{key:"loadNamespaces",value:function loadNamespaces(ns,callback){var _this34=this;var deferred=defer();if(!this.options.ns){if(callback)callback();return Promise.resolve();}if(isString(ns))ns=[ns];ns.forEach(function(n){if(_this34.options.ns.indexOf(n)<0)_this34.options.ns.push(n);});this.loadResources(function(err){deferred.resolve();if(callback)callback(err);});return deferred;}},{key:"loadLanguages",value:function loadLanguages(lngs,callback){var _this35=this;var deferred=defer();if(isString(lngs))lngs=[lngs];var preloaded=this.options.preload||[];var newLngs=lngs.filter(function(lng){return preloaded.indexOf(lng)<0&&_this35.services.languageUtils.isSupportedCode(lng);});if(!newLngs.length){if(callback)callback();return Promise.resolve();}this.options.preload=preloaded.concat(newLngs);this.loadResources(function(err){deferred.resolve();if(callback)callback(err);});return deferred;}},{key:"dir",value:function dir(lng){if(!lng)lng=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language);if(!lng)return"rtl";var rtlLngs=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"];var languageUtils=this.services&&this.services.languageUtils||new LanguageUtil(get$2());return rtlLngs.indexOf(languageUtils.getLanguagePartFromCode(lng))>-1||lng.toLowerCase().indexOf("-arab")>1?"rtl":"ltr";}},{key:"cloneInstance",value:function cloneInstance(){var _this36=this;var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var callback=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop$2;var forkResourceStore=options.forkResourceStore;if(forkResourceStore)delete options.forkResourceStore;var mergedOptions=__spreadValues(__spreadValues(__spreadValues({},this.options),options),{isClone:true});var clone=new I18n(mergedOptions);if(options.debug!==void 0||options.prefix!==void 0){clone.logger=clone.logger.clone(options);}var membersToCopy=["store","services","language"];membersToCopy.forEach(function(m){clone[m]=_this36[m];});clone.services=__spreadValues({},this.services);clone.services.utils={hasLoadedNamespace:clone.hasLoadedNamespace.bind(clone)};if(forkResourceStore){clone.store=new ResourceStore(this.store.data,mergedOptions);clone.services.resourceStore=clone.store;}clone.translator=new Translator(clone.services,mergedOptions);clone.translator.on("*",function(event){for(var _len4=arguments.length,args=new Array(_len4>1?_len4-1:0),_key4=1;_key4<_len4;_key4++){args[_key4-1]=arguments[_key4];}clone.emit.apply(clone,[event].concat(args));});clone.init(mergedOptions,callback);clone.translator.options=mergedOptions;clone.translator.backendConnector.services.utils={hasLoadedNamespace:clone.hasLoadedNamespace.bind(clone)};return clone;}},{key:"toJSON",value:function toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage};}}],[{key:"createInstance",value:function createInstance(){var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var callback=arguments.length>1?arguments[1]:void 0;return new I18n(options,callback);}}]);}(EventEmitter);var instance=I18n.createInstance();instance.createInstance=I18n.createInstance;instance.createInstance;instance.dir;instance.init;instance.loadResources;instance.reloadResources;instance.use;instance.changeLanguage;instance.getFixedT;instance.t;instance.exists;instance.setDefaultNamespace;instance.hasLoadedNamespace;instance.loadNamespaces;instance.loadLanguages;var matchHtmlEntity=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;var htmlEntities={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"};var unescapeHtmlEntity=function unescapeHtmlEntity(m){return htmlEntities[m];};var unescape=function unescape(text2){return text2.replace(matchHtmlEntity,unescapeHtmlEntity);};var defaultOptions$1={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:true,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:true,unescape:unescape};var setDefaults=function setDefaults(){var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};defaultOptions$1=__spreadValues(__spreadValues({},defaultOptions$1),options);};var initReactI18next={type:"3rdParty",init:function init(instance2){setDefaults(instance2.options.react);}};var onChangeSelectField="\n Callback que se dispara cuando cambia el valor del input.\n \n #### Parámetros\n event: `React.ChangeEvent<HTMLInputElement>`\n - `event.target.name`: El nombre del input.\n - `event.target.value`: El valor actual del input, que debe cumplir con la siguiente interfaz:\n \n ```typescript\n interface SelectOption {\n label: string;\n value: string | number;\n [key: string]: any;\n }\n ```\n";var onInputChange="\n Callback que se ejecuta cuando escribimos algo en el buscador.\n \n #### Parámetros\n event: `React.ChangeEvent<HTMLInputElement>`\n - `event.target.name`: El nombre del input.\n - `event.target.value`: El valor actual del input\n";var onChangeSearcher="\n Callback que se ejecuta cuando seleccionamos una opcion del buscador.\n \n #### Parámetros\n event: `React.ChangeEvent<HTMLInputElement>`\n - `event.target.name`: El nombre del input.\n - `event.target.value`: El valor actual del input, que debe cumplir con la siguiente interfaz:\n \n ``` typescript\n interface SelectOption {\n label: string;\n value: string | number;\n [key: string]: any;\n }\n ```\n";var onChangeCheckboxInput='\n Callback que se dispara cuando cambia el valor del input.\n \n #### Parámetros\n event: `React.ChangeEvent<HTMLInputElement>`\n - `event.target.name`: El nombre del input.\n - `event.target.value`: Siempre es "on"\n';var onChangeInput="\n Callback que se dispara cuando cambia el valor del input.\n \n #### Parámetros\n event: `React.ChangeEvent<HTMLInputElement>`\n - `event.target.name`: El nombre del input.\n - `event.target.value`: El valor actual del input, que debe cumplir con la siguiente interfaz:\n \n ``` typescript\n value: string | number; \n ```\n";var isOptionDisabled2=" \n Funcion que recibe un valor de tipo SelectOption y deberia devolver un valor booleano\n Si la opción tiene definida un tooltipMessage se va a mostrar al hacer hover.\n \n#### Ejemplo\n ``` typescript\n const isOptionDisabled = (option: SelectOption) => option.value === 2;\n ```\n \n #### Interfaz\n ```typescript\n interface SelectOption {\n label: string;\n value: string | number;\n tooltipMessage?: string;\n [key: string]: any;\n }\n ```\n";var selectFieldDescription='\n #### Ejemplo de uso \n ```typescript\n <SelectField\n name="productId"\n options={[{ label: "1", value: 1 }, { label: "2", value: 2, tooltipMessage: "Este valor no es representativo" }]}\n onChange={(event) => handleChange(event.target.name, event.target.value)}\n isMultiple\n isClearable={false}\n label={localize(\'product\')}\n isOptionDisabled={(option) => option.value == 2}\n rightModifier={shouldShowLoader && <Spinner />}\n />\n ```\n';var formFieldExample='\n #### Ejemplo de uso\n \n ``` typescript\n <FormField\n label="Título"\n name="textInput"\n onChange={(event) => handleChange(event.target.name, event.target.value)}\n placeholder="Placeholder"\n size="md"\n type="text"\n isValid={(inputValue) => _.isNumber(inputValue)}\n />\n ```\n';var isValidInput="\n Funcion que recibe un valor de tipo inputValue y deberia devolver un valor booleano.\n \n #### Por ejemplo: (inputValue) => _.isNumber(inputValue)\n \n ``` typescript\n type inputValue = string | number; \n ```\n";var checkboxInputGroupExample="\n #### Ejemplo de uso\n \n ``` typescript\n <CheckboxInput\n items={[\n {\n id: '1',\n label: 'Opci\xF3n 1'\n },\n {\n id: '2',\n label: 'Opci\xF3n 2'\n },\n {\n disabled: true,\n id: '3',\n label: 'Opci\xF3n 3'\n }\n ]}\n name=\"CheckboxList\"\n onChange={(event) => handleChange(event.target.name, event.target.value)}\n size=\"lg\"\n title=\"Selecciona una opci\xF3n\"\n type=\"checkbox\"\n />\n ```\n";var checkboxInputExample=' \n Versión con una sola opción tipo checkbox y un label personalizado:\n \n ```typescript\n const [checked, setChecked] = React.useState(false)\n <CheckboxInput\n name="Toggle"\n checked={checked}\n onChange={setChecked}\n label={"Amazon"}\n title={locale(\'syncStockFromChannel\')}\n />\n ```\n';var searcherExample=' \n Note la diferencia entre onChange y onInputChange (oficia de onSearch):\n \n ```typescript\n <Searcher\n label="Search label"\n name="Searcher"\n onChange={(event) => onSelectOption(event.target.value)}\n onInputChange={(event) => handleSearch(event.target.value)}\n options={[{ label: \'text\', value: 1 }]}\n />\n ```\n';var saveBarExample="\n #### Uso básico\n ```typescript\n <SaveBar\n saveProps={{\n onSave: () => handleSave(),\n label: 'Save'\n }}\n cancelProps={{\n onCancel: () => handleCancel(),\n label: 'Cancel'\n }}\n />\n ```\n #### Con botón de navegación\n ```typescript\n <SaveBar\n saveProps={{\n onSave: () => handleSave(),\n label: 'Save',\n variant: 'primary'\n }}\n cancelProps={{\n onCancel: () => handleCancel(),\n label: 'Cancel'\n }}\n previousProps={{\n onPrevious: () => handlePrevious(),\n label: 'Previous'\n }}\n />\n ```\n #### Ejemplo completo\n ```typescript\n <SaveBar\n saveProps={{\n onSave: () => handleSave(),\n label: 'Guardar cambios',\n variant: 'success',\n disabled: false,\n onClick: () => {},\n }}\n cancelProps={{\n onCancel: () => handleCancel(),\n label: 'Descartar',\n }}\n previousProps={{\n onPrevious: () => handlePrevious(),\n label: 'Anterior',\n variant: 'primary',\n outline: true,\n disabled: false,\n onClick: () => console.log('Previous clicked'),\n }}\n />\n ```\n";var checkboxInputReduxFormExample="\n #### Ejemplo de uso con Redux Form - CheckboxInput\n \n ```typescript\n <Field\n name=\"salesSync\"\n component={CheckboxInput}\n classComponent={'decrease-stock'}\n props={{\n name: 'cancelSales',\n value: this.salesSync().cancelSales,\n checked: this.salesSync().cancelSales,\n label: this.context.localize('settings.cancelSales')\n }}\n />\n ```\n";var breadcrumbItemFormat="\n ## Formato de BreadcrumbItem\n\n El componente Breadcrumb acepta un array de objetos `BreadcrumbItem` con las siguientes propiedades:\n\n ### Propiedades disponibles:\n\n - **`text`** (string, requerido): El texto que se muestra para el item del breadcrumb\n - **`onClick`** (function, opcional): Función que se ejecuta al hacer click en el item\n - **`isActive`** (boolean, opcional): Indica si el item está activo. Por defecto, el último item se considera activo\n - **`href`** (string, opcional): URL del enlace (actualmente no implementado en el renderizado)\n\n ### Comportamiento:\n\n - Los items con `onClick` se renderizan como botones clickeables\n - Los items sin `onClick` se renderizan como texto estático\n - El último item siempre se considera activo (a menos que se especifique `isActive: true` en otro item)\n - Cada item se separa automáticamente con el símbolo \">\"\n\n ### Ejemplo de uso:\n\n ```tsx\n const breadcrumbItems = [\n { text: 'Dashboard' },\n { text: 'Productos', onClick: () => navigate('/products') },\n { text: 'Detalles', isActive: true }\n ]\n\n <Breadcrumb items={breadcrumbItems} />\n ```\n";var menuItems="Lista de ítems que se mostrarán en el menú.\n \n**Tipo:** `MenuActionItem[]`\n\n```ts\ninterface MenuActionItem {\n label: React.ReactNode\n icon?: React.ReactElement\n onClick?: () => void\n selected?: boolean\n disabled?: boolean\n}\n```\n";var es$2={noResultsFound:"No se encontraron resultados",reloadPage:"Recargar página",selectPlaceholder:"Seleccionar...",selectOption:"Selecciona una opción",noOptionsMessage:"No hay opciones",noFoundOptions:"No se encontraron resultados",selectedPlural:"Seleccionados",selected:"Seleccionado",title:"Título",password:"Contraseña",selectRequiredText:"Campo obligatorio",exportedIcon:"Icono exportado de Material UI",syncStockFromChannel:'Selecciona qué sincronizar desde "canal"',loremIpsum:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",add:"Agregar",previous:"Anterior",continue:"Continuar",cancel:"Cancelar",save:"Guardar",guide:"Guía",size:"Tamaño",hideSelectedOptionsExplainText:"Oculta la opción seleccionada del menu. Solo puede modificarse si es selección simple",switchInput:{options:"Opciones",option:"Opción",large:"Large Switch",medium:"Medium Switch",small:"Small Switch (Default)"},tooltip:{hoverToSee:"Hover sobre mí para ver el tooltip",basicContent:"Este es el contenido del tooltip",showTooltipWhenHoverButton:"Muestra un tooltip al hacer hover sobre un botón.",showTooltipWhenDisabled:"Solo se muestra cuando el botón está deshabilitado",showTooltipWhenDisabledDescription:"Muestra el tooltip únicamente para un botón deshabilitado.",basicDescription:"Componente de tooltip básico que siempre muestra el tooltip al hacer hover.",overflowDescription:"Componente que detecta automáticamente cuando el contenido se desborda y muestra un tooltip solo cuando es necesario.",componentDescription:"Componentes de tooltip que detectan automáticamente cuando el contenido se desborda y muestran un tooltip. Incluye soporte para maxWidth personalizable.",maxWidthDescription:"Ancho máximo del tooltip (px, %, em, etc.). Por defecto: 600px",clickToSee:"Haz clic para ver el tooltip",clickableTitle:"Título del tooltip",clickableDescription:"Ejemplo de tooltip clickeable con contenido complejo incluyendo título y lista con enlaces.",bulletPoint:"Bullet: Lorem ipsum dolor sit.",linkText:"Link"},description:{checkboxInputReduxFormExample:checkboxInputReduxFormExample,onChangeSelectField:onChangeSelectField,onInputChange:onInputChange,onChangeSearcher:onChangeSearcher,onChangeCheckboxInput:onChangeCheckboxInput,onChangeInput:onChangeInput,isOptionDisabled:isOptionDisabled2,reduxForm:{input:"Prop de Redux Form. Cuando uses Redux Form, pasa el prop input desde el componente Field."},selectField:{example:selectFieldDescription,defaultValue:"Esta opción debe ser del tipo (string | number)[] Ej: 2 | [2] | [1,2] donde value = 2",disabled:"Campo deshabilitado",disabledOptions:"Opciones deshabilitadas",noOptions:"Sin opciones disponibles",withIcon:"Select con Icono",fullWidth:"SelectField con tamaño fullwidth que ocupa el 100% del ancho disponible.",labelFullWidth:"Select de ancho completo",getOptionLabel:"Resuelve el label de la opcion a un string. Ejemplo: (option) => localize(option.label)",getOptionValue:"Resuelve el value de una opcion. Ejemplo: (option) => option.id"},actionBar:{example:saveBarExample,saveButton:"Botón de guardar",cancelButton:"Botón de cancelar",previousButton:"Botón de anterior",saveButtonProps:"Props para el botón de guardar",cancelButtonProps:"Props para el botón de cancelar",previousButtonProps:"Props para el botón de anterior",withoutBorder:"Elimina el redondeado de la ActionBar",saveChanges:"Guardar cambios",discard:"Descartar",confirm:"Confirmar",verifySaveButtonOnly:"Verificar que solo se renderiza el botón de guardar",verifyInitialRendering:"Verificar renderizado inicial",clickSaveButton:"Hacer clic en botón guardar",clickCancelButton:"Hacer clic en botón cancelar",clickPreviousButton:"Hacer clic en botón anterior",clickSaveButtonOnly:"Hacer clic en el botón de guardar"},formField:{example:formFieldExample,isValid:isValidInput},checkboxInput:{example:checkboxInputExample,checkboxInputExample:checkboxInputExample,checkboxInputGroupExample:checkboxInputGroupExample},switchInput:{example:"Example of a single switch component."},icons:{size:"Tamaño del ícono en píxeles"},searcher:{example:searcherExample,exampleOption:"Ejemplo de búsqueda",searchPlaceholder:"Escribí para buscar...",searchLabel:"Buscar opción",noResults:"No se encontraron resultados",writeToSearch:"Escribí para buscar",clearOnSelectDescription:"Limpia el texto del input después de seleccionar una opción",clearOnSelectStoryDescription:"Ejemplo que muestra cómo se borra el texto de entrada después de seleccionar una opción cuando clearOnSelect está habilitado",isLoading:'Indica si el componente está en estado de carga. Se muestra un spinner en el mensaje de "no opciones".',loadOptions:"Función para cargar opciones de forma asíncrona",cacheOptions:"Determina si las opciones se cachean para mejor rendimiento",defaultOptions:"Opciones que se muestran por defecto al abrir el dropdown",apiSimulationDescription:"Ejemplo avanzado de Searcher con loadOptions usando una API real (JSONPlaceholder). Demuestra carga asíncrona, cache, opciones por defecto y manejo de errores.",apiSimulationLabel:"Buscar posts (API real)"},breadcrumb:{itemFormat:breadcrumbItemFormat},alert:{message:"Mensaje de éxito, este contenedor se ajusta al contenido, con un ancho máx de 1140 px",infoMessage:"Mensaje de información, este componente se ajusta al ancho del contenedor full width.",dontShowAgain:"No volver a mostrar este mensaje.",customAlert:"Alerta con ícono personalizado"}},headerSection:{edit:"Editar",duplicate:"Duplicate",delete:"Eliminar"},error:{required:"Este campo es obligatorio",notValid:"El valor ingresado es inválido",requiredDescription:"SelectField que muestra un error de campo obligatorio cuando está marcado como requerido y no tiene valor seleccionado."},copyButton:{copy:"Copiar",copied:"Copiado",textToCopy:"Este texto se copiará automáticamente",textCopied:"Este es el texto que se copiará",copyKey:"Copiar clave",copiedKey:"Clave copiada",custom:"Funcion Custom",running:"Corriendo...",alert:"Función personalizada ejecutada!"},linkWithIcon:{historyChange:"Historial de cambios",edit:"Editar",customAction:"Acción personalizada"},breadcrumb:{historyChanges:"Historial de cambios",products:"Productos",dashboard:"Dashboard",categories:"Categorías",electronics:"Electrónicos",details:"Detalles",page1:"Página 1",page2:"Página 2",page3:"Página 3",home:"Inicio"},datePicker:{name:"Nombre del campo",value:"Valor del campo",size:"Tamaño del componente",disabled:"Deshabilita el componente",required:"Marca el campo como requerido",noErrors:"Oculta los mensajes de error",placeholder:"Texto placeholder",label:"Label que se muestra arriba del input",format:"Formato de fecha que determina automáticamente el tipo de picker: YYYY (años), HH:mm (horas), DD/MM/YYYY (fecha), DD/MM/YYYY HH:mm (fecha y hora)",minDate:"Fecha mínima permitida",maxDate:"Fecha máxima permitida",rightAdornment:"Elemento que se muestra a la derecha del input",meta:"Metadatos para validación (error, touched, etc.)",isValid:"Función para validación personalizada",input:"Input object para integración con Redux Form",onChange:"Callback cuando cambia la fecha",selectDate:"Seleccionar fecha",dateLabel:"Fecha",selectADate:"Selecciona una fecha",requiredDate:"Fecha Requerida",requiredField:"Campo obligatorio",dateAndTime:"Fecha y Hora",dateWithLimits:"Fecha con Límites",onlyFutureDates:"Solo fechas futuras",customFormat:"Formato Personalizado",yearSelector:"Selector de Año",timeSelector:"Selector de Hora",timeSelectorWithSeconds:"Selector de Hora con Segundos",dateTimeSelector:"Selector de Fecha y Hora",selectYear:"Seleccionar año",selectTime:"Seleccionar hora",selectDateTime:"Seleccionar fecha y hora"},dateRangePicker:{size:"Tamaño del componente",disabled:"Deshabilita el componente",required:"Marca el campo como requerido",noErrors:"Oculta los mensajes de error",placeholder:"Texto placeholder",label:"Label que se muestra arriba del input",format:"Formato de fecha (por defecto DD/MM/YYYY)",minDate:"Fecha mínima permitida",maxDate:"Fecha máxima permitida",onChange:"Callback cuando cambia el rango de fechas",selectDateRange:"Seleccionar rango de fechas",dateRangeLabel:"Rango de fechas",disabledRange:"Rango deshabilitado",disabledComponent:"Componente deshabilitado",rangeWithMinMax:"Rango con min/max y deshabilitado",restrictedRange:"Rango restringido y deshabilitado",disabledWithRestrictions:"Story que demuestra la combinación de minDate, maxDate y disabled. El componente está deshabilitado pero también tiene restricciones de fechas.",completelyDisabled:"Story que demuestra el componente completamente deshabilitado usando la propiedad disabled como boolean."},chip:{text:"Texto",title:"Título",onRemove:"Función que se ejecuta al hacer clic en el ícono de cerrar",disabled:"Deshabilita el chip y oculta el ícono de cerrar",variant:"Variante visual del chip que cambia el color de fondo (default, success, error, warning, info)",size:"Tamaño del chip (sm: pequeño, lg: grande, undefined: tamaño por defecto)"},warningModal:{warning:"¡Atención!",dontShowAgain:"No volver a mostrar este mensaje"},tab:{tab1:"Pestaña 1",tab2:"Pestaña 2",tab3:"Pestaña 3"},menuAction:{edit:"Editar",delete:"Eliminar",duplicate:"Duplicar",itemsDescription:menuItems,id:"Identificador único opcional para el menú.\n\n**Tipo:** `string`",maxItems:"Número máximo de ítems visibles antes de mostrar un colapsado",icon:"Ícono opcional que acompaña al menú"},dropdown:{label:"Texto que se muestra en el botón del dropdown",variant:"Variante del botón",color:"Color del botón",disabled:"Si el dropdown está deshabilitado",onItemSelect:"Callback que se ejecuta cuando se selecciona un item",onToggle:"Callback que se ejecuta cuando se abre/cierra el dropdown",options:"Opciones",edit:"Editar",duplicate:"Duplicar",archive:"Archivar",more:"Más opciones",delete:"Eliminar",share:"Compartir",divider:"Divider",size:"Tamaño del botón"},sidebar:{monitoringCenter:"Centro de monitoreo",history:"Historial de cambios",integrations:"Integraciones",deposits:"Depositos y listas de precios",active:"Item Activo",alerts:"Alertas",moreOptions:"Mas opciones",itemsDescription:"Array de items { label, isActive, icon, onClick } para renderizar el sidebar",itemsSummary:"{ label: string; isActive?: Boolean; icon?: ReactNode; onClick?: () => void;}[]"}};var resources={en:{translation:{}},es:{translation:es$2}};instance.use(initReactI18next).init({resources:resources,lng:"es",interpolation:{escapeValue:false},debug:true});var locale=instance.t;var lg$8="selectField-module_lg_adYzi";var body$1="selectField-module_body_KiYeH";var md$7="selectField-module_md_sCCe1";var fullwidth$1="selectField-module_fullwidth_c4Kqo";var styles$l={"producteca-select-field-container":"selectField-module_producteca-select-field-container_wnPdM","producteca-select-field--is-required":"selectField-module_producteca-select-field--is-required_0f07A","producteca-select-field--with-modifier":"selectField-module_producteca-select-field--with-modifier_GN3AL","producteca-select-field-body":"selectField-module_producteca-select-field-body_-gy8S",lg:lg$8,body:body$1,"searcher-body":"selectField-module_searcher-body_8Hpy2",md:md$7,fullwidth:fullwidth$1,"producteca-select-field__is-clearable":"selectField-module_producteca-select-field__is-clearable_FzZz2","producteca-select-field__search-icon":"selectField-module_producteca-select-field__search-icon_rGbiw","producteca-select-field__is-multiple":"selectField-module_producteca-select-field__is-multiple_G71xD","producteca-select-field--is-clearable":"selectField-module_producteca-select-field--is-clearable_GZGnL","producteca-select-field--is-searchable":"selectField-module_producteca-select-field--is-searchable_YTkm-","producteca-select-field--on-error":"selectField-module_producteca-select-field--on-error_rNJN3","producteca-select-field__input-multiple":"selectField-module_producteca-select-field__input-multiple_K0bLb","option-with-tooltip":"selectField-module_option-with-tooltip_etqky"};var AutoStoriesIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"m19 1-5 5v11l5-4.5zM1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5V6c-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6m22 13.5V6c-.6-.45-1.25-.75-2-1v13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5v2c1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5z"}),"AutoStories");var CalendarTodayIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday");var Cancel=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel");var Check=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var CheckCircle=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle");var ClearRounded=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"}),"ClearRounded");var ContentCopy=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");var ErrorIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error");var Info=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info");var InsertPhotoRoundedIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.9 13.98l2.1 2.53 3.1-3.99c.2-.26.6-.26.8.01l3.51 4.68c.25.33.01.8-.4.8H6.02c-.42 0-.65-.48-.39-.81L8.12 14c.19-.26.57-.27.78-.02"}),"InsertPhotoRounded");var KeyboardArrowDownIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");var MoreVertIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert");var NavigateBeforeRoundedIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M14.91 6.71a.996.996 0 0 0-1.41 0L8.91 11.3c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L11.03 12l3.88-3.88c.38-.39.38-1.03 0-1.41"}),"NavigateBeforeRounded");var NavigateNextRoundedIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M9.31 6.71c-.39.39-.39 1.02 0 1.41L13.19 12l-3.88 3.88c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41L10.72 6.7c-.38-.38-1.02-.38-1.41.01"}),"NavigateNextRounded");var SearchRounded=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M15.5 14h-.79l-.28-.27c1.2-1.4 1.82-3.31 1.48-5.34-.47-2.78-2.79-5-5.59-5.34-4.23-.52-7.79 3.04-7.27 7.27.34 2.8 2.56 5.12 5.34 5.59 2.03.34 3.94-.28 5.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0s.41-1.08 0-1.49zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"SearchRounded");var Visibility=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");var VisibilityOff=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");function useReduxFormField(_ref3){var input=_ref3.input,onChange2=_ref3.onChange,onBlur=_ref3.onBlur,_ref$transformValue=_ref3.transformValue,transformValue=_ref$transformValue===void 0?function(value){return value;}:_ref$transformValue;var handleChange=function handleChange2(event){if(input){var transformedValue=transformValue(event,event);input.onChange(transformedValue);}else if(onChange2){onChange2(event);}};var handleBlur=function handleBlur2(){if(input){input.onBlur();}onBlur===null||onBlur===void 0||onBlur();};return{handleChange:handleChange,handleBlur:handleBlur};}var useOptionTooltip=function useOptionTooltip2(label2,isDisabled,tooltipMessage){var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),showTooltip=_useState2[0],setShowTooltip=_useState2[1];var _useState3=useState({top:0,left:0}),_useState4=_slicedToArray$1(_useState3,2),tooltipPosition=_useState4[0],setTooltipPosition=_useState4[1];var optionRef=useRef(null);var showDisabledTooltip=isDisabled&&!!tooltipMessage;var _updateTooltipPosition=useCallback(function(){if(optionRef.current&&showTooltip){var rect=optionRef.current.getBoundingClientRect();var centerY=rect.top+rect.height/2;setTooltipPosition({top:centerY,left:rect.right+5});}},[showTooltip]);var _handleMouseEnter=useCallback(function(){if(optionRef.current){var hasOverflow=optionRef.current.scrollWidth>optionRef.current.offsetWidth;var shouldShowTooltip=showDisabledTooltip||hasOverflow;if(shouldShowTooltip){setShowTooltip(true);setTimeout(function(){_updateTooltipPosition();},0);}}},[showDisabledTooltip,_updateTooltipPosition]);var _handleMouseLeave=useCallback(function(){setShowTooltip(false);},[]);useEffect(function(){var element=optionRef.current;if(element){element.addEventListener("mouseenter",_handleMouseEnter);element.addEventListener("mouseleave",_handleMouseLeave);return function(){element.removeEventListener("mouseenter",_handleMouseEnter);element.removeEventListener("mouseleave",_handleMouseLeave);};}},[_handleMouseEnter,_handleMouseLeave]);useEffect(function(){if(showTooltip){_updateTooltipPosition();window.addEventListener("scroll",_updateTooltipPosition,true);return function(){return window.removeEventListener("scroll",_updateTooltipPosition,true);};}},[showTooltip,_updateTooltipPosition]);return{showTooltip:showTooltip,tooltipPosition:tooltipPosition,optionRef:optionRef,showDisabledTooltip:showDisabledTooltip};};var hasError=function hasError2(props){var value=props.value,isValid2=props.isValid,required=props.required,_props$meta=props.meta,_props$meta2=_props$meta===void 0?{}:_props$meta,touched=_props$meta2.touched,error2=_props$meta2.error;var hasError22=isValid2&&!isValid2(value)||touched&&error2;return!!(required&&!value)||!!hasError22;};var hasWarning=function hasWarning2(props){var _props$meta3=props.meta,_props$meta4=_props$meta3===void 0?{}:_props$meta3,touched=_props$meta4.touched,warning2=_props$meta4.warning;return!!touched&&!!warning2;};var formValidation=function formValidation2(props){if(hasWarning(props))return"warning";if(hasError(props))return"error";return null;};var warning$1="errorMessage-module_warning_bXIaf";var message$2="errorMessage-module_message_5zSab";var error$2="errorMessage-module_error_QgQKc";var errorStyles={warning:warning$1,"Mui-focused":"errorMessage-module_Mui-focused_JfmdQ",message:message$2,error:error$2};var ErrorMessage=function ErrorMessage2(_ref3){var validationProps=_ref3.validationProps;var meta=validationProps.meta;var _ref22=meta||{},error2=_ref22.error,warning2=_ref22.warning;var messageClass=clsx(errorStyles.message,_defineProperty$1(_defineProperty$1({},errorStyles.error,hasError(validationProps)),errorStyles.warning,hasWarning(validationProps)));return/* @__PURE__ */jsxs("div",{className:messageClass,children:[hasError(validationProps)&&(error2===null||error2===void 0?void 0:error2.locale),hasWarning(validationProps)&&(warning2===null||warning2===void 0?void 0:warning2.locale)]});};var Option$1=function Option2(props){var _useOptionTooltip=useOptionTooltip(props.label,props.isDisabled,props.data.tooltipMessage),showTooltip=_useOptionTooltip.showTooltip,tooltipPosition=_useOptionTooltip.tooltipPosition,optionRef=_useOptionTooltip.optionRef,showDisabledTooltip=_useOptionTooltip.showDisabledTooltip;var tooltipMessage=showDisabledTooltip?props.data.tooltipMessage:props.label;var hasFormatOption=_.isFunction(props.formatOption);return/* @__PURE__ */jsx$1("div",{className:styles$l[showTooltip?"option-with-tooltip":""],"data-tooltip":tooltipMessage,style:showTooltip?{"--tooltip-top":"".concat(tooltipPosition.top,"px"),"--tooltip-left":"".concat(tooltipPosition.left,"px")}:void 0,children:/* @__PURE__ */jsx$1(components$1.Option,_objectSpread2$1(_objectSpread2$1({},props),{},{children:/* @__PURE__ */jsxs("div",{className:clsx(styles$l[props.isDisabled?"disabled":""],styles$l[props.isMulti?"producteca-select-field__input-multiple":""]),children:[props.isMulti&&/* @__PURE__ */jsx$1("input",{type:"checkbox",checked:props.isSelected,onChange:_.identity}),hasFormatOption?/* @__PURE__ */jsx$1("div",{ref:optionRef,children:props.formatOption(props.data)}):/* @__PURE__ */jsx$1("label",{ref:optionRef,children:props.label})]})}))});};var MultiValue2=function MultiValue3(props){return/* @__PURE__ */jsx$1(components$1.MultiValue,_objectSpread2$1(_objectSpread2$1({},props),{},{children:props.formatOption?props.formatOption(props.data):/* @__PURE__ */jsx$1("span",{children:props.data.label})}));};var SingleValue2=function SingleValue3(props){return/* @__PURE__ */jsx$1(components$1.SingleValue,_objectSpread2$1(_objectSpread2$1({},props),{},{children:props.getOptionLabel?props.getOptionLabel(props.data):/* @__PURE__ */jsx$1("span",{children:props.data.label})}));};var SearchComponent=function SearchComponent2(){return/* @__PURE__ */jsx$1("div",{className:styles$l["producteca-select-field__search-icon"],children:/* @__PURE__ */jsx$1(CustomIcon,{children:/* @__PURE__ */jsx$1(SearchRounded,{})})});};var MultipleTextComponent=function MultipleTextComponent2(_ref3){var _ref$optionSelected=_ref3.optionSelected,optionSelected=_ref$optionSelected===void 0?null:_ref$optionSelected;var isArrayWithSome=optionSelected&&_.isArray(optionSelected)&&optionSelected.length>0;var text2=optionSelected&&_.isArray(optionSelected)&&optionSelected.length===1?locale("selected"):locale("selectedPlural");return isArrayWithSome?/* @__PURE__ */jsx$1("div",{className:styles$l["producteca-select-field__is-multiple"],children:/* @__PURE__ */jsxs("span",{children:[optionSelected.length," ",text2]})}):null;};var ClearComponent=function ClearComponent2(_ref22){var optionSelected=_ref22.optionSelected,isClearable=_ref22.isClearable,handleChange=_ref22.handleChange;var isArrayWithSome=optionSelected&&_.isArray(optionSelected)&&optionSelected.length>0;var hasSelectedValue=!_.isArray(optionSelected)&&optionSelected&&"value"in optionSelected&&optionSelected.value;return isClearable&&(isArrayWithSome||hasSelectedValue)?/* @__PURE__ */jsx$1("a",{className:styles$l["producteca-select-field__is-clearable"],onClick:function onClick(){return handleChange(null);},children:/* @__PURE__ */jsx$1(CustomIcon,{children:/* @__PURE__ */jsx$1(ClearRounded,{})})}):null;};var _valueGetter=function _valueGetter2(option,getter){return getter?getter(option):option===null||option===void 0?void 0:option.value;};var SelectField=function SelectField2(props){var _input$value;var name=props.name,label2=props.label,_props$placeholder=props.placeholder,placeholder=_props$placeholder===void 0?locale("selectPlaceholder"):_props$placeholder,_props$noOptionsMessa=props.noOptionsMessage,_noOptionsMessage=_props$noOptionsMessa===void 0?locale("noFoundOptions"):_props$noOptionsMessa,options=props.options,_props$size=props.size,size2=_props$size===void 0?"md":_props$size,_props$hideSelectedOp=props.hideSelectedOptions,hideSelectedOptions=_props$hideSelectedOp===void 0?true:_props$hideSelectedOp,_props$isMultiple=props.isMultiple,isMultiple=_props$isMultiple===void 0?false:_props$isMultiple,_props$isSearchable=props.isSearchable,isSearchable=_props$isSearchable===void 0?true:_props$isSearchable,_props$isClearable=props.isClearable,isClearable=_props$isClearable===void 0?true:_props$isClearable,required=props.required,disabled2=props.disabled,rightModifier=props.rightModifier,isOptionDisabled3=props.isOptionDisabled,_onChange=props.onChange,defaultValue=props.defaultValue,input=props.input,propsOnBlur=props.onBlur,meta=props.meta,isValid2=props.isValid,_props$noErrors=props.noErrors,noErrors=_props$noErrors===void 0?false:_props$noErrors,formatOption=props.formatOption,getOptionLabel4=props.getOptionLabel,getOptionValue4=props.getOptionValue;var value=(_input$value=input===null||input===void 0?void 0:input.value)!==null&&_input$value!==void 0?_input$value:props.value;var defaultOption=_.filter(options,function(option){return _.includes(value,_valueGetter(option,getOptionValue4));});var _useState=useState(defaultOption||null),_useState2=_slicedToArray$1(_useState,2),optionSelected=_useState2[0],setOptionSelected=_useState2[1];var validationProps={meta:meta,value:value,isValid:isValid2,required:required};var validated=formValidation(validationProps);var _useReduxFormField=useReduxFormField({input:input,onChange:function onChange2(selected2){var selectedValue=isMultiple?_.map(selected2,function(opt){return _valueGetter(opt,getOptionValue4);}):_valueGetter(selected2,getOptionValue4);if(!input){var fakeEvent={target:{name:name,value:selectedValue}};_onChange===null||_onChange===void 0||_onChange(fakeEvent);}return selectedValue;},onBlur:propsOnBlur,transformValue:function transformValue(selected2){return isMultiple?_.map(selected2,function(opt){return _valueGetter(opt,getOptionValue4);}):_valueGetter(selected2,getOptionValue4);}}),fieldHandleChange=_useReduxFormField.handleChange,handleBlur=_useReduxFormField.handleBlur;var handleChange=function handleChange2(selected2){fieldHandleChange(selected2);setOptionSelected(selected2);};useEffect(function(){if(defaultValue&&options.length>0){var val=_.isArray(defaultValue)?defaultValue:[defaultValue];var matchingOptions=_.filter(options,function(option){return _.includes(val,_valueGetter(option,getOptionValue4));});setOptionSelected(isMultiple?matchingOptions:matchingOptions[0]||null);}},[defaultValue,options]);var OptionWithFormat=function OptionWithFormat2(optionProps){return/* @__PURE__ */jsx$1(Option$1,_objectSpread2$1(_objectSpread2$1({},optionProps),{},{formatOption:formatOption}));};var SingleValueWithFormat=function SingleValueWithFormat2(singleValueProps){return/* @__PURE__ */jsx$1(SingleValue2,_objectSpread2$1(_objectSpread2$1({},singleValueProps),{},{getOptionLabel:getOptionLabel4}));};var MultiValueWithFormat=function MultiValueWithFormat2(multiValueProps){return/* @__PURE__ */jsx$1(MultiValue2,_objectSpread2$1(_objectSpread2$1({},multiValueProps),{},{formatOption:formatOption}));};var optionComponent=isMultiple?{Option:OptionWithFormat,MultiValue:MultiValueWithFormat}:{Option:OptionWithFormat,SingleValue:SingleValueWithFormat};return/* @__PURE__ */jsxs("div",{className:clsx(styles$l["producteca-select-field-container"],_defineProperty$1({},errorStyles[validated],validated)),"data-testid":"producteca-select-field-container",children:[label2&&/* @__PURE__ */jsx$1("label",{htmlFor:name,children:label2}),/* @__PURE__ */jsxs("div",{children:[/* @__PURE__ */jsxs("div",{className:clsx(styles$l[size2],styles$l["producteca-select-field-body"],_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1({},styles$l["producteca-select-field--on-error"],validated),styles$l["producteca-select-field--with-modifier"],rightModifier),styles$l["producteca-select-field--is-searchable"],isSearchable&&!isMultiple),styles$l["producteca-select-field--is-clearable"],isClearable)),children:[/* @__PURE__ */jsxs("div",{className:styles$l["body"],children:[isMultiple&&/* @__PURE__ */jsx$1(MultipleTextComponent,{optionSelected:optionSelected}),isSearchable&&!isMultiple&&/* @__PURE__ */jsx$1(SearchComponent,{}),/* @__PURE__ */jsx$1(StateManagedSelect$1,_objectSpread2$1(_objectSpread2$1({},props),{},{name:name,classNamePrefix:"producteca-select-field",placeholder:placeholder,isDisabled:disabled2,isMulti:isMultiple,closeMenuOnSelect:!isMultiple,hideSelectedOptions:hideSelectedOptions&&!isMultiple,isClearable:isClearable,isOptionDisabled:isOptionDisabled3,isSearchable:isSearchable&&!isMultiple,noOptionsMessage:function noOptionsMessage2(){return _noOptionsMessage;},getOptionValue:getOptionValue4,getOptionLabel:function getOptionLabel5(option){return option===null||option===void 0?void 0:option.label;},onChange:handleChange,onBlur:handleBlur,value:optionSelected,options:options,components:optionComponent,menuPortalTarget:document.body})),/* @__PURE__ */jsx$1(ClearComponent,{optionSelected:optionSelected,isClearable:isClearable,handleChange:handleChange})]}),!!rightModifier&&rightModifier]}),!noErrors&&/* @__PURE__ */jsx$1(ErrorMessage,{validationProps:validationProps})]})]});};var disabled$5="textInput-module_disabled_zmiie";var fullwidth="textInput-module_fullwidth_uG3VU";var lg$7="textInput-module_lg_rvzUN";var md$6="textInput-module_md_WTZlG";var sm$8="textInput-module_sm_3H7Tl";var title$6="textInput-module_title_Y61Pu";var styles$k={"form-field":"textInput-module_form-field_6ylpa","input-container":"textInput-module_input-container_YAHtg","right-modifier":"textInput-module_right-modifier_WqQCI","with-right-icon":"textInput-module_with-right-icon_K2CQ7","with-left-icon":"textInput-module_with-left-icon_WkTxr",disabled:disabled$5,"text-input-container":"textInput-module_text-input-container_ubBna","text-input":"textInput-module_text-input_9gGzW","right-icon":"textInput-module_right-icon_9Bh6D","left-icon":"textInput-module_left-icon_40v5M",fullwidth:fullwidth,lg:lg$7,md:md$6,sm:sm$8,title:title$6};var _excluded$$=["isValid","onChange","meta","value","noErrors","size","type","isClearable","max","min","leftIcon","rightIcon","input","inputRef","name"];var TextInput=function TextInput2(props){var _input$value;var isValid2=props.isValid,onChange2=props.onChange,meta=props.meta,_props$value=props.value,value=_props$value===void 0?"":_props$value,_props$noErrors=props.noErrors,noErrors=_props$noErrors===void 0?false:_props$noErrors,_props$size=props.size,size2=_props$size===void 0?"md":_props$size,_props$type=props.type,type=_props$type===void 0?"text":_props$type,isClearable=props.isClearable,max2=props.max,min2=props.min,leftIcon=props.leftIcon,rightIcon=props.rightIcon,input=props.input,inputRef=props.inputRef,name=props.name,otherProps=_objectWithoutProperties$1(props,_excluded$$);var inputValue=(_input$value=input===null||input===void 0?void 0:input.value)!==null&&_input$value!==void 0?_input$value:value;var _useState=useState(""),_useState2=_slicedToArray$1(_useState,2),currentValue=_useState2[0],setCurrentValue=_useState2[1];var validationProps={meta:meta,value:inputValue,isValid:isValid2,required:props.required};var validated=formValidation(validationProps);var numericLimits=type==="number"?{max:max2,min:min2}:{};useEffect(function(){setCurrentValue(inputValue);},[inputValue]);var _useReduxFormField=useReduxFormField({input:input,onChange:onChange2,transformValue:function transformValue(event){var value2=event.target.value;setCurrentValue(value2);return value2;}}),fieldHandleChange=_useReduxFormField.handleChange,handleBlur=_useReduxFormField.handleBlur;var handleChange=function handleChange2(event){fieldHandleChange(event);};var rightModifier=isClearable&&!rightIcon&¤tValue?/* @__PURE__ */jsx$1(CustomIcon,{"data-testid":"clear-icon",children:/* @__PURE__ */jsx$1(ClearRounded,{})}):rightIcon;var onClickRightModifier=isClearable&&!rightIcon?function(){return handleChange({target:{name:props.name,value:""}});}:_.identity;var isSmall=size2=="sm";return/* @__PURE__ */jsxs("div",{"data-testid":"text-input-container",className:clsx(styles$k[size2],styles$k["text-input-container"],validated?errorStyles[validated]:"",!!leftIcon&&!isSmall?styles$k["with-left-icon"]:"",!!rightModifier&&!isSmall?styles$k["with-right-icon"]:""),children:[!!leftIcon&&!isSmall&&/* @__PURE__ */jsx$1("div",{className:"".concat(styles$k["left-icon"]),children:leftIcon}),/* @__PURE__ */jsx$1("input",_objectSpread2$1(_objectSpread2$1({name:name,className:"text-input","data-testid":"text-input",value:currentValue?String(currentValue):"",type:type,onChange:handleChange,onBlur:handleBlur,ref:inputRef},numericLimits),otherProps)),!!rightModifier&&!isSmall&&/* @__PURE__ */jsx$1("div",{className:"".concat(styles$k["right-icon"]),onClick:onClickRightModifier,children:rightModifier}),!noErrors&&/* @__PURE__ */jsx$1(ErrorMessage,{validationProps:validationProps})]});};var PasswordInput=function PasswordInput2(props){var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),showPassword=_useState2[0],setShowPassword=_useState2[1];var type=showPassword?"text":"password";return/* @__PURE__ */jsx$1(TextInput,_objectSpread2$1(_objectSpread2$1({},props),{},{type:type,"data-testid":"password-input",rightIcon:/* @__PURE__ */jsx$1(VisibilityIcon,{showPassword:showPassword,setShowPassword:setShowPassword})}));};var VisibilityIcon=function VisibilityIcon2(_ref3){var showPassword=_ref3.showPassword,setShowPassword=_ref3.setShowPassword;return/* @__PURE__ */jsx$1("div",{"data-testid":"visibility-toggle",onClick:function onClick(){return setShowPassword(!showPassword);},children:showPassword?/* @__PURE__ */jsx$1(Visibility,{}):/* @__PURE__ */jsx$1(VisibilityOff,{})});};var areViewsEqual=function areViewsEqual(views,expectedViews){if(views.length!==expectedViews.length){return false;}return expectedViews.every(function(expectedView){return views.includes(expectedView);});};var applyDefaultViewProps=function applyDefaultViewProps(_ref299){var openTo=_ref299.openTo,defaultOpenTo=_ref299.defaultOpenTo,views=_ref299.views,defaultViews=_ref299.defaultViews;var viewsWithDefault=views!=null?views:defaultViews;var openToWithDefault;if(openTo!=null){openToWithDefault=openTo;}else if(viewsWithDefault.includes(defaultOpenTo)){openToWithDefault=defaultOpenTo;}else if(viewsWithDefault.length>0){openToWithDefault=viewsWithDefault[0];}else{throw new Error("MUI X: The `views` prop must contain at least one view.");}return{views:viewsWithDefault,openTo:openToWithDefault};};var mergeDateAndTime=function mergeDateAndTime(utils,dateParam,timeParam){var mergedDate=dateParam;mergedDate=utils.setHours(mergedDate,utils.getHours(timeParam));mergedDate=utils.setMinutes(mergedDate,utils.getMinutes(timeParam));mergedDate=utils.setSeconds(mergedDate,utils.getSeconds(timeParam));mergedDate=utils.setMilliseconds(mergedDate,utils.getMilliseconds(timeParam));return mergedDate;};var findClosestEnabledDate=function findClosestEnabledDate(_ref300){var date=_ref300.date,disableFuture=_ref300.disableFuture,disablePast=_ref300.disablePast,maxDate=_ref300.maxDate,minDate=_ref300.minDate,isDateDisabled=_ref300.isDateDisabled,utils=_ref300.utils,timezone=_ref300.timezone;var today=mergeDateAndTime(utils,utils.date(void 0,timezone),date);if(disablePast&&utils.isBefore(minDate,today)){minDate=today;}if(disableFuture&&utils.isAfter(maxDate,today)){maxDate=today;}var forward=date;var backward=date;if(utils.isBefore(date,minDate)){forward=minDate;backward=null;}if(utils.isAfter(date,maxDate)){if(backward){backward=maxDate;}forward=null;}while(forward||backward){if(forward&&utils.isAfter(forward,maxDate)){forward=null;}if(backward&&utils.isBefore(backward,minDate)){backward=null;}if(forward){if(!isDateDisabled(forward)){return forward;}forward=utils.addDays(forward,1);}if(backward){if(!isDateDisabled(backward)){return backward;}backward=utils.addDays(backward,-1);}}return null;};var replaceInvalidDateByNull=function replaceInvalidDateByNull(utils,value){return value==null||!utils.isValid(value)?null:value;};var applyDefaultDate=function applyDefaultDate(utils,value,defaultValue){if(value==null||!utils.isValid(value)){return defaultValue;}return value;};var areDatesEqual=function areDatesEqual(utils,a,b){if(!utils.isValid(a)&&a!=null&&!utils.isValid(b)&&b!=null){return true;}return utils.isEqual(a,b);};var getMonthsInYear=function getMonthsInYear(utils,year){var firstMonth=utils.startOfYear(year);var months2=[firstMonth];while(months2.length<12){var prevMonth=months2[months2.length-1];months2.push(utils.addMonths(prevMonth,1));}return months2;};var _getTodayDate=function getTodayDate(utils,timezone,valueType){return valueType==="date"?utils.startOfDay(utils.date(void 0,timezone)):utils.date(void 0,timezone);};var formatMeridiem=function formatMeridiem(utils,meridiem){var date=utils.setHours(utils.date(),meridiem==="am"?2:14);return utils.format(date,"meridiem");};var dateViews=["year","month","day"];var isDatePickerView=function isDatePickerView(view){return dateViews.includes(view);};var resolveDateFormat=function resolveDateFormat(utils,_ref301,isInToolbar){var format2=_ref301.format,views=_ref301.views;if(format2!=null){return format2;}var formats=utils.formats;if(areViewsEqual(views,["year"])){return formats.year;}if(areViewsEqual(views,["month"])){return formats.month;}if(areViewsEqual(views,["day"])){return formats.dayOfMonth;}if(areViewsEqual(views,["month","year"])){return"".concat(formats.month," ").concat(formats.year);}if(areViewsEqual(views,["day","month"])){return"".concat(formats.month," ").concat(formats.dayOfMonth);}if(isInToolbar){return /en/.test(utils.getCurrentLocaleCode())?formats.normalDateWithWeekday:formats.normalDate;}return formats.keyboardDate;};var getWeekdays$1=function getWeekdays$1(utils,date){var start2=utils.startOfWeek(date);return[0,1,2,3,4,5,6].map(function(diff){return utils.addDays(start2,diff);});};var timeViews=["hours","minutes","seconds"];var isTimeView=function isTimeView(view){return timeViews.includes(view);};var isInternalTimeView=function isInternalTimeView(view){return timeViews.includes(view)||view==="meridiem";};var getMeridiem=function getMeridiem(date,utils){if(!date){return null;}return utils.getHours(date)>=12?"pm":"am";};var convertValueToMeridiem=function convertValueToMeridiem(value,meridiem,ampm){if(ampm){var currentMeridiem=value>=12?"pm":"am";if(currentMeridiem!==meridiem){return meridiem==="am"?value-12:value+12;}}return value;};var convertToMeridiem=function convertToMeridiem(time,meridiem,ampm,utils){var newHoursAmount=convertValueToMeridiem(utils.getHours(time),meridiem,ampm);return utils.setHours(time,newHoursAmount);};var getSecondsInDay=function getSecondsInDay(date,utils){return utils.getHours(date)*3600+utils.getMinutes(date)*60+utils.getSeconds(date);};var createIsAfterIgnoreDatePart=function createIsAfterIgnoreDatePart(disableIgnoringDatePartForTimeValidation,utils){return function(dateLeft,dateRight){if(disableIgnoringDatePartForTimeValidation){return utils.isAfter(dateLeft,dateRight);}return getSecondsInDay(dateLeft,utils)>getSecondsInDay(dateRight,utils);};};var resolveTimeFormat=function resolveTimeFormat(utils,_ref302){var format2=_ref302.format,views=_ref302.views,ampm=_ref302.ampm;if(format2!=null){return format2;}var formats=utils.formats;if(areViewsEqual(views,["hours"])){return ampm?"".concat(formats.hours12h," ").concat(formats.meridiem):formats.hours24h;}if(areViewsEqual(views,["minutes"])){return formats.minutes;}if(areViewsEqual(views,["seconds"])){return formats.seconds;}if(areViewsEqual(views,["minutes","seconds"])){return"".concat(formats.minutes,":").concat(formats.seconds);}if(areViewsEqual(views,["hours","minutes","seconds"])){return ampm?"".concat(formats.hours12h,":").concat(formats.minutes,":").concat(formats.seconds," ").concat(formats.meridiem):"".concat(formats.hours24h,":").concat(formats.minutes,":").concat(formats.seconds);}return ampm?"".concat(formats.hours12h,":").concat(formats.minutes," ").concat(formats.meridiem):"".concat(formats.hours24h,":").concat(formats.minutes);};var SECTION_TYPE_GRANULARITY={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7};var getSectionTypeGranularity=function getSectionTypeGranularity(sections){return Math.max.apply(Math,_toConsumableArray2(sections.map(function(section){var _a;return(_a=SECTION_TYPE_GRANULARITY[section.type])!=null?_a:1;})));};var roundDate=function roundDate(utils,granularity,date){if(granularity===SECTION_TYPE_GRANULARITY.year){return utils.startOfYear(date);}if(granularity===SECTION_TYPE_GRANULARITY.month){return utils.startOfMonth(date);}if(granularity===SECTION_TYPE_GRANULARITY.day){return utils.startOfDay(date);}var roundedDate=date;if(granularity<SECTION_TYPE_GRANULARITY.minutes){roundedDate=utils.setMinutes(roundedDate,0);}if(granularity<SECTION_TYPE_GRANULARITY.seconds){roundedDate=utils.setSeconds(roundedDate,0);}if(granularity<SECTION_TYPE_GRANULARITY.milliseconds){roundedDate=utils.setMilliseconds(roundedDate,0);}return roundedDate;};var getDefaultReferenceDate=function getDefaultReferenceDate(_ref303){var props=_ref303.props,utils=_ref303.utils,granularity=_ref303.granularity,timezone=_ref303.timezone,inGetTodayDate=_ref303.getTodayDate;var _a;var referenceDate=inGetTodayDate?inGetTodayDate():roundDate(utils,granularity,_getTodayDate(utils,timezone));if(props.minDate!=null&&utils.isAfterDay(props.minDate,referenceDate)){referenceDate=roundDate(utils,granularity,props.minDate);}if(props.maxDate!=null&&utils.isBeforeDay(props.maxDate,referenceDate)){referenceDate=roundDate(utils,granularity,props.maxDate);}var isAfter2=createIsAfterIgnoreDatePart((_a=props.disableIgnoringDatePartForTimeValidation)!=null?_a:false,utils);if(props.minTime!=null&&isAfter2(props.minTime,referenceDate)){referenceDate=roundDate(utils,granularity,props.disableIgnoringDatePartForTimeValidation?props.minTime:mergeDateAndTime(utils,referenceDate,props.minTime));}if(props.maxTime!=null&&isAfter2(referenceDate,props.maxTime)){referenceDate=roundDate(utils,granularity,props.disableIgnoringDatePartForTimeValidation?props.maxTime:mergeDateAndTime(utils,referenceDate,props.maxTime));}return referenceDate;};var getDateSectionConfigFromFormatToken=function getDateSectionConfigFromFormatToken(utils,formatToken){var config2=utils.formatTokenMap[formatToken];if(config2==null){throw new Error(["MUI X: The token \"".concat(formatToken,"\" is not supported by the Date and Time Pickers."),"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join("\n"));}if(typeof config2==="string"){return{type:config2,contentType:config2==="meridiem"?"letter":"digit",maxLength:void 0};}return{type:config2.sectionType,contentType:config2.contentType,maxLength:config2.maxLength};};var getDeltaFromKeyCode=function getDeltaFromKeyCode(keyCode){switch(keyCode){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0;}};var getDaysInWeekStr=function getDaysInWeekStr(utils,format2){var elements=[];var now=utils.date(void 0,"default");var startDate=utils.startOfWeek(now);var endDate=utils.endOfWeek(now);var current=startDate;while(utils.isBefore(current,endDate)){elements.push(current);current=utils.addDays(current,1);}return elements.map(function(weekDay){return utils.formatByString(weekDay,format2);});};var getLetterEditingOptions=function getLetterEditingOptions(utils,timezone,sectionType,format2){switch(sectionType){case"month":{return getMonthsInYear(utils,utils.date(void 0,timezone)).map(function(month2){return utils.formatByString(month2,format2);});}case"weekDay":{return getDaysInWeekStr(utils,format2);}case"meridiem":{var now=utils.date(void 0,timezone);return[utils.startOfDay(now),utils.endOfDay(now)].map(function(date){return utils.formatByString(date,format2);});}default:{return[];}}};var FORMAT_SECONDS_NO_LEADING_ZEROS="s";var NON_LOCALIZED_DIGITS=["0","1","2","3","4","5","6","7","8","9"];var getLocalizedDigits=function getLocalizedDigits(utils){var today=utils.date(void 0);var formattedZero=utils.formatByString(utils.setSeconds(today,0),FORMAT_SECONDS_NO_LEADING_ZEROS);if(formattedZero==="0"){return NON_LOCALIZED_DIGITS;}return Array.from({length:10}).map(function(_2,index2){return utils.formatByString(utils.setSeconds(today,index2),FORMAT_SECONDS_NO_LEADING_ZEROS);});};var removeLocalizedDigits=function removeLocalizedDigits(valueStr,localizedDigits){if(localizedDigits[0]==="0"){return valueStr;}var digits=[];var currentFormattedDigit="";for(var _i13=0;_i13<valueStr.length;_i13+=1){currentFormattedDigit+=valueStr[_i13];var matchingDigitIndex=localizedDigits.indexOf(currentFormattedDigit);if(matchingDigitIndex>-1){digits.push(matchingDigitIndex.toString());currentFormattedDigit="";}}return digits.join("");};var applyLocalizedDigits=function applyLocalizedDigits(valueStr,localizedDigits){if(localizedDigits[0]==="0"){return valueStr;}return valueStr.split("").map(function(char2){return localizedDigits[Number(char2)];}).join("");};var isStringNumber=function isStringNumber(valueStr,localizedDigits){var nonLocalizedValueStr=removeLocalizedDigits(valueStr,localizedDigits);return nonLocalizedValueStr!==" "&&!Number.isNaN(Number(nonLocalizedValueStr));};var cleanLeadingZeros=function cleanLeadingZeros(valueStr,size2){var cleanValueStr=valueStr;cleanValueStr=Number(cleanValueStr).toString();while(cleanValueStr.length<size2){cleanValueStr="0".concat(cleanValueStr);}return cleanValueStr;};var cleanDigitSectionValue=function cleanDigitSectionValue(utils,value,sectionBoundaries,localizedDigits,section){if(process.env.NODE_ENV!=="production"){if(section.type!=="day"&§ion.contentType==="digit-with-letter"){throw new Error(["MUI X: The token \"".concat(section.format,"\" is a digit format with letter in it.'\n This type of format is only supported for 'day' sections")].join("\n"));}}if(section.type==="day"&§ion.contentType==="digit-with-letter"){var date=utils.setDate(sectionBoundaries.longestMonth,value);return utils.formatByString(date,section.format);}var valueStr=value.toString();if(section.hasLeadingZerosInInput){valueStr=cleanLeadingZeros(valueStr,section.maxLength);}return applyLocalizedDigits(valueStr,localizedDigits);};var adjustSectionValue=function adjustSectionValue(utils,timezone,section,keyCode,sectionsValueBoundaries,localizedDigits,activeDate,stepsAttributes){var delta=getDeltaFromKeyCode(keyCode);var isStart=keyCode==="Home";var isEnd=keyCode==="End";var shouldSetAbsolute=section.value===""||isStart||isEnd;var adjustDigitSection=function adjustDigitSection(){var sectionBoundaries=sectionsValueBoundaries[section.type]({currentDate:activeDate,format:section.format,contentType:section.contentType});var getCleanValue=function getCleanValue(value){return cleanDigitSectionValue(utils,value,sectionBoundaries,localizedDigits,section);};var step=section.type==="minutes"&&(stepsAttributes==null?void 0:stepsAttributes.minutesStep)?stepsAttributes.minutesStep:1;var newSectionValueNumber;if(shouldSetAbsolute){if(section.type==="year"&&!isEnd&&!isStart){return utils.formatByString(utils.date(void 0,timezone),section.format);}if(delta>0||isStart){newSectionValueNumber=sectionBoundaries.minimum;}else{newSectionValueNumber=sectionBoundaries.maximum;}}else{var currentSectionValue=parseInt(removeLocalizedDigits(section.value,localizedDigits),10);newSectionValueNumber=currentSectionValue+delta*step;}if(newSectionValueNumber%step!==0){if(delta<0||isStart){newSectionValueNumber+=step-(step+newSectionValueNumber)%step;}if(delta>0||isEnd){newSectionValueNumber-=newSectionValueNumber%step;}}if(newSectionValueNumber>sectionBoundaries.maximum){return getCleanValue(sectionBoundaries.minimum+(newSectionValueNumber-sectionBoundaries.maximum-1)%(sectionBoundaries.maximum-sectionBoundaries.minimum+1));}if(newSectionValueNumber<sectionBoundaries.minimum){return getCleanValue(sectionBoundaries.maximum-(sectionBoundaries.minimum-newSectionValueNumber-1)%(sectionBoundaries.maximum-sectionBoundaries.minimum+1));}return getCleanValue(newSectionValueNumber);};var adjustLetterSection=function adjustLetterSection(){var options=getLetterEditingOptions(utils,timezone,section.type,section.format);if(options.length===0){return section.value;}if(shouldSetAbsolute){if(delta>0||isStart){return options[0];}return options[options.length-1];}var currentOptionIndex=options.indexOf(section.value);var newOptionIndex=(currentOptionIndex+delta)%options.length;var clampedIndex=(newOptionIndex+options.length)%options.length;return options[clampedIndex];};if(section.contentType==="digit"||section.contentType==="digit-with-letter"){return adjustDigitSection();}return adjustLetterSection();};var getSectionVisibleValue=function getSectionVisibleValue(section,target,localizedDigits){var value=section.value||section.placeholder;var hasLeadingZeros=target==="non-input"?section.hasLeadingZerosInFormat:section.hasLeadingZerosInInput;if(target==="non-input"&§ion.hasLeadingZerosInInput&&!section.hasLeadingZerosInFormat){value=Number(removeLocalizedDigits(value,localizedDigits)).toString();}var shouldAddInvisibleSpace=["input-rtl","input-ltr"].includes(target)&§ion.contentType==="digit"&&!hasLeadingZeros&&value.length===1;if(shouldAddInvisibleSpace){value="".concat(value,"\u200E");}if(target==="input-rtl"){value="\u2068".concat(value,"\u2069");}return value;};var changeSectionValueFormat=function changeSectionValueFormat(utils,valueStr,currentFormat,newFormat){if(process.env.NODE_ENV!=="production"){if(getDateSectionConfigFromFormatToken(utils,currentFormat).type==="weekDay"){throw new Error("changeSectionValueFormat doesn't support week day formats");}}return utils.formatByString(utils.parse(valueStr,currentFormat),newFormat);};var isFourDigitYearFormat=function isFourDigitYearFormat(utils,format2){return utils.formatByString(utils.date(void 0,"system"),format2).length===4;};var doesSectionFormatHaveLeadingZeros=function doesSectionFormatHaveLeadingZeros(utils,contentType,sectionType,format2){if(contentType!=="digit"){return false;}var now=utils.date(void 0,"default");switch(sectionType){case"year":{if(utils.lib==="dayjs"&&format2==="YY"){return true;}return utils.formatByString(utils.setYear(now,1),format2).startsWith("0");}case"month":{return utils.formatByString(utils.startOfYear(now),format2).length>1;}case"day":{return utils.formatByString(utils.startOfMonth(now),format2).length>1;}case"weekDay":{return utils.formatByString(utils.startOfWeek(now),format2).length>1;}case"hours":{return utils.formatByString(utils.setHours(now,1),format2).length>1;}case"minutes":{return utils.formatByString(utils.setMinutes(now,1),format2).length>1;}case"seconds":{return utils.formatByString(utils.setSeconds(now,1),format2).length>1;}default:{throw new Error("Invalid section type");}}};var getDateFromDateSections=function getDateFromDateSections(utils,sections,localizedDigits){var shouldSkipWeekDays=sections.some(function(section){return section.type==="day";});var sectionFormats=[];var sectionValues=[];for(var _i14=0;_i14<sections.length;_i14+=1){var section=sections[_i14];var shouldSkip=shouldSkipWeekDays&§ion.type==="weekDay";if(!shouldSkip){sectionFormats.push(section.format);sectionValues.push(getSectionVisibleValue(section,"non-input",localizedDigits));}}var formatWithoutSeparator=sectionFormats.join(" ");var dateWithoutSeparatorStr=sectionValues.join(" ");return utils.parse(dateWithoutSeparatorStr,formatWithoutSeparator);};var createDateStrForV7HiddenInputFromSections=function createDateStrForV7HiddenInputFromSections(sections){return sections.map(function(section){return"".concat(section.startSeparator).concat(section.value||section.placeholder).concat(section.endSeparator);}).join("");};var createDateStrForV6InputFromSections=function createDateStrForV6InputFromSections(sections,localizedDigits,isRtl){var formattedSections=sections.map(function(section){var dateValue=getSectionVisibleValue(section,isRtl?"input-rtl":"input-ltr",localizedDigits);return"".concat(section.startSeparator).concat(dateValue).concat(section.endSeparator);});var dateStr=formattedSections.join("");if(!isRtl){return dateStr;}return"\u2066".concat(dateStr,"\u2069");};var getSectionsBoundaries=function getSectionsBoundaries(utils,localizedDigits,timezone){var today=utils.date(void 0,timezone);var endOfYear2=utils.endOfYear(today);var endOfDay=utils.endOfDay(today);var _getMonthsInYear$redu=getMonthsInYear(utils,today).reduce(function(acc,month2){var daysInMonth=utils.getDaysInMonth(month2);if(daysInMonth>acc.maxDaysInMonth){return{maxDaysInMonth:daysInMonth,longestMonth:month2};}return acc;},{maxDaysInMonth:0,longestMonth:null}),maxDaysInMonth=_getMonthsInYear$redu.maxDaysInMonth,longestMonth=_getMonthsInYear$redu.longestMonth;return{year:function year(_ref304){var format2=_ref304.format;return{minimum:0,maximum:isFourDigitYearFormat(utils,format2)?9999:99};},month:function month(){return{minimum:1,// Assumption: All years have the same amount of months
|
|
3459
3459
|
maximum:utils.getMonth(endOfYear2)+1};},day:function day(_ref305){var currentDate=_ref305.currentDate;return{minimum:1,maximum:currentDate!=null&&utils.isValid(currentDate)?utils.getDaysInMonth(currentDate):maxDaysInMonth,longestMonth:longestMonth};},weekDay:function weekDay(_ref306){var format2=_ref306.format,contentType=_ref306.contentType;if(contentType==="digit"){var daysInWeek=getDaysInWeekStr(utils,format2).map(Number);return{minimum:Math.min.apply(Math,_toConsumableArray2(daysInWeek)),maximum:Math.max.apply(Math,_toConsumableArray2(daysInWeek))};}return{minimum:1,maximum:7};},hours:function hours(_ref307){var format2=_ref307.format;var lastHourInDay=utils.getHours(endOfDay);var hasMeridiem=removeLocalizedDigits(utils.formatByString(utils.endOfDay(today),format2),localizedDigits)!==lastHourInDay.toString();if(hasMeridiem){return{minimum:1,maximum:Number(removeLocalizedDigits(utils.formatByString(utils.startOfDay(today),format2),localizedDigits))};}return{minimum:0,maximum:lastHourInDay};},minutes:function minutes(){return{minimum:0,// Assumption: All years have the same amount of minutes
|
|
3460
3460
|
maximum:utils.getMinutes(endOfDay)};},seconds:function seconds(){return{minimum:0,// Assumption: All years have the same amount of seconds
|
|
3461
3461
|
maximum:utils.getSeconds(endOfDay)};},meridiem:function meridiem(){return{minimum:0,maximum:1};},empty:function empty(){return{minimum:0,maximum:0};}};};var warnedOnceInvalidSection=false;var validateSections=function validateSections(sections,valueType){if(process.env.NODE_ENV!=="production"){if(!warnedOnceInvalidSection){var supportedSections=["empty"];if(["date","date-time"].includes(valueType)){supportedSections.push("weekDay","day","month","year");}if(["time","date-time"].includes(valueType)){supportedSections.push("hours","minutes","seconds","meridiem");}var invalidSection=sections.find(function(section){return!supportedSections.includes(section.type);});if(invalidSection){console.warn("MUI X: The field component you are using is not compatible with the \"".concat(invalidSection.type,"\" date section."),"The supported date sections are [\"".concat(supportedSections.join('", "'),"\"]`."));warnedOnceInvalidSection=true;}}}};var transferDateSectionValue=function transferDateSectionValue(utils,section,dateToTransferFrom,dateToTransferTo){switch(section.type){case"year":{return utils.setYear(dateToTransferTo,utils.getYear(dateToTransferFrom));}case"month":{return utils.setMonth(dateToTransferTo,utils.getMonth(dateToTransferFrom));}case"weekDay":{var formattedDaysInWeek=getDaysInWeekStr(utils,section.format);var dayInWeekStrOfActiveDate=utils.formatByString(dateToTransferFrom,section.format);var dayInWeekOfActiveDate=formattedDaysInWeek.indexOf(dayInWeekStrOfActiveDate);var dayInWeekOfNewSectionValue=formattedDaysInWeek.indexOf(section.value);var diff=dayInWeekOfNewSectionValue-dayInWeekOfActiveDate;return utils.addDays(dateToTransferFrom,diff);}case"day":{return utils.setDate(dateToTransferTo,utils.getDate(dateToTransferFrom));}case"meridiem":{var isAM=utils.getHours(dateToTransferFrom)<12;var mergedDateHours=utils.getHours(dateToTransferTo);if(isAM&&mergedDateHours>=12){return utils.addHours(dateToTransferTo,-12);}if(!isAM&&mergedDateHours<12){return utils.addHours(dateToTransferTo,12);}return dateToTransferTo;}case"hours":{return utils.setHours(dateToTransferTo,utils.getHours(dateToTransferFrom));}case"minutes":{return utils.setMinutes(dateToTransferTo,utils.getMinutes(dateToTransferFrom));}case"seconds":{return utils.setSeconds(dateToTransferTo,utils.getSeconds(dateToTransferFrom));}default:{return dateToTransferTo;}}};var reliableSectionModificationOrder={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9};var mergeDateIntoReferenceDate=function mergeDateIntoReferenceDate(utils,dateToTransferFrom,sections,referenceDate,shouldLimitToEditedSections){return(// cloning sections before sort to avoid mutating it
|
|
@@ -6918,7 +6918,7 @@ d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekD
|
|
|
6918
6918
|
A:"meridiem",a:"meridiem",// Hours
|
|
6919
6919
|
H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",// Minutes
|
|
6920
6920
|
m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",// Seconds
|
|
6921
|
-
s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"};var defaultFormats={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"};var MISSING_UTC_PLUGIN=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join("\n");var MISSING_TIMEZONE_PLUGIN=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join("\n");var withLocale=function withLocale(dayjs2,locale2){return!locale2?dayjs2:function(){return dayjs2.apply(void 0,arguments).locale(locale2);};};var AdapterDayjs=/*#__PURE__*/function(){function AdapterDayjs(){var _this37=this;var _ref419=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},_locale=_ref419.locale,formats=_ref419.formats;_classCallCheck2(this,AdapterDayjs);this.isMUIAdapter=true;this.isTimezoneCompatible=true;this.lib="dayjs";this.dayjs=void 0;this.locale=void 0;this.formats=void 0;this.escapedCharacters={start:"[",end:"]"};this.formatTokenMap=formatTokenMap;this.setLocaleToValue=function(value){var expectedLocale=_this37.getCurrentLocaleCode();if(expectedLocale===value.locale()){return value;}return value.locale(expectedLocale);};this.hasUTCPlugin=function(){return typeof dayjs.utc!=="undefined";};this.hasTimezonePlugin=function(){return typeof dayjs.tz!=="undefined";};this.isSame=function(value,comparing,comparisonTemplate){var comparingInValueTimezone=_this37.setTimezone(comparing,_this37.getTimezone(value));return value.format(comparisonTemplate)===comparingInValueTimezone.format(comparisonTemplate);};this.cleanTimezone=function(timezone){switch(timezone){case"default":{return void 0;}case"system":{return dayjs.tz.guess();}default:{return timezone;}}};this.createSystemDate=function(value){if(_this37.hasUTCPlugin()&&_this37.hasTimezonePlugin()){var timezone=dayjs.tz.guess();if(timezone!=="UTC"){return dayjs.tz(value,timezone);}return dayjs(value);}return dayjs(value);};this.createUTCDate=function(value){if(!_this37.hasUTCPlugin()){throw new Error(MISSING_UTC_PLUGIN);}return dayjs.utc(value);};this.createTZDate=function(value,timezone){if(!_this37.hasUTCPlugin()){throw new Error(MISSING_UTC_PLUGIN);}if(!_this37.hasTimezonePlugin()){throw new Error(MISSING_TIMEZONE_PLUGIN);}var keepLocalTime=value!==void 0&&!value.endsWith("Z");return dayjs(value).tz(_this37.cleanTimezone(timezone),keepLocalTime);};this.getLocaleFormats=function(){var locales=dayjs.Ls;var locale2=_this37.locale||"en";var localeObject=locales[locale2];if(localeObject===void 0){if(process.env.NODE_ENV!=="production"){warnOnce(["MUI X: Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale."]);}localeObject=locales.en;}return localeObject.formats;};this.adjustOffset=function(value){var _a;if(!_this37.hasTimezonePlugin()){return value;}var timezone=_this37.getTimezone(value);if(timezone!=="UTC"){var fixedValue=value.tz(_this37.cleanTimezone(timezone),true);if(fixedValue.$offset===((_a=value.$offset)!=null?_a:0)){return value;}value.$offset=fixedValue.$offset;}return value;};this.date=function(value){var timezone=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"default";if(value===null){return null;}var parsedValue;if(timezone==="UTC"){parsedValue=_this37.createUTCDate(value);}else if(timezone==="system"||timezone==="default"&&!_this37.hasTimezonePlugin()){parsedValue=_this37.createSystemDate(value);}else{parsedValue=_this37.createTZDate(value,timezone);}if(_this37.locale===void 0){return parsedValue;}return parsedValue.locale(_this37.locale);};this.getInvalidDate=function(){return dayjs(/* @__PURE__ */new Date("Invalid date"));};this.getTimezone=function(value){var _a;if(_this37.hasTimezonePlugin()){var zone=(_a=value.$x)==null?void 0:_a.$timezone;if(zone){return zone;}}if(_this37.hasUTCPlugin()&&value.isUTC()){return"UTC";}return"system";};this.setTimezone=function(value,timezone){if(_this37.getTimezone(value)===timezone){return value;}if(timezone==="UTC"){if(!_this37.hasUTCPlugin()){throw new Error(MISSING_UTC_PLUGIN);}return value.utc();}if(timezone==="system"){return value.local();}if(!_this37.hasTimezonePlugin()){if(timezone==="default"){return value;}throw new Error(MISSING_TIMEZONE_PLUGIN);}return dayjs.tz(value,_this37.cleanTimezone(timezone));};this.toJsDate=function(value){return value.toDate();};this.parse=function(value,format2){if(value===""){return null;}return _this37.dayjs(value,format2,_this37.locale,true);};this.getCurrentLocaleCode=function(){return _this37.locale||"en";};this.is12HourCycleInCurrentLocale=function(){return /A|a/.test(_this37.getLocaleFormats().LT||"");};this.expandFormat=function(format2){var localeFormats=_this37.getLocaleFormats();var t=function t(formatBis){return formatBis.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(_2,a,b){return a||b.slice(1);});};return format2.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(_2,a,b){var B=b&&b.toUpperCase();return a||localeFormats[b]||t(localeFormats[B]);});};this.isValid=function(value){if(value==null){return false;}return value.isValid();};this.format=function(value,formatKey){return _this37.formatByString(value,_this37.formats[formatKey]);};this.formatByString=function(value,formatString){return _this37.dayjs(value).format(formatString);};this.formatNumber=function(numberToFormat){return numberToFormat;};this.isEqual=function(value,comparing){if(value===null&&comparing===null){return true;}if(value===null||comparing===null){return false;}return value.toDate().getTime()===comparing.toDate().getTime();};this.isSameYear=function(value,comparing){return _this37.isSame(value,comparing,"YYYY");};this.isSameMonth=function(value,comparing){return _this37.isSame(value,comparing,"YYYY-MM");};this.isSameDay=function(value,comparing){return _this37.isSame(value,comparing,"YYYY-MM-DD");};this.isSameHour=function(value,comparing){return value.isSame(comparing,"hour");};this.isAfter=function(value,comparing){return value>comparing;};this.isAfterYear=function(value,comparing){if(!_this37.hasUTCPlugin()){return value.isAfter(comparing,"year");}return!_this37.isSameYear(value,comparing)&&value.utc()>comparing.utc();};this.isAfterDay=function(value,comparing){if(!_this37.hasUTCPlugin()){return value.isAfter(comparing,"day");}return!_this37.isSameDay(value,comparing)&&value.utc()>comparing.utc();};this.isBefore=function(value,comparing){return value<comparing;};this.isBeforeYear=function(value,comparing){if(!_this37.hasUTCPlugin()){return value.isBefore(comparing,"year");}return!_this37.isSameYear(value,comparing)&&value.utc()<comparing.utc();};this.isBeforeDay=function(value,comparing){if(!_this37.hasUTCPlugin()){return value.isBefore(comparing,"day");}return!_this37.isSameDay(value,comparing)&&value.utc()<comparing.utc();};this.isWithinRange=function(value,_ref420){var _ref421=_slicedToArray2(_ref420,2),start2=_ref421[0],end2=_ref421[1];return value>=start2&&value<=end2;};this.startOfYear=function(value){return _this37.adjustOffset(value.startOf("year"));};this.startOfMonth=function(value){return _this37.adjustOffset(value.startOf("month"));};this.startOfWeek=function(value){return _this37.adjustOffset(_this37.setLocaleToValue(value).startOf("week"));};this.startOfDay=function(value){return _this37.adjustOffset(value.startOf("day"));};this.endOfYear=function(value){return _this37.adjustOffset(value.endOf("year"));};this.endOfMonth=function(value){return _this37.adjustOffset(value.endOf("month"));};this.endOfWeek=function(value){return _this37.adjustOffset(_this37.setLocaleToValue(value).endOf("week"));};this.endOfDay=function(value){return _this37.adjustOffset(value.endOf("day"));};this.addYears=function(value,amount){return _this37.adjustOffset(amount<0?value.subtract(Math.abs(amount),"year"):value.add(amount,"year"));};this.addMonths=function(value,amount){return _this37.adjustOffset(amount<0?value.subtract(Math.abs(amount),"month"):value.add(amount,"month"));};this.addWeeks=function(value,amount){return _this37.adjustOffset(amount<0?value.subtract(Math.abs(amount),"week"):value.add(amount,"week"));};this.addDays=function(value,amount){return _this37.adjustOffset(amount<0?value.subtract(Math.abs(amount),"day"):value.add(amount,"day"));};this.addHours=function(value,amount){return _this37.adjustOffset(amount<0?value.subtract(Math.abs(amount),"hour"):value.add(amount,"hour"));};this.addMinutes=function(value,amount){return _this37.adjustOffset(amount<0?value.subtract(Math.abs(amount),"minute"):value.add(amount,"minute"));};this.addSeconds=function(value,amount){return _this37.adjustOffset(amount<0?value.subtract(Math.abs(amount),"second"):value.add(amount,"second"));};this.getYear=function(value){return value.year();};this.getMonth=function(value){return value.month();};this.getDate=function(value){return value.date();};this.getHours=function(value){return value.hour();};this.getMinutes=function(value){return value.minute();};this.getSeconds=function(value){return value.second();};this.getMilliseconds=function(value){return value.millisecond();};this.setYear=function(value,year){return _this37.adjustOffset(value.set("year",year));};this.setMonth=function(value,month2){return _this37.adjustOffset(value.set("month",month2));};this.setDate=function(value,date){return _this37.adjustOffset(value.set("date",date));};this.setHours=function(value,hours){return _this37.adjustOffset(value.set("hour",hours));};this.setMinutes=function(value,minutes){return _this37.adjustOffset(value.set("minute",minutes));};this.setSeconds=function(value,seconds){return _this37.adjustOffset(value.set("second",seconds));};this.setMilliseconds=function(value,milliseconds){return _this37.adjustOffset(value.set("millisecond",milliseconds));};this.getDaysInMonth=function(value){return value.daysInMonth();};this.getWeekArray=function(value){var start2=_this37.startOfWeek(_this37.startOfMonth(value));var end2=_this37.endOfWeek(_this37.endOfMonth(value));var count2=0;var current=start2;var nestedWeeks=[];while(current<end2){var weekNumber=Math.floor(count2/7);nestedWeeks[weekNumber]=nestedWeeks[weekNumber]||[];nestedWeeks[weekNumber].push(current);current=_this37.addDays(current,1);count2+=1;}return nestedWeeks;};this.getWeekNumber=function(value){return value.week();};this.getYearRange=function(_ref422){var _ref423=_slicedToArray2(_ref422,2),start2=_ref423[0],end2=_ref423[1];var startDate=_this37.startOfYear(start2);var endDate=_this37.endOfYear(end2);var years=[];var current=startDate;while(_this37.isBefore(current,endDate)){years.push(current);current=_this37.addYears(current,1);}return years;};this.dayjs=withLocale(dayjs,_locale);this.locale=_locale;this.formats=_extends$1({},defaultFormats,formats);dayjs.extend(customParseFormat);}return _createClass2(AdapterDayjs,[{key:"getDayOfWeek",value:function getDayOfWeek(value){return value.day()+1;}}]);}();var lg$6="datePicker-module_lg_lvvw6";var md$4="datePicker-module_md_ENhFs";var sm$6="datePicker-module_sm_RywFd";var styles$j={"date-picker":"datePicker-module_date-picker_utM--",lg:lg$6,"date-input":"datePicker-module_date-input_kaWUt",md:md$4,sm:sm$6,"calendar-icon-container":"datePicker-module_calendar-icon-container_qUmId","clear-icon":"datePicker-module_clear-icon_potHo","calendar-icon":"datePicker-module_calendar-icon_gaSkr","divider-line":"datePicker-module_divider-line_fdFED"};var datePickerLayoutStyles={"& .MuiDayCalendar-slideTransition":{minHeight:"200px"},"& .MuiDialogActions-root":{display:"none"},"& .MuiPickersLayout-actionBar":{display:"none"},"& .MuiDateCalendar-root":{height:"min-content !important"},"& .MuiPickersCalendarHeader-label":{fontFamily:"Poppins, Open Sans, Helvetica, Arial, sans-serif",fontSize:"14px",color:"#797979",fontWeight:600,textTransform:"capitalize"},"& .MuiDayCalendar-weekDayLabel":{fontFamily:"Poppins, Open Sans, Helvetica, Arial, sans-serif",fontSize:"12px",color:"#797979",fontWeight:600}};var datePickerInputStyles={"& .MuiOutlinedInput-root":{"&:hover":{"& .MuiOutlinedInput-notchedOutline":{borderColor:"#ACACAC"}},"&.Mui-focused":{"& .MuiOutlinedInput-notchedOutline":{borderColor:"#252525"}},"&.Mui-disabled":{"& .MuiOutlinedInput-notchedOutline":{borderColor:"#D7D7D7"}}}};var datePickerDayStyles={fontFamily:"Poppins, Open Sans, Helvetica, Arial, sans-serif",fontSize:"12px",backgroundColor:"white",color:"#252525",borderRadius:"4px","&.MuiPickersDay-root":{fontSize:"14px",textTransform:"capitalize"},"&.MuiPickersDay-today":{backgroundColor:"white",color:"#252525",border:"1px solid #252525"},"&.Mui-selected":{backgroundColor:"#0066ff",color:"white",border:"none","&:hover":{backgroundColor:"#0066ff",borderColor:"none"},"&:focus":{backgroundColor:"#0066ff",borderColor:"none"}},"&:hover:not(.Mui-selected)":{color:"#252525",backgroundColor:"#EDEDED",borderColor:"none"}};var datePickerDigitalClockStyles={"& .MuiMultiSectionDigitalClock-root":{"& .MuiList-root.MuiList-padding.MuiMultiSectionDigitalClockSection-root":{"&::after":{display:"none"}},"& .MuiButtonBase-root.MuiMenuItem-root.MuiMenuItem-gutters":{fontFamily:"Poppins, Open Sans, Helvetica, Arial, sans-serif",backgroundColor:"white",color:"#252525",borderRadius:"4px",width:"32px",height:"32px",margin:"4px 0 0 4px",fontSize:" 14px","&.Mui-selected":{backgroundColor:"#0066ff",color:"white","&:hover":{backgroundColor:"#0066ff"},"&:focus":{backgroundColor:"#0066ff"}},"&:hover:not(.Mui-selected)":{color:"#252525",backgroundColor:"#EDEDED"}}}};var datePickerYearStyles={"& .MuiYearCalendar-root":{"& .MuiPickersYear-root":{"& .MuiPickersYear-yearButton":{fontFamily:"Poppins, Open Sans, Helvetica, Arial, sans-serif",fontSize:"14px",backgroundColor:"white",color:"#252525",borderRadius:"4px","&.Mui-selected":{backgroundColor:"#0066ff",color:"white","&:hover":{backgroundColor:"#0066ff"},"&:focus":{backgroundColor:"#0066ff"}},"&:hover:not(.Mui-selected)":{backgroundColor:"#EDEDED",color:"#252525"}}}}};var datePickerPopperStyles={"& .MuiPickersPopper-paper":{boxShadow:"0px 5px 5px -3px rgb(205 205 205 / 20%), 0px 8px 14px 1px rgb(165 165 165 / 14%), 0px 3px 14px 2px rgb(219 219 219 / 6%)"}};dayjs.extend(customParseFormat);var ActionComponent=function ActionComponent2(_ref3){var showClearIcon=_ref3.showClearIcon,onClear=_ref3.onClear,onOpen=_ref3.onOpen;return/* @__PURE__ */jsxs("div",{className:styles$j["calendar-icon-container"],children:[showClearIcon&&/* @__PURE__ */jsx$1("div",{onClick:onClear,className:styles$j["clear-icon"],children:/* @__PURE__ */jsx$1(CustomIcon,{children:/* @__PURE__ */jsx$1(CloseRoundedIcon,{})})}),/* @__PURE__ */jsx$1("div",{className:styles$j["divider-line"]}),/* @__PURE__ */jsx$1("div",{onClick:onOpen,className:styles$j["calendar-icon"],children:/* @__PURE__ */jsx$1(CustomIcon,{size:"12",children:/* @__PURE__ */jsx$1(CalendarTodayIcon,{})})})]});};var getPickerTypeFromFormat=function getPickerTypeFromFormat2(format2){if(!format2){return"date";}if(/^Y+$/.test(format2)){return"year";}if(/^[Hhms:]+$/.test(format2)){return"time";}if(lodashExports.includes(format2,"H")||lodashExports.includes(format2,"h")||lodashExports.includes(format2,"m")||lodashExports.includes(format2,"s")){return"dateTime";}return"date";};var getFinalFormat=function getFinalFormat2(format2){if(format2)return format2;return"DD/MM/YYYY";};var getPlaceholderByFormat=function getPlaceholderByFormat2(format2,customPlaceholder){if(customPlaceholder)return customPlaceholder;var pickerType=getPickerTypeFromFormat(format2);switch(pickerType){case"year":return locale("datePicker.selectYear");case"time":return locale("datePicker.selectTime");case"dateTime":return locale("datePicker.selectDateTime");case"date":default:return locale("datePicker.selectDate");}};var convertToDate$1=function convertToDate(val,format2){if(!val)return null;if(typeof val==="string"){var parsed=dayjs(val,format2,true);return parsed.isValid()?parsed:null;}if(val instanceof Date){return dayjs(val);}if(typeof val==="number"){return dayjs(val);}return null;};var getPickerProps=function getPickerProps2(_ref22){var currentValue=_ref22.currentValue,finalFormat=_ref22.finalFormat,onChange2=_ref22.onChange,disabled2=_ref22.disabled,minDate=_ref22.minDate,maxDate=_ref22.maxDate,placeholder=_ref22.placeholder,name=_ref22.name,otherProps=_ref22.otherProps,onClear=_ref22.onClear,onOpen=_ref22.onOpen,onClose=_ref22.onClose,open=_ref22.open;return{open:open,value:convertToDate$1(currentValue,finalFormat),onAccept:onChange2,onClose:onClose,disabled:disabled2,minDate:minDate?dayjs(minDate):void 0,maxDate:maxDate?dayjs(maxDate):void 0,format:finalFormat,reduceAnimations:true,slots:{textField:TextField},slotProps:{textField:_objectSpread2$1({placeholder:getPlaceholderByFormat(finalFormat,placeholder),name:name,onClick:onOpen,variant:"outlined",fullWidth:true,className:styles$j["date-input"],sx:datePickerInputStyles,InputProps:{style:{cursor:"pointer"},endAdornment:/* @__PURE__ */jsx$1(ActionComponent,{showClearIcon:!!currentValue,onClear:onClear,onOpen:onOpen})}},lodashExports.omit(otherProps,"type")),layout:{sx:_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},datePickerLayoutStyles),datePickerDigitalClockStyles),datePickerYearStyles)},day:{sx:datePickerDayStyles},popper:{sx:datePickerPopperStyles}}};};var es$1={exports:{}};(function(module,exports){!function(e,o){module.exports=o(dayjs_minExports);}(commonjsGlobal,function(e){function o(e2){return e2&&"object"==_typeof2(e2)&&"default"in e2?e2:{default:e2};}var s=o(e),d={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function ordinal(e2){return e2+"º";}};return s.default.locale(d,null,true),d;});})(es$1);var _excluded$f=["meta","name","value","disabled","required","placeholder","size","noErrors","label","minDate","maxDate","format","isValid","onChange","input"],_excluded2$5=["label","rightAdornment"];var DatePickerInput=function DatePickerInput2(props){var _input$value;var meta=props.meta,name=props.name,_props$value=props.value,value=_props$value===void 0?null:_props$value,_props$disabled=props.disabled,disabled2=_props$disabled===void 0?false:_props$disabled;props.required;var placeholder=props.placeholder,_props$size=props.size,size2=_props$size===void 0?"md":_props$size,_props$noErrors=props.noErrors,noErrors=_props$noErrors===void 0?false:_props$noErrors;props.label;var minDate=props.minDate,maxDate=props.maxDate,format2=props.format,isValid2=props.isValid,onChange2=props.onChange,input=props.input,otherProps=_objectWithoutProperties$1(props,_excluded$f);var finalFormat=getFinalFormat(format2);var pickerType=getPickerTypeFromFormat(format2);var inputValue=(_input$value=input===null||input===void 0?void 0:input.value)!==null&&_input$value!==void 0?_input$value:value;var _useState=useState(inputValue),_useState2=_slicedToArray$1(_useState,2),currentValue=_useState2[0],setCurrentValue=_useState2[1];var _useState3=useState(false),_useState4=_slicedToArray$1(_useState3,2),isOpen=_useState4[0],setIsOpen=_useState4[1];var validationProps={meta:meta,value:inputValue,isValid:isValid2,required:props.required};var validated=formValidation(validationProps);useEffect(function(){setCurrentValue(inputValue);},[inputValue]);var _useReduxFormField=useReduxFormField({input:input,onChange:onChange2?function(date){var syntheticEvent={target:{value:date?date.format(finalFormat):"",name:name}};onChange2(syntheticEvent);}:void 0,transformValue:function transformValue(date){setCurrentValue(date);return date?date.toDate():null;}}),fieldHandleChange=_useReduxFormField.handleChange;var _handleChange=function _handleChange2(date){setCurrentValue(date?date.format(finalFormat):null);fieldHandleChange(date);};var _handleClear=function _handleClear2(){setCurrentValue(null);fieldHandleChange(null);setIsOpen(false);};var _handleOpen=function _handleOpen2(){setIsOpen(!isOpen);};var _handleClose=function _handleClose2(){setIsOpen(false);};dayjs.locale("es");var Picker=function Picker2(){var commonProps=getPickerProps({currentValue:currentValue,finalFormat:finalFormat,disabled:disabled2,minDate:minDate,maxDate:maxDate,placeholder:placeholder,name:name,onChange:_handleChange,onClear:_handleClear,onOpen:_handleOpen,onClose:_handleClose,open:isOpen,otherProps:otherProps});switch(pickerType){case"year":return/* @__PURE__ */jsx$1(DatePicker$1,_objectSpread2$1(_objectSpread2$1({},commonProps),{},{views:["year"]}));case"time":return/* @__PURE__ */jsx$1(TimePicker,_objectSpread2$1(_objectSpread2$1({},commonProps),{},{views:lodashExports.includes(finalFormat,"s")?["hours","minutes","seconds"]:["hours","minutes"]}));case"dateTime":return/* @__PURE__ */jsx$1(DateTimePicker,_objectSpread2$1({},commonProps));case"date":default:return/* @__PURE__ */jsx$1(DatePicker$1,_objectSpread2$1({},commonProps));}};return/* @__PURE__ */jsx$1(LocalizationProvider,{dateAdapter:AdapterDayjs,adapterLocale:"es",children:/* @__PURE__ */jsxs("div",{className:clsx(styles$j[size2],validated?errorStyles[validated]:"",styles$j["date-picker"]),children:[/* @__PURE__ */jsx$1(Picker,{}),!noErrors&&/* @__PURE__ */jsx$1(ErrorMessage,{validationProps:validationProps})]})});};var DatePicker2=function DatePicker3(_ref3){var label2=_ref3.label,rightAdornment=_ref3.rightAdornment,props=_objectWithoutProperties$1(_ref3,_excluded2$5);return/* @__PURE__ */jsx$1(FormField,_objectSpread2$1({type:"date",label:label2,rightAdornment:rightAdornment},props));};function tzName(timeZone,date){var format2=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"long";return new Intl.DateTimeFormat("en-US",{// Enforces engine to render the time. Without the option JavaScriptCore omits it.
|
|
6921
|
+
s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"};var defaultFormats={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"};var MISSING_UTC_PLUGIN=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join("\n");var MISSING_TIMEZONE_PLUGIN=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join("\n");var withLocale=function withLocale(dayjs2,locale2){return!locale2?dayjs2:function(){return dayjs2.apply(void 0,arguments).locale(locale2);};};var AdapterDayjs=/*#__PURE__*/function(){function AdapterDayjs(){var _this37=this;var _ref419=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},_locale=_ref419.locale,formats=_ref419.formats;_classCallCheck2(this,AdapterDayjs);this.isMUIAdapter=true;this.isTimezoneCompatible=true;this.lib="dayjs";this.dayjs=void 0;this.locale=void 0;this.formats=void 0;this.escapedCharacters={start:"[",end:"]"};this.formatTokenMap=formatTokenMap;this.setLocaleToValue=function(value){var expectedLocale=_this37.getCurrentLocaleCode();if(expectedLocale===value.locale()){return value;}return value.locale(expectedLocale);};this.hasUTCPlugin=function(){return typeof dayjs.utc!=="undefined";};this.hasTimezonePlugin=function(){return typeof dayjs.tz!=="undefined";};this.isSame=function(value,comparing,comparisonTemplate){var comparingInValueTimezone=_this37.setTimezone(comparing,_this37.getTimezone(value));return value.format(comparisonTemplate)===comparingInValueTimezone.format(comparisonTemplate);};this.cleanTimezone=function(timezone){switch(timezone){case"default":{return void 0;}case"system":{return dayjs.tz.guess();}default:{return timezone;}}};this.createSystemDate=function(value){if(_this37.hasUTCPlugin()&&_this37.hasTimezonePlugin()){var timezone=dayjs.tz.guess();if(timezone!=="UTC"){return dayjs.tz(value,timezone);}return dayjs(value);}return dayjs(value);};this.createUTCDate=function(value){if(!_this37.hasUTCPlugin()){throw new Error(MISSING_UTC_PLUGIN);}return dayjs.utc(value);};this.createTZDate=function(value,timezone){if(!_this37.hasUTCPlugin()){throw new Error(MISSING_UTC_PLUGIN);}if(!_this37.hasTimezonePlugin()){throw new Error(MISSING_TIMEZONE_PLUGIN);}var keepLocalTime=value!==void 0&&!value.endsWith("Z");return dayjs(value).tz(_this37.cleanTimezone(timezone),keepLocalTime);};this.getLocaleFormats=function(){var locales=dayjs.Ls;var locale2=_this37.locale||"en";var localeObject=locales[locale2];if(localeObject===void 0){if(process.env.NODE_ENV!=="production"){warnOnce(["MUI X: Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale."]);}localeObject=locales.en;}return localeObject.formats;};this.adjustOffset=function(value){var _a;if(!_this37.hasTimezonePlugin()){return value;}var timezone=_this37.getTimezone(value);if(timezone!=="UTC"){var fixedValue=value.tz(_this37.cleanTimezone(timezone),true);if(fixedValue.$offset===((_a=value.$offset)!=null?_a:0)){return value;}value.$offset=fixedValue.$offset;}return value;};this.date=function(value){var timezone=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"default";if(value===null){return null;}var parsedValue;if(timezone==="UTC"){parsedValue=_this37.createUTCDate(value);}else if(timezone==="system"||timezone==="default"&&!_this37.hasTimezonePlugin()){parsedValue=_this37.createSystemDate(value);}else{parsedValue=_this37.createTZDate(value,timezone);}if(_this37.locale===void 0){return parsedValue;}return parsedValue.locale(_this37.locale);};this.getInvalidDate=function(){return dayjs(/* @__PURE__ */new Date("Invalid date"));};this.getTimezone=function(value){var _a;if(_this37.hasTimezonePlugin()){var zone=(_a=value.$x)==null?void 0:_a.$timezone;if(zone){return zone;}}if(_this37.hasUTCPlugin()&&value.isUTC()){return"UTC";}return"system";};this.setTimezone=function(value,timezone){if(_this37.getTimezone(value)===timezone){return value;}if(timezone==="UTC"){if(!_this37.hasUTCPlugin()){throw new Error(MISSING_UTC_PLUGIN);}return value.utc();}if(timezone==="system"){return value.local();}if(!_this37.hasTimezonePlugin()){if(timezone==="default"){return value;}throw new Error(MISSING_TIMEZONE_PLUGIN);}return dayjs.tz(value,_this37.cleanTimezone(timezone));};this.toJsDate=function(value){return value.toDate();};this.parse=function(value,format2){if(value===""){return null;}return _this37.dayjs(value,format2,_this37.locale,true);};this.getCurrentLocaleCode=function(){return _this37.locale||"en";};this.is12HourCycleInCurrentLocale=function(){return /A|a/.test(_this37.getLocaleFormats().LT||"");};this.expandFormat=function(format2){var localeFormats=_this37.getLocaleFormats();var t=function t(formatBis){return formatBis.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(_2,a,b){return a||b.slice(1);});};return format2.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(_2,a,b){var B=b&&b.toUpperCase();return a||localeFormats[b]||t(localeFormats[B]);});};this.isValid=function(value){if(value==null){return false;}return value.isValid();};this.format=function(value,formatKey){return _this37.formatByString(value,_this37.formats[formatKey]);};this.formatByString=function(value,formatString){return _this37.dayjs(value).format(formatString);};this.formatNumber=function(numberToFormat){return numberToFormat;};this.isEqual=function(value,comparing){if(value===null&&comparing===null){return true;}if(value===null||comparing===null){return false;}return value.toDate().getTime()===comparing.toDate().getTime();};this.isSameYear=function(value,comparing){return _this37.isSame(value,comparing,"YYYY");};this.isSameMonth=function(value,comparing){return _this37.isSame(value,comparing,"YYYY-MM");};this.isSameDay=function(value,comparing){return _this37.isSame(value,comparing,"YYYY-MM-DD");};this.isSameHour=function(value,comparing){return value.isSame(comparing,"hour");};this.isAfter=function(value,comparing){return value>comparing;};this.isAfterYear=function(value,comparing){if(!_this37.hasUTCPlugin()){return value.isAfter(comparing,"year");}return!_this37.isSameYear(value,comparing)&&value.utc()>comparing.utc();};this.isAfterDay=function(value,comparing){if(!_this37.hasUTCPlugin()){return value.isAfter(comparing,"day");}return!_this37.isSameDay(value,comparing)&&value.utc()>comparing.utc();};this.isBefore=function(value,comparing){return value<comparing;};this.isBeforeYear=function(value,comparing){if(!_this37.hasUTCPlugin()){return value.isBefore(comparing,"year");}return!_this37.isSameYear(value,comparing)&&value.utc()<comparing.utc();};this.isBeforeDay=function(value,comparing){if(!_this37.hasUTCPlugin()){return value.isBefore(comparing,"day");}return!_this37.isSameDay(value,comparing)&&value.utc()<comparing.utc();};this.isWithinRange=function(value,_ref420){var _ref421=_slicedToArray2(_ref420,2),start2=_ref421[0],end2=_ref421[1];return value>=start2&&value<=end2;};this.startOfYear=function(value){return _this37.adjustOffset(value.startOf("year"));};this.startOfMonth=function(value){return _this37.adjustOffset(value.startOf("month"));};this.startOfWeek=function(value){return _this37.adjustOffset(_this37.setLocaleToValue(value).startOf("week"));};this.startOfDay=function(value){return _this37.adjustOffset(value.startOf("day"));};this.endOfYear=function(value){return _this37.adjustOffset(value.endOf("year"));};this.endOfMonth=function(value){return _this37.adjustOffset(value.endOf("month"));};this.endOfWeek=function(value){return _this37.adjustOffset(_this37.setLocaleToValue(value).endOf("week"));};this.endOfDay=function(value){return _this37.adjustOffset(value.endOf("day"));};this.addYears=function(value,amount){return _this37.adjustOffset(amount<0?value.subtract(Math.abs(amount),"year"):value.add(amount,"year"));};this.addMonths=function(value,amount){return _this37.adjustOffset(amount<0?value.subtract(Math.abs(amount),"month"):value.add(amount,"month"));};this.addWeeks=function(value,amount){return _this37.adjustOffset(amount<0?value.subtract(Math.abs(amount),"week"):value.add(amount,"week"));};this.addDays=function(value,amount){return _this37.adjustOffset(amount<0?value.subtract(Math.abs(amount),"day"):value.add(amount,"day"));};this.addHours=function(value,amount){return _this37.adjustOffset(amount<0?value.subtract(Math.abs(amount),"hour"):value.add(amount,"hour"));};this.addMinutes=function(value,amount){return _this37.adjustOffset(amount<0?value.subtract(Math.abs(amount),"minute"):value.add(amount,"minute"));};this.addSeconds=function(value,amount){return _this37.adjustOffset(amount<0?value.subtract(Math.abs(amount),"second"):value.add(amount,"second"));};this.getYear=function(value){return value.year();};this.getMonth=function(value){return value.month();};this.getDate=function(value){return value.date();};this.getHours=function(value){return value.hour();};this.getMinutes=function(value){return value.minute();};this.getSeconds=function(value){return value.second();};this.getMilliseconds=function(value){return value.millisecond();};this.setYear=function(value,year){return _this37.adjustOffset(value.set("year",year));};this.setMonth=function(value,month2){return _this37.adjustOffset(value.set("month",month2));};this.setDate=function(value,date){return _this37.adjustOffset(value.set("date",date));};this.setHours=function(value,hours){return _this37.adjustOffset(value.set("hour",hours));};this.setMinutes=function(value,minutes){return _this37.adjustOffset(value.set("minute",minutes));};this.setSeconds=function(value,seconds){return _this37.adjustOffset(value.set("second",seconds));};this.setMilliseconds=function(value,milliseconds){return _this37.adjustOffset(value.set("millisecond",milliseconds));};this.getDaysInMonth=function(value){return value.daysInMonth();};this.getWeekArray=function(value){var start2=_this37.startOfWeek(_this37.startOfMonth(value));var end2=_this37.endOfWeek(_this37.endOfMonth(value));var count2=0;var current=start2;var nestedWeeks=[];while(current<end2){var weekNumber=Math.floor(count2/7);nestedWeeks[weekNumber]=nestedWeeks[weekNumber]||[];nestedWeeks[weekNumber].push(current);current=_this37.addDays(current,1);count2+=1;}return nestedWeeks;};this.getWeekNumber=function(value){return value.week();};this.getYearRange=function(_ref422){var _ref423=_slicedToArray2(_ref422,2),start2=_ref423[0],end2=_ref423[1];var startDate=_this37.startOfYear(start2);var endDate=_this37.endOfYear(end2);var years=[];var current=startDate;while(_this37.isBefore(current,endDate)){years.push(current);current=_this37.addYears(current,1);}return years;};this.dayjs=withLocale(dayjs,_locale);this.locale=_locale;this.formats=_extends$1({},defaultFormats,formats);dayjs.extend(customParseFormat);}return _createClass2(AdapterDayjs,[{key:"getDayOfWeek",value:function getDayOfWeek(value){return value.day()+1;}}]);}();var lg$6="datePicker-module_lg_lvvw6";var md$5="datePicker-module_md_ENhFs";var sm$7="datePicker-module_sm_RywFd";var styles$j={"date-picker":"datePicker-module_date-picker_utM--",lg:lg$6,"date-input":"datePicker-module_date-input_kaWUt",md:md$5,sm:sm$7,"calendar-icon-container":"datePicker-module_calendar-icon-container_qUmId","clear-icon":"datePicker-module_clear-icon_potHo","calendar-icon":"datePicker-module_calendar-icon_gaSkr","divider-line":"datePicker-module_divider-line_fdFED"};var datePickerLayoutStyles={"& .MuiDayCalendar-slideTransition":{minHeight:"200px"},"& .MuiDialogActions-root":{display:"none"},"& .MuiPickersLayout-actionBar":{display:"none"},"& .MuiDateCalendar-root":{height:"min-content !important"},"& .MuiPickersCalendarHeader-label":{fontFamily:"Poppins, Open Sans, Helvetica, Arial, sans-serif",fontSize:"14px",color:"#797979",fontWeight:600,textTransform:"capitalize"},"& .MuiDayCalendar-weekDayLabel":{fontFamily:"Poppins, Open Sans, Helvetica, Arial, sans-serif",fontSize:"12px",color:"#797979",fontWeight:600}};var datePickerInputStyles={"& .MuiOutlinedInput-root":{"&:hover":{"& .MuiOutlinedInput-notchedOutline":{borderColor:"#ACACAC"}},"&.Mui-focused":{"& .MuiOutlinedInput-notchedOutline":{borderColor:"#252525"}},"&.Mui-disabled":{"& .MuiOutlinedInput-notchedOutline":{borderColor:"#D7D7D7"}}}};var datePickerDayStyles={fontFamily:"Poppins, Open Sans, Helvetica, Arial, sans-serif",fontSize:"12px",backgroundColor:"white",color:"#252525",borderRadius:"4px","&.MuiPickersDay-root":{fontSize:"14px",textTransform:"capitalize"},"&.MuiPickersDay-today":{backgroundColor:"white",color:"#252525",border:"1px solid #252525"},"&.Mui-selected":{backgroundColor:"#0066ff",color:"white",border:"none","&:hover":{backgroundColor:"#0066ff",borderColor:"none"},"&:focus":{backgroundColor:"#0066ff",borderColor:"none"}},"&:hover:not(.Mui-selected)":{color:"#252525",backgroundColor:"#EDEDED",borderColor:"none"}};var datePickerDigitalClockStyles={"& .MuiMultiSectionDigitalClock-root":{"& .MuiList-root.MuiList-padding.MuiMultiSectionDigitalClockSection-root":{"&::after":{display:"none"}},"& .MuiButtonBase-root.MuiMenuItem-root.MuiMenuItem-gutters":{fontFamily:"Poppins, Open Sans, Helvetica, Arial, sans-serif",backgroundColor:"white",color:"#252525",borderRadius:"4px",width:"32px",height:"32px",margin:"4px 0 0 4px",fontSize:" 14px","&.Mui-selected":{backgroundColor:"#0066ff",color:"white","&:hover":{backgroundColor:"#0066ff"},"&:focus":{backgroundColor:"#0066ff"}},"&:hover:not(.Mui-selected)":{color:"#252525",backgroundColor:"#EDEDED"}}}};var datePickerYearStyles={"& .MuiYearCalendar-root":{"& .MuiPickersYear-root":{"& .MuiPickersYear-yearButton":{fontFamily:"Poppins, Open Sans, Helvetica, Arial, sans-serif",fontSize:"14px",backgroundColor:"white",color:"#252525",borderRadius:"4px","&.Mui-selected":{backgroundColor:"#0066ff",color:"white","&:hover":{backgroundColor:"#0066ff"},"&:focus":{backgroundColor:"#0066ff"}},"&:hover:not(.Mui-selected)":{backgroundColor:"#EDEDED",color:"#252525"}}}}};var datePickerPopperStyles={"& .MuiPickersPopper-paper":{boxShadow:"0px 5px 5px -3px rgb(205 205 205 / 20%), 0px 8px 14px 1px rgb(165 165 165 / 14%), 0px 3px 14px 2px rgb(219 219 219 / 6%)"}};dayjs.extend(customParseFormat);var ActionComponent=function ActionComponent2(_ref3){var showClearIcon=_ref3.showClearIcon,onClear=_ref3.onClear,onOpen=_ref3.onOpen;return/* @__PURE__ */jsxs("div",{className:styles$j["calendar-icon-container"],children:[showClearIcon&&/* @__PURE__ */jsx$1("div",{onClick:onClear,className:styles$j["clear-icon"],children:/* @__PURE__ */jsx$1(CustomIcon,{children:/* @__PURE__ */jsx$1(CloseRoundedIcon,{})})}),/* @__PURE__ */jsx$1("div",{className:styles$j["divider-line"]}),/* @__PURE__ */jsx$1("div",{onClick:onOpen,className:styles$j["calendar-icon"],children:/* @__PURE__ */jsx$1(CustomIcon,{size:"12",children:/* @__PURE__ */jsx$1(CalendarTodayIcon,{})})})]});};var getPickerTypeFromFormat=function getPickerTypeFromFormat2(format2){if(!format2){return"date";}if(/^Y+$/.test(format2)){return"year";}if(/^[Hhms:]+$/.test(format2)){return"time";}if(lodashExports.includes(format2,"H")||lodashExports.includes(format2,"h")||lodashExports.includes(format2,"m")||lodashExports.includes(format2,"s")){return"dateTime";}return"date";};var getFinalFormat=function getFinalFormat2(format2){if(format2)return format2;return"DD/MM/YYYY";};var getPlaceholderByFormat=function getPlaceholderByFormat2(format2,customPlaceholder){if(customPlaceholder)return customPlaceholder;var pickerType=getPickerTypeFromFormat(format2);switch(pickerType){case"year":return locale("datePicker.selectYear");case"time":return locale("datePicker.selectTime");case"dateTime":return locale("datePicker.selectDateTime");case"date":default:return locale("datePicker.selectDate");}};var convertToDate$1=function convertToDate(val,format2){if(!val)return null;if(typeof val==="string"){var parsed=dayjs(val,format2,true);return parsed.isValid()?parsed:null;}if(val instanceof Date){return dayjs(val);}if(typeof val==="number"){return dayjs(val);}return null;};var getPickerProps=function getPickerProps2(_ref22){var currentValue=_ref22.currentValue,finalFormat=_ref22.finalFormat,onChange2=_ref22.onChange,disabled2=_ref22.disabled,minDate=_ref22.minDate,maxDate=_ref22.maxDate,placeholder=_ref22.placeholder,name=_ref22.name,otherProps=_ref22.otherProps,onClear=_ref22.onClear,onOpen=_ref22.onOpen,onClose=_ref22.onClose,open=_ref22.open;return{open:open,value:convertToDate$1(currentValue,finalFormat),onAccept:onChange2,onClose:onClose,disabled:disabled2,minDate:minDate?dayjs(minDate):void 0,maxDate:maxDate?dayjs(maxDate):void 0,format:finalFormat,reduceAnimations:true,slots:{textField:TextField},slotProps:{textField:_objectSpread2$1({placeholder:getPlaceholderByFormat(finalFormat,placeholder),name:name,onClick:onOpen,variant:"outlined",fullWidth:true,className:styles$j["date-input"],sx:datePickerInputStyles,InputProps:{style:{cursor:"pointer"},endAdornment:/* @__PURE__ */jsx$1(ActionComponent,{showClearIcon:!!currentValue,onClear:onClear,onOpen:onOpen})}},lodashExports.omit(otherProps,"type")),layout:{sx:_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},datePickerLayoutStyles),datePickerDigitalClockStyles),datePickerYearStyles)},day:{sx:datePickerDayStyles},popper:{sx:datePickerPopperStyles}}};};var es$1={exports:{}};(function(module,exports){!function(e,o){module.exports=o(dayjs_minExports);}(commonjsGlobal,function(e){function o(e2){return e2&&"object"==_typeof2(e2)&&"default"in e2?e2:{default:e2};}var s=o(e),d={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function ordinal(e2){return e2+"º";}};return s.default.locale(d,null,true),d;});})(es$1);var _excluded$f=["meta","name","value","disabled","required","placeholder","size","noErrors","label","minDate","maxDate","format","isValid","onChange","input"],_excluded2$5=["label","rightAdornment"];var DatePickerInput=function DatePickerInput2(props){var _input$value;var meta=props.meta,name=props.name,_props$value=props.value,value=_props$value===void 0?null:_props$value,_props$disabled=props.disabled,disabled2=_props$disabled===void 0?false:_props$disabled;props.required;var placeholder=props.placeholder,_props$size=props.size,size2=_props$size===void 0?"md":_props$size,_props$noErrors=props.noErrors,noErrors=_props$noErrors===void 0?false:_props$noErrors;props.label;var minDate=props.minDate,maxDate=props.maxDate,format2=props.format,isValid2=props.isValid,onChange2=props.onChange,input=props.input,otherProps=_objectWithoutProperties$1(props,_excluded$f);var finalFormat=getFinalFormat(format2);var pickerType=getPickerTypeFromFormat(format2);var inputValue=(_input$value=input===null||input===void 0?void 0:input.value)!==null&&_input$value!==void 0?_input$value:value;var _useState=useState(inputValue),_useState2=_slicedToArray$1(_useState,2),currentValue=_useState2[0],setCurrentValue=_useState2[1];var _useState3=useState(false),_useState4=_slicedToArray$1(_useState3,2),isOpen=_useState4[0],setIsOpen=_useState4[1];var validationProps={meta:meta,value:inputValue,isValid:isValid2,required:props.required};var validated=formValidation(validationProps);useEffect(function(){setCurrentValue(inputValue);},[inputValue]);var _useReduxFormField=useReduxFormField({input:input,onChange:onChange2?function(date){var syntheticEvent={target:{value:date?date.format(finalFormat):"",name:name}};onChange2(syntheticEvent);}:void 0,transformValue:function transformValue(date){setCurrentValue(date);return date?date.toDate():null;}}),fieldHandleChange=_useReduxFormField.handleChange;var _handleChange=function _handleChange2(date){setCurrentValue(date?date.format(finalFormat):null);fieldHandleChange(date);};var _handleClear=function _handleClear2(){setCurrentValue(null);fieldHandleChange(null);setIsOpen(false);};var _handleOpen=function _handleOpen2(){setIsOpen(!isOpen);};var _handleClose=function _handleClose2(){setIsOpen(false);};dayjs.locale("es");var Picker=function Picker2(){var commonProps=getPickerProps({currentValue:currentValue,finalFormat:finalFormat,disabled:disabled2,minDate:minDate,maxDate:maxDate,placeholder:placeholder,name:name,onChange:_handleChange,onClear:_handleClear,onOpen:_handleOpen,onClose:_handleClose,open:isOpen,otherProps:otherProps});switch(pickerType){case"year":return/* @__PURE__ */jsx$1(DatePicker$1,_objectSpread2$1(_objectSpread2$1({},commonProps),{},{views:["year"]}));case"time":return/* @__PURE__ */jsx$1(TimePicker,_objectSpread2$1(_objectSpread2$1({},commonProps),{},{views:lodashExports.includes(finalFormat,"s")?["hours","minutes","seconds"]:["hours","minutes"]}));case"dateTime":return/* @__PURE__ */jsx$1(DateTimePicker,_objectSpread2$1({},commonProps));case"date":default:return/* @__PURE__ */jsx$1(DatePicker$1,_objectSpread2$1({},commonProps));}};return/* @__PURE__ */jsx$1(LocalizationProvider,{dateAdapter:AdapterDayjs,adapterLocale:"es",children:/* @__PURE__ */jsxs("div",{className:clsx(styles$j[size2],validated?errorStyles[validated]:"",styles$j["date-picker"]),children:[/* @__PURE__ */jsx$1(Picker,{}),!noErrors&&/* @__PURE__ */jsx$1(ErrorMessage,{validationProps:validationProps})]})});};var DatePicker2=function DatePicker3(_ref3){var label2=_ref3.label,rightAdornment=_ref3.rightAdornment,props=_objectWithoutProperties$1(_ref3,_excluded2$5);return/* @__PURE__ */jsx$1(FormField,_objectSpread2$1({type:"date",label:label2,rightAdornment:rightAdornment},props));};function tzName(timeZone,date){var format2=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"long";return new Intl.DateTimeFormat("en-US",{// Enforces engine to render the time. Without the option JavaScriptCore omits it.
|
|
6922
6922
|
hour:"numeric",timeZone:timeZone,timeZoneName:format2}).format(date).split(/\s/g).slice(2).join(" ");}var offsetFormatCache={};var offsetCache={};function tzOffset(timeZone,date){try{var format2=offsetFormatCache[timeZone]||(offsetFormatCache[timeZone]=new Intl.DateTimeFormat("en-US",{timeZone:timeZone,timeZoneName:"longOffset"}).format);var offsetStr=format2(date).split("GMT")[1];if(offsetStr in offsetCache)return offsetCache[offsetStr];return calcOffset(offsetStr,offsetStr.split(":"));}catch(e){if(timeZone in offsetCache)return offsetCache[timeZone];var captures=timeZone==null?void 0:timeZone.match(offsetRe);if(captures)return calcOffset(timeZone,captures.slice(1));return NaN;}}var offsetRe=/([+-]\d\d):?(\d\d)?/;function calcOffset(cacheStr,values2){var hours=+(values2[0]||0);var minutes=+(values2[1]||0);var seconds=+(values2[2]||0)/60;return offsetCache[cacheStr]=hours*60+minutes>0?hours*60+minutes+seconds:hours*60-minutes-seconds;}var TZDateMini=/*#__PURE__*/function(_Date){//#region static
|
|
6923
6923
|
function TZDateMini(){var _this38;_classCallCheck2(this,TZDateMini);_this38=_callSuper(this,TZDateMini);for(var _len32=arguments.length,args=new Array(_len32),_key31=0;_key31<_len32;_key31++){args[_key31]=arguments[_key31];}if(args.length>1&&typeof args[args.length-1]==="string"){_this38.timeZone=args.pop();}_this38.internal=/* @__PURE__ */new Date();if(isNaN(tzOffset(_this38.timeZone,_this38))){_this38.setTime(NaN);}else{if(!args.length){_this38.setTime(Date.now());}else if(typeof args[0]==="number"&&(args.length===1||args.length===2&&typeof args[1]!=="number")){_this38.setTime(args[0]);}else if(typeof args[0]==="string"){_this38.setTime(+new Date(args[0]));}else if(args[0]instanceof Date){_this38.setTime(+args[0]);}else{_this38.setTime(+_construct(Date,args));adjustToSystemTZ(_this38);syncToInternal(_this38);}}return _this38;}_inherits2(TZDateMini,_Date);return _createClass2(TZDateMini,[{key:"withTimeZone",value://#endregion
|
|
6924
6924
|
//#region time zone
|
|
@@ -7057,7 +7057,7 @@ facade:{get current(){return ref.value;},set current(value){var last=ref.value;i
|
|
|
7057
7057
|
styles2[overflow]!=="hidden"&&// contains scroll inside self
|
|
7058
7058
|
!(styles2.overflowY===styles2.overflowX&&!alwaysContainsScroll(node2)&&styles2[overflow]==="visible"));};var elementCouldBeVScrolled=function elementCouldBeVScrolled(node2){return elementCanBeScrolled(node2,"overflowY");};var elementCouldBeHScrolled=function elementCouldBeHScrolled(node2){return elementCanBeScrolled(node2,"overflowX");};var locationCouldBeScrolled=function locationCouldBeScrolled(axis,node2){var ownerDocument2=node2.ownerDocument;var current=node2;do{if(typeof ShadowRoot!=="undefined"&¤t instanceof ShadowRoot){current=current.host;}var isScrollable=elementCouldBeScrolled(axis,current);if(isScrollable){var _a=getScrollVariables(axis,current),scrollHeight=_a[1],clientHeight=_a[2];if(scrollHeight>clientHeight){return true;}}current=current.parentNode;}while(current&¤t!==ownerDocument2.body);return false;};var getVScrollVariables=function getVScrollVariables(_a){var scrollTop=_a.scrollTop,scrollHeight=_a.scrollHeight,clientHeight=_a.clientHeight;return[scrollTop,scrollHeight,clientHeight];};var getHScrollVariables=function getHScrollVariables(_a){var scrollLeft=_a.scrollLeft,scrollWidth=_a.scrollWidth,clientWidth=_a.clientWidth;return[scrollLeft,scrollWidth,clientWidth];};var elementCouldBeScrolled=function elementCouldBeScrolled(axis,node2){return axis==="v"?elementCouldBeVScrolled(node2):elementCouldBeHScrolled(node2);};var getScrollVariables=function getScrollVariables(axis,node2){return axis==="v"?getVScrollVariables(node2):getHScrollVariables(node2);};var getDirectionFactor=function getDirectionFactor(axis,direction){return axis==="h"&&direction==="rtl"?-1:1;};var handleScroll=function handleScroll(axis,endTarget,event,sourceDelta,noOverscroll){var directionFactor=getDirectionFactor(axis,window.getComputedStyle(endTarget).direction);var delta=directionFactor*sourceDelta;var target=event.target;var targetInLock=endTarget.contains(target);var shouldCancelScroll=false;var isDeltaPositive=delta>0;var availableScroll=0;var availableScrollTop=0;do{if(!target){break;}var _a=getScrollVariables(axis,target),position2=_a[0],scroll_1=_a[1],capacity=_a[2];var elementScroll=scroll_1-capacity-directionFactor*position2;if(position2||elementScroll){if(elementCouldBeScrolled(axis,target)){availableScroll+=elementScroll;availableScrollTop+=position2;}}var parent_1=target.parentNode;target=parent_1&&parent_1.nodeType===Node.DOCUMENT_FRAGMENT_NODE?parent_1.host:parent_1;}while(// portaled content
|
|
7059
7059
|
!targetInLock&&target!==document.body||// self content
|
|
7060
|
-
targetInLock&&(endTarget.contains(target)||endTarget===target));if(isDeltaPositive&&(Math.abs(availableScroll)<1||false)){shouldCancelScroll=true;}else if(!isDeltaPositive&&(Math.abs(availableScrollTop)<1||false)){shouldCancelScroll=true;}return shouldCancelScroll;};var getTouchXY=function getTouchXY(event){return"changedTouches"in event?[event.changedTouches[0].clientX,event.changedTouches[0].clientY]:[0,0];};var getDeltaXY=function getDeltaXY(event){return[event.deltaX,event.deltaY];};var extractRef=function extractRef(ref){return ref&&"current"in ref?ref.current:ref;};var deltaCompare=function deltaCompare(x,y){return x[0]===y[0]&&x[1]===y[1];};var generateStyle=function generateStyle(id){return"\n .block-interactivity-".concat(id," {pointer-events: none;}\n .allow-interactivity-").concat(id," {pointer-events: all;}\n");};var idCounter=0;var lockStack=[];function RemoveScrollSideCar(props){var shouldPreventQueue=React.useRef([]);var touchStartRef=React.useRef([0,0]);var activeAxis=React.useRef();var id=React.useState(idCounter++)[0];var Style2=React.useState(styleSingleton)[0];var lastProps=React.useRef(props);React.useEffect(function(){lastProps.current=props;},[props]);React.useEffect(function(){if(props.inert){document.body.classList.add("block-interactivity-".concat(id));var allow_1=__spreadArray([props.lockRef.current],(props.shards||[]).map(extractRef),true).filter(Boolean);allow_1.forEach(function(el){return el.classList.add("allow-interactivity-".concat(id));});return function(){document.body.classList.remove("block-interactivity-".concat(id));allow_1.forEach(function(el){return el.classList.remove("allow-interactivity-".concat(id));});};}return;},[props.inert,props.lockRef.current,props.shards]);var shouldCancelEvent=React.useCallback(function(event,parent){if("touches"in event&&event.touches.length===2||event.type==="wheel"&&event.ctrlKey){return!lastProps.current.allowPinchZoom;}var touch=getTouchXY(event);var touchStart=touchStartRef.current;var deltaX="deltaX"in event?event.deltaX:touchStart[0]-touch[0];var deltaY="deltaY"in event?event.deltaY:touchStart[1]-touch[1];var currentAxis;var target=event.target;var moveDirection=Math.abs(deltaX)>Math.abs(deltaY)?"h":"v";if("touches"in event&&moveDirection==="h"&&target.type==="range"){return false;}var canBeScrolledInMainDirection=locationCouldBeScrolled(moveDirection,target);if(!canBeScrolledInMainDirection){return true;}if(canBeScrolledInMainDirection){currentAxis=moveDirection;}else{currentAxis=moveDirection==="v"?"h":"v";canBeScrolledInMainDirection=locationCouldBeScrolled(moveDirection,target);}if(!canBeScrolledInMainDirection){return false;}if(!activeAxis.current&&"changedTouches"in event&&(deltaX||deltaY)){activeAxis.current=currentAxis;}if(!currentAxis){return true;}var cancelingAxis=activeAxis.current||currentAxis;return handleScroll(cancelingAxis,parent,event,cancelingAxis==="h"?deltaX:deltaY);},[]);var shouldPrevent=React.useCallback(function(_event){var event=_event;if(!lockStack.length||lockStack[lockStack.length-1]!==Style2){return;}var delta="deltaY"in event?getDeltaXY(event):getTouchXY(event);var sourceEvent=shouldPreventQueue.current.filter(function(e){return e.name===event.type&&(e.target===event.target||event.target===e.shadowParent)&&deltaCompare(e.delta,delta);})[0];if(sourceEvent&&sourceEvent.should){if(event.cancelable){event.preventDefault();}return;}if(!sourceEvent){var shardNodes=(lastProps.current.shards||[]).map(extractRef).filter(Boolean).filter(function(node2){return node2.contains(event.target);});var shouldStop=shardNodes.length>0?shouldCancelEvent(event,shardNodes[0]):!lastProps.current.noIsolation;if(shouldStop){if(event.cancelable){event.preventDefault();}}}},[]);var shouldCancel=React.useCallback(function(name,delta,target,should){var event={name:name,delta:delta,target:target,should:should,shadowParent:getOutermostShadowParent(target)};shouldPreventQueue.current.push(event);setTimeout(function(){shouldPreventQueue.current=shouldPreventQueue.current.filter(function(e){return e!==event;});},1);},[]);var scrollTouchStart=React.useCallback(function(event){touchStartRef.current=getTouchXY(event);activeAxis.current=void 0;},[]);var scrollWheel=React.useCallback(function(event){shouldCancel(event.type,getDeltaXY(event),event.target,shouldCancelEvent(event,props.lockRef.current));},[]);var scrollTouchMove=React.useCallback(function(event){shouldCancel(event.type,getTouchXY(event),event.target,shouldCancelEvent(event,props.lockRef.current));},[]);React.useEffect(function(){lockStack.push(Style2);props.setCallbacks({onScrollCapture:scrollWheel,onWheelCapture:scrollWheel,onTouchMoveCapture:scrollTouchMove});document.addEventListener("wheel",shouldPrevent,nonPassive);document.addEventListener("touchmove",shouldPrevent,nonPassive);document.addEventListener("touchstart",scrollTouchStart,nonPassive);return function(){lockStack=lockStack.filter(function(inst){return inst!==Style2;});document.removeEventListener("wheel",shouldPrevent,nonPassive);document.removeEventListener("touchmove",shouldPrevent,nonPassive);document.removeEventListener("touchstart",scrollTouchStart,nonPassive);};},[]);var removeScrollBar=props.removeScrollBar,inert=props.inert;return/*#__PURE__*/React.createElement(React.Fragment,null,inert?/*#__PURE__*/React.createElement(Style2,{styles:generateStyle(id)}):null,removeScrollBar?/*#__PURE__*/React.createElement(RemoveScrollBar,{noRelative:props.noRelative,gapMode:props.gapMode}):null);}function getOutermostShadowParent(node2){var shadowParent=null;while(node2!==null){if(node2 instanceof ShadowRoot){shadowParent=node2.host;node2=node2.host;}node2=node2.parentNode;}return shadowParent;}var SideCar=exportSidecar(effectCar,RemoveScrollSideCar);var ReactRemoveScroll=/*#__PURE__*/React.forwardRef(function(props,ref){return/*#__PURE__*/React.createElement(RemoveScroll,_assign$({},props,{ref:ref,sideCar:SideCar}));});ReactRemoveScroll.classNames=RemoveScroll.classNames;var POPOVER_NAME="Popover";var _createContextScope3=createContextScope(POPOVER_NAME,[createPopperScope]),_createContextScope4=_slicedToArray2(_createContextScope3,1),createPopoverContext=_createContextScope4[0];var usePopperScope=createPopperScope();var _createPopoverContext=createPopoverContext(POPOVER_NAME),_createPopoverContext2=_slicedToArray2(_createPopoverContext,2),PopoverProvider=_createPopoverContext2[0],usePopoverContext=_createPopoverContext2[1];var Popover2=function Popover2(props){var __scopePopover=props.__scopePopover,children=props.children,openProp=props.open,defaultOpen=props.defaultOpen,onOpenChange=props.onOpenChange,_props$modal=props.modal,modal2=_props$modal===void 0?false:_props$modal;var popperScope=usePopperScope(__scopePopover);var triggerRef=React.useRef(null);var _React$useState113=React.useState(false),_React$useState114=_slicedToArray2(_React$useState113,2),hasCustomAnchor=_React$useState114[0],setHasCustomAnchor=_React$useState114[1];var _useControllableState=useControllableState({prop:openProp,defaultProp:defaultOpen!=null?defaultOpen:false,onChange:onOpenChange,caller:POPOVER_NAME}),_useControllableState2=_slicedToArray2(_useControllableState,2),open=_useControllableState2[0],setOpen=_useControllableState2[1];return/* @__PURE__ */jsx$1(Root2$1,__spreadProps(__spreadValues({},popperScope),{children:/* @__PURE__ */jsx$1(PopoverProvider,{scope:__scopePopover,contentId:useId(),triggerRef:triggerRef,open:open,onOpenChange:setOpen,onOpenToggle:React.useCallback(function(){return setOpen(function(prevOpen){return!prevOpen;});},[setOpen]),hasCustomAnchor:hasCustomAnchor,onCustomAnchorAdd:React.useCallback(function(){return setHasCustomAnchor(true);},[]),onCustomAnchorRemove:React.useCallback(function(){return setHasCustomAnchor(false);},[]),modal:modal2,children:children})}));};Popover2.displayName=POPOVER_NAME;var ANCHOR_NAME="PopoverAnchor";var PopoverAnchor=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var _a=props,__scopePopover=_a.__scopePopover,anchorProps=__objRest(_a,["__scopePopover"]);var context=usePopoverContext(ANCHOR_NAME,__scopePopover);var popperScope=usePopperScope(__scopePopover);var onCustomAnchorAdd=context.onCustomAnchorAdd,onCustomAnchorRemove=context.onCustomAnchorRemove;React.useEffect(function(){onCustomAnchorAdd();return function(){return onCustomAnchorRemove();};},[onCustomAnchorAdd,onCustomAnchorRemove]);return/* @__PURE__ */jsx$1(Anchor,__spreadProps(__spreadValues(__spreadValues({},popperScope),anchorProps),{ref:forwardedRef}));});PopoverAnchor.displayName=ANCHOR_NAME;var TRIGGER_NAME="PopoverTrigger";var PopoverTrigger=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var _a=props,__scopePopover=_a.__scopePopover,triggerProps=__objRest(_a,["__scopePopover"]);var context=usePopoverContext(TRIGGER_NAME,__scopePopover);var popperScope=usePopperScope(__scopePopover);var composedTriggerRef=useComposedRefs(forwardedRef,context.triggerRef);var trigger=/* @__PURE__ */jsx$1(Primitive.button,__spreadProps(__spreadValues({type:"button","aria-haspopup":"dialog","aria-expanded":context.open,"aria-controls":context.contentId,"data-state":getState(context.open)},triggerProps),{ref:composedTriggerRef,onClick:composeEventHandlers(props.onClick,context.onOpenToggle)}));return context.hasCustomAnchor?trigger:/* @__PURE__ */jsx$1(Anchor,__spreadProps(__spreadValues({asChild:true},popperScope),{children:trigger}));});PopoverTrigger.displayName=TRIGGER_NAME;var PORTAL_NAME="PopoverPortal";var _createPopoverContext3=createPopoverContext(PORTAL_NAME,{forceMount:void 0}),_createPopoverContext4=_slicedToArray2(_createPopoverContext3,2),PortalProvider=_createPopoverContext4[0],usePortalContext=_createPopoverContext4[1];var PopoverPortal=function PopoverPortal(props){var __scopePopover=props.__scopePopover,forceMount=props.forceMount,children=props.children,container=props.container;var context=usePopoverContext(PORTAL_NAME,__scopePopover);return/* @__PURE__ */jsx$1(PortalProvider,{scope:__scopePopover,forceMount:forceMount,children:/* @__PURE__ */jsx$1(Presence,{present:forceMount||context.open,children:/* @__PURE__ */jsx$1(Portal$1,{asChild:true,container:container,children:children})})});};PopoverPortal.displayName=PORTAL_NAME;var CONTENT_NAME="PopoverContent";var PopoverContent=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var portalContext=usePortalContext(CONTENT_NAME,props.__scopePopover);var _a=props,_a$forceMount=_a.forceMount,forceMount=_a$forceMount===void 0?portalContext.forceMount:_a$forceMount,contentProps=__objRest(_a,["forceMount"]);var context=usePopoverContext(CONTENT_NAME,props.__scopePopover);return/* @__PURE__ */jsx$1(Presence,{present:forceMount||context.open,children:context.modal?/* @__PURE__ */jsx$1(PopoverContentModal,__spreadProps(__spreadValues({},contentProps),{ref:forwardedRef})):/* @__PURE__ */jsx$1(PopoverContentNonModal,__spreadProps(__spreadValues({},contentProps),{ref:forwardedRef}))});});PopoverContent.displayName=CONTENT_NAME;var Slot=/* @__PURE__ */createSlot("PopoverContent.RemoveScroll");var PopoverContentModal=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var context=usePopoverContext(CONTENT_NAME,props.__scopePopover);var contentRef=React.useRef(null);var composedRefs=useComposedRefs(forwardedRef,contentRef);var isRightClickOutsideRef=React.useRef(false);React.useEffect(function(){var content2=contentRef.current;if(content2)return hideOthers(content2);},[]);return/* @__PURE__ */jsx$1(ReactRemoveScroll,{as:Slot,allowPinchZoom:true,children:/* @__PURE__ */jsx$1(PopoverContentImpl,__spreadProps(__spreadValues({},props),{ref:composedRefs,trapFocus:context.open,disableOutsidePointerEvents:true,onCloseAutoFocus:composeEventHandlers(props.onCloseAutoFocus,function(event){var _a;event.preventDefault();if(!isRightClickOutsideRef.current)(_a=context.triggerRef.current)==null?void 0:_a.focus();}),onPointerDownOutside:composeEventHandlers(props.onPointerDownOutside,function(event){var originalEvent=event.detail.originalEvent;var ctrlLeftClick=originalEvent.button===0&&originalEvent.ctrlKey===true;var isRightClick=originalEvent.button===2||ctrlLeftClick;isRightClickOutsideRef.current=isRightClick;},{checkForDefaultPrevented:false}),onFocusOutside:composeEventHandlers(props.onFocusOutside,function(event){return event.preventDefault();},{checkForDefaultPrevented:false})}))});});var PopoverContentNonModal=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var context=usePopoverContext(CONTENT_NAME,props.__scopePopover);var hasInteractedOutsideRef=React.useRef(false);var hasPointerDownOutsideRef=React.useRef(false);return/* @__PURE__ */jsx$1(PopoverContentImpl,__spreadProps(__spreadValues({},props),{ref:forwardedRef,trapFocus:false,disableOutsidePointerEvents:false,onCloseAutoFocus:function onCloseAutoFocus(event){var _a,_b;(_a=props.onCloseAutoFocus)==null?void 0:_a.call(props,event);if(!event.defaultPrevented){if(!hasInteractedOutsideRef.current)(_b=context.triggerRef.current)==null?void 0:_b.focus();event.preventDefault();}hasInteractedOutsideRef.current=false;hasPointerDownOutsideRef.current=false;},onInteractOutside:function onInteractOutside(event){var _a,_b;(_a=props.onInteractOutside)==null?void 0:_a.call(props,event);if(!event.defaultPrevented){hasInteractedOutsideRef.current=true;if(event.detail.originalEvent.type==="pointerdown"){hasPointerDownOutsideRef.current=true;}}var target=event.target;var targetIsTrigger=(_b=context.triggerRef.current)==null?void 0:_b.contains(target);if(targetIsTrigger)event.preventDefault();if(event.detail.originalEvent.type==="focusin"&&hasPointerDownOutsideRef.current){event.preventDefault();}}}));});var PopoverContentImpl=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var _a=props,__scopePopover=_a.__scopePopover,trapFocus=_a.trapFocus,onOpenAutoFocus=_a.onOpenAutoFocus,onCloseAutoFocus=_a.onCloseAutoFocus,disableOutsidePointerEvents=_a.disableOutsidePointerEvents,onEscapeKeyDown=_a.onEscapeKeyDown,onPointerDownOutside=_a.onPointerDownOutside,onFocusOutside=_a.onFocusOutside,onInteractOutside=_a.onInteractOutside,contentProps=__objRest(_a,["__scopePopover","trapFocus","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside"]);var context=usePopoverContext(CONTENT_NAME,__scopePopover);var popperScope=usePopperScope(__scopePopover);useFocusGuards();return/* @__PURE__ */jsx$1(FocusScope,{asChild:true,loop:true,trapped:trapFocus,onMountAutoFocus:onOpenAutoFocus,onUnmountAutoFocus:onCloseAutoFocus,children:/* @__PURE__ */jsx$1(DismissableLayer,{asChild:true,disableOutsidePointerEvents:disableOutsidePointerEvents,onInteractOutside:onInteractOutside,onEscapeKeyDown:onEscapeKeyDown,onPointerDownOutside:onPointerDownOutside,onFocusOutside:onFocusOutside,onDismiss:function onDismiss(){return context.onOpenChange(false);},children:/* @__PURE__ */jsx$1(Content,__spreadProps(__spreadValues(__spreadValues({"data-state":getState(context.open),role:"dialog",id:context.contentId},popperScope),contentProps),{ref:forwardedRef,style:__spreadValues(__spreadValues({},contentProps.style),{"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"})}))})});});var CLOSE_NAME="PopoverClose";var PopoverClose=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var _a=props,__scopePopover=_a.__scopePopover,closeProps=__objRest(_a,["__scopePopover"]);var context=usePopoverContext(CLOSE_NAME,__scopePopover);return/* @__PURE__ */jsx$1(Primitive.button,__spreadProps(__spreadValues({type:"button"},closeProps),{ref:forwardedRef,onClick:composeEventHandlers(props.onClick,function(){return context.onOpenChange(false);})}));});PopoverClose.displayName=CLOSE_NAME;var ARROW_NAME="PopoverArrow";var PopoverArrow=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var _a=props,__scopePopover=_a.__scopePopover,arrowProps=__objRest(_a,["__scopePopover"]);var popperScope=usePopperScope(__scopePopover);return/* @__PURE__ */jsx$1(Arrow,__spreadProps(__spreadValues(__spreadValues({},popperScope),arrowProps),{ref:forwardedRef}));});PopoverArrow.displayName=ARROW_NAME;function getState(open){return open?"open":"closed";}var Root2=Popover2;var Trigger=PopoverTrigger;var Portal2=PopoverPortal;var Content2=PopoverContent;var formatDistanceLocale={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}};var formatDistance=function formatDistance(token2,count2,options){var result;var tokenValue=formatDistanceLocale[token2];if(typeof tokenValue==="string"){result=tokenValue;}else if(count2===1){result=tokenValue.one;}else{result=tokenValue.other.replace("{{count}}",count2.toString());}if(options==null?void 0:options.addSuffix){if(options.comparison&&options.comparison>0){return"en "+result;}else{return"hace "+result;}}return result;};var dateFormats={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"};var timeFormats={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"};var dateTimeFormats={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};var formatLong={date:buildFormatLongFn({formats:dateFormats,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats,defaultWidth:"full"})};var formatRelativeLocale={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"};var formatRelativeLocalePlural={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"};var formatRelative=function formatRelative(token2,date,_baseDate,_options){if(date.getHours()!==1){return formatRelativeLocalePlural[token2];}else{return formatRelativeLocale[token2];}};var eraValues={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]};var quarterValues={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]};var monthValues={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]};var dayValues={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]};var dayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}};var formattingDayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}};var ordinalNumber=function ordinalNumber(dirtyNumber,_options){var number=Number(dirtyNumber);return number+"º";};var localize={ordinalNumber:ordinalNumber,era:buildLocalizeFn({values:eraValues,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues,defaultWidth:"wide",argumentCallback:function argumentCallback(quarter){return Number(quarter)-1;}}),month:buildLocalizeFn({values:monthValues,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues,defaultWidth:"wide",formattingValues:formattingDayPeriodValues,defaultFormattingWidth:"wide"})};var matchOrdinalNumberPattern=/^(\d+)(º)?/i;var parseOrdinalNumberPattern=/\d+/i;var matchEraPatterns={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i};var parseEraPatterns={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]};var matchQuarterPatterns={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i};var parseQuarterPatterns={any:[/1/i,/2/i,/3/i,/4/i]};var matchMonthPatterns={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i};var parseMonthPatterns={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]};var matchDayPatterns={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i};var parseDayPatterns={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]};var matchDayPeriodPatterns={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i};var parseDayPeriodPatterns={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}};var match$1={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern,parsePattern:parseOrdinalNumberPattern,valueCallback:function valueCallback(value){return parseInt(value,10);}}),era:buildMatchFn({matchPatterns:matchEraPatterns,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns,defaultParseWidth:"any",valueCallback:function valueCallback(index2){return index2+1;}}),month:buildMatchFn({matchPatterns:matchMonthPatterns,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns,defaultParseWidth:"any"})};var es={code:"es",formatDistance:formatDistance,formatLong:formatLong,formatRelative:formatRelative,localize:localize,match:match$1,options:{weekStartsOn:1,firstWeekContainsDate:1}};var lg$5="dateRangePicker-module_lg_Z5cAW";var md$3="dateRangePicker-module_md_U7O4u";var sm$5="dateRangePicker-module_sm_eQU4f";var disabled$4="dateRangePicker-module_disabled_O2wo6";var focused="dateRangePicker-module_focused_ZciL9";var popoverEnter="dateRangePicker-module_popoverEnter_LA-QD";var popoverExit="dateRangePicker-module_popoverExit_7P00p";var nav="dateRangePicker-module_nav_wpLSQ";var months="dateRangePicker-module_months_KJVIG";var month="dateRangePicker-module_month_5xEDo";var weekdays="dateRangePicker-module_weekdays_Ifsr6";var weekday="dateRangePicker-module_weekday_2PP3h";var week="dateRangePicker-module_week_t5X3S";var day="dateRangePicker-module_day_wqJov";var selected="dateRangePicker-module_selected_RUsR-";var styles$i={"date-range-picker":"dateRangePicker-module_date-range-picker_PFF9Q",lg:lg$5,"input-wrapper":"dateRangePicker-module_input-wrapper_hyxTt",md:md$3,sm:sm$5,disabled:disabled$4,focused:focused,"popover-content":"dateRangePicker-module_popover-content_RKQTm",popoverEnter:popoverEnter,popoverExit:popoverExit,nav:nav,months:months,month:month,"month-caption":"dateRangePicker-module_month-caption_SaiMe",weekdays:weekdays,weekday:weekday,week:week,day:day,selected:selected,"range-middle":"dateRangePicker-module_range-middle_xm-3W","range-start":"dateRangePicker-module_range-start_52uOV","range-end":"dateRangePicker-module_range-end_VR3Y-","rdp-slide_in_left":"dateRangePicker-module_rdp-slide_in_left_yJv6o","rdp-slide_in_right":"dateRangePicker-module_rdp-slide_in_right_DtL-m","rdp-slide_out_left":"dateRangePicker-module_rdp-slide_out_left_pmbO5","rdp-slide_out_right":"dateRangePicker-module_rdp-slide_out_right_MDJeD","rdp-fade_in":"dateRangePicker-module_rdp-fade_in_TxHKu","rdp-fade_out":"dateRangePicker-module_rdp-fade_out_-8FsW"};function head(array){return array&&array.length?array[0]:void 0;}var head_1=head;var head$1=/* @__PURE__ */getDefaultExportFromCjs(head_1);var formatDate=function formatDate2(date,format2){var _pad=function _pad2(n){return _.padStart(String(n),2,"0");};var map2={YYYY:String(date.getFullYear()),MM:_pad(date.getMonth()+1),DD:_pad(date.getDate()),HH:_pad(date.getHours()),mm:_pad(date.getMinutes()),ss:_pad(date.getSeconds())};return _.reduce(map2,function(acc,value,token2){return _.replace(acc,token2,value);},format2);};var formatRangeLimits=function formatRangeLimits2(range){if(!range)return void 0;var from2=new Date(range.from);from2.setHours(0,0,0);var to=new Date(range.to);to.setHours(23,59,59);return{from:from2,to:to};};dayjs.extend(customParseFormat);var fromInputValue=function fromInputValue2(inputValue){if(!inputValue)return void 0;if(_typeof$1(inputValue)==="object"&&"from"in inputValue&&"to"in inputValue){var rangeValue=inputValue;return{from:convertToDate2(rangeValue.from),to:convertToDate2(rangeValue.to)};}if(typeof inputValue==="string"&&inputValue.includes(" - ")){var _inputValue$split=inputValue.split(" - "),_inputValue$split2=_slicedToArray$1(_inputValue$split,2),fromStr=_inputValue$split2[0],toStr=_inputValue$split2[1];return{from:convertToDate2(fromStr.trim()),to:convertToDate2(toStr.trim())};}return void 0;};var getDisplayRange=function getDisplayRange2(range){var format2=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"DD/MM/YYYY";if(!(range!==null&&range!==void 0&&range.from))return"";var fromFormatted=formatDate(range.from,format2);var toFormatted=range.to?formatDate(range.to,format2):"";if(range.from&&range.to){return"".concat(fromFormatted," - ").concat(toFormatted);}return fromFormatted;};var convertToDate2=function convertToDate3(val){if(!val)return void 0;if(val instanceof Date){return val;}if(typeof val==="string"){var parsed=dayjs(val);return parsed.isValid()?parsed.toDate():void 0;}if(typeof val==="number"){return dayjs(val).toDate();}return void 0;};var CustomWeekday=function CustomWeekday2(props){return/* @__PURE__ */jsx$1("th",_objectSpread2$1(_objectSpread2$1({},props),{},{children:head$1(props.children)}));};var getDisabledDays=function getDisabledDays2(disabled2,minDate,maxDate){if(disabled2)return true;var min2=convertToDate2(minDate);var max2=convertToDate2(maxDate);if(min2&&max2)return[{before:min2},{after:max2}];if(min2)return{before:min2};if(max2)return{after:max2};return void 0;};var _excluded$e=["meta","name","value","disabled","required","placeholder","size","noErrors","label","format","isValid","onChange","input","minDate","maxDate"],_excluded2$4=["label","rightAdornment","value"];var DateRangePickerInput=function DateRangePickerInput2(props){var _input$value;var meta=props.meta,name=props.name,_props$value=props.value,value=_props$value===void 0?null:_props$value,_props$disabled=props.disabled,disabled2=_props$disabled===void 0?false:_props$disabled;props.required;var placeholder=props.placeholder,_props$size=props.size,size2=_props$size===void 0?"md":_props$size,_props$noErrors=props.noErrors,noErrors=_props$noErrors===void 0?false:_props$noErrors;props.label;var _props$format=props.format,format2=_props$format===void 0?"DD/MM/YYYY":_props$format,isValid2=props.isValid,onChange2=props.onChange,input=props.input,minDate=props.minDate,maxDate=props.maxDate,otherProps=_objectWithoutProperties$1(props,_excluded$e);var currentValue=(_input$value=input===null||input===void 0?void 0:input.value)!==null&&_input$value!==void 0?_input$value:value;var validationProps={meta:meta,value:currentValue,isValid:isValid2,required:props.required};var validated=formValidation(validationProps);var _useReduxFormField=useReduxFormField({input:input,onChange:onChange2?function(range){var syntheticEvent={target:{value:formatRangeLimits(range),name:name}};onChange2(syntheticEvent);}:void 0}),fieldHandleChange=_useReduxFormField.handleChange,handleBlur=_useReduxFormField.handleBlur;var handleSelect=function handleSelect2(range){fieldHandleChange(range);if(range!==null&&range!==void 0&&range.from&&range!==null&&range!==void 0&&range.to&&(range===null||range===void 0?void 0:range.from)!==(range===null||range===void 0?void 0:range.to)){setIsOpen(false);}};var handleClear=function handleClear2(){fieldHandleChange(void 0);};var selectedRange=fromInputValue(currentValue);var displayValue=getDisplayRange(selectedRange,format2);var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),isOpen=_useState2[0],setIsOpen=_useState2[1];var getInitialMonth2=function getInitialMonth3(){return(selectedRange===null||selectedRange===void 0?void 0:selectedRange.from)||(selectedRange===null||selectedRange===void 0?void 0:selectedRange.to)||/* @__PURE__ */new Date();};return/* @__PURE__ */jsxs("div",{className:clsx(styles$i["date-range-picker"],styles$i[size2],validated?errorStyles[validated]:"",disabled2?styles$i["disabled"]:"",isOpen?styles$i["focused"]:""),children:[/* @__PURE__ */jsxs(Root2,{open:isOpen&&!disabled2,onOpenChange:setIsOpen,children:[/* @__PURE__ */jsx$1(Trigger,{asChild:true,children:/* @__PURE__ */jsxs("div",{className:styles$i["input-wrapper"],children:[/* @__PURE__ */jsx$1("input",_objectSpread2$1({type:"text",name:name,value:displayValue,placeholder:placeholder||format2,readOnly:true,onBlur:handleBlur},otherProps)),/* @__PURE__ */jsx$1(ActionComponent,{onOpen:function onOpen(){return setIsOpen(!isOpen);},showClearIcon:!!displayValue,onClear:handleClear})]})}),/* @__PURE__ */jsx$1(Portal2,{children:/* @__PURE__ */jsx$1(Content2,{className:styles$i["popover-content"],sideOffset:4,align:"start",side:"bottom",avoidCollisions:true,collisionPadding:8,children:/* @__PURE__ */jsx$1(DayPicker,{mode:"range",locale:es,selected:selectedRange,onSelect:handleSelect,numberOfMonths:2,defaultMonth:getInitialMonth2(),disabled:getDisabledDays(disabled2,minDate,maxDate),className:styles$i["day-picker"],animate:true,classNames:{months:styles$i["months"],month:styles$i["month"],month_caption:styles$i["month-caption"],nav:styles$i["nav"],weekdays:styles$i["weekdays"],weekday:styles$i["weekday"],week:styles$i["week"],day:styles$i["day"],selected:styles$i["selected"],range_start:styles$i["range-start"],range_middle:styles$i["range-middle"],range_end:styles$i["range-end"],disabled:styles$i["disabled"]},components:{Weekday:CustomWeekday}})})})]}),!noErrors&&/* @__PURE__ */jsx$1(ErrorMessage,{validationProps:validationProps})]});};var DateRangePicker=function DateRangePicker2(_ref3){var label2=_ref3.label,rightAdornment=_ref3.rightAdornment,value=_ref3.value,props=_objectWithoutProperties$1(_ref3,_excluded2$4);return/* @__PURE__ */jsx$1(FormField,_objectSpread2$1({type:"dateRange",label:label2,rightAdornment:rightAdornment,value:value},props));};var _excluded$d=["label","rightAdornment","children"];var inputByType=function inputByType2(type){var inputs={password:PasswordInput,text:TextInput,number:TextInput,date:DatePickerInput,dateRange:DateRangePickerInput};return!!type?inputs[type]:TextInput;};var FormField=function FormField2(_ref3){var label2=_ref3.label,rightAdornment=_ref3.rightAdornment,children=_ref3.children,props=_objectWithoutProperties$1(_ref3,_excluded$d);var InputComponent=inputByType(props.type);return/* @__PURE__ */jsxs("div",{className:styles$k["form-field"],children:[label2&&/* @__PURE__ */jsx$1("label",{htmlFor:props.name,children:label2}),/* @__PURE__ */jsxs("div",{className:"".concat(styles$k["input-container"]),children:[/* @__PURE__ */jsx$1(InputComponent,_objectSpread2$1(_objectSpread2$1({},props),{},{children:children})),!!rightAdornment&&/* @__PURE__ */jsx$1("div",{className:"".concat(styles$k["right-modifier"]),children:rightAdornment})]})]});};var title$5="checkboxInput-module_title_cvp-g";var disabled$3="checkboxInput-module_disabled_3EFy5";var lg$4="checkboxInput-module_lg_VoVop";var md$2="checkboxInput-module_md_Nh-Gg";var sm$4="checkboxInput-module_sm_965vX";var styles$h={"checkbox-input-container":"checkboxInput-module_checkbox-input-container_prYRe",title:title$5,"checkbox-input-items":"checkboxInput-module_checkbox-input-items_AMkaS",disabled:disabled$3,lg:lg$4,md:md$2,sm:sm$4};var _excluded$c=["title","name","type","items","onChange","size","input"],_excluded2$3=["id","name","label","disabled","checked","value"];var CheckboxInputGroup=function CheckboxInputGroup2(_ref3){var title2=_ref3.title,name=_ref3.name,_ref$type=_ref3.type,type=_ref$type===void 0?"checkbox":_ref$type,items=_ref3.items,onChange2=_ref3.onChange,_ref$size=_ref3.size,size2=_ref$size===void 0?"lg":_ref$size,input=_ref3.input,props=_objectWithoutProperties$1(_ref3,_excluded$c);var _useReduxFormField=useReduxFormField({input:input,onChange:onChange2,transformValue:function transformValue(event){var _event$target=event.target,checked=_event$target.checked,inputName=_event$target.name;if(input){var newValue=_objectSpread2$1({},input.value);newValue[inputName]=checked;return newValue;}return event;}}),handleChange=_useReduxFormField.handleChange,handleBlur=_useReduxFormField.handleBlur;return/* @__PURE__ */jsxs("div",{className:styles$h["checkbox-input-container"],children:[title2&&/* @__PURE__ */jsxs("label",{className:styles$h["title"],children:[" ",title2," "]}),/* @__PURE__ */jsx$1("div",{className:"".concat(styles$h["checkbox-input-items"]," ").concat(styles$h[size2]),children:_.map(items,function(_ref22){var id=_ref22.id,itemName=_ref22.name,label2=_ref22.label,disabled2=_ref22.disabled,checked=_ref22.checked;_ref22.value;var itemProps=_objectWithoutProperties$1(_ref22,_excluded2$3);var inputId=id||itemName||name;return/* @__PURE__ */jsxs("label",{htmlFor:inputId,className:"".concat(disabled2?styles$h["disabled"]:""),children:[/* @__PURE__ */jsx$1("input",_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},props),itemProps),{},{id:inputId,type:type,name:itemName||name,checked:input&&itemName?_.get(input.value,itemName):checked,disabled:disabled2,onChange:handleChange,onBlur:handleBlur})),/* @__PURE__ */jsxs("span",{children:[" ",label2," "]})]},inputId);})})]});};var _excluded$b=["name","checked","onChange","label","title","disabled","size","input","type"];var CheckboxInput=function CheckboxInput2(_ref3){var name=_ref3.name,checked=_ref3.checked,onChange2=_ref3.onChange,label2=_ref3.label,title2=_ref3.title,_ref$disabled=_ref3.disabled,disabled2=_ref$disabled===void 0?false:_ref$disabled,_ref$size=_ref3.size,size2=_ref$size===void 0?"lg":_ref$size,input=_ref3.input,_ref$type=_ref3.type,type=_ref$type===void 0?"checkbox":_ref$type,props=_objectWithoutProperties$1(_ref3,_excluded$b);var item2={id:"".concat(name,"-single"),label:label2,checked:checked,disabled:disabled2};return/* @__PURE__ */jsx$1(CheckboxInputGroup,_objectSpread2$1(_objectSpread2$1({},props),{},{name:name,items:[item2],onChange:onChange2,title:title2,type:type,size:size2,input:input}));};var _excluded$a=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function useAsync(_ref3){var _ref$defaultOptions=_ref3.defaultOptions,propsDefaultOptions=_ref$defaultOptions===void 0?false:_ref$defaultOptions,_ref$cacheOptions=_ref3.cacheOptions,cacheOptions=_ref$cacheOptions===void 0?false:_ref$cacheOptions,propsLoadOptions=_ref3.loadOptions;_ref3.options;var _ref$isLoading=_ref3.isLoading,propsIsLoading=_ref$isLoading===void 0?false:_ref$isLoading,propsOnInputChange=_ref3.onInputChange,_ref$filterOption=_ref3.filterOption,filterOption=_ref$filterOption===void 0?null:_ref$filterOption,restSelectProps=_objectWithoutProperties(_ref3,_excluded$a);var propsInputValue=restSelectProps.inputValue;var lastRequest=useRef(void 0);var mounted=useRef(false);var _useState=useState(Array.isArray(propsDefaultOptions)?propsDefaultOptions:void 0),_useState2=_slicedToArray(_useState,2),defaultOptions2=_useState2[0],setDefaultOptions=_useState2[1];var _useState3=useState(typeof propsInputValue!=="undefined"?propsInputValue:""),_useState4=_slicedToArray(_useState3,2),stateInputValue=_useState4[0],setStateInputValue=_useState4[1];var _useState5=useState(propsDefaultOptions===true),_useState6=_slicedToArray(_useState5,2),isLoading=_useState6[0],setIsLoading=_useState6[1];var _useState7=useState(void 0),_useState8=_slicedToArray(_useState7,2),loadedInputValue=_useState8[0],setLoadedInputValue=_useState8[1];var _useState9=useState([]),_useState10=_slicedToArray(_useState9,2),loadedOptions=_useState10[0],setLoadedOptions=_useState10[1];var _useState11=useState(false),_useState12=_slicedToArray(_useState11,2),passEmptyOptions=_useState12[0],setPassEmptyOptions=_useState12[1];var _useState13=useState({}),_useState14=_slicedToArray(_useState13,2),optionsCache=_useState14[0],setOptionsCache=_useState14[1];var _useState15=useState(void 0),_useState16=_slicedToArray(_useState15,2),prevDefaultOptions=_useState16[0],setPrevDefaultOptions=_useState16[1];var _useState17=useState(void 0),_useState18=_slicedToArray(_useState17,2),prevCacheOptions=_useState18[0],setPrevCacheOptions=_useState18[1];if(cacheOptions!==prevCacheOptions){setOptionsCache({});setPrevCacheOptions(cacheOptions);}if(propsDefaultOptions!==prevDefaultOptions){setDefaultOptions(Array.isArray(propsDefaultOptions)?propsDefaultOptions:void 0);setPrevDefaultOptions(propsDefaultOptions);}useEffect(function(){mounted.current=true;return function(){mounted.current=false;};},[]);var loadOptions=useCallback(function(inputValue,callback){if(!propsLoadOptions)return callback();var loader2=propsLoadOptions(inputValue,callback);if(loader2&&typeof loader2.then==="function"){loader2.then(callback,function(){return callback();});}},[propsLoadOptions]);useEffect(function(){if(propsDefaultOptions===true){loadOptions(stateInputValue,function(options2){if(!mounted.current)return;setDefaultOptions(options2||[]);setIsLoading(!!lastRequest.current);});}},[]);var onInputChange2=useCallback(function(newValue,actionMeta){var inputValue=handleInputChange(newValue,actionMeta,propsOnInputChange);if(!inputValue){lastRequest.current=void 0;setStateInputValue("");setLoadedInputValue("");setLoadedOptions([]);setIsLoading(false);setPassEmptyOptions(false);return;}if(cacheOptions&&optionsCache[inputValue]){setStateInputValue(inputValue);setLoadedInputValue(inputValue);setLoadedOptions(optionsCache[inputValue]);setIsLoading(false);setPassEmptyOptions(false);}else{var request=lastRequest.current={};setStateInputValue(inputValue);setIsLoading(true);setPassEmptyOptions(!loadedInputValue);loadOptions(inputValue,function(options2){if(!mounted)return;if(request!==lastRequest.current)return;lastRequest.current=void 0;setIsLoading(false);setLoadedInputValue(inputValue);setLoadedOptions(options2||[]);setPassEmptyOptions(false);setOptionsCache(options2?_objectSpread2(_objectSpread2({},optionsCache),{},_defineProperty({},inputValue,options2)):optionsCache);});}},[cacheOptions,loadOptions,loadedInputValue,optionsCache,propsOnInputChange]);var options=passEmptyOptions?[]:stateInputValue&&loadedInputValue?loadedOptions:defaultOptions2||[];return _objectSpread2(_objectSpread2({},restSelectProps),{},{options:options,isLoading:isLoading||propsIsLoading,onInputChange:onInputChange2,filterOption:filterOption});}var AsyncSelect=/* @__PURE__ */forwardRef(function(props,ref){var stateManagedProps=useAsync(props);var selectProps=useStateManager(stateManagedProps);return/* @__PURE__ */React.createElement(Select$1,_extends$1({ref:ref},selectProps));});var AsyncSelect$1=AsyncSelect;var loader="spinner-module_loader_UIupC";var styles$g={loader:loader};var Spinner=function Spinner2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?"lg":_ref$size;return/* @__PURE__ */jsx$1(CircularProgress,{size:_size(size2),className:styles$g.loader});};var _size=function _size2(size2){return{sm:18,lg:60}[size2];};var _excluded$9=["name","label","placeholder","noOptionsMessage","options","size","isSearchable","isClearable","clearOnSelect","required","disabled","rightModifier","isOptionDisabled","onChange","onInputChange","input","isLoading","formatOption","loadOptions","cacheOptions","defaultOptions"];var Searcher=function Searcher2(props){var name=props.name,label2=props.label,_props$placeholder=props.placeholder,placeholder=_props$placeholder===void 0?locale("selectPlaceholder"):_props$placeholder,_props$noOptionsMessa=props.noOptionsMessage,_noOptionsMessage=_props$noOptionsMessa===void 0?locale("noFoundOptions"):_props$noOptionsMessa,options=props.options,_props$size=props.size,size2=_props$size===void 0?"md":_props$size,_props$isSearchable=props.isSearchable,isSearchable=_props$isSearchable===void 0?true:_props$isSearchable,_props$isClearable=props.isClearable,isClearable=_props$isClearable===void 0?true:_props$isClearable,_props$clearOnSelect=props.clearOnSelect,clearOnSelect=_props$clearOnSelect===void 0?false:_props$clearOnSelect;props.required;var disabled2=props.disabled,rightModifier=props.rightModifier,isOptionDisabled3=props.isOptionDisabled,onChange2=props.onChange,onInputChange2=props.onInputChange,input=props.input,_props$isLoading=props.isLoading,isLoading=_props$isLoading===void 0?false:_props$isLoading,formatOption=props.formatOption,loadOptions=props.loadOptions,_props$cacheOptions=props.cacheOptions,cacheOptions=_props$cacheOptions===void 0?true:_props$cacheOptions,_props$defaultOptions=props.defaultOptions,defaultOptions2=_props$defaultOptions===void 0?true:_props$defaultOptions,otherProps=_objectWithoutProperties$1(props,_excluded$9);var _useState=useState(null),_useState2=_slicedToArray$1(_useState,2),optionSelected=_useState2[0],setOptionSelected=_useState2[1];var _useState3=useState(false),_useState4=_slicedToArray$1(_useState3,2),isMenuOpen=_useState4[0],setIsMenuOpen=_useState4[1];var _useState5=useState(0),_useState6=_slicedToArray$1(_useState5,2),menuKey=_useState6[0],setMenuKey=_useState6[1];useEffect(function(){if(isMenuOpen&&options&&!_.isEmpty(options)){setMenuKey(function(prev2){return prev2+1;});}},[options,isMenuOpen]);var handleInputChange2=useCallback(function(value){var fakeEvent={target:{name:name,value:value}};onInputChange2===null||onInputChange2===void 0||onInputChange2(fakeEvent);setIsMenuOpen(true);},[name,onInputChange2]);var handleSelect=useCallback(function(selected2){var fakeEvent={target:{name:name,value:selected2===null||selected2===void 0?void 0:selected2.value}};setOptionSelected(selected2);if(input){input.onChange(selected2===null||selected2===void 0?void 0:selected2.value);}else{onChange2===null||onChange2===void 0||onChange2(fakeEvent);}if(clearOnSelect&&selected2){setOptionSelected(null);}setIsMenuOpen(false);},[name,input,onChange2,clearOnSelect]);var handleBlur=useCallback(function(){if(input){input.onBlur();}setIsMenuOpen(false);},[input]);var handleClear=useCallback(function(){setOptionSelected(null);if(input){input.onChange(null);}},[input]);var OptionWithFormat=useCallback(function(optionProps){return/* @__PURE__ */jsx$1(Option$1,_objectSpread2$1(_objectSpread2$1({},optionProps),{},{formatOption:formatOption}));},[formatOption]);var SingleValueWithFormat=useCallback(function(singleValueProps){return/* @__PURE__ */jsx$1(SingleValue2,_objectSpread2$1({},singleValueProps));},[]);var _renderSelectComponent=useCallback(function(){var commonProps=_objectSpread2$1(_objectSpread2$1({},otherProps),{},{key:menuKey,name:name,placeholder:placeholder,classNamePrefix:"producteca-select-field",isDisabled:disabled2,isClearable:isClearable,isOptionDisabled:isOptionDisabled3,isSearchable:isSearchable,isLoading:isLoading,loadingMessage:function loadingMessage2(){return isLoading?/* @__PURE__ */jsx$1(Spinner,{size:"sm"}):_noOptionsMessage;},noOptionsMessage:function noOptionsMessage2(){return isLoading?/* @__PURE__ */jsx$1(Spinner,{size:"sm"}):_noOptionsMessage;},onInputChange:handleInputChange2,onChange:handleSelect,onBlur:handleBlur,value:optionSelected,components:{Option:OptionWithFormat,SingleValue:SingleValueWithFormat},menuPortalTarget:document.body,menuIsOpen:isMenuOpen,onMenuOpen:function onMenuOpen(){return setIsMenuOpen(true);},onMenuClose:function onMenuClose(){return setIsMenuOpen(false);}});if(loadOptions){return/* @__PURE__ */jsx$1(AsyncSelect$1,_objectSpread2$1(_objectSpread2$1({},commonProps),{},{loadOptions:loadOptions,cacheOptions:cacheOptions,defaultOptions:defaultOptions2}));}return/* @__PURE__ */jsx$1(StateManagedSelect$1,_objectSpread2$1(_objectSpread2$1({},commonProps),{},{options:options}));},[otherProps,menuKey,name,placeholder,disabled2,isClearable,isOptionDisabled3,isSearchable,isLoading,_noOptionsMessage,handleInputChange2,handleSelect,handleBlur,optionSelected,OptionWithFormat,SingleValueWithFormat,isMenuOpen,loadOptions,cacheOptions,defaultOptions2,options]);return/* @__PURE__ */jsxs("div",{className:styles$l["producteca-select-field-container"],children:[label2&&/* @__PURE__ */jsx$1("label",{htmlFor:name,children:label2}),/* @__PURE__ */jsxs("div",{className:clsx(styles$l[size2],styles$l["producteca-select-field-body"],styles$l[isSearchable?"producteca-select-field--is-searchable":""],styles$l[isClearable?"producteca-select-field--is-clearable":""],styles$l[rightModifier?"producteca-select-field--with-modifier":""]),children:[/* @__PURE__ */jsxs("div",{className:styles$l["searcher-body"],children:[isSearchable&&/* @__PURE__ */jsx$1(SearchComponent,{}),_renderSelectComponent(),/* @__PURE__ */jsx$1(ClearComponent,{isClearable:isClearable,handleChange:handleClear})]}),!!rightModifier&&rightModifier]})]});};var title$4="switchInput-module_title_lBK2p";var disabled$2="switchInput-module_disabled_yz9dR";var lg$3="switchInput-module_lg_WMIDO";var md$1="switchInput-module_md_683sQ";var sm$3="switchInput-module_sm_sh92j";var styles$f={"switch-input-container":"switchInput-module_switch-input-container_t9Kpp",title:title$4,"switch-input-items":"switchInput-module_switch-input-items_P3RMy","switch-wrapper":"switchInput-module_switch-wrapper_cZvDV","switch-input":"switchInput-module_switch-input_e9PWi","switch-slider":"switchInput-module_switch-slider_ICfGn","switch-label":"switchInput-module_switch-label_Nj-Hh",disabled:disabled$2,lg:lg$3,md:md$1,sm:sm$3};var _excluded$8=["title","name","items","onChange","size","input"],_excluded2$2=["id","name","label","disabled","checked","value"],_excluded3=["name","checked","onChange","label","title","disabled","size","input"];var SwitchInputGroup=function SwitchInputGroup2(_ref3){var title2=_ref3.title,name=_ref3.name,items=_ref3.items,onChange2=_ref3.onChange,_ref$size=_ref3.size,size2=_ref$size===void 0?"md":_ref$size,input=_ref3.input,props=_objectWithoutProperties$1(_ref3,_excluded$8);var _useReduxFormField=useReduxFormField({input:input,onChange:onChange2,transformValue:function transformValue(event){var _event$target=event.target,checked=_event$target.checked,inputName=_event$target.name;if(input){var newValue=_objectSpread2$1({},input.value);newValue[inputName]=checked;return newValue;}return event;}}),handleChange=_useReduxFormField.handleChange,handleBlur=_useReduxFormField.handleBlur;return/* @__PURE__ */jsxs("div",{className:styles$f["switch-input-container"],"data-testid":"switch-input-container",children:[title2&&/* @__PURE__ */jsxs("label",{className:styles$f["title"],"data-testid":"switch-title",children:[" ",title2," "]}),/* @__PURE__ */jsx$1("div",{className:"".concat(styles$f["switch-input-items"]," ").concat(styles$f[size2]),"data-testid":"switch-input-items",children:_.map(items,function(_ref22){var id=_ref22.id,itemName=_ref22.name,label2=_ref22.label,disabled2=_ref22.disabled,checked=_ref22.checked;_ref22.value;var itemProps=_objectWithoutProperties$1(_ref22,_excluded2$2);var inputId=id||itemName||name;return/* @__PURE__ */jsxs("label",{htmlFor:inputId,className:"".concat(disabled2?styles$f["disabled"]:""),"data-testid":"switch-label-".concat(inputId),children:[/* @__PURE__ */jsxs("div",{className:styles$f["switch-wrapper"],children:[/* @__PURE__ */jsx$1("input",_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},props),itemProps),{},{id:inputId,type:"checkbox",name:itemName||name,checked:input&&itemName?_.get(input.value,itemName):checked,disabled:disabled2,onChange:handleChange,onBlur:handleBlur,className:styles$f["switch-input"],"data-testid":"switch-input-".concat(inputId)})),/* @__PURE__ */jsx$1("span",{className:styles$f["switch-slider"]})]}),/* @__PURE__ */jsxs("span",{className:styles$f["switch-label"],children:[" ",label2," "]})]},inputId);})})]});};var SwitchInput=function SwitchInput2(_ref3){var name=_ref3.name,checked=_ref3.checked,onChange2=_ref3.onChange,label2=_ref3.label,title2=_ref3.title,_ref3$disabled=_ref3.disabled,disabled2=_ref3$disabled===void 0?false:_ref3$disabled,_ref3$size=_ref3.size,size2=_ref3$size===void 0?"sm":_ref3$size,input=_ref3.input,props=_objectWithoutProperties$1(_ref3,_excluded3);var item2={id:"".concat(name,"-single"),label:label2,checked:checked,disabled:disabled2};return/* @__PURE__ */jsx$1(SwitchInputGroup,_objectSpread2$1(_objectSpread2$1({},props),{},{name:name,items:[item2],onChange:onChange2,title:title2,size:size2,input:input}));};var styles$e={"empty-state-container":"emptyState-module_empty-state-container_azCks","link-container":"emptyState-module_link-container_kXroF"};var DefaultIcon$1=/* @__PURE__ */jsx$1(SearchPublication,{});var EmptyState=function EmptyState2(_ref3){var onActionClick=_ref3.onActionClick,_ref$icon=_ref3.icon,icon2=_ref$icon===void 0?DefaultIcon$1:_ref$icon,_ref$actionText=_ref3.actionText,actionText=_ref$actionText===void 0?locale("reloadPage"):_ref$actionText,_ref$text=_ref3.text,text2=_ref$text===void 0?locale("noResultsFound"):_ref$text;return/* @__PURE__ */jsxs("div",{className:styles$e["empty-state-container"],children:[icon2,/* @__PURE__ */jsxs("div",{className:styles$e["link-container"],children:[/* @__PURE__ */jsx$1("span",{children:text2}),onActionClick&&/* @__PURE__ */jsx$1("a",{onClick:onActionClick,children:actionText})]})]});};var fullPage="actionBar-module_fullPage_A4wiw";var modal$1="actionBar-module_modal_jZfAJ";var page="actionBar-module_page_Oq8Jb";var styles$d={"action-bar":"actionBar-module_action-bar_Y-sjl",fullPage:fullPage,modal:modal$1,page:page};var _excluded$7=["onPrevious","label"],_excluded2$1=["onSave","label"];var ActionBar=function ActionBar2(_ref3){var _ref$variant=_ref3.variant,variant=_ref$variant===void 0?"page":_ref$variant,saveProps=_ref3.saveProps,cancelProps=_ref3.cancelProps,previousProps=_ref3.previousProps;var _ref22=cancelProps||{},onCancel=_ref22.onCancel,_ref2$label=_ref22.label,cancelText=_ref2$label===void 0?locale("cancel"):_ref2$label;var _ref32=previousProps||{},onPrevious=_ref32.onPrevious,_ref3$label=_ref32.label,previousText=_ref3$label===void 0?locale("previous"):_ref3$label,previousOtherProps=_objectWithoutProperties$1(_ref32,_excluded$7);var _ref4=saveProps||{},onSave=_ref4.onSave,_ref4$label=_ref4.label,saveText=_ref4$label===void 0?locale("save"):_ref4$label,saveOtherProps=_objectWithoutProperties$1(_ref4,_excluded2$1);return/* @__PURE__ */jsxs("div",{className:clsx(styles$d["action-bar"],styles$d[variant]),children:[!!onCancel&&/* @__PURE__ */jsx$1(Button$2,{size:"md",variant:"link",label:cancelText,onClick:onCancel}),!!onPrevious&&/* @__PURE__ */jsx$1(Button$2,_objectSpread2$1({outline:true,label:previousText,onClick:onPrevious},previousOtherProps)),!!onSave&&/* @__PURE__ */jsx$1(Button$2,_objectSpread2$1({label:saveText,onClick:onSave},saveOtherProps))]});};var _excluded$6=["onClick","copyText","copiedText","textToCopy","resetTime"];var CopyButton=function CopyButton2(_ref3){var _onClick=_ref3.onClick,_ref$copyText=_ref3.copyText,copyText=_ref$copyText===void 0?locale("copyButton.copy"):_ref$copyText,_ref$copiedText=_ref3.copiedText,copiedText=_ref$copiedText===void 0?locale("copyButton.copied"):_ref$copiedText,textToCopy=_ref3.textToCopy,_ref$resetTime=_ref3.resetTime,resetTime=_ref$resetTime===void 0?2e3:_ref$resetTime,props=_objectWithoutProperties$1(_ref3,_excluded$6);var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),copied=_useState2[0],setCopied=_useState2[1];var _useState3=useState(false),_useState4=_slicedToArray$1(_useState3,2),isAnimating=_useState4[0],setIsAnimating=_useState4[1];useEffect(function(){if(copied){setIsAnimating(true);var timer=setTimeout(function(){setIsAnimating(false);},resetTime/2);return function(){return clearTimeout(timer);};}},[copied]);var defaultCopyFunction=function defaultCopyFunction2(){if(textToCopy){setCopied(true);navigator.clipboard.writeText(textToCopy).then(function(){setTimeout(function(){return setCopied(false);},resetTime);}).catch(function(){setCopied(false);});}};return/* @__PURE__ */jsx$1("div",{onClick:function onClick(){return _onClick?_onClick():defaultCopyFunction();},children:/* @__PURE__ */jsx$1(Button$2,_objectSpread2$1({className:"copy-btn ".concat(copied?"copied":""," ").concat(isAnimating?"animating":""),outline:true,label:copied?copiedText:copyText,leftAdornment:/* @__PURE__ */jsx$1(Icons,{copied:copied})},props))});};var Icons=function Icons2(_ref22){var copied=_ref22.copied;return/* @__PURE__ */jsxs("div",{className:"copy-btn-icons",children:[/* @__PURE__ */jsx$1("div",{className:"copy-icon ".concat(copied?"hidden":""),children:/* @__PURE__ */jsx$1(ContentCopy,{})}),/* @__PURE__ */jsx$1("div",{className:"check-icon ".concat(!copied?"hidden":""),children:/* @__PURE__ */jsx$1(Check,{})})]});};var dense="headerSection-module_dense_f1FWn";var content$1="headerSection-module_content_5y2PB";var title$3="headerSection-module_title_cabYm";var styles$c={"header-section-container":"headerSection-module_header-section-container_M-ZSv",dense:dense,"header-section":"headerSection-module_header-section_UIh2F",content:content$1,title:title$3};var HeaderSection=function HeaderSection2(_ref3){var breadcrumb2=_ref3.breadcrumb,image2=_ref3.image,_ref$dense=_ref3.dense,dense2=_ref$dense===void 0?false:_ref$dense,title2=_ref3.title,subtitle=_ref3.subtitle,link2=_ref3.link,menuAction=_ref3.menuAction;return/* @__PURE__ */jsxs("div",{className:clsx(styles$c["header-section-container"],_defineProperty$1({},styles$c["dense"],dense2)),children:[!!breadcrumb2&&breadcrumb2,/* @__PURE__ */jsxs("div",{className:styles$c["header-section"],children:[!!image2&&image2,/* @__PURE__ */jsxs("div",{className:styles$c.content,children:[title2&&/* @__PURE__ */jsx$1("h3",{className:styles$c.title,children:title2}),!!subtitle&&subtitle,!!link2&&link2]}),!!menuAction&&menuAction]})]});};var action="linkWithIcon-module_action_3K4he";var styles$b={action:action};var SIZE_TO_ICON={sm:"8",md:"12",lg:"12"};var transformSize=function transformSize2(size2){return SIZE_TO_ICON[size2!==null&&size2!==void 0?size2:"md"];};var LinkWithIcon=function LinkWithIcon2(_ref3){var text2=_ref3.text,icon2=_ref3.icon,onClick=_ref3.onClick,className=_ref3.className,_ref$size=_ref3.size,size2=_ref$size===void 0?"md":_ref$size,_ref$otherProps=_ref3.otherProps,otherProps=_ref$otherProps===void 0?{}:_ref$otherProps;return/* @__PURE__ */jsxs("div",{className:clsx(styles$b.action,className),onClick:onClick,children:[icon2&&/* @__PURE__ */jsx$1(CustomIcon,_objectSpread2$1(_objectSpread2$1({color:getColor("primary","500")},otherProps),{},{size:transformSize(size2),children:icon2})),/* @__PURE__ */jsx$1(Button$2,_objectSpread2$1({variant:"link",label:text2,size:size2},otherProps))]});};var divider="iconWithIdentifier-module_divider_fCBSV";var identifier$1="iconWithIdentifier-module_identifier_kWrOU";var styles$a={"icon-with-identifier":"iconWithIdentifier-module_icon-with-identifier_3-SZE",divider:divider,identifier:identifier$1};var IconWithIdentifier=function IconWithIdentifier2(_ref3){var text2=_ref3.text,_ref$showDivider=_ref3.showDivider,showDivider=_ref$showDivider===void 0?true:_ref$showDivider,color2=_ref3.color,icon2=_ref3.icon;return/* @__PURE__ */jsxs("div",{className:clsx(styles$a["icon-with-identifier"]),children:[!!icon2&&icon2,showDivider&&/* @__PURE__ */jsx$1("div",{className:styles$a.divider}),/* @__PURE__ */jsx$1("span",{className:styles$a.identifier,style:{color:color2},children:text2})]});};var progressbar="progressbar-module_progressbar_8ygYR";var lg$2="progressbar-module_lg_5JGr-";var sm$2="progressbar-module_sm_LPtUo";var styles$9={progressbar:progressbar,lg:lg$2,sm:sm$2};var Progressbar=function Progressbar2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?"lg":_ref$size,_ref$progress=_ref3.progress,initialProgress=_ref$progress===void 0?0:_ref$progress,_ref$variant=_ref3.variant,variant=_ref$variant===void 0?"determinate":_ref$variant;var _useState=useState(initialProgress),_useState2=_slicedToArray$1(_useState,2),progress=_useState2[0],setProgress=_useState2[1];useEffect(function(){if(variant==="buffer"){var timer=setInterval(function(){setProgress(function(oldProgress){var newProgress=Math.min(100,oldProgress+Math.sqrt(100-oldProgress)*0.5);return Math.round(newProgress);});},100);return function(){clearInterval(timer);};}else{setProgress(initialProgress);}},[variant,initialProgress]);return/* @__PURE__ */jsx$1(LinearProgress,{variant:variant=="buffer"?"determinate":variant,value:progress,className:clsx(styles$9["progressbar"],styles$9[size2]),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":progress});};var alert="alert-module_alert_j7ZRS";var icon="alert-module_icon_vbZHd";var message="alert-module_message_klR2U";var link="alert-module_link_IrBj3";var success="alert-module_success_AVBKS";var error$1="alert-module_error_cxg96";var warning="alert-module_warning_zkMaJ";var info="alert-module_info_PBo1l";var styles$8={alert:alert,"full-width":"alert-module_full-width_eKIHw",icon:icon,message:message,link:link,success:success,error:error$1,warning:warning,info:info};var _excluded$5=["message","variant","className","icon","fullWidth","link"];var Alert=function Alert2(_ref3){var message2=_ref3.message,_ref$variant=_ref3.variant,variant=_ref$variant===void 0?"success":_ref$variant,className=_ref3.className,icon2=_ref3.icon,_ref$fullWidth=_ref3.fullWidth,fullWidth=_ref$fullWidth===void 0?false:_ref$fullWidth,link2=_ref3.link,props=_objectWithoutProperties$1(_ref3,_excluded$5);var defaultIcons={success:/* @__PURE__ */jsx$1(CustomIcon,{size:"12",color:getColor("success","500"),children:/* @__PURE__ */jsx$1(CheckCircle,{})}),error:/* @__PURE__ */jsx$1(CustomIcon,{size:"12",color:getColor("error","700"),children:/* @__PURE__ */jsx$1(Cancel,{})}),warning:/* @__PURE__ */jsx$1(CustomIcon,{size:"12",color:getColor("secondary","500"),children:/* @__PURE__ */jsx$1(ErrorIcon,{})}),info:/* @__PURE__ */jsx$1(CustomIcon,{size:"12",color:getColor("primary","500"),children:/* @__PURE__ */jsx$1(Info,{})})};return/* @__PURE__ */jsxs("div",_objectSpread2$1(_objectSpread2$1({className:clsx(styles$8["alert"],styles$8[variant],_defineProperty$1({},styles$8["full-width"],fullWidth),className)},props),{},{children:[/* @__PURE__ */jsx$1("div",{className:styles$8["icon"],children:icon2||defaultIcons[variant]}),/* @__PURE__ */jsxs("div",{className:styles$8["message"],children:[_.isString(message2)?/* @__PURE__ */jsx$1("span",{dangerouslySetInnerHTML:{__html:message2}}):/* @__PURE__ */jsxs("span",{children:[" ",message2]}),link2&&/* @__PURE__ */jsxs(Fragment$1,{children:[" ",/* @__PURE__ */jsx$1("a",{href:link2===null||link2===void 0?void 0:link2.href,className:styles$8["link"],onClick:link2===null||link2===void 0?void 0:link2.onClick,children:link2.text})]})]})]}));};var OverflowChecker=function OverflowChecker2(_ref3){var children=_ref3.children;var ref=useRef(null);var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),showTooltip=_useState2[0],setShowTooltip=_useState2[1];useEffect(function(){var checkOverflow=function checkOverflow2(){if(ref.current){setShowTooltip(ref.current.scrollWidth>ref.current.offsetWidth);}};checkOverflow();window.addEventListener("resize",checkOverflow);return function(){return window.removeEventListener("resize",checkOverflow);};},[children]);return/* @__PURE__ */jsx$1(Fragment$1,{children:children(ref,showTooltip)});};var _excluded$4=["children","content","placement","arrow","maxWidth","trigger","shouldShowTooltip"],_excluded2=["content","children"];var WithTooltip=function WithTooltip2(_ref3){var children=_ref3.children,content2=_ref3.content,_ref$placement=_ref3.placement,placement=_ref$placement===void 0?"top":_ref$placement,_ref$arrow=_ref3.arrow,arrow2=_ref$arrow===void 0?false:_ref$arrow,_ref$maxWidth=_ref3.maxWidth,maxWidth2=_ref$maxWidth===void 0?"600px":_ref$maxWidth,_ref$trigger=_ref3.trigger,trigger=_ref$trigger===void 0?"hover":_ref$trigger,_ref$shouldShowToolti=_ref3.shouldShowTooltip,shouldShowTooltip=_ref$shouldShowToolti===void 0?true:_ref$shouldShowToolti,otherProps=_objectWithoutProperties$1(_ref3,_excluded$4);var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),open=_useState2[0],setOpen=_useState2[1];var enhancedChildren=/* @__PURE__ */React__default.cloneElement(children,_objectSpread2$1({style:_objectSpread2$1(_objectSpread2$1({},children.props.style||{}),{},{cursor:"pointer"})},trigger==="click"&&shouldShowTooltip&&{onClick:function onClick(e){if(children.props.onClick){children.props.onClick(e);}setOpen(!open);}}));var tooltipProps=trigger==="click"?{open:shouldShowTooltip?open:false,onClose:function onClose(){return setOpen(false);},disableHoverListener:true,disableFocusListener:true,disableTouchListener:true}:{};var disabledListeners=!shouldShowTooltip?{disableHoverListener:true,disableFocusListener:true,disableTouchListener:true}:{};return/* @__PURE__ */jsx$1(Tooltip,_objectSpread2$1(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({title:shouldShowTooltip?content2:"",placement:placement,arrow:arrow2,slots:{transition:Zoom},slotProps:{popper:{sx:_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1({},"&.".concat(tooltipClasses.popper," .").concat(tooltipClasses.tooltip),{fontFamily:"Poppins, Open Sans, Helvetica, Arial, sans-serif",background:"rgba(102, 102, 102, 1)",padding:"9px 9px 8px 12px",fontSize:"12px",fontWeight:"400",color:"white !important",borderRadius:"4px",maxWidth:maxWidth2}),"&.".concat(tooltipClasses.popper," .").concat(tooltipClasses.arrow),{color:"rgba(102, 102, 102, 1)"}),"&.".concat(tooltipClasses.popper,'[data-popper-placement*="top"] .').concat(tooltipClasses.tooltip),{marginBottom:"8px"}),"&.".concat(tooltipClasses.popper,'[data-popper-placement*="bottom"] .').concat(tooltipClasses.tooltip),{marginTop:"8px"}),"&.".concat(tooltipClasses.popper,'[data-popper-placement*="left"] .').concat(tooltipClasses.tooltip),{marginRight:"8px"}),"&.".concat(tooltipClasses.popper,'[data-popper-placement*="right"] .').concat(tooltipClasses.tooltip),{marginLeft:"8px"})}}},tooltipProps),disabledListeners),otherProps),{},{children:enhancedChildren}));};var WithOverflowTooltip=function WithOverflowTooltip2(_ref22){var content2=_ref22.content,_children=_ref22.children,tooltipProps=_objectWithoutProperties$1(_ref22,_excluded2);return/* @__PURE__ */jsx$1(OverflowChecker,{children:function children(ref,showTooltip){var childrenWithRef=/* @__PURE__ */React__default.cloneElement(_children,{ref:ref});return showTooltip&&content2?/* @__PURE__ */jsx$1(WithTooltip,_objectSpread2$1(_objectSpread2$1({content:content2},tooltipProps),{},{children:childrenWithRef})):childrenWithRef;}});};var image="image-module_image_y02P7";var error="image-module_error_QtQOy";var styles$7={"image-container":"image-module_image-container_ZhlhW","without-border":"image-module_without-border_Uc1yx",image:image,error:error};var Image=function Image2(_ref3){var src=_ref3.src,withoutBorder=_ref3.withoutBorder,sx=_ref3.sx,alt=_ref3.alt;var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),hasError3=_useState2[0],setHasError=_useState2[1];var handleImageError=function handleImageError2(){setHasError(true);};if(hasError3){return/* @__PURE__ */jsx$1("div",{className:clsx(styles$7["image-container"]),style:sx,children:/* @__PURE__ */jsx$1(InsertPhotoRoundedIcon,{className:styles$7.error})});}return/* @__PURE__ */jsx$1("div",{className:clsx(styles$7["image-container"],_defineProperty$1({},styles$7["without-border"],withoutBorder)),style:_objectSpread2$1({},sx),children:/* @__PURE__ */jsx$1("img",{src:src,alt:alt||src,className:styles$7.image,onError:handleImageError})});};var breadcrumb="breadcrumb-module_breadcrumb_r-ILp";var styles$6={breadcrumb:breadcrumb,"breadcrumb-item":"breadcrumb-module_breadcrumb-item_suTUF"};var _excluded$3=["items","className"];var BreadcrumbItemComponent=function BreadcrumbItemComponent2(_ref3){var item2=_ref3.item,index2=_ref3.index,items=_ref3.items;var isLast=index2===lodashExports.size(items)-1;var text2="".concat(item2.text," >");return item2.isActive||isLast?/* @__PURE__ */jsx$1(Button$2,{variant:"link",size:"sm",label:text2,onClick:item2.onClick}):/* @__PURE__ */jsxs("div",{className:styles$6["breadcrumb-item"],children:[" ",text2," "]});};var Breadcrumb=function Breadcrumb2(_ref22){var items=_ref22.items,className=_ref22.className,otherProps=_objectWithoutProperties$1(_ref22,_excluded$3);return/* @__PURE__ */jsx$1("nav",_objectSpread2$1(_objectSpread2$1({className:clsx(styles$6["breadcrumb"],className),"aria-label":"Breadcrumb"},otherProps),{},{children:lodashExports.map(items,function(item2,index2){return/* @__PURE__ */jsx$1(BreadcrumbItemComponent,{item:item2,index:index2,items:items},index2);})}));};var menuPaperSx=function menuPaperSx2(size2,maxItemsVisible){return{"& .MuiPopover-paper":{boxShadow:"0px 5px 5px -3px rgb(205 205 205 / 20%), 0px 8px 14px 1px rgb(165 165 165 / 14%), 0px 3px 14px 2px rgb(219 219 219 / 6%)",border:"1px solid #D7D7D7",maxHeight:"".concat(maxHeight(size2,maxItemsVisible),"px")}};};var getMenuActionSize=function getMenuActionSize2(size2){switch(size2){case"sm":return 32;case"md":return 37;case"lg":return 42;default:return 37;}};var maxHeight=function maxHeight2(size2,maxItemsVisible){return getMenuActionSize(size2)*(maxItemsVisible!==null&&maxItemsVisible!==void 0?maxItemsVisible:6);};var item="menuItem-module_item_IbBuJ";var lg$1="menuItem-module_lg_ZMwXU";var md="menuItem-module_md_apOGd";var sm$1="menuItem-module_sm_gHxtB";var styles$5={item:item,lg:lg$1,md:md,sm:sm$1};var menuItemSx={fontFamily:"Poppins, Open Sans, Helvetica, Arial, sans-serif",fontSize:"14px",color:getColor("grey","900"),"&.Mui-selected":{backgroundColor:getColor("grey","100")},"&.Mui-selected:hover":{backgroundColor:getColor("grey","100")},"&.Mui-disabled":{opacity:0.5},padding:"0 16px"};var _excluded$2=["label","icon","onClick","selected","disabled","onClose","size"];var MenuItemComponent=function MenuItemComponent2(_ref3){var label2=_ref3.label,icon2=_ref3.icon,onClick=_ref3.onClick,selected2=_ref3.selected,disabled2=_ref3.disabled,onClose=_ref3.onClose,_ref$size=_ref3.size,size2=_ref$size===void 0?"md":_ref$size,otherProps=_objectWithoutProperties$1(_ref3,_excluded$2);var handleClick=function handleClick2(){onClose===null||onClose===void 0||onClose();onClick===null||onClick===void 0||onClick();};return/* @__PURE__ */jsx$1(MenuItem$1,_objectSpread2$1(_objectSpread2$1({sx:menuItemSx,selected:selected2,disabled:disabled2,onClick:handleClick},otherProps),{},{children:/* @__PURE__ */jsxs("div",{className:clsx(styles$5.item,styles$5[size2]),children:[!!icon2&&icon2,/* @__PURE__ */jsx$1("span",{children:label2})]})}));};var _excluded$1=["items","id","maxItemsVisible","icon","size","disableRipple"];var MenuAction=function MenuAction2(_ref3){var items=_ref3.items,_ref$id=_ref3.id,id=_ref$id===void 0?"menu-action-button":_ref$id,_ref$maxItemsVisible=_ref3.maxItemsVisible,maxItemsVisible=_ref$maxItemsVisible===void 0?6:_ref$maxItemsVisible,icon2=_ref3.icon,_ref$size=_ref3.size,size2=_ref$size===void 0?"md":_ref$size,_ref$disableRipple=_ref3.disableRipple,disableRipple=_ref$disableRipple===void 0?false:_ref$disableRipple,otherProps=_objectWithoutProperties$1(_ref3,_excluded$1);var _useState=useState(null),_useState2=_slicedToArray$1(_useState,2),anchorEl=_useState2[0],setAnchorEl=_useState2[1];var open=Boolean(anchorEl);var handleClick=function handleClick2(event){setAnchorEl(event.currentTarget);};var handleClose=function handleClose2(){setAnchorEl(null);};return/* @__PURE__ */jsxs("div",{children:[/* @__PURE__ */jsx$1(IconButton,{id:id,"aria-controls":open?"".concat(id,"-menu"):void 0,"aria-expanded":open?"true":void 0,"aria-haspopup":"true",onClick:handleClick,disableRipple:disableRipple,children:icon2!==null&&icon2!==void 0?icon2:/* @__PURE__ */jsx$1(CustomIcon,{color:getColor("grey","900"),children:/* @__PURE__ */jsx$1(MoreVertIcon,{})})}),/* @__PURE__ */jsx$1(Menu$2,_objectSpread2$1(_objectSpread2$1({id:"".concat(id,"-menu"),anchorEl:anchorEl,open:open,onClose:handleClose,disableScrollLock:true,slotProps:{list:{"aria-labelledby":id},transition:Grow},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},sx:menuPaperSx(size2,maxItemsVisible)},otherProps),{},{children:lodashExports.map(items,function(item2,index2){var _item$size;return/* @__PURE__ */jsx$1(MenuItemComponent,_objectSpread2$1(_objectSpread2$1({},item2),{},{size:(_item$size=item2.size)!==null&&_item$size!==void 0?_item$size:size2,onClose:handleClose}),index2);})}))]});};var overlay="warningModal-module_overlay_X5HPw";var modal="warningModal-module_modal_Co-2N";var body="warningModal-module_body_MgD8L";var title$2="warningModal-module_title_kZiTR";var content="warningModal-module_content_3IB6x";var styles$4={overlay:overlay,modal:modal,body:body,"help-container":"warningModal-module_help-container_hsnyD","header-icon":"warningModal-module_header-icon_qOIRS",title:title$2,content:content};var _excluded=["icon","onSave","onCancel","description","onClickGuide","onChangeDontShowAgain","cancelLabel","confirmLabel","title","dontShowAgainLabel"];var DefaultIcon=/* @__PURE__ */jsx$1(CustomIcon,{size:"32",color:getColor("secondary","500"),children:/* @__PURE__ */jsx$1(ErrorIcon,{})});var HelpContainer=/* @__PURE__ */React__default.memo(function(_ref3){var onClickGuide=_ref3.onClickGuide;if(!onClickGuide)return null;return/* @__PURE__ */jsx$1("div",{className:styles$4["help-container"],children:/* @__PURE__ */jsx$1(CustomIcon,{"aria-label":locale("guide"),color:getColor("primary","500"),onClick:function onClick(){return onClickGuide===null||onClickGuide===void 0?void 0:onClickGuide(new MouseEvent("click"));},children:/* @__PURE__ */jsx$1(AutoStoriesIcon,{})})});});var WarningModal=function WarningModal2(_ref22){var icon2=_ref22.icon,onSave=_ref22.onSave,onCancel=_ref22.onCancel,description2=_ref22.description,onClickGuide=_ref22.onClickGuide,onChangeDontShowAgain=_ref22.onChangeDontShowAgain,_ref2$cancelLabel=_ref22.cancelLabel,cancelLabel=_ref2$cancelLabel===void 0?locale("cancel"):_ref2$cancelLabel,_ref2$confirmLabel=_ref22.confirmLabel,confirmLabel=_ref2$confirmLabel===void 0?locale("continue"):_ref2$confirmLabel,_ref2$title=_ref22.title,title2=_ref2$title===void 0?locale("warningModal.warning"):_ref2$title,_ref2$dontShowAgainLa=_ref22.dontShowAgainLabel,dontShowAgainLabel=_ref2$dontShowAgainLa===void 0?locale("warningModal.dontShowAgain"):_ref2$dontShowAgainLa,props=_objectWithoutProperties$1(_ref22,_excluded);return/* @__PURE__ */jsx$1(Modal,{open:true,onClose:onCancel,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",className:styles$4["overlay"],children:/* @__PURE__ */jsxs("div",{className:styles$4["modal"],role:"dialog","aria-modal":"true",children:[/* @__PURE__ */jsxs("div",{className:styles$4["body"],children:[/* @__PURE__ */jsx$1(HelpContainer,{onClickGuide:onClickGuide}),/* @__PURE__ */jsxs("div",{className:styles$4["header-icon"],children:[!!icon2?icon2:DefaultIcon,/* @__PURE__ */jsx$1("div",{id:"modal-modal-title",className:styles$4["title"],children:title2})]}),/* @__PURE__ */jsxs("div",{className:styles$4["content"],children:[/* @__PURE__ */jsxs("span",{id:"modal-modal-description",children:[" ",description2," "]}),onChangeDontShowAgain&&/* @__PURE__ */jsx$1(CheckboxInput,_objectSpread2$1({name:"dont-show-again",label:dontShowAgainLabel,onChange:onChangeDontShowAgain},props))]})]}),/* @__PURE__ */jsx$1(ActionBar,{variant:"modal",cancelProps:{onCancel:onCancel,label:cancelLabel},saveProps:{onSave:onSave,label:confirmLabel,variant:"primary",size:"md"}})]})});};function arrayMap$2(array,iteratee){var index2=-1,length2=array==null?0:array.length,result=Array(length2);while(++index2<length2){result[index2]=iteratee(array[index2],index2,array);}return result;}var _arrayMap=arrayMap$2;function listCacheClear$1(){this.__data__=[];this.size=0;}var _listCacheClear=listCacheClear$1;function eq$2(value,other){return value===other||value!==value&&other!==other;}var eq_1=eq$2;var eq$1=eq_1;function assocIndexOf$4(array,key){var length2=array.length;while(length2--){if(eq$1(array[length2][0],key)){return length2;}}return-1;}var _assocIndexOf=assocIndexOf$4;var assocIndexOf$3=_assocIndexOf;var arrayProto=Array.prototype;var splice=arrayProto.splice;function listCacheDelete$1(key){var data=this.__data__,index2=assocIndexOf$3(data,key);if(index2<0){return false;}var lastIndex=data.length-1;if(index2==lastIndex){data.pop();}else{splice.call(data,index2,1);}--this.size;return true;}var _listCacheDelete=listCacheDelete$1;var assocIndexOf$2=_assocIndexOf;function listCacheGet$1(key){var data=this.__data__,index2=assocIndexOf$2(data,key);return index2<0?void 0:data[index2][1];}var _listCacheGet=listCacheGet$1;var assocIndexOf$1=_assocIndexOf;function listCacheHas$1(key){return assocIndexOf$1(this.__data__,key)>-1;}var _listCacheHas=listCacheHas$1;var assocIndexOf=_assocIndexOf;function listCacheSet$1(key,value){var data=this.__data__,index2=assocIndexOf(data,key);if(index2<0){++this.size;data.push([key,value]);}else{data[index2][1]=value;}return this;}var _listCacheSet=listCacheSet$1;var listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(entries){var index2=-1,length2=entries==null?0:entries.length;this.clear();while(++index2<length2){var entry=entries[index2];this.set(entry[0],entry[1]);}}ListCache$4.prototype.clear=listCacheClear;ListCache$4.prototype["delete"]=listCacheDelete;ListCache$4.prototype.get=listCacheGet;ListCache$4.prototype.has=listCacheHas;ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4;var ListCache$3=_ListCache;function stackClear$1(){this.__data__=new ListCache$3();this.size=0;}var _stackClear=stackClear$1;function stackDelete$1(key){var data=this.__data__,result=data["delete"](key);this.size=data.size;return result;}var _stackDelete=stackDelete$1;function stackGet$1(key){return this.__data__.get(key);}var _stackGet=stackGet$1;function stackHas$1(key){return this.__data__.has(key);}var _stackHas=stackHas$1;var freeGlobal$1=_typeof2(commonjsGlobal)=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal;var _freeGlobal=freeGlobal$1;var freeGlobal=_freeGlobal;var freeSelf=(typeof self==="undefined"?"undefined":_typeof2(self))=="object"&&self&&self.Object===Object&&self;var root$8=freeGlobal||freeSelf||Function("return this")();var _root=root$8;var root$7=_root;var Symbol$5=root$7.Symbol;var _Symbol=Symbol$5;var Symbol$4=_Symbol;var objectProto$b=Object.prototype;var hasOwnProperty$9=objectProto$b.hasOwnProperty;var nativeObjectToString$1=objectProto$b.toString;var symToStringTag$1=Symbol$4?Symbol$4.toStringTag:void 0;function getRawTag$1(value){var isOwn=hasOwnProperty$9.call(value,symToStringTag$1),tag=value[symToStringTag$1];try{value[symToStringTag$1]=void 0;var unmasked=true;}catch(e){}var result=nativeObjectToString$1.call(value);if(unmasked){if(isOwn){value[symToStringTag$1]=tag;}else{delete value[symToStringTag$1];}}return result;}var _getRawTag=getRawTag$1;var objectProto$a=Object.prototype;var nativeObjectToString=objectProto$a.toString;function objectToString$1(value){return nativeObjectToString.call(value);}var _objectToString=objectToString$1;var Symbol$3=_Symbol,getRawTag=_getRawTag,objectToString=_objectToString;var nullTag="[object Null]",undefinedTag="[object Undefined]";var symToStringTag=Symbol$3?Symbol$3.toStringTag:void 0;function baseGetTag$5(value){if(value==null){return value===void 0?undefinedTag:nullTag;}return symToStringTag&&symToStringTag in Object(value)?getRawTag(value):objectToString(value);}var _baseGetTag=baseGetTag$5;function isObject$4(value){var type=_typeof2(value);return value!=null&&(type=="object"||type=="function");}var isObject_1=isObject$4;var baseGetTag$4=_baseGetTag,isObject$3=isObject_1;var asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(value){if(!isObject$3(value)){return false;}var tag=baseGetTag$4(value);return tag==funcTag$1||tag==genTag||tag==asyncTag||tag==proxyTag;}var isFunction_1=isFunction$2;var root$6=_root;var coreJsData$1=root$6["__core-js_shared__"];var _coreJsData=coreJsData$1;var coreJsData=_coreJsData;var maskSrcKey=function(){var uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return uid?"Symbol(src)_1."+uid:"";}();function isMasked$1(func){return!!maskSrcKey&&maskSrcKey in func;}var _isMasked=isMasked$1;var funcProto$1=Function.prototype;var funcToString$1=funcProto$1.toString;function toSource$2(func){if(func!=null){try{return funcToString$1.call(func);}catch(e){}try{return func+"";}catch(e){}}return"";}var _toSource=toSource$2;var isFunction$1=isFunction_1,isMasked=_isMasked,isObject$2=isObject_1,toSource$1=_toSource;var reRegExpChar=/[\\^$.*+?()[\]{}|]/g;var reIsHostCtor=/^\[object .+?Constructor\]$/;var funcProto=Function.prototype,objectProto$9=Object.prototype;var funcToString=funcProto.toString;var hasOwnProperty$8=objectProto$9.hasOwnProperty;var reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$8).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(value){if(!isObject$2(value)||isMasked(value)){return false;}var pattern=isFunction$1(value)?reIsNative:reIsHostCtor;return pattern.test(toSource$1(value));}var _baseIsNative=baseIsNative$1;function getValue$1(object,key){return object==null?void 0:object[key];}var _getValue=getValue$1;var baseIsNative=_baseIsNative,getValue=_getValue;function getNative$6(object,key){var value=getValue(object,key);return baseIsNative(value)?value:void 0;}var _getNative=getNative$6;var getNative$5=_getNative,root$5=_root;var Map$4=getNative$5(root$5,"Map");var _Map=Map$4;var getNative$4=_getNative;var nativeCreate$4=getNative$4(Object,"create");var _nativeCreate=nativeCreate$4;var nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{};this.size=0;}var _hashClear=hashClear$1;function hashDelete$1(key){var result=this.has(key)&&delete this.__data__[key];this.size-=result?1:0;return result;}var _hashDelete=hashDelete$1;var nativeCreate$2=_nativeCreate;var HASH_UNDEFINED$2="__lodash_hash_undefined__";var objectProto$8=Object.prototype;var hasOwnProperty$7=objectProto$8.hasOwnProperty;function hashGet$1(key){var data=this.__data__;if(nativeCreate$2){var result=data[key];return result===HASH_UNDEFINED$2?void 0:result;}return hasOwnProperty$7.call(data,key)?data[key]:void 0;}var _hashGet=hashGet$1;var nativeCreate$1=_nativeCreate;var objectProto$7=Object.prototype;var hasOwnProperty$6=objectProto$7.hasOwnProperty;function hashHas$1(key){var data=this.__data__;return nativeCreate$1?data[key]!==void 0:hasOwnProperty$6.call(data,key);}var _hashHas=hashHas$1;var nativeCreate=_nativeCreate;var HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet$1(key,value){var data=this.__data__;this.size+=this.has(key)?0:1;data[key]=nativeCreate&&value===void 0?HASH_UNDEFINED$1:value;return this;}var _hashSet=hashSet$1;var hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(entries){var index2=-1,length2=entries==null?0:entries.length;this.clear();while(++index2<length2){var entry=entries[index2];this.set(entry[0],entry[1]);}}Hash$1.prototype.clear=hashClear;Hash$1.prototype["delete"]=hashDelete;Hash$1.prototype.get=hashGet;Hash$1.prototype.has=hashHas;Hash$1.prototype.set=hashSet;var _Hash=Hash$1;var Hash=_Hash,ListCache$2=_ListCache,Map$3=_Map;function mapCacheClear$1(){this.size=0;this.__data__={"hash":new Hash(),"map":new(Map$3||ListCache$2)(),"string":new Hash()};}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(value){var type=_typeof2(value);return type=="string"||type=="number"||type=="symbol"||type=="boolean"?value!=="__proto__":value===null;}var _isKeyable=isKeyable$1;var isKeyable=_isKeyable;function getMapData$4(map2,key){var data=map2.__data__;return isKeyable(key)?data[typeof key=="string"?"string":"hash"]:data.map;}var _getMapData=getMapData$4;var getMapData$3=_getMapData;function mapCacheDelete$1(key){var result=getMapData$3(this,key)["delete"](key);this.size-=result?1:0;return result;}var _mapCacheDelete=mapCacheDelete$1;var getMapData$2=_getMapData;function mapCacheGet$1(key){return getMapData$2(this,key).get(key);}var _mapCacheGet=mapCacheGet$1;var getMapData$1=_getMapData;function mapCacheHas$1(key){return getMapData$1(this,key).has(key);}var _mapCacheHas=mapCacheHas$1;var getMapData=_getMapData;function mapCacheSet$1(key,value){var data=getMapData(this,key),size2=data.size;data.set(key,value);this.size+=data.size==size2?0:1;return this;}var _mapCacheSet=mapCacheSet$1;var mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$3(entries){var index2=-1,length2=entries==null?0:entries.length;this.clear();while(++index2<length2){var entry=entries[index2];this.set(entry[0],entry[1]);}}MapCache$3.prototype.clear=mapCacheClear;MapCache$3.prototype["delete"]=mapCacheDelete;MapCache$3.prototype.get=mapCacheGet;MapCache$3.prototype.has=mapCacheHas;MapCache$3.prototype.set=mapCacheSet;var _MapCache=MapCache$3;var ListCache$1=_ListCache,Map$2=_Map,MapCache$2=_MapCache;var LARGE_ARRAY_SIZE=200;function stackSet$1(key,value){var data=this.__data__;if(data instanceof ListCache$1){var pairs=data.__data__;if(!Map$2||pairs.length<LARGE_ARRAY_SIZE-1){pairs.push([key,value]);this.size=++data.size;return this;}data=this.__data__=new MapCache$2(pairs);}data.set(key,value);this.size=data.size;return this;}var _stackSet=stackSet$1;var ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$2(entries){var data=this.__data__=new ListCache(entries);this.size=data.size;}Stack$2.prototype.clear=stackClear;Stack$2.prototype["delete"]=stackDelete;Stack$2.prototype.get=stackGet;Stack$2.prototype.has=stackHas;Stack$2.prototype.set=stackSet;var _Stack=Stack$2;var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd$1(value){this.__data__.set(value,HASH_UNDEFINED);return this;}var _setCacheAdd=setCacheAdd$1;function setCacheHas$1(value){return this.__data__.has(value);}var _setCacheHas=setCacheHas$1;var MapCache$1=_MapCache,setCacheAdd=_setCacheAdd,setCacheHas=_setCacheHas;function SetCache$1(values2){var index2=-1,length2=values2==null?0:values2.length;this.__data__=new MapCache$1();while(++index2<length2){this.add(values2[index2]);}}SetCache$1.prototype.add=SetCache$1.prototype.push=setCacheAdd;SetCache$1.prototype.has=setCacheHas;var _SetCache=SetCache$1;function arraySome$1(array,predicate){var index2=-1,length2=array==null?0:array.length;while(++index2<length2){if(predicate(array[index2],index2,array)){return true;}}return false;}var _arraySome=arraySome$1;function cacheHas$1(cache,key){return cache.has(key);}var _cacheHas=cacheHas$1;var SetCache=_SetCache,arraySome=_arraySome,cacheHas=_cacheHas;var COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays$2(array,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG$5,arrLength=array.length,othLength=other.length;if(arrLength!=othLength&&!(isPartial&&othLength>arrLength)){return false;}var arrStacked=stack.get(array);var othStacked=stack.get(other);if(arrStacked&&othStacked){return arrStacked==other&&othStacked==array;}var index2=-1,result=true,seen=bitmask&COMPARE_UNORDERED_FLAG$3?new SetCache():void 0;stack.set(array,other);stack.set(other,array);while(++index2<arrLength){var arrValue=array[index2],othValue=other[index2];if(customizer){var compared=isPartial?customizer(othValue,arrValue,index2,other,array,stack):customizer(arrValue,othValue,index2,array,other,stack);}if(compared!==void 0){if(compared){continue;}result=false;break;}if(seen){if(!arraySome(other,function(othValue2,othIndex){if(!cacheHas(seen,othIndex)&&(arrValue===othValue2||equalFunc(arrValue,othValue2,bitmask,customizer,stack))){return seen.push(othIndex);}})){result=false;break;}}else if(!(arrValue===othValue||equalFunc(arrValue,othValue,bitmask,customizer,stack))){result=false;break;}}stack["delete"](array);stack["delete"](other);return result;}var _equalArrays=equalArrays$2;var root$4=_root;var Uint8Array$1=root$4.Uint8Array;var _Uint8Array=Uint8Array$1;function mapToArray$1(map2){var index2=-1,result=Array(map2.size);map2.forEach(function(value,key){result[++index2]=[key,value];});return result;}var _mapToArray=mapToArray$1;function setToArray$1(set){var index2=-1,result=Array(set.size);set.forEach(function(value){result[++index2]=value;});return result;}var _setToArray=setToArray$1;var Symbol$2=_Symbol,Uint8Array2=_Uint8Array,eq=eq_1,equalArrays$1=_equalArrays,mapToArray=_mapToArray,setToArray=_setToArray;var COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2;var boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",mapTag$2="[object Map]",numberTag$1="[object Number]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",symbolTag$1="[object Symbol]";var arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$2="[object DataView]";var symbolProto$1=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf=symbolProto$1?symbolProto$1.valueOf:void 0;function equalByTag$1(object,other,tag,bitmask,customizer,equalFunc,stack){switch(tag){case dataViewTag$2:if(object.byteLength!=other.byteLength||object.byteOffset!=other.byteOffset){return false;}object=object.buffer;other=other.buffer;case arrayBufferTag$1:if(object.byteLength!=other.byteLength||!equalFunc(new Uint8Array2(object),new Uint8Array2(other))){return false;}return true;case boolTag$1:case dateTag$1:case numberTag$1:return eq(+object,+other);case errorTag$1:return object.name==other.name&&object.message==other.message;case regexpTag$1:case stringTag$1:return object==other+"";case mapTag$2:var convert=mapToArray;case setTag$2:var isPartial=bitmask&COMPARE_PARTIAL_FLAG$4;convert||(convert=setToArray);if(object.size!=other.size&&!isPartial){return false;}var stacked=stack.get(object);if(stacked){return stacked==other;}bitmask|=COMPARE_UNORDERED_FLAG$2;stack.set(object,other);var result=equalArrays$1(convert(object),convert(other),bitmask,customizer,equalFunc,stack);stack["delete"](object);return result;case symbolTag$1:if(symbolValueOf){return symbolValueOf.call(object)==symbolValueOf.call(other);}}return false;}var _equalByTag=equalByTag$1;function arrayPush$1(array,values2){var index2=-1,length2=values2.length,offset2=array.length;while(++index2<length2){array[offset2+index2]=values2[index2];}return array;}var _arrayPush=arrayPush$1;var isArray$9=Array.isArray;var isArray_1=isArray$9;var arrayPush=_arrayPush,isArray$8=isArray_1;function baseGetAllKeys$1(object,keysFunc,symbolsFunc){var result=keysFunc(object);return isArray$8(object)?result:arrayPush(result,symbolsFunc(object));}var _baseGetAllKeys=baseGetAllKeys$1;function arrayFilter$1(array,predicate){var index2=-1,length2=array==null?0:array.length,resIndex=0,result=[];while(++index2<length2){var value=array[index2];if(predicate(value,index2,array)){result[resIndex++]=value;}}return result;}var _arrayFilter=arrayFilter$1;function stubArray$1(){return[];}var stubArray_1=stubArray$1;var arrayFilter=_arrayFilter,stubArray=stubArray_1;var objectProto$6=Object.prototype;var propertyIsEnumerable$1=objectProto$6.propertyIsEnumerable;var nativeGetSymbols=Object.getOwnPropertySymbols;var getSymbols$1=!nativeGetSymbols?stubArray:function(object){if(object==null){return[];}object=Object(object);return arrayFilter(nativeGetSymbols(object),function(symbol){return propertyIsEnumerable$1.call(object,symbol);});};var _getSymbols=getSymbols$1;function baseTimes$1(n,iteratee){var index2=-1,result=Array(n);while(++index2<n){result[index2]=iteratee(index2);}return result;}var _baseTimes=baseTimes$1;function isObjectLike$5(value){return value!=null&&_typeof2(value)=="object";}var isObjectLike_1=isObjectLike$5;var baseGetTag$3=_baseGetTag,isObjectLike$4=isObjectLike_1;var argsTag$2="[object Arguments]";function baseIsArguments$1(value){return isObjectLike$4(value)&&baseGetTag$3(value)==argsTag$2;}var _baseIsArguments=baseIsArguments$1;var baseIsArguments=_baseIsArguments,isObjectLike$3=isObjectLike_1;var objectProto$5=Object.prototype;var hasOwnProperty$5=objectProto$5.hasOwnProperty;var propertyIsEnumerable=objectProto$5.propertyIsEnumerable;var isArguments$2=baseIsArguments(/* @__PURE__ */function(){return arguments;}())?baseIsArguments:function(value){return isObjectLike$3(value)&&hasOwnProperty$5.call(value,"callee")&&!propertyIsEnumerable.call(value,"callee");};var isArguments_1=isArguments$2;var isBuffer$2={exports:{}};function stubFalse(){return false;}var stubFalse_1=stubFalse;isBuffer$2.exports;(function(module,exports){var root2=_root,stubFalse2=stubFalse_1;var freeExports=exports&&!exports.nodeType&&exports;var freeModule=freeExports&&true&&module&&!module.nodeType&&module;var moduleExports=freeModule&&freeModule.exports===freeExports;var Buffer2=moduleExports?root2.Buffer:void 0;var nativeIsBuffer=Buffer2?Buffer2.isBuffer:void 0;var isBuffer2=nativeIsBuffer||stubFalse2;module.exports=isBuffer2;})(isBuffer$2,isBuffer$2.exports);var isBufferExports=isBuffer$2.exports;var MAX_SAFE_INTEGER$1=9007199254740991;var reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$2(value,length2){var type=_typeof2(value);length2=length2==null?MAX_SAFE_INTEGER$1:length2;return!!length2&&(type=="number"||type!="symbol"&&reIsUint.test(value))&&value>-1&&value%1==0&&value<length2;}var _isIndex=isIndex$2;var MAX_SAFE_INTEGER=9007199254740991;function isLength$3(value){return typeof value=="number"&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER;}var isLength_1=isLength$3;var baseGetTag$2=_baseGetTag,isLength$2=isLength_1,isObjectLike$2=isObjectLike_1;var argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag$1="[object Map]",numberTag="[object Number]",objectTag$2="[object Object]",regexpTag="[object RegExp]",setTag$1="[object Set]",stringTag="[object String]",weakMapTag$1="[object WeakMap]";var arrayBufferTag="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]";var typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=true;typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag$1]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag$1]=typedArrayTags[numberTag]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag]=typedArrayTags[setTag$1]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag$1]=false;function baseIsTypedArray$1(value){return isObjectLike$2(value)&&isLength$2(value.length)&&!!typedArrayTags[baseGetTag$2(value)];}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$1(func){return function(value){return func(value);};}var _baseUnary=baseUnary$1;var _nodeUtil={exports:{}};_nodeUtil.exports;(function(module,exports){var freeGlobal2=_freeGlobal;var freeExports=exports&&!exports.nodeType&&exports;var freeModule=freeExports&&true&&module&&!module.nodeType&&module;var moduleExports=freeModule&&freeModule.exports===freeExports;var freeProcess=moduleExports&&freeGlobal2.process;var nodeUtil2=function(){try{var types=freeModule&&freeModule.require&&freeModule.require("util").types;if(types){return types;}return freeProcess&&freeProcess.binding&&freeProcess.binding("util");}catch(e){}}();module.exports=nodeUtil2;})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports;var baseIsTypedArray=_baseIsTypedArray,baseUnary=_baseUnary,nodeUtil=_nodeUtilExports;var nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray;var isTypedArray$2=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;var isTypedArray_1=isTypedArray$2;var baseTimes=_baseTimes,isArguments$1=isArguments_1,isArray$7=isArray_1,isBuffer$1=isBufferExports,isIndex$1=_isIndex,isTypedArray$1=isTypedArray_1;var objectProto$4=Object.prototype;var hasOwnProperty$4=objectProto$4.hasOwnProperty;function arrayLikeKeys$1(value,inherited){var isArr=isArray$7(value),isArg=!isArr&&isArguments$1(value),isBuff=!isArr&&!isArg&&isBuffer$1(value),isType=!isArr&&!isArg&&!isBuff&&isTypedArray$1(value),skipIndexes=isArr||isArg||isBuff||isType,result=skipIndexes?baseTimes(value.length,String):[],length2=result.length;for(var key in value){if((inherited||hasOwnProperty$4.call(value,key))&&!(skipIndexes&&(// Safari 9 has enumerable `arguments.length` in strict mode.
|
|
7060
|
+
targetInLock&&(endTarget.contains(target)||endTarget===target));if(isDeltaPositive&&(Math.abs(availableScroll)<1||false)){shouldCancelScroll=true;}else if(!isDeltaPositive&&(Math.abs(availableScrollTop)<1||false)){shouldCancelScroll=true;}return shouldCancelScroll;};var getTouchXY=function getTouchXY(event){return"changedTouches"in event?[event.changedTouches[0].clientX,event.changedTouches[0].clientY]:[0,0];};var getDeltaXY=function getDeltaXY(event){return[event.deltaX,event.deltaY];};var extractRef=function extractRef(ref){return ref&&"current"in ref?ref.current:ref;};var deltaCompare=function deltaCompare(x,y){return x[0]===y[0]&&x[1]===y[1];};var generateStyle=function generateStyle(id){return"\n .block-interactivity-".concat(id," {pointer-events: none;}\n .allow-interactivity-").concat(id," {pointer-events: all;}\n");};var idCounter=0;var lockStack=[];function RemoveScrollSideCar(props){var shouldPreventQueue=React.useRef([]);var touchStartRef=React.useRef([0,0]);var activeAxis=React.useRef();var id=React.useState(idCounter++)[0];var Style2=React.useState(styleSingleton)[0];var lastProps=React.useRef(props);React.useEffect(function(){lastProps.current=props;},[props]);React.useEffect(function(){if(props.inert){document.body.classList.add("block-interactivity-".concat(id));var allow_1=__spreadArray([props.lockRef.current],(props.shards||[]).map(extractRef),true).filter(Boolean);allow_1.forEach(function(el){return el.classList.add("allow-interactivity-".concat(id));});return function(){document.body.classList.remove("block-interactivity-".concat(id));allow_1.forEach(function(el){return el.classList.remove("allow-interactivity-".concat(id));});};}return;},[props.inert,props.lockRef.current,props.shards]);var shouldCancelEvent=React.useCallback(function(event,parent){if("touches"in event&&event.touches.length===2||event.type==="wheel"&&event.ctrlKey){return!lastProps.current.allowPinchZoom;}var touch=getTouchXY(event);var touchStart=touchStartRef.current;var deltaX="deltaX"in event?event.deltaX:touchStart[0]-touch[0];var deltaY="deltaY"in event?event.deltaY:touchStart[1]-touch[1];var currentAxis;var target=event.target;var moveDirection=Math.abs(deltaX)>Math.abs(deltaY)?"h":"v";if("touches"in event&&moveDirection==="h"&&target.type==="range"){return false;}var canBeScrolledInMainDirection=locationCouldBeScrolled(moveDirection,target);if(!canBeScrolledInMainDirection){return true;}if(canBeScrolledInMainDirection){currentAxis=moveDirection;}else{currentAxis=moveDirection==="v"?"h":"v";canBeScrolledInMainDirection=locationCouldBeScrolled(moveDirection,target);}if(!canBeScrolledInMainDirection){return false;}if(!activeAxis.current&&"changedTouches"in event&&(deltaX||deltaY)){activeAxis.current=currentAxis;}if(!currentAxis){return true;}var cancelingAxis=activeAxis.current||currentAxis;return handleScroll(cancelingAxis,parent,event,cancelingAxis==="h"?deltaX:deltaY);},[]);var shouldPrevent=React.useCallback(function(_event){var event=_event;if(!lockStack.length||lockStack[lockStack.length-1]!==Style2){return;}var delta="deltaY"in event?getDeltaXY(event):getTouchXY(event);var sourceEvent=shouldPreventQueue.current.filter(function(e){return e.name===event.type&&(e.target===event.target||event.target===e.shadowParent)&&deltaCompare(e.delta,delta);})[0];if(sourceEvent&&sourceEvent.should){if(event.cancelable){event.preventDefault();}return;}if(!sourceEvent){var shardNodes=(lastProps.current.shards||[]).map(extractRef).filter(Boolean).filter(function(node2){return node2.contains(event.target);});var shouldStop=shardNodes.length>0?shouldCancelEvent(event,shardNodes[0]):!lastProps.current.noIsolation;if(shouldStop){if(event.cancelable){event.preventDefault();}}}},[]);var shouldCancel=React.useCallback(function(name,delta,target,should){var event={name:name,delta:delta,target:target,should:should,shadowParent:getOutermostShadowParent(target)};shouldPreventQueue.current.push(event);setTimeout(function(){shouldPreventQueue.current=shouldPreventQueue.current.filter(function(e){return e!==event;});},1);},[]);var scrollTouchStart=React.useCallback(function(event){touchStartRef.current=getTouchXY(event);activeAxis.current=void 0;},[]);var scrollWheel=React.useCallback(function(event){shouldCancel(event.type,getDeltaXY(event),event.target,shouldCancelEvent(event,props.lockRef.current));},[]);var scrollTouchMove=React.useCallback(function(event){shouldCancel(event.type,getTouchXY(event),event.target,shouldCancelEvent(event,props.lockRef.current));},[]);React.useEffect(function(){lockStack.push(Style2);props.setCallbacks({onScrollCapture:scrollWheel,onWheelCapture:scrollWheel,onTouchMoveCapture:scrollTouchMove});document.addEventListener("wheel",shouldPrevent,nonPassive);document.addEventListener("touchmove",shouldPrevent,nonPassive);document.addEventListener("touchstart",scrollTouchStart,nonPassive);return function(){lockStack=lockStack.filter(function(inst){return inst!==Style2;});document.removeEventListener("wheel",shouldPrevent,nonPassive);document.removeEventListener("touchmove",shouldPrevent,nonPassive);document.removeEventListener("touchstart",scrollTouchStart,nonPassive);};},[]);var removeScrollBar=props.removeScrollBar,inert=props.inert;return/*#__PURE__*/React.createElement(React.Fragment,null,inert?/*#__PURE__*/React.createElement(Style2,{styles:generateStyle(id)}):null,removeScrollBar?/*#__PURE__*/React.createElement(RemoveScrollBar,{noRelative:props.noRelative,gapMode:props.gapMode}):null);}function getOutermostShadowParent(node2){var shadowParent=null;while(node2!==null){if(node2 instanceof ShadowRoot){shadowParent=node2.host;node2=node2.host;}node2=node2.parentNode;}return shadowParent;}var SideCar=exportSidecar(effectCar,RemoveScrollSideCar);var ReactRemoveScroll=/*#__PURE__*/React.forwardRef(function(props,ref){return/*#__PURE__*/React.createElement(RemoveScroll,_assign$({},props,{ref:ref,sideCar:SideCar}));});ReactRemoveScroll.classNames=RemoveScroll.classNames;var POPOVER_NAME="Popover";var _createContextScope3=createContextScope(POPOVER_NAME,[createPopperScope]),_createContextScope4=_slicedToArray2(_createContextScope3,1),createPopoverContext=_createContextScope4[0];var usePopperScope=createPopperScope();var _createPopoverContext=createPopoverContext(POPOVER_NAME),_createPopoverContext2=_slicedToArray2(_createPopoverContext,2),PopoverProvider=_createPopoverContext2[0],usePopoverContext=_createPopoverContext2[1];var Popover2=function Popover2(props){var __scopePopover=props.__scopePopover,children=props.children,openProp=props.open,defaultOpen=props.defaultOpen,onOpenChange=props.onOpenChange,_props$modal=props.modal,modal2=_props$modal===void 0?false:_props$modal;var popperScope=usePopperScope(__scopePopover);var triggerRef=React.useRef(null);var _React$useState113=React.useState(false),_React$useState114=_slicedToArray2(_React$useState113,2),hasCustomAnchor=_React$useState114[0],setHasCustomAnchor=_React$useState114[1];var _useControllableState=useControllableState({prop:openProp,defaultProp:defaultOpen!=null?defaultOpen:false,onChange:onOpenChange,caller:POPOVER_NAME}),_useControllableState2=_slicedToArray2(_useControllableState,2),open=_useControllableState2[0],setOpen=_useControllableState2[1];return/* @__PURE__ */jsx$1(Root2$1,__spreadProps(__spreadValues({},popperScope),{children:/* @__PURE__ */jsx$1(PopoverProvider,{scope:__scopePopover,contentId:useId(),triggerRef:triggerRef,open:open,onOpenChange:setOpen,onOpenToggle:React.useCallback(function(){return setOpen(function(prevOpen){return!prevOpen;});},[setOpen]),hasCustomAnchor:hasCustomAnchor,onCustomAnchorAdd:React.useCallback(function(){return setHasCustomAnchor(true);},[]),onCustomAnchorRemove:React.useCallback(function(){return setHasCustomAnchor(false);},[]),modal:modal2,children:children})}));};Popover2.displayName=POPOVER_NAME;var ANCHOR_NAME="PopoverAnchor";var PopoverAnchor=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var _a=props,__scopePopover=_a.__scopePopover,anchorProps=__objRest(_a,["__scopePopover"]);var context=usePopoverContext(ANCHOR_NAME,__scopePopover);var popperScope=usePopperScope(__scopePopover);var onCustomAnchorAdd=context.onCustomAnchorAdd,onCustomAnchorRemove=context.onCustomAnchorRemove;React.useEffect(function(){onCustomAnchorAdd();return function(){return onCustomAnchorRemove();};},[onCustomAnchorAdd,onCustomAnchorRemove]);return/* @__PURE__ */jsx$1(Anchor,__spreadProps(__spreadValues(__spreadValues({},popperScope),anchorProps),{ref:forwardedRef}));});PopoverAnchor.displayName=ANCHOR_NAME;var TRIGGER_NAME="PopoverTrigger";var PopoverTrigger=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var _a=props,__scopePopover=_a.__scopePopover,triggerProps=__objRest(_a,["__scopePopover"]);var context=usePopoverContext(TRIGGER_NAME,__scopePopover);var popperScope=usePopperScope(__scopePopover);var composedTriggerRef=useComposedRefs(forwardedRef,context.triggerRef);var trigger=/* @__PURE__ */jsx$1(Primitive.button,__spreadProps(__spreadValues({type:"button","aria-haspopup":"dialog","aria-expanded":context.open,"aria-controls":context.contentId,"data-state":getState(context.open)},triggerProps),{ref:composedTriggerRef,onClick:composeEventHandlers(props.onClick,context.onOpenToggle)}));return context.hasCustomAnchor?trigger:/* @__PURE__ */jsx$1(Anchor,__spreadProps(__spreadValues({asChild:true},popperScope),{children:trigger}));});PopoverTrigger.displayName=TRIGGER_NAME;var PORTAL_NAME="PopoverPortal";var _createPopoverContext3=createPopoverContext(PORTAL_NAME,{forceMount:void 0}),_createPopoverContext4=_slicedToArray2(_createPopoverContext3,2),PortalProvider=_createPopoverContext4[0],usePortalContext=_createPopoverContext4[1];var PopoverPortal=function PopoverPortal(props){var __scopePopover=props.__scopePopover,forceMount=props.forceMount,children=props.children,container=props.container;var context=usePopoverContext(PORTAL_NAME,__scopePopover);return/* @__PURE__ */jsx$1(PortalProvider,{scope:__scopePopover,forceMount:forceMount,children:/* @__PURE__ */jsx$1(Presence,{present:forceMount||context.open,children:/* @__PURE__ */jsx$1(Portal$1,{asChild:true,container:container,children:children})})});};PopoverPortal.displayName=PORTAL_NAME;var CONTENT_NAME="PopoverContent";var PopoverContent=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var portalContext=usePortalContext(CONTENT_NAME,props.__scopePopover);var _a=props,_a$forceMount=_a.forceMount,forceMount=_a$forceMount===void 0?portalContext.forceMount:_a$forceMount,contentProps=__objRest(_a,["forceMount"]);var context=usePopoverContext(CONTENT_NAME,props.__scopePopover);return/* @__PURE__ */jsx$1(Presence,{present:forceMount||context.open,children:context.modal?/* @__PURE__ */jsx$1(PopoverContentModal,__spreadProps(__spreadValues({},contentProps),{ref:forwardedRef})):/* @__PURE__ */jsx$1(PopoverContentNonModal,__spreadProps(__spreadValues({},contentProps),{ref:forwardedRef}))});});PopoverContent.displayName=CONTENT_NAME;var Slot=/* @__PURE__ */createSlot("PopoverContent.RemoveScroll");var PopoverContentModal=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var context=usePopoverContext(CONTENT_NAME,props.__scopePopover);var contentRef=React.useRef(null);var composedRefs=useComposedRefs(forwardedRef,contentRef);var isRightClickOutsideRef=React.useRef(false);React.useEffect(function(){var content2=contentRef.current;if(content2)return hideOthers(content2);},[]);return/* @__PURE__ */jsx$1(ReactRemoveScroll,{as:Slot,allowPinchZoom:true,children:/* @__PURE__ */jsx$1(PopoverContentImpl,__spreadProps(__spreadValues({},props),{ref:composedRefs,trapFocus:context.open,disableOutsidePointerEvents:true,onCloseAutoFocus:composeEventHandlers(props.onCloseAutoFocus,function(event){var _a;event.preventDefault();if(!isRightClickOutsideRef.current)(_a=context.triggerRef.current)==null?void 0:_a.focus();}),onPointerDownOutside:composeEventHandlers(props.onPointerDownOutside,function(event){var originalEvent=event.detail.originalEvent;var ctrlLeftClick=originalEvent.button===0&&originalEvent.ctrlKey===true;var isRightClick=originalEvent.button===2||ctrlLeftClick;isRightClickOutsideRef.current=isRightClick;},{checkForDefaultPrevented:false}),onFocusOutside:composeEventHandlers(props.onFocusOutside,function(event){return event.preventDefault();},{checkForDefaultPrevented:false})}))});});var PopoverContentNonModal=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var context=usePopoverContext(CONTENT_NAME,props.__scopePopover);var hasInteractedOutsideRef=React.useRef(false);var hasPointerDownOutsideRef=React.useRef(false);return/* @__PURE__ */jsx$1(PopoverContentImpl,__spreadProps(__spreadValues({},props),{ref:forwardedRef,trapFocus:false,disableOutsidePointerEvents:false,onCloseAutoFocus:function onCloseAutoFocus(event){var _a,_b;(_a=props.onCloseAutoFocus)==null?void 0:_a.call(props,event);if(!event.defaultPrevented){if(!hasInteractedOutsideRef.current)(_b=context.triggerRef.current)==null?void 0:_b.focus();event.preventDefault();}hasInteractedOutsideRef.current=false;hasPointerDownOutsideRef.current=false;},onInteractOutside:function onInteractOutside(event){var _a,_b;(_a=props.onInteractOutside)==null?void 0:_a.call(props,event);if(!event.defaultPrevented){hasInteractedOutsideRef.current=true;if(event.detail.originalEvent.type==="pointerdown"){hasPointerDownOutsideRef.current=true;}}var target=event.target;var targetIsTrigger=(_b=context.triggerRef.current)==null?void 0:_b.contains(target);if(targetIsTrigger)event.preventDefault();if(event.detail.originalEvent.type==="focusin"&&hasPointerDownOutsideRef.current){event.preventDefault();}}}));});var PopoverContentImpl=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var _a=props,__scopePopover=_a.__scopePopover,trapFocus=_a.trapFocus,onOpenAutoFocus=_a.onOpenAutoFocus,onCloseAutoFocus=_a.onCloseAutoFocus,disableOutsidePointerEvents=_a.disableOutsidePointerEvents,onEscapeKeyDown=_a.onEscapeKeyDown,onPointerDownOutside=_a.onPointerDownOutside,onFocusOutside=_a.onFocusOutside,onInteractOutside=_a.onInteractOutside,contentProps=__objRest(_a,["__scopePopover","trapFocus","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside"]);var context=usePopoverContext(CONTENT_NAME,__scopePopover);var popperScope=usePopperScope(__scopePopover);useFocusGuards();return/* @__PURE__ */jsx$1(FocusScope,{asChild:true,loop:true,trapped:trapFocus,onMountAutoFocus:onOpenAutoFocus,onUnmountAutoFocus:onCloseAutoFocus,children:/* @__PURE__ */jsx$1(DismissableLayer,{asChild:true,disableOutsidePointerEvents:disableOutsidePointerEvents,onInteractOutside:onInteractOutside,onEscapeKeyDown:onEscapeKeyDown,onPointerDownOutside:onPointerDownOutside,onFocusOutside:onFocusOutside,onDismiss:function onDismiss(){return context.onOpenChange(false);},children:/* @__PURE__ */jsx$1(Content,__spreadProps(__spreadValues(__spreadValues({"data-state":getState(context.open),role:"dialog",id:context.contentId},popperScope),contentProps),{ref:forwardedRef,style:__spreadValues(__spreadValues({},contentProps.style),{"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"})}))})});});var CLOSE_NAME="PopoverClose";var PopoverClose=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var _a=props,__scopePopover=_a.__scopePopover,closeProps=__objRest(_a,["__scopePopover"]);var context=usePopoverContext(CLOSE_NAME,__scopePopover);return/* @__PURE__ */jsx$1(Primitive.button,__spreadProps(__spreadValues({type:"button"},closeProps),{ref:forwardedRef,onClick:composeEventHandlers(props.onClick,function(){return context.onOpenChange(false);})}));});PopoverClose.displayName=CLOSE_NAME;var ARROW_NAME="PopoverArrow";var PopoverArrow=/*#__PURE__*/React.forwardRef(function(props,forwardedRef){var _a=props,__scopePopover=_a.__scopePopover,arrowProps=__objRest(_a,["__scopePopover"]);var popperScope=usePopperScope(__scopePopover);return/* @__PURE__ */jsx$1(Arrow,__spreadProps(__spreadValues(__spreadValues({},popperScope),arrowProps),{ref:forwardedRef}));});PopoverArrow.displayName=ARROW_NAME;function getState(open){return open?"open":"closed";}var Root2=Popover2;var Trigger=PopoverTrigger;var Portal2=PopoverPortal;var Content2=PopoverContent;var formatDistanceLocale={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}};var formatDistance=function formatDistance(token2,count2,options){var result;var tokenValue=formatDistanceLocale[token2];if(typeof tokenValue==="string"){result=tokenValue;}else if(count2===1){result=tokenValue.one;}else{result=tokenValue.other.replace("{{count}}",count2.toString());}if(options==null?void 0:options.addSuffix){if(options.comparison&&options.comparison>0){return"en "+result;}else{return"hace "+result;}}return result;};var dateFormats={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"};var timeFormats={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"};var dateTimeFormats={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};var formatLong={date:buildFormatLongFn({formats:dateFormats,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats,defaultWidth:"full"})};var formatRelativeLocale={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"};var formatRelativeLocalePlural={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"};var formatRelative=function formatRelative(token2,date,_baseDate,_options){if(date.getHours()!==1){return formatRelativeLocalePlural[token2];}else{return formatRelativeLocale[token2];}};var eraValues={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]};var quarterValues={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]};var monthValues={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]};var dayValues={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]};var dayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}};var formattingDayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}};var ordinalNumber=function ordinalNumber(dirtyNumber,_options){var number=Number(dirtyNumber);return number+"º";};var localize={ordinalNumber:ordinalNumber,era:buildLocalizeFn({values:eraValues,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues,defaultWidth:"wide",argumentCallback:function argumentCallback(quarter){return Number(quarter)-1;}}),month:buildLocalizeFn({values:monthValues,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues,defaultWidth:"wide",formattingValues:formattingDayPeriodValues,defaultFormattingWidth:"wide"})};var matchOrdinalNumberPattern=/^(\d+)(º)?/i;var parseOrdinalNumberPattern=/\d+/i;var matchEraPatterns={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i};var parseEraPatterns={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]};var matchQuarterPatterns={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i};var parseQuarterPatterns={any:[/1/i,/2/i,/3/i,/4/i]};var matchMonthPatterns={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i};var parseMonthPatterns={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]};var matchDayPatterns={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i};var parseDayPatterns={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]};var matchDayPeriodPatterns={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i};var parseDayPeriodPatterns={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}};var match$1={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern,parsePattern:parseOrdinalNumberPattern,valueCallback:function valueCallback(value){return parseInt(value,10);}}),era:buildMatchFn({matchPatterns:matchEraPatterns,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns,defaultParseWidth:"any",valueCallback:function valueCallback(index2){return index2+1;}}),month:buildMatchFn({matchPatterns:matchMonthPatterns,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns,defaultParseWidth:"any"})};var es={code:"es",formatDistance:formatDistance,formatLong:formatLong,formatRelative:formatRelative,localize:localize,match:match$1,options:{weekStartsOn:1,firstWeekContainsDate:1}};var lg$5="dateRangePicker-module_lg_Z5cAW";var md$4="dateRangePicker-module_md_U7O4u";var sm$6="dateRangePicker-module_sm_eQU4f";var disabled$4="dateRangePicker-module_disabled_O2wo6";var focused="dateRangePicker-module_focused_ZciL9";var popoverEnter="dateRangePicker-module_popoverEnter_LA-QD";var popoverExit="dateRangePicker-module_popoverExit_7P00p";var nav="dateRangePicker-module_nav_wpLSQ";var months="dateRangePicker-module_months_KJVIG";var month="dateRangePicker-module_month_5xEDo";var weekdays="dateRangePicker-module_weekdays_Ifsr6";var weekday="dateRangePicker-module_weekday_2PP3h";var week="dateRangePicker-module_week_t5X3S";var day="dateRangePicker-module_day_wqJov";var selected="dateRangePicker-module_selected_RUsR-";var styles$i={"date-range-picker":"dateRangePicker-module_date-range-picker_PFF9Q",lg:lg$5,"input-wrapper":"dateRangePicker-module_input-wrapper_hyxTt",md:md$4,sm:sm$6,disabled:disabled$4,focused:focused,"popover-content":"dateRangePicker-module_popover-content_RKQTm",popoverEnter:popoverEnter,popoverExit:popoverExit,nav:nav,months:months,month:month,"month-caption":"dateRangePicker-module_month-caption_SaiMe",weekdays:weekdays,weekday:weekday,week:week,day:day,selected:selected,"range-middle":"dateRangePicker-module_range-middle_xm-3W","range-start":"dateRangePicker-module_range-start_52uOV","range-end":"dateRangePicker-module_range-end_VR3Y-","rdp-slide_in_left":"dateRangePicker-module_rdp-slide_in_left_yJv6o","rdp-slide_in_right":"dateRangePicker-module_rdp-slide_in_right_DtL-m","rdp-slide_out_left":"dateRangePicker-module_rdp-slide_out_left_pmbO5","rdp-slide_out_right":"dateRangePicker-module_rdp-slide_out_right_MDJeD","rdp-fade_in":"dateRangePicker-module_rdp-fade_in_TxHKu","rdp-fade_out":"dateRangePicker-module_rdp-fade_out_-8FsW"};function head(array){return array&&array.length?array[0]:void 0;}var head_1=head;var head$1=/* @__PURE__ */getDefaultExportFromCjs(head_1);var formatDate=function formatDate2(date,format2){var _pad=function _pad2(n){return _.padStart(String(n),2,"0");};var map2={YYYY:String(date.getFullYear()),MM:_pad(date.getMonth()+1),DD:_pad(date.getDate()),HH:_pad(date.getHours()),mm:_pad(date.getMinutes()),ss:_pad(date.getSeconds())};return _.reduce(map2,function(acc,value,token2){return _.replace(acc,token2,value);},format2);};var formatRangeLimits=function formatRangeLimits2(range){if(!range)return void 0;var from2=new Date(range.from);from2.setHours(0,0,0);var to=new Date(range.to);to.setHours(23,59,59);return{from:from2,to:to};};dayjs.extend(customParseFormat);var fromInputValue=function fromInputValue2(inputValue){if(!inputValue)return void 0;if(_typeof$1(inputValue)==="object"&&"from"in inputValue&&"to"in inputValue){var rangeValue=inputValue;return{from:convertToDate2(rangeValue.from),to:convertToDate2(rangeValue.to)};}if(typeof inputValue==="string"&&inputValue.includes(" - ")){var _inputValue$split=inputValue.split(" - "),_inputValue$split2=_slicedToArray$1(_inputValue$split,2),fromStr=_inputValue$split2[0],toStr=_inputValue$split2[1];return{from:convertToDate2(fromStr.trim()),to:convertToDate2(toStr.trim())};}return void 0;};var getDisplayRange=function getDisplayRange2(range){var format2=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"DD/MM/YYYY";if(!(range!==null&&range!==void 0&&range.from))return"";var fromFormatted=formatDate(range.from,format2);var toFormatted=range.to?formatDate(range.to,format2):"";if(range.from&&range.to){return"".concat(fromFormatted," - ").concat(toFormatted);}return fromFormatted;};var convertToDate2=function convertToDate3(val){if(!val)return void 0;if(val instanceof Date){return val;}if(typeof val==="string"){var parsed=dayjs(val);return parsed.isValid()?parsed.toDate():void 0;}if(typeof val==="number"){return dayjs(val).toDate();}return void 0;};var CustomWeekday=function CustomWeekday2(props){return/* @__PURE__ */jsx$1("th",_objectSpread2$1(_objectSpread2$1({},props),{},{children:head$1(props.children)}));};var getDisabledDays=function getDisabledDays2(disabled2,minDate,maxDate){if(disabled2)return true;var min2=convertToDate2(minDate);var max2=convertToDate2(maxDate);if(min2&&max2)return[{before:min2},{after:max2}];if(min2)return{before:min2};if(max2)return{after:max2};return void 0;};var _excluded$e=["meta","name","value","disabled","required","placeholder","size","noErrors","label","format","isValid","onChange","input","minDate","maxDate"],_excluded2$4=["label","rightAdornment","value"];var DateRangePickerInput=function DateRangePickerInput2(props){var _input$value;var meta=props.meta,name=props.name,_props$value=props.value,value=_props$value===void 0?null:_props$value,_props$disabled=props.disabled,disabled2=_props$disabled===void 0?false:_props$disabled;props.required;var placeholder=props.placeholder,_props$size=props.size,size2=_props$size===void 0?"md":_props$size,_props$noErrors=props.noErrors,noErrors=_props$noErrors===void 0?false:_props$noErrors;props.label;var _props$format=props.format,format2=_props$format===void 0?"DD/MM/YYYY":_props$format,isValid2=props.isValid,onChange2=props.onChange,input=props.input,minDate=props.minDate,maxDate=props.maxDate,otherProps=_objectWithoutProperties$1(props,_excluded$e);var currentValue=(_input$value=input===null||input===void 0?void 0:input.value)!==null&&_input$value!==void 0?_input$value:value;var validationProps={meta:meta,value:currentValue,isValid:isValid2,required:props.required};var validated=formValidation(validationProps);var _useReduxFormField=useReduxFormField({input:input,onChange:onChange2?function(range){var syntheticEvent={target:{value:formatRangeLimits(range),name:name}};onChange2(syntheticEvent);}:void 0}),fieldHandleChange=_useReduxFormField.handleChange,handleBlur=_useReduxFormField.handleBlur;var handleSelect=function handleSelect2(range){fieldHandleChange(range);if(range!==null&&range!==void 0&&range.from&&range!==null&&range!==void 0&&range.to&&(range===null||range===void 0?void 0:range.from)!==(range===null||range===void 0?void 0:range.to)){setIsOpen(false);}};var handleClear=function handleClear2(){fieldHandleChange(void 0);};var selectedRange=fromInputValue(currentValue);var displayValue=getDisplayRange(selectedRange,format2);var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),isOpen=_useState2[0],setIsOpen=_useState2[1];var getInitialMonth2=function getInitialMonth3(){return(selectedRange===null||selectedRange===void 0?void 0:selectedRange.from)||(selectedRange===null||selectedRange===void 0?void 0:selectedRange.to)||/* @__PURE__ */new Date();};return/* @__PURE__ */jsxs("div",{className:clsx(styles$i["date-range-picker"],styles$i[size2],validated?errorStyles[validated]:"",disabled2?styles$i["disabled"]:"",isOpen?styles$i["focused"]:""),children:[/* @__PURE__ */jsxs(Root2,{open:isOpen&&!disabled2,onOpenChange:setIsOpen,children:[/* @__PURE__ */jsx$1(Trigger,{asChild:true,children:/* @__PURE__ */jsxs("div",{className:styles$i["input-wrapper"],children:[/* @__PURE__ */jsx$1("input",_objectSpread2$1({type:"text",name:name,value:displayValue,placeholder:placeholder||format2,readOnly:true,onBlur:handleBlur},otherProps)),/* @__PURE__ */jsx$1(ActionComponent,{onOpen:function onOpen(){return setIsOpen(!isOpen);},showClearIcon:!!displayValue,onClear:handleClear})]})}),/* @__PURE__ */jsx$1(Portal2,{children:/* @__PURE__ */jsx$1(Content2,{className:styles$i["popover-content"],sideOffset:4,align:"start",side:"bottom",avoidCollisions:true,collisionPadding:8,children:/* @__PURE__ */jsx$1(DayPicker,{mode:"range",locale:es,selected:selectedRange,onSelect:handleSelect,numberOfMonths:2,defaultMonth:getInitialMonth2(),disabled:getDisabledDays(disabled2,minDate,maxDate),className:styles$i["day-picker"],animate:true,classNames:{months:styles$i["months"],month:styles$i["month"],month_caption:styles$i["month-caption"],nav:styles$i["nav"],weekdays:styles$i["weekdays"],weekday:styles$i["weekday"],week:styles$i["week"],day:styles$i["day"],selected:styles$i["selected"],range_start:styles$i["range-start"],range_middle:styles$i["range-middle"],range_end:styles$i["range-end"],disabled:styles$i["disabled"]},components:{Weekday:CustomWeekday}})})})]}),!noErrors&&/* @__PURE__ */jsx$1(ErrorMessage,{validationProps:validationProps})]});};var DateRangePicker=function DateRangePicker2(_ref3){var label2=_ref3.label,rightAdornment=_ref3.rightAdornment,value=_ref3.value,props=_objectWithoutProperties$1(_ref3,_excluded2$4);return/* @__PURE__ */jsx$1(FormField,_objectSpread2$1({type:"dateRange",label:label2,rightAdornment:rightAdornment,value:value},props));};var _excluded$d=["label","rightAdornment","children"];var inputByType=function inputByType2(type){var inputs={password:PasswordInput,text:TextInput,number:TextInput,date:DatePickerInput,dateRange:DateRangePickerInput};return!!type?inputs[type]:TextInput;};var FormField=function FormField2(_ref3){var label2=_ref3.label,rightAdornment=_ref3.rightAdornment,children=_ref3.children,props=_objectWithoutProperties$1(_ref3,_excluded$d);var InputComponent=inputByType(props.type);return/* @__PURE__ */jsxs("div",{className:styles$k["form-field"],children:[label2&&/* @__PURE__ */jsx$1("label",{htmlFor:props.name,children:label2}),/* @__PURE__ */jsxs("div",{className:"".concat(styles$k["input-container"]),children:[/* @__PURE__ */jsx$1(InputComponent,_objectSpread2$1(_objectSpread2$1({},props),{},{children:children})),!!rightAdornment&&/* @__PURE__ */jsx$1("div",{className:"".concat(styles$k["right-modifier"]),children:rightAdornment})]})]});};var title$5="checkboxInput-module_title_cvp-g";var disabled$3="checkboxInput-module_disabled_3EFy5";var lg$4="checkboxInput-module_lg_VoVop";var md$3="checkboxInput-module_md_Nh-Gg";var sm$5="checkboxInput-module_sm_965vX";var styles$h={"checkbox-input-container":"checkboxInput-module_checkbox-input-container_prYRe",title:title$5,"checkbox-input-items":"checkboxInput-module_checkbox-input-items_AMkaS",disabled:disabled$3,lg:lg$4,md:md$3,sm:sm$5};var _excluded$c=["title","name","type","items","onChange","size","input"],_excluded2$3=["id","name","label","disabled","checked","value"];var CheckboxInputGroup=function CheckboxInputGroup2(_ref3){var title2=_ref3.title,name=_ref3.name,_ref$type=_ref3.type,type=_ref$type===void 0?"checkbox":_ref$type,items=_ref3.items,onChange2=_ref3.onChange,_ref$size=_ref3.size,size2=_ref$size===void 0?"lg":_ref$size,input=_ref3.input,props=_objectWithoutProperties$1(_ref3,_excluded$c);var _useReduxFormField=useReduxFormField({input:input,onChange:onChange2,transformValue:function transformValue(event){var _event$target=event.target,checked=_event$target.checked,inputName=_event$target.name;if(input){var newValue=_objectSpread2$1({},input.value);newValue[inputName]=checked;return newValue;}return event;}}),handleChange=_useReduxFormField.handleChange,handleBlur=_useReduxFormField.handleBlur;return/* @__PURE__ */jsxs("div",{className:styles$h["checkbox-input-container"],children:[title2&&/* @__PURE__ */jsxs("label",{className:styles$h["title"],children:[" ",title2," "]}),/* @__PURE__ */jsx$1("div",{className:"".concat(styles$h["checkbox-input-items"]," ").concat(styles$h[size2]),children:_.map(items,function(_ref22){var id=_ref22.id,itemName=_ref22.name,label2=_ref22.label,disabled2=_ref22.disabled,checked=_ref22.checked;_ref22.value;var itemProps=_objectWithoutProperties$1(_ref22,_excluded2$3);var inputId=id||itemName||name;return/* @__PURE__ */jsxs("label",{htmlFor:inputId,className:"".concat(disabled2?styles$h["disabled"]:""),children:[/* @__PURE__ */jsx$1("input",_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},props),itemProps),{},{id:inputId,type:type,name:itemName||name,checked:input&&itemName?_.get(input.value,itemName):checked,disabled:disabled2,onChange:handleChange,onBlur:handleBlur})),/* @__PURE__ */jsxs("span",{children:[" ",label2," "]})]},inputId);})})]});};var _excluded$b=["name","checked","onChange","label","title","disabled","size","input","type"];var CheckboxInput=function CheckboxInput2(_ref3){var name=_ref3.name,checked=_ref3.checked,onChange2=_ref3.onChange,label2=_ref3.label,title2=_ref3.title,_ref$disabled=_ref3.disabled,disabled2=_ref$disabled===void 0?false:_ref$disabled,_ref$size=_ref3.size,size2=_ref$size===void 0?"lg":_ref$size,input=_ref3.input,_ref$type=_ref3.type,type=_ref$type===void 0?"checkbox":_ref$type,props=_objectWithoutProperties$1(_ref3,_excluded$b);var item2={id:"".concat(name,"-single"),label:label2,checked:checked,disabled:disabled2};return/* @__PURE__ */jsx$1(CheckboxInputGroup,_objectSpread2$1(_objectSpread2$1({},props),{},{name:name,items:[item2],onChange:onChange2,title:title2,type:type,size:size2,input:input}));};var _excluded$a=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function useAsync(_ref3){var _ref$defaultOptions=_ref3.defaultOptions,propsDefaultOptions=_ref$defaultOptions===void 0?false:_ref$defaultOptions,_ref$cacheOptions=_ref3.cacheOptions,cacheOptions=_ref$cacheOptions===void 0?false:_ref$cacheOptions,propsLoadOptions=_ref3.loadOptions;_ref3.options;var _ref$isLoading=_ref3.isLoading,propsIsLoading=_ref$isLoading===void 0?false:_ref$isLoading,propsOnInputChange=_ref3.onInputChange,_ref$filterOption=_ref3.filterOption,filterOption=_ref$filterOption===void 0?null:_ref$filterOption,restSelectProps=_objectWithoutProperties(_ref3,_excluded$a);var propsInputValue=restSelectProps.inputValue;var lastRequest=useRef(void 0);var mounted=useRef(false);var _useState=useState(Array.isArray(propsDefaultOptions)?propsDefaultOptions:void 0),_useState2=_slicedToArray(_useState,2),defaultOptions2=_useState2[0],setDefaultOptions=_useState2[1];var _useState3=useState(typeof propsInputValue!=="undefined"?propsInputValue:""),_useState4=_slicedToArray(_useState3,2),stateInputValue=_useState4[0],setStateInputValue=_useState4[1];var _useState5=useState(propsDefaultOptions===true),_useState6=_slicedToArray(_useState5,2),isLoading=_useState6[0],setIsLoading=_useState6[1];var _useState7=useState(void 0),_useState8=_slicedToArray(_useState7,2),loadedInputValue=_useState8[0],setLoadedInputValue=_useState8[1];var _useState9=useState([]),_useState10=_slicedToArray(_useState9,2),loadedOptions=_useState10[0],setLoadedOptions=_useState10[1];var _useState11=useState(false),_useState12=_slicedToArray(_useState11,2),passEmptyOptions=_useState12[0],setPassEmptyOptions=_useState12[1];var _useState13=useState({}),_useState14=_slicedToArray(_useState13,2),optionsCache=_useState14[0],setOptionsCache=_useState14[1];var _useState15=useState(void 0),_useState16=_slicedToArray(_useState15,2),prevDefaultOptions=_useState16[0],setPrevDefaultOptions=_useState16[1];var _useState17=useState(void 0),_useState18=_slicedToArray(_useState17,2),prevCacheOptions=_useState18[0],setPrevCacheOptions=_useState18[1];if(cacheOptions!==prevCacheOptions){setOptionsCache({});setPrevCacheOptions(cacheOptions);}if(propsDefaultOptions!==prevDefaultOptions){setDefaultOptions(Array.isArray(propsDefaultOptions)?propsDefaultOptions:void 0);setPrevDefaultOptions(propsDefaultOptions);}useEffect(function(){mounted.current=true;return function(){mounted.current=false;};},[]);var loadOptions=useCallback(function(inputValue,callback){if(!propsLoadOptions)return callback();var loader2=propsLoadOptions(inputValue,callback);if(loader2&&typeof loader2.then==="function"){loader2.then(callback,function(){return callback();});}},[propsLoadOptions]);useEffect(function(){if(propsDefaultOptions===true){loadOptions(stateInputValue,function(options2){if(!mounted.current)return;setDefaultOptions(options2||[]);setIsLoading(!!lastRequest.current);});}},[]);var onInputChange2=useCallback(function(newValue,actionMeta){var inputValue=handleInputChange(newValue,actionMeta,propsOnInputChange);if(!inputValue){lastRequest.current=void 0;setStateInputValue("");setLoadedInputValue("");setLoadedOptions([]);setIsLoading(false);setPassEmptyOptions(false);return;}if(cacheOptions&&optionsCache[inputValue]){setStateInputValue(inputValue);setLoadedInputValue(inputValue);setLoadedOptions(optionsCache[inputValue]);setIsLoading(false);setPassEmptyOptions(false);}else{var request=lastRequest.current={};setStateInputValue(inputValue);setIsLoading(true);setPassEmptyOptions(!loadedInputValue);loadOptions(inputValue,function(options2){if(!mounted)return;if(request!==lastRequest.current)return;lastRequest.current=void 0;setIsLoading(false);setLoadedInputValue(inputValue);setLoadedOptions(options2||[]);setPassEmptyOptions(false);setOptionsCache(options2?_objectSpread2(_objectSpread2({},optionsCache),{},_defineProperty({},inputValue,options2)):optionsCache);});}},[cacheOptions,loadOptions,loadedInputValue,optionsCache,propsOnInputChange]);var options=passEmptyOptions?[]:stateInputValue&&loadedInputValue?loadedOptions:defaultOptions2||[];return _objectSpread2(_objectSpread2({},restSelectProps),{},{options:options,isLoading:isLoading||propsIsLoading,onInputChange:onInputChange2,filterOption:filterOption});}var AsyncSelect=/* @__PURE__ */forwardRef(function(props,ref){var stateManagedProps=useAsync(props);var selectProps=useStateManager(stateManagedProps);return/* @__PURE__ */React.createElement(Select$1,_extends$1({ref:ref},selectProps));});var AsyncSelect$1=AsyncSelect;var loader="spinner-module_loader_UIupC";var styles$g={loader:loader};var Spinner=function Spinner2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?"lg":_ref$size;return/* @__PURE__ */jsx$1(CircularProgress,{size:_size(size2),className:styles$g.loader});};var _size=function _size2(size2){return{sm:18,lg:60}[size2];};var _excluded$9=["name","label","placeholder","noOptionsMessage","options","size","isSearchable","isClearable","clearOnSelect","required","disabled","rightModifier","isOptionDisabled","onChange","onInputChange","input","isLoading","formatOption","loadOptions","cacheOptions","defaultOptions"];var Searcher=function Searcher2(props){var name=props.name,label2=props.label,_props$placeholder=props.placeholder,placeholder=_props$placeholder===void 0?locale("selectPlaceholder"):_props$placeholder,_props$noOptionsMessa=props.noOptionsMessage,_noOptionsMessage=_props$noOptionsMessa===void 0?locale("noFoundOptions"):_props$noOptionsMessa,options=props.options,_props$size=props.size,size2=_props$size===void 0?"md":_props$size,_props$isSearchable=props.isSearchable,isSearchable=_props$isSearchable===void 0?true:_props$isSearchable,_props$isClearable=props.isClearable,isClearable=_props$isClearable===void 0?true:_props$isClearable,_props$clearOnSelect=props.clearOnSelect,clearOnSelect=_props$clearOnSelect===void 0?false:_props$clearOnSelect;props.required;var disabled2=props.disabled,rightModifier=props.rightModifier,isOptionDisabled3=props.isOptionDisabled,onChange2=props.onChange,onInputChange2=props.onInputChange,input=props.input,_props$isLoading=props.isLoading,isLoading=_props$isLoading===void 0?false:_props$isLoading,formatOption=props.formatOption,loadOptions=props.loadOptions,_props$cacheOptions=props.cacheOptions,cacheOptions=_props$cacheOptions===void 0?true:_props$cacheOptions,_props$defaultOptions=props.defaultOptions,defaultOptions2=_props$defaultOptions===void 0?true:_props$defaultOptions,otherProps=_objectWithoutProperties$1(props,_excluded$9);var _useState=useState(null),_useState2=_slicedToArray$1(_useState,2),optionSelected=_useState2[0],setOptionSelected=_useState2[1];var _useState3=useState(false),_useState4=_slicedToArray$1(_useState3,2),isMenuOpen=_useState4[0],setIsMenuOpen=_useState4[1];var _useState5=useState(0),_useState6=_slicedToArray$1(_useState5,2),menuKey=_useState6[0],setMenuKey=_useState6[1];useEffect(function(){if(isMenuOpen&&options&&!_.isEmpty(options)){setMenuKey(function(prev2){return prev2+1;});}},[options,isMenuOpen]);var handleInputChange2=useCallback(function(value){var fakeEvent={target:{name:name,value:value}};onInputChange2===null||onInputChange2===void 0||onInputChange2(fakeEvent);setIsMenuOpen(true);},[name,onInputChange2]);var handleSelect=useCallback(function(selected2){var fakeEvent={target:{name:name,value:selected2===null||selected2===void 0?void 0:selected2.value}};setOptionSelected(selected2);if(input){input.onChange(selected2===null||selected2===void 0?void 0:selected2.value);}else{onChange2===null||onChange2===void 0||onChange2(fakeEvent);}if(clearOnSelect&&selected2){setOptionSelected(null);}setIsMenuOpen(false);},[name,input,onChange2,clearOnSelect]);var handleBlur=useCallback(function(){if(input){input.onBlur();}setIsMenuOpen(false);},[input]);var handleClear=useCallback(function(){setOptionSelected(null);if(input){input.onChange(null);}},[input]);var OptionWithFormat=useCallback(function(optionProps){return/* @__PURE__ */jsx$1(Option$1,_objectSpread2$1(_objectSpread2$1({},optionProps),{},{formatOption:formatOption}));},[formatOption]);var SingleValueWithFormat=useCallback(function(singleValueProps){return/* @__PURE__ */jsx$1(SingleValue2,_objectSpread2$1({},singleValueProps));},[]);var _renderSelectComponent=useCallback(function(){var commonProps=_objectSpread2$1(_objectSpread2$1({},otherProps),{},{key:menuKey,name:name,placeholder:placeholder,classNamePrefix:"producteca-select-field",isDisabled:disabled2,isClearable:isClearable,isOptionDisabled:isOptionDisabled3,isSearchable:isSearchable,isLoading:isLoading,loadingMessage:function loadingMessage2(){return isLoading?/* @__PURE__ */jsx$1(Spinner,{size:"sm"}):_noOptionsMessage;},noOptionsMessage:function noOptionsMessage2(){return isLoading?/* @__PURE__ */jsx$1(Spinner,{size:"sm"}):_noOptionsMessage;},onInputChange:handleInputChange2,onChange:handleSelect,onBlur:handleBlur,value:optionSelected,components:{Option:OptionWithFormat,SingleValue:SingleValueWithFormat},menuPortalTarget:document.body,menuIsOpen:isMenuOpen,onMenuOpen:function onMenuOpen(){return setIsMenuOpen(true);},onMenuClose:function onMenuClose(){return setIsMenuOpen(false);}});if(loadOptions){return/* @__PURE__ */jsx$1(AsyncSelect$1,_objectSpread2$1(_objectSpread2$1({},commonProps),{},{loadOptions:loadOptions,cacheOptions:cacheOptions,defaultOptions:defaultOptions2}));}return/* @__PURE__ */jsx$1(StateManagedSelect$1,_objectSpread2$1(_objectSpread2$1({},commonProps),{},{options:options}));},[otherProps,menuKey,name,placeholder,disabled2,isClearable,isOptionDisabled3,isSearchable,isLoading,_noOptionsMessage,handleInputChange2,handleSelect,handleBlur,optionSelected,OptionWithFormat,SingleValueWithFormat,isMenuOpen,loadOptions,cacheOptions,defaultOptions2,options]);return/* @__PURE__ */jsxs("div",{className:styles$l["producteca-select-field-container"],children:[label2&&/* @__PURE__ */jsx$1("label",{htmlFor:name,children:label2}),/* @__PURE__ */jsxs("div",{className:clsx(styles$l[size2],styles$l["producteca-select-field-body"],styles$l[isSearchable?"producteca-select-field--is-searchable":""],styles$l[isClearable?"producteca-select-field--is-clearable":""],styles$l[rightModifier?"producteca-select-field--with-modifier":""]),children:[/* @__PURE__ */jsxs("div",{className:styles$l["searcher-body"],children:[isSearchable&&/* @__PURE__ */jsx$1(SearchComponent,{}),_renderSelectComponent(),/* @__PURE__ */jsx$1(ClearComponent,{isClearable:isClearable,handleChange:handleClear})]}),!!rightModifier&&rightModifier]})]});};var title$4="switchInput-module_title_lBK2p";var disabled$2="switchInput-module_disabled_yz9dR";var lg$3="switchInput-module_lg_WMIDO";var md$2="switchInput-module_md_683sQ";var sm$4="switchInput-module_sm_sh92j";var styles$f={"switch-input-container":"switchInput-module_switch-input-container_t9Kpp",title:title$4,"switch-input-items":"switchInput-module_switch-input-items_P3RMy","switch-wrapper":"switchInput-module_switch-wrapper_cZvDV","switch-input":"switchInput-module_switch-input_e9PWi","switch-slider":"switchInput-module_switch-slider_ICfGn","switch-label":"switchInput-module_switch-label_Nj-Hh",disabled:disabled$2,lg:lg$3,md:md$2,sm:sm$4};var _excluded$8=["title","name","items","onChange","size","input"],_excluded2$2=["id","name","label","disabled","checked","value"],_excluded3=["name","checked","onChange","label","title","disabled","size","input"];var SwitchInputGroup=function SwitchInputGroup2(_ref3){var title2=_ref3.title,name=_ref3.name,items=_ref3.items,onChange2=_ref3.onChange,_ref$size=_ref3.size,size2=_ref$size===void 0?"md":_ref$size,input=_ref3.input,props=_objectWithoutProperties$1(_ref3,_excluded$8);var _useReduxFormField=useReduxFormField({input:input,onChange:onChange2,transformValue:function transformValue(event){var _event$target=event.target,checked=_event$target.checked,inputName=_event$target.name;if(input){var newValue=_objectSpread2$1({},input.value);newValue[inputName]=checked;return newValue;}return event;}}),handleChange=_useReduxFormField.handleChange,handleBlur=_useReduxFormField.handleBlur;return/* @__PURE__ */jsxs("div",{className:styles$f["switch-input-container"],"data-testid":"switch-input-container",children:[title2&&/* @__PURE__ */jsxs("label",{className:styles$f["title"],"data-testid":"switch-title",children:[" ",title2," "]}),/* @__PURE__ */jsx$1("div",{className:"".concat(styles$f["switch-input-items"]," ").concat(styles$f[size2]),"data-testid":"switch-input-items",children:_.map(items,function(_ref22){var id=_ref22.id,itemName=_ref22.name,label2=_ref22.label,disabled2=_ref22.disabled,checked=_ref22.checked;_ref22.value;var itemProps=_objectWithoutProperties$1(_ref22,_excluded2$2);var inputId=id||itemName||name;return/* @__PURE__ */jsxs("label",{htmlFor:inputId,className:"".concat(disabled2?styles$f["disabled"]:""),"data-testid":"switch-label-".concat(inputId),children:[/* @__PURE__ */jsxs("div",{className:styles$f["switch-wrapper"],children:[/* @__PURE__ */jsx$1("input",_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},props),itemProps),{},{id:inputId,type:"checkbox",name:itemName||name,checked:input&&itemName?_.get(input.value,itemName):checked,disabled:disabled2,onChange:handleChange,onBlur:handleBlur,className:styles$f["switch-input"],"data-testid":"switch-input-".concat(inputId)})),/* @__PURE__ */jsx$1("span",{className:styles$f["switch-slider"]})]}),/* @__PURE__ */jsxs("span",{className:styles$f["switch-label"],children:[" ",label2," "]})]},inputId);})})]});};var SwitchInput=function SwitchInput2(_ref3){var name=_ref3.name,checked=_ref3.checked,onChange2=_ref3.onChange,label2=_ref3.label,title2=_ref3.title,_ref3$disabled=_ref3.disabled,disabled2=_ref3$disabled===void 0?false:_ref3$disabled,_ref3$size=_ref3.size,size2=_ref3$size===void 0?"sm":_ref3$size,input=_ref3.input,props=_objectWithoutProperties$1(_ref3,_excluded3);var item2={id:"".concat(name,"-single"),label:label2,checked:checked,disabled:disabled2};return/* @__PURE__ */jsx$1(SwitchInputGroup,_objectSpread2$1(_objectSpread2$1({},props),{},{name:name,items:[item2],onChange:onChange2,title:title2,size:size2,input:input}));};var styles$e={"empty-state-container":"emptyState-module_empty-state-container_azCks","link-container":"emptyState-module_link-container_kXroF"};var DefaultIcon$1=/* @__PURE__ */jsx$1(SearchPublication,{});var EmptyState=function EmptyState2(_ref3){var onActionClick=_ref3.onActionClick,_ref$icon=_ref3.icon,icon2=_ref$icon===void 0?DefaultIcon$1:_ref$icon,_ref$actionText=_ref3.actionText,actionText=_ref$actionText===void 0?locale("reloadPage"):_ref$actionText,_ref$text=_ref3.text,text2=_ref$text===void 0?locale("noResultsFound"):_ref$text;return/* @__PURE__ */jsxs("div",{className:styles$e["empty-state-container"],children:[icon2,/* @__PURE__ */jsxs("div",{className:styles$e["link-container"],children:[/* @__PURE__ */jsx$1("span",{children:text2}),onActionClick&&/* @__PURE__ */jsx$1("a",{onClick:onActionClick,children:actionText})]})]});};var fullPage="actionBar-module_fullPage_A4wiw";var modal$1="actionBar-module_modal_jZfAJ";var page="actionBar-module_page_Oq8Jb";var styles$d={"action-bar":"actionBar-module_action-bar_Y-sjl",fullPage:fullPage,modal:modal$1,page:page};var _excluded$7=["onPrevious","label"],_excluded2$1=["onSave","label"];var ActionBar=function ActionBar2(_ref3){var _ref$variant=_ref3.variant,variant=_ref$variant===void 0?"page":_ref$variant,saveProps=_ref3.saveProps,cancelProps=_ref3.cancelProps,previousProps=_ref3.previousProps;var _ref22=cancelProps||{},onCancel=_ref22.onCancel,_ref2$label=_ref22.label,cancelText=_ref2$label===void 0?locale("cancel"):_ref2$label;var _ref32=previousProps||{},onPrevious=_ref32.onPrevious,_ref3$label=_ref32.label,previousText=_ref3$label===void 0?locale("previous"):_ref3$label,previousOtherProps=_objectWithoutProperties$1(_ref32,_excluded$7);var _ref4=saveProps||{},onSave=_ref4.onSave,_ref4$label=_ref4.label,saveText=_ref4$label===void 0?locale("save"):_ref4$label,saveOtherProps=_objectWithoutProperties$1(_ref4,_excluded2$1);return/* @__PURE__ */jsxs("div",{className:clsx(styles$d["action-bar"],styles$d[variant]),children:[!!onCancel&&/* @__PURE__ */jsx$1(Button$2,{size:"md",variant:"link",label:cancelText,onClick:onCancel}),!!onPrevious&&/* @__PURE__ */jsx$1(Button$2,_objectSpread2$1({outline:true,label:previousText,onClick:onPrevious},previousOtherProps)),!!onSave&&/* @__PURE__ */jsx$1(Button$2,_objectSpread2$1({label:saveText,onClick:onSave},saveOtherProps))]});};var _excluded$6=["onClick","copyText","copiedText","textToCopy","resetTime"];var CopyButton=function CopyButton2(_ref3){var _onClick=_ref3.onClick,_ref$copyText=_ref3.copyText,copyText=_ref$copyText===void 0?locale("copyButton.copy"):_ref$copyText,_ref$copiedText=_ref3.copiedText,copiedText=_ref$copiedText===void 0?locale("copyButton.copied"):_ref$copiedText,textToCopy=_ref3.textToCopy,_ref$resetTime=_ref3.resetTime,resetTime=_ref$resetTime===void 0?2e3:_ref$resetTime,props=_objectWithoutProperties$1(_ref3,_excluded$6);var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),copied=_useState2[0],setCopied=_useState2[1];var _useState3=useState(false),_useState4=_slicedToArray$1(_useState3,2),isAnimating=_useState4[0],setIsAnimating=_useState4[1];useEffect(function(){if(copied){setIsAnimating(true);var timer=setTimeout(function(){setIsAnimating(false);},resetTime/2);return function(){return clearTimeout(timer);};}},[copied]);var defaultCopyFunction=function defaultCopyFunction2(){if(textToCopy){setCopied(true);navigator.clipboard.writeText(textToCopy).then(function(){setTimeout(function(){return setCopied(false);},resetTime);}).catch(function(){setCopied(false);});}};return/* @__PURE__ */jsx$1("div",{onClick:function onClick(){return _onClick?_onClick():defaultCopyFunction();},children:/* @__PURE__ */jsx$1(Button$2,_objectSpread2$1({className:"copy-btn ".concat(copied?"copied":""," ").concat(isAnimating?"animating":""),outline:true,label:copied?copiedText:copyText,leftAdornment:/* @__PURE__ */jsx$1(Icons,{copied:copied})},props))});};var Icons=function Icons2(_ref22){var copied=_ref22.copied;return/* @__PURE__ */jsxs("div",{className:"copy-btn-icons",children:[/* @__PURE__ */jsx$1("div",{className:"copy-icon ".concat(copied?"hidden":""),children:/* @__PURE__ */jsx$1(ContentCopy,{})}),/* @__PURE__ */jsx$1("div",{className:"check-icon ".concat(!copied?"hidden":""),children:/* @__PURE__ */jsx$1(Check,{})})]});};var dense="headerSection-module_dense_f1FWn";var content$1="headerSection-module_content_5y2PB";var title$3="headerSection-module_title_cabYm";var styles$c={"header-section-container":"headerSection-module_header-section-container_M-ZSv",dense:dense,"header-section":"headerSection-module_header-section_UIh2F",content:content$1,title:title$3};var HeaderSection=function HeaderSection2(_ref3){var breadcrumb2=_ref3.breadcrumb,image2=_ref3.image,_ref$dense=_ref3.dense,dense2=_ref$dense===void 0?false:_ref$dense,title2=_ref3.title,subtitle=_ref3.subtitle,link2=_ref3.link,menuAction=_ref3.menuAction;return/* @__PURE__ */jsxs("div",{className:clsx(styles$c["header-section-container"],_defineProperty$1({},styles$c["dense"],dense2)),children:[!!breadcrumb2&&breadcrumb2,/* @__PURE__ */jsxs("div",{className:styles$c["header-section"],children:[!!image2&&image2,/* @__PURE__ */jsxs("div",{className:styles$c.content,children:[title2&&/* @__PURE__ */jsx$1("h3",{className:styles$c.title,children:title2}),!!subtitle&&subtitle,!!link2&&link2]}),!!menuAction&&menuAction]})]});};var action="linkWithIcon-module_action_3K4he";var styles$b={action:action};var SIZE_TO_ICON={sm:"8",md:"12",lg:"12"};var transformSize=function transformSize2(size2){return SIZE_TO_ICON[size2!==null&&size2!==void 0?size2:"md"];};var LinkWithIcon=function LinkWithIcon2(_ref3){var text2=_ref3.text,icon2=_ref3.icon,onClick=_ref3.onClick,className=_ref3.className,_ref$size=_ref3.size,size2=_ref$size===void 0?"md":_ref$size,_ref$otherProps=_ref3.otherProps,otherProps=_ref$otherProps===void 0?{}:_ref$otherProps;return/* @__PURE__ */jsxs("div",{className:clsx(styles$b.action,className),onClick:onClick,children:[icon2&&/* @__PURE__ */jsx$1(CustomIcon,_objectSpread2$1(_objectSpread2$1({color:getColor("primary","500")},otherProps),{},{size:transformSize(size2),children:icon2})),/* @__PURE__ */jsx$1(Button$2,_objectSpread2$1({variant:"link",label:text2,size:size2},otherProps))]});};var sm$3="iconWithIdentifier-module_sm_9KqJO";var md$1="iconWithIdentifier-module_md_BUC1r";var icon$1="iconWithIdentifier-module_icon_y8sd3";var divider="iconWithIdentifier-module_divider_fCBSV";var identifier$1="iconWithIdentifier-module_identifier_kWrOU";var styles$a={"icon-with-identifier":"iconWithIdentifier-module_icon-with-identifier_3-SZE",sm:sm$3,md:md$1,icon:icon$1,divider:divider,identifier:identifier$1};var IconWithIdentifier=function IconWithIdentifier2(_ref3){var text2=_ref3.text,icon2=_ref3.icon,color2=_ref3.color,_ref$size=_ref3.size,size2=_ref$size===void 0?"md":_ref$size,_ref$showDivider=_ref3.showDivider,showDivider=_ref$showDivider===void 0?true:_ref$showDivider;return/* @__PURE__ */jsxs("div",{className:clsx(styles$a["icon-with-identifier"],styles$a[size2]),children:[!!icon2&&icon2,showDivider&&/* @__PURE__ */jsx$1("div",{className:styles$a.divider}),!!text2&&/* @__PURE__ */jsx$1("span",{className:styles$a.identifier,style:{color:color2},children:text2})]});};var progressbar="progressbar-module_progressbar_8ygYR";var lg$2="progressbar-module_lg_5JGr-";var sm$2="progressbar-module_sm_LPtUo";var styles$9={progressbar:progressbar,lg:lg$2,sm:sm$2};var Progressbar=function Progressbar2(_ref3){var _ref$size=_ref3.size,size2=_ref$size===void 0?"lg":_ref$size,_ref$progress=_ref3.progress,initialProgress=_ref$progress===void 0?0:_ref$progress,_ref$variant=_ref3.variant,variant=_ref$variant===void 0?"determinate":_ref$variant;var _useState=useState(initialProgress),_useState2=_slicedToArray$1(_useState,2),progress=_useState2[0],setProgress=_useState2[1];useEffect(function(){if(variant==="buffer"){var timer=setInterval(function(){setProgress(function(oldProgress){var newProgress=Math.min(100,oldProgress+Math.sqrt(100-oldProgress)*0.5);return Math.round(newProgress);});},100);return function(){clearInterval(timer);};}else{setProgress(initialProgress);}},[variant,initialProgress]);return/* @__PURE__ */jsx$1(LinearProgress,{variant:variant=="buffer"?"determinate":variant,value:progress,className:clsx(styles$9["progressbar"],styles$9[size2]),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":progress});};var alert="alert-module_alert_j7ZRS";var icon="alert-module_icon_vbZHd";var message="alert-module_message_klR2U";var link="alert-module_link_IrBj3";var success="alert-module_success_AVBKS";var error$1="alert-module_error_cxg96";var warning="alert-module_warning_zkMaJ";var info="alert-module_info_PBo1l";var styles$8={alert:alert,"full-width":"alert-module_full-width_eKIHw",icon:icon,message:message,link:link,success:success,error:error$1,warning:warning,info:info};var _excluded$5=["message","variant","className","icon","fullWidth","link"];var Alert=function Alert2(_ref3){var message2=_ref3.message,_ref$variant=_ref3.variant,variant=_ref$variant===void 0?"success":_ref$variant,className=_ref3.className,icon2=_ref3.icon,_ref$fullWidth=_ref3.fullWidth,fullWidth=_ref$fullWidth===void 0?false:_ref$fullWidth,link2=_ref3.link,props=_objectWithoutProperties$1(_ref3,_excluded$5);var defaultIcons={success:/* @__PURE__ */jsx$1(CustomIcon,{size:"12",color:getColor("success","500"),children:/* @__PURE__ */jsx$1(CheckCircle,{})}),error:/* @__PURE__ */jsx$1(CustomIcon,{size:"12",color:getColor("error","700"),children:/* @__PURE__ */jsx$1(Cancel,{})}),warning:/* @__PURE__ */jsx$1(CustomIcon,{size:"12",color:getColor("secondary","500"),children:/* @__PURE__ */jsx$1(ErrorIcon,{})}),info:/* @__PURE__ */jsx$1(CustomIcon,{size:"12",color:getColor("primary","500"),children:/* @__PURE__ */jsx$1(Info,{})})};return/* @__PURE__ */jsxs("div",_objectSpread2$1(_objectSpread2$1({className:clsx(styles$8["alert"],styles$8[variant],_defineProperty$1({},styles$8["full-width"],fullWidth),className)},props),{},{children:[/* @__PURE__ */jsx$1("div",{className:styles$8["icon"],children:icon2||defaultIcons[variant]}),/* @__PURE__ */jsxs("div",{className:styles$8["message"],children:[_.isString(message2)?/* @__PURE__ */jsx$1("span",{dangerouslySetInnerHTML:{__html:message2}}):/* @__PURE__ */jsxs("span",{children:[" ",message2]}),link2&&/* @__PURE__ */jsxs(Fragment$1,{children:[" ",/* @__PURE__ */jsx$1("a",{href:link2===null||link2===void 0?void 0:link2.href,className:styles$8["link"],onClick:link2===null||link2===void 0?void 0:link2.onClick,children:link2.text})]})]})]}));};var OverflowChecker=function OverflowChecker2(_ref3){var children=_ref3.children;var ref=useRef(null);var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),showTooltip=_useState2[0],setShowTooltip=_useState2[1];useEffect(function(){var checkOverflow=function checkOverflow2(){if(ref.current){setShowTooltip(ref.current.scrollWidth>ref.current.offsetWidth);}};checkOverflow();window.addEventListener("resize",checkOverflow);return function(){return window.removeEventListener("resize",checkOverflow);};},[children]);return/* @__PURE__ */jsx$1(Fragment$1,{children:children(ref,showTooltip)});};var _excluded$4=["children","content","placement","arrow","maxWidth","trigger","shouldShowTooltip"],_excluded2=["content","children"];var WithTooltip=function WithTooltip2(_ref3){var children=_ref3.children,content2=_ref3.content,_ref$placement=_ref3.placement,placement=_ref$placement===void 0?"top":_ref$placement,_ref$arrow=_ref3.arrow,arrow2=_ref$arrow===void 0?false:_ref$arrow,_ref$maxWidth=_ref3.maxWidth,maxWidth2=_ref$maxWidth===void 0?"600px":_ref$maxWidth,_ref$trigger=_ref3.trigger,trigger=_ref$trigger===void 0?"hover":_ref$trigger,_ref$shouldShowToolti=_ref3.shouldShowTooltip,shouldShowTooltip=_ref$shouldShowToolti===void 0?true:_ref$shouldShowToolti,otherProps=_objectWithoutProperties$1(_ref3,_excluded$4);var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),open=_useState2[0],setOpen=_useState2[1];var enhancedChildren=/* @__PURE__ */React__default.cloneElement(children,_objectSpread2$1({style:_objectSpread2$1(_objectSpread2$1({},children.props.style||{}),{},{cursor:"pointer"})},trigger==="click"&&shouldShowTooltip&&{onClick:function onClick(e){if(children.props.onClick){children.props.onClick(e);}setOpen(!open);}}));var tooltipProps=trigger==="click"?{open:shouldShowTooltip?open:false,onClose:function onClose(){return setOpen(false);},disableHoverListener:true,disableFocusListener:true,disableTouchListener:true}:{};var disabledListeners=!shouldShowTooltip?{disableHoverListener:true,disableFocusListener:true,disableTouchListener:true}:{};return/* @__PURE__ */jsx$1(Tooltip,_objectSpread2$1(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({title:shouldShowTooltip?content2:"",placement:placement,arrow:arrow2,slots:{transition:Zoom},slotProps:{popper:{sx:_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1({},"&.".concat(tooltipClasses.popper," .").concat(tooltipClasses.tooltip),{fontFamily:"Poppins, Open Sans, Helvetica, Arial, sans-serif",background:"rgba(102, 102, 102, 1)",padding:"9px 9px 8px 12px",fontSize:"12px",fontWeight:"400",color:"white !important",borderRadius:"4px",maxWidth:maxWidth2}),"&.".concat(tooltipClasses.popper," .").concat(tooltipClasses.arrow),{color:"rgba(102, 102, 102, 1)"}),"&.".concat(tooltipClasses.popper,'[data-popper-placement*="top"] .').concat(tooltipClasses.tooltip),{marginBottom:"8px"}),"&.".concat(tooltipClasses.popper,'[data-popper-placement*="bottom"] .').concat(tooltipClasses.tooltip),{marginTop:"8px"}),"&.".concat(tooltipClasses.popper,'[data-popper-placement*="left"] .').concat(tooltipClasses.tooltip),{marginRight:"8px"}),"&.".concat(tooltipClasses.popper,'[data-popper-placement*="right"] .').concat(tooltipClasses.tooltip),{marginLeft:"8px"})}}},tooltipProps),disabledListeners),otherProps),{},{children:enhancedChildren}));};var WithOverflowTooltip=function WithOverflowTooltip2(_ref22){var content2=_ref22.content,_children=_ref22.children,tooltipProps=_objectWithoutProperties$1(_ref22,_excluded2);return/* @__PURE__ */jsx$1(OverflowChecker,{children:function children(ref,showTooltip){var childrenWithRef=/* @__PURE__ */React__default.cloneElement(_children,{ref:ref});return showTooltip&&content2?/* @__PURE__ */jsx$1(WithTooltip,_objectSpread2$1(_objectSpread2$1({content:content2},tooltipProps),{},{children:childrenWithRef})):childrenWithRef;}});};var image="image-module_image_y02P7";var error="image-module_error_QtQOy";var styles$7={"image-container":"image-module_image-container_ZhlhW","show-border":"image-module_show-border_LV5sz",image:image,error:error};var Image=function Image2(_ref3){var sx=_ref3.sx,src=_ref3.src,alt=_ref3.alt,imageSx=_ref3.imageSx,errorIcon=_ref3.errorIcon,_ref$showBorder=_ref3.showBorder,showBorder=_ref$showBorder===void 0?true:_ref$showBorder;var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),hasError3=_useState2[0],setHasError=_useState2[1];var handleImageError=function handleImageError2(){setHasError(true);};return/* @__PURE__ */jsx$1("div",{className:clsx(styles$7["image-container"],_defineProperty$1({},styles$7["show-border"],showBorder)),style:_objectSpread2$1({},sx),children:hasError3?!!errorIcon?errorIcon:/* @__PURE__ */jsx$1(InsertPhotoRoundedIcon,{className:styles$7.error}):/* @__PURE__ */jsx$1("img",{src:src,alt:alt||src,className:styles$7.image,style:_objectSpread2$1({},imageSx),onError:handleImageError})});};var breadcrumb="breadcrumb-module_breadcrumb_r-ILp";var styles$6={breadcrumb:breadcrumb,"breadcrumb-item":"breadcrumb-module_breadcrumb-item_suTUF"};var _excluded$3=["items","className"];var BreadcrumbItemComponent=function BreadcrumbItemComponent2(_ref3){var item2=_ref3.item,index2=_ref3.index,items=_ref3.items;var isLast=index2===lodashExports.size(items)-1;var text2="".concat(item2.text," >");return item2.isActive||isLast?/* @__PURE__ */jsx$1(Button$2,{variant:"link",size:"sm",label:text2,onClick:item2.onClick}):/* @__PURE__ */jsxs("div",{className:styles$6["breadcrumb-item"],children:[" ",text2," "]});};var Breadcrumb=function Breadcrumb2(_ref22){var items=_ref22.items,className=_ref22.className,otherProps=_objectWithoutProperties$1(_ref22,_excluded$3);return/* @__PURE__ */jsx$1("nav",_objectSpread2$1(_objectSpread2$1({className:clsx(styles$6["breadcrumb"],className),"aria-label":"Breadcrumb"},otherProps),{},{children:lodashExports.map(items,function(item2,index2){return/* @__PURE__ */jsx$1(BreadcrumbItemComponent,{item:item2,index:index2,items:items},index2);})}));};var menuPaperSx=function menuPaperSx2(size2,maxItemsVisible){return{"& .MuiPopover-paper":{boxShadow:"0px 5px 5px -3px rgb(205 205 205 / 20%), 0px 8px 14px 1px rgb(165 165 165 / 14%), 0px 3px 14px 2px rgb(219 219 219 / 6%)",border:"1px solid #D7D7D7",maxHeight:"".concat(maxHeight(size2,maxItemsVisible),"px")}};};var getMenuActionSize=function getMenuActionSize2(size2){switch(size2){case"sm":return 32;case"md":return 37;case"lg":return 42;default:return 37;}};var maxHeight=function maxHeight2(size2,maxItemsVisible){return getMenuActionSize(size2)*(maxItemsVisible!==null&&maxItemsVisible!==void 0?maxItemsVisible:6);};var item="menuItem-module_item_IbBuJ";var lg$1="menuItem-module_lg_ZMwXU";var md="menuItem-module_md_apOGd";var sm$1="menuItem-module_sm_gHxtB";var styles$5={item:item,lg:lg$1,md:md,sm:sm$1};var menuItemSx={fontFamily:"Poppins, Open Sans, Helvetica, Arial, sans-serif",fontSize:"14px",color:getColor("grey","900"),"&.Mui-selected":{backgroundColor:getColor("grey","100")},"&.Mui-selected:hover":{backgroundColor:getColor("grey","100")},"&.Mui-disabled":{opacity:0.5},padding:"0 16px"};var _excluded$2=["label","icon","onClick","selected","disabled","onClose","size"];var MenuItemComponent=function MenuItemComponent2(_ref3){var label2=_ref3.label,icon2=_ref3.icon,onClick=_ref3.onClick,selected2=_ref3.selected,disabled2=_ref3.disabled,onClose=_ref3.onClose,_ref$size=_ref3.size,size2=_ref$size===void 0?"md":_ref$size,otherProps=_objectWithoutProperties$1(_ref3,_excluded$2);var handleClick=function handleClick2(){onClose===null||onClose===void 0||onClose();onClick===null||onClick===void 0||onClick();};return/* @__PURE__ */jsx$1(MenuItem$1,_objectSpread2$1(_objectSpread2$1({sx:menuItemSx,selected:selected2,disabled:disabled2,onClick:handleClick},otherProps),{},{children:/* @__PURE__ */jsxs("div",{className:clsx(styles$5.item,styles$5[size2]),children:[!!icon2&&icon2,/* @__PURE__ */jsx$1("span",{children:label2})]})}));};var _excluded$1=["items","id","maxItemsVisible","icon","size","disableRipple"];var MenuAction=function MenuAction2(_ref3){var items=_ref3.items,_ref$id=_ref3.id,id=_ref$id===void 0?"menu-action-button":_ref$id,_ref$maxItemsVisible=_ref3.maxItemsVisible,maxItemsVisible=_ref$maxItemsVisible===void 0?6:_ref$maxItemsVisible,icon2=_ref3.icon,_ref$size=_ref3.size,size2=_ref$size===void 0?"md":_ref$size,_ref$disableRipple=_ref3.disableRipple,disableRipple=_ref$disableRipple===void 0?false:_ref$disableRipple,otherProps=_objectWithoutProperties$1(_ref3,_excluded$1);var _useState=useState(null),_useState2=_slicedToArray$1(_useState,2),anchorEl=_useState2[0],setAnchorEl=_useState2[1];var open=Boolean(anchorEl);var handleClick=function handleClick2(event){setAnchorEl(event.currentTarget);};var handleClose=function handleClose2(){setAnchorEl(null);};return/* @__PURE__ */jsxs("div",{children:[/* @__PURE__ */jsx$1(IconButton,{id:id,"aria-controls":open?"".concat(id,"-menu"):void 0,"aria-expanded":open?"true":void 0,"aria-haspopup":"true",onClick:handleClick,disableRipple:disableRipple,children:icon2!==null&&icon2!==void 0?icon2:/* @__PURE__ */jsx$1(CustomIcon,{color:getColor("grey","900"),children:/* @__PURE__ */jsx$1(MoreVertIcon,{})})}),/* @__PURE__ */jsx$1(Menu$2,_objectSpread2$1(_objectSpread2$1({id:"".concat(id,"-menu"),anchorEl:anchorEl,open:open,onClose:handleClose,disableScrollLock:true,slotProps:{list:{"aria-labelledby":id},transition:Grow},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},sx:menuPaperSx(size2,maxItemsVisible)},otherProps),{},{children:lodashExports.map(items,function(item2,index2){var _item$size;return/* @__PURE__ */jsx$1(MenuItemComponent,_objectSpread2$1(_objectSpread2$1({},item2),{},{size:(_item$size=item2.size)!==null&&_item$size!==void 0?_item$size:size2,onClose:handleClose}),index2);})}))]});};var overlay="warningModal-module_overlay_X5HPw";var modal="warningModal-module_modal_Co-2N";var body="warningModal-module_body_MgD8L";var title$2="warningModal-module_title_kZiTR";var content="warningModal-module_content_3IB6x";var styles$4={overlay:overlay,modal:modal,body:body,"help-container":"warningModal-module_help-container_hsnyD","header-icon":"warningModal-module_header-icon_qOIRS",title:title$2,content:content};var _excluded=["icon","onSave","onCancel","description","onClickGuide","onChangeDontShowAgain","cancelLabel","confirmLabel","title","dontShowAgainLabel"];var DefaultIcon=/* @__PURE__ */jsx$1(CustomIcon,{size:"32",color:getColor("secondary","500"),children:/* @__PURE__ */jsx$1(ErrorIcon,{})});var HelpContainer=/* @__PURE__ */React__default.memo(function(_ref3){var onClickGuide=_ref3.onClickGuide;if(!onClickGuide)return null;return/* @__PURE__ */jsx$1("div",{className:styles$4["help-container"],children:/* @__PURE__ */jsx$1(CustomIcon,{"aria-label":locale("guide"),color:getColor("primary","500"),onClick:function onClick(){return onClickGuide===null||onClickGuide===void 0?void 0:onClickGuide(new MouseEvent("click"));},children:/* @__PURE__ */jsx$1(AutoStoriesIcon,{})})});});var WarningModal=function WarningModal2(_ref22){var icon2=_ref22.icon,onSave=_ref22.onSave,onCancel=_ref22.onCancel,description2=_ref22.description,onClickGuide=_ref22.onClickGuide,onChangeDontShowAgain=_ref22.onChangeDontShowAgain,_ref2$cancelLabel=_ref22.cancelLabel,cancelLabel=_ref2$cancelLabel===void 0?locale("cancel"):_ref2$cancelLabel,_ref2$confirmLabel=_ref22.confirmLabel,confirmLabel=_ref2$confirmLabel===void 0?locale("continue"):_ref2$confirmLabel,_ref2$title=_ref22.title,title2=_ref2$title===void 0?locale("warningModal.warning"):_ref2$title,_ref2$dontShowAgainLa=_ref22.dontShowAgainLabel,dontShowAgainLabel=_ref2$dontShowAgainLa===void 0?locale("warningModal.dontShowAgain"):_ref2$dontShowAgainLa,props=_objectWithoutProperties$1(_ref22,_excluded);return/* @__PURE__ */jsx$1(Modal,{open:true,onClose:onCancel,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",className:styles$4["overlay"],children:/* @__PURE__ */jsxs("div",{className:styles$4["modal"],role:"dialog","aria-modal":"true",children:[/* @__PURE__ */jsxs("div",{className:styles$4["body"],children:[/* @__PURE__ */jsx$1(HelpContainer,{onClickGuide:onClickGuide}),/* @__PURE__ */jsxs("div",{className:styles$4["header-icon"],children:[!!icon2?icon2:DefaultIcon,/* @__PURE__ */jsx$1("div",{id:"modal-modal-title",className:styles$4["title"],children:title2})]}),/* @__PURE__ */jsxs("div",{className:styles$4["content"],children:[/* @__PURE__ */jsxs("span",{id:"modal-modal-description",children:[" ",description2," "]}),onChangeDontShowAgain&&/* @__PURE__ */jsx$1(CheckboxInput,_objectSpread2$1({name:"dont-show-again",label:dontShowAgainLabel,onChange:onChangeDontShowAgain},props))]})]}),/* @__PURE__ */jsx$1(ActionBar,{variant:"modal",cancelProps:{onCancel:onCancel,label:cancelLabel},saveProps:{onSave:onSave,label:confirmLabel,variant:"primary",size:"md"}})]})});};function arrayMap$2(array,iteratee){var index2=-1,length2=array==null?0:array.length,result=Array(length2);while(++index2<length2){result[index2]=iteratee(array[index2],index2,array);}return result;}var _arrayMap=arrayMap$2;function listCacheClear$1(){this.__data__=[];this.size=0;}var _listCacheClear=listCacheClear$1;function eq$2(value,other){return value===other||value!==value&&other!==other;}var eq_1=eq$2;var eq$1=eq_1;function assocIndexOf$4(array,key){var length2=array.length;while(length2--){if(eq$1(array[length2][0],key)){return length2;}}return-1;}var _assocIndexOf=assocIndexOf$4;var assocIndexOf$3=_assocIndexOf;var arrayProto=Array.prototype;var splice=arrayProto.splice;function listCacheDelete$1(key){var data=this.__data__,index2=assocIndexOf$3(data,key);if(index2<0){return false;}var lastIndex=data.length-1;if(index2==lastIndex){data.pop();}else{splice.call(data,index2,1);}--this.size;return true;}var _listCacheDelete=listCacheDelete$1;var assocIndexOf$2=_assocIndexOf;function listCacheGet$1(key){var data=this.__data__,index2=assocIndexOf$2(data,key);return index2<0?void 0:data[index2][1];}var _listCacheGet=listCacheGet$1;var assocIndexOf$1=_assocIndexOf;function listCacheHas$1(key){return assocIndexOf$1(this.__data__,key)>-1;}var _listCacheHas=listCacheHas$1;var assocIndexOf=_assocIndexOf;function listCacheSet$1(key,value){var data=this.__data__,index2=assocIndexOf(data,key);if(index2<0){++this.size;data.push([key,value]);}else{data[index2][1]=value;}return this;}var _listCacheSet=listCacheSet$1;var listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(entries){var index2=-1,length2=entries==null?0:entries.length;this.clear();while(++index2<length2){var entry=entries[index2];this.set(entry[0],entry[1]);}}ListCache$4.prototype.clear=listCacheClear;ListCache$4.prototype["delete"]=listCacheDelete;ListCache$4.prototype.get=listCacheGet;ListCache$4.prototype.has=listCacheHas;ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4;var ListCache$3=_ListCache;function stackClear$1(){this.__data__=new ListCache$3();this.size=0;}var _stackClear=stackClear$1;function stackDelete$1(key){var data=this.__data__,result=data["delete"](key);this.size=data.size;return result;}var _stackDelete=stackDelete$1;function stackGet$1(key){return this.__data__.get(key);}var _stackGet=stackGet$1;function stackHas$1(key){return this.__data__.has(key);}var _stackHas=stackHas$1;var freeGlobal$1=_typeof2(commonjsGlobal)=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal;var _freeGlobal=freeGlobal$1;var freeGlobal=_freeGlobal;var freeSelf=(typeof self==="undefined"?"undefined":_typeof2(self))=="object"&&self&&self.Object===Object&&self;var root$8=freeGlobal||freeSelf||Function("return this")();var _root=root$8;var root$7=_root;var Symbol$5=root$7.Symbol;var _Symbol=Symbol$5;var Symbol$4=_Symbol;var objectProto$b=Object.prototype;var hasOwnProperty$9=objectProto$b.hasOwnProperty;var nativeObjectToString$1=objectProto$b.toString;var symToStringTag$1=Symbol$4?Symbol$4.toStringTag:void 0;function getRawTag$1(value){var isOwn=hasOwnProperty$9.call(value,symToStringTag$1),tag=value[symToStringTag$1];try{value[symToStringTag$1]=void 0;var unmasked=true;}catch(e){}var result=nativeObjectToString$1.call(value);if(unmasked){if(isOwn){value[symToStringTag$1]=tag;}else{delete value[symToStringTag$1];}}return result;}var _getRawTag=getRawTag$1;var objectProto$a=Object.prototype;var nativeObjectToString=objectProto$a.toString;function objectToString$1(value){return nativeObjectToString.call(value);}var _objectToString=objectToString$1;var Symbol$3=_Symbol,getRawTag=_getRawTag,objectToString=_objectToString;var nullTag="[object Null]",undefinedTag="[object Undefined]";var symToStringTag=Symbol$3?Symbol$3.toStringTag:void 0;function baseGetTag$5(value){if(value==null){return value===void 0?undefinedTag:nullTag;}return symToStringTag&&symToStringTag in Object(value)?getRawTag(value):objectToString(value);}var _baseGetTag=baseGetTag$5;function isObject$4(value){var type=_typeof2(value);return value!=null&&(type=="object"||type=="function");}var isObject_1=isObject$4;var baseGetTag$4=_baseGetTag,isObject$3=isObject_1;var asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(value){if(!isObject$3(value)){return false;}var tag=baseGetTag$4(value);return tag==funcTag$1||tag==genTag||tag==asyncTag||tag==proxyTag;}var isFunction_1=isFunction$2;var root$6=_root;var coreJsData$1=root$6["__core-js_shared__"];var _coreJsData=coreJsData$1;var coreJsData=_coreJsData;var maskSrcKey=function(){var uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return uid?"Symbol(src)_1."+uid:"";}();function isMasked$1(func){return!!maskSrcKey&&maskSrcKey in func;}var _isMasked=isMasked$1;var funcProto$1=Function.prototype;var funcToString$1=funcProto$1.toString;function toSource$2(func){if(func!=null){try{return funcToString$1.call(func);}catch(e){}try{return func+"";}catch(e){}}return"";}var _toSource=toSource$2;var isFunction$1=isFunction_1,isMasked=_isMasked,isObject$2=isObject_1,toSource$1=_toSource;var reRegExpChar=/[\\^$.*+?()[\]{}|]/g;var reIsHostCtor=/^\[object .+?Constructor\]$/;var funcProto=Function.prototype,objectProto$9=Object.prototype;var funcToString=funcProto.toString;var hasOwnProperty$8=objectProto$9.hasOwnProperty;var reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$8).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(value){if(!isObject$2(value)||isMasked(value)){return false;}var pattern=isFunction$1(value)?reIsNative:reIsHostCtor;return pattern.test(toSource$1(value));}var _baseIsNative=baseIsNative$1;function getValue$1(object,key){return object==null?void 0:object[key];}var _getValue=getValue$1;var baseIsNative=_baseIsNative,getValue=_getValue;function getNative$6(object,key){var value=getValue(object,key);return baseIsNative(value)?value:void 0;}var _getNative=getNative$6;var getNative$5=_getNative,root$5=_root;var Map$4=getNative$5(root$5,"Map");var _Map=Map$4;var getNative$4=_getNative;var nativeCreate$4=getNative$4(Object,"create");var _nativeCreate=nativeCreate$4;var nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{};this.size=0;}var _hashClear=hashClear$1;function hashDelete$1(key){var result=this.has(key)&&delete this.__data__[key];this.size-=result?1:0;return result;}var _hashDelete=hashDelete$1;var nativeCreate$2=_nativeCreate;var HASH_UNDEFINED$2="__lodash_hash_undefined__";var objectProto$8=Object.prototype;var hasOwnProperty$7=objectProto$8.hasOwnProperty;function hashGet$1(key){var data=this.__data__;if(nativeCreate$2){var result=data[key];return result===HASH_UNDEFINED$2?void 0:result;}return hasOwnProperty$7.call(data,key)?data[key]:void 0;}var _hashGet=hashGet$1;var nativeCreate$1=_nativeCreate;var objectProto$7=Object.prototype;var hasOwnProperty$6=objectProto$7.hasOwnProperty;function hashHas$1(key){var data=this.__data__;return nativeCreate$1?data[key]!==void 0:hasOwnProperty$6.call(data,key);}var _hashHas=hashHas$1;var nativeCreate=_nativeCreate;var HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet$1(key,value){var data=this.__data__;this.size+=this.has(key)?0:1;data[key]=nativeCreate&&value===void 0?HASH_UNDEFINED$1:value;return this;}var _hashSet=hashSet$1;var hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(entries){var index2=-1,length2=entries==null?0:entries.length;this.clear();while(++index2<length2){var entry=entries[index2];this.set(entry[0],entry[1]);}}Hash$1.prototype.clear=hashClear;Hash$1.prototype["delete"]=hashDelete;Hash$1.prototype.get=hashGet;Hash$1.prototype.has=hashHas;Hash$1.prototype.set=hashSet;var _Hash=Hash$1;var Hash=_Hash,ListCache$2=_ListCache,Map$3=_Map;function mapCacheClear$1(){this.size=0;this.__data__={"hash":new Hash(),"map":new(Map$3||ListCache$2)(),"string":new Hash()};}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(value){var type=_typeof2(value);return type=="string"||type=="number"||type=="symbol"||type=="boolean"?value!=="__proto__":value===null;}var _isKeyable=isKeyable$1;var isKeyable=_isKeyable;function getMapData$4(map2,key){var data=map2.__data__;return isKeyable(key)?data[typeof key=="string"?"string":"hash"]:data.map;}var _getMapData=getMapData$4;var getMapData$3=_getMapData;function mapCacheDelete$1(key){var result=getMapData$3(this,key)["delete"](key);this.size-=result?1:0;return result;}var _mapCacheDelete=mapCacheDelete$1;var getMapData$2=_getMapData;function mapCacheGet$1(key){return getMapData$2(this,key).get(key);}var _mapCacheGet=mapCacheGet$1;var getMapData$1=_getMapData;function mapCacheHas$1(key){return getMapData$1(this,key).has(key);}var _mapCacheHas=mapCacheHas$1;var getMapData=_getMapData;function mapCacheSet$1(key,value){var data=getMapData(this,key),size2=data.size;data.set(key,value);this.size+=data.size==size2?0:1;return this;}var _mapCacheSet=mapCacheSet$1;var mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$3(entries){var index2=-1,length2=entries==null?0:entries.length;this.clear();while(++index2<length2){var entry=entries[index2];this.set(entry[0],entry[1]);}}MapCache$3.prototype.clear=mapCacheClear;MapCache$3.prototype["delete"]=mapCacheDelete;MapCache$3.prototype.get=mapCacheGet;MapCache$3.prototype.has=mapCacheHas;MapCache$3.prototype.set=mapCacheSet;var _MapCache=MapCache$3;var ListCache$1=_ListCache,Map$2=_Map,MapCache$2=_MapCache;var LARGE_ARRAY_SIZE=200;function stackSet$1(key,value){var data=this.__data__;if(data instanceof ListCache$1){var pairs=data.__data__;if(!Map$2||pairs.length<LARGE_ARRAY_SIZE-1){pairs.push([key,value]);this.size=++data.size;return this;}data=this.__data__=new MapCache$2(pairs);}data.set(key,value);this.size=data.size;return this;}var _stackSet=stackSet$1;var ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$2(entries){var data=this.__data__=new ListCache(entries);this.size=data.size;}Stack$2.prototype.clear=stackClear;Stack$2.prototype["delete"]=stackDelete;Stack$2.prototype.get=stackGet;Stack$2.prototype.has=stackHas;Stack$2.prototype.set=stackSet;var _Stack=Stack$2;var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd$1(value){this.__data__.set(value,HASH_UNDEFINED);return this;}var _setCacheAdd=setCacheAdd$1;function setCacheHas$1(value){return this.__data__.has(value);}var _setCacheHas=setCacheHas$1;var MapCache$1=_MapCache,setCacheAdd=_setCacheAdd,setCacheHas=_setCacheHas;function SetCache$1(values2){var index2=-1,length2=values2==null?0:values2.length;this.__data__=new MapCache$1();while(++index2<length2){this.add(values2[index2]);}}SetCache$1.prototype.add=SetCache$1.prototype.push=setCacheAdd;SetCache$1.prototype.has=setCacheHas;var _SetCache=SetCache$1;function arraySome$1(array,predicate){var index2=-1,length2=array==null?0:array.length;while(++index2<length2){if(predicate(array[index2],index2,array)){return true;}}return false;}var _arraySome=arraySome$1;function cacheHas$1(cache,key){return cache.has(key);}var _cacheHas=cacheHas$1;var SetCache=_SetCache,arraySome=_arraySome,cacheHas=_cacheHas;var COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays$2(array,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG$5,arrLength=array.length,othLength=other.length;if(arrLength!=othLength&&!(isPartial&&othLength>arrLength)){return false;}var arrStacked=stack.get(array);var othStacked=stack.get(other);if(arrStacked&&othStacked){return arrStacked==other&&othStacked==array;}var index2=-1,result=true,seen=bitmask&COMPARE_UNORDERED_FLAG$3?new SetCache():void 0;stack.set(array,other);stack.set(other,array);while(++index2<arrLength){var arrValue=array[index2],othValue=other[index2];if(customizer){var compared=isPartial?customizer(othValue,arrValue,index2,other,array,stack):customizer(arrValue,othValue,index2,array,other,stack);}if(compared!==void 0){if(compared){continue;}result=false;break;}if(seen){if(!arraySome(other,function(othValue2,othIndex){if(!cacheHas(seen,othIndex)&&(arrValue===othValue2||equalFunc(arrValue,othValue2,bitmask,customizer,stack))){return seen.push(othIndex);}})){result=false;break;}}else if(!(arrValue===othValue||equalFunc(arrValue,othValue,bitmask,customizer,stack))){result=false;break;}}stack["delete"](array);stack["delete"](other);return result;}var _equalArrays=equalArrays$2;var root$4=_root;var Uint8Array$1=root$4.Uint8Array;var _Uint8Array=Uint8Array$1;function mapToArray$1(map2){var index2=-1,result=Array(map2.size);map2.forEach(function(value,key){result[++index2]=[key,value];});return result;}var _mapToArray=mapToArray$1;function setToArray$1(set){var index2=-1,result=Array(set.size);set.forEach(function(value){result[++index2]=value;});return result;}var _setToArray=setToArray$1;var Symbol$2=_Symbol,Uint8Array2=_Uint8Array,eq=eq_1,equalArrays$1=_equalArrays,mapToArray=_mapToArray,setToArray=_setToArray;var COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2;var boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",mapTag$2="[object Map]",numberTag$1="[object Number]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",symbolTag$1="[object Symbol]";var arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$2="[object DataView]";var symbolProto$1=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf=symbolProto$1?symbolProto$1.valueOf:void 0;function equalByTag$1(object,other,tag,bitmask,customizer,equalFunc,stack){switch(tag){case dataViewTag$2:if(object.byteLength!=other.byteLength||object.byteOffset!=other.byteOffset){return false;}object=object.buffer;other=other.buffer;case arrayBufferTag$1:if(object.byteLength!=other.byteLength||!equalFunc(new Uint8Array2(object),new Uint8Array2(other))){return false;}return true;case boolTag$1:case dateTag$1:case numberTag$1:return eq(+object,+other);case errorTag$1:return object.name==other.name&&object.message==other.message;case regexpTag$1:case stringTag$1:return object==other+"";case mapTag$2:var convert=mapToArray;case setTag$2:var isPartial=bitmask&COMPARE_PARTIAL_FLAG$4;convert||(convert=setToArray);if(object.size!=other.size&&!isPartial){return false;}var stacked=stack.get(object);if(stacked){return stacked==other;}bitmask|=COMPARE_UNORDERED_FLAG$2;stack.set(object,other);var result=equalArrays$1(convert(object),convert(other),bitmask,customizer,equalFunc,stack);stack["delete"](object);return result;case symbolTag$1:if(symbolValueOf){return symbolValueOf.call(object)==symbolValueOf.call(other);}}return false;}var _equalByTag=equalByTag$1;function arrayPush$1(array,values2){var index2=-1,length2=values2.length,offset2=array.length;while(++index2<length2){array[offset2+index2]=values2[index2];}return array;}var _arrayPush=arrayPush$1;var isArray$9=Array.isArray;var isArray_1=isArray$9;var arrayPush=_arrayPush,isArray$8=isArray_1;function baseGetAllKeys$1(object,keysFunc,symbolsFunc){var result=keysFunc(object);return isArray$8(object)?result:arrayPush(result,symbolsFunc(object));}var _baseGetAllKeys=baseGetAllKeys$1;function arrayFilter$1(array,predicate){var index2=-1,length2=array==null?0:array.length,resIndex=0,result=[];while(++index2<length2){var value=array[index2];if(predicate(value,index2,array)){result[resIndex++]=value;}}return result;}var _arrayFilter=arrayFilter$1;function stubArray$1(){return[];}var stubArray_1=stubArray$1;var arrayFilter=_arrayFilter,stubArray=stubArray_1;var objectProto$6=Object.prototype;var propertyIsEnumerable$1=objectProto$6.propertyIsEnumerable;var nativeGetSymbols=Object.getOwnPropertySymbols;var getSymbols$1=!nativeGetSymbols?stubArray:function(object){if(object==null){return[];}object=Object(object);return arrayFilter(nativeGetSymbols(object),function(symbol){return propertyIsEnumerable$1.call(object,symbol);});};var _getSymbols=getSymbols$1;function baseTimes$1(n,iteratee){var index2=-1,result=Array(n);while(++index2<n){result[index2]=iteratee(index2);}return result;}var _baseTimes=baseTimes$1;function isObjectLike$5(value){return value!=null&&_typeof2(value)=="object";}var isObjectLike_1=isObjectLike$5;var baseGetTag$3=_baseGetTag,isObjectLike$4=isObjectLike_1;var argsTag$2="[object Arguments]";function baseIsArguments$1(value){return isObjectLike$4(value)&&baseGetTag$3(value)==argsTag$2;}var _baseIsArguments=baseIsArguments$1;var baseIsArguments=_baseIsArguments,isObjectLike$3=isObjectLike_1;var objectProto$5=Object.prototype;var hasOwnProperty$5=objectProto$5.hasOwnProperty;var propertyIsEnumerable=objectProto$5.propertyIsEnumerable;var isArguments$2=baseIsArguments(/* @__PURE__ */function(){return arguments;}())?baseIsArguments:function(value){return isObjectLike$3(value)&&hasOwnProperty$5.call(value,"callee")&&!propertyIsEnumerable.call(value,"callee");};var isArguments_1=isArguments$2;var isBuffer$2={exports:{}};function stubFalse(){return false;}var stubFalse_1=stubFalse;isBuffer$2.exports;(function(module,exports){var root2=_root,stubFalse2=stubFalse_1;var freeExports=exports&&!exports.nodeType&&exports;var freeModule=freeExports&&true&&module&&!module.nodeType&&module;var moduleExports=freeModule&&freeModule.exports===freeExports;var Buffer2=moduleExports?root2.Buffer:void 0;var nativeIsBuffer=Buffer2?Buffer2.isBuffer:void 0;var isBuffer2=nativeIsBuffer||stubFalse2;module.exports=isBuffer2;})(isBuffer$2,isBuffer$2.exports);var isBufferExports=isBuffer$2.exports;var MAX_SAFE_INTEGER$1=9007199254740991;var reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$2(value,length2){var type=_typeof2(value);length2=length2==null?MAX_SAFE_INTEGER$1:length2;return!!length2&&(type=="number"||type!="symbol"&&reIsUint.test(value))&&value>-1&&value%1==0&&value<length2;}var _isIndex=isIndex$2;var MAX_SAFE_INTEGER=9007199254740991;function isLength$3(value){return typeof value=="number"&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER;}var isLength_1=isLength$3;var baseGetTag$2=_baseGetTag,isLength$2=isLength_1,isObjectLike$2=isObjectLike_1;var argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag$1="[object Map]",numberTag="[object Number]",objectTag$2="[object Object]",regexpTag="[object RegExp]",setTag$1="[object Set]",stringTag="[object String]",weakMapTag$1="[object WeakMap]";var arrayBufferTag="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]";var typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=true;typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag$1]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag$1]=typedArrayTags[numberTag]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag]=typedArrayTags[setTag$1]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag$1]=false;function baseIsTypedArray$1(value){return isObjectLike$2(value)&&isLength$2(value.length)&&!!typedArrayTags[baseGetTag$2(value)];}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$1(func){return function(value){return func(value);};}var _baseUnary=baseUnary$1;var _nodeUtil={exports:{}};_nodeUtil.exports;(function(module,exports){var freeGlobal2=_freeGlobal;var freeExports=exports&&!exports.nodeType&&exports;var freeModule=freeExports&&true&&module&&!module.nodeType&&module;var moduleExports=freeModule&&freeModule.exports===freeExports;var freeProcess=moduleExports&&freeGlobal2.process;var nodeUtil2=function(){try{var types=freeModule&&freeModule.require&&freeModule.require("util").types;if(types){return types;}return freeProcess&&freeProcess.binding&&freeProcess.binding("util");}catch(e){}}();module.exports=nodeUtil2;})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports;var baseIsTypedArray=_baseIsTypedArray,baseUnary=_baseUnary,nodeUtil=_nodeUtilExports;var nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray;var isTypedArray$2=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;var isTypedArray_1=isTypedArray$2;var baseTimes=_baseTimes,isArguments$1=isArguments_1,isArray$7=isArray_1,isBuffer$1=isBufferExports,isIndex$1=_isIndex,isTypedArray$1=isTypedArray_1;var objectProto$4=Object.prototype;var hasOwnProperty$4=objectProto$4.hasOwnProperty;function arrayLikeKeys$1(value,inherited){var isArr=isArray$7(value),isArg=!isArr&&isArguments$1(value),isBuff=!isArr&&!isArg&&isBuffer$1(value),isType=!isArr&&!isArg&&!isBuff&&isTypedArray$1(value),skipIndexes=isArr||isArg||isBuff||isType,result=skipIndexes?baseTimes(value.length,String):[],length2=result.length;for(var key in value){if((inherited||hasOwnProperty$4.call(value,key))&&!(skipIndexes&&(// Safari 9 has enumerable `arguments.length` in strict mode.
|
|
7061
7061
|
key=="length"||// Node.js 0.10 has enumerable non-index properties on buffers.
|
|
7062
7062
|
isBuff&&(key=="offset"||key=="parent")||// PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
7063
7063
|
isType&&(key=="buffer"||key=="byteLength"||key=="byteOffset")||// Skip index properties.
|