@pie-element/ebsr 13.2.0-next.9 → 14.0.1
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/CHANGELOG.md +26 -0
- package/configure/CHANGELOG.md +20 -0
- package/configure/package.json +3 -3
- package/controller/CHANGELOG.md +10 -0
- package/controller/package.json +3 -3
- package/lib/print.js +24 -19
- package/lib/print.js.map +1 -1
- package/module/configure.js +1 -1
- package/module/element.js +1 -1
- package/module/index.html +1 -1
- package/module/manifest.json +3 -3
- package/module/print.html +1 -1
- package/module/print.js +1 -1
- package/package.json +4 -4
- package/src/print.js +29 -25
package/module/print.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_dll_react as e,_dll_react_dom as t,_dll_mui__material as n,_dll_prop_types as r,_dll_mui__material_styles as o,_dll_pie_lib__render_ui as i,_dll_classnames as a,_dll_pie_lib__correct_answer_toggle as s,_dll_debug as l}from"../../../@pie-lib/shared-module@^4.1.0/module/index.js";import{_dll_pie_lib__math_rendering as u}from"../../../@pie-lib/math-rendering-module@^4.1.0/module/index.js";var c="object"==typeof global&&global&&global.Object===Object&&global,d="object"==typeof self&&self&&self.Object===Object&&self,p=c||d||Function("return this")(),f=p.Symbol,h=Object.prototype,g=h.hasOwnProperty,v=h.toString,m=f?f.toStringTag:void 0;var y=Object.prototype.toString;var b=f?f.toStringTag:void 0;function x(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":b&&b in Object(e)?function(e){var t=g.call(e,m),n=e[m];try{e[m]=void 0;var r=!0}catch(e){}var o=v.call(e);return r&&(t?e[m]=n:delete e[m]),o}(e):function(e){return y.call(e)}(e)}function _(e){return null!=e&&"object"==typeof e}function w(e){return"symbol"==typeof e||_(e)&&"[object Symbol]"==x(e)}function S(e){return"number"==typeof e?e:w(e)?NaN:+e}function E(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var k=Array.isArray,C=f?f.prototype:void 0,O=C?C.toString:void 0;function A(e){if("string"==typeof e)return e;if(k(e))return E(e,A)+"";if(w(e))return O?O.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function j(e,t){return function(n,r){var o;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(o=n),void 0!==r){if(void 0===o)return r;"string"==typeof n||"string"==typeof r?(n=A(n),r=A(r)):(n=S(n),r=S(r)),o=e(n,r)}return o}}var L=j(function(e,t){return e+t},0),R=/\s/;function P(e){for(var t=e.length;t--&&R.test(e.charAt(t)););return t}var I=/^\s+/;function N(e){return e?e.slice(0,P(e)+1).replace(I,""):e}function M(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var T=/^[-+]0x[0-9a-f]+$/i,B=/^0b[01]+$/i,$=/^0o[0-7]+$/i,D=parseInt;function W(e){if("number"==typeof e)return e;if(w(e))return NaN;if(M(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=M(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=N(e);var n=B.test(e);return n||$.test(e)?D(e.slice(2),n?2:8):T.test(e)?NaN:+e}var z=1/0;function F(e){return e?(e=W(e))===z||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function U(e){var t=F(e),n=t%1;return t==t?n?t-n:t:0}function V(e,t){if("function"!=typeof t)throw new TypeError("Expected a function");return e=U(e),function(){if(--e<1)return t.apply(this,arguments)}}function q(e){return e}function K(e){if(!M(e))return!1;var t=x(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var H,J=p["__core-js_shared__"],Y=(H=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||""))?"Symbol(src)_1."+H:"";var G=Function.prototype.toString;function Z(e){if(null!=e){try{return G.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var Q=/^\[object .+?Constructor\]$/,X=Function.prototype,ee=Object.prototype,te=X.toString,ne=ee.hasOwnProperty,re=RegExp("^"+te.call(ne).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function oe(e){return!(!M(e)||function(e){return!!Y&&Y in e}(e))&&(K(e)?re:Q).test(Z(e))}function ie(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return oe(n)?n:void 0}var ae=ie(p,"WeakMap"),se=ae&&new ae,le=se?function(e,t){return se.set(e,t),e}:q,ue=le,ce=Object.create,de=function(){function e(){}return function(t){if(!M(t))return{};if(ce)return ce(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),pe=de;function fe(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=pe(e.prototype),r=e.apply(n,t);return M(r)?r:n}}function he(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var ge=Math.max;function ve(e,t,n,r){for(var o=-1,i=e.length,a=n.length,s=-1,l=t.length,u=ge(i-a,0),c=Array(l+u),d=!r;++s<l;)c[s]=t[s];for(;++o<a;)(d||o<i)&&(c[n[o]]=e[o]);for(;u--;)c[s++]=e[o++];return c}var me=Math.max;function ye(e,t,n,r){for(var o=-1,i=e.length,a=-1,s=n.length,l=-1,u=t.length,c=me(i-s,0),d=Array(c+u),p=!r;++o<c;)d[o]=e[o];for(var f=o;++l<u;)d[f+l]=t[l];for(;++a<s;)(p||o<i)&&(d[f+n[a]]=e[o++]);return d}function be(){}function xe(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function _e(){}xe.prototype=pe(be.prototype),xe.prototype.constructor=xe;var we=se?function(e){return se.get(e)}:_e,Se=we,Ee={},ke=Object.prototype.hasOwnProperty;function Ce(e){for(var t=e.name+"",n=Ee[t],r=ke.call(Ee,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function Oe(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Ae(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function je(e){if(e instanceof xe)return e.clone();var t=new Oe(e.__wrapped__,e.__chain__);return t.__actions__=Ae(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}Oe.prototype=pe(be.prototype),Oe.prototype.constructor=Oe;var Le=Object.prototype.hasOwnProperty;function Re(e){if(_(e)&&!k(e)&&!(e instanceof xe)){if(e instanceof Oe)return e;if(Le.call(e,"__wrapped__"))return je(e)}return new Oe(e)}function Pe(e){var t=Ce(e),n=Re[t];if("function"!=typeof n||!(t in xe.prototype))return!1;if(e===n)return!0;var r=Se(n);return!!r&&e===r[0]}Re.prototype=be.prototype,Re.prototype.constructor=Re;var Ie=Date.now;function Ne(e){var t=0,n=0;return function(){var r=Ie(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Me=Ne(ue),Te=/\{\n\/\* \[wrapped with (.+)\] \*/,Be=/,? & /;var $e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function De(e){return function(){return e}}var We=function(){try{var e=ie(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),ze=We,Fe=ze?function(e,t){return ze(e,"toString",{configurable:!0,enumerable:!1,value:De(t),writable:!0})}:q,Ue=Ne(Fe);function Ve(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function qe(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Ke(e){return e!=e}function He(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):qe(e,Ke,n)}function Je(e,t){return!!(null==e?0:e.length)&&He(e,t,0)>-1}var Ye=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function Ge(e,t,n){var r=t+"";return Ue(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace($e,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ve(Ye,function(n){var r="_."+n[0];t&n[1]&&!Je(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Te);return t?t[1].split(Be):[]}(r),n)))}function Ze(e,t,n,r,o,i,a,s,l,u){var c=8&t;t|=c?32:64,4&(t&=~(c?64:32))||(t&=-4);var d=[e,t,o,c?i:void 0,c?a:void 0,c?void 0:i,c?void 0:a,s,l,u],p=n.apply(void 0,d);return Pe(e)&&Me(p,d),p.placeholder=r,Ge(p,e,t)}function Qe(e){return e.placeholder}var Xe=/^(?:0|[1-9]\d*)$/;function et(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Xe.test(e))&&e>-1&&e%1==0&&e<t}var tt=Math.min;var nt="__lodash_placeholder__";function rt(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==nt||(e[n]=nt,i[o++]=n)}return i}function ot(e,t,n,r,o,i,a,s,l,u){var c=128&t,d=1&t,f=2&t,h=24&t,g=512&t,v=f?void 0:fe(e);return function m(){for(var y=arguments.length,b=Array(y),x=y;x--;)b[x]=arguments[x];if(h)var _=Qe(m),w=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(b,_);if(r&&(b=ve(b,r,o,h)),i&&(b=ye(b,i,a,h)),y-=w,h&&y<u){var S=rt(b,_);return Ze(e,t,ot,m.placeholder,n,b,S,s,l,u-y)}var E=d?n:this,k=f?E[e]:e;return y=b.length,s?b=function(e,t){for(var n=e.length,r=tt(t.length,n),o=Ae(e);r--;){var i=t[r];e[r]=et(i,n)?o[i]:void 0}return e}(b,s):g&&y>1&&b.reverse(),c&&l<y&&(b.length=l),this&&this!==p&&this instanceof m&&(k=v||fe(k)),k.apply(E,b)}}var it="__lodash_placeholder__",at=128,st=Math.min;var lt=Math.max;function ut(e,t,n,r,o,i,a,s){var l=2&t;if(!l&&"function"!=typeof e)throw new TypeError("Expected a function");var u=r?r.length:0;if(u||(t&=-97,r=o=void 0),a=void 0===a?a:lt(U(a),0),s=void 0===s?s:U(s),u-=o?o.length:0,64&t){var c=r,d=o;r=o=void 0}var f=l?void 0:Se(e),h=[e,t,n,r,o,c,d,i,a,s];if(f&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==at&&8==n||r==at&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var s=t[3];if(s){var l=e[3];e[3]=l?ve(l,s,t[4]):s,e[4]=l?rt(e[3],it):t[4]}(s=t[5])&&(l=e[5],e[5]=l?ye(l,s,t[6]):s,e[6]=l?rt(e[5],it):t[6]),(s=t[7])&&(e[7]=s),r&at&&(e[8]=null==e[8]?t[8]:st(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(h,f),e=h[0],t=h[1],n=h[2],r=h[3],o=h[4],!(s=h[9]=void 0===h[9]?l?0:e.length:lt(h[9]-u,0))&&24&t&&(t&=-25),t&&1!=t)g=8==t||16==t?function(e,t,n){var r=fe(e);return function o(){for(var i=arguments.length,a=Array(i),s=i,l=Qe(o);s--;)a[s]=arguments[s];var u=i<3&&a[0]!==l&&a[i-1]!==l?[]:rt(a,l);return(i-=u.length)<n?Ze(e,t,ot,o.placeholder,void 0,a,u,void 0,void 0,n-i):he(this&&this!==p&&this instanceof o?r:e,this,a)}}(e,t,s):32!=t&&33!=t||o.length?ot.apply(void 0,h):function(e,t,n,r){var o=1&t,i=fe(e);return function t(){for(var a=-1,s=arguments.length,l=-1,u=r.length,c=Array(u+s),d=this&&this!==p&&this instanceof t?i:e;++l<u;)c[l]=r[l];for(;s--;)c[l++]=arguments[++a];return he(d,o?n:this,c)}}(e,t,n,r);else var g=function(e,t,n){var r=1&t,o=fe(e);return function t(){return(this&&this!==p&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Ge((f?ue:Me)(g,h),e,t)}function ct(e,t,n){return t=n?void 0:t,ut(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function dt(e,t,n){"__proto__"==t&&ze?ze(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function pt(e,t){return e===t||e!=e&&t!=t}var ft=Object.prototype.hasOwnProperty;function ht(e,t,n){var r=e[t];ft.call(e,t)&&pt(r,n)&&(void 0!==n||t in e)||dt(e,t,n)}function gt(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),o?dt(n,s,l):ht(n,s,l)}return n}var vt=Math.max;function mt(e,t,n){return t=vt(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=vt(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),he(e,this,s)}}function yt(e,t){return Ue(mt(e,t,q),e+"")}function bt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function xt(e){return null!=e&&bt(e.length)&&!K(e)}function _t(e,t,n){if(!M(n))return!1;var r=typeof t;return!!("number"==r?xt(n)&&et(t,n.length):"string"==r&&t in n)&&pt(n[t],e)}function wt(e){return yt(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&_t(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,i)}return t})}var St=Object.prototype;function Et(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||St)}function kt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Ct(e){return _(e)&&"[object Arguments]"==x(e)}var Ot=Object.prototype,At=Ot.hasOwnProperty,jt=Ot.propertyIsEnumerable,Lt=Ct(function(){return arguments}())?Ct:function(e){return _(e)&&At.call(e,"callee")&&!jt.call(e,"callee")};function Rt(){return!1}var Pt="object"==typeof exports&&exports&&!exports.nodeType&&exports,It=Pt&&"object"==typeof module&&module&&!module.nodeType&&module,Nt=It&&It.exports===Pt?p.Buffer:void 0,Mt=(Nt?Nt.isBuffer:void 0)||Rt,Tt={};function Bt(e){return function(t){return e(t)}}Tt["[object Float32Array]"]=Tt["[object Float64Array]"]=Tt["[object Int8Array]"]=Tt["[object Int16Array]"]=Tt["[object Int32Array]"]=Tt["[object Uint8Array]"]=Tt["[object Uint8ClampedArray]"]=Tt["[object Uint16Array]"]=Tt["[object Uint32Array]"]=!0,Tt["[object Arguments]"]=Tt["[object Array]"]=Tt["[object ArrayBuffer]"]=Tt["[object Boolean]"]=Tt["[object DataView]"]=Tt["[object Date]"]=Tt["[object Error]"]=Tt["[object Function]"]=Tt["[object Map]"]=Tt["[object Number]"]=Tt["[object Object]"]=Tt["[object RegExp]"]=Tt["[object Set]"]=Tt["[object String]"]=Tt["[object WeakMap]"]=!1;var $t="object"==typeof exports&&exports&&!exports.nodeType&&exports,Dt=$t&&"object"==typeof module&&module&&!module.nodeType&&module,Wt=Dt&&Dt.exports===$t&&c.process,zt=function(){try{var e=Dt&&Dt.require&&Dt.require("util").types;return e||Wt&&Wt.binding&&Wt.binding("util")}catch(e){}}(),Ft=zt&&zt.isTypedArray,Ut=Ft?Bt(Ft):function(e){return _(e)&&bt(e.length)&&!!Tt[x(e)]},Vt=Object.prototype.hasOwnProperty;function qt(e,t){var n=k(e),r=!n&&Lt(e),o=!n&&!r&&Mt(e),i=!n&&!r&&!o&&Ut(e),a=n||r||o||i,s=a?kt(e.length,String):[],l=s.length;for(var u in e)!t&&!Vt.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||et(u,l))||s.push(u);return s}function Kt(e,t){return function(n){return e(t(n))}}var Ht=Kt(Object.keys,Object),Jt=Object.prototype.hasOwnProperty;function Yt(e){if(!Et(e))return Ht(e);var t=[];for(var n in Object(e))Jt.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Gt(e){return xt(e)?qt(e):Yt(e)}var Zt=Object.prototype.hasOwnProperty,Qt=wt(function(e,t){if(Et(t)||xt(t))gt(t,Gt(t),e);else for(var n in t)Zt.call(t,n)&&ht(e,n,t[n])}),Xt=Qt;var en=Object.prototype.hasOwnProperty;function tn(e){if(!M(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=Et(e),n=[];for(var r in e)("constructor"!=r||!t&&en.call(e,r))&&n.push(r);return n}function nn(e){return xt(e)?qt(e,!0):tn(e)}var rn=wt(function(e,t){gt(t,nn(t),e)}),on=rn,an=wt(function(e,t,n,r){gt(t,nn(t),e,r)}),sn=an,ln=wt(function(e,t,n,r){gt(t,Gt(t),e,r)}),un=ln,cn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dn=/^\w*$/;function pn(e,t){if(k(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!w(e))||(dn.test(e)||!cn.test(e)||null!=t&&e in Object(t))}var fn=ie(Object,"create");var hn=Object.prototype.hasOwnProperty;var gn=Object.prototype.hasOwnProperty;function vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function mn(e,t){for(var n=e.length;n--;)if(pt(e[n][0],t))return n;return-1}vn.prototype.clear=function(){this.__data__=fn?fn(null):{},this.size=0},vn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},vn.prototype.get=function(e){var t=this.__data__;if(fn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return hn.call(t,e)?t[e]:void 0},vn.prototype.has=function(e){var t=this.__data__;return fn?void 0!==t[e]:gn.call(t,e)},vn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=fn&&void 0===t?"__lodash_hash_undefined__":t,this};var yn=Array.prototype.splice;function bn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}bn.prototype.clear=function(){this.__data__=[],this.size=0},bn.prototype.delete=function(e){var t=this.__data__,n=mn(t,e);return!(n<0)&&(n==t.length-1?t.pop():yn.call(t,n,1),--this.size,!0)},bn.prototype.get=function(e){var t=this.__data__,n=mn(t,e);return n<0?void 0:t[n][1]},bn.prototype.has=function(e){return mn(this.__data__,e)>-1},bn.prototype.set=function(e,t){var n=this.__data__,r=mn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var xn=ie(p,"Map");function _n(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}wn.prototype.clear=function(){this.size=0,this.__data__={hash:new vn,map:new(xn||bn),string:new vn}},wn.prototype.delete=function(e){var t=_n(this,e).delete(e);return this.size-=t?1:0,t},wn.prototype.get=function(e){return _n(this,e).get(e)},wn.prototype.has=function(e){return _n(this,e).has(e)},wn.prototype.set=function(e,t){var n=_n(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Sn(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Sn.Cache||wn),n}Sn.Cache=wn;var En=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kn=/\\(\\)?/g,Cn=function(e){var t=Sn(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(En,function(e,n,r,o){t.push(r?o.replace(kn,"$1"):n||e)}),t}),On=Cn;function An(e){return null==e?"":A(e)}function jn(e,t){return k(e)?e:pn(e,t)?[e]:On(An(e))}function Ln(e){if("string"==typeof e||w(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Rn(e,t){for(var n=0,r=(t=jn(t,e)).length;null!=e&&n<r;)e=e[Ln(t[n++])];return n&&n==r?e:void 0}function Pn(e,t,n){var r=null==e?void 0:Rn(e,t);return void 0===r?n:r}function In(e,t){for(var n=-1,r=t.length,o=Array(r),i=null==e;++n<r;)o[n]=i?void 0:Pn(e,t[n]);return o}function Nn(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var Mn=f?f.isConcatSpreadable:void 0;function Tn(e){return k(e)||Lt(e)||!!(Mn&&e&&e[Mn])}function Bn(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=Tn),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?Bn(s,t-1,n,r,o):Nn(o,s):r||(o[o.length]=s)}return o}function $n(e){return(null==e?0:e.length)?Bn(e,1):[]}function Dn(e){return Ue(mt(e,void 0,$n),e+"")}var Wn=Dn(In),zn=Kt(Object.getPrototypeOf,Object),Fn=Function.prototype,Un=Object.prototype,Vn=Fn.toString,qn=Un.hasOwnProperty,Kn=Vn.call(Object);function Hn(e){if(!_(e)||"[object Object]"!=x(e))return!1;var t=zn(e);if(null===t)return!0;var n=qn.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Vn.call(n)==Kn}function Jn(e){if(!_(e))return!1;var t=x(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Hn(e)}var Yn=yt(function(e,t){try{return he(e,void 0,t)}catch(e){return Jn(e)?e:new Error(e)}}),Gn=Yn;function Zn(e,t){var n;if("function"!=typeof t)throw new TypeError("Expected a function");return e=U(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var Qn=yt(function(e,t,n){var r=1;if(n.length){var o=rt(n,Qe(Qn));r|=32}return ut(e,r,t,n,o)});Qn.placeholder={};var Xn=Qn,er=Dn(function(e,t){return Ve(t,function(t){t=Ln(t),dt(e,t,Xn(e[t],e))}),e}),tr=er,nr=yt(function(e,t,n){var r=3;if(n.length){var o=rt(n,Qe(nr));r|=32}return ut(t,r,e,n,o)});nr.placeholder={};var rr=nr;function or(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}function ir(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:or(e,t,n)}var ar=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function sr(e){return ar.test(e)}var lr="\\ud800-\\udfff",ur="["+lr+"]",cr="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",dr="\\ud83c[\\udffb-\\udfff]",pr="[^"+lr+"]",fr="(?:\\ud83c[\\udde6-\\uddff]){2}",hr="[\\ud800-\\udbff][\\udc00-\\udfff]",gr="(?:"+cr+"|"+dr+")"+"?",vr="[\\ufe0e\\ufe0f]?",mr=vr+gr+("(?:\\u200d(?:"+[pr,fr,hr].join("|")+")"+vr+gr+")*"),yr="(?:"+[pr+cr+"?",cr,fr,hr,ur].join("|")+")",br=RegExp(dr+"(?="+dr+")|"+yr+mr,"g");function xr(e){return sr(e)?function(e){return e.match(br)||[]}(e):function(e){return e.split("")}(e)}function _r(e){return function(t){var n=sr(t=An(t))?xr(t):void 0,r=n?n[0]:t.charAt(0),o=n?ir(n,1).join(""):t.slice(1);return r[e]()+o}}var wr=_r("toUpperCase");function Sr(e){return wr(An(e).toLowerCase())}function Er(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function kr(e){return function(t){return null==e?void 0:e[t]}}var Cr=kr({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Or=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ar=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");function jr(e){return(e=An(e))&&e.replace(Or,Cr).replace(Ar,"")}var Lr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var Rr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var Pr="\\ud800-\\udfff",Ir="\\u2700-\\u27bf",Nr="a-z\\xdf-\\xf6\\xf8-\\xff",Mr="A-Z\\xc0-\\xd6\\xd8-\\xde",Tr="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Br="["+Tr+"]",$r="\\d+",Dr="["+Ir+"]",Wr="["+Nr+"]",zr="[^"+Pr+Tr+$r+Ir+Nr+Mr+"]",Fr="(?:\\ud83c[\\udde6-\\uddff]){2}",Ur="[\\ud800-\\udbff][\\udc00-\\udfff]",Vr="["+Mr+"]",qr="(?:"+Wr+"|"+zr+")",Kr="(?:"+Vr+"|"+zr+")",Hr="(?:['’](?:d|ll|m|re|s|t|ve))?",Jr="(?:['’](?:D|LL|M|RE|S|T|VE))?",Yr="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Gr="[\\ufe0e\\ufe0f]?",Zr=Gr+Yr+("(?:\\u200d(?:"+["[^"+Pr+"]",Fr,Ur].join("|")+")"+Gr+Yr+")*"),Qr="(?:"+[Dr,Fr,Ur].join("|")+")"+Zr,Xr=RegExp([Vr+"?"+Wr+"+"+Hr+"(?="+[Br,Vr,"$"].join("|")+")",Kr+"+"+Jr+"(?="+[Br,Vr+qr,"$"].join("|")+")",Vr+"?"+qr+"+"+Hr,Vr+"+"+Jr,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$r,Qr].join("|"),"g");function eo(e,t,n){return e=An(e),void 0===(t=n?void 0:t)?function(e){return Rr.test(e)}(e)?function(e){return e.match(Xr)||[]}(e):function(e){return e.match(Lr)||[]}(e):e.match(t)||[]}var to=RegExp("['’]","g");function no(e){return function(t){return Er(eo(jr(t).replace(to,"")),e,"")}}var ro=no(function(e,t,n){return t=t.toLowerCase(),e+(n?Sr(t):t)}),oo=ro;function io(){if(!arguments.length)return[];var e=arguments[0];return k(e)?e:[e]}var ao=p.isFinite,so=Math.min;function lo(e){var t=Math[e];return function(e,n){if(e=W(e),(n=null==n?0:so(U(n),292))&&ao(e)){var r=(An(e)+"e").split("e");return+((r=(An(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var uo=lo("ceil");function co(e){var t=Re(e);return t.__chain__=!0,t}var po=Math.ceil,fo=Math.max;function ho(e,t,n){t=(n?_t(e,t,n):void 0===t)?1:fo(U(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=Array(po(r/t));o<r;)a[i++]=or(e,o,o+=t);return a}function go(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function vo(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=W(n))==n?n:0),void 0!==t&&(t=(t=W(t))==t?t:0),go(W(e),t,n)}function mo(e){var t=this.__data__=new bn(e);this.size=t.size}function yo(e,t){return e&>(t,Gt(t),e)}mo.prototype.clear=function(){this.__data__=new bn,this.size=0},mo.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},mo.prototype.get=function(e){return this.__data__.get(e)},mo.prototype.has=function(e){return this.__data__.has(e)},mo.prototype.set=function(e,t){var n=this.__data__;if(n instanceof bn){var r=n.__data__;if(!xn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new wn(r)}return n.set(e,t),this.size=n.size,this};var bo="object"==typeof exports&&exports&&!exports.nodeType&&exports,xo=bo&&"object"==typeof module&&module&&!module.nodeType&&module,_o=xo&&xo.exports===bo?p.Buffer:void 0,wo=_o?_o.allocUnsafe:void 0;function So(e,t){if(t)return e.slice();var n=e.length,r=wo?wo(n):new e.constructor(n);return e.copy(r),r}function Eo(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function ko(){return[]}var Co=Object.prototype.propertyIsEnumerable,Oo=Object.getOwnPropertySymbols,Ao=Oo?function(e){return null==e?[]:(e=Object(e),Eo(Oo(e),function(t){return Co.call(e,t)}))}:ko,jo=Ao;var Lo=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Nn(t,jo(e)),e=zn(e);return t}:ko,Ro=Lo;function Po(e,t,n){var r=t(e);return k(e)?r:Nn(r,n(e))}function Io(e){return Po(e,Gt,jo)}function No(e){return Po(e,nn,Ro)}var Mo=ie(p,"DataView"),To=ie(p,"Promise"),Bo=ie(p,"Set"),$o="[object Map]",Do="[object Promise]",Wo="[object Set]",zo="[object WeakMap]",Fo="[object DataView]",Uo=Z(Mo),Vo=Z(xn),qo=Z(To),Ko=Z(Bo),Ho=Z(ae),Jo=x;(Mo&&Jo(new Mo(new ArrayBuffer(1)))!=Fo||xn&&Jo(new xn)!=$o||To&&Jo(To.resolve())!=Do||Bo&&Jo(new Bo)!=Wo||ae&&Jo(new ae)!=zo)&&(Jo=function(e){var t=x(e),n="[object Object]"==t?e.constructor:void 0,r=n?Z(n):"";if(r)switch(r){case Uo:return Fo;case Vo:return $o;case qo:return Do;case Ko:return Wo;case Ho:return zo}return t});var Yo=Jo,Go=Object.prototype.hasOwnProperty;var Zo=p.Uint8Array;function Qo(e){var t=new e.constructor(e.byteLength);return new Zo(t).set(new Zo(e)),t}var Xo=/\w*$/;var ei=f?f.prototype:void 0,ti=ei?ei.valueOf:void 0;function ni(e,t){var n=t?Qo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ri(e,t,n){var r,o=e.constructor;switch(t){case"[object ArrayBuffer]":return Qo(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return function(e,t){var n=t?Qo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return ni(e,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,Xo.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Symbol]":return r=e,ti?Object(ti.call(r)):{}}}function oi(e){return"function"!=typeof e.constructor||Et(e)?{}:pe(zn(e))}var ii=zt&&zt.isMap,ai=ii?Bt(ii):function(e){return _(e)&&"[object Map]"==Yo(e)};var si=zt&&zt.isSet,li=si?Bt(si):function(e){return _(e)&&"[object Set]"==Yo(e)},ui="[object Arguments]",ci="[object Function]",di="[object Object]",pi={};function fi(e,t,n,r,o,i){var a,s=1&t,l=2&t,u=4&t;if(n&&(a=o?n(e,r,o,i):n(e)),void 0!==a)return a;if(!M(e))return e;var c=k(e);if(c){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Go.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return Ae(e,a)}else{var d=Yo(e),p=d==ci||"[object GeneratorFunction]"==d;if(Mt(e))return So(e,s);if(d==di||d==ui||p&&!o){if(a=l||p?{}:oi(e),!s)return l?function(e,t){return gt(e,Ro(e),t)}(e,function(e,t){return e&>(t,nn(t),e)}(a,e)):function(e,t){return gt(e,jo(e),t)}(e,yo(a,e))}else{if(!pi[d])return o?e:{};a=ri(e,d,s)}}i||(i=new mo);var f=i.get(e);if(f)return f;i.set(e,a),li(e)?e.forEach(function(r){a.add(fi(r,t,n,r,e,i))}):ai(e)&&e.forEach(function(r,o){a.set(o,fi(r,t,n,o,e,i))});var h=c?void 0:(u?l?No:Io:l?nn:Gt)(e);return Ve(h||e,function(r,o){h&&(r=e[o=r]),ht(a,o,fi(r,t,n,o,e,i))}),a}pi[ui]=pi["[object Array]"]=pi["[object ArrayBuffer]"]=pi["[object DataView]"]=pi["[object Boolean]"]=pi["[object Date]"]=pi["[object Float32Array]"]=pi["[object Float64Array]"]=pi["[object Int8Array]"]=pi["[object Int16Array]"]=pi["[object Int32Array]"]=pi["[object Map]"]=pi["[object Number]"]=pi[di]=pi["[object RegExp]"]=pi["[object Set]"]=pi["[object String]"]=pi["[object Symbol]"]=pi["[object Uint8Array]"]=pi["[object Uint8ClampedArray]"]=pi["[object Uint16Array]"]=pi["[object Uint32Array]"]=!0,pi["[object Error]"]=pi[ci]=pi["[object WeakMap]"]=!1;function hi(e){return fi(e,4)}function gi(e){return fi(e,5)}function vi(e,t){return fi(e,5,t="function"==typeof t?t:void 0)}function mi(e,t){return fi(e,4,t="function"==typeof t?t:void 0)}function yi(){return new Oe(this.value(),this.__chain__)}function bi(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o}function xi(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Nn(k(n)?Ae(n):[n],Bn(t,1))}function _i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new wn;++t<n;)this.add(e[t])}function wi(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Si(e,t){return e.has(t)}_i.prototype.add=_i.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},_i.prototype.has=function(e){return this.__data__.has(e)};function Ei(e,t,n,r,o,i){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,p=!0,f=2&n?new _i:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var h=e[d],g=t[d];if(r)var v=a?r(g,h,d,t,e,i):r(h,g,d,e,t,i);if(void 0!==v){if(v)continue;p=!1;break}if(f){if(!wi(t,function(e,t){if(!Si(f,t)&&(h===e||o(h,e,n,r,i)))return f.push(t)})){p=!1;break}}else if(h!==g&&!o(h,g,n,r,i)){p=!1;break}}return i.delete(e),i.delete(t),p}function ki(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Ci(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var Oi=f?f.prototype:void 0,Ai=Oi?Oi.valueOf:void 0;var ji=Object.prototype.hasOwnProperty;var Li="[object Arguments]",Ri="[object Array]",Pi="[object Object]",Ii=Object.prototype.hasOwnProperty;function Ni(e,t,n,r,o,i){var a=k(e),s=k(t),l=a?Ri:Yo(e),u=s?Ri:Yo(t),c=(l=l==Li?Pi:l)==Pi,d=(u=u==Li?Pi:u)==Pi,p=l==u;if(p&&Mt(e)){if(!Mt(t))return!1;a=!0,c=!1}if(p&&!c)return i||(i=new mo),a||Ut(e)?Ei(e,t,n,r,o,i):function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new Zo(e),new Zo(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return pt(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=ki;case"[object Set]":var l=1&r;if(s||(s=Ci),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var c=Ei(s(e),s(t),r,o,i,a);return a.delete(e),c;case"[object Symbol]":if(Ai)return Ai.call(e)==Ai.call(t)}return!1}(e,t,l,n,r,o,i);if(!(1&n)){var f=c&&Ii.call(e,"__wrapped__"),h=d&&Ii.call(t,"__wrapped__");if(f||h){var g=f?e.value():e,v=h?t.value():t;return i||(i=new mo),o(g,v,n,r,i)}}return!!p&&(i||(i=new mo),function(e,t,n,r,o,i){var a=1&n,s=Io(e),l=s.length;if(l!=Io(t).length&&!a)return!1;for(var u=l;u--;){var c=s[u];if(!(a?c in t:ji.call(t,c)))return!1}var d=i.get(e),p=i.get(t);if(d&&p)return d==t&&p==e;var f=!0;i.set(e,t),i.set(t,e);for(var h=a;++u<l;){var g=e[c=s[u]],v=t[c];if(r)var m=a?r(v,g,c,t,e,i):r(g,v,c,e,t,i);if(!(void 0===m?g===v||o(g,v,n,r,i):m)){f=!1;break}h||(h="constructor"==c)}if(f&&!h){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(f=!1)}return i.delete(e),i.delete(t),f}(e,t,n,r,o,i))}function Mi(e,t,n,r,o){return e===t||(null==e||null==t||!_(e)&&!_(t)?e!=e&&t!=t:Ni(e,t,n,r,Mi,o))}function Ti(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){var l=(s=n[o])[0],u=e[l],c=s[1];if(a&&s[2]){if(void 0===u&&!(l in e))return!1}else{var d=new mo;if(r)var p=r(u,c,l,e,t,d);if(!(void 0===p?Mi(c,u,3,r,d):p))return!1}}return!0}function Bi(e){return e==e&&!M(e)}function $i(e){for(var t=Gt(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Bi(o)]}return t}function Di(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}function Wi(e){var t=$i(e);return 1==t.length&&t[0][2]?Di(t[0][0],t[0][1]):function(n){return n===e||Ti(n,e,t)}}function zi(e,t){return null!=e&&t in Object(e)}function Fi(e,t,n){for(var r=-1,o=(t=jn(t,e)).length,i=!1;++r<o;){var a=Ln(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&bt(o)&&et(a,o)&&(k(e)||Lt(e))}function Ui(e,t){return null!=e&&Fi(e,t,zi)}function Vi(e,t){return pn(e)&&Bi(t)?Di(Ln(e),t):function(n){var r=Pn(n,e);return void 0===r&&r===t?Ui(n,e):Mi(t,r,3)}}function qi(e){return function(t){return null==t?void 0:t[e]}}function Ki(e){return pn(e)?qi(Ln(e)):function(e){return function(t){return Rn(t,e)}}(e)}function Hi(e){return"function"==typeof e?e:null==e?q:"object"==typeof e?k(e)?Vi(e[0],e[1]):Wi(e):Ki(e)}function Ji(e){var t=null==e?0:e.length,n=Hi;return e=t?E(e,function(e){if("function"!=typeof e[1])throw new TypeError("Expected a function");return[n(e[0]),e[1]]}):[],yt(function(n){for(var r=-1;++r<t;){var o=e[r];if(he(o[0],this,n))return he(o[1],this,n)}})}function Yi(e,t,n){var r=n.length;if(null==e)return!r;for(e=Object(e);r--;){var o=n[r],i=t[o],a=e[o];if(void 0===a&&!(o in e)||!i(a))return!1}return!0}function Gi(e){return function(e){var t=Gt(e);return function(n){return Yi(n,e,t)}}(fi(e,1))}function Zi(e,t){return null==t||Yi(e,t,Gt(t))}function Qi(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Xi(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}var ea=Xi();function ta(e,t){return e&&ea(e,t,Gt)}function na(e,t){return function(n,r){if(null==n)return n;if(!xt(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}var ra=na(ta);function oa(e,t,n,r){return ra(e,function(e,o,i){t(r,e,n(e),i)}),r}function ia(e,t){return function(n,r){var o=k(n)?Qi:oa,i=t?t():{};return o(n,e,Hi(r),i)}}var aa=Object.prototype.hasOwnProperty,sa=ia(function(e,t,n){aa.call(e,n)?++e[n]:dt(e,n,1)}),la=sa;function ua(e,t){var n=pe(e);return null==t?n:yo(n,t)}function ca(e,t,n){var r=ut(e,8,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=ca.placeholder,r}ca.placeholder={};function da(e,t,n){var r=ut(e,16,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=da.placeholder,r}da.placeholder={};var pa=function(){return p.Date.now()},fa=Math.max,ha=Math.min;function ga(e,t,n){var r,o,i,a,s,l,u=0,c=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=r,i=o;return r=o=void 0,u=t,a=e.apply(i,n)}function h(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-u>=i}function g(){var e=pa();if(h(e))return v(e);s=setTimeout(g,function(e){var n=t-(e-l);return d?ha(n,i-(e-u)):n}(e))}function v(e){return s=void 0,p&&r?f(e):(r=o=void 0,a)}function m(){var e=pa(),n=h(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return u=e,s=setTimeout(g,t),c?f(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(g,t),f(l)}return void 0===s&&(s=setTimeout(g,t)),a}return t=W(t)||0,M(n)&&(c=!!n.leading,i=(d="maxWait"in n)?fa(W(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),m.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=o=s=void 0},m.flush=function(){return void 0===s?a:v(pa())},m}function va(e,t){return null==e||e!=e?t:e}var ma=Object.prototype,ya=ma.hasOwnProperty,ba=yt(function(e,t){e=Object(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&_t(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],a=nn(i),s=-1,l=a.length;++s<l;){var u=a[s],c=e[u];(void 0===c||pt(c,ma[u])&&!ya.call(e,u))&&(e[u]=i[u])}return e}),xa=ba;function _a(e,t,n){(void 0!==n&&!pt(e[t],n)||void 0===n&&!(t in e))&&dt(e,t,n)}function wa(e){return _(e)&&xt(e)}function Sa(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function Ea(e){return gt(e,nn(e))}function ka(e,t,n,r,o){e!==t&&ea(t,function(i,a){if(o||(o=new mo),M(i))!function(e,t,n,r,o,i,a){var s=Sa(e,n),l=Sa(t,n),u=a.get(l);if(u)_a(e,n,u);else{var c=i?i(s,l,n+"",e,t,a):void 0,d=void 0===c;if(d){var p=k(l),f=!p&&Mt(l),h=!p&&!f&&Ut(l);c=l,p||f||h?k(s)?c=s:wa(s)?c=Ae(s):f?(d=!1,c=So(l,!0)):h?(d=!1,c=ni(l,!0)):c=[]:Hn(l)||Lt(l)?(c=s,Lt(s)?c=Ea(s):M(s)&&!K(s)||(c=oi(l))):d=!1}d&&(a.set(l,c),o(c,l,r,i,a),a.delete(l)),_a(e,n,c)}}(e,t,a,n,ka,r,o);else{var s=r?r(Sa(e,a),i,a+"",e,t,o):void 0;void 0===s&&(s=i),_a(e,a,s)}},nn)}function Ca(e,t,n,r,o,i){return M(e)&&M(t)&&(i.set(t,e),ka(e,t,void 0,Ca,i),i.delete(t)),e}var Oa=wt(function(e,t,n,r){ka(e,t,n,r)}),Aa=Oa,ja=yt(function(e){return e.push(void 0,Ca),he(Aa,void 0,e)});function La(e,t,n){if("function"!=typeof e)throw new TypeError("Expected a function");return setTimeout(function(){e.apply(void 0,n)},t)}var Ra=yt(function(e,t){return La(e,1,t)}),Pa=Ra,Ia=yt(function(e,t,n){return La(e,W(t)||0,n)}),Na=Ia;function Ma(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Ta(e,t,n,r){var o=-1,i=Je,a=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=E(t,Bt(n))),r?(i=Ma,a=!1):t.length>=200&&(i=Si,a=!1,t=new _i(t));e:for(;++o<s;){var c=e[o],d=null==n?c:n(c);if(c=r||0!==c?c:0,a&&d==d){for(var p=u;p--;)if(t[p]===d)continue e;l.push(c)}else i(t,d,r)||l.push(c)}return l}var Ba=yt(function(e,t){return wa(e)?Ta(e,Bn(t,1,wa,!0)):[]}),$a=Ba;function Da(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var Wa=yt(function(e,t){var n=Da(t);return wa(n)&&(n=void 0),wa(e)?Ta(e,Bn(t,1,wa,!0),Hi(n)):[]}),za=Wa,Fa=yt(function(e,t){var n=Da(t);return wa(n)&&(n=void 0),wa(e)?Ta(e,Bn(t,1,wa,!0),void 0,n):[]}),Ua=Fa,Va=j(function(e,t){return e/t},1);function qa(e,t,n){var r=null==e?0:e.length;return r?or(e,(t=n||void 0===t?1:U(t))<0?0:t,r):[]}function Ka(e,t,n){var r=null==e?0:e.length;return r?or(e,0,(t=r-(t=n||void 0===t?1:U(t)))<0?0:t):[]}function Ha(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?or(e,r?0:i,r?i+1:o):or(e,r?i+1:0,r?o:i)}function Ja(e,t){return e&&e.length?Ha(e,Hi(t),!0,!0):[]}function Ya(e,t){return e&&e.length?Ha(e,Hi(t),!0):[]}function Ga(e){return"function"==typeof e?e:q}function Za(e,t){return(k(e)?Ve:ra)(e,Ga(t))}function Qa(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}var Xa=Xi(!0);function es(e,t){return e&&Xa(e,t,Gt)}var ts=na(es,!0);function ns(e,t){return(k(e)?Qa:ts)(e,Ga(t))}function rs(e,t,n){e=An(e),t=A(t);var r=e.length,o=n=void 0===n?r:go(U(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t}function os(e){return function(t){var n=Yo(t);return"[object Map]"==n?ki(t):"[object Set]"==n?function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}(t):function(e,t){return E(t,function(t){return[t,e[t]]})}(t,e(t))}}var is=os(Gt),as=os(nn),ss=kr({"&":"&","<":"<",">":">",'"':""","'":"'"}),ls=/[&<>"']/g,us=RegExp(ls.source);function cs(e){return(e=An(e))&&us.test(e)?e.replace(ls,ss):e}var ds=/[\\^$.*+?()[\]{}|]/g,ps=RegExp(ds.source);function fs(e){return(e=An(e))&&ps.test(e)?e.replace(ds,"\\$&"):e}function hs(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function gs(e,t){var n=!0;return ra(e,function(e,r,o){return n=!!t(e,r,o)}),n}function vs(e,t,n){var r=k(e)?hs:gs;return n&&_t(e,t,n)&&(t=void 0),r(e,Hi(t))}function ms(e){return e?go(U(e),0,4294967295):0}function ys(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&_t(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=U(n))<0&&(n=-n>o?0:o+n),(r=void 0===r||r>o?o:U(r))<0&&(r+=o),r=n>r?0:ms(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]}function bs(e,t){var n=[];return ra(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}function xs(e,t){return(k(e)?Eo:bs)(e,Hi(t))}function _s(e){return function(t,n,r){var o=Object(t);if(!xt(t)){var i=Hi(n);t=Gt(t),n=function(e){return i(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:void 0}}var ws=Math.max;function Ss(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:U(n);return o<0&&(o=ws(r+o,0)),qe(e,Hi(t),o)}var Es=_s(Ss);function ks(e,t,n){var r;return n(e,function(e,n,o){if(t(e,n,o))return r=n,!1}),r}function Cs(e,t){return ks(e,Hi(t),ta)}var Os=Math.max,As=Math.min;function js(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return void 0!==n&&(o=U(n),o=n<0?Os(r+o,0):As(o,r-1)),qe(e,Hi(t),o,!0)}var Ls=_s(js);function Rs(e,t){return ks(e,Hi(t),es)}function Ps(e){return e&&e.length?e[0]:void 0}function Is(e,t){var n=-1,r=xt(e)?Array(e.length):[];return ra(e,function(e,o,i){r[++n]=t(e,o,i)}),r}function Ns(e,t){return(k(e)?E:Is)(e,Hi(t))}function Ms(e,t){return Bn(Ns(e,t),1)}var Ts=1/0;function Bs(e,t){return Bn(Ns(e,t),Ts)}function $s(e,t,n){return n=void 0===n?1:U(n),Bn(Ns(e,t),n)}var Ds=1/0;function Ws(e){return(null==e?0:e.length)?Bn(e,Ds):[]}function zs(e,t){return(null==e?0:e.length)?Bn(e,t=void 0===t?1:U(t)):[]}function Fs(e){return ut(e,512)}var Us=lo("floor");function Vs(e){return Dn(function(t){var n=t.length,r=n,o=Oe.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if("function"!=typeof i)throw new TypeError("Expected a function");if(o&&!a&&"wrapper"==Ce(i))var a=new Oe([],!0)}for(r=a?r:n;++r<n;){var s=Ce(i=t[r]),l="wrapper"==s?Se(i):void 0;a=l&&Pe(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?a[Ce(l[0])].apply(a,l[3]):1==i.length&&Pe(i)?a[s]():a.thru(i)}return function(){var e=arguments,r=e[0];if(a&&1==e.length&&k(r))return a.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}})}var qs=Vs(),Ks=Vs(!0);function Hs(e,t){return null==e?e:ea(e,Ga(t),nn)}function Js(e,t){return null==e?e:Xa(e,Ga(t),nn)}function Ys(e,t){return e&&ta(e,Ga(t))}function Gs(e,t){return e&&es(e,Ga(t))}function Zs(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r}function Qs(e,t){return Eo(t,function(t){return K(e[t])})}function Xs(e){return null==e?[]:Qs(e,Gt(e))}function el(e){return null==e?[]:Qs(e,nn(e))}var tl=Object.prototype.hasOwnProperty,nl=ia(function(e,t,n){tl.call(e,n)?e[n].push(t):dt(e,n,[t])}),rl=nl;function ol(e,t){return e>t}function il(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=W(t),n=W(n)),e(t,n)}}var al=il(ol),sl=il(function(e,t){return e>=t}),ll=Object.prototype.hasOwnProperty;function ul(e,t){return null!=e&&ll.call(e,t)}function cl(e,t){return null!=e&&Fi(e,t,ul)}var dl=Math.max,pl=Math.min;function fl(e,t,n){return t=F(t),void 0===n?(n=t,t=0):n=F(n),function(e,t,n){return e>=pl(t,n)&&e<dl(t,n)}(e=W(e),t,n)}function hl(e){return"string"==typeof e||!k(e)&&_(e)&&"[object String]"==x(e)}function gl(e,t){return E(t,function(t){return e[t]})}function vl(e){return null==e?[]:gl(e,Gt(e))}var ml=Math.max;function yl(e,t,n,r){e=xt(e)?e:vl(e),n=n&&!r?U(n):0;var o=e.length;return n<0&&(n=ml(o+n,0)),hl(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&He(e,t,n)>-1}var bl=Math.max;function xl(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:U(n);return o<0&&(o=bl(r+o,0)),He(e,t,o)}function _l(e){return(null==e?0:e.length)?or(e,0,-1):[]}var wl=Math.min;function Sl(e,t,n){for(var r=n?Ma:Je,o=e[0].length,i=e.length,a=i,s=Array(i),l=1/0,u=[];a--;){var c=e[a];a&&t&&(c=E(c,Bt(t))),l=wl(c.length,l),s[a]=!n&&(t||o>=120&&c.length>=120)?new _i(a&&c):void 0}c=e[0];var d=-1,p=s[0];e:for(;++d<o&&u.length<l;){var f=c[d],h=t?t(f):f;if(f=n||0!==f?f:0,!(p?Si(p,h):r(u,h,n))){for(a=i;--a;){var g=s[a];if(!(g?Si(g,h):r(e[a],h,n)))continue e}p&&p.push(h),u.push(f)}}return u}function El(e){return wa(e)?e:[]}var kl=yt(function(e){var t=E(e,El);return t.length&&t[0]===e[0]?Sl(t):[]}),Cl=yt(function(e){var t=Da(e),n=E(e,El);return t===Da(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?Sl(n,Hi(t)):[]}),Ol=Cl,Al=yt(function(e){var t=Da(e),n=E(e,El);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?Sl(n,void 0,t):[]});function jl(e,t){return function(n,r){return function(e,t,n,r){return ta(e,function(e,o,i){t(r,n(e),o,i)}),r}(n,e,t(r),{})}}var Ll=Object.prototype.toString,Rl=jl(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ll.call(t)),e[t]=n},De(q)),Pl=Rl,Il=Object.prototype,Nl=Il.hasOwnProperty,Ml=Il.toString,Tl=jl(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ml.call(t)),Nl.call(e,t)?e[t].push(n):e[t]=[n]},Hi),Bl=Tl;function $l(e,t){return t.length<2?e:Rn(e,or(t,0,-1))}function Dl(e,t,n){var r=null==(e=$l(e,t=jn(t,e)))?e:e[Ln(Da(t))];return null==r?void 0:he(r,e,n)}var Wl=yt(Dl),zl=yt(function(e,t,n){var r=-1,o="function"==typeof t,i=xt(e)?Array(e.length):[];return ra(e,function(e){i[++r]=o?he(t,e,n):Dl(e,t,n)}),i}),Fl=zl;var Ul=zt&&zt.isArrayBuffer,Vl=Ul?Bt(Ul):function(e){return _(e)&&"[object ArrayBuffer]"==x(e)};function ql(e){return!0===e||!1===e||_(e)&&"[object Boolean]"==x(e)}var Kl=zt&&zt.isDate,Hl=Kl?Bt(Kl):function(e){return _(e)&&"[object Date]"==x(e)};function Jl(e){return _(e)&&1===e.nodeType&&!Hn(e)}var Yl=Object.prototype.hasOwnProperty;function Gl(e){if(null==e)return!0;if(xt(e)&&(k(e)||"string"==typeof e||"function"==typeof e.splice||Mt(e)||Ut(e)||Lt(e)))return!e.length;var t=Yo(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(Et(e))return!Yt(e).length;for(var n in e)if(Yl.call(e,n))return!1;return!0}function Zl(e,t){return Mi(e,t)}function Ql(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?Mi(e,t,void 0,n):!!r}var Xl=p.isFinite;function eu(e){return"number"==typeof e&&Xl(e)}function tu(e){return"number"==typeof e&&e==U(e)}function nu(e,t){return e===t||Ti(e,t,$i(t))}function ru(e,t,n){return n="function"==typeof n?n:void 0,Ti(e,t,$i(t),n)}function ou(e){return"number"==typeof e||_(e)&&"[object Number]"==x(e)}function iu(e){return ou(e)&&e!=+e}var au=J?K:Rt;function su(e){if(au(e))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return oe(e)}function lu(e){return null==e}function uu(e){return null===e}var cu=zt&&zt.isRegExp,du=cu?Bt(cu):function(e){return _(e)&&"[object RegExp]"==x(e)},pu=9007199254740991;function fu(e){return tu(e)&&e>=-9007199254740991&&e<=pu}function hu(e){return void 0===e}function gu(e){return _(e)&&"[object WeakMap]"==Yo(e)}function vu(e){return _(e)&&"[object WeakSet]"==x(e)}function mu(e){return Hi("function"==typeof e?e:fi(e,1))}var yu=Array.prototype.join;function bu(e,t){return null==e?"":yu.call(e,t)}var xu=no(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),_u=xu,wu=ia(function(e,t,n){dt(e,n,t)}),Su=wu;var Eu=Math.max,ku=Math.min;function Cu(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=U(n))<0?Eu(r+o,0):ku(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):qe(e,Ke,o,!0)}var Ou=no(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Au=Ou,ju=_r("toLowerCase");function Lu(e,t){return e<t}var Ru=il(Lu),Pu=il(function(e,t){return e<=t});function Iu(e,t){var n={};return t=Hi(t),ta(e,function(e,r,o){dt(n,t(e,r,o),e)}),n}function Nu(e,t){var n={};return t=Hi(t),ta(e,function(e,r,o){dt(n,r,t(e,r,o))}),n}function Mu(e){return Wi(fi(e,1))}function Tu(e,t){return Vi(e,fi(t,1))}function Bu(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(null!=a&&(void 0===s?a==a&&!w(a):n(a,s)))var s=a,l=i}return l}function $u(e){return e&&e.length?Bu(e,q,ol):void 0}function Du(e,t){return e&&e.length?Bu(e,Hi(t),ol):void 0}function Wu(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n}function zu(e,t){var n=null==e?0:e.length;return n?Wu(e,t)/n:NaN}function Fu(e){return zu(e,q)}function Uu(e,t){return zu(e,Hi(t))}var Vu=wt(function(e,t,n){ka(e,t,n)}),qu=Vu,Ku=yt(function(e,t){return function(n){return Dl(n,e,t)}}),Hu=Ku,Ju=yt(function(e,t){return function(n){return Dl(e,n,t)}}),Yu=Ju;function Gu(e){return e&&e.length?Bu(e,q,Lu):void 0}function Zu(e,t){return e&&e.length?Bu(e,Hi(t),Lu):void 0}function Qu(e,t,n){var r=Gt(t),o=Qs(t,r),i=!(M(n)&&"chain"in n&&!n.chain),a=K(e);return Ve(o,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Ae(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Nn([this.value()],arguments))})}),e}var Xu=j(function(e,t){return e*t},1);function ec(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}var tc=f?f.iterator:void 0;function nc(e){if(!e)return[];if(xt(e))return hl(e)?xr(e):Ae(e);if(tc&&e[tc])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[tc]());var t=Yo(e);return("[object Map]"==t?ki:"[object Set]"==t?Ci:vl)(e)}function rc(){void 0===this.__values__&&(this.__values__=nc(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}}function oc(e,t){var n=e.length;if(n)return et(t+=t<0?n:0,n)?e[t]:void 0}function ic(e,t){return e&&e.length?oc(e,U(t)):void 0}function ac(e){return e=U(e),yt(function(t){return oc(t,e)})}var sc=Object.prototype.hasOwnProperty;function lc(e,t){var n=-1,r=(t=jn(t,e)).length;if(!r)return!0;for(var o=null==e||"object"!=typeof e&&"function"!=typeof e;++n<r;){var i=t[n];if("string"==typeof i){if("__proto__"===i&&!sc.call(e,"__proto__"))return!1;if("constructor"===i&&n+1<r&&"string"==typeof t[n+1]&&"prototype"===t[n+1]){if(o&&0===n)continue;return!1}}}var a=$l(e,t);return null==a||delete a[Ln(Da(t))]}function uc(e){return Hn(e)?void 0:e}var cc=Dn(function(e,t){var n={};if(null==e)return n;var r=!1;t=E(t,function(t){return t=jn(t,e),r||(r=t.length>1),t}),gt(e,No(e),n),r&&(n=fi(n,7,uc));for(var o=t.length;o--;)lc(n,t[o]);return n}),dc=cc;function pc(e,t,n,r){if(!M(e))return e;for(var o=-1,i=(t=jn(t,e)).length,a=i-1,s=e;null!=s&&++o<i;){var l=Ln(t[o]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=a){var c=s[l];void 0===(u=r?r(c,l,s):void 0)&&(u=M(c)?c:et(t[o+1])?[]:{})}ht(s,l,u),s=s[l]}return e}function fc(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=Rn(e,a);n(s,a)&&pc(i,jn(a,e),s)}return i}function hc(e,t){if(null==e)return{};var n=E(No(e),function(e){return[e]});return t=Hi(t),fc(e,n,function(e,n){return t(e,n[0])})}function gc(e,t){return hc(e,ec(Hi(t)))}function vc(e){return Zn(2,e)}function mc(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=w(e),a=void 0!==t,s=null===t,l=t==t,u=w(t);if(!s&&!u&&!i&&e>t||i&&a&&l&&!s&&!u||r&&a&&l||!n&&l||!o)return 1;if(!r&&!i&&!u&&e<t||u&&n&&o&&!r&&!i||s&&n&&o||!a&&o||!l)return-1}return 0}function yc(e,t,n){t=t.length?E(t,function(e){return k(e)?function(t){return Rn(t,1===e.length?e[0]:e)}:e}):[q];var r=-1;t=E(t,Bt(Hi));var o=Is(e,function(e,n,o){var i=E(t,function(t){return t(e)});return{criteria:i,index:++r,value:e}});return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var l=mc(o[r],i[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)})}function bc(e,t,n,r){return null==e?[]:(k(t)||(t=null==t?[]:[t]),k(n=r?void 0:n)||(n=null==n?[]:[n]),yc(e,t,n))}function xc(e){return Dn(function(t){return t=E(t,Bt(Hi)),yt(function(n){var r=this;return e(t,function(e){return he(e,r,n)})})})}var _c=xc(E),wc=yt,Sc=Math.min,Ec=wc(function(e,t){var n=(t=1==t.length&&k(t[0])?E(t[0],Bt(Hi)):E(Bn(t,1),Bt(Hi))).length;return yt(function(r){for(var o=-1,i=Sc(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return he(e,this,r)})}),kc=Ec,Cc=xc(hs),Oc=xc(wi),Ac=Math.floor;function jc(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=Ac(t/2))&&(e+=e)}while(t);return n}var Lc=qi("length"),Rc="\\ud800-\\udfff",Pc="["+Rc+"]",Ic="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Nc="\\ud83c[\\udffb-\\udfff]",Mc="[^"+Rc+"]",Tc="(?:\\ud83c[\\udde6-\\uddff]){2}",Bc="[\\ud800-\\udbff][\\udc00-\\udfff]",$c="(?:"+Ic+"|"+Nc+")"+"?",Dc="[\\ufe0e\\ufe0f]?",Wc=Dc+$c+("(?:\\u200d(?:"+[Mc,Tc,Bc].join("|")+")"+Dc+$c+")*"),zc="(?:"+[Mc+Ic+"?",Ic,Tc,Bc,Pc].join("|")+")",Fc=RegExp(Nc+"(?="+Nc+")|"+zc+Wc,"g");function Uc(e){return sr(e)?function(e){for(var t=Fc.lastIndex=0;Fc.test(e);)++t;return t}(e):Lc(e)}var Vc=Math.ceil;function qc(e,t){var n=(t=void 0===t?" ":A(t)).length;if(n<2)return n?jc(t,e):t;var r=jc(t,Vc(e/Uc(t)));return sr(t)?ir(xr(r),0,e).join(""):r.slice(0,e)}var Kc=Math.ceil,Hc=Math.floor;function Jc(e,t,n){e=An(e);var r=(t=U(t))?Uc(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return qc(Hc(o),n)+e+qc(Kc(o),n)}function Yc(e,t,n){e=An(e);var r=(t=U(t))?Uc(e):0;return t&&r<t?e+qc(t-r,n):e}function Gc(e,t,n){e=An(e);var r=(t=U(t))?Uc(e):0;return t&&r<t?qc(t-r,n)+e:e}var Zc=/^\s+/,Qc=p.parseInt;function Xc(e,t,n){return n||null==t?t=0:t&&(t=+t),Qc(An(e).replace(Zc,""),t||0)}var ed=yt(function(e,t){return ut(e,32,void 0,t,rt(t,Qe(ed)))});ed.placeholder={};var td=ed,nd=yt(function(e,t){return ut(e,64,void 0,t,rt(t,Qe(nd)))});nd.placeholder={};var rd=nd,od=ia(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),id=od;var ad=Dn(function(e,t){return null==e?{}:function(e,t){return fc(e,t,function(t,n){return Ui(e,n)})}(e,t)}),sd=ad;function ld(e){for(var t,n=this;n instanceof be;){var r=je(n);r.__index__=0,r.__values__=void 0,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t}function ud(e){return function(t){return null==e?void 0:Rn(e,t)}}function cd(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}var dd=Array.prototype.splice;function pd(e,t,n,r){var o=r?cd:He,i=-1,a=t.length,s=e;for(e===t&&(t=Ae(t)),n&&(s=E(e,Bt(n)));++i<a;)for(var l=0,u=t[i],c=n?n(u):u;(l=o(s,c,l,r))>-1;)s!==e&&dd.call(s,l,1),dd.call(e,l,1);return e}function fd(e,t){return e&&e.length&&t&&t.length?pd(e,t):e}var hd=yt(fd);function gd(e,t,n){return e&&e.length&&t&&t.length?pd(e,t,Hi(n)):e}function vd(e,t,n){return e&&e.length&&t&&t.length?pd(e,t,void 0,n):e}var md=Array.prototype.splice;function yd(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;et(o)?md.call(e,o,1):lc(e,o)}}return e}var bd=Dn(function(e,t){var n=null==e?0:e.length,r=In(e,t);return yd(e,E(t,function(e){return et(e,n)?+e:e}).sort(mc)),r}),xd=bd,_d=Math.floor,wd=Math.random;function Sd(e,t){return e+_d(wd()*(t-e+1))}var Ed=parseFloat,kd=Math.min,Cd=Math.random;function Od(e,t,n){if(n&&"boolean"!=typeof n&&_t(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=F(e),void 0===t?(t=e,e=0):t=F(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Cd();return kd(e+o*(t-e+Ed("1e-"+((o+"").length-1))),t)}return Sd(e,t)}var Ad=Math.ceil,jd=Math.max;function Ld(e){return function(t,n,r){return r&&"number"!=typeof r&&_t(t,n,r)&&(n=r=void 0),t=F(t),void 0===n?(n=t,t=0):n=F(n),function(e,t,n,r){for(var o=-1,i=jd(Ad((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a}(t,n,r=void 0===r?t<n?1:-1:F(r),e)}}var Rd=Ld(),Pd=Ld(!0),Id=Dn(function(e,t){return ut(e,256,void 0,void 0,void 0,t)}),Nd=Id;function Md(e,t,n,r,o){return o(e,function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)}),n}function Td(e,t,n){var r=k(e)?Er:Md,o=arguments.length<3;return r(e,Hi(t),n,o,ra)}function Bd(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function $d(e,t,n){var r=k(e)?Bd:Md,o=arguments.length<3;return r(e,Hi(t),n,o,ts)}function Dd(e,t){return(k(e)?Eo:bs)(e,ec(Hi(t)))}function Wd(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=Hi(t);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return yd(e,o),n}function zd(e,t,n){return t=(n?_t(e,t,n):void 0===t)?1:U(t),jc(An(e),t)}function Fd(){var e=arguments,t=An(e[0]);return e.length<3?t:t.replace(e[1],e[2])}function Ud(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return yt(e,t=void 0===t?t:U(t))}function Vd(e,t,n){var r=-1,o=(t=jn(t,e)).length;for(o||(o=1,e=void 0);++r<o;){var i=null==e?void 0:e[Ln(t[r])];void 0===i&&(r=o,i=n),e=K(i)?i.call(e):i}return e}var qd=Array.prototype.reverse;function Kd(e){return null==e?e:qd.call(e)}var Hd=lo("round");function Jd(e){var t=e.length;return t?e[Sd(0,t-1)]:void 0}function Yd(e){return Jd(vl(e))}function Gd(e){return(k(e)?Jd:Yd)(e)}function Zd(e,t){var n=-1,r=e.length,o=r-1;for(t=void 0===t?r:t;++n<t;){var i=Sd(n,o),a=e[i];e[i]=e[n],e[n]=a}return e.length=t,e}function Qd(e,t){return Zd(Ae(e),go(t,0,e.length))}function Xd(e,t){var n=vl(e);return Zd(n,go(t,0,n.length))}function ep(e,t,n){return t=(n?_t(e,t,n):void 0===t)?1:U(t),(k(e)?Qd:Xd)(e,t)}function tp(e,t,n){return null==e?e:pc(e,t,n)}function np(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:pc(e,t,n,r)}function rp(e){return Zd(Ae(e))}function op(e){return Zd(vl(e))}function ip(e){return(k(e)?rp:op)(e)}function ap(e){if(null==e)return 0;if(xt(e))return hl(e)?Uc(e):e.length;var t=Yo(e);return"[object Map]"==t||"[object Set]"==t?e.size:Yt(e).length}function sp(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&_t(e,t,n)?(t=0,n=r):(t=null==t?0:U(t),n=void 0===n?r:U(n)),or(e,t,n)):[]}var lp=no(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),up=lp;function cp(e,t){var n;return ra(e,function(e,r,o){return!(n=t(e,r,o))}),!!n}function dp(e,t,n){var r=k(e)?wi:cp;return n&&_t(e,t,n)&&(t=void 0),r(e,Hi(t))}var pp=yt(function(e,t){if(null==e)return[];var n=t.length;return n>1&&_t(e,t[0],t[1])?t=[]:n>2&&_t(t[0],t[1],t[2])&&(t=[t[0]]),yc(e,Bn(t,1),[])}),fp=pp,hp=Math.floor,gp=Math.min;function vp(e,t,n,r){var o=0,i=null==e?0:e.length;if(0===i)return 0;for(var a=(t=n(t))!=t,s=null===t,l=w(t),u=void 0===t;o<i;){var c=hp((o+i)/2),d=n(e[c]),p=void 0!==d,f=null===d,h=d==d,g=w(d);if(a)var v=r||h;else v=u?h&&(r||p):s?h&&p&&(r||!f):l?h&&p&&!f&&(r||!g):!f&&!g&&(r?d<=t:d<t);v?o=c+1:i=c}return gp(i,4294967294)}function mp(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!w(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return vp(e,t,q,n)}function yp(e,t){return mp(e,t)}function bp(e,t,n){return vp(e,t,Hi(n))}function xp(e,t){var n=null==e?0:e.length;if(n){var r=mp(e,t);if(r<n&&pt(e[r],t))return r}return-1}function _p(e,t){return mp(e,t,!0)}function wp(e,t,n){return vp(e,t,Hi(n),!0)}function Sp(e,t){if(null==e?0:e.length){var n=mp(e,t,!0)-1;if(pt(e[n],t))return n}return-1}function Ep(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!pt(s,l)){var l=s;i[o++]=0===a?0:a}}return i}function kp(e){return e&&e.length?Ep(e):[]}function Cp(e,t){return e&&e.length?Ep(e,Hi(t)):[]}function Op(e,t,n){return n&&"number"!=typeof n&&_t(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=An(e))&&("string"==typeof t||null!=t&&!du(t))&&!(t=A(t))&&sr(e)?ir(xr(e),0,n):e.split(t,n):[]}var Ap=Math.max;function jp(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return t=null==t?0:Ap(U(t),0),yt(function(n){var r=n[t],o=ir(n,0,t);return r&&Nn(o,r),he(e,this,o)})}var Lp=no(function(e,t,n){return e+(n?" ":"")+wr(t)}),Rp=Lp;function Pp(e,t,n){return e=An(e),n=null==n?0:go(U(n),0,e.length),t=A(t),e.slice(n,n+t.length)==t}function Ip(){return{}}function Np(){return""}function Mp(){return!0}var Tp=j(function(e,t){return e-t},0);function Bp(e){return e&&e.length?Wu(e,q):0}function $p(e,t){return e&&e.length?Wu(e,Hi(t)):0}function Dp(e){var t=null==e?0:e.length;return t?or(e,1,t):[]}function Wp(e,t,n){return e&&e.length?or(e,0,(t=n||void 0===t?1:U(t))<0?0:t):[]}function zp(e,t,n){var r=null==e?0:e.length;return r?or(e,(t=r-(t=n||void 0===t?1:U(t)))<0?0:t,r):[]}function Fp(e,t){return e&&e.length?Ha(e,Hi(t),!1,!0):[]}function Up(e,t){return e&&e.length?Ha(e,Hi(t)):[]}function Vp(e,t){return t(e),e}var qp=Object.prototype,Kp=qp.hasOwnProperty;function Hp(e,t,n,r){return void 0===e||pt(e,qp[n])&&!Kp.call(r,n)?t:e}var Jp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function Yp(e){return"\\"+Jp[e]}var Gp=/<%=([\s\S]+?)%>/g,Zp={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:Gp,variable:"",imports:{_:{escape:cs}}},Qp=/\b__p \+= '';/g,Xp=/\b(__p \+=) '' \+/g,ef=/(__e\(.*?\)|\b__t\)) \+\n'';/g,tf=/[()=,{}\[\]\/\s]/,nf=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rf=/($^)/,of=/['\n\r\u2028\u2029\\]/g,af=Object.prototype.hasOwnProperty;function sf(e,t,n){var r=Zp.imports._.templateSettings||Zp;n&&_t(e,t,n)&&(t=void 0),e=An(e),t=sn({},t,r,Hp);var o,i,a=sn({},t.imports,r.imports,Hp),s=Gt(a),l=gl(a,s),u=0,c=t.interpolate||rf,d="__p += '",p=RegExp((t.escape||rf).source+"|"+c.source+"|"+(c===Gp?nf:rf).source+"|"+(t.evaluate||rf).source+"|$","g"),f=af.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"";e.replace(p,function(t,n,r,a,s,l){return r||(r=a),d+=e.slice(u,l).replace(of,Yp),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),s&&(i=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t}),d+="';\n";var h=af.call(t,"variable")&&t.variable;if(h){if(tf.test(h))throw new Error("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(i?d.replace(Qp,""):d).replace(Xp,"$1").replace(ef,"$1;"),d="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=Gn(function(){return Function(s,f+"return "+d).apply(void 0,l)});if(g.source=d,Jn(g))throw g;return g}function lf(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return M(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ga(e,t,{leading:r,maxWait:t,trailing:o})}function uf(e,t){return t(e)}var cf=4294967295,df=Math.min;function pf(e,t){if((e=U(e))<1||e>9007199254740991)return[];var n=cf,r=df(e,cf);t=Ga(t),e-=cf;for(var o=kt(r,t);++n<e;)t(n);return o}function ff(){return this}function hf(e,t){var n=e;return n instanceof xe&&(n=n.value()),Er(t,function(e,t){return t.func.apply(t.thisArg,Nn([e],t.args))},n)}function gf(){return hf(this.__wrapped__,this.__actions__)}function vf(e){return An(e).toLowerCase()}function mf(e){return k(e)?E(e,Ln):w(e)?[e]:Ae(On(An(e)))}var yf=9007199254740991;function bf(e){return e?go(U(e),-9007199254740991,yf):0===e?e:0}function xf(e){return An(e).toUpperCase()}function _f(e,t,n){var r=k(e),o=r||Mt(e)||Ut(e);if(t=Hi(t),null==n){var i=e&&e.constructor;n=o?r?new i:[]:M(e)&&K(i)?pe(zn(e)):{}}return(o?Ve:ta)(e,function(e,r,o){return t(n,e,r,o)}),n}function wf(e,t){for(var n=e.length;n--&&He(t,e[n],0)>-1;);return n}function Sf(e,t){for(var n=-1,r=e.length;++n<r&&He(t,e[n],0)>-1;);return n}function Ef(e,t,n){if((e=An(e))&&(n||void 0===t))return N(e);if(!e||!(t=A(t)))return e;var r=xr(e),o=xr(t);return ir(r,Sf(r,o),wf(r,o)+1).join("")}function kf(e,t,n){if((e=An(e))&&(n||void 0===t))return e.slice(0,P(e)+1);if(!e||!(t=A(t)))return e;var r=xr(e);return ir(r,0,wf(r,xr(t))+1).join("")}var Cf=/^\s+/;function Of(e,t,n){if((e=An(e))&&(n||void 0===t))return e.replace(Cf,"");if(!e||!(t=A(t)))return e;var r=xr(e);return ir(r,Sf(r,xr(t))).join("")}var Af=/\w*$/;function jf(e,t){var n=30,r="...";if(M(t)){var o="separator"in t?t.separator:o;n="length"in t?U(t.length):n,r="omission"in t?A(t.omission):r}var i=(e=An(e)).length;if(sr(e)){var a=xr(e);i=a.length}if(n>=i)return e;var s=n-Uc(r);if(s<1)return r;var l=a?ir(a,0,s).join(""):e.slice(0,s);if(void 0===o)return l+r;if(a&&(s+=l.length-s),du(o)){if(e.slice(s).search(o)){var u,c=l;for(o.global||(o=RegExp(o.source,An(Af.exec(o))+"g")),o.lastIndex=0;u=o.exec(c);)var d=u.index;l=l.slice(0,void 0===d?s:d)}}else if(e.indexOf(A(o),s)!=s){var p=l.lastIndexOf(o);p>-1&&(l=l.slice(0,p))}return l+r}function Lf(e){return ct(e,1)}var Rf=kr({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Pf=/&(?:amp|lt|gt|quot|#39);/g,If=RegExp(Pf.source);function Nf(e){return(e=An(e))&&If.test(e)?e.replace(Pf,Rf):e}var Mf=Bo&&1/Ci(new Bo([,-0]))[1]==1/0?function(e){return new Bo(e)}:_e,Tf=Mf;function Bf(e,t,n){var r=-1,o=Je,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=Ma;else if(i>=200){var u=t?null:Tf(e);if(u)return Ci(u);a=!1,o=Si,l=new _i}else l=t?[]:s;e:for(;++r<i;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,a&&d==d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(c)}else o(l,d,n)||(l!==s&&l.push(d),s.push(c))}return s}var $f=yt(function(e){return Bf(Bn(e,1,wa,!0))}),Df=yt(function(e){var t=Da(e);return wa(t)&&(t=void 0),Bf(Bn(e,1,wa,!0),Hi(t))}),Wf=Df,zf=yt(function(e){var t=Da(e);return t="function"==typeof t?t:void 0,Bf(Bn(e,1,wa,!0),void 0,t)});function Ff(e){return e&&e.length?Bf(e):[]}function Uf(e,t){return e&&e.length?Bf(e,Hi(t)):[]}function Vf(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Bf(e,void 0,t):[]}var qf=0;function Kf(e){var t=++qf;return An(e)+t}function Hf(e,t){return null==e||lc(e,t)}var Jf=Math.max;function Yf(e){if(!e||!e.length)return[];var t=0;return e=Eo(e,function(e){if(wa(e))return t=Jf(e.length,t),!0}),kt(t,function(t){return E(e,qi(t))})}function Gf(e,t){if(!e||!e.length)return[];var n=Yf(e);return null==t?n:E(n,function(e){return he(t,void 0,e)})}function Zf(e,t,n,r){return pc(e,t,n(Rn(e,t)),r)}function Qf(e,t,n){return null==e?e:Zf(e,t,Ga(n))}function Xf(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:Zf(e,t,Ga(n),r)}var eh=no(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),th=eh;function nh(e){return null==e?[]:gl(e,nn(e))}var rh=yt(function(e,t){return wa(e)?Ta(e,t):[]}),oh=rh;function ih(e,t){return td(Ga(t),e)}var ah=Dn(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return In(t,e)};return!(t>1||this.__actions__.length)&&r instanceof xe&&et(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:uf,args:[o],thisArg:void 0}),new Oe(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(void 0),e})):this.thru(o)}),sh=ah;function lh(){return co(this)}function uh(){var e=this.__wrapped__;if(e instanceof xe){var t=e;return this.__actions__.length&&(t=new xe(this)),(t=t.reverse()).__actions__.push({func:uf,args:[Kd],thisArg:void 0}),new Oe(t,this.__chain__)}return this.thru(Kd)}function ch(e,t,n){var r=e.length;if(r<2)return r?Bf(e[0]):[];for(var o=-1,i=Array(r);++o<r;)for(var a=e[o],s=-1;++s<r;)s!=o&&(i[o]=Ta(i[o]||a,e[s],t,n));return Bf(Bn(i,1),t,n)}var dh=yt(function(e){return ch(Eo(e,wa))}),ph=yt(function(e){var t=Da(e);return wa(t)&&(t=void 0),ch(Eo(e,wa),Hi(t))}),fh=ph,hh=yt(function(e){var t=Da(e);return t="function"==typeof t?t:void 0,ch(Eo(e,wa),void 0,t)}),gh=yt(Yf);function vh(e,t,n){for(var r=-1,o=e.length,i=t.length,a={};++r<o;){var s=r<i?t[r]:void 0;n(a,e[r],s)}return a}function mh(e,t){return vh(e||[],t||[],ht)}function yh(e,t){return vh(e||[],t||[],pc)}var bh=yt(function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Gf(e,n)}),xh=bh,_h={chunk:ho,compact:bi,concat:xi,difference:$a,differenceBy:za,differenceWith:Ua,drop:qa,dropRight:Ka,dropRightWhile:Ja,dropWhile:Ya,fill:ys,findIndex:Ss,findLastIndex:js,first:Ps,flatten:$n,flattenDeep:Ws,flattenDepth:zs,fromPairs:Zs,head:Ps,indexOf:xl,initial:_l,intersection:kl,intersectionBy:Ol,intersectionWith:Al,join:bu,last:Da,lastIndexOf:Cu,nth:ic,pull:hd,pullAll:fd,pullAllBy:gd,pullAllWith:vd,pullAt:xd,remove:Wd,reverse:Kd,slice:sp,sortedIndex:yp,sortedIndexBy:bp,sortedIndexOf:xp,sortedLastIndex:_p,sortedLastIndexBy:wp,sortedLastIndexOf:Sp,sortedUniq:kp,sortedUniqBy:Cp,tail:Dp,take:Wp,takeRight:zp,takeRightWhile:Fp,takeWhile:Up,union:$f,unionBy:Wf,unionWith:zf,uniq:Ff,uniqBy:Uf,uniqWith:Vf,unzip:Yf,unzipWith:Gf,without:oh,xor:dh,xorBy:fh,xorWith:hh,zip:gh,zipObject:mh,zipObjectDeep:yh,zipWith:xh},wh={countBy:la,each:Za,eachRight:ns,every:vs,filter:xs,find:Es,findLast:Ls,flatMap:Ms,flatMapDeep:Bs,flatMapDepth:$s,forEach:Za,forEachRight:ns,groupBy:rl,includes:yl,invokeMap:Fl,keyBy:Su,map:Ns,orderBy:bc,partition:id,reduce:Td,reduceRight:$d,reject:Dd,sample:Gd,sampleSize:ep,shuffle:ip,size:ap,some:dp,sortBy:fp},Sh={now:pa},Eh={after:V,ary:ct,before:Zn,bind:Xn,bindKey:rr,curry:ca,curryRight:da,debounce:ga,defer:Pa,delay:Na,flip:Fs,memoize:Sn,negate:ec,once:vc,overArgs:kc,partial:td,partialRight:rd,rearg:Nd,rest:Ud,spread:jp,throttle:lf,unary:Lf,wrap:ih},kh={castArray:io,clone:hi,cloneDeep:gi,cloneDeepWith:vi,cloneWith:mi,conformsTo:Zi,eq:pt,gt:al,gte:sl,isArguments:Lt,isArray:k,isArrayBuffer:Vl,isArrayLike:xt,isArrayLikeObject:wa,isBoolean:ql,isBuffer:Mt,isDate:Hl,isElement:Jl,isEmpty:Gl,isEqual:Zl,isEqualWith:Ql,isError:Jn,isFinite:eu,isFunction:K,isInteger:tu,isLength:bt,isMap:ai,isMatch:nu,isMatchWith:ru,isNaN:iu,isNative:su,isNil:lu,isNull:uu,isNumber:ou,isObject:M,isObjectLike:_,isPlainObject:Hn,isRegExp:du,isSafeInteger:fu,isSet:li,isString:hl,isSymbol:w,isTypedArray:Ut,isUndefined:hu,isWeakMap:gu,isWeakSet:vu,lt:Ru,lte:Pu,toArray:nc,toFinite:F,toInteger:U,toLength:ms,toNumber:W,toPlainObject:Ea,toSafeInteger:bf,toString:An},Ch={add:L,ceil:uo,divide:Va,floor:Us,max:$u,maxBy:Du,mean:Fu,meanBy:Uu,min:Gu,minBy:Zu,multiply:Xu,round:Hd,subtract:Tp,sum:Bp,sumBy:$p},Oh=vo,Ah=fl,jh=Od,Lh={assign:Xt,assignIn:on,assignInWith:sn,assignWith:un,at:Wn,create:ua,defaults:xa,defaultsDeep:ja,entries:is,entriesIn:as,extend:on,extendWith:sn,findKey:Cs,findLastKey:Rs,forIn:Hs,forInRight:Js,forOwn:Ys,forOwnRight:Gs,functions:Xs,functionsIn:el,get:Pn,has:cl,hasIn:Ui,invert:Pl,invertBy:Bl,invoke:Wl,keys:Gt,keysIn:nn,mapKeys:Iu,mapValues:Nu,merge:qu,mergeWith:Aa,omit:dc,omitBy:gc,pick:sd,pickBy:hc,result:Vd,set:tp,setWith:np,toPairs:is,toPairsIn:as,transform:_f,unset:Hf,update:Qf,updateWith:Xf,values:vl,valuesIn:nh},Rh={at:sh,chain:co,commit:yi,lodash:Re,next:rc,plant:ld,reverse:uh,tap:Vp,thru:uf,toIterator:ff,toJSON:gf,value:gf,valueOf:gf,wrapperChain:lh},Ph={camelCase:oo,capitalize:Sr,deburr:jr,endsWith:rs,escape:cs,escapeRegExp:fs,kebabCase:_u,lowerCase:Au,lowerFirst:ju,pad:Jc,padEnd:Yc,padStart:Gc,parseInt:Xc,repeat:zd,replace:Fd,snakeCase:up,split:Op,startCase:Rp,startsWith:Pp,template:sf,templateSettings:Zp,toLower:vf,toUpper:xf,trim:Ef,trimEnd:kf,trimStart:Of,truncate:jf,unescape:Nf,upperCase:th,upperFirst:wr,words:eo},Ih={attempt:Gn,bindAll:tr,cond:Ji,conforms:Gi,constant:De,defaultTo:va,flow:qs,flowRight:Ks,identity:q,iteratee:mu,matches:Mu,matchesProperty:Tu,method:Hu,methodOf:Yu,mixin:Qu,noop:_e,nthArg:ac,over:_c,overEvery:Cc,overSome:Oc,property:Ki,propertyOf:ud,range:Rd,rangeRight:Pd,stubArray:ko,stubFalse:Rt,stubObject:Ip,stubString:Np,stubTrue:Mp,times:pf,toPath:mf,uniqueId:Kf};var Nh=Math.max,Mh=Math.min;var Th=Math.min;var Bh,$h=4294967295,Dh=Array.prototype,Wh=Object.prototype.hasOwnProperty,zh=f?f.iterator:void 0,Fh=Math.max,Uh=Math.min,Vh=function(e){return function(t,n,r){if(null==r){var o=M(n),i=o&&Gt(n),a=i&&i.length&&Qs(n,i);(a?a.length:o)||(r=n,n=t,t=this)}return e(t,n,r)}}(Qu);Re.after=Eh.after,Re.ary=Eh.ary,Re.assign=Lh.assign,Re.assignIn=Lh.assignIn,Re.assignInWith=Lh.assignInWith,Re.assignWith=Lh.assignWith,Re.at=Lh.at,Re.before=Eh.before,Re.bind=Eh.bind,Re.bindAll=Ih.bindAll,Re.bindKey=Eh.bindKey,Re.castArray=kh.castArray,Re.chain=Rh.chain,Re.chunk=_h.chunk,Re.compact=_h.compact,Re.concat=_h.concat,Re.cond=Ih.cond,Re.conforms=Ih.conforms,Re.constant=Ih.constant,Re.countBy=wh.countBy,Re.create=Lh.create,Re.curry=Eh.curry,Re.curryRight=Eh.curryRight,Re.debounce=Eh.debounce,Re.defaults=Lh.defaults,Re.defaultsDeep=Lh.defaultsDeep,Re.defer=Eh.defer,Re.delay=Eh.delay,Re.difference=_h.difference,Re.differenceBy=_h.differenceBy,Re.differenceWith=_h.differenceWith,Re.drop=_h.drop,Re.dropRight=_h.dropRight,Re.dropRightWhile=_h.dropRightWhile,Re.dropWhile=_h.dropWhile,Re.fill=_h.fill,Re.filter=wh.filter,Re.flatMap=wh.flatMap,Re.flatMapDeep=wh.flatMapDeep,Re.flatMapDepth=wh.flatMapDepth,Re.flatten=_h.flatten,Re.flattenDeep=_h.flattenDeep,Re.flattenDepth=_h.flattenDepth,Re.flip=Eh.flip,Re.flow=Ih.flow,Re.flowRight=Ih.flowRight,Re.fromPairs=_h.fromPairs,Re.functions=Lh.functions,Re.functionsIn=Lh.functionsIn,Re.groupBy=wh.groupBy,Re.initial=_h.initial,Re.intersection=_h.intersection,Re.intersectionBy=_h.intersectionBy,Re.intersectionWith=_h.intersectionWith,Re.invert=Lh.invert,Re.invertBy=Lh.invertBy,Re.invokeMap=wh.invokeMap,Re.iteratee=Ih.iteratee,Re.keyBy=wh.keyBy,Re.keys=Gt,Re.keysIn=Lh.keysIn,Re.map=wh.map,Re.mapKeys=Lh.mapKeys,Re.mapValues=Lh.mapValues,Re.matches=Ih.matches,Re.matchesProperty=Ih.matchesProperty,Re.memoize=Eh.memoize,Re.merge=Lh.merge,Re.mergeWith=Lh.mergeWith,Re.method=Ih.method,Re.methodOf=Ih.methodOf,Re.mixin=Vh,Re.negate=ec,Re.nthArg=Ih.nthArg,Re.omit=Lh.omit,Re.omitBy=Lh.omitBy,Re.once=Eh.once,Re.orderBy=wh.orderBy,Re.over=Ih.over,Re.overArgs=Eh.overArgs,Re.overEvery=Ih.overEvery,Re.overSome=Ih.overSome,Re.partial=Eh.partial,Re.partialRight=Eh.partialRight,Re.partition=wh.partition,Re.pick=Lh.pick,Re.pickBy=Lh.pickBy,Re.property=Ih.property,Re.propertyOf=Ih.propertyOf,Re.pull=_h.pull,Re.pullAll=_h.pullAll,Re.pullAllBy=_h.pullAllBy,Re.pullAllWith=_h.pullAllWith,Re.pullAt=_h.pullAt,Re.range=Ih.range,Re.rangeRight=Ih.rangeRight,Re.rearg=Eh.rearg,Re.reject=wh.reject,Re.remove=_h.remove,Re.rest=Eh.rest,Re.reverse=_h.reverse,Re.sampleSize=wh.sampleSize,Re.set=Lh.set,Re.setWith=Lh.setWith,Re.shuffle=wh.shuffle,Re.slice=_h.slice,Re.sortBy=wh.sortBy,Re.sortedUniq=_h.sortedUniq,Re.sortedUniqBy=_h.sortedUniqBy,Re.split=Ph.split,Re.spread=Eh.spread,Re.tail=_h.tail,Re.take=_h.take,Re.takeRight=_h.takeRight,Re.takeRightWhile=_h.takeRightWhile,Re.takeWhile=_h.takeWhile,Re.tap=Rh.tap,Re.throttle=Eh.throttle,Re.thru=uf,Re.toArray=kh.toArray,Re.toPairs=Lh.toPairs,Re.toPairsIn=Lh.toPairsIn,Re.toPath=Ih.toPath,Re.toPlainObject=kh.toPlainObject,Re.transform=Lh.transform,Re.unary=Eh.unary,Re.union=_h.union,Re.unionBy=_h.unionBy,Re.unionWith=_h.unionWith,Re.uniq=_h.uniq,Re.uniqBy=_h.uniqBy,Re.uniqWith=_h.uniqWith,Re.unset=Lh.unset,Re.unzip=_h.unzip,Re.unzipWith=_h.unzipWith,Re.update=Lh.update,Re.updateWith=Lh.updateWith,Re.values=Lh.values,Re.valuesIn=Lh.valuesIn,Re.without=_h.without,Re.words=Ph.words,Re.wrap=Eh.wrap,Re.xor=_h.xor,Re.xorBy=_h.xorBy,Re.xorWith=_h.xorWith,Re.zip=_h.zip,Re.zipObject=_h.zipObject,Re.zipObjectDeep=_h.zipObjectDeep,Re.zipWith=_h.zipWith,Re.entries=Lh.toPairs,Re.entriesIn=Lh.toPairsIn,Re.extend=Lh.assignIn,Re.extendWith=Lh.assignInWith,Vh(Re,Re),Re.add=Ch.add,Re.attempt=Ih.attempt,Re.camelCase=Ph.camelCase,Re.capitalize=Ph.capitalize,Re.ceil=Ch.ceil,Re.clamp=Oh,Re.clone=kh.clone,Re.cloneDeep=kh.cloneDeep,Re.cloneDeepWith=kh.cloneDeepWith,Re.cloneWith=kh.cloneWith,Re.conformsTo=kh.conformsTo,Re.deburr=Ph.deburr,Re.defaultTo=Ih.defaultTo,Re.divide=Ch.divide,Re.endsWith=Ph.endsWith,Re.eq=kh.eq,Re.escape=Ph.escape,Re.escapeRegExp=Ph.escapeRegExp,Re.every=wh.every,Re.find=wh.find,Re.findIndex=_h.findIndex,Re.findKey=Lh.findKey,Re.findLast=wh.findLast,Re.findLastIndex=_h.findLastIndex,Re.findLastKey=Lh.findLastKey,Re.floor=Ch.floor,Re.forEach=wh.forEach,Re.forEachRight=wh.forEachRight,Re.forIn=Lh.forIn,Re.forInRight=Lh.forInRight,Re.forOwn=Lh.forOwn,Re.forOwnRight=Lh.forOwnRight,Re.get=Lh.get,Re.gt=kh.gt,Re.gte=kh.gte,Re.has=Lh.has,Re.hasIn=Lh.hasIn,Re.head=_h.head,Re.identity=q,Re.includes=wh.includes,Re.indexOf=_h.indexOf,Re.inRange=Ah,Re.invoke=Lh.invoke,Re.isArguments=kh.isArguments,Re.isArray=k,Re.isArrayBuffer=kh.isArrayBuffer,Re.isArrayLike=kh.isArrayLike,Re.isArrayLikeObject=kh.isArrayLikeObject,Re.isBoolean=kh.isBoolean,Re.isBuffer=kh.isBuffer,Re.isDate=kh.isDate,Re.isElement=kh.isElement,Re.isEmpty=kh.isEmpty,Re.isEqual=kh.isEqual,Re.isEqualWith=kh.isEqualWith,Re.isError=kh.isError,Re.isFinite=kh.isFinite,Re.isFunction=kh.isFunction,Re.isInteger=kh.isInteger,Re.isLength=kh.isLength,Re.isMap=kh.isMap,Re.isMatch=kh.isMatch,Re.isMatchWith=kh.isMatchWith,Re.isNaN=kh.isNaN,Re.isNative=kh.isNative,Re.isNil=kh.isNil,Re.isNull=kh.isNull,Re.isNumber=kh.isNumber,Re.isObject=M,Re.isObjectLike=kh.isObjectLike,Re.isPlainObject=kh.isPlainObject,Re.isRegExp=kh.isRegExp,Re.isSafeInteger=kh.isSafeInteger,Re.isSet=kh.isSet,Re.isString=kh.isString,Re.isSymbol=kh.isSymbol,Re.isTypedArray=kh.isTypedArray,Re.isUndefined=kh.isUndefined,Re.isWeakMap=kh.isWeakMap,Re.isWeakSet=kh.isWeakSet,Re.join=_h.join,Re.kebabCase=Ph.kebabCase,Re.last=Da,Re.lastIndexOf=_h.lastIndexOf,Re.lowerCase=Ph.lowerCase,Re.lowerFirst=Ph.lowerFirst,Re.lt=kh.lt,Re.lte=kh.lte,Re.max=Ch.max,Re.maxBy=Ch.maxBy,Re.mean=Ch.mean,Re.meanBy=Ch.meanBy,Re.min=Ch.min,Re.minBy=Ch.minBy,Re.stubArray=Ih.stubArray,Re.stubFalse=Ih.stubFalse,Re.stubObject=Ih.stubObject,Re.stubString=Ih.stubString,Re.stubTrue=Ih.stubTrue,Re.multiply=Ch.multiply,Re.nth=_h.nth,Re.noop=Ih.noop,Re.now=Sh.now,Re.pad=Ph.pad,Re.padEnd=Ph.padEnd,Re.padStart=Ph.padStart,Re.parseInt=Ph.parseInt,Re.random=jh,Re.reduce=wh.reduce,Re.reduceRight=wh.reduceRight,Re.repeat=Ph.repeat,Re.replace=Ph.replace,Re.result=Lh.result,Re.round=Ch.round,Re.sample=wh.sample,Re.size=wh.size,Re.snakeCase=Ph.snakeCase,Re.some=wh.some,Re.sortedIndex=_h.sortedIndex,Re.sortedIndexBy=_h.sortedIndexBy,Re.sortedIndexOf=_h.sortedIndexOf,Re.sortedLastIndex=_h.sortedLastIndex,Re.sortedLastIndexBy=_h.sortedLastIndexBy,Re.sortedLastIndexOf=_h.sortedLastIndexOf,Re.startCase=Ph.startCase,Re.startsWith=Ph.startsWith,Re.subtract=Ch.subtract,Re.sum=Ch.sum,Re.sumBy=Ch.sumBy,Re.template=Ph.template,Re.times=Ih.times,Re.toFinite=kh.toFinite,Re.toInteger=U,Re.toLength=kh.toLength,Re.toLower=Ph.toLower,Re.toNumber=kh.toNumber,Re.toSafeInteger=kh.toSafeInteger,Re.toString=kh.toString,Re.toUpper=Ph.toUpper,Re.trim=Ph.trim,Re.trimEnd=Ph.trimEnd,Re.trimStart=Ph.trimStart,Re.truncate=Ph.truncate,Re.unescape=Ph.unescape,Re.uniqueId=Ih.uniqueId,Re.upperCase=Ph.upperCase,Re.upperFirst=Ph.upperFirst,Re.each=wh.forEach,Re.eachRight=wh.forEachRight,Re.first=_h.head,Vh(Re,(Bh={},ta(Re,function(e,t){Wh.call(Re.prototype,t)||(Bh[t]=e)}),Bh),{chain:!1}),Re.VERSION="4.17.23",(Re.templateSettings=Ph.templateSettings).imports._=Re,Ve(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Re[e].placeholder=Re}),Ve(["drop","take"],function(e,t){xe.prototype[e]=function(n){n=void 0===n?1:Fh(U(n),0);var r=this.__filtered__&&!t?new xe(this):this.clone();return r.__filtered__?r.__takeCount__=Uh(n,r.__takeCount__):r.__views__.push({size:Uh(n,$h),type:e+(r.__dir__<0?"Right":"")}),r},xe.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Ve(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;xe.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Hi(e),type:n}),t.__filtered__=t.__filtered__||r,t}}),Ve(["head","last"],function(e,t){var n="take"+(t?"Right":"");xe.prototype[e]=function(){return this[n](1).value()[0]}}),Ve(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");xe.prototype[e]=function(){return this.__filtered__?new xe(this):this[n](1)}}),xe.prototype.compact=function(){return this.filter(q)},xe.prototype.find=function(e){return this.filter(e).head()},xe.prototype.findLast=function(e){return this.reverse().find(e)},xe.prototype.invokeMap=yt(function(e,t){return"function"==typeof e?new xe(this):this.map(function(n){return Dl(n,e,t)})}),xe.prototype.reject=function(e){return this.filter(ec(Hi(e)))},xe.prototype.slice=function(e,t){e=U(e);var n=this;return n.__filtered__&&(e>0||t<0)?new xe(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=U(t))<0?n.dropRight(-t):n.take(t-e)),n)},xe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},xe.prototype.toArray=function(){return this.take($h)},ta(xe.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Re[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(Re.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof xe,l=a[0],u=s||k(t),c=function(e){var t=o.apply(Re,Nn([e],a));return r&&d?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(s=u=!1);var d=this.__chain__,p=!!this.__actions__.length,f=i&&!d,h=s&&!p;if(!i&&u){t=h?t:new xe(this);var g=e.apply(t,a);return g.__actions__.push({func:uf,args:[c],thisArg:void 0}),new Oe(g,d)}return f&&h?e.apply(this,a):(g=this.thru(c),f?r?g.value()[0]:g.value():g)})}),Ve(["pop","push","shift","sort","splice","unshift"],function(e){var t=Dh[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Re.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(k(o)?o:[],e)}return this[n](function(n){return t.apply(k(n)?n:[],e)})}}),ta(xe.prototype,function(e,t){var n=Re[t];if(n){var r=n.name+"";Wh.call(Ee,r)||(Ee[r]=[]),Ee[r].push({name:t,func:n})}}),Ee[ot(void 0,2).name]=[{name:"wrapper",func:void 0}],xe.prototype.clone=function(){var e=new xe(this.__wrapped__);return e.__actions__=Ae(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ae(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ae(this.__views__),e},xe.prototype.reverse=function(){if(this.__filtered__){var e=new xe(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},xe.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=k(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Mh(t,e+a);break;case"takeRight":e=Nh(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,l=s-a,u=r?s:a-1,c=this.__iteratees__,d=c.length,p=0,f=Th(l,this.__takeCount__);if(!n||!r&&o==l&&f==l)return hf(e,this.__actions__);var h=[];e:for(;l--&&p<f;){for(var g=-1,v=e[u+=t];++g<d;){var m=c[g],y=m.iteratee,b=m.type,x=y(v);if(2==b)v=x;else if(!x){if(1==b)continue e;break e}}h[p++]=v}return h},Re.prototype.at=Rh.at,Re.prototype.chain=Rh.wrapperChain,Re.prototype.commit=Rh.commit,Re.prototype.next=Rh.next,Re.prototype.plant=Rh.plant,Re.prototype.reverse=Rh.reverse,Re.prototype.toJSON=Re.prototype.valueOf=Re.prototype.value=Rh.value,Re.prototype.first=Re.prototype.head,zh&&(Re.prototype[zh]=Rh.toIterator);var qh=Object.freeze({__proto__:null,add:L,after:V,ary:ct,assign:Xt,assignIn:on,assignInWith:sn,assignWith:un,at:Wn,attempt:Gn,before:Zn,bind:Xn,bindAll:tr,bindKey:rr,camelCase:oo,capitalize:Sr,castArray:io,ceil:uo,chain:co,chunk:ho,clamp:vo,clone:hi,cloneDeep:gi,cloneDeepWith:vi,cloneWith:mi,commit:yi,compact:bi,concat:xi,cond:Ji,conforms:Gi,conformsTo:Zi,constant:De,countBy:la,create:ua,curry:ca,curryRight:da,debounce:ga,deburr:jr,defaultTo:va,defaults:xa,defaultsDeep:ja,defer:Pa,delay:Na,difference:$a,differenceBy:za,differenceWith:Ua,divide:Va,drop:qa,dropRight:Ka,dropRightWhile:Ja,dropWhile:Ya,each:Za,eachRight:ns,endsWith:rs,entries:is,entriesIn:as,eq:pt,escape:cs,escapeRegExp:fs,every:vs,extend:on,extendWith:sn,fill:ys,filter:xs,find:Es,findIndex:Ss,findKey:Cs,findLast:Ls,findLastIndex:js,findLastKey:Rs,first:Ps,flatMap:Ms,flatMapDeep:Bs,flatMapDepth:$s,flatten:$n,flattenDeep:Ws,flattenDepth:zs,flip:Fs,floor:Us,flow:qs,flowRight:Ks,forEach:Za,forEachRight:ns,forIn:Hs,forInRight:Js,forOwn:Ys,forOwnRight:Gs,fromPairs:Zs,functions:Xs,functionsIn:el,get:Pn,groupBy:rl,gt:al,gte:sl,has:cl,hasIn:Ui,head:Ps,identity:q,inRange:fl,includes:yl,indexOf:xl,initial:_l,intersection:kl,intersectionBy:Ol,intersectionWith:Al,invert:Pl,invertBy:Bl,invoke:Wl,invokeMap:Fl,isArguments:Lt,isArray:k,isArrayBuffer:Vl,isArrayLike:xt,isArrayLikeObject:wa,isBoolean:ql,isBuffer:Mt,isDate:Hl,isElement:Jl,isEmpty:Gl,isEqual:Zl,isEqualWith:Ql,isError:Jn,isFinite:eu,isFunction:K,isInteger:tu,isLength:bt,isMap:ai,isMatch:nu,isMatchWith:ru,isNaN:iu,isNative:su,isNil:lu,isNull:uu,isNumber:ou,isObject:M,isObjectLike:_,isPlainObject:Hn,isRegExp:du,isSafeInteger:fu,isSet:li,isString:hl,isSymbol:w,isTypedArray:Ut,isUndefined:hu,isWeakMap:gu,isWeakSet:vu,iteratee:mu,join:bu,kebabCase:_u,keyBy:Su,keys:Gt,keysIn:nn,last:Da,lastIndexOf:Cu,lodash:Re,lowerCase:Au,lowerFirst:ju,lt:Ru,lte:Pu,map:Ns,mapKeys:Iu,mapValues:Nu,matches:Mu,matchesProperty:Tu,max:$u,maxBy:Du,mean:Fu,meanBy:Uu,memoize:Sn,merge:qu,mergeWith:Aa,method:Hu,methodOf:Yu,min:Gu,minBy:Zu,mixin:Qu,multiply:Xu,negate:ec,next:rc,noop:_e,now:pa,nth:ic,nthArg:ac,omit:dc,omitBy:gc,once:vc,orderBy:bc,over:_c,overArgs:kc,overEvery:Cc,overSome:Oc,pad:Jc,padEnd:Yc,padStart:Gc,parseInt:Xc,partial:td,partialRight:rd,partition:id,pick:sd,pickBy:hc,plant:ld,property:Ki,propertyOf:ud,pull:hd,pullAll:fd,pullAllBy:gd,pullAllWith:vd,pullAt:xd,random:Od,range:Rd,rangeRight:Pd,rearg:Nd,reduce:Td,reduceRight:$d,reject:Dd,remove:Wd,repeat:zd,replace:Fd,rest:Ud,result:Vd,reverse:Kd,round:Hd,sample:Gd,sampleSize:ep,set:tp,setWith:np,shuffle:ip,size:ap,slice:sp,snakeCase:up,some:dp,sortBy:fp,sortedIndex:yp,sortedIndexBy:bp,sortedIndexOf:xp,sortedLastIndex:_p,sortedLastIndexBy:wp,sortedLastIndexOf:Sp,sortedUniq:kp,sortedUniqBy:Cp,split:Op,spread:jp,startCase:Rp,startsWith:Pp,stubArray:ko,stubFalse:Rt,stubObject:Ip,stubString:Np,stubTrue:Mp,subtract:Tp,sum:Bp,sumBy:$p,tail:Dp,take:Wp,takeRight:zp,takeRightWhile:Fp,takeWhile:Up,tap:Vp,template:sf,templateSettings:Zp,throttle:lf,thru:uf,times:pf,toArray:nc,toFinite:F,toInteger:U,toIterator:ff,toJSON:gf,toLength:ms,toLower:vf,toNumber:W,toPairs:is,toPairsIn:as,toPath:mf,toPlainObject:Ea,toSafeInteger:bf,toString:An,toUpper:xf,transform:_f,trim:Ef,trimEnd:kf,trimStart:Of,truncate:jf,unary:Lf,unescape:Nf,union:$f,unionBy:Wf,unionWith:zf,uniq:Ff,uniqBy:Uf,uniqWith:Vf,uniqueId:Kf,unset:Hf,unzip:Yf,unzipWith:Gf,update:Qf,updateWith:Xf,upperCase:th,upperFirst:wr,value:gf,valueOf:gf,values:vl,valuesIn:nh,without:oh,words:eo,wrap:ih,wrapperAt:sh,wrapperChain:lh,wrapperCommit:yi,wrapperLodash:Re,wrapperNext:rc,wrapperPlant:ld,wrapperReverse:uh,wrapperToIterator:ff,wrapperValue:gf,xor:dh,xorBy:fh,xorWith:hh,zip:gh,zipObject:mh,zipObjectDeep:yh,zipWith:xh,default:Re});function Kh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Hh(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t}var Jh={},Yh={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(Yh),Kh(Yh.exports);var Gh={exports:{}},Zh={exports:{}},Qh={exports:{}};!function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Qh),Kh(Qh.exports);var Xh={exports:{}};!function(e){var t=Qh.exports.default;e.exports=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(Xh),Kh(Xh.exports),function(e){var t=Qh.exports.default,n=Xh.exports;e.exports=function(e){var r=n(e,"string");return"symbol"==t(r)?r:r+""},e.exports.__esModule=!0,e.exports.default=e.exports}(Zh),Kh(Zh.exports),function(e){var t=Zh.exports;e.exports=function(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(Gh),Kh(Gh.exports);var eg={},tg={exports:{}};!function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(tg),Kh(tg.exports);var ng={};function rg(e,t){return null!=e?e:t()}function og(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=i(n)):"call"!==o&&"optionalCall"!==o||(n=i((...e)=>n.call(t,...e)),t=void 0)}return n}const ig=e=>"string"==typeof e,ag=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},sg=e=>null==e?"":""+e,lg=/###/g,ug=e=>e&&e.indexOf("###")>-1?e.replace(lg,"."):e,cg=e=>!e||ig(e),dg=(e,t,n)=>{const r=ig(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(cg(e))return{};const t=ug(r[o]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return cg(e)?{}:{obj:e,k:ug(r[o])}},pg=(e,t,n)=>{const{obj:r,k:o}=dg(e,t,Object);if(void 0!==r||1===t.length)return void(r[o]=n);let i=t[t.length-1],a=t.slice(0,t.length-1),s=dg(e,a,Object);for(;void 0===s.obj&&a.length;)i=`${a[a.length-1]}.${i}`,a=a.slice(0,a.length-1),s=dg(e,a,Object),og([s,"optionalAccess",e=>e.obj])&&void 0!==s.obj[`${s.k}.${i}`]&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=n},fg=(e,t)=>{const{obj:n,k:r}=dg(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},hg=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?ig(e[r])||e[r]instanceof String||ig(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):hg(e[r],t[r],n):e[r]=t[r]);return e},gg=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var vg={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const mg=e=>ig(e)?e.replace(/[&<>"'\/]/g,e=>vg[e]):e;const yg=[" ",",","?","!",";"],bg=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),xg=(e,t,n=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}const r=t.split(n);let o=e;for(let e=0;e<r.length;){if(!o||"object"!=typeof o)return;let t,i="";for(let a=e;a<r.length;++a)if(a!==e&&(i+=n),i+=r[a],t=o[i],void 0!==t){if(["string","number","boolean"].indexOf(typeof t)>-1&&a<r.length-1)continue;e+=a-e+1;break}o=t}return o},_g=e=>og([e,"optionalAccess",e=>e.replace,"call",e=>e("_","-")]),wg={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){og([console,"optionalAccess",t=>t[e],"optionalAccess",e=>e.apply,"optionalCall",e=>e(console,t)])}};class Sg{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||wg,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(ig(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Sg(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new Sg(this.logger,e)}}var Eg=new Sg;class kg{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e,...t){if(this.observers[e]){Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)})}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach(([n,r])=>{for(let o=0;o<r;o++)n.apply(n,[e,...t])})}}}class Cg extends kg{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){const o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],n&&(Array.isArray(n)?a.push(...n):ig(n)&&o?a.push(...n.split(o)):a.push(n)));const s=fg(this.data,a);return!s&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),!s&&i&&ig(n)?xg(og([this,"access",e=>e.data,"optionalAccess",t=>t[e],"optionalAccess",e=>e[t]]),n,o):s}addResource(e,t,n,r,o={silent:!1}){const i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),pg(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(const r in n)(ig(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o,i={silent:!1,skipCopy:!1}){let a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let s=fg(this.data,a)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?hg(s,n,o):s={...s,...n},pg(this.data,a,s),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var Og={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(e=>{t=rg(og([this,"access",e=>e.processors,"access",t=>t[e],"optionalAccess",e=>e.process,"call",e=>e(t,n,r,o)]),()=>t)}),t}};const Ag=Symbol("i18next/PATH_KEY");function jg(e,t){const{[Ag]:n}=e(function(){const e=[],t=Object.create(null);let n;return t.get=(r,o)=>(og([n,"optionalAccess",e=>e.revoke,"optionalCall",e=>e()]),o===Ag?e:(e.push(o),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}());return n.join(rg(og([t,"optionalAccess",e=>e.keySeparator]),()=>"."))}const Lg={},Rg=e=>!ig(e)&&"boolean"!=typeof e&&"number"!=typeof e;class Pg extends kg{constructor(e,t={}){var n,r;super(),n=e,r=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach(e=>{n[e]&&(r[e]=n[e])}),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=Eg.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const n={...t};if(null==e)return!1;const r=this.resolve(e,n);if(void 0===og([r,"optionalAccess",e=>e.res]))return!1;const o=Rg(r.res);return!1!==n.returnObjects||!o}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const i=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,n)=>{t=t||"",n=n||"";const r=yg.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(0===r.length)return!0;const o=bg.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`);let i=!o.test(e);if(!i){const t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i})(e,n,r));if(i&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:ig(o)?[o]:o};const i=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(r)}return{key:e,namespaces:ig(o)?[o]:o}}translate(e,t,n){let r="object"==typeof t?{...t}:t;if("object"!=typeof r&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof r&&(r={...r}),r||(r={}),null==e)return"";"function"==typeof e&&(e=jg(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]);const o=void 0!==r.returnDetails?r.returnDetails:this.options.returnDetails,i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(e[e.length-1],r),l=s[s.length-1];let u=void 0!==r.nsSeparator?r.nsSeparator:this.options.nsSeparator;void 0===u&&(u=":");const c=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===og([c,"optionalAccess",e=>e.toLowerCase,"call",e=>e()]))return d?o?{res:`${l}${u}${a}`,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:`${l}${u}${a}`:o?{res:a,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:a;const p=this.resolve(e,r);let f=og([p,"optionalAccess",e=>e.res]);const h=og([p,"optionalAccess",e=>e.usedKey])||a,g=og([p,"optionalAccess",e=>e.exactUsedKey])||a,v=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject,y=void 0!==r.count&&!ig(r.count),b=Pg.hasDefaultValue(r),x=y?this.pluralResolver.getSuffix(c,r.count,r):"",_=r.ordinal&&y?this.pluralResolver.getSuffix(c,r.count,{ordinal:!1}):"",w=y&&!r.ordinal&&0===r.count,S=w&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${x}`]||r[`defaultValue${_}`]||r.defaultValue;let E=f;m&&!f&&b&&(E=S);const k=Rg(E),C=Object.prototype.toString.apply(E);if(!(m&&E&&k&&["[object Number]","[object Function]","[object RegExp]"].indexOf(C)<0)||ig(v)&&Array.isArray(E))if(m&&ig(v)&&Array.isArray(f))f=f.join(v),f&&(f=this.extendTranslation(f,e,r,n));else{let t=!1,o=!1;!this.isValidLookup(f)&&b&&(t=!0,f=S),this.isValidLookup(f)||(o=!0,f=a);const s=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:f,d=b&&S!==f&&this.options.updateMissing;if(o||t||d){if(this.logger.log(d?"updateKey":"missingKey",c,l,a,d?S:f),i){const e=this.resolve(a,{...r,keySeparator:!1});e&&e.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.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(r.lng||this.language):e.push(r.lng||this.language);const n=(e,t,n)=>{const o=b&&n!==f?n:s;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,o,d,r):og([this,"access",e=>e.backendConnector,"optionalAccess",e=>e.saveMissing])&&this.backendConnector.saveMissing(e,l,t,o,d,r),this.emit("missingKey",e,l,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&y?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,r);w&&r[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],a+t,r[`defaultValue${t}`]||S)})}):n(e,a,S))}f=this.extendTranslation(f,e,r,p,n),o&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${l}${u}${a}`),(o||t)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${a}`:a,t?f:void 0,r))}else{if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...r,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return o?(p.res=e,p.usedParams=this.getUsedParamsDetails(r),p):e}if(i){const e=Array.isArray(E),t=e?[]:{},n=e?g:h;for(const e in E)if(Object.prototype.hasOwnProperty.call(E,e)){const o=`${n}${i}${e}`;t[e]=b&&!f?this.translate(o,{...r,defaultValue:Rg(S)?S[e]:void 0,joinArrays:!1,ns:s}):this.translate(o,{...r,joinArrays:!1,ns:s}),t[e]===o&&(t[e]=E[e])}f=t}}return o?(p.res=f,p.usedParams=this.getUsedParamsDetails(r),p):f}extendTranslation(e,t,n,r,o){if(og([this,"access",e=>e.i18nFormat,"optionalAccess",e=>e.parse]))e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const i=ig(e)&&(void 0!==og([n,"optionalAccess",e=>e.interpolation,"optionalAccess",e=>e.skipOnVariables])?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(i){const t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let s=n.replace&&!ig(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),i){const t=e.match(this.interpolator.nestingRegexp);a<(t&&t.length)&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(...e)=>og([o,"optionalAccess",e=>e[0]])!==e[0]||n.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),n)),n.interpolation&&this.interpolator.reset()}const i=n.postProcess||this.options.postProcess,a=ig(i)?[i]:i;return null!=e&&og([a,"optionalAccess",e=>e.length])&&!1!==n.applyPostProcessor&&(e=Og.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,o,i,a;return ig(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(n))return;const s=this.extractFromKey(e,t),l=s.key;r=l;let u=s.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const c=void 0!==t.count&&!ig(t.count),d=c&&!t.ordinal&&0===t.count,p=void 0!==t.context&&(ig(t.context)||"number"==typeof t.context)&&""!==t.context,f=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);u.forEach(e=>{this.isValidLookup(n)||(a=e,Lg[`${f[0]}-${e}`]||!og([this,"access",e=>e.utils,"optionalAccess",e=>e.hasLoadedNamespace])||og([this,"access",e=>e.utils,"optionalAccess",e=>e.hasLoadedNamespace,"call",e=>e(a)])||(Lg[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${f.join(", ")}" won't get resolved as namespace "${a}" 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!!!")),f.forEach(r=>{if(this.isValidLookup(n))return;i=r;const a=[l];if(og([this,"access",e=>e.i18nFormat,"optionalAccess",e=>e.addLookupKeys]))this.i18nFormat.addLookupKeys(a,l,r,e,t);else{let e;c&&(e=this.pluralResolver.getSuffix(r,t.count,t));const n=`${this.options.pluralSeparator}zero`,o=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(t.ordinal&&0===e.indexOf(o)&&a.push(l+e.replace(o,this.options.pluralSeparator)),a.push(l+e),d&&a.push(l+n)),p){const r=`${l}${this.options.contextSeparator||"_"}${t.context}`;a.push(r),c&&(t.ordinal&&0===e.indexOf(o)&&a.push(r+e.replace(o,this.options.pluralSeparator)),a.push(r+e),d&&a.push(r+n))}}let s;for(;s=a.pop();)this.isValidLookup(n)||(o=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:o,usedLng:i,usedNS:a}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n,r={}){return og([this,"access",e=>e.i18nFormat,"optionalAccess",e=>e.getResource])?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!ig(e.replace);let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}class Ig{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Eg.create("languageUtils")}getScriptPartFromCode(e){if(!(e=_g(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=_g(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(ig(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;const r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?e:e.indexOf("-")<0&&r.indexOf("-")<0?void 0:e.indexOf("-")>0&&r.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===r||0===e.indexOf(r)&&r.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),ig(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),r=[],o=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return ig(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):ig(e)&&o(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&o(this.formatLanguageCode(e))}),r}}const Ng={zero:0,one:1,two:2,few:3,many:4,other:5},Mg={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Tg{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=Eg.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const n=_g("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:n,type:r});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let i;try{i=new Intl.PluralRules(n,{type:r})}catch(n){if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Mg;if(!e.match(/-|_/))return Mg;const r=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(r,t)}return this.pluralRulesCache[o]=i,i}needsPlural(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),og([n,"optionalAccess",e=>e.resolvedOptions,"call",e=>e(),"access",e=>e.pluralCategories,"access",e=>e.length])>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort((e,t)=>Ng[e]-Ng[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,n={}){const r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}const Bg=(e,t,n,r=".",o=!0)=>{let i=((e,t,n)=>{const r=fg(e,n);return void 0!==r?r:fg(t,n)})(e,t,n);return!i&&o&&ig(n)&&(i=xg(e,n,r),void 0===i&&(i=xg(t,n,r))),i},$g=e=>e.replace(/\$/g,"$$$$");class Dg{constructor(e={}){this.logger=Eg.create("interpolator"),this.options=e,this.format=og([e,"optionalAccess",e=>e.interpolation,"optionalAccess",e=>e.format])||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:o,prefixEscaped:i,suffix:a,suffixEscaped:s,formatSeparator:l,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:d,nestingPrefixEscaped:p,nestingSuffix:f,nestingSuffixEscaped:h,nestingOptionsSeparator:g,maxReplaces:v,alwaysFormat:m}=e.interpolation;this.escape=void 0!==t?t:mg,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=o?gg(o):i||"{{",this.suffix=a?gg(a):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?gg(d):p||gg("$t("),this.nestingSuffix=f?gg(f):h||gg(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=v||1e3,this.alwaysFormat=void 0!==m&&m,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>og([e,"optionalAccess",e=>e.source])===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let o,i,a;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(e.indexOf(this.formatSeparator)<0){const o=Bg(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...t,interpolationkey:e}):o}const o=e.split(this.formatSeparator),i=o.shift().trim(),a=o.join(this.formatSeparator).trim();return this.format(Bg(t,s,i,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:i})};this.resetRegExp();const u=og([r,"optionalAccess",e=>e.missingInterpolationHandler])||this.options.missingInterpolationHandler,c=void 0!==og([r,"optionalAccess",e=>e.interpolation,"optionalAccess",e=>e.skipOnVariables])?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>$g(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?$g(this.escape(e)):$g(e)}].forEach(t=>{for(a=0;o=t.regex.exec(e);){const n=o[1].trim();if(i=l(n),void 0===i)if("function"==typeof u){const t=u(e,o,r);i=ig(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else{if(c){i=o[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i=""}else ig(i)||this.useRawValueToEscape||(i=sg(i));const s=t.safeValue(i);if(e=e.replace(o[0],s),c?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,o,i;const a=(e,t)=>{const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${n}[ ]*{`));let o=`{${r[1]}`;e=r[0],o=this.interpolate(o,i);const a=o.match(/'/g),s=o.match(/"/g);(rg(og([a,"optionalAccess",e=>e.length]),()=>0)%2==0&&!s||s.length%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i={...t,...i})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${o}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];i={...n},i=i.replace&&!ig(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;const l=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(-1!==l&&(s=r[1].slice(l).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,l)),o=t(a.call(this,r[1].trim(),i),i),o&&r[0]===e&&!ig(o))return o;ig(o)||(o=sg(o)),o||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),o=""),s.length&&(o=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),o.trim())),e=e.replace(r[0],o),this.regexp.lastIndex=0}return e}}const Wg=e=>{const t={};return(n,r,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const a=r+JSON.stringify(i);let s=t[a];return s||(s=e(_g(r),o),t[a]=s),s(n)}},zg=e=>(t,n,r)=>e(_g(n),r)(t);class Fg{constructor(e={}){this.logger=Eg.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const n=t.cacheInBuiltFormats?Wg:zg;this.formats={number:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:n((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:n((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Wg(t)}format(e,t,n,r={}){const o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(e=>e.indexOf(")")>-1)){const e=o.findIndex(e=>e.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,e)].join(this.formatSeparator)}const i=o.reduce((e,t)=>{const{formatName:o,formatOptions:i}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);"currency"===t&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(e=>{if(e){const[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();n[i]||(n[i]=o),"false"===o&&(n[i]=!1),"true"===o&&(n[i]=!0),isNaN(o)||(n[i]=parseInt(o,10))}})}return{formatName:t,formatOptions:n}})(t);if(this.formats[o]){let t=e;try{const a=og([r,"optionalAccess",e=>e.formatParams,"optionalAccess",e=>e[r.interpolationkey]])||{},s=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[o](e,s,{...i,...r,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e);return i}}class Ug extends kg{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=Eg.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],og([this,"access",e=>e.backend,"optionalAccess",e=>e.init,"optionalCall",e=>e(n,r.backend,r)])}queueLoad(e,t,n,r){const o={},i={},a={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{const a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===i[a]&&(i[a]=!0):(this.state[a]=1,r=!1,void 0===i[a]&&(i[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===s[t]&&(s[t]=!0)))}),r||(a[e]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){const r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),!t&&n&&this.store.addResourceBundle(o,i,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const a={};this.queue.forEach(n=>{((e,t,n)=>{const{obj:r,k:o}=dg(e,t,Object);r[o]=r[o]||[],r[o].push(n)})(n.loaded,[o],i),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{a[e]||(a[e]={});const t=n.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,o=this.retryTimeout,i){if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:i});this.readingCalls++;const a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&r<this.maxRetries?setTimeout(()=>{this.read.call(this,e,t,n,r+1,2*o,i)},o):i(a,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,a);try{const n=s(e,t);n&&"function"==typeof n.then?n.then(e=>a(null,e)).catch(a):a(null,n)}catch(e){a(e)}}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();ig(e)&&(e=this.languageUtils.toResolveHierarchy(e)),ig(t)&&(t=[t]);const o=this.queueLoad(e,t,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=""){const n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,i),this.loaded(e,n,i)})}saveMissing(e,t,n,r,o,i={},a=()=>{}){if(!og([this,"access",e=>e.services,"optionalAccess",e=>e.utils,"optionalAccess",e=>e.hasLoadedNamespace])||og([this,"access",e=>e.services,"optionalAccess",e=>e.utils,"optionalAccess",e=>e.hasLoadedNamespace,"call",e=>e(t)])){if(null!=n&&""!==n){if(og([this,"access",e=>e.backend,"optionalAccess",e=>e.create])){const s={...i,isUpdate:o},l=this.backend.create.bind(this.backend);if(l.length<6)try{let o;o=5===l.length?l(e,t,n,r,s):l(e,t,n,r),o&&"function"==typeof o.then?o.then(e=>a(null,e)).catch(a):a(null,o)}catch(e){a(e)}else l(e,t,n,r,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}else this.logger.warn(`did not save key "${n}" as the namespace "${t}" 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!!!")}}const Vg=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),ig(e[1])&&(t.defaultValue=e[1]),ig(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),qg=e=>(ig(e.ns)&&(e.ns=[e.ns]),ig(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),ig(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),og([e,"access",e=>e.supportedLngs,"optionalAccess",e=>e.indexOf,"optionalCall",e=>e("cimode")])<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e),Kg=()=>{};class Hg extends kg{constructor(e={},t){var n;if(super(),this.options=qg(e),this.services={},this.logger=Eg,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(ig(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const n=Vg();var r;this.options={...n,...this.options,...qg(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler),!1===this.options.showSupportNotice||(og([r=this,"optionalAccess",e=>e.modules,"optionalAccess",e=>e.backend,"optionalAccess",e=>e.name,"optionalAccess",e=>e.indexOf,"call",e=>e("Locize")])>0||og([r,"optionalAccess",e=>e.modules,"optionalAccess",e=>e.backend,"optionalAccess",e=>e.constructor,"optionalAccess",e=>e.name,"optionalAccess",e=>e.indexOf,"call",e=>e("Locize")])>0||og([r,"optionalAccess",e=>e.options,"optionalAccess",e=>e.backend,"optionalAccess",e=>e.backends])&&r.options.backend.backends.some(e=>og([e,"optionalAccess",e=>e.name,"access",e=>e.indexOf,"call",e=>e("Locize")])>0||og([e,"optionalAccess",e=>e.constructor,"optionalAccess",e=>e.name,"access",e=>e.indexOf,"call",e=>e("Locize")])>0))||"undefined"!=typeof console&&void 0!==console.info&&console.info("🌐 i18next is maintained with support from locize.com — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙");const o=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?Eg.init(o(this.modules.logger),this.options):Eg.init(null,this.options),e=this.modules.formatter?this.modules.formatter:Fg;const t=new Ig(this.options);this.store=new Cg(this.options.resources,this.options);const r=this.services;r.logger=Eg,r.resourceStore=this.store,r.languageUtils=t,r.pluralResolver=new Tg(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix});this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),!e||this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format||(r.formatter=o(e),r.formatter.init&&r.formatter.init(r,this.options),this.options.interpolation.format=r.formatter.format.bind(r.formatter)),r.interpolator=new Dg(this.options),r.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},r.backendConnector=new Ug(o(this.modules.backend),r.resourceStore,r,this.options),r.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(r.languageDetector=o(this.modules.languageDetector),r.languageDetector.init&&r.languageDetector.init(r,this.options.detection,this.options)),this.modules.i18nFormat&&(r.i18nFormat=o(this.modules.i18nFormat),r.i18nFormat.init&&r.i18nFormat.init(this)),this.translator=new Pg(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=Kg),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});const i=ag(),a=()=>{const e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(n),t(e,n)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=Kg){let n=t;const r=ig(e)?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===og([r,"optionalAccess",e=>e.toLowerCase,"call",e=>e()])&&(!this.options.preload||0===this.options.preload.length))return n();const e=[],t=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)})};if(r)t(r);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e))}og([this,"access",e=>e.options,"access",e=>e.preload,"optionalAccess",e=>e.forEach,"optionalCall",e=>e(e=>t(e))]),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){const r=ag();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=Kg),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Og.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;const n=ag();this.emit("languageChanging",e);const r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(o,i)=>{i?this.isLanguageChangingTo===e&&(r(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(o,(...e)=>this.t(...e))},i=t=>{e||t||!this.services.languageDetector||(t=[]);const n=ig(t)?t:t&&t[0],i=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(ig(t)?[t]:t);i&&(this.language||r(i),this.translator.language||this.translator.changeLanguage(i),og([this,"access",e=>e.services,"access",e=>e.languageDetector,"optionalAccess",e=>e.cacheUserLanguage,"optionalCall",e=>e(i)])),this.loadResources(i,e=>{o(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),n}getFixedT(e,t,n){const r=(e,t,...o)=>{let i;i="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(o)):{...t},i.lng=i.lng||r.lng,i.lngs=i.lngs||r.lngs,i.ns=i.ns||r.ns,""!==i.keyPrefix&&(i.keyPrefix=i.keyPrefix||n||r.keyPrefix);const a=this.options.keySeparator||".";let s;return i.keyPrefix&&Array.isArray(e)?s=e.map(e=>("function"==typeof e&&(e=jg(e,{...this.options,...t})),`${i.keyPrefix}${a}${e}`)):("function"==typeof e&&(e=jg(e,{...this.options,...t})),s=i.keyPrefix?`${i.keyPrefix}${a}${e}`:e),this.t(s,i)};return ig(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return og([this,"access",e=>e.translator,"optionalAccess",e=>e.translate,"call",t=>t(...e)])}exists(...e){return og([this,"access",e=>e.translator,"optionalAccess",e=>e.exists,"call",t=>t(...e)])}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const i=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!i(n,e)||r&&!i(o,e)))}loadNamespaces(e,t){const n=ag();return this.options.ns?(ig(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=ag();ig(e)&&(e=[e]);const r=this.options.preload||[],o=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=r.concat(o),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(og([this,"access",e=>e.languages,"optionalAccess",e=>e.length])>0?this.languages[0]:this.language)),!e)return"rtl";try{const t=new Intl.Locale(e);if(t&&t.getTextInfo){const e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}const t=og([this,"access",e=>e.services,"optionalAccess",e=>e.languageUtils])||new Ig(Vg());return e.toLowerCase().indexOf("-latn")>1?"ltr":["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"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){const n=new Hg(e,t);return n.createInstance=Hg.createInstance,n}cloneInstance(e={},t=Kg){const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},o=new Hg(r);void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e));if(["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n){const e=Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{});o.store=new Cg(e,r),o.services.resourceStore=o.store}if(e.interpolation){const t={...Vg().interpolation,...this.options.interpolation,...e.interpolation},n={...r,interpolation:t};o.services.interpolator=new Dg(n)}return o.translator=new Pg(o.services,r),o.translator.on("*",(e,...t)=>{o.emit(e,...t)}),o.init(r,t),o.translator.options=r,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Jg=Hg.createInstance();Jg.createInstance,Jg.dir,Jg.init,Jg.loadResources,Jg.reloadResources,Jg.use,Jg.changeLanguage,Jg.getFixedT,Jg.t,Jg.exists,Jg.setDefaultNamespace,Jg.hasLoadedNamespace,Jg.loadNamespaces,Jg.loadLanguages;Jg.init({fallbackLng:"en",lng:"en",debug:!0,resources:{en:{translation:{categorize:{limitMaxChoicesPerCategory:"You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.",maxChoicesPerCategoryRestriction:"To change this value to {{maxChoicesPerCategory}}, each category must have {{maxChoicesPerCategory}} or fewer answer choice[s]."},ebsr:{part:"Part {{index}}"},numberLine:{addElementLimit_one:"You can only add {{count}} element",addElementLimit_other:"You can only add {{count}} elements",clearAll:"Clear all"},imageClozeAssociation:{reachedLimit_one:"You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.",reachedLimit_other:"Full"},drawingResponse:{fillColor:"Fill color",outlineColor:"Outline color",noFill:"No fill",lightblue:"Light blue",lightyellow:"Light yellow",red:"Red",orange:"Orange",yellow:"Yellow",violet:"Violet",blue:"Blue",green:"Green",white:"White",black:"Black",onDoubleClick:"Double click to edit this text. Press Enter to submit."},charting:{addCategory:"Add category",actions:"Actions",add:"Add",delete:"Delete",newLabel:"New label",reachedLimit_other:"There can't be more than {{count}} categories.",keyLegend:{incorrectAnswer:"Student incorrect answer",correctAnswer:"Student correct answer",correctKeyAnswer:"Answer key correct"}},graphing:{point:"Point",circle:"Circle",line:"Line",parabola:"Parabola",absolute:"Absolute Value",exponential:"Exponential",polygon:"Polygon",ray:"Ray",segment:"Segment",sine:"Sine",vector:"Vector",label:"Label",redo:"Redo",reset:"Reset"},mathInline:{primaryCorrectWithAlternates:"Note: The answer shown above is the primary correct answer specified by the author for this item, but other answers may also be recognized as correct."},multipleChoice:{minSelections:"Select at least {{minSelections}}.",maxSelections_one:"Only {{maxSelections}} answer is allowed.",maxSelections_other:"Only {{maxSelections}} answers are allowed.",minmaxSelections_equal:"Select {{minSelections}}.",minmaxSelections_range:"Select between {{minSelections}} and {{maxSelections}}."},selectText:{correctAnswerSelected:"Correct",correctAnswerNotSelected:"Correct Answer Not Selected",incorrectSelection:"Incorrect Selection",key:"Key"}},common:{undo:"Undo",clearAll:"Clear all",correct:"Correct",incorrect:"Incorrect",showCorrectAnswer:"Show correct answer",hideCorrectAnswer:"Hide correct answer",commonCorrectAnswerWithAlternates:"Note: The answer shown above is the most common correct answer for this item. One or more additional correct answers are also defined, and will also be recognized as correct.",warning:"Warning",showNote:"Show Note",hideNote:"Hide Note",cancel:"Cancel"}},es:{translation:{categorize:{limitMaxChoicesPerCategory:"Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.",maxChoicesPerCategoryRestriction:"Para cambiar este valor a {{maxChoicesPerCategory}}, cada categoría debe tener {{maxChoicesPerCategory}} o menos opciones de respuesta"},ebsr:{part:"Parte {{index}}"},numberLine:{addElementLimit_one:"Solo puedes agregar {{count}} elemento",addElementLimit_other:"Solo puedes agregar {{count}} elementos",clearAll:"Borrar todo"},imageClozeAssociation:{reachedLimit_one:"Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.",reachedLimit_other:"Lleno"},drawingResponse:{fillColor:"Color de relleno",outlineColor:"Color del contorno",noFill:"Sin relleno",lightblue:"Azul claro",lightyellow:"Amarillo claro",red:"Rojo",orange:"Naranja",yellow:"Amarillo",violet:"Violeta",blue:"Azul",green:"Verde",white:"Blanco",black:"Negro",onDoubleClick:"Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar"},charting:{addCategory:"Añadir categoría",actions:"Acciones",add:"Añadir",delete:"Eliminar",newLabel:"Nueva etiqueta",reachedLimit_other:"No puede haber más de {{count}} categorías.",keyLegend:{incorrectAnswer:"Respuesta incorrecta del estudiante",correctAnswer:"Respuesta correcta del estudiante",correctKeyAnswer:"Clave de respuesta correcta"}},graphing:{point:"Punto",circle:"Circulo",line:"Línea",parabola:"Parábola",absolute:"Valor absoluto",exponential:"Exponencial",polygon:"Polígono",ray:"Semirrecta",segment:"Segmento ",sine:"Seno",vector:"Vector",label:"Etiqueta",redo:"Rehacer",reset:"Reiniciar"},mathInline:{primaryCorrectWithAlternates:"Nota: La respuesta que se muestra arriba es la respuesta correcta principal especificada por el autor para esta pregunta, pero también se pueden reconocer otras respuestas como correctas."},multipleChoice:{minSelections:"Seleccione al menos {{minSelections}}.",maxSelections_one:"Sólo se permite {{maxSelections}} respuesta.",maxSelections_other:"Sólo se permiten {{maxSelections}} respuestas.",minmaxSelections_equal:"Seleccione {{minSelections}}.",minmaxSelections_range:"Seleccione entre {{minSelections}} y {{maxSelections}}."},selectText:{correctAnswerSelected:"Respuesta Correcta",correctAnswerNotSelected:"Respuesta Correcta No Seleccionada",incorrectSelection:"Selección Incorrecta",key:"Clave"}},common:{undo:"Deshacer",clearAll:"Borrar todo",correct:"Correct",incorrect:"Incorrect",showCorrectAnswer:"Mostrar respuesta correcta",hideCorrectAnswer:"Ocultar respuesta correcta",commonCorrectAnswerWithAlternates:"Nota: La respuesta que se muestra arriba es la respuesta correcta más común para esta pregunta. También se definen una o más respuestas correctas adicionales, y también se reconocerán como correctas.",warning:"Advertencia",showNote:"Mostrar Nota",hideNote:"Ocultar Nota",cancel:"Cancelar"}}}});var Yg={translator:{...Jg,t:(e,t)=>{const{lng:n}=t;switch(n){case"en_US":case"en-US":t.lng="en";break;case"es_ES":case"es-ES":case"es_MX":case"es-MX":t.lng="es"}return Jg.t(e,{lng:n,...t})}},languageOptions:[{value:"en_US",label:"English (US)"},{value:"es_ES",label:"Spanish"}]},Gg=Hh(Object.freeze({__proto__:null,default:Yg})),Zg={},Qg={},Xg={};function ev(){return ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ev.apply(null,arguments)}function tv(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function nv(e,t){return nv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nv(e,t)}function rv(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,nv(e,t)}function ov(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var iv={disabled:!1};var av=e.createContext(null),sv=function(e){return e.scrollTop};const lv=e,uv=t;var cv="unmounted",dv="exited",pv="entering",fv="entered",hv="exiting",gv=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=dv,r.appearStatus=pv):o=fv:o=t.unmountOnExit||t.mountOnEnter?cv:dv,r.state={status:o},r.nextCallback=null,r}rv(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===cv?{status:dv}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==pv&&n!==fv&&(t=pv):n!==pv&&n!==fv||(t=hv)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===pv){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:uv.findDOMNode(this);n&&sv(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===dv&&this.setState({status:cv})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[uv.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||iv.disabled?this.safeSetState({status:fv},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:pv},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:fv},function(){t.props.onEntered(i,a)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:uv.findDOMNode(this);t&&!iv.disabled?(this.props.onExit(r),this.safeSetState({status:hv},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:dv},function(){e.props.onExited(r)})})})):this.safeSetState({status:dv},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:uv.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===cv)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=tv(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return lv.createElement(av.Provider,{value:null},"function"==typeof n?n(e,r):lv.cloneElement(lv.Children.only(n),r))},t}(lv.Component);function vv(){}gv.contextType=av,gv.propTypes={},gv.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:vv,onEntering:vv,onEntered:vv,onExit:vv,onExiting:vv,onExited:vv},gv.UNMOUNTED=cv,gv.EXITED=dv,gv.ENTERING=pv,gv.ENTERED=fv,gv.EXITING=hv;var mv=gv;const yv=e;var bv=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r})},xv=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=ov(n.className,r):n.setAttribute("class",ov(n.className&&n.className.baseVal||"",r)));var n,r})},_v=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}rv(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&sv(e),r&&(this.appliedClasses[t][n]=r,bv(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&xv(e,r),o&&xv(e,o),i&&xv(e,i)},n.render=function(){var e=this.props;e.classNames;var t=tv(e,["classNames"]);return yv.createElement(mv,ev({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(yv.Component);_v.defaultProps={classNames:""},_v.propTypes={};var wv=_v;const{Children:Sv}=e,{cloneElement:Ev}=e,{isValidElement:kv}=e;function Cv(e,t){var n=Object.create(null);return e&&Sv.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&kv(e)?t(e):e}(e)}),n}function Ov(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Av(e,t,n){var r=Cv(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var u=o[l][r];s[o[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(kv(a)){var s=i in t,l=i in r,u=t[i],c=kv(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&kv(u)&&(o[i]=Ev(a,{onExited:n.bind(null,a),in:u.props.in,exit:Ov(a,"exit",e),enter:Ov(a,"enter",e)})):o[i]=Ev(a,{in:!1}):o[i]=Ev(a,{onExited:n.bind(null,a),in:!0,exit:Ov(a,"exit",e),enter:Ov(a,"enter",e)})}}),o}const jv=e;var Lv=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Rv=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}rv(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,Cv(n.children,function(e){return Ev(e,{onExited:r.bind(null,e),in:!0,appear:Ov(e,"appear",n),enter:Ov(e,"enter",n),exit:Ov(e,"exit",n)})})):Av(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Cv(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=ev({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=tv(e,["component","childFactory"]),o=this.state.contextValue,i=Lv(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?jv.createElement(av.Provider,{value:o},i):jv.createElement(av.Provider,{value:o},jv.createElement(t,r,i))},t}(jv.Component);Rv.propTypes={},Rv.defaultProps={component:"div",childFactory:function(e){return e}};var Pv=Rv;const Iv=e,Nv=t;var Mv=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}rv(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,o=this.props.children,i=Iv.Children.toArray(o)[t];if(i.props[e]&&(r=i.props)[e].apply(r,n),this.props[e]){var a=i.props.nodeRef?void 0:Nv.findDOMNode(this);this.props[e](a)}},n.render=function(){var e=this.props,t=e.children,n=e.in,r=tv(e,["children","in"]),o=Iv.Children.toArray(t),i=o[0],a=o[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,Iv.createElement(Pv,r,n?Iv.cloneElement(i,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):Iv.cloneElement(a,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(Iv.Component);Mv.propTypes={};var Tv=Mv;const Bv=e;var $v,Dv;var Wv="out-in",zv="in-out",Fv=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},Uv=(($v={})[Wv]=function(e){var t=e.current,n=e.changeState;return Bv.cloneElement(t,{in:!1,onExited:Fv(t,"onExited",function(){n(pv,null)})})},$v[zv]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,Bv.cloneElement(r,{in:!0,onEntered:Fv(r,"onEntered",function(){n(pv)})})]},$v),Vv=((Dv={})[Wv]=function(e){var t=e.children,n=e.changeState;return Bv.cloneElement(t,{in:!0,onEntered:Fv(t,"onEntered",function(){n(fv,Bv.cloneElement(t,{in:!0}))})})},Dv[zv]=function(e){var t=e.current,n=e.children,r=e.changeState;return[Bv.cloneElement(t,{in:!1,onExited:Fv(t,"onExited",function(){r(fv,Bv.cloneElement(n,{in:!0}))})}),Bv.cloneElement(n,{in:!0})]},Dv),qv=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={status:fv,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}rv(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===pv&&e.mode===zv?{status:pv}:!t.current||(n=t.current,r=e.children,n===r||Bv.isValidElement(n)&&Bv.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:Bv.cloneElement(e.children,{in:!0})}:{status:hv};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,o=this.state,i=o.status,a=o.current,s={children:n,current:a,changeState:this.changeState,status:i};switch(i){case pv:e=Vv[r](s);break;case hv:e=Uv[r](s);break;case fv:e=a}return Bv.createElement(av.Provider,{value:{isMounting:!this.appeared}},e)},t}(Bv.Component);qv.propTypes={},qv.defaultProps={mode:Wv};var Kv=qv,Hv=Hh(Object.freeze({__proto__:null,CSSTransition:wv,ReplaceTransition:Tv,SwitchTransition:Kv,TransitionGroup:Pv,Transition:mv,config:iv}));const Jv=e,Yv=o,{Box:Gv}=n,Zv=r,Qv=i;var Xv=Yh.exports;Object.defineProperty(Xg,"__esModule",{value:!0}),Xg.default=void 0;var em=Xv(Gh.exports),tm=Xv(Jv),nm=Hv,rm=Yv,om=Xv(Gv),im=Xv(Zv),am=Qv;const sm=(0,rm.styled)(om.default)({width:"33px",height:"33px","& svg":{position:"absolute",display:"inline-block",width:"33px",height:"33px",verticalAlign:"middle","& hide":{display:"none"}}}),lm=(0,rm.styled)("svg")({"& .incorrect-fill":{fill:`var(--feedback-incorrect-bg-color, ${am.color.incorrect()})`},"& .correct-fill":{fill:`var(--feedback-correct-bg-color, ${am.color.correct()})`}}),um=(0,rm.styled)("div")({position:"relative","&.feedback-tick-enter":{opacity:"0",left:"-50px"},"&.feedback-tick-enter-active":{opacity:"1",left:"0px",transition:"left 500ms ease-in 200ms, opacity 500ms linear 200ms"},"&.feedback-tick-exit":{opacity:"1",left:"0px"},"&.feedback-tick-exit-active":{opacity:"0",left:"-50px",transition:"left 300ms ease-in, opacity 300ms"}});class cm extends tm.default.Component{constructor(e){super(e),(0,em.default)(this,"getIncorrectIcon",()=>tm.default.createElement(lm,{key:"1",preserveAspectRatio:"xMinYMin meet",x:"0px",y:"0px",viewBox:"0 0 44 40",style:{enableBackground:"new 0 0 44 40"}},tm.default.createElement("g",null,tm.default.createElement("rect",{x:"11",y:"17.3",transform:"matrix(0.7071 -0.7071 0.7071 0.7071 -7.852 19.2507)",className:"incorrect-fill",width:"16.6",height:"3.7"}),tm.default.createElement("rect",{x:"17.4",y:"10.7",transform:"matrix(0.7071 -0.7071 0.7071 0.7071 -7.8175 19.209)",className:"incorrect-fill",width:"3.7",height:"16.6"})))),(0,em.default)(this,"getCorrectIcon",()=>tm.default.createElement(lm,{key:"2",preserveAspectRatio:"xMinYMin meet",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 44 40",style:{enableBackground:"new 0 0 44 40"}},tm.default.createElement("polygon",{className:"correct-fill",points:"19.1,28.6 11.8,22.3 14.4,19.2 17.9,22.1 23.9,11.4 27.5,13.4"}))),this.nodeRef=tm.default.createRef()}render(){const{correctness:e}=this.props,t=(()=>"incorrect"===e?this.getIncorrectIcon():"correct"===e?this.getCorrectIcon():null)();return tm.default.createElement(sm,null,tm.default.createElement(nm.TransitionGroup,null,e&&tm.default.createElement(nm.CSSTransition,{nodeRef:this.nodeRef,classNames:{enter:"feedback-tick-enter",enterActive:"feedback-tick-enter-active",exit:"feedback-tick-exit",exitActive:"feedback-tick-exit-active"},timeout:{enter:700,exit:300}},tm.default.createElement(um,{ref:this.nodeRef},t))))}}(0,em.default)(cm,"propTypes",{correctness:im.default.string}),Xg.default=cm;const{FormControlLabel:dm}=n,{Box:pm}=n,{Checkbox:fm}=n,{Radio:hm}=n,gm=e,vm=r,mm=o,ym=i,bm=a;var xm=Yh.exports;Object.defineProperty(Qg,"__esModule",{value:!0}),Qg.default=Qg.StyledRadio=Qg.StyledFormControlLabel=Qg.StyledCheckbox=Qg.ChoiceInput=void 0;var _m=xm(Gh.exports),wm=xm(tg.exports),Sm=xm(dm),Em=xm(gm),km=xm(vm),Cm=mm,Om=xm(pm),Am=xm(fm),jm=ym,Lm=xm(hm),Rm=xm(bm),Pm=xm(Xg);const Im="multiple-choice-component",Nm=(0,Cm.styled)(Om.default)({display:"flex",alignItems:"center",backgroundColor:jm.color.background()}),Mm=(0,Cm.styled)(Om.default)({display:"flex",alignItems:"center",backgroundColor:jm.color.background(),flex:1,"& .MuiFormControlLabel-root":{marginLeft:"-14px"},"& label":{color:jm.color.text(),"& > span":{fontSize:"inherit"},"& > .MuiButtonBase-root":{padding:"12px"}}}),Tm=(0,Cm.styled)("span")(({theme:e})=>({display:"flex",alignItems:"center","& > span":{marginLeft:`-${e.spacing(1)}`}})),Bm=(0,Cm.styled)("span")({position:"absolute",left:"-10000px",top:"auto",width:"1px",height:"1px",overflow:"hidden"}),$m=Qg.StyledFormControlLabel=(0,Cm.styled)(Sm.default)({"& .MuiFormControlLabel-label":{color:`${jm.color.text()} !important`,backgroundColor:jm.color.background(),letterSpacing:"normal"},"&.Mui-disabled *":{cursor:"not-allowed !important"}}),Dm=(e,t)=>({[`&.${Im}`]:{color:`var(--choice-input-${e}, ${t}) !important`}}),Wm=e=>{const t=t=>e?`${e}-${t}`:t;return{[t("root")]:{...Dm("color",jm.color.text()),...e?{}:{"&:hover":{color:`${jm.color.primaryLight()} !important`}},..."correct"===e?Dm("correct-color",jm.color.text()):{},..."incorrect"===e?Dm("incorrect-color",jm.color.incorrect()):{}},[t("checked")]:{..."correct"===e?Dm("correct-selected-color",jm.color.correct()):{},..."incorrect"===e?Dm("incorrect-checked",jm.color.incorrect()):{},...e?{}:Dm("selected-color",jm.color.primary())},[t("disabled")]:{...Dm("disabled-color",jm.color.text()),..."correct"===e?Dm("correct-disabled-color",jm.color.disabled()):{},..."incorrect"===e?Dm("incorrect-disabled-color",jm.color.disabled()):{},opacity:.6,cursor:"not-allowed !important",pointerEvents:"initial !important"},focusVisibleUnchecked:{outline:`2px solid ${jm.color.focusUncheckedBorder()}`,backgroundColor:jm.color.focusUnchecked()},focusVisibleChecked:{outline:`2px solid ${jm.color.focusCheckedBorder()}`,backgroundColor:jm.color.focusChecked()}}},zm=(0,Cm.styled)(Am.default,{shouldForwardProp:e=>"correctness"!==e})(({correctness:e})=>{const t=Wm(e),n=t=>e?`${e}-${t}`:t;return{[`&.${Im}`]:{...t[n("root")],"&.Mui-checked":t[n("checked")],"&.Mui-disabled":e?{}:t[n("disabled")]},"&.Mui-focusVisible":{"&:not(.Mui-checked)":t.focusVisibleUnchecked,"&.Mui-checked":t.focusVisibleChecked}}}),Fm=e=>{const{correctness:t,checked:n,onChange:r,disabled:o,value:i,id:a,onKeyDown:s,inputRef:l}=e,u={checked:n,onChange:r,disabled:o,value:i};return Em.default.createElement(zm,(0,wm.default)({id:a,slotProps:{input:{ref:l}},onKeyDown:s,disableRipple:!0},u,{correctness:t,className:Im}))};Qg.StyledCheckbox=Fm;const Um=(0,Cm.styled)(Lm.default,{shouldForwardProp:e=>"correctness"!==e})(({correctness:e})=>{const t=Wm(e),n=t=>e?`${e}-${t}`:t;return{[`&.${Im}`]:{...t[n("root")],"&.Mui-checked":t[n("checked")],"&.Mui-disabled":e?{}:t[n("disabled")]},"&.Mui-focusVisible":{"&:not(.Mui-checked)":t.focusVisibleUnchecked,"&.Mui-checked":t.focusVisibleChecked}}}),Vm=e=>{const{correctness:t,checked:n,onChange:r,disabled:o,value:i,id:a,tagName:s,inputRef:l}=e,u={checked:n,onChange:r,disabled:o,value:i};return Em.default.createElement(Um,(0,wm.default)({id:a,slotProps:{input:{ref:l}},disableRipple:!0},u,{correctness:t,className:Im,name:s}))};Qg.StyledRadio=Vm;class qm extends Em.default.Component{constructor(e){super(e),(0,_m.default)(this,"handleKeyDown",e=>{const{choiceMode:t}=this.props;if("checkbox"!==t)return;const n="ArrowDown"===e.key,r="ArrowUp"===e.key;if(!n&&!r)return;e.preventDefault();const o=document.getElementById(this.choiceId);if(!o)return;const i=o.closest("fieldset");if(!i)return;const a=Array.from(i.querySelectorAll('input[type="checkbox"]')),s=a.findIndex(e=>e===o);if(-1===s)return;const l=a[n?s+1:s-1];l&&l.focus()}),this.onToggleChoice=this.onToggleChoice.bind(this),this.choiceId=this.generateChoiceId(),this.descId=`${this.choiceId}-desc`}onToggleChoice(e){this.props.onChange(e)}generateChoiceId(){return"choice-"+(1e4*Math.random()).toFixed()}render(){const{choiceMode:e,disabled:t,displayKey:n,feedback:r,label:o,correctness:i,className:a,rationale:s,hideTick:l,isEvaluateMode:u,choicesLayout:c,value:d,checked:p,tagName:f,isSelectionButtonBelow:h}=this.props,g="checkbox"===e?Fm:Vm,v="checkbox"===e?"checkbox":"radio-button",m={..."horizontal"===c&&{[`& .${Im}`]:{padding:"8px",margin:"4px 0 4px 4px"}},...h&&"grid"!==c&&{"& > label":{alignItems:"flex-start"}},...h&&"grid"===c&&{justifyContent:"center","& > label":{alignItems:"center"}}},y=Em.default.createElement(Em.default.Fragment,null,n&&!h?Em.default.createElement(Nm,{component:"span"},n,"."," ",Em.default.createElement(jm.PreviewPrompt,{className:"prompt-label",prompt:o,tagName:"span"})):Em.default.createElement(jm.PreviewPrompt,{className:"prompt-label",prompt:o,tagName:"span"})),b=Em.default.createElement(Bm,{id:this.descId},"checkbox"===e?"Checkbox to select the answer below":"Radio button to select the answer below"),x={disabled:t,checked:p,correctness:i,tagName:f,value:d,id:this.choiceId,onChange:this.onToggleChoice,onKeyDown:this.handleKeyDown,"aria-describedby":this.descId},_="string"==typeof o&&(o.includes("<math")||o.includes("\\(")||o.includes("\\[")||o.includes("<img")||o.includes("data-latex")||o.includes("data-raw")||o.includes("<mjx-container")),w=h?Em.default.createElement(Tm,null,_&&b,Em.default.createElement(g,(0,wm.default)({},x,{style:{padding:0}})),n?`${n}.`:""):Em.default.createElement(Em.default.Fragment,null,_&&b,Em.default.createElement(g,(0,wm.default)({},x,{slotProps:{input:{ref:this.props.autoFocusRef}}})));return Em.default.createElement("div",{className:(0,Rm.default)(a,"corespring-"+v,"choice-input")},Em.default.createElement(Nm,null,!l&&u&&Em.default.createElement(Pm.default,{correctness:i}),Em.default.createElement(Mm,{className:"checkbox-holder",sx:m},Em.default.createElement($m,{label:y,value:d,htmlFor:this.choiceId,labelPlacement:h?"top":void 0,control:w}))),s&&Em.default.createElement(jm.PreviewPrompt,{className:"rationale",defaultClassName:"rationale",prompt:s}),Em.default.createElement(jm.Feedback,{feedback:r,correctness:i}))}}Qg.ChoiceInput=qm,(0,_m.default)(qm,"propTypes",{choiceMode:km.default.oneOf(["radio","checkbox"]),displayKey:km.default.string,checked:km.default.bool.isRequired,correctness:km.default.string,disabled:km.default.bool.isRequired,feedback:km.default.string,label:km.default.string.isRequired,rationale:km.default.string,onChange:km.default.func.isRequired,value:km.default.string.isRequired,className:km.default.string,tagName:km.default.string,hideTick:km.default.bool,isEvaluateMode:km.default.bool,choicesLayout:km.default.oneOf(["vertical","grid","horizontal"]),isSelectionButtonBelow:km.default.bool}),(0,_m.default)(qm,"defaultProps",{rationale:null,checked:!1,isEvaluateMode:!1}),Qg.default=qm;const Km=e,Hm=r,Jm=o,{Box:Ym}=n;var Gm=Yh.exports;Object.defineProperty(Zg,"__esModule",{value:!0}),Zg.default=Zg.Choice=void 0;var Zm=Gm(tg.exports),Qm=Gm(Gh.exports),Xm=Gm(Km),ey=Gm(Hm),ty=Jm,ny=Gm(Ym),ry=Gm(Qg);const oy=(0,ty.styled)(ny.default,{shouldForwardProp:e=>"noBorder"!==e&&"horizontalLayout"!==e})(({theme:e,noBorder:t,horizontalLayout:n})=>({paddingTop:e.spacing(2.5),paddingBottom:`calc(${e.spacing(1)} + 2px)`,paddingLeft:`calc(${e.spacing(1)} + 2px)`,paddingRight:`calc(${e.spacing(1)} + 2px)`,borderBottom:t?"none":`1px solid ${e.palette.grey[300]}`,...n&&{paddingRight:e.spacing(2.5),"& label":{marginRight:e.spacing(1)}}}));class iy extends Xm.default.Component{constructor(...e){super(...e),(0,Qm.default)(this,"state",{isHovered:!1}),(0,Qm.default)(this,"handleMouseEnter",()=>{const{disabled:e,checked:t}=this.props;e||t||this.setState({isHovered:!0})}),(0,Qm.default)(this,"handleMouseLeave",()=>{this.setState({isHovered:!1})}),(0,Qm.default)(this,"onChange",e=>{const{disabled:t,onChoiceChanged:n}=this.props;t||n(e)})}render(){const{choice:e,index:t,choicesLength:n,showCorrect:r,isEvaluateMode:o,choiceMode:i,disabled:a,checked:s,correctness:l,displayKey:u,choicesLayout:c,gridColumns:d,isSelectionButtonBelow:p,selectedAnswerBackgroundColor:f,selectedAnswerStrokeColor:h,selectedAnswerStrokeWidth:g,hoverAnswerBackgroundColor:v,hoverAnswerStrokeColor:m,hoverAnswerStrokeWidth:y,autoFocusRef:b,tagName:x}=this.props,{isHovered:_}=this.state,w="choice"+(t===n-1?" last":""),S=!o||r?"":e.feedback,E={...e,checked:s,choiceMode:i,disabled:a,feedback:S,correctness:l,displayKey:u,index:t,choicesLayout:c,gridColumns:d,onChange:this.onChange,isEvaluateMode:o,isSelectionButtonBelow:p,selectedAnswerStrokeColor:h,selectedAnswerStrokeWidth:g,tagName:x},k=h&&"initial"!==h,C=m&&"initial"!==m;let O="transparent",A="2px",j="initial";(k||C)&&(s&&k?(O=h,A=g):_&&!a&&C&&(O=m,A=y)),s&&f&&"initial"!==f?j=f:_&&!a&&v&&"initial"!==v&&(j=v);const L=k||C,R=L?{border:`${(e=>{if(!e)return"2px";const t=String(e).trim();return/^\d+(\.\d+)?$/.test(t)?`${t}px`:t})(A)} solid ${O}`,borderRadius:"8px"}:{},P=t===n-1||"vertical"!==c||L,I="horizontal"===c,N="initial"!==j?j:"initial";return Xm.default.createElement("div",{className:w,key:t,style:{backgroundColor:N,...R},onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},Xm.default.createElement(oy,{component:"div",noBorder:P,horizontalLayout:I},Xm.default.createElement(ry.default,(0,Zm.default)({},E,{autoFocusRef:b}))))}}Zg.Choice=iy,(0,Qm.default)(iy,"propTypes",{}),iy.propTypes={choiceMode:ey.default.oneOf(["radio","checkbox"]),choice:ey.default.object,disabled:ey.default.bool.isRequired,onChoiceChanged:ey.default.func,index:ey.default.number,choicesLength:ey.default.number,showCorrect:ey.default.bool,isEvaluateMode:ey.default.bool,checked:ey.default.bool,correctness:ey.default.string,displayKey:ey.default.string,choicesLayout:ey.default.oneOf(["vertical","grid","horizontal"]),gridColumns:ey.default.string,selectedAnswerBackgroundColor:ey.default.string,selectedAnswerStrokeColor:ey.default.string,selectedAnswerStrokeWidth:ey.default.string,hoverAnswerBackgroundColor:ey.default.string,hoverAnswerStrokeColor:ey.default.string,hoverAnswerStrokeWidth:ey.default.string,tagName:ey.default.string,isSelectionButtonBelow:ey.default.bool,autoFocusRef:ey.default.object},Zg.default=iy;const ay=e,sy=r,ly=s,uy=a,cy=o,{Box:dy}=n,py=i;var fy=Yh.exports;Object.defineProperty(ng,"__esModule",{value:!0}),ng.default=ng.MultipleChoice=void 0;var hy=fy(Gh.exports),gy=fy(ay),vy=fy(sy),my=fy(ly),yy=fy(uy),by=cy,xy=fy(dy),_y=py,wy=fy(Gg),Sy=fy(Zg);const{translator:Ey}=wy.default,ky=(0,by.styled)(xy.default)({color:_y.color.text(),backgroundColor:_y.color.background(),"& *":{"-webkit-font-smoothing":"antialiased"},position:"relative","& legend":{border:"none !important"}}),Cy=(0,by.styled)("h2")(({theme:e})=>({display:"block",fontSize:"inherit",margin:"0",fontWeight:"normal",paddingBottom:e.spacing(2)})),Oy=(0,by.styled)(xy.default)(({theme:e})=>({marginBottom:e.spacing(2)})),Ay=(0,by.styled)(xy.default)({display:"flex",flexDirection:"row",flexWrap:"wrap"}),jy=(0,by.styled)(xy.default)({display:"grid"}),Ly=(0,by.styled)("fieldset")({border:"0px",padding:"0.01em 0 0 0",margin:"0px",minWidth:"0px","&:focus":{outline:"none"}}),Ry=(0,by.styled)("h3")({position:"absolute",left:"-10000px",top:"auto",width:"1px",height:"1px",overflow:"hidden"}),Py=(0,by.styled)("div")(({theme:e})=>({fontSize:e.typography.fontSize-2,color:e.palette.error.main,paddingTop:e.spacing(1)}));class Iy extends gy.default.Component{constructor(e){super(e),(0,hy.default)(this,"handleChange",e=>{const{value:t,checked:n}=e.target,{maxSelections:r,onChoiceChanged:o,session:i}=this.props;i.value&&i.value.length>=r&&(this.setState({maxSelectionsErrorState:n}),n)||o({value:t,selected:n,selector:"Mouse"})}),(0,hy.default)(this,"onToggle",()=>{"evaluate"===this.props.mode&&this.setState({showCorrect:!this.state.showCorrect},()=>{this.props.onShowCorrectToggle&&this.props.onShowCorrectToggle()})}),(0,hy.default)(this,"getCorrectness",(e={})=>{const t=e.correct,n=this.isSelected(e.value);return this.state.showCorrect?t?"correct":void 0:t?n?"correct":"incorrect":n?"incorrect":void 0}),(0,hy.default)(this,"handleGroupFocus",e=>{const t=e.currentTarget,n=document.activeElement;t.contains(n)&&n!==t||(!e.relatedTarget||t.compareDocumentPosition(e.relatedTarget)&Node.DOCUMENT_POSITION_PRECEDING)&&function(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=i(n)):"call"!==o&&"optionalCall"!==o||(n=i((...e)=>n.call(t,...e)),t=void 0)}return n}([this,"access",e=>e.firstInputRef,"optionalAccess",e=>e.current])&&this.firstInputRef.current.focus()}),this.state={showCorrect:this.props.options&&this.props.alwaysShowCorrect||!1,maxSelectionsErrorState:!1},this.onToggle=this.onToggle.bind(this),this.firstInputRef=gy.default.createRef()}isSelected(e){const t=this.props.session&&this.props.session.value;return t&&t.indexOf&&t.indexOf(e)>=0}UNSAFE_componentWillReceiveProps(e){e.correctResponse||!1===this.state.showCorrect||this.setState({showCorrect:!1},()=>{this.props.onShowCorrectToggle&&this.props.onShowCorrectToggle()}),e.options&&e.alwaysShowCorrect&&!0!==this.state.showCorrect&&this.setState({showCorrect:!0},()=>{this.props.onShowCorrectToggle&&this.props.onShowCorrectToggle()})}indexToSymbol(e){return"numbers"===this.props.keyMode?`${e+1}`:"letters"===this.props.keyMode?String.fromCharCode(97+e).toUpperCase():""}getChecked(e){if(this.props.options&&this.props.alwaysShowCorrect)return e.correct||!1;return this.state.showCorrect&&"evaluate"===this.props.mode?e.correct||!1:this.isSelected(e.value)}renderHeading(){const{mode:e,choiceMode:t}=this.props;return"gather"!==e?null:"radio"===t?gy.default.createElement(Ry,null,"Multiple Choice Question"):gy.default.createElement(Ry,null,"Multiple Select Question")}render(){const{mode:e,disabled:t,className:n,choices:r=[],choiceMode:o,gridColumns:i,partLabel:a,prompt:s,responseCorrect:l,teacherInstructions:u,alwaysShowCorrect:c,animationsDisabled:d,language:p,isSelectionButtonBelow:f,minSelections:h,maxSelections:g,autoplayAudioEnabled:v,session:m,customAudioButton:y,options:b}=this.props,{showCorrect:x,maxSelectionsErrorState:_}=this.state,w="evaluate"===e,S=w&&!l,E=i>1?{gridTemplateColumns:`repeat(${i}, 1fr)`}:void 0,k=m.value&&m.value.length||0,C=gy.default.createElement(_y.PreviewPrompt,{tagName:"div",className:"prompt",defaultClassName:"teacher-instructions",prompt:u}),O="grid"===this.props.choicesLayout?jy:"horizontal"===this.props.choicesLayout?Ay:xy.default;return gy.default.createElement(ky,{id:"main-container",className:(0,yy.default)(n,"multiple-choice")},a&&gy.default.createElement(Cy,null,a),this.renderHeading(),u&&gy.default.createElement(Oy,null,d?C:gy.default.createElement(_y.Collapsible,{labels:{hidden:"Show Teacher Instructions",visible:"Hide Teacher Instructions"}},C)),gy.default.createElement(Ly,{tabIndex:0,onFocus:this.handleGroupFocus,role:"radio"===o?"radiogroup":"group"},gy.default.createElement(_y.PreviewPrompt,{className:"prompt",defaultClassName:"prompt",prompt:s,tagName:"legend",autoplayAudioEnabled:v,customAudioButton:y}),!(b&&c)&&gy.default.createElement(my.default,{show:S,toggled:x,onToggle:this.onToggle.bind(this),language:p}),gy.default.createElement(O,{style:E},r.map((e,n)=>gy.default.createElement(Sy.default,{autoFocusRef:0===n?this.firstInputRef:null,choicesLayout:this.props.choicesLayout,selectedAnswerBackgroundColor:this.props.selectedAnswerBackgroundColor,selectedAnswerStrokeColor:this.props.selectedAnswerStrokeColor,selectedAnswerStrokeWidth:this.props.selectedAnswerStrokeWidth,hoverAnswerBackgroundColor:this.props.hoverAnswerBackgroundColor,hoverAnswerStrokeColor:this.props.hoverAnswerStrokeColor,hoverAnswerStrokeWidth:this.props.hoverAnswerStrokeWidth,gridColumns:i,key:`choice-${n}`,choice:e,index:n,choicesLength:r.length,showCorrect:x,isEvaluateMode:w,choiceMode:o,disabled:t,tagName:a?`group-${a}`:"group",onChoiceChanged:this.handleChange,hideTick:e.hideTick,checked:this.getChecked(e),correctness:w?this.getCorrectness(e):void 0,displayKey:this.indexToSymbol(n),isSelectionButtonBelow:f})))),"checkbox"===o&&k<h&&gy.default.createElement(Py,null,h&&g?h===g?Ey.t("translation:multipleChoice:minmaxSelections_equal",{lng:p,minSelections:h}):Ey.t("translation:multipleChoice:minmaxSelections_range",{lng:p,minSelections:h,maxSelections:g}):h?Ey.t("translation:multipleChoice:minSelections",{lng:p,minSelections:h}):""),"checkbox"===o&&_&&gy.default.createElement(Py,null,Ey.t("translation:multipleChoice:maxSelections_"+(1===g?"one":"other"),{lng:p,maxSelections:g})))}}ng.MultipleChoice=Iy,(0,hy.default)(Iy,"propTypes",{className:vy.default.string,mode:vy.default.oneOf(["gather","view","evaluate"]),choiceMode:vy.default.oneOf(["radio","checkbox"]),keyMode:vy.default.oneOf(["numbers","letters","none"]),choices:vy.default.array,partLabel:vy.default.string,prompt:vy.default.string,teacherInstructions:vy.default.string,session:vy.default.object,disabled:vy.default.bool,onChoiceChanged:vy.default.func,responseCorrect:vy.default.bool,correctResponse:vy.default.array,choicesLayout:vy.default.oneOf(["vertical","grid","horizontal"]),gridColumns:vy.default.string,alwaysShowCorrect:vy.default.bool,animationsDisabled:vy.default.bool,language:vy.default.string,selectedAnswerBackgroundColor:vy.default.string,selectedAnswerStrokeColor:vy.default.string,selectedAnswerStrokeWidth:vy.default.string,hoverAnswerBackgroundColor:vy.default.string,hoverAnswerStrokeColor:vy.default.string,hoverAnswerStrokeWidth:vy.default.string,onShowCorrectToggle:vy.default.func,isSelectionButtonBelow:vy.default.bool,minSelections:vy.default.number,maxSelections:vy.default.number,autoplayAudioEnabled:vy.default.bool,customAudioButton:{playImage:vy.default.string,pauseImage:vy.default.string},options:vy.default.object}),Iy.defaultProps={session:{value:[]}},ng.default=Iy;const Ny=e,My=r,Ty=i;var By=Yh.exports;Object.defineProperty(eg,"__esModule",{value:!0}),eg.default=void 0;var $y=By(tg.exports),Dy=By(Gh.exports),Wy=By(Ny),zy=By(My),Fy=Ty,Uy=By(ng);class Vy extends Wy.default.Component{render(){const{model:e,onChoiceChanged:t,session:n,onShowCorrectToggle:r,options:o}=this.props,{extraCSSRules:i,fontSizeFactor:a}=e;return Wy.default.createElement(Fy.PreviewLayout,{extraCSSRules:i,fontSizeFactor:a,classes:{}},Wy.default.createElement(Uy.default,(0,$y.default)({},e,{options:o,session:n,onChoiceChanged:t,onShowCorrectToggle:r})))}}(0,Dy.default)(Vy,"propTypes",{model:zy.default.object,session:zy.default.object,options:zy.default.object,onChoiceChanged:zy.default.func,onShowCorrectToggle:zy.default.func,extraCSSRules:zy.default.shape({names:zy.default.arrayOf(zy.default.string),rules:zy.default.string})}),(0,Dy.default)(Vy,"defaultProps",{model:{},session:{}}),eg.default=Vy;var qy=Hh(qh),Ky={};Object.defineProperty(Ky,"__esModule",{value:!0});class Hy extends CustomEvent{constructor(e,t,n){super(Hy.TYPE,{bubbles:!0,composed:!0,detail:{complete:t,component:e,hasModel:n}}),this.component=e,this.complete=t}}Hy.TYPE="model-set",Ky.ModelSetEvent=Hy;class Jy extends CustomEvent{constructor(e,t){super(Jy.TYPE,{bubbles:!0,composed:!0,detail:{complete:t,component:e}}),this.component=e,this.complete=t}}Jy.TYPE="session-changed";var Yy=Ky.SessionChangedEvent=Jy,Gy={};Object.defineProperty(Gy,"__esModule",{value:!0}),Gy.updateSessionMetadata=function(e,t){e.audioStartTime=e.audioStartTime||t.audioStartTime,e.audioEndTime=e.audioEndTime||t.audioEndTime,!e.waitTime&&e.audioStartTime&&e.audioEndTime&&(e.waitTime=e.audioEndTime-e.audioStartTime)},Gy.updateSessionValue=function(e,t,n){e.value=e.value||[],"checkbox"===t&&(n.selected?e.value=Array.from(new Set([...e.value,n.value])):e.value=e.value.filter(e=>e!==n.value));"radio"===t&&(n.selected?e.value=[n.value]:e.value=[]);e.selector=n.selector};const Zy=e,{client:Qy}=t,Xy=l,eb=i,tb=u;var nb=Yh.exports;Object.defineProperty(Jh,"__esModule",{value:!0}),Jh.isComplete=Jh.default=void 0;var rb=nb(Gh.exports),ob=nb(eg),ib=nb(Zy),ab=Qy,sb=qy,lb=nb(Xy),ub=Ky,cb=tb,db=eb,pb=Gy;const fb=(0,lb.default)("pie-ui:multiple-choice"),hb=(e,t,n,r)=>{const{autoplayAudioEnabled:o,completeAudioEnabled:i}=t||{};if(o&&i&&!n&&r){const e=r.querySelector("audio"),t=e&&e.closest("#preview-prompt");if(e&&t)return!1}if(!e||!e.value)return!1;const{choiceMode:a,minSelections:s=1,maxSelections:l}=t||{},u=e.value.length||0;return"radio"===a?!!u:!(u<s||u>l)};Jh.isComplete=hb;class gb extends HTMLElement{constructor(){super(),(0,rb.default)(this,"_scheduleMathRender",()=>{this._mathRenderPending||(this._mathRenderPending=!0,requestAnimationFrame(()=>{this._mathObserver&&this._mathObserver.disconnect(),fb("render complete - render math"),(0,cb.renderMath)(this),this._mathRenderPending=!1,setTimeout(()=>{this._mathObserver&&this._mathObserver.observe(this,{childList:!0,subtree:!0})},50)}))}),this._model=null,this._session=null,this._options=null,this.audioComplete=!1,this._boundHandleKeyDown=this.handleKeyDown.bind(this),this._keyboardEventsEnabled=!1,this._audioInitialized=!1,this._root=null,this._mathObserver=null,this._mathRenderPending=!1,this._rerender=(0,sb.debounce)(()=>{if(this._model&&this._session){var e=ib.default.createElement(ob.default,{model:this._model,session:this._session,options:this._options,onChoiceChanged:this._onChange.bind(this),onShowCorrectToggle:this.onShowCorrectToggle.bind(this)});this.setAttribute("aria-label","radio"===this._model.choiceMode?"Multiple Choice Question":"Multiple Correct Answer Question"),this.setAttribute("role","region"),this.setLangAttribute(),this._initMathObserver(),this._root||(this._root=(0,ab.createRoot)(this)),this._root.render(e),!0!==this._model.keyboardEventsEnabled||this._keyboardEventsEnabled||this.enableKeyboardEvents()}else fb("skip")},50,{leading:!1,trailing:!0}),this._dispatchResponseChanged=(0,sb.debounce)(()=>{this.dispatchEvent(new ub.SessionChangedEvent(this.tagName.toLowerCase(),hb(this._session,this._model,this.audioComplete,this)))}),this._dispatchModelSet=(0,sb.debounce)(()=>{this.dispatchEvent(new ub.ModelSetEvent(this.tagName.toLowerCase(),hb(this._session,this._model,this.audioComplete,this),void 0!==this._model))},50,{leading:!1,trailing:!0})}_initMathObserver(){this._mathObserver||(this._mathObserver=new MutationObserver(this._scheduleMathRender),this._mathObserver.observe(this,{childList:!0,subtree:!0}))}_disconnectMathObserver(){this._mathObserver&&(this._mathObserver.disconnect(),this._mathObserver=null)}onShowCorrectToggle(){(0,cb.renderMath)(this)}setLangAttribute(){const e=this._model&&(this._model.language,1)?this._model.language:"",t=e?e.slice(0,2):"en";this.setAttribute("lang",t)}set model(e){this._model=e,this._rerender(),this._audioInitialized=!1,this._dispatchModelSet()}get session(){return this._session}get options(){return this._options}set options(e){this._options=e,this._rerender()}set session(e){this._session=e,this._rerender(),this._dispatchResponseChanged()}_onChange(e){(0,pb.updateSessionValue)(this._session,this._model.choiceMode,e),this._dispatchResponseChanged(),this._rerender()}_createAudioInfoToast(){const e=document.createElement("div");e.id="play-audio-info",Object.assign(e.style,{position:"absolute",top:0,width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",background:"white",zIndex:"1000",cursor:"pointer"});const t=document.createElement("img");return t.src=db.EnableAudioAutoplayImage,t.alt="Click anywhere to enable audio autoplay",t.width=500,t.height=300,e.appendChild(t),e}connectedCallback(){this._initMathObserver(),this._rerender();new MutationObserver((e,t)=>{e.forEach(e=>{if("childList"===e.type){if(this._audioInitialized)return;const e=this.querySelector("audio"),n=e&&e.closest("#preview-prompt");if(!this._model)return;if(!this._model.autoplayAudioEnabled)return;if(e&&!n)return;if(!e)return;const r=this._createAudioInfoToast(),o=this.querySelector("#main-container"),i=()=>{this.querySelector("#play-audio-info")&&(e.play(),o.removeChild(r)),document.removeEventListener("click",i)};setTimeout(()=>{e.paused&&!this.querySelector("#play-audio-info")?(o.appendChild(r),document.addEventListener("click",i)):document.removeEventListener("click",i)},500);const a=()=>{(0,pb.updateSessionMetadata)(this._session,{audioStartTime:(new Date).getTime()});const t=this.querySelector("#play-audio-info");t&&o.removeChild(t),e.removeEventListener("playing",a)};e.addEventListener("playing",a);const s=()=>{(0,pb.updateSessionMetadata)(this._session,{audioEndTime:(new Date).getTime()}),this.audioComplete=!0,this._dispatchResponseChanged(),e.removeEventListener("ended",s)};e.addEventListener("ended",s),this._audio=e,this._handlePlaying=a,this._handleEnded=s,this._enableAudio=i,this._audioInitialized=!0,t.disconnect()}})}).observe(this,{childList:!0,subtree:!0})}enableKeyboardEvents(){this._keyboardEventsEnabled||(window.addEventListener("keydown",this._boundHandleKeyDown),this._keyboardEventsEnabled=!0)}disconnectedCallback(){this._disconnectMathObserver(),this._keyboardEventsEnabled&&(window.removeEventListener("keydown",this._boundHandleKeyDown),this._keyboardEventsEnabled=!1),document.removeEventListener("click",this._enableAudio),this._audio&&(this._audio.removeEventListener("playing",this._handlePlaying),this._audio.removeEventListener("ended",this._handleEnded),this._audio=null),this._root&&this._root.unmount()}handleKeyDown(e){if(!this._model||!this._session)return;const{mode:t}=this._model;if("gather"!==t)return;const n=(e=>{const t=e>="1"&&e<="9"?e-"1":"0"===e?9:-1,n=/^[a-jA-J]$/.test(e)?e.toLowerCase().charCodeAt(0)-"a".charCodeAt(0):-1;return t>=0?t:n})(e.key);if(void 0===n||n<=-1||n>=function(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=i(n)):"call"!==o&&"optionalCall"!==o||(n=i((...e)=>n.call(t,...e)),t=void 0)}return n}([this,"access",e=>e._model,"access",e=>e.choices,"optionalAccess",e=>e.length]))return;const r=this._session.value||[],o=this._model.choices[n].value,i={value:o,selected:!r.includes(o),selector:"Keyboard"};this._onChange(i)}}var vb=Jh.default=gb;const mb=l,yb="ebsr-multiple-choice",bb=Yy.TYPE,{translator:xb}=Yg,_b=mb("pie-element:ebsr:print"),wb=(e,t)=>{const n="instructor"===t.role;e.prompt=!1!==e.promptEnabled?e.prompt:void 0,e.teacherInstructions=n&&!1!==e.teacherInstructionsEnabled?e.teacherInstructions:void 0,e.showTeacherInstructions=n,e.alwaysShowCorrect=n,e.mode=n?"evaluate":"gather",e.disabled=!0,e.animationsDisabled=!0,e.lockChoiceOrder=!0,e.choicesLayout=e.choicesLayout||"vertical";const r=gi(e.choices);return e.choices=r.map(t=>(t.rationale=n&&!1!==e.rationaleEnabled?t.rationale:void 0,t.hideTick=n,t.feedback=void 0,t)),e.keyMode=e.choicePrefix||"letters",e};class Sb extends vb{}customElements.get(yb)||customElements.define(yb,Sb);const Eb=e=>Array.isArray(e)&&e.length>0,kb=e=>{const t=Pn(e,"value.partA.value"),n=Pn(e,"value.partB.value");return Eb(t)&&Eb(n)};class Cb extends HTMLElement{constructor(){super(),Cb.prototype.__init.call(this),this._model={},this._session={},this._options=null}__init(){this.onSessionUpdated=e=>{if(e.target===this)return;e.preventDefault(),e.stopImmediatePropagation();const t=e.target.getAttribute("id");if(t){const n=`part${t.toUpperCase()}`;e.update&&(this._model[n]=e.update),this.dispatchSessionChanged(e.srcElement._session,n)}}}set model(e){this._model=e,customElements.whenDefined(yb).then(()=>{this.setPartModel(this.partA,"partA"),this.setPartModel(this.partB,"partB")})}set session(e){this._session=e,customElements.whenDefined(yb).then(()=>{this.setPartSession(this.partA,"partA"),this.setPartSession(this.partB,"partB")})}setPartModel(e,t){if(this._model&&this._model[t]&&e){let n={partA:void 0,partB:void 0};if(this._model.partLabels){const e=this._model.language;n={partA:xb.t("ebsr.part",{lng:e,index:"Letters"===this._model.partLabelType?"A":"1"}),partB:xb.t("ebsr.part",{lng:e,index:"Letters"===this._model.partLabelType?"B":"2"})}}e.model={...wb(this._model[t],this._options),keyMode:this._model[t].choicePrefix,partLabel:n[t]},e.options=this._options,e._session||(e.session={})}}set options(e){this._options=e}setPartSession(e,t){if(this._session&&this._model&&e){const{value:n}=this._session;e.session=n&&n[t]?n[t]:{id:t}}}dispatchSessionChanged(e,t){this._session.value={...this._session.value,[t]:e},_b("[onSessionChanged] session: ",this._session);const n=kb(this._session);this.dispatchEvent(new Yy(this.tagName.toLowerCase(),n))}get partA(){return this.querySelector(`${yb}#a`)}get partB(){return this.querySelector(`${yb}#b`)}connectedCallback(){this._render(),this.addEventListener(bb,this.onSessionUpdated)}disconnectedCallback(){this.removeEventListener(bb,this.onSessionUpdated)}_render(){this.innerHTML=`\n <div>\n <${yb} id="a"></${yb}>\n <${yb} id="b"></${yb}>\n </div>\n `}}export{Cb as default,kb as isSessionComplete};
|
|
1
|
+
import{_dll_react as e,_dll_react_dom as t,_dll_mui__material as n,_dll_prop_types as r,_dll_mui__material_styles as o,_dll_pie_lib__render_ui as i,_dll_classnames as a,_dll_pie_lib__correct_answer_toggle as s,_dll_debug as l,_dll_react_dom_client as u}from"../../../@pie-lib/shared-module@^5.0.0/module/index.js";import{_dll_pie_lib__math_rendering as c}from"../../../@pie-lib/math-rendering-module@^5.0.0/module/index.js";var d="object"==typeof global&&global&&global.Object===Object&&global,p="object"==typeof self&&self&&self.Object===Object&&self,f=d||p||Function("return this")(),h=f.Symbol,g=Object.prototype,v=g.hasOwnProperty,m=g.toString,y=h?h.toStringTag:void 0;var b=Object.prototype.toString;var _=h?h.toStringTag:void 0;function x(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":_&&_ in Object(e)?function(e){var t=v.call(e,y),n=e[y];try{e[y]=void 0;var r=!0}catch(e){}var o=m.call(e);return r&&(t?e[y]=n:delete e[y]),o}(e):function(e){return b.call(e)}(e)}function w(e){return null!=e&&"object"==typeof e}function S(e){return"symbol"==typeof e||w(e)&&"[object Symbol]"==x(e)}function E(e){return"number"==typeof e?e:S(e)?NaN:+e}function k(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var C=Array.isArray,O=h?h.prototype:void 0,A=O?O.toString:void 0;function j(e){if("string"==typeof e)return e;if(C(e))return k(e,j)+"";if(S(e))return A?A.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function L(e,t){return function(n,r){var o;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(o=n),void 0!==r){if(void 0===o)return r;"string"==typeof n||"string"==typeof r?(n=j(n),r=j(r)):(n=E(n),r=E(r)),o=e(n,r)}return o}}var R=L(function(e,t){return e+t},0),P=/\s/;function I(e){for(var t=e.length;t--&&P.test(e.charAt(t)););return t}var N=/^\s+/;function M(e){return e?e.slice(0,I(e)+1).replace(N,""):e}function T(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var B=/^[-+]0x[0-9a-f]+$/i,$=/^0b[01]+$/i,D=/^0o[0-7]+$/i,W=parseInt;function z(e){if("number"==typeof e)return e;if(S(e))return NaN;if(T(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=T(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=M(e);var n=$.test(e);return n||D.test(e)?W(e.slice(2),n?2:8):B.test(e)?NaN:+e}var F=1/0;function U(e){return e?(e=z(e))===F||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function V(e){var t=U(e),n=t%1;return t==t?n?t-n:t:0}function q(e,t){if("function"!=typeof t)throw new TypeError("Expected a function");return e=V(e),function(){if(--e<1)return t.apply(this,arguments)}}function K(e){return e}function H(e){if(!T(e))return!1;var t=x(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var J,Y=f["__core-js_shared__"],G=(J=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||""))?"Symbol(src)_1."+J:"";var Z=Function.prototype.toString;function Q(e){if(null!=e){try{return Z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var X=/^\[object .+?Constructor\]$/,ee=Function.prototype,te=Object.prototype,ne=ee.toString,re=te.hasOwnProperty,oe=RegExp("^"+ne.call(re).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ie(e){return!(!T(e)||function(e){return!!G&&G in e}(e))&&(H(e)?oe:X).test(Q(e))}function ae(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return ie(n)?n:void 0}var se=ae(f,"WeakMap"),le=se&&new se,ue=le?function(e,t){return le.set(e,t),e}:K,ce=ue,de=Object.create,pe=function(){function e(){}return function(t){if(!T(t))return{};if(de)return de(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),fe=pe;function he(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=fe(e.prototype),r=e.apply(n,t);return T(r)?r:n}}function ge(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var ve=Math.max;function me(e,t,n,r){for(var o=-1,i=e.length,a=n.length,s=-1,l=t.length,u=ve(i-a,0),c=Array(l+u),d=!r;++s<l;)c[s]=t[s];for(;++o<a;)(d||o<i)&&(c[n[o]]=e[o]);for(;u--;)c[s++]=e[o++];return c}var ye=Math.max;function be(e,t,n,r){for(var o=-1,i=e.length,a=-1,s=n.length,l=-1,u=t.length,c=ye(i-s,0),d=Array(c+u),p=!r;++o<c;)d[o]=e[o];for(var f=o;++l<u;)d[f+l]=t[l];for(;++a<s;)(p||o<i)&&(d[f+n[a]]=e[o++]);return d}function _e(){}function xe(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function we(){}xe.prototype=fe(_e.prototype),xe.prototype.constructor=xe;var Se=le?function(e){return le.get(e)}:we,Ee=Se,ke={},Ce=Object.prototype.hasOwnProperty;function Oe(e){for(var t=e.name+"",n=ke[t],r=Ce.call(ke,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function Ae(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function je(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Le(e){if(e instanceof xe)return e.clone();var t=new Ae(e.__wrapped__,e.__chain__);return t.__actions__=je(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}Ae.prototype=fe(_e.prototype),Ae.prototype.constructor=Ae;var Re=Object.prototype.hasOwnProperty;function Pe(e){if(w(e)&&!C(e)&&!(e instanceof xe)){if(e instanceof Ae)return e;if(Re.call(e,"__wrapped__"))return Le(e)}return new Ae(e)}function Ie(e){var t=Oe(e),n=Pe[t];if("function"!=typeof n||!(t in xe.prototype))return!1;if(e===n)return!0;var r=Ee(n);return!!r&&e===r[0]}Pe.prototype=_e.prototype,Pe.prototype.constructor=Pe;var Ne=Date.now;function Me(e){var t=0,n=0;return function(){var r=Ne(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Te=Me(ce),Be=/\{\n\/\* \[wrapped with (.+)\] \*/,$e=/,? & /;var De=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function We(e){return function(){return e}}var ze=function(){try{var e=ae(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Fe=ze,Ue=Fe?function(e,t){return Fe(e,"toString",{configurable:!0,enumerable:!1,value:We(t),writable:!0})}:K,Ve=Me(Ue);function qe(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Ke(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function He(e){return e!=e}function Je(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Ke(e,He,n)}function Ye(e,t){return!!(null==e?0:e.length)&&Je(e,t,0)>-1}var Ge=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function Ze(e,t,n){var r=t+"";return Ve(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(De,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return qe(Ge,function(n){var r="_."+n[0];t&n[1]&&!Ye(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Be);return t?t[1].split($e):[]}(r),n)))}function Qe(e,t,n,r,o,i,a,s,l,u){var c=8&t;t|=c?32:64,4&(t&=~(c?64:32))||(t&=-4);var d=[e,t,o,c?i:void 0,c?a:void 0,c?void 0:i,c?void 0:a,s,l,u],p=n.apply(void 0,d);return Ie(e)&&Te(p,d),p.placeholder=r,Ze(p,e,t)}function Xe(e){return e.placeholder}var et=/^(?:0|[1-9]\d*)$/;function tt(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&et.test(e))&&e>-1&&e%1==0&&e<t}var nt=Math.min;var rt="__lodash_placeholder__";function ot(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==rt||(e[n]=rt,i[o++]=n)}return i}function it(e,t,n,r,o,i,a,s,l,u){var c=128&t,d=1&t,p=2&t,h=24&t,g=512&t,v=p?void 0:he(e);return function m(){for(var y=arguments.length,b=Array(y),_=y;_--;)b[_]=arguments[_];if(h)var x=Xe(m),w=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(b,x);if(r&&(b=me(b,r,o,h)),i&&(b=be(b,i,a,h)),y-=w,h&&y<u){var S=ot(b,x);return Qe(e,t,it,m.placeholder,n,b,S,s,l,u-y)}var E=d?n:this,k=p?E[e]:e;return y=b.length,s?b=function(e,t){for(var n=e.length,r=nt(t.length,n),o=je(e);r--;){var i=t[r];e[r]=tt(i,n)?o[i]:void 0}return e}(b,s):g&&y>1&&b.reverse(),c&&l<y&&(b.length=l),this&&this!==f&&this instanceof m&&(k=v||he(k)),k.apply(E,b)}}var at="__lodash_placeholder__",st=128,lt=Math.min;var ut=Math.max;function ct(e,t,n,r,o,i,a,s){var l=2&t;if(!l&&"function"!=typeof e)throw new TypeError("Expected a function");var u=r?r.length:0;if(u||(t&=-97,r=o=void 0),a=void 0===a?a:ut(V(a),0),s=void 0===s?s:V(s),u-=o?o.length:0,64&t){var c=r,d=o;r=o=void 0}var p=l?void 0:Ee(e),h=[e,t,n,r,o,c,d,i,a,s];if(p&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==st&&8==n||r==st&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var s=t[3];if(s){var l=e[3];e[3]=l?me(l,s,t[4]):s,e[4]=l?ot(e[3],at):t[4]}(s=t[5])&&(l=e[5],e[5]=l?be(l,s,t[6]):s,e[6]=l?ot(e[5],at):t[6]),(s=t[7])&&(e[7]=s),r&st&&(e[8]=null==e[8]?t[8]:lt(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(h,p),e=h[0],t=h[1],n=h[2],r=h[3],o=h[4],!(s=h[9]=void 0===h[9]?l?0:e.length:ut(h[9]-u,0))&&24&t&&(t&=-25),t&&1!=t)g=8==t||16==t?function(e,t,n){var r=he(e);return function o(){for(var i=arguments.length,a=Array(i),s=i,l=Xe(o);s--;)a[s]=arguments[s];var u=i<3&&a[0]!==l&&a[i-1]!==l?[]:ot(a,l);return(i-=u.length)<n?Qe(e,t,it,o.placeholder,void 0,a,u,void 0,void 0,n-i):ge(this&&this!==f&&this instanceof o?r:e,this,a)}}(e,t,s):32!=t&&33!=t||o.length?it.apply(void 0,h):function(e,t,n,r){var o=1&t,i=he(e);return function t(){for(var a=-1,s=arguments.length,l=-1,u=r.length,c=Array(u+s),d=this&&this!==f&&this instanceof t?i:e;++l<u;)c[l]=r[l];for(;s--;)c[l++]=arguments[++a];return ge(d,o?n:this,c)}}(e,t,n,r);else var g=function(e,t,n){var r=1&t,o=he(e);return function t(){return(this&&this!==f&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Ze((p?ce:Te)(g,h),e,t)}function dt(e,t,n){return t=n?void 0:t,ct(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function pt(e,t,n){"__proto__"==t&&Fe?Fe(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ft(e,t){return e===t||e!=e&&t!=t}var ht=Object.prototype.hasOwnProperty;function gt(e,t,n){var r=e[t];ht.call(e,t)&&ft(r,n)&&(void 0!==n||t in e)||pt(e,t,n)}function vt(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),o?pt(n,s,l):gt(n,s,l)}return n}var mt=Math.max;function yt(e,t,n){return t=mt(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=mt(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),ge(e,this,s)}}function bt(e,t){return Ve(yt(e,t,K),e+"")}function _t(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function xt(e){return null!=e&&_t(e.length)&&!H(e)}function wt(e,t,n){if(!T(n))return!1;var r=typeof t;return!!("number"==r?xt(n)&&tt(t,n.length):"string"==r&&t in n)&&ft(n[t],e)}function St(e){return bt(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&wt(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,i)}return t})}var Et=Object.prototype;function kt(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Et)}function Ct(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Ot(e){return w(e)&&"[object Arguments]"==x(e)}var At=Object.prototype,jt=At.hasOwnProperty,Lt=At.propertyIsEnumerable,Rt=Ot(function(){return arguments}())?Ot:function(e){return w(e)&&jt.call(e,"callee")&&!Lt.call(e,"callee")};function Pt(){return!1}var It="object"==typeof exports&&exports&&!exports.nodeType&&exports,Nt=It&&"object"==typeof module&&module&&!module.nodeType&&module,Mt=Nt&&Nt.exports===It?f.Buffer:void 0,Tt=(Mt?Mt.isBuffer:void 0)||Pt,Bt={};function $t(e){return function(t){return e(t)}}Bt["[object Float32Array]"]=Bt["[object Float64Array]"]=Bt["[object Int8Array]"]=Bt["[object Int16Array]"]=Bt["[object Int32Array]"]=Bt["[object Uint8Array]"]=Bt["[object Uint8ClampedArray]"]=Bt["[object Uint16Array]"]=Bt["[object Uint32Array]"]=!0,Bt["[object Arguments]"]=Bt["[object Array]"]=Bt["[object ArrayBuffer]"]=Bt["[object Boolean]"]=Bt["[object DataView]"]=Bt["[object Date]"]=Bt["[object Error]"]=Bt["[object Function]"]=Bt["[object Map]"]=Bt["[object Number]"]=Bt["[object Object]"]=Bt["[object RegExp]"]=Bt["[object Set]"]=Bt["[object String]"]=Bt["[object WeakMap]"]=!1;var Dt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Wt=Dt&&"object"==typeof module&&module&&!module.nodeType&&module,zt=Wt&&Wt.exports===Dt&&d.process,Ft=function(){try{var e=Wt&&Wt.require&&Wt.require("util").types;return e||zt&&zt.binding&&zt.binding("util")}catch(e){}}(),Ut=Ft&&Ft.isTypedArray,Vt=Ut?$t(Ut):function(e){return w(e)&&_t(e.length)&&!!Bt[x(e)]},qt=Object.prototype.hasOwnProperty;function Kt(e,t){var n=C(e),r=!n&&Rt(e),o=!n&&!r&&Tt(e),i=!n&&!r&&!o&&Vt(e),a=n||r||o||i,s=a?Ct(e.length,String):[],l=s.length;for(var u in e)!t&&!qt.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||tt(u,l))||s.push(u);return s}function Ht(e,t){return function(n){return e(t(n))}}var Jt=Ht(Object.keys,Object),Yt=Object.prototype.hasOwnProperty;function Gt(e){if(!kt(e))return Jt(e);var t=[];for(var n in Object(e))Yt.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Zt(e){return xt(e)?Kt(e):Gt(e)}var Qt=Object.prototype.hasOwnProperty,Xt=St(function(e,t){if(kt(t)||xt(t))vt(t,Zt(t),e);else for(var n in t)Qt.call(t,n)&>(e,n,t[n])}),en=Xt;var tn=Object.prototype.hasOwnProperty;function nn(e){if(!T(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=kt(e),n=[];for(var r in e)("constructor"!=r||!t&&tn.call(e,r))&&n.push(r);return n}function rn(e){return xt(e)?Kt(e,!0):nn(e)}var on=St(function(e,t){vt(t,rn(t),e)}),an=on,sn=St(function(e,t,n,r){vt(t,rn(t),e,r)}),ln=sn,un=St(function(e,t,n,r){vt(t,Zt(t),e,r)}),cn=un,dn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pn=/^\w*$/;function fn(e,t){if(C(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!S(e))||(pn.test(e)||!dn.test(e)||null!=t&&e in Object(t))}var hn=ae(Object,"create");var gn=Object.prototype.hasOwnProperty;var vn=Object.prototype.hasOwnProperty;function mn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function yn(e,t){for(var n=e.length;n--;)if(ft(e[n][0],t))return n;return-1}mn.prototype.clear=function(){this.__data__=hn?hn(null):{},this.size=0},mn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},mn.prototype.get=function(e){var t=this.__data__;if(hn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return gn.call(t,e)?t[e]:void 0},mn.prototype.has=function(e){var t=this.__data__;return hn?void 0!==t[e]:vn.call(t,e)},mn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=hn&&void 0===t?"__lodash_hash_undefined__":t,this};var bn=Array.prototype.splice;function _n(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}_n.prototype.clear=function(){this.__data__=[],this.size=0},_n.prototype.delete=function(e){var t=this.__data__,n=yn(t,e);return!(n<0)&&(n==t.length-1?t.pop():bn.call(t,n,1),--this.size,!0)},_n.prototype.get=function(e){var t=this.__data__,n=yn(t,e);return n<0?void 0:t[n][1]},_n.prototype.has=function(e){return yn(this.__data__,e)>-1},_n.prototype.set=function(e,t){var n=this.__data__,r=yn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var xn=ae(f,"Map");function wn(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Sn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Sn.prototype.clear=function(){this.size=0,this.__data__={hash:new mn,map:new(xn||_n),string:new mn}},Sn.prototype.delete=function(e){var t=wn(this,e).delete(e);return this.size-=t?1:0,t},Sn.prototype.get=function(e){return wn(this,e).get(e)},Sn.prototype.has=function(e){return wn(this,e).has(e)},Sn.prototype.set=function(e,t){var n=wn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function En(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(En.Cache||Sn),n}En.Cache=Sn;var kn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Cn=/\\(\\)?/g,On=function(e){var t=En(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(kn,function(e,n,r,o){t.push(r?o.replace(Cn,"$1"):n||e)}),t}),An=On;function jn(e){return null==e?"":j(e)}function Ln(e,t){return C(e)?e:fn(e,t)?[e]:An(jn(e))}function Rn(e){if("string"==typeof e||S(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Pn(e,t){for(var n=0,r=(t=Ln(t,e)).length;null!=e&&n<r;)e=e[Rn(t[n++])];return n&&n==r?e:void 0}function In(e,t,n){var r=null==e?void 0:Pn(e,t);return void 0===r?n:r}function Nn(e,t){for(var n=-1,r=t.length,o=Array(r),i=null==e;++n<r;)o[n]=i?void 0:In(e,t[n]);return o}function Mn(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var Tn=h?h.isConcatSpreadable:void 0;function Bn(e){return C(e)||Rt(e)||!!(Tn&&e&&e[Tn])}function $n(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=Bn),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?$n(s,t-1,n,r,o):Mn(o,s):r||(o[o.length]=s)}return o}function Dn(e){return(null==e?0:e.length)?$n(e,1):[]}function Wn(e){return Ve(yt(e,void 0,Dn),e+"")}var zn=Wn(Nn),Fn=Ht(Object.getPrototypeOf,Object),Un=Function.prototype,Vn=Object.prototype,qn=Un.toString,Kn=Vn.hasOwnProperty,Hn=qn.call(Object);function Jn(e){if(!w(e)||"[object Object]"!=x(e))return!1;var t=Fn(e);if(null===t)return!0;var n=Kn.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&qn.call(n)==Hn}function Yn(e){if(!w(e))return!1;var t=x(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Jn(e)}var Gn=bt(function(e,t){try{return ge(e,void 0,t)}catch(e){return Yn(e)?e:new Error(e)}}),Zn=Gn;function Qn(e,t){var n;if("function"!=typeof t)throw new TypeError("Expected a function");return e=V(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var Xn=bt(function(e,t,n){var r=1;if(n.length){var o=ot(n,Xe(Xn));r|=32}return ct(e,r,t,n,o)});Xn.placeholder={};var er=Xn,tr=Wn(function(e,t){return qe(t,function(t){t=Rn(t),pt(e,t,er(e[t],e))}),e}),nr=tr,rr=bt(function(e,t,n){var r=3;if(n.length){var o=ot(n,Xe(rr));r|=32}return ct(t,r,e,n,o)});rr.placeholder={};var or=rr;function ir(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}function ar(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:ir(e,t,n)}var sr=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function lr(e){return sr.test(e)}var ur="\\ud800-\\udfff",cr="["+ur+"]",dr="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",pr="\\ud83c[\\udffb-\\udfff]",fr="[^"+ur+"]",hr="(?:\\ud83c[\\udde6-\\uddff]){2}",gr="[\\ud800-\\udbff][\\udc00-\\udfff]",vr="(?:"+dr+"|"+pr+")"+"?",mr="[\\ufe0e\\ufe0f]?",yr=mr+vr+("(?:\\u200d(?:"+[fr,hr,gr].join("|")+")"+mr+vr+")*"),br="(?:"+[fr+dr+"?",dr,hr,gr,cr].join("|")+")",_r=RegExp(pr+"(?="+pr+")|"+br+yr,"g");function xr(e){return lr(e)?function(e){return e.match(_r)||[]}(e):function(e){return e.split("")}(e)}function wr(e){return function(t){var n=lr(t=jn(t))?xr(t):void 0,r=n?n[0]:t.charAt(0),o=n?ar(n,1).join(""):t.slice(1);return r[e]()+o}}var Sr=wr("toUpperCase");function Er(e){return Sr(jn(e).toLowerCase())}function kr(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Cr(e){return function(t){return null==e?void 0:e[t]}}var Or=Cr({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Ar=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,jr=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");function Lr(e){return(e=jn(e))&&e.replace(Ar,Or).replace(jr,"")}var Rr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var Pr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var Ir="\\ud800-\\udfff",Nr="\\u2700-\\u27bf",Mr="a-z\\xdf-\\xf6\\xf8-\\xff",Tr="A-Z\\xc0-\\xd6\\xd8-\\xde",Br="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",$r="["+Br+"]",Dr="\\d+",Wr="["+Nr+"]",zr="["+Mr+"]",Fr="[^"+Ir+Br+Dr+Nr+Mr+Tr+"]",Ur="(?:\\ud83c[\\udde6-\\uddff]){2}",Vr="[\\ud800-\\udbff][\\udc00-\\udfff]",qr="["+Tr+"]",Kr="(?:"+zr+"|"+Fr+")",Hr="(?:"+qr+"|"+Fr+")",Jr="(?:['’](?:d|ll|m|re|s|t|ve))?",Yr="(?:['’](?:D|LL|M|RE|S|T|VE))?",Gr="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Zr="[\\ufe0e\\ufe0f]?",Qr=Zr+Gr+("(?:\\u200d(?:"+["[^"+Ir+"]",Ur,Vr].join("|")+")"+Zr+Gr+")*"),Xr="(?:"+[Wr,Ur,Vr].join("|")+")"+Qr,eo=RegExp([qr+"?"+zr+"+"+Jr+"(?="+[$r,qr,"$"].join("|")+")",Hr+"+"+Yr+"(?="+[$r,qr+Kr,"$"].join("|")+")",qr+"?"+Kr+"+"+Jr,qr+"+"+Yr,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Dr,Xr].join("|"),"g");function to(e,t,n){return e=jn(e),void 0===(t=n?void 0:t)?function(e){return Pr.test(e)}(e)?function(e){return e.match(eo)||[]}(e):function(e){return e.match(Rr)||[]}(e):e.match(t)||[]}var no=RegExp("['’]","g");function ro(e){return function(t){return kr(to(Lr(t).replace(no,"")),e,"")}}var oo=ro(function(e,t,n){return t=t.toLowerCase(),e+(n?Er(t):t)}),io=oo;function ao(){if(!arguments.length)return[];var e=arguments[0];return C(e)?e:[e]}var so=f.isFinite,lo=Math.min;function uo(e){var t=Math[e];return function(e,n){if(e=z(e),(n=null==n?0:lo(V(n),292))&&so(e)){var r=(jn(e)+"e").split("e");return+((r=(jn(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var co=uo("ceil");function po(e){var t=Pe(e);return t.__chain__=!0,t}var fo=Math.ceil,ho=Math.max;function go(e,t,n){t=(n?wt(e,t,n):void 0===t)?1:ho(V(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=Array(fo(r/t));o<r;)a[i++]=ir(e,o,o+=t);return a}function vo(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function mo(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=z(n))==n?n:0),void 0!==t&&(t=(t=z(t))==t?t:0),vo(z(e),t,n)}function yo(e){var t=this.__data__=new _n(e);this.size=t.size}function bo(e,t){return e&&vt(t,Zt(t),e)}yo.prototype.clear=function(){this.__data__=new _n,this.size=0},yo.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},yo.prototype.get=function(e){return this.__data__.get(e)},yo.prototype.has=function(e){return this.__data__.has(e)},yo.prototype.set=function(e,t){var n=this.__data__;if(n instanceof _n){var r=n.__data__;if(!xn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Sn(r)}return n.set(e,t),this.size=n.size,this};var _o="object"==typeof exports&&exports&&!exports.nodeType&&exports,xo=_o&&"object"==typeof module&&module&&!module.nodeType&&module,wo=xo&&xo.exports===_o?f.Buffer:void 0,So=wo?wo.allocUnsafe:void 0;function Eo(e,t){if(t)return e.slice();var n=e.length,r=So?So(n):new e.constructor(n);return e.copy(r),r}function ko(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Co(){return[]}var Oo=Object.prototype.propertyIsEnumerable,Ao=Object.getOwnPropertySymbols,jo=Ao?function(e){return null==e?[]:(e=Object(e),ko(Ao(e),function(t){return Oo.call(e,t)}))}:Co,Lo=jo;var Ro=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Mn(t,Lo(e)),e=Fn(e);return t}:Co,Po=Ro;function Io(e,t,n){var r=t(e);return C(e)?r:Mn(r,n(e))}function No(e){return Io(e,Zt,Lo)}function Mo(e){return Io(e,rn,Po)}var To=ae(f,"DataView"),Bo=ae(f,"Promise"),$o=ae(f,"Set"),Do="[object Map]",Wo="[object Promise]",zo="[object Set]",Fo="[object WeakMap]",Uo="[object DataView]",Vo=Q(To),qo=Q(xn),Ko=Q(Bo),Ho=Q($o),Jo=Q(se),Yo=x;(To&&Yo(new To(new ArrayBuffer(1)))!=Uo||xn&&Yo(new xn)!=Do||Bo&&Yo(Bo.resolve())!=Wo||$o&&Yo(new $o)!=zo||se&&Yo(new se)!=Fo)&&(Yo=function(e){var t=x(e),n="[object Object]"==t?e.constructor:void 0,r=n?Q(n):"";if(r)switch(r){case Vo:return Uo;case qo:return Do;case Ko:return Wo;case Ho:return zo;case Jo:return Fo}return t});var Go=Yo,Zo=Object.prototype.hasOwnProperty;var Qo=f.Uint8Array;function Xo(e){var t=new e.constructor(e.byteLength);return new Qo(t).set(new Qo(e)),t}var ei=/\w*$/;var ti=h?h.prototype:void 0,ni=ti?ti.valueOf:void 0;function ri(e,t){var n=t?Xo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function oi(e,t,n){var r,o=e.constructor;switch(t){case"[object ArrayBuffer]":return Xo(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return function(e,t){var n=t?Xo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return ri(e,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,ei.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Symbol]":return r=e,ni?Object(ni.call(r)):{}}}function ii(e){return"function"!=typeof e.constructor||kt(e)?{}:fe(Fn(e))}var ai=Ft&&Ft.isMap,si=ai?$t(ai):function(e){return w(e)&&"[object Map]"==Go(e)};var li=Ft&&Ft.isSet,ui=li?$t(li):function(e){return w(e)&&"[object Set]"==Go(e)},ci="[object Arguments]",di="[object Function]",pi="[object Object]",fi={};function hi(e,t,n,r,o,i){var a,s=1&t,l=2&t,u=4&t;if(n&&(a=o?n(e,r,o,i):n(e)),void 0!==a)return a;if(!T(e))return e;var c=C(e);if(c){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Zo.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return je(e,a)}else{var d=Go(e),p=d==di||"[object GeneratorFunction]"==d;if(Tt(e))return Eo(e,s);if(d==pi||d==ci||p&&!o){if(a=l||p?{}:ii(e),!s)return l?function(e,t){return vt(e,Po(e),t)}(e,function(e,t){return e&&vt(t,rn(t),e)}(a,e)):function(e,t){return vt(e,Lo(e),t)}(e,bo(a,e))}else{if(!fi[d])return o?e:{};a=oi(e,d,s)}}i||(i=new yo);var f=i.get(e);if(f)return f;i.set(e,a),ui(e)?e.forEach(function(r){a.add(hi(r,t,n,r,e,i))}):si(e)&&e.forEach(function(r,o){a.set(o,hi(r,t,n,o,e,i))});var h=c?void 0:(u?l?Mo:No:l?rn:Zt)(e);return qe(h||e,function(r,o){h&&(r=e[o=r]),gt(a,o,hi(r,t,n,o,e,i))}),a}fi[ci]=fi["[object Array]"]=fi["[object ArrayBuffer]"]=fi["[object DataView]"]=fi["[object Boolean]"]=fi["[object Date]"]=fi["[object Float32Array]"]=fi["[object Float64Array]"]=fi["[object Int8Array]"]=fi["[object Int16Array]"]=fi["[object Int32Array]"]=fi["[object Map]"]=fi["[object Number]"]=fi[pi]=fi["[object RegExp]"]=fi["[object Set]"]=fi["[object String]"]=fi["[object Symbol]"]=fi["[object Uint8Array]"]=fi["[object Uint8ClampedArray]"]=fi["[object Uint16Array]"]=fi["[object Uint32Array]"]=!0,fi["[object Error]"]=fi[di]=fi["[object WeakMap]"]=!1;function gi(e){return hi(e,4)}function vi(e){return hi(e,5)}function mi(e,t){return hi(e,5,t="function"==typeof t?t:void 0)}function yi(e,t){return hi(e,4,t="function"==typeof t?t:void 0)}function bi(){return new Ae(this.value(),this.__chain__)}function _i(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o}function xi(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Mn(C(n)?je(n):[n],$n(t,1))}function wi(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Sn;++t<n;)this.add(e[t])}function Si(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Ei(e,t){return e.has(t)}wi.prototype.add=wi.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},wi.prototype.has=function(e){return this.__data__.has(e)};function ki(e,t,n,r,o,i){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,p=!0,f=2&n?new wi:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var h=e[d],g=t[d];if(r)var v=a?r(g,h,d,t,e,i):r(h,g,d,e,t,i);if(void 0!==v){if(v)continue;p=!1;break}if(f){if(!Si(t,function(e,t){if(!Ei(f,t)&&(h===e||o(h,e,n,r,i)))return f.push(t)})){p=!1;break}}else if(h!==g&&!o(h,g,n,r,i)){p=!1;break}}return i.delete(e),i.delete(t),p}function Ci(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Oi(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var Ai=h?h.prototype:void 0,ji=Ai?Ai.valueOf:void 0;var Li=Object.prototype.hasOwnProperty;var Ri="[object Arguments]",Pi="[object Array]",Ii="[object Object]",Ni=Object.prototype.hasOwnProperty;function Mi(e,t,n,r,o,i){var a=C(e),s=C(t),l=a?Pi:Go(e),u=s?Pi:Go(t),c=(l=l==Ri?Ii:l)==Ii,d=(u=u==Ri?Ii:u)==Ii,p=l==u;if(p&&Tt(e)){if(!Tt(t))return!1;a=!0,c=!1}if(p&&!c)return i||(i=new yo),a||Vt(e)?ki(e,t,n,r,o,i):function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new Qo(e),new Qo(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ft(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Ci;case"[object Set]":var l=1&r;if(s||(s=Oi),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var c=ki(s(e),s(t),r,o,i,a);return a.delete(e),c;case"[object Symbol]":if(ji)return ji.call(e)==ji.call(t)}return!1}(e,t,l,n,r,o,i);if(!(1&n)){var f=c&&Ni.call(e,"__wrapped__"),h=d&&Ni.call(t,"__wrapped__");if(f||h){var g=f?e.value():e,v=h?t.value():t;return i||(i=new yo),o(g,v,n,r,i)}}return!!p&&(i||(i=new yo),function(e,t,n,r,o,i){var a=1&n,s=No(e),l=s.length;if(l!=No(t).length&&!a)return!1;for(var u=l;u--;){var c=s[u];if(!(a?c in t:Li.call(t,c)))return!1}var d=i.get(e),p=i.get(t);if(d&&p)return d==t&&p==e;var f=!0;i.set(e,t),i.set(t,e);for(var h=a;++u<l;){var g=e[c=s[u]],v=t[c];if(r)var m=a?r(v,g,c,t,e,i):r(g,v,c,e,t,i);if(!(void 0===m?g===v||o(g,v,n,r,i):m)){f=!1;break}h||(h="constructor"==c)}if(f&&!h){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(f=!1)}return i.delete(e),i.delete(t),f}(e,t,n,r,o,i))}function Ti(e,t,n,r,o){return e===t||(null==e||null==t||!w(e)&&!w(t)?e!=e&&t!=t:Mi(e,t,n,r,Ti,o))}function Bi(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){var l=(s=n[o])[0],u=e[l],c=s[1];if(a&&s[2]){if(void 0===u&&!(l in e))return!1}else{var d=new yo;if(r)var p=r(u,c,l,e,t,d);if(!(void 0===p?Ti(c,u,3,r,d):p))return!1}}return!0}function $i(e){return e==e&&!T(e)}function Di(e){for(var t=Zt(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,$i(o)]}return t}function Wi(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}function zi(e){var t=Di(e);return 1==t.length&&t[0][2]?Wi(t[0][0],t[0][1]):function(n){return n===e||Bi(n,e,t)}}function Fi(e,t){return null!=e&&t in Object(e)}function Ui(e,t,n){for(var r=-1,o=(t=Ln(t,e)).length,i=!1;++r<o;){var a=Rn(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&_t(o)&&tt(a,o)&&(C(e)||Rt(e))}function Vi(e,t){return null!=e&&Ui(e,t,Fi)}function qi(e,t){return fn(e)&&$i(t)?Wi(Rn(e),t):function(n){var r=In(n,e);return void 0===r&&r===t?Vi(n,e):Ti(t,r,3)}}function Ki(e){return function(t){return null==t?void 0:t[e]}}function Hi(e){return fn(e)?Ki(Rn(e)):function(e){return function(t){return Pn(t,e)}}(e)}function Ji(e){return"function"==typeof e?e:null==e?K:"object"==typeof e?C(e)?qi(e[0],e[1]):zi(e):Hi(e)}function Yi(e){var t=null==e?0:e.length,n=Ji;return e=t?k(e,function(e){if("function"!=typeof e[1])throw new TypeError("Expected a function");return[n(e[0]),e[1]]}):[],bt(function(n){for(var r=-1;++r<t;){var o=e[r];if(ge(o[0],this,n))return ge(o[1],this,n)}})}function Gi(e,t,n){var r=n.length;if(null==e)return!r;for(e=Object(e);r--;){var o=n[r],i=t[o],a=e[o];if(void 0===a&&!(o in e)||!i(a))return!1}return!0}function Zi(e){return function(e){var t=Zt(e);return function(n){return Gi(n,e,t)}}(hi(e,1))}function Qi(e,t){return null==t||Gi(e,t,Zt(t))}function Xi(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function ea(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}var ta=ea();function na(e,t){return e&&ta(e,t,Zt)}function ra(e,t){return function(n,r){if(null==n)return n;if(!xt(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}var oa=ra(na);function ia(e,t,n,r){return oa(e,function(e,o,i){t(r,e,n(e),i)}),r}function aa(e,t){return function(n,r){var o=C(n)?Xi:ia,i=t?t():{};return o(n,e,Ji(r),i)}}var sa=Object.prototype.hasOwnProperty,la=aa(function(e,t,n){sa.call(e,n)?++e[n]:pt(e,n,1)}),ua=la;function ca(e,t){var n=fe(e);return null==t?n:bo(n,t)}function da(e,t,n){var r=ct(e,8,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=da.placeholder,r}da.placeholder={};function pa(e,t,n){var r=ct(e,16,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=pa.placeholder,r}pa.placeholder={};var fa=function(){return f.Date.now()},ha=Math.max,ga=Math.min;function va(e,t,n){var r,o,i,a,s,l,u=0,c=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=r,i=o;return r=o=void 0,u=t,a=e.apply(i,n)}function h(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-u>=i}function g(){var e=fa();if(h(e))return v(e);s=setTimeout(g,function(e){var n=t-(e-l);return d?ga(n,i-(e-u)):n}(e))}function v(e){return s=void 0,p&&r?f(e):(r=o=void 0,a)}function m(){var e=fa(),n=h(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return u=e,s=setTimeout(g,t),c?f(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(g,t),f(l)}return void 0===s&&(s=setTimeout(g,t)),a}return t=z(t)||0,T(n)&&(c=!!n.leading,i=(d="maxWait"in n)?ha(z(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),m.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=o=s=void 0},m.flush=function(){return void 0===s?a:v(fa())},m}function ma(e,t){return null==e||e!=e?t:e}var ya=Object.prototype,ba=ya.hasOwnProperty,_a=bt(function(e,t){e=Object(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&wt(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],a=rn(i),s=-1,l=a.length;++s<l;){var u=a[s],c=e[u];(void 0===c||ft(c,ya[u])&&!ba.call(e,u))&&(e[u]=i[u])}return e}),xa=_a;function wa(e,t,n){(void 0!==n&&!ft(e[t],n)||void 0===n&&!(t in e))&&pt(e,t,n)}function Sa(e){return w(e)&&xt(e)}function Ea(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function ka(e){return vt(e,rn(e))}function Ca(e,t,n,r,o){e!==t&&ta(t,function(i,a){if(o||(o=new yo),T(i))!function(e,t,n,r,o,i,a){var s=Ea(e,n),l=Ea(t,n),u=a.get(l);if(u)wa(e,n,u);else{var c=i?i(s,l,n+"",e,t,a):void 0,d=void 0===c;if(d){var p=C(l),f=!p&&Tt(l),h=!p&&!f&&Vt(l);c=l,p||f||h?C(s)?c=s:Sa(s)?c=je(s):f?(d=!1,c=Eo(l,!0)):h?(d=!1,c=ri(l,!0)):c=[]:Jn(l)||Rt(l)?(c=s,Rt(s)?c=ka(s):T(s)&&!H(s)||(c=ii(l))):d=!1}d&&(a.set(l,c),o(c,l,r,i,a),a.delete(l)),wa(e,n,c)}}(e,t,a,n,Ca,r,o);else{var s=r?r(Ea(e,a),i,a+"",e,t,o):void 0;void 0===s&&(s=i),wa(e,a,s)}},rn)}function Oa(e,t,n,r,o,i){return T(e)&&T(t)&&(i.set(t,e),Ca(e,t,void 0,Oa,i),i.delete(t)),e}var Aa=St(function(e,t,n,r){Ca(e,t,n,r)}),ja=Aa,La=bt(function(e){return e.push(void 0,Oa),ge(ja,void 0,e)});function Ra(e,t,n){if("function"!=typeof e)throw new TypeError("Expected a function");return setTimeout(function(){e.apply(void 0,n)},t)}var Pa=bt(function(e,t){return Ra(e,1,t)}),Ia=Pa,Na=bt(function(e,t,n){return Ra(e,z(t)||0,n)}),Ma=Na;function Ta(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Ba(e,t,n,r){var o=-1,i=Ye,a=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=k(t,$t(n))),r?(i=Ta,a=!1):t.length>=200&&(i=Ei,a=!1,t=new wi(t));e:for(;++o<s;){var c=e[o],d=null==n?c:n(c);if(c=r||0!==c?c:0,a&&d==d){for(var p=u;p--;)if(t[p]===d)continue e;l.push(c)}else i(t,d,r)||l.push(c)}return l}var $a=bt(function(e,t){return Sa(e)?Ba(e,$n(t,1,Sa,!0)):[]}),Da=$a;function Wa(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var za=bt(function(e,t){var n=Wa(t);return Sa(n)&&(n=void 0),Sa(e)?Ba(e,$n(t,1,Sa,!0),Ji(n)):[]}),Fa=za,Ua=bt(function(e,t){var n=Wa(t);return Sa(n)&&(n=void 0),Sa(e)?Ba(e,$n(t,1,Sa,!0),void 0,n):[]}),Va=Ua,qa=L(function(e,t){return e/t},1);function Ka(e,t,n){var r=null==e?0:e.length;return r?ir(e,(t=n||void 0===t?1:V(t))<0?0:t,r):[]}function Ha(e,t,n){var r=null==e?0:e.length;return r?ir(e,0,(t=r-(t=n||void 0===t?1:V(t)))<0?0:t):[]}function Ja(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?ir(e,r?0:i,r?i+1:o):ir(e,r?i+1:0,r?o:i)}function Ya(e,t){return e&&e.length?Ja(e,Ji(t),!0,!0):[]}function Ga(e,t){return e&&e.length?Ja(e,Ji(t),!0):[]}function Za(e){return"function"==typeof e?e:K}function Qa(e,t){return(C(e)?qe:oa)(e,Za(t))}function Xa(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}var es=ea(!0);function ts(e,t){return e&&es(e,t,Zt)}var ns=ra(ts,!0);function rs(e,t){return(C(e)?Xa:ns)(e,Za(t))}function os(e,t,n){e=jn(e),t=j(t);var r=e.length,o=n=void 0===n?r:vo(V(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t}function is(e){return function(t){var n=Go(t);return"[object Map]"==n?Ci(t):"[object Set]"==n?function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}(t):function(e,t){return k(t,function(t){return[t,e[t]]})}(t,e(t))}}var as=is(Zt),ss=is(rn),ls=Cr({"&":"&","<":"<",">":">",'"':""","'":"'"}),us=/[&<>"']/g,cs=RegExp(us.source);function ds(e){return(e=jn(e))&&cs.test(e)?e.replace(us,ls):e}var ps=/[\\^$.*+?()[\]{}|]/g,fs=RegExp(ps.source);function hs(e){return(e=jn(e))&&fs.test(e)?e.replace(ps,"\\$&"):e}function gs(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function vs(e,t){var n=!0;return oa(e,function(e,r,o){return n=!!t(e,r,o)}),n}function ms(e,t,n){var r=C(e)?gs:vs;return n&&wt(e,t,n)&&(t=void 0),r(e,Ji(t))}function ys(e){return e?vo(V(e),0,4294967295):0}function bs(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&wt(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=V(n))<0&&(n=-n>o?0:o+n),(r=void 0===r||r>o?o:V(r))<0&&(r+=o),r=n>r?0:ys(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]}function _s(e,t){var n=[];return oa(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}function xs(e,t){return(C(e)?ko:_s)(e,Ji(t))}function ws(e){return function(t,n,r){var o=Object(t);if(!xt(t)){var i=Ji(n);t=Zt(t),n=function(e){return i(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:void 0}}var Ss=Math.max;function Es(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:V(n);return o<0&&(o=Ss(r+o,0)),Ke(e,Ji(t),o)}var ks=ws(Es);function Cs(e,t,n){var r;return n(e,function(e,n,o){if(t(e,n,o))return r=n,!1}),r}function Os(e,t){return Cs(e,Ji(t),na)}var As=Math.max,js=Math.min;function Ls(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return void 0!==n&&(o=V(n),o=n<0?As(r+o,0):js(o,r-1)),Ke(e,Ji(t),o,!0)}var Rs=ws(Ls);function Ps(e,t){return Cs(e,Ji(t),ts)}function Is(e){return e&&e.length?e[0]:void 0}function Ns(e,t){var n=-1,r=xt(e)?Array(e.length):[];return oa(e,function(e,o,i){r[++n]=t(e,o,i)}),r}function Ms(e,t){return(C(e)?k:Ns)(e,Ji(t))}function Ts(e,t){return $n(Ms(e,t),1)}var Bs=1/0;function $s(e,t){return $n(Ms(e,t),Bs)}function Ds(e,t,n){return n=void 0===n?1:V(n),$n(Ms(e,t),n)}var Ws=1/0;function zs(e){return(null==e?0:e.length)?$n(e,Ws):[]}function Fs(e,t){return(null==e?0:e.length)?$n(e,t=void 0===t?1:V(t)):[]}function Us(e){return ct(e,512)}var Vs=uo("floor");function qs(e){return Wn(function(t){var n=t.length,r=n,o=Ae.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if("function"!=typeof i)throw new TypeError("Expected a function");if(o&&!a&&"wrapper"==Oe(i))var a=new Ae([],!0)}for(r=a?r:n;++r<n;){var s=Oe(i=t[r]),l="wrapper"==s?Ee(i):void 0;a=l&&Ie(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?a[Oe(l[0])].apply(a,l[3]):1==i.length&&Ie(i)?a[s]():a.thru(i)}return function(){var e=arguments,r=e[0];if(a&&1==e.length&&C(r))return a.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}})}var Ks=qs(),Hs=qs(!0);function Js(e,t){return null==e?e:ta(e,Za(t),rn)}function Ys(e,t){return null==e?e:es(e,Za(t),rn)}function Gs(e,t){return e&&na(e,Za(t))}function Zs(e,t){return e&&ts(e,Za(t))}function Qs(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r}function Xs(e,t){return ko(t,function(t){return H(e[t])})}function el(e){return null==e?[]:Xs(e,Zt(e))}function tl(e){return null==e?[]:Xs(e,rn(e))}var nl=Object.prototype.hasOwnProperty,rl=aa(function(e,t,n){nl.call(e,n)?e[n].push(t):pt(e,n,[t])}),ol=rl;function il(e,t){return e>t}function al(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=z(t),n=z(n)),e(t,n)}}var sl=al(il),ll=al(function(e,t){return e>=t}),ul=Object.prototype.hasOwnProperty;function cl(e,t){return null!=e&&ul.call(e,t)}function dl(e,t){return null!=e&&Ui(e,t,cl)}var pl=Math.max,fl=Math.min;function hl(e,t,n){return t=U(t),void 0===n?(n=t,t=0):n=U(n),function(e,t,n){return e>=fl(t,n)&&e<pl(t,n)}(e=z(e),t,n)}function gl(e){return"string"==typeof e||!C(e)&&w(e)&&"[object String]"==x(e)}function vl(e,t){return k(t,function(t){return e[t]})}function ml(e){return null==e?[]:vl(e,Zt(e))}var yl=Math.max;function bl(e,t,n,r){e=xt(e)?e:ml(e),n=n&&!r?V(n):0;var o=e.length;return n<0&&(n=yl(o+n,0)),gl(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Je(e,t,n)>-1}var _l=Math.max;function xl(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:V(n);return o<0&&(o=_l(r+o,0)),Je(e,t,o)}function wl(e){return(null==e?0:e.length)?ir(e,0,-1):[]}var Sl=Math.min;function El(e,t,n){for(var r=n?Ta:Ye,o=e[0].length,i=e.length,a=i,s=Array(i),l=1/0,u=[];a--;){var c=e[a];a&&t&&(c=k(c,$t(t))),l=Sl(c.length,l),s[a]=!n&&(t||o>=120&&c.length>=120)?new wi(a&&c):void 0}c=e[0];var d=-1,p=s[0];e:for(;++d<o&&u.length<l;){var f=c[d],h=t?t(f):f;if(f=n||0!==f?f:0,!(p?Ei(p,h):r(u,h,n))){for(a=i;--a;){var g=s[a];if(!(g?Ei(g,h):r(e[a],h,n)))continue e}p&&p.push(h),u.push(f)}}return u}function kl(e){return Sa(e)?e:[]}var Cl=bt(function(e){var t=k(e,kl);return t.length&&t[0]===e[0]?El(t):[]}),Ol=bt(function(e){var t=Wa(e),n=k(e,kl);return t===Wa(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?El(n,Ji(t)):[]}),Al=Ol,jl=bt(function(e){var t=Wa(e),n=k(e,kl);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?El(n,void 0,t):[]});function Ll(e,t){return function(n,r){return function(e,t,n,r){return na(e,function(e,o,i){t(r,n(e),o,i)}),r}(n,e,t(r),{})}}var Rl=Object.prototype.toString,Pl=Ll(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Rl.call(t)),e[t]=n},We(K)),Il=Pl,Nl=Object.prototype,Ml=Nl.hasOwnProperty,Tl=Nl.toString,Bl=Ll(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Tl.call(t)),Ml.call(e,t)?e[t].push(n):e[t]=[n]},Ji),$l=Bl;function Dl(e,t){return t.length<2?e:Pn(e,ir(t,0,-1))}function Wl(e,t,n){var r=null==(e=Dl(e,t=Ln(t,e)))?e:e[Rn(Wa(t))];return null==r?void 0:ge(r,e,n)}var zl=bt(Wl),Fl=bt(function(e,t,n){var r=-1,o="function"==typeof t,i=xt(e)?Array(e.length):[];return oa(e,function(e){i[++r]=o?ge(t,e,n):Wl(e,t,n)}),i}),Ul=Fl;var Vl=Ft&&Ft.isArrayBuffer,ql=Vl?$t(Vl):function(e){return w(e)&&"[object ArrayBuffer]"==x(e)};function Kl(e){return!0===e||!1===e||w(e)&&"[object Boolean]"==x(e)}var Hl=Ft&&Ft.isDate,Jl=Hl?$t(Hl):function(e){return w(e)&&"[object Date]"==x(e)};function Yl(e){return w(e)&&1===e.nodeType&&!Jn(e)}var Gl=Object.prototype.hasOwnProperty;function Zl(e){if(null==e)return!0;if(xt(e)&&(C(e)||"string"==typeof e||"function"==typeof e.splice||Tt(e)||Vt(e)||Rt(e)))return!e.length;var t=Go(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(kt(e))return!Gt(e).length;for(var n in e)if(Gl.call(e,n))return!1;return!0}function Ql(e,t){return Ti(e,t)}function Xl(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?Ti(e,t,void 0,n):!!r}var eu=f.isFinite;function tu(e){return"number"==typeof e&&eu(e)}function nu(e){return"number"==typeof e&&e==V(e)}function ru(e,t){return e===t||Bi(e,t,Di(t))}function ou(e,t,n){return n="function"==typeof n?n:void 0,Bi(e,t,Di(t),n)}function iu(e){return"number"==typeof e||w(e)&&"[object Number]"==x(e)}function au(e){return iu(e)&&e!=+e}var su=Y?H:Pt;function lu(e){if(su(e))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return ie(e)}function uu(e){return null==e}function cu(e){return null===e}var du=Ft&&Ft.isRegExp,pu=du?$t(du):function(e){return w(e)&&"[object RegExp]"==x(e)},fu=9007199254740991;function hu(e){return nu(e)&&e>=-9007199254740991&&e<=fu}function gu(e){return void 0===e}function vu(e){return w(e)&&"[object WeakMap]"==Go(e)}function mu(e){return w(e)&&"[object WeakSet]"==x(e)}function yu(e){return Ji("function"==typeof e?e:hi(e,1))}var bu=Array.prototype.join;function _u(e,t){return null==e?"":bu.call(e,t)}var xu=ro(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),wu=xu,Su=aa(function(e,t,n){pt(e,n,t)}),Eu=Su;var ku=Math.max,Cu=Math.min;function Ou(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=V(n))<0?ku(r+o,0):Cu(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Ke(e,He,o,!0)}var Au=ro(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),ju=Au,Lu=wr("toLowerCase");function Ru(e,t){return e<t}var Pu=al(Ru),Iu=al(function(e,t){return e<=t});function Nu(e,t){var n={};return t=Ji(t),na(e,function(e,r,o){pt(n,t(e,r,o),e)}),n}function Mu(e,t){var n={};return t=Ji(t),na(e,function(e,r,o){pt(n,r,t(e,r,o))}),n}function Tu(e){return zi(hi(e,1))}function Bu(e,t){return qi(e,hi(t,1))}function $u(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(null!=a&&(void 0===s?a==a&&!S(a):n(a,s)))var s=a,l=i}return l}function Du(e){return e&&e.length?$u(e,K,il):void 0}function Wu(e,t){return e&&e.length?$u(e,Ji(t),il):void 0}function zu(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n}function Fu(e,t){var n=null==e?0:e.length;return n?zu(e,t)/n:NaN}function Uu(e){return Fu(e,K)}function Vu(e,t){return Fu(e,Ji(t))}var qu=St(function(e,t,n){Ca(e,t,n)}),Ku=qu,Hu=bt(function(e,t){return function(n){return Wl(n,e,t)}}),Ju=Hu,Yu=bt(function(e,t){return function(n){return Wl(e,n,t)}}),Gu=Yu;function Zu(e){return e&&e.length?$u(e,K,Ru):void 0}function Qu(e,t){return e&&e.length?$u(e,Ji(t),Ru):void 0}function Xu(e,t,n){var r=Zt(t),o=Xs(t,r),i=!(T(n)&&"chain"in n&&!n.chain),a=H(e);return qe(o,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=je(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Mn([this.value()],arguments))})}),e}var ec=L(function(e,t){return e*t},1);function tc(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}var nc=h?h.iterator:void 0;function rc(e){if(!e)return[];if(xt(e))return gl(e)?xr(e):je(e);if(nc&&e[nc])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[nc]());var t=Go(e);return("[object Map]"==t?Ci:"[object Set]"==t?Oi:ml)(e)}function oc(){void 0===this.__values__&&(this.__values__=rc(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}}function ic(e,t){var n=e.length;if(n)return tt(t+=t<0?n:0,n)?e[t]:void 0}function ac(e,t){return e&&e.length?ic(e,V(t)):void 0}function sc(e){return e=V(e),bt(function(t){return ic(t,e)})}var lc=Object.prototype.hasOwnProperty;function uc(e,t){var n=-1,r=(t=Ln(t,e)).length;if(!r)return!0;for(var o=null==e||"object"!=typeof e&&"function"!=typeof e;++n<r;){var i=t[n];if("string"==typeof i){if("__proto__"===i&&!lc.call(e,"__proto__"))return!1;if("constructor"===i&&n+1<r&&"string"==typeof t[n+1]&&"prototype"===t[n+1]){if(o&&0===n)continue;return!1}}}var a=Dl(e,t);return null==a||delete a[Rn(Wa(t))]}function cc(e){return Jn(e)?void 0:e}var dc=Wn(function(e,t){var n={};if(null==e)return n;var r=!1;t=k(t,function(t){return t=Ln(t,e),r||(r=t.length>1),t}),vt(e,Mo(e),n),r&&(n=hi(n,7,cc));for(var o=t.length;o--;)uc(n,t[o]);return n}),pc=dc;function fc(e,t,n,r){if(!T(e))return e;for(var o=-1,i=(t=Ln(t,e)).length,a=i-1,s=e;null!=s&&++o<i;){var l=Rn(t[o]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=a){var c=s[l];void 0===(u=r?r(c,l,s):void 0)&&(u=T(c)?c:tt(t[o+1])?[]:{})}gt(s,l,u),s=s[l]}return e}function hc(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=Pn(e,a);n(s,a)&&fc(i,Ln(a,e),s)}return i}function gc(e,t){if(null==e)return{};var n=k(Mo(e),function(e){return[e]});return t=Ji(t),hc(e,n,function(e,n){return t(e,n[0])})}function vc(e,t){return gc(e,tc(Ji(t)))}function mc(e){return Qn(2,e)}function yc(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=S(e),a=void 0!==t,s=null===t,l=t==t,u=S(t);if(!s&&!u&&!i&&e>t||i&&a&&l&&!s&&!u||r&&a&&l||!n&&l||!o)return 1;if(!r&&!i&&!u&&e<t||u&&n&&o&&!r&&!i||s&&n&&o||!a&&o||!l)return-1}return 0}function bc(e,t,n){t=t.length?k(t,function(e){return C(e)?function(t){return Pn(t,1===e.length?e[0]:e)}:e}):[K];var r=-1;t=k(t,$t(Ji));var o=Ns(e,function(e,n,o){var i=k(t,function(t){return t(e)});return{criteria:i,index:++r,value:e}});return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var l=yc(o[r],i[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)})}function _c(e,t,n,r){return null==e?[]:(C(t)||(t=null==t?[]:[t]),C(n=r?void 0:n)||(n=null==n?[]:[n]),bc(e,t,n))}function xc(e){return Wn(function(t){return t=k(t,$t(Ji)),bt(function(n){var r=this;return e(t,function(e){return ge(e,r,n)})})})}var wc=xc(k),Sc=bt,Ec=Math.min,kc=Sc(function(e,t){var n=(t=1==t.length&&C(t[0])?k(t[0],$t(Ji)):k($n(t,1),$t(Ji))).length;return bt(function(r){for(var o=-1,i=Ec(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return ge(e,this,r)})}),Cc=kc,Oc=xc(gs),Ac=xc(Si),jc=Math.floor;function Lc(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=jc(t/2))&&(e+=e)}while(t);return n}var Rc=Ki("length"),Pc="\\ud800-\\udfff",Ic="["+Pc+"]",Nc="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Mc="\\ud83c[\\udffb-\\udfff]",Tc="[^"+Pc+"]",Bc="(?:\\ud83c[\\udde6-\\uddff]){2}",$c="[\\ud800-\\udbff][\\udc00-\\udfff]",Dc="(?:"+Nc+"|"+Mc+")"+"?",Wc="[\\ufe0e\\ufe0f]?",zc=Wc+Dc+("(?:\\u200d(?:"+[Tc,Bc,$c].join("|")+")"+Wc+Dc+")*"),Fc="(?:"+[Tc+Nc+"?",Nc,Bc,$c,Ic].join("|")+")",Uc=RegExp(Mc+"(?="+Mc+")|"+Fc+zc,"g");function Vc(e){return lr(e)?function(e){for(var t=Uc.lastIndex=0;Uc.test(e);)++t;return t}(e):Rc(e)}var qc=Math.ceil;function Kc(e,t){var n=(t=void 0===t?" ":j(t)).length;if(n<2)return n?Lc(t,e):t;var r=Lc(t,qc(e/Vc(t)));return lr(t)?ar(xr(r),0,e).join(""):r.slice(0,e)}var Hc=Math.ceil,Jc=Math.floor;function Yc(e,t,n){e=jn(e);var r=(t=V(t))?Vc(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Kc(Jc(o),n)+e+Kc(Hc(o),n)}function Gc(e,t,n){e=jn(e);var r=(t=V(t))?Vc(e):0;return t&&r<t?e+Kc(t-r,n):e}function Zc(e,t,n){e=jn(e);var r=(t=V(t))?Vc(e):0;return t&&r<t?Kc(t-r,n)+e:e}var Qc=/^\s+/,Xc=f.parseInt;function ed(e,t,n){return n||null==t?t=0:t&&(t=+t),Xc(jn(e).replace(Qc,""),t||0)}var td=bt(function(e,t){return ct(e,32,void 0,t,ot(t,Xe(td)))});td.placeholder={};var nd=td,rd=bt(function(e,t){return ct(e,64,void 0,t,ot(t,Xe(rd)))});rd.placeholder={};var od=rd,id=aa(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),ad=id;var sd=Wn(function(e,t){return null==e?{}:function(e,t){return hc(e,t,function(t,n){return Vi(e,n)})}(e,t)}),ld=sd;function ud(e){for(var t,n=this;n instanceof _e;){var r=Le(n);r.__index__=0,r.__values__=void 0,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t}function cd(e){return function(t){return null==e?void 0:Pn(e,t)}}function dd(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}var pd=Array.prototype.splice;function fd(e,t,n,r){var o=r?dd:Je,i=-1,a=t.length,s=e;for(e===t&&(t=je(t)),n&&(s=k(e,$t(n)));++i<a;)for(var l=0,u=t[i],c=n?n(u):u;(l=o(s,c,l,r))>-1;)s!==e&&pd.call(s,l,1),pd.call(e,l,1);return e}function hd(e,t){return e&&e.length&&t&&t.length?fd(e,t):e}var gd=bt(hd);function vd(e,t,n){return e&&e.length&&t&&t.length?fd(e,t,Ji(n)):e}function md(e,t,n){return e&&e.length&&t&&t.length?fd(e,t,void 0,n):e}var yd=Array.prototype.splice;function bd(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;tt(o)?yd.call(e,o,1):uc(e,o)}}return e}var _d=Wn(function(e,t){var n=null==e?0:e.length,r=Nn(e,t);return bd(e,k(t,function(e){return tt(e,n)?+e:e}).sort(yc)),r}),xd=_d,wd=Math.floor,Sd=Math.random;function Ed(e,t){return e+wd(Sd()*(t-e+1))}var kd=parseFloat,Cd=Math.min,Od=Math.random;function Ad(e,t,n){if(n&&"boolean"!=typeof n&&wt(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=U(e),void 0===t?(t=e,e=0):t=U(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Od();return Cd(e+o*(t-e+kd("1e-"+((o+"").length-1))),t)}return Ed(e,t)}var jd=Math.ceil,Ld=Math.max;function Rd(e){return function(t,n,r){return r&&"number"!=typeof r&&wt(t,n,r)&&(n=r=void 0),t=U(t),void 0===n?(n=t,t=0):n=U(n),function(e,t,n,r){for(var o=-1,i=Ld(jd((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a}(t,n,r=void 0===r?t<n?1:-1:U(r),e)}}var Pd=Rd(),Id=Rd(!0),Nd=Wn(function(e,t){return ct(e,256,void 0,void 0,void 0,t)}),Md=Nd;function Td(e,t,n,r,o){return o(e,function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)}),n}function Bd(e,t,n){var r=C(e)?kr:Td,o=arguments.length<3;return r(e,Ji(t),n,o,oa)}function $d(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Dd(e,t,n){var r=C(e)?$d:Td,o=arguments.length<3;return r(e,Ji(t),n,o,ns)}function Wd(e,t){return(C(e)?ko:_s)(e,tc(Ji(t)))}function zd(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=Ji(t);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return bd(e,o),n}function Fd(e,t,n){return t=(n?wt(e,t,n):void 0===t)?1:V(t),Lc(jn(e),t)}function Ud(){var e=arguments,t=jn(e[0]);return e.length<3?t:t.replace(e[1],e[2])}function Vd(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return bt(e,t=void 0===t?t:V(t))}function qd(e,t,n){var r=-1,o=(t=Ln(t,e)).length;for(o||(o=1,e=void 0);++r<o;){var i=null==e?void 0:e[Rn(t[r])];void 0===i&&(r=o,i=n),e=H(i)?i.call(e):i}return e}var Kd=Array.prototype.reverse;function Hd(e){return null==e?e:Kd.call(e)}var Jd=uo("round");function Yd(e){var t=e.length;return t?e[Ed(0,t-1)]:void 0}function Gd(e){return Yd(ml(e))}function Zd(e){return(C(e)?Yd:Gd)(e)}function Qd(e,t){var n=-1,r=e.length,o=r-1;for(t=void 0===t?r:t;++n<t;){var i=Ed(n,o),a=e[i];e[i]=e[n],e[n]=a}return e.length=t,e}function Xd(e,t){return Qd(je(e),vo(t,0,e.length))}function ep(e,t){var n=ml(e);return Qd(n,vo(t,0,n.length))}function tp(e,t,n){return t=(n?wt(e,t,n):void 0===t)?1:V(t),(C(e)?Xd:ep)(e,t)}function np(e,t,n){return null==e?e:fc(e,t,n)}function rp(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:fc(e,t,n,r)}function op(e){return Qd(je(e))}function ip(e){return Qd(ml(e))}function ap(e){return(C(e)?op:ip)(e)}function sp(e){if(null==e)return 0;if(xt(e))return gl(e)?Vc(e):e.length;var t=Go(e);return"[object Map]"==t||"[object Set]"==t?e.size:Gt(e).length}function lp(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&wt(e,t,n)?(t=0,n=r):(t=null==t?0:V(t),n=void 0===n?r:V(n)),ir(e,t,n)):[]}var up=ro(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),cp=up;function dp(e,t){var n;return oa(e,function(e,r,o){return!(n=t(e,r,o))}),!!n}function pp(e,t,n){var r=C(e)?Si:dp;return n&&wt(e,t,n)&&(t=void 0),r(e,Ji(t))}var fp=bt(function(e,t){if(null==e)return[];var n=t.length;return n>1&&wt(e,t[0],t[1])?t=[]:n>2&&wt(t[0],t[1],t[2])&&(t=[t[0]]),bc(e,$n(t,1),[])}),hp=fp,gp=Math.floor,vp=Math.min;function mp(e,t,n,r){var o=0,i=null==e?0:e.length;if(0===i)return 0;for(var a=(t=n(t))!=t,s=null===t,l=S(t),u=void 0===t;o<i;){var c=gp((o+i)/2),d=n(e[c]),p=void 0!==d,f=null===d,h=d==d,g=S(d);if(a)var v=r||h;else v=u?h&&(r||p):s?h&&p&&(r||!f):l?h&&p&&!f&&(r||!g):!f&&!g&&(r?d<=t:d<t);v?o=c+1:i=c}return vp(i,4294967294)}function yp(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!S(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return mp(e,t,K,n)}function bp(e,t){return yp(e,t)}function _p(e,t,n){return mp(e,t,Ji(n))}function xp(e,t){var n=null==e?0:e.length;if(n){var r=yp(e,t);if(r<n&&ft(e[r],t))return r}return-1}function wp(e,t){return yp(e,t,!0)}function Sp(e,t,n){return mp(e,t,Ji(n),!0)}function Ep(e,t){if(null==e?0:e.length){var n=yp(e,t,!0)-1;if(ft(e[n],t))return n}return-1}function kp(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!ft(s,l)){var l=s;i[o++]=0===a?0:a}}return i}function Cp(e){return e&&e.length?kp(e):[]}function Op(e,t){return e&&e.length?kp(e,Ji(t)):[]}function Ap(e,t,n){return n&&"number"!=typeof n&&wt(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=jn(e))&&("string"==typeof t||null!=t&&!pu(t))&&!(t=j(t))&&lr(e)?ar(xr(e),0,n):e.split(t,n):[]}var jp=Math.max;function Lp(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return t=null==t?0:jp(V(t),0),bt(function(n){var r=n[t],o=ar(n,0,t);return r&&Mn(o,r),ge(e,this,o)})}var Rp=ro(function(e,t,n){return e+(n?" ":"")+Sr(t)}),Pp=Rp;function Ip(e,t,n){return e=jn(e),n=null==n?0:vo(V(n),0,e.length),t=j(t),e.slice(n,n+t.length)==t}function Np(){return{}}function Mp(){return""}function Tp(){return!0}var Bp=L(function(e,t){return e-t},0);function $p(e){return e&&e.length?zu(e,K):0}function Dp(e,t){return e&&e.length?zu(e,Ji(t)):0}function Wp(e){var t=null==e?0:e.length;return t?ir(e,1,t):[]}function zp(e,t,n){return e&&e.length?ir(e,0,(t=n||void 0===t?1:V(t))<0?0:t):[]}function Fp(e,t,n){var r=null==e?0:e.length;return r?ir(e,(t=r-(t=n||void 0===t?1:V(t)))<0?0:t,r):[]}function Up(e,t){return e&&e.length?Ja(e,Ji(t),!1,!0):[]}function Vp(e,t){return e&&e.length?Ja(e,Ji(t)):[]}function qp(e,t){return t(e),e}var Kp=Object.prototype,Hp=Kp.hasOwnProperty;function Jp(e,t,n,r){return void 0===e||ft(e,Kp[n])&&!Hp.call(r,n)?t:e}var Yp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function Gp(e){return"\\"+Yp[e]}var Zp=/<%=([\s\S]+?)%>/g,Qp={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:Zp,variable:"",imports:{_:{escape:ds}}},Xp=/\b__p \+= '';/g,ef=/\b(__p \+=) '' \+/g,tf=/(__e\(.*?\)|\b__t\)) \+\n'';/g,nf=/[()=,{}\[\]\/\s]/,rf=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,of=/($^)/,af=/['\n\r\u2028\u2029\\]/g,sf=Object.prototype.hasOwnProperty;function lf(e,t,n){var r=Qp.imports._.templateSettings||Qp;n&&wt(e,t,n)&&(t=void 0),e=jn(e),t=ln({},t,r,Jp);var o,i,a=ln({},t.imports,r.imports,Jp),s=Zt(a),l=vl(a,s),u=0,c=t.interpolate||of,d="__p += '",p=RegExp((t.escape||of).source+"|"+c.source+"|"+(c===Zp?rf:of).source+"|"+(t.evaluate||of).source+"|$","g"),f=sf.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"";e.replace(p,function(t,n,r,a,s,l){return r||(r=a),d+=e.slice(u,l).replace(af,Gp),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),s&&(i=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t}),d+="';\n";var h=sf.call(t,"variable")&&t.variable;if(h){if(nf.test(h))throw new Error("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(i?d.replace(Xp,""):d).replace(ef,"$1").replace(tf,"$1;"),d="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=Zn(function(){return Function(s,f+"return "+d).apply(void 0,l)});if(g.source=d,Yn(g))throw g;return g}function uf(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return T(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),va(e,t,{leading:r,maxWait:t,trailing:o})}function cf(e,t){return t(e)}var df=4294967295,pf=Math.min;function ff(e,t){if((e=V(e))<1||e>9007199254740991)return[];var n=df,r=pf(e,df);t=Za(t),e-=df;for(var o=Ct(r,t);++n<e;)t(n);return o}function hf(){return this}function gf(e,t){var n=e;return n instanceof xe&&(n=n.value()),kr(t,function(e,t){return t.func.apply(t.thisArg,Mn([e],t.args))},n)}function vf(){return gf(this.__wrapped__,this.__actions__)}function mf(e){return jn(e).toLowerCase()}function yf(e){return C(e)?k(e,Rn):S(e)?[e]:je(An(jn(e)))}var bf=9007199254740991;function _f(e){return e?vo(V(e),-9007199254740991,bf):0===e?e:0}function xf(e){return jn(e).toUpperCase()}function wf(e,t,n){var r=C(e),o=r||Tt(e)||Vt(e);if(t=Ji(t),null==n){var i=e&&e.constructor;n=o?r?new i:[]:T(e)&&H(i)?fe(Fn(e)):{}}return(o?qe:na)(e,function(e,r,o){return t(n,e,r,o)}),n}function Sf(e,t){for(var n=e.length;n--&&Je(t,e[n],0)>-1;);return n}function Ef(e,t){for(var n=-1,r=e.length;++n<r&&Je(t,e[n],0)>-1;);return n}function kf(e,t,n){if((e=jn(e))&&(n||void 0===t))return M(e);if(!e||!(t=j(t)))return e;var r=xr(e),o=xr(t);return ar(r,Ef(r,o),Sf(r,o)+1).join("")}function Cf(e,t,n){if((e=jn(e))&&(n||void 0===t))return e.slice(0,I(e)+1);if(!e||!(t=j(t)))return e;var r=xr(e);return ar(r,0,Sf(r,xr(t))+1).join("")}var Of=/^\s+/;function Af(e,t,n){if((e=jn(e))&&(n||void 0===t))return e.replace(Of,"");if(!e||!(t=j(t)))return e;var r=xr(e);return ar(r,Ef(r,xr(t))).join("")}var jf=/\w*$/;function Lf(e,t){var n=30,r="...";if(T(t)){var o="separator"in t?t.separator:o;n="length"in t?V(t.length):n,r="omission"in t?j(t.omission):r}var i=(e=jn(e)).length;if(lr(e)){var a=xr(e);i=a.length}if(n>=i)return e;var s=n-Vc(r);if(s<1)return r;var l=a?ar(a,0,s).join(""):e.slice(0,s);if(void 0===o)return l+r;if(a&&(s+=l.length-s),pu(o)){if(e.slice(s).search(o)){var u,c=l;for(o.global||(o=RegExp(o.source,jn(jf.exec(o))+"g")),o.lastIndex=0;u=o.exec(c);)var d=u.index;l=l.slice(0,void 0===d?s:d)}}else if(e.indexOf(j(o),s)!=s){var p=l.lastIndexOf(o);p>-1&&(l=l.slice(0,p))}return l+r}function Rf(e){return dt(e,1)}var Pf=Cr({"&":"&","<":"<",">":">",""":'"',"'":"'"}),If=/&(?:amp|lt|gt|quot|#39);/g,Nf=RegExp(If.source);function Mf(e){return(e=jn(e))&&Nf.test(e)?e.replace(If,Pf):e}var Tf=$o&&1/Oi(new $o([,-0]))[1]==1/0?function(e){return new $o(e)}:we,Bf=Tf;function $f(e,t,n){var r=-1,o=Ye,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=Ta;else if(i>=200){var u=t?null:Bf(e);if(u)return Oi(u);a=!1,o=Ei,l=new wi}else l=t?[]:s;e:for(;++r<i;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,a&&d==d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(c)}else o(l,d,n)||(l!==s&&l.push(d),s.push(c))}return s}var Df=bt(function(e){return $f($n(e,1,Sa,!0))}),Wf=bt(function(e){var t=Wa(e);return Sa(t)&&(t=void 0),$f($n(e,1,Sa,!0),Ji(t))}),zf=Wf,Ff=bt(function(e){var t=Wa(e);return t="function"==typeof t?t:void 0,$f($n(e,1,Sa,!0),void 0,t)});function Uf(e){return e&&e.length?$f(e):[]}function Vf(e,t){return e&&e.length?$f(e,Ji(t)):[]}function qf(e,t){return t="function"==typeof t?t:void 0,e&&e.length?$f(e,void 0,t):[]}var Kf=0;function Hf(e){var t=++Kf;return jn(e)+t}function Jf(e,t){return null==e||uc(e,t)}var Yf=Math.max;function Gf(e){if(!e||!e.length)return[];var t=0;return e=ko(e,function(e){if(Sa(e))return t=Yf(e.length,t),!0}),Ct(t,function(t){return k(e,Ki(t))})}function Zf(e,t){if(!e||!e.length)return[];var n=Gf(e);return null==t?n:k(n,function(e){return ge(t,void 0,e)})}function Qf(e,t,n,r){return fc(e,t,n(Pn(e,t)),r)}function Xf(e,t,n){return null==e?e:Qf(e,t,Za(n))}function eh(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:Qf(e,t,Za(n),r)}var th=ro(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),nh=th;function rh(e){return null==e?[]:vl(e,rn(e))}var oh=bt(function(e,t){return Sa(e)?Ba(e,t):[]}),ih=oh;function ah(e,t){return nd(Za(t),e)}var sh=Wn(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Nn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof xe&&tt(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:cf,args:[o],thisArg:void 0}),new Ae(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(void 0),e})):this.thru(o)}),lh=sh;function uh(){return po(this)}function ch(){var e=this.__wrapped__;if(e instanceof xe){var t=e;return this.__actions__.length&&(t=new xe(this)),(t=t.reverse()).__actions__.push({func:cf,args:[Hd],thisArg:void 0}),new Ae(t,this.__chain__)}return this.thru(Hd)}function dh(e,t,n){var r=e.length;if(r<2)return r?$f(e[0]):[];for(var o=-1,i=Array(r);++o<r;)for(var a=e[o],s=-1;++s<r;)s!=o&&(i[o]=Ba(i[o]||a,e[s],t,n));return $f($n(i,1),t,n)}var ph=bt(function(e){return dh(ko(e,Sa))}),fh=bt(function(e){var t=Wa(e);return Sa(t)&&(t=void 0),dh(ko(e,Sa),Ji(t))}),hh=fh,gh=bt(function(e){var t=Wa(e);return t="function"==typeof t?t:void 0,dh(ko(e,Sa),void 0,t)}),vh=bt(Gf);function mh(e,t,n){for(var r=-1,o=e.length,i=t.length,a={};++r<o;){var s=r<i?t[r]:void 0;n(a,e[r],s)}return a}function yh(e,t){return mh(e||[],t||[],gt)}function bh(e,t){return mh(e||[],t||[],fc)}var _h=bt(function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Zf(e,n)}),xh=_h,wh={chunk:go,compact:_i,concat:xi,difference:Da,differenceBy:Fa,differenceWith:Va,drop:Ka,dropRight:Ha,dropRightWhile:Ya,dropWhile:Ga,fill:bs,findIndex:Es,findLastIndex:Ls,first:Is,flatten:Dn,flattenDeep:zs,flattenDepth:Fs,fromPairs:Qs,head:Is,indexOf:xl,initial:wl,intersection:Cl,intersectionBy:Al,intersectionWith:jl,join:_u,last:Wa,lastIndexOf:Ou,nth:ac,pull:gd,pullAll:hd,pullAllBy:vd,pullAllWith:md,pullAt:xd,remove:zd,reverse:Hd,slice:lp,sortedIndex:bp,sortedIndexBy:_p,sortedIndexOf:xp,sortedLastIndex:wp,sortedLastIndexBy:Sp,sortedLastIndexOf:Ep,sortedUniq:Cp,sortedUniqBy:Op,tail:Wp,take:zp,takeRight:Fp,takeRightWhile:Up,takeWhile:Vp,union:Df,unionBy:zf,unionWith:Ff,uniq:Uf,uniqBy:Vf,uniqWith:qf,unzip:Gf,unzipWith:Zf,without:ih,xor:ph,xorBy:hh,xorWith:gh,zip:vh,zipObject:yh,zipObjectDeep:bh,zipWith:xh},Sh={countBy:ua,each:Qa,eachRight:rs,every:ms,filter:xs,find:ks,findLast:Rs,flatMap:Ts,flatMapDeep:$s,flatMapDepth:Ds,forEach:Qa,forEachRight:rs,groupBy:ol,includes:bl,invokeMap:Ul,keyBy:Eu,map:Ms,orderBy:_c,partition:ad,reduce:Bd,reduceRight:Dd,reject:Wd,sample:Zd,sampleSize:tp,shuffle:ap,size:sp,some:pp,sortBy:hp},Eh={now:fa},kh={after:q,ary:dt,before:Qn,bind:er,bindKey:or,curry:da,curryRight:pa,debounce:va,defer:Ia,delay:Ma,flip:Us,memoize:En,negate:tc,once:mc,overArgs:Cc,partial:nd,partialRight:od,rearg:Md,rest:Vd,spread:Lp,throttle:uf,unary:Rf,wrap:ah},Ch={castArray:ao,clone:gi,cloneDeep:vi,cloneDeepWith:mi,cloneWith:yi,conformsTo:Qi,eq:ft,gt:sl,gte:ll,isArguments:Rt,isArray:C,isArrayBuffer:ql,isArrayLike:xt,isArrayLikeObject:Sa,isBoolean:Kl,isBuffer:Tt,isDate:Jl,isElement:Yl,isEmpty:Zl,isEqual:Ql,isEqualWith:Xl,isError:Yn,isFinite:tu,isFunction:H,isInteger:nu,isLength:_t,isMap:si,isMatch:ru,isMatchWith:ou,isNaN:au,isNative:lu,isNil:uu,isNull:cu,isNumber:iu,isObject:T,isObjectLike:w,isPlainObject:Jn,isRegExp:pu,isSafeInteger:hu,isSet:ui,isString:gl,isSymbol:S,isTypedArray:Vt,isUndefined:gu,isWeakMap:vu,isWeakSet:mu,lt:Pu,lte:Iu,toArray:rc,toFinite:U,toInteger:V,toLength:ys,toNumber:z,toPlainObject:ka,toSafeInteger:_f,toString:jn},Oh={add:R,ceil:co,divide:qa,floor:Vs,max:Du,maxBy:Wu,mean:Uu,meanBy:Vu,min:Zu,minBy:Qu,multiply:ec,round:Jd,subtract:Bp,sum:$p,sumBy:Dp},Ah=mo,jh=hl,Lh=Ad,Rh={assign:en,assignIn:an,assignInWith:ln,assignWith:cn,at:zn,create:ca,defaults:xa,defaultsDeep:La,entries:as,entriesIn:ss,extend:an,extendWith:ln,findKey:Os,findLastKey:Ps,forIn:Js,forInRight:Ys,forOwn:Gs,forOwnRight:Zs,functions:el,functionsIn:tl,get:In,has:dl,hasIn:Vi,invert:Il,invertBy:$l,invoke:zl,keys:Zt,keysIn:rn,mapKeys:Nu,mapValues:Mu,merge:Ku,mergeWith:ja,omit:pc,omitBy:vc,pick:ld,pickBy:gc,result:qd,set:np,setWith:rp,toPairs:as,toPairsIn:ss,transform:wf,unset:Jf,update:Xf,updateWith:eh,values:ml,valuesIn:rh},Ph={at:lh,chain:po,commit:bi,lodash:Pe,next:oc,plant:ud,reverse:ch,tap:qp,thru:cf,toIterator:hf,toJSON:vf,value:vf,valueOf:vf,wrapperChain:uh},Ih={camelCase:io,capitalize:Er,deburr:Lr,endsWith:os,escape:ds,escapeRegExp:hs,kebabCase:wu,lowerCase:ju,lowerFirst:Lu,pad:Yc,padEnd:Gc,padStart:Zc,parseInt:ed,repeat:Fd,replace:Ud,snakeCase:cp,split:Ap,startCase:Pp,startsWith:Ip,template:lf,templateSettings:Qp,toLower:mf,toUpper:xf,trim:kf,trimEnd:Cf,trimStart:Af,truncate:Lf,unescape:Mf,upperCase:nh,upperFirst:Sr,words:to},Nh={attempt:Zn,bindAll:nr,cond:Yi,conforms:Zi,constant:We,defaultTo:ma,flow:Ks,flowRight:Hs,identity:K,iteratee:yu,matches:Tu,matchesProperty:Bu,method:Ju,methodOf:Gu,mixin:Xu,noop:we,nthArg:sc,over:wc,overEvery:Oc,overSome:Ac,property:Hi,propertyOf:cd,range:Pd,rangeRight:Id,stubArray:Co,stubFalse:Pt,stubObject:Np,stubString:Mp,stubTrue:Tp,times:ff,toPath:yf,uniqueId:Hf};var Mh=Math.max,Th=Math.min;var Bh=Math.min;var $h,Dh=4294967295,Wh=Array.prototype,zh=Object.prototype.hasOwnProperty,Fh=h?h.iterator:void 0,Uh=Math.max,Vh=Math.min,qh=function(e){return function(t,n,r){if(null==r){var o=T(n),i=o&&Zt(n),a=i&&i.length&&Xs(n,i);(a?a.length:o)||(r=n,n=t,t=this)}return e(t,n,r)}}(Xu);Pe.after=kh.after,Pe.ary=kh.ary,Pe.assign=Rh.assign,Pe.assignIn=Rh.assignIn,Pe.assignInWith=Rh.assignInWith,Pe.assignWith=Rh.assignWith,Pe.at=Rh.at,Pe.before=kh.before,Pe.bind=kh.bind,Pe.bindAll=Nh.bindAll,Pe.bindKey=kh.bindKey,Pe.castArray=Ch.castArray,Pe.chain=Ph.chain,Pe.chunk=wh.chunk,Pe.compact=wh.compact,Pe.concat=wh.concat,Pe.cond=Nh.cond,Pe.conforms=Nh.conforms,Pe.constant=Nh.constant,Pe.countBy=Sh.countBy,Pe.create=Rh.create,Pe.curry=kh.curry,Pe.curryRight=kh.curryRight,Pe.debounce=kh.debounce,Pe.defaults=Rh.defaults,Pe.defaultsDeep=Rh.defaultsDeep,Pe.defer=kh.defer,Pe.delay=kh.delay,Pe.difference=wh.difference,Pe.differenceBy=wh.differenceBy,Pe.differenceWith=wh.differenceWith,Pe.drop=wh.drop,Pe.dropRight=wh.dropRight,Pe.dropRightWhile=wh.dropRightWhile,Pe.dropWhile=wh.dropWhile,Pe.fill=wh.fill,Pe.filter=Sh.filter,Pe.flatMap=Sh.flatMap,Pe.flatMapDeep=Sh.flatMapDeep,Pe.flatMapDepth=Sh.flatMapDepth,Pe.flatten=wh.flatten,Pe.flattenDeep=wh.flattenDeep,Pe.flattenDepth=wh.flattenDepth,Pe.flip=kh.flip,Pe.flow=Nh.flow,Pe.flowRight=Nh.flowRight,Pe.fromPairs=wh.fromPairs,Pe.functions=Rh.functions,Pe.functionsIn=Rh.functionsIn,Pe.groupBy=Sh.groupBy,Pe.initial=wh.initial,Pe.intersection=wh.intersection,Pe.intersectionBy=wh.intersectionBy,Pe.intersectionWith=wh.intersectionWith,Pe.invert=Rh.invert,Pe.invertBy=Rh.invertBy,Pe.invokeMap=Sh.invokeMap,Pe.iteratee=Nh.iteratee,Pe.keyBy=Sh.keyBy,Pe.keys=Zt,Pe.keysIn=Rh.keysIn,Pe.map=Sh.map,Pe.mapKeys=Rh.mapKeys,Pe.mapValues=Rh.mapValues,Pe.matches=Nh.matches,Pe.matchesProperty=Nh.matchesProperty,Pe.memoize=kh.memoize,Pe.merge=Rh.merge,Pe.mergeWith=Rh.mergeWith,Pe.method=Nh.method,Pe.methodOf=Nh.methodOf,Pe.mixin=qh,Pe.negate=tc,Pe.nthArg=Nh.nthArg,Pe.omit=Rh.omit,Pe.omitBy=Rh.omitBy,Pe.once=kh.once,Pe.orderBy=Sh.orderBy,Pe.over=Nh.over,Pe.overArgs=kh.overArgs,Pe.overEvery=Nh.overEvery,Pe.overSome=Nh.overSome,Pe.partial=kh.partial,Pe.partialRight=kh.partialRight,Pe.partition=Sh.partition,Pe.pick=Rh.pick,Pe.pickBy=Rh.pickBy,Pe.property=Nh.property,Pe.propertyOf=Nh.propertyOf,Pe.pull=wh.pull,Pe.pullAll=wh.pullAll,Pe.pullAllBy=wh.pullAllBy,Pe.pullAllWith=wh.pullAllWith,Pe.pullAt=wh.pullAt,Pe.range=Nh.range,Pe.rangeRight=Nh.rangeRight,Pe.rearg=kh.rearg,Pe.reject=Sh.reject,Pe.remove=wh.remove,Pe.rest=kh.rest,Pe.reverse=wh.reverse,Pe.sampleSize=Sh.sampleSize,Pe.set=Rh.set,Pe.setWith=Rh.setWith,Pe.shuffle=Sh.shuffle,Pe.slice=wh.slice,Pe.sortBy=Sh.sortBy,Pe.sortedUniq=wh.sortedUniq,Pe.sortedUniqBy=wh.sortedUniqBy,Pe.split=Ih.split,Pe.spread=kh.spread,Pe.tail=wh.tail,Pe.take=wh.take,Pe.takeRight=wh.takeRight,Pe.takeRightWhile=wh.takeRightWhile,Pe.takeWhile=wh.takeWhile,Pe.tap=Ph.tap,Pe.throttle=kh.throttle,Pe.thru=cf,Pe.toArray=Ch.toArray,Pe.toPairs=Rh.toPairs,Pe.toPairsIn=Rh.toPairsIn,Pe.toPath=Nh.toPath,Pe.toPlainObject=Ch.toPlainObject,Pe.transform=Rh.transform,Pe.unary=kh.unary,Pe.union=wh.union,Pe.unionBy=wh.unionBy,Pe.unionWith=wh.unionWith,Pe.uniq=wh.uniq,Pe.uniqBy=wh.uniqBy,Pe.uniqWith=wh.uniqWith,Pe.unset=Rh.unset,Pe.unzip=wh.unzip,Pe.unzipWith=wh.unzipWith,Pe.update=Rh.update,Pe.updateWith=Rh.updateWith,Pe.values=Rh.values,Pe.valuesIn=Rh.valuesIn,Pe.without=wh.without,Pe.words=Ih.words,Pe.wrap=kh.wrap,Pe.xor=wh.xor,Pe.xorBy=wh.xorBy,Pe.xorWith=wh.xorWith,Pe.zip=wh.zip,Pe.zipObject=wh.zipObject,Pe.zipObjectDeep=wh.zipObjectDeep,Pe.zipWith=wh.zipWith,Pe.entries=Rh.toPairs,Pe.entriesIn=Rh.toPairsIn,Pe.extend=Rh.assignIn,Pe.extendWith=Rh.assignInWith,qh(Pe,Pe),Pe.add=Oh.add,Pe.attempt=Nh.attempt,Pe.camelCase=Ih.camelCase,Pe.capitalize=Ih.capitalize,Pe.ceil=Oh.ceil,Pe.clamp=Ah,Pe.clone=Ch.clone,Pe.cloneDeep=Ch.cloneDeep,Pe.cloneDeepWith=Ch.cloneDeepWith,Pe.cloneWith=Ch.cloneWith,Pe.conformsTo=Ch.conformsTo,Pe.deburr=Ih.deburr,Pe.defaultTo=Nh.defaultTo,Pe.divide=Oh.divide,Pe.endsWith=Ih.endsWith,Pe.eq=Ch.eq,Pe.escape=Ih.escape,Pe.escapeRegExp=Ih.escapeRegExp,Pe.every=Sh.every,Pe.find=Sh.find,Pe.findIndex=wh.findIndex,Pe.findKey=Rh.findKey,Pe.findLast=Sh.findLast,Pe.findLastIndex=wh.findLastIndex,Pe.findLastKey=Rh.findLastKey,Pe.floor=Oh.floor,Pe.forEach=Sh.forEach,Pe.forEachRight=Sh.forEachRight,Pe.forIn=Rh.forIn,Pe.forInRight=Rh.forInRight,Pe.forOwn=Rh.forOwn,Pe.forOwnRight=Rh.forOwnRight,Pe.get=Rh.get,Pe.gt=Ch.gt,Pe.gte=Ch.gte,Pe.has=Rh.has,Pe.hasIn=Rh.hasIn,Pe.head=wh.head,Pe.identity=K,Pe.includes=Sh.includes,Pe.indexOf=wh.indexOf,Pe.inRange=jh,Pe.invoke=Rh.invoke,Pe.isArguments=Ch.isArguments,Pe.isArray=C,Pe.isArrayBuffer=Ch.isArrayBuffer,Pe.isArrayLike=Ch.isArrayLike,Pe.isArrayLikeObject=Ch.isArrayLikeObject,Pe.isBoolean=Ch.isBoolean,Pe.isBuffer=Ch.isBuffer,Pe.isDate=Ch.isDate,Pe.isElement=Ch.isElement,Pe.isEmpty=Ch.isEmpty,Pe.isEqual=Ch.isEqual,Pe.isEqualWith=Ch.isEqualWith,Pe.isError=Ch.isError,Pe.isFinite=Ch.isFinite,Pe.isFunction=Ch.isFunction,Pe.isInteger=Ch.isInteger,Pe.isLength=Ch.isLength,Pe.isMap=Ch.isMap,Pe.isMatch=Ch.isMatch,Pe.isMatchWith=Ch.isMatchWith,Pe.isNaN=Ch.isNaN,Pe.isNative=Ch.isNative,Pe.isNil=Ch.isNil,Pe.isNull=Ch.isNull,Pe.isNumber=Ch.isNumber,Pe.isObject=T,Pe.isObjectLike=Ch.isObjectLike,Pe.isPlainObject=Ch.isPlainObject,Pe.isRegExp=Ch.isRegExp,Pe.isSafeInteger=Ch.isSafeInteger,Pe.isSet=Ch.isSet,Pe.isString=Ch.isString,Pe.isSymbol=Ch.isSymbol,Pe.isTypedArray=Ch.isTypedArray,Pe.isUndefined=Ch.isUndefined,Pe.isWeakMap=Ch.isWeakMap,Pe.isWeakSet=Ch.isWeakSet,Pe.join=wh.join,Pe.kebabCase=Ih.kebabCase,Pe.last=Wa,Pe.lastIndexOf=wh.lastIndexOf,Pe.lowerCase=Ih.lowerCase,Pe.lowerFirst=Ih.lowerFirst,Pe.lt=Ch.lt,Pe.lte=Ch.lte,Pe.max=Oh.max,Pe.maxBy=Oh.maxBy,Pe.mean=Oh.mean,Pe.meanBy=Oh.meanBy,Pe.min=Oh.min,Pe.minBy=Oh.minBy,Pe.stubArray=Nh.stubArray,Pe.stubFalse=Nh.stubFalse,Pe.stubObject=Nh.stubObject,Pe.stubString=Nh.stubString,Pe.stubTrue=Nh.stubTrue,Pe.multiply=Oh.multiply,Pe.nth=wh.nth,Pe.noop=Nh.noop,Pe.now=Eh.now,Pe.pad=Ih.pad,Pe.padEnd=Ih.padEnd,Pe.padStart=Ih.padStart,Pe.parseInt=Ih.parseInt,Pe.random=Lh,Pe.reduce=Sh.reduce,Pe.reduceRight=Sh.reduceRight,Pe.repeat=Ih.repeat,Pe.replace=Ih.replace,Pe.result=Rh.result,Pe.round=Oh.round,Pe.sample=Sh.sample,Pe.size=Sh.size,Pe.snakeCase=Ih.snakeCase,Pe.some=Sh.some,Pe.sortedIndex=wh.sortedIndex,Pe.sortedIndexBy=wh.sortedIndexBy,Pe.sortedIndexOf=wh.sortedIndexOf,Pe.sortedLastIndex=wh.sortedLastIndex,Pe.sortedLastIndexBy=wh.sortedLastIndexBy,Pe.sortedLastIndexOf=wh.sortedLastIndexOf,Pe.startCase=Ih.startCase,Pe.startsWith=Ih.startsWith,Pe.subtract=Oh.subtract,Pe.sum=Oh.sum,Pe.sumBy=Oh.sumBy,Pe.template=Ih.template,Pe.times=Nh.times,Pe.toFinite=Ch.toFinite,Pe.toInteger=V,Pe.toLength=Ch.toLength,Pe.toLower=Ih.toLower,Pe.toNumber=Ch.toNumber,Pe.toSafeInteger=Ch.toSafeInteger,Pe.toString=Ch.toString,Pe.toUpper=Ih.toUpper,Pe.trim=Ih.trim,Pe.trimEnd=Ih.trimEnd,Pe.trimStart=Ih.trimStart,Pe.truncate=Ih.truncate,Pe.unescape=Ih.unescape,Pe.uniqueId=Nh.uniqueId,Pe.upperCase=Ih.upperCase,Pe.upperFirst=Ih.upperFirst,Pe.each=Sh.forEach,Pe.eachRight=Sh.forEachRight,Pe.first=wh.head,qh(Pe,($h={},na(Pe,function(e,t){zh.call(Pe.prototype,t)||($h[t]=e)}),$h),{chain:!1}),Pe.VERSION="4.17.23",(Pe.templateSettings=Ih.templateSettings).imports._=Pe,qe(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Pe[e].placeholder=Pe}),qe(["drop","take"],function(e,t){xe.prototype[e]=function(n){n=void 0===n?1:Uh(V(n),0);var r=this.__filtered__&&!t?new xe(this):this.clone();return r.__filtered__?r.__takeCount__=Vh(n,r.__takeCount__):r.__views__.push({size:Vh(n,Dh),type:e+(r.__dir__<0?"Right":"")}),r},xe.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),qe(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;xe.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ji(e),type:n}),t.__filtered__=t.__filtered__||r,t}}),qe(["head","last"],function(e,t){var n="take"+(t?"Right":"");xe.prototype[e]=function(){return this[n](1).value()[0]}}),qe(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");xe.prototype[e]=function(){return this.__filtered__?new xe(this):this[n](1)}}),xe.prototype.compact=function(){return this.filter(K)},xe.prototype.find=function(e){return this.filter(e).head()},xe.prototype.findLast=function(e){return this.reverse().find(e)},xe.prototype.invokeMap=bt(function(e,t){return"function"==typeof e?new xe(this):this.map(function(n){return Wl(n,e,t)})}),xe.prototype.reject=function(e){return this.filter(tc(Ji(e)))},xe.prototype.slice=function(e,t){e=V(e);var n=this;return n.__filtered__&&(e>0||t<0)?new xe(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=V(t))<0?n.dropRight(-t):n.take(t-e)),n)},xe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},xe.prototype.toArray=function(){return this.take(Dh)},na(xe.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Pe[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(Pe.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof xe,l=a[0],u=s||C(t),c=function(e){var t=o.apply(Pe,Mn([e],a));return r&&d?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(s=u=!1);var d=this.__chain__,p=!!this.__actions__.length,f=i&&!d,h=s&&!p;if(!i&&u){t=h?t:new xe(this);var g=e.apply(t,a);return g.__actions__.push({func:cf,args:[c],thisArg:void 0}),new Ae(g,d)}return f&&h?e.apply(this,a):(g=this.thru(c),f?r?g.value()[0]:g.value():g)})}),qe(["pop","push","shift","sort","splice","unshift"],function(e){var t=Wh[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Pe.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(C(o)?o:[],e)}return this[n](function(n){return t.apply(C(n)?n:[],e)})}}),na(xe.prototype,function(e,t){var n=Pe[t];if(n){var r=n.name+"";zh.call(ke,r)||(ke[r]=[]),ke[r].push({name:t,func:n})}}),ke[it(void 0,2).name]=[{name:"wrapper",func:void 0}],xe.prototype.clone=function(){var e=new xe(this.__wrapped__);return e.__actions__=je(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=je(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=je(this.__views__),e},xe.prototype.reverse=function(){if(this.__filtered__){var e=new xe(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},xe.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=C(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Th(t,e+a);break;case"takeRight":e=Mh(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,l=s-a,u=r?s:a-1,c=this.__iteratees__,d=c.length,p=0,f=Bh(l,this.__takeCount__);if(!n||!r&&o==l&&f==l)return gf(e,this.__actions__);var h=[];e:for(;l--&&p<f;){for(var g=-1,v=e[u+=t];++g<d;){var m=c[g],y=m.iteratee,b=m.type,_=y(v);if(2==b)v=_;else if(!_){if(1==b)continue e;break e}}h[p++]=v}return h},Pe.prototype.at=Ph.at,Pe.prototype.chain=Ph.wrapperChain,Pe.prototype.commit=Ph.commit,Pe.prototype.next=Ph.next,Pe.prototype.plant=Ph.plant,Pe.prototype.reverse=Ph.reverse,Pe.prototype.toJSON=Pe.prototype.valueOf=Pe.prototype.value=Ph.value,Pe.prototype.first=Pe.prototype.head,Fh&&(Pe.prototype[Fh]=Ph.toIterator);var Kh=Object.freeze({__proto__:null,add:R,after:q,ary:dt,assign:en,assignIn:an,assignInWith:ln,assignWith:cn,at:zn,attempt:Zn,before:Qn,bind:er,bindAll:nr,bindKey:or,camelCase:io,capitalize:Er,castArray:ao,ceil:co,chain:po,chunk:go,clamp:mo,clone:gi,cloneDeep:vi,cloneDeepWith:mi,cloneWith:yi,commit:bi,compact:_i,concat:xi,cond:Yi,conforms:Zi,conformsTo:Qi,constant:We,countBy:ua,create:ca,curry:da,curryRight:pa,debounce:va,deburr:Lr,defaultTo:ma,defaults:xa,defaultsDeep:La,defer:Ia,delay:Ma,difference:Da,differenceBy:Fa,differenceWith:Va,divide:qa,drop:Ka,dropRight:Ha,dropRightWhile:Ya,dropWhile:Ga,each:Qa,eachRight:rs,endsWith:os,entries:as,entriesIn:ss,eq:ft,escape:ds,escapeRegExp:hs,every:ms,extend:an,extendWith:ln,fill:bs,filter:xs,find:ks,findIndex:Es,findKey:Os,findLast:Rs,findLastIndex:Ls,findLastKey:Ps,first:Is,flatMap:Ts,flatMapDeep:$s,flatMapDepth:Ds,flatten:Dn,flattenDeep:zs,flattenDepth:Fs,flip:Us,floor:Vs,flow:Ks,flowRight:Hs,forEach:Qa,forEachRight:rs,forIn:Js,forInRight:Ys,forOwn:Gs,forOwnRight:Zs,fromPairs:Qs,functions:el,functionsIn:tl,get:In,groupBy:ol,gt:sl,gte:ll,has:dl,hasIn:Vi,head:Is,identity:K,inRange:hl,includes:bl,indexOf:xl,initial:wl,intersection:Cl,intersectionBy:Al,intersectionWith:jl,invert:Il,invertBy:$l,invoke:zl,invokeMap:Ul,isArguments:Rt,isArray:C,isArrayBuffer:ql,isArrayLike:xt,isArrayLikeObject:Sa,isBoolean:Kl,isBuffer:Tt,isDate:Jl,isElement:Yl,isEmpty:Zl,isEqual:Ql,isEqualWith:Xl,isError:Yn,isFinite:tu,isFunction:H,isInteger:nu,isLength:_t,isMap:si,isMatch:ru,isMatchWith:ou,isNaN:au,isNative:lu,isNil:uu,isNull:cu,isNumber:iu,isObject:T,isObjectLike:w,isPlainObject:Jn,isRegExp:pu,isSafeInteger:hu,isSet:ui,isString:gl,isSymbol:S,isTypedArray:Vt,isUndefined:gu,isWeakMap:vu,isWeakSet:mu,iteratee:yu,join:_u,kebabCase:wu,keyBy:Eu,keys:Zt,keysIn:rn,last:Wa,lastIndexOf:Ou,lodash:Pe,lowerCase:ju,lowerFirst:Lu,lt:Pu,lte:Iu,map:Ms,mapKeys:Nu,mapValues:Mu,matches:Tu,matchesProperty:Bu,max:Du,maxBy:Wu,mean:Uu,meanBy:Vu,memoize:En,merge:Ku,mergeWith:ja,method:Ju,methodOf:Gu,min:Zu,minBy:Qu,mixin:Xu,multiply:ec,negate:tc,next:oc,noop:we,now:fa,nth:ac,nthArg:sc,omit:pc,omitBy:vc,once:mc,orderBy:_c,over:wc,overArgs:Cc,overEvery:Oc,overSome:Ac,pad:Yc,padEnd:Gc,padStart:Zc,parseInt:ed,partial:nd,partialRight:od,partition:ad,pick:ld,pickBy:gc,plant:ud,property:Hi,propertyOf:cd,pull:gd,pullAll:hd,pullAllBy:vd,pullAllWith:md,pullAt:xd,random:Ad,range:Pd,rangeRight:Id,rearg:Md,reduce:Bd,reduceRight:Dd,reject:Wd,remove:zd,repeat:Fd,replace:Ud,rest:Vd,result:qd,reverse:Hd,round:Jd,sample:Zd,sampleSize:tp,set:np,setWith:rp,shuffle:ap,size:sp,slice:lp,snakeCase:cp,some:pp,sortBy:hp,sortedIndex:bp,sortedIndexBy:_p,sortedIndexOf:xp,sortedLastIndex:wp,sortedLastIndexBy:Sp,sortedLastIndexOf:Ep,sortedUniq:Cp,sortedUniqBy:Op,split:Ap,spread:Lp,startCase:Pp,startsWith:Ip,stubArray:Co,stubFalse:Pt,stubObject:Np,stubString:Mp,stubTrue:Tp,subtract:Bp,sum:$p,sumBy:Dp,tail:Wp,take:zp,takeRight:Fp,takeRightWhile:Up,takeWhile:Vp,tap:qp,template:lf,templateSettings:Qp,throttle:uf,thru:cf,times:ff,toArray:rc,toFinite:U,toInteger:V,toIterator:hf,toJSON:vf,toLength:ys,toLower:mf,toNumber:z,toPairs:as,toPairsIn:ss,toPath:yf,toPlainObject:ka,toSafeInteger:_f,toString:jn,toUpper:xf,transform:wf,trim:kf,trimEnd:Cf,trimStart:Af,truncate:Lf,unary:Rf,unescape:Mf,union:Df,unionBy:zf,unionWith:Ff,uniq:Uf,uniqBy:Vf,uniqWith:qf,uniqueId:Hf,unset:Jf,unzip:Gf,unzipWith:Zf,update:Xf,updateWith:eh,upperCase:nh,upperFirst:Sr,value:vf,valueOf:vf,values:ml,valuesIn:rh,without:ih,words:to,wrap:ah,wrapperAt:lh,wrapperChain:uh,wrapperCommit:bi,wrapperLodash:Pe,wrapperNext:oc,wrapperPlant:ud,wrapperReverse:ch,wrapperToIterator:hf,wrapperValue:vf,xor:ph,xorBy:hh,xorWith:gh,zip:vh,zipObject:yh,zipObjectDeep:bh,zipWith:xh,default:Pe});function Hh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Jh(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t}var Yh={},Gh={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(Gh),Hh(Gh.exports);var Zh={exports:{}},Qh={exports:{}},Xh={exports:{}};!function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Xh),Hh(Xh.exports);var eg={exports:{}};!function(e){var t=Xh.exports.default;e.exports=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(eg),Hh(eg.exports),function(e){var t=Xh.exports.default,n=eg.exports;e.exports=function(e){var r=n(e,"string");return"symbol"==t(r)?r:r+""},e.exports.__esModule=!0,e.exports.default=e.exports}(Qh),Hh(Qh.exports),function(e){var t=Qh.exports;e.exports=function(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(Zh),Hh(Zh.exports);var tg={},ng={exports:{}};!function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ng),Hh(ng.exports);var rg={};function og(e,t){return null!=e?e:t()}function ig(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=i(n)):"call"!==o&&"optionalCall"!==o||(n=i((...e)=>n.call(t,...e)),t=void 0)}return n}const ag=e=>"string"==typeof e,sg=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},lg=e=>null==e?"":""+e,ug=/###/g,cg=e=>e&&e.indexOf("###")>-1?e.replace(ug,"."):e,dg=e=>!e||ag(e),pg=(e,t,n)=>{const r=ag(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(dg(e))return{};const t=cg(r[o]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return dg(e)?{}:{obj:e,k:cg(r[o])}},fg=(e,t,n)=>{const{obj:r,k:o}=pg(e,t,Object);if(void 0!==r||1===t.length)return void(r[o]=n);let i=t[t.length-1],a=t.slice(0,t.length-1),s=pg(e,a,Object);for(;void 0===s.obj&&a.length;)i=`${a[a.length-1]}.${i}`,a=a.slice(0,a.length-1),s=pg(e,a,Object),ig([s,"optionalAccess",e=>e.obj])&&void 0!==s.obj[`${s.k}.${i}`]&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=n},hg=(e,t)=>{const{obj:n,k:r}=pg(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},gg=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?ag(e[r])||e[r]instanceof String||ag(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):gg(e[r],t[r],n):e[r]=t[r]);return e},vg=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var mg={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const yg=e=>ag(e)?e.replace(/[&<>"'\/]/g,e=>mg[e]):e;const bg=[" ",",","?","!",";"],_g=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),xg=(e,t,n=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}const r=t.split(n);let o=e;for(let e=0;e<r.length;){if(!o||"object"!=typeof o)return;let t,i="";for(let a=e;a<r.length;++a)if(a!==e&&(i+=n),i+=r[a],t=o[i],void 0!==t){if(["string","number","boolean"].indexOf(typeof t)>-1&&a<r.length-1)continue;e+=a-e+1;break}o=t}return o},wg=e=>ig([e,"optionalAccess",e=>e.replace,"call",e=>e("_","-")]),Sg={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){ig([console,"optionalAccess",t=>t[e],"optionalAccess",e=>e.apply,"optionalCall",e=>e(console,t)])}};class Eg{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||Sg,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(ag(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Eg(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new Eg(this.logger,e)}}var kg=new Eg;class Cg{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e,...t){if(this.observers[e]){Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)})}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach(([n,r])=>{for(let o=0;o<r;o++)n.apply(n,[e,...t])})}}}class Og extends Cg{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){const o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],n&&(Array.isArray(n)?a.push(...n):ag(n)&&o?a.push(...n.split(o)):a.push(n)));const s=hg(this.data,a);return!s&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),!s&&i&&ag(n)?xg(ig([this,"access",e=>e.data,"optionalAccess",t=>t[e],"optionalAccess",e=>e[t]]),n,o):s}addResource(e,t,n,r,o={silent:!1}){const i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),fg(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(const r in n)(ag(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o,i={silent:!1,skipCopy:!1}){let a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let s=hg(this.data,a)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?gg(s,n,o):s={...s,...n},fg(this.data,a,s),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var Ag={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(e=>{t=og(ig([this,"access",e=>e.processors,"access",t=>t[e],"optionalAccess",e=>e.process,"call",e=>e(t,n,r,o)]),()=>t)}),t}};const jg=Symbol("i18next/PATH_KEY");function Lg(e,t){const{[jg]:n}=e(function(){const e=[],t=Object.create(null);let n;return t.get=(r,o)=>(ig([n,"optionalAccess",e=>e.revoke,"optionalCall",e=>e()]),o===jg?e:(e.push(o),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}());return n.join(og(ig([t,"optionalAccess",e=>e.keySeparator]),()=>"."))}const Rg={},Pg=e=>!ag(e)&&"boolean"!=typeof e&&"number"!=typeof e;class Ig extends Cg{constructor(e,t={}){var n,r;super(),n=e,r=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach(e=>{n[e]&&(r[e]=n[e])}),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=kg.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const n={...t};if(null==e)return!1;const r=this.resolve(e,n);if(void 0===ig([r,"optionalAccess",e=>e.res]))return!1;const o=Pg(r.res);return!1!==n.returnObjects||!o}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const i=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,n)=>{t=t||"",n=n||"";const r=bg.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(0===r.length)return!0;const o=_g.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`);let i=!o.test(e);if(!i){const t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i})(e,n,r));if(i&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:ag(o)?[o]:o};const i=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(r)}return{key:e,namespaces:ag(o)?[o]:o}}translate(e,t,n){let r="object"==typeof t?{...t}:t;if("object"!=typeof r&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof r&&(r={...r}),r||(r={}),null==e)return"";"function"==typeof e&&(e=Lg(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]);const o=void 0!==r.returnDetails?r.returnDetails:this.options.returnDetails,i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(e[e.length-1],r),l=s[s.length-1];let u=void 0!==r.nsSeparator?r.nsSeparator:this.options.nsSeparator;void 0===u&&(u=":");const c=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===ig([c,"optionalAccess",e=>e.toLowerCase,"call",e=>e()]))return d?o?{res:`${l}${u}${a}`,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:`${l}${u}${a}`:o?{res:a,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:a;const p=this.resolve(e,r);let f=ig([p,"optionalAccess",e=>e.res]);const h=ig([p,"optionalAccess",e=>e.usedKey])||a,g=ig([p,"optionalAccess",e=>e.exactUsedKey])||a,v=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject,y=void 0!==r.count&&!ag(r.count),b=Ig.hasDefaultValue(r),_=y?this.pluralResolver.getSuffix(c,r.count,r):"",x=r.ordinal&&y?this.pluralResolver.getSuffix(c,r.count,{ordinal:!1}):"",w=y&&!r.ordinal&&0===r.count,S=w&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${_}`]||r[`defaultValue${x}`]||r.defaultValue;let E=f;m&&!f&&b&&(E=S);const k=Pg(E),C=Object.prototype.toString.apply(E);if(!(m&&E&&k&&["[object Number]","[object Function]","[object RegExp]"].indexOf(C)<0)||ag(v)&&Array.isArray(E))if(m&&ag(v)&&Array.isArray(f))f=f.join(v),f&&(f=this.extendTranslation(f,e,r,n));else{let t=!1,o=!1;!this.isValidLookup(f)&&b&&(t=!0,f=S),this.isValidLookup(f)||(o=!0,f=a);const s=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:f,d=b&&S!==f&&this.options.updateMissing;if(o||t||d){if(this.logger.log(d?"updateKey":"missingKey",c,l,a,d?S:f),i){const e=this.resolve(a,{...r,keySeparator:!1});e&&e.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.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(r.lng||this.language):e.push(r.lng||this.language);const n=(e,t,n)=>{const o=b&&n!==f?n:s;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,o,d,r):ig([this,"access",e=>e.backendConnector,"optionalAccess",e=>e.saveMissing])&&this.backendConnector.saveMissing(e,l,t,o,d,r),this.emit("missingKey",e,l,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&y?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,r);w&&r[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],a+t,r[`defaultValue${t}`]||S)})}):n(e,a,S))}f=this.extendTranslation(f,e,r,p,n),o&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${l}${u}${a}`),(o||t)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${a}`:a,t?f:void 0,r))}else{if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...r,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return o?(p.res=e,p.usedParams=this.getUsedParamsDetails(r),p):e}if(i){const e=Array.isArray(E),t=e?[]:{},n=e?g:h;for(const e in E)if(Object.prototype.hasOwnProperty.call(E,e)){const o=`${n}${i}${e}`;t[e]=b&&!f?this.translate(o,{...r,defaultValue:Pg(S)?S[e]:void 0,joinArrays:!1,ns:s}):this.translate(o,{...r,joinArrays:!1,ns:s}),t[e]===o&&(t[e]=E[e])}f=t}}return o?(p.res=f,p.usedParams=this.getUsedParamsDetails(r),p):f}extendTranslation(e,t,n,r,o){if(ig([this,"access",e=>e.i18nFormat,"optionalAccess",e=>e.parse]))e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const i=ag(e)&&(void 0!==ig([n,"optionalAccess",e=>e.interpolation,"optionalAccess",e=>e.skipOnVariables])?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(i){const t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let s=n.replace&&!ag(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),i){const t=e.match(this.interpolator.nestingRegexp);a<(t&&t.length)&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(...e)=>ig([o,"optionalAccess",e=>e[0]])!==e[0]||n.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),n)),n.interpolation&&this.interpolator.reset()}const i=n.postProcess||this.options.postProcess,a=ag(i)?[i]:i;return null!=e&&ig([a,"optionalAccess",e=>e.length])&&!1!==n.applyPostProcessor&&(e=Ag.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,o,i,a;return ag(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(n))return;const s=this.extractFromKey(e,t),l=s.key;r=l;let u=s.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const c=void 0!==t.count&&!ag(t.count),d=c&&!t.ordinal&&0===t.count,p=void 0!==t.context&&(ag(t.context)||"number"==typeof t.context)&&""!==t.context,f=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);u.forEach(e=>{this.isValidLookup(n)||(a=e,Rg[`${f[0]}-${e}`]||!ig([this,"access",e=>e.utils,"optionalAccess",e=>e.hasLoadedNamespace])||ig([this,"access",e=>e.utils,"optionalAccess",e=>e.hasLoadedNamespace,"call",e=>e(a)])||(Rg[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${f.join(", ")}" won't get resolved as namespace "${a}" 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!!!")),f.forEach(r=>{if(this.isValidLookup(n))return;i=r;const a=[l];if(ig([this,"access",e=>e.i18nFormat,"optionalAccess",e=>e.addLookupKeys]))this.i18nFormat.addLookupKeys(a,l,r,e,t);else{let e;c&&(e=this.pluralResolver.getSuffix(r,t.count,t));const n=`${this.options.pluralSeparator}zero`,o=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(t.ordinal&&0===e.indexOf(o)&&a.push(l+e.replace(o,this.options.pluralSeparator)),a.push(l+e),d&&a.push(l+n)),p){const r=`${l}${this.options.contextSeparator||"_"}${t.context}`;a.push(r),c&&(t.ordinal&&0===e.indexOf(o)&&a.push(r+e.replace(o,this.options.pluralSeparator)),a.push(r+e),d&&a.push(r+n))}}let s;for(;s=a.pop();)this.isValidLookup(n)||(o=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:o,usedLng:i,usedNS:a}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n,r={}){return ig([this,"access",e=>e.i18nFormat,"optionalAccess",e=>e.getResource])?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!ag(e.replace);let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}class Ng{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=kg.create("languageUtils")}getScriptPartFromCode(e){if(!(e=wg(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=wg(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(ag(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;const r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?e:e.indexOf("-")<0&&r.indexOf("-")<0?void 0:e.indexOf("-")>0&&r.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===r||0===e.indexOf(r)&&r.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),ag(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),r=[],o=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return ag(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):ag(e)&&o(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&o(this.formatLanguageCode(e))}),r}}const Mg={zero:0,one:1,two:2,few:3,many:4,other:5},Tg={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Bg{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=kg.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const n=wg("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:n,type:r});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let i;try{i=new Intl.PluralRules(n,{type:r})}catch(n){if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Tg;if(!e.match(/-|_/))return Tg;const r=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(r,t)}return this.pluralRulesCache[o]=i,i}needsPlural(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),ig([n,"optionalAccess",e=>e.resolvedOptions,"call",e=>e(),"access",e=>e.pluralCategories,"access",e=>e.length])>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort((e,t)=>Mg[e]-Mg[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,n={}){const r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}const $g=(e,t,n,r=".",o=!0)=>{let i=((e,t,n)=>{const r=hg(e,n);return void 0!==r?r:hg(t,n)})(e,t,n);return!i&&o&&ag(n)&&(i=xg(e,n,r),void 0===i&&(i=xg(t,n,r))),i},Dg=e=>e.replace(/\$/g,"$$$$");class Wg{constructor(e={}){this.logger=kg.create("interpolator"),this.options=e,this.format=ig([e,"optionalAccess",e=>e.interpolation,"optionalAccess",e=>e.format])||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:o,prefixEscaped:i,suffix:a,suffixEscaped:s,formatSeparator:l,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:d,nestingPrefixEscaped:p,nestingSuffix:f,nestingSuffixEscaped:h,nestingOptionsSeparator:g,maxReplaces:v,alwaysFormat:m}=e.interpolation;this.escape=void 0!==t?t:yg,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=o?vg(o):i||"{{",this.suffix=a?vg(a):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?vg(d):p||vg("$t("),this.nestingSuffix=f?vg(f):h||vg(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=v||1e3,this.alwaysFormat=void 0!==m&&m,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>ig([e,"optionalAccess",e=>e.source])===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let o,i,a;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(e.indexOf(this.formatSeparator)<0){const o=$g(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...t,interpolationkey:e}):o}const o=e.split(this.formatSeparator),i=o.shift().trim(),a=o.join(this.formatSeparator).trim();return this.format($g(t,s,i,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:i})};this.resetRegExp();const u=ig([r,"optionalAccess",e=>e.missingInterpolationHandler])||this.options.missingInterpolationHandler,c=void 0!==ig([r,"optionalAccess",e=>e.interpolation,"optionalAccess",e=>e.skipOnVariables])?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>Dg(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?Dg(this.escape(e)):Dg(e)}].forEach(t=>{for(a=0;o=t.regex.exec(e);){const n=o[1].trim();if(i=l(n),void 0===i)if("function"==typeof u){const t=u(e,o,r);i=ag(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else{if(c){i=o[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i=""}else ag(i)||this.useRawValueToEscape||(i=lg(i));const s=t.safeValue(i);if(e=e.replace(o[0],s),c?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,o,i;const a=(e,t)=>{const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${n}[ ]*{`));let o=`{${r[1]}`;e=r[0],o=this.interpolate(o,i);const a=o.match(/'/g),s=o.match(/"/g);(og(ig([a,"optionalAccess",e=>e.length]),()=>0)%2==0&&!s||s.length%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i={...t,...i})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${o}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];i={...n},i=i.replace&&!ag(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;const l=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(-1!==l&&(s=r[1].slice(l).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,l)),o=t(a.call(this,r[1].trim(),i),i),o&&r[0]===e&&!ag(o))return o;ag(o)||(o=lg(o)),o||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),o=""),s.length&&(o=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),o.trim())),e=e.replace(r[0],o),this.regexp.lastIndex=0}return e}}const zg=e=>{const t={};return(n,r,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const a=r+JSON.stringify(i);let s=t[a];return s||(s=e(wg(r),o),t[a]=s),s(n)}},Fg=e=>(t,n,r)=>e(wg(n),r)(t);class Ug{constructor(e={}){this.logger=kg.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const n=t.cacheInBuiltFormats?zg:Fg;this.formats={number:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:n((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:n((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=zg(t)}format(e,t,n,r={}){const o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(e=>e.indexOf(")")>-1)){const e=o.findIndex(e=>e.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,e)].join(this.formatSeparator)}const i=o.reduce((e,t)=>{const{formatName:o,formatOptions:i}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);"currency"===t&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(e=>{if(e){const[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();n[i]||(n[i]=o),"false"===o&&(n[i]=!1),"true"===o&&(n[i]=!0),isNaN(o)||(n[i]=parseInt(o,10))}})}return{formatName:t,formatOptions:n}})(t);if(this.formats[o]){let t=e;try{const a=ig([r,"optionalAccess",e=>e.formatParams,"optionalAccess",e=>e[r.interpolationkey]])||{},s=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[o](e,s,{...i,...r,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e);return i}}class Vg extends Cg{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=kg.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],ig([this,"access",e=>e.backend,"optionalAccess",e=>e.init,"optionalCall",e=>e(n,r.backend,r)])}queueLoad(e,t,n,r){const o={},i={},a={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{const a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===i[a]&&(i[a]=!0):(this.state[a]=1,r=!1,void 0===i[a]&&(i[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===s[t]&&(s[t]=!0)))}),r||(a[e]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){const r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),!t&&n&&this.store.addResourceBundle(o,i,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const a={};this.queue.forEach(n=>{((e,t,n)=>{const{obj:r,k:o}=pg(e,t,Object);r[o]=r[o]||[],r[o].push(n)})(n.loaded,[o],i),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{a[e]||(a[e]={});const t=n.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,o=this.retryTimeout,i){if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:i});this.readingCalls++;const a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&r<this.maxRetries?setTimeout(()=>{this.read.call(this,e,t,n,r+1,2*o,i)},o):i(a,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,a);try{const n=s(e,t);n&&"function"==typeof n.then?n.then(e=>a(null,e)).catch(a):a(null,n)}catch(e){a(e)}}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();ag(e)&&(e=this.languageUtils.toResolveHierarchy(e)),ag(t)&&(t=[t]);const o=this.queueLoad(e,t,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=""){const n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,i),this.loaded(e,n,i)})}saveMissing(e,t,n,r,o,i={},a=()=>{}){if(!ig([this,"access",e=>e.services,"optionalAccess",e=>e.utils,"optionalAccess",e=>e.hasLoadedNamespace])||ig([this,"access",e=>e.services,"optionalAccess",e=>e.utils,"optionalAccess",e=>e.hasLoadedNamespace,"call",e=>e(t)])){if(null!=n&&""!==n){if(ig([this,"access",e=>e.backend,"optionalAccess",e=>e.create])){const s={...i,isUpdate:o},l=this.backend.create.bind(this.backend);if(l.length<6)try{let o;o=5===l.length?l(e,t,n,r,s):l(e,t,n,r),o&&"function"==typeof o.then?o.then(e=>a(null,e)).catch(a):a(null,o)}catch(e){a(e)}else l(e,t,n,r,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}else this.logger.warn(`did not save key "${n}" as the namespace "${t}" 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!!!")}}const qg=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),ag(e[1])&&(t.defaultValue=e[1]),ag(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Kg=e=>(ag(e.ns)&&(e.ns=[e.ns]),ag(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),ag(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),ig([e,"access",e=>e.supportedLngs,"optionalAccess",e=>e.indexOf,"optionalCall",e=>e("cimode")])<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e),Hg=()=>{};class Jg extends Cg{constructor(e={},t){var n;if(super(),this.options=Kg(e),this.services={},this.logger=kg,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(ag(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const n=qg();var r;this.options={...n,...this.options,...Kg(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler),!1===this.options.showSupportNotice||(ig([r=this,"optionalAccess",e=>e.modules,"optionalAccess",e=>e.backend,"optionalAccess",e=>e.name,"optionalAccess",e=>e.indexOf,"call",e=>e("Locize")])>0||ig([r,"optionalAccess",e=>e.modules,"optionalAccess",e=>e.backend,"optionalAccess",e=>e.constructor,"optionalAccess",e=>e.name,"optionalAccess",e=>e.indexOf,"call",e=>e("Locize")])>0||ig([r,"optionalAccess",e=>e.options,"optionalAccess",e=>e.backend,"optionalAccess",e=>e.backends])&&r.options.backend.backends.some(e=>ig([e,"optionalAccess",e=>e.name,"access",e=>e.indexOf,"call",e=>e("Locize")])>0||ig([e,"optionalAccess",e=>e.constructor,"optionalAccess",e=>e.name,"access",e=>e.indexOf,"call",e=>e("Locize")])>0))||"undefined"!=typeof console&&void 0!==console.info&&console.info("🌐 i18next is maintained with support from locize.com — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙");const o=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?kg.init(o(this.modules.logger),this.options):kg.init(null,this.options),e=this.modules.formatter?this.modules.formatter:Ug;const t=new Ng(this.options);this.store=new Og(this.options.resources,this.options);const r=this.services;r.logger=kg,r.resourceStore=this.store,r.languageUtils=t,r.pluralResolver=new Bg(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix});this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),!e||this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format||(r.formatter=o(e),r.formatter.init&&r.formatter.init(r,this.options),this.options.interpolation.format=r.formatter.format.bind(r.formatter)),r.interpolator=new Wg(this.options),r.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},r.backendConnector=new Vg(o(this.modules.backend),r.resourceStore,r,this.options),r.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(r.languageDetector=o(this.modules.languageDetector),r.languageDetector.init&&r.languageDetector.init(r,this.options.detection,this.options)),this.modules.i18nFormat&&(r.i18nFormat=o(this.modules.i18nFormat),r.i18nFormat.init&&r.i18nFormat.init(this)),this.translator=new Ig(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=Hg),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});const i=sg(),a=()=>{const e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(n),t(e,n)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=Hg){let n=t;const r=ag(e)?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===ig([r,"optionalAccess",e=>e.toLowerCase,"call",e=>e()])&&(!this.options.preload||0===this.options.preload.length))return n();const e=[],t=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)})};if(r)t(r);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e))}ig([this,"access",e=>e.options,"access",e=>e.preload,"optionalAccess",e=>e.forEach,"optionalCall",e=>e(e=>t(e))]),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){const r=sg();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=Hg),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Ag.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;const n=sg();this.emit("languageChanging",e);const r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(o,i)=>{i?this.isLanguageChangingTo===e&&(r(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(o,(...e)=>this.t(...e))},i=t=>{e||t||!this.services.languageDetector||(t=[]);const n=ag(t)?t:t&&t[0],i=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(ag(t)?[t]:t);i&&(this.language||r(i),this.translator.language||this.translator.changeLanguage(i),ig([this,"access",e=>e.services,"access",e=>e.languageDetector,"optionalAccess",e=>e.cacheUserLanguage,"optionalCall",e=>e(i)])),this.loadResources(i,e=>{o(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),n}getFixedT(e,t,n){const r=(e,t,...o)=>{let i;i="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(o)):{...t},i.lng=i.lng||r.lng,i.lngs=i.lngs||r.lngs,i.ns=i.ns||r.ns,""!==i.keyPrefix&&(i.keyPrefix=i.keyPrefix||n||r.keyPrefix);const a=this.options.keySeparator||".";let s;return i.keyPrefix&&Array.isArray(e)?s=e.map(e=>("function"==typeof e&&(e=Lg(e,{...this.options,...t})),`${i.keyPrefix}${a}${e}`)):("function"==typeof e&&(e=Lg(e,{...this.options,...t})),s=i.keyPrefix?`${i.keyPrefix}${a}${e}`:e),this.t(s,i)};return ag(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return ig([this,"access",e=>e.translator,"optionalAccess",e=>e.translate,"call",t=>t(...e)])}exists(...e){return ig([this,"access",e=>e.translator,"optionalAccess",e=>e.exists,"call",t=>t(...e)])}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const i=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!i(n,e)||r&&!i(o,e)))}loadNamespaces(e,t){const n=sg();return this.options.ns?(ag(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=sg();ag(e)&&(e=[e]);const r=this.options.preload||[],o=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=r.concat(o),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(ig([this,"access",e=>e.languages,"optionalAccess",e=>e.length])>0?this.languages[0]:this.language)),!e)return"rtl";try{const t=new Intl.Locale(e);if(t&&t.getTextInfo){const e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}const t=ig([this,"access",e=>e.services,"optionalAccess",e=>e.languageUtils])||new Ng(qg());return e.toLowerCase().indexOf("-latn")>1?"ltr":["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"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){const n=new Jg(e,t);return n.createInstance=Jg.createInstance,n}cloneInstance(e={},t=Hg){const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},o=new Jg(r);void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e));if(["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n){const e=Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{});o.store=new Og(e,r),o.services.resourceStore=o.store}if(e.interpolation){const t={...qg().interpolation,...this.options.interpolation,...e.interpolation},n={...r,interpolation:t};o.services.interpolator=new Wg(n)}return o.translator=new Ig(o.services,r),o.translator.on("*",(e,...t)=>{o.emit(e,...t)}),o.init(r,t),o.translator.options=r,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Yg=Jg.createInstance();Yg.createInstance,Yg.dir,Yg.init,Yg.loadResources,Yg.reloadResources,Yg.use,Yg.changeLanguage,Yg.getFixedT,Yg.t,Yg.exists,Yg.setDefaultNamespace,Yg.hasLoadedNamespace,Yg.loadNamespaces,Yg.loadLanguages;Yg.init({fallbackLng:"en",lng:"en",debug:!0,resources:{en:{translation:{categorize:{limitMaxChoicesPerCategory:"You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.",maxChoicesPerCategoryRestriction:"To change this value to {{maxChoicesPerCategory}}, each category must have {{maxChoicesPerCategory}} or fewer answer choice[s]."},ebsr:{part:"Part {{index}}"},numberLine:{addElementLimit_one:"You can only add {{count}} element",addElementLimit_other:"You can only add {{count}} elements",clearAll:"Clear all"},imageClozeAssociation:{reachedLimit_one:"You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.",reachedLimit_other:"Full"},drawingResponse:{fillColor:"Fill color",outlineColor:"Outline color",noFill:"No fill",lightblue:"Light blue",lightyellow:"Light yellow",red:"Red",orange:"Orange",yellow:"Yellow",violet:"Violet",blue:"Blue",green:"Green",white:"White",black:"Black",onDoubleClick:"Double click to edit this text. Press Enter to submit."},charting:{addCategory:"Add category",actions:"Actions",add:"Add",delete:"Delete",newLabel:"New label",reachedLimit_other:"There can't be more than {{count}} categories.",keyLegend:{incorrectAnswer:"Student incorrect answer",correctAnswer:"Student correct answer",correctKeyAnswer:"Answer key correct"}},graphing:{point:"Point",circle:"Circle",line:"Line",parabola:"Parabola",absolute:"Absolute Value",exponential:"Exponential",polygon:"Polygon",ray:"Ray",segment:"Segment",sine:"Sine",vector:"Vector",label:"Label",redo:"Redo",reset:"Reset"},mathInline:{primaryCorrectWithAlternates:"Note: The answer shown above is the primary correct answer specified by the author for this item, but other answers may also be recognized as correct."},multipleChoice:{minSelections:"Select at least {{minSelections}}.",maxSelections_one:"Only {{maxSelections}} answer is allowed.",maxSelections_other:"Only {{maxSelections}} answers are allowed.",minmaxSelections_equal:"Select {{minSelections}}.",minmaxSelections_range:"Select between {{minSelections}} and {{maxSelections}}."},selectText:{correctAnswerSelected:"Correct",correctAnswerNotSelected:"Correct Answer Not Selected",incorrectSelection:"Incorrect Selection",key:"Key"}},common:{undo:"Undo",clearAll:"Clear all",correct:"Correct",incorrect:"Incorrect",showCorrectAnswer:"Show correct answer",hideCorrectAnswer:"Hide correct answer",commonCorrectAnswerWithAlternates:"Note: The answer shown above is the most common correct answer for this item. One or more additional correct answers are also defined, and will also be recognized as correct.",warning:"Warning",showNote:"Show Note",hideNote:"Hide Note",cancel:"Cancel"}},es:{translation:{categorize:{limitMaxChoicesPerCategory:"Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.",maxChoicesPerCategoryRestriction:"Para cambiar este valor a {{maxChoicesPerCategory}}, cada categoría debe tener {{maxChoicesPerCategory}} o menos opciones de respuesta"},ebsr:{part:"Parte {{index}}"},numberLine:{addElementLimit_one:"Solo puedes agregar {{count}} elemento",addElementLimit_other:"Solo puedes agregar {{count}} elementos",clearAll:"Borrar todo"},imageClozeAssociation:{reachedLimit_one:"Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.",reachedLimit_other:"Lleno"},drawingResponse:{fillColor:"Color de relleno",outlineColor:"Color del contorno",noFill:"Sin relleno",lightblue:"Azul claro",lightyellow:"Amarillo claro",red:"Rojo",orange:"Naranja",yellow:"Amarillo",violet:"Violeta",blue:"Azul",green:"Verde",white:"Blanco",black:"Negro",onDoubleClick:"Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar"},charting:{addCategory:"Añadir categoría",actions:"Acciones",add:"Añadir",delete:"Eliminar",newLabel:"Nueva etiqueta",reachedLimit_other:"No puede haber más de {{count}} categorías.",keyLegend:{incorrectAnswer:"Respuesta incorrecta del estudiante",correctAnswer:"Respuesta correcta del estudiante",correctKeyAnswer:"Clave de respuesta correcta"}},graphing:{point:"Punto",circle:"Circulo",line:"Línea",parabola:"Parábola",absolute:"Valor absoluto",exponential:"Exponencial",polygon:"Polígono",ray:"Semirrecta",segment:"Segmento ",sine:"Seno",vector:"Vector",label:"Etiqueta",redo:"Rehacer",reset:"Reiniciar"},mathInline:{primaryCorrectWithAlternates:"Nota: La respuesta que se muestra arriba es la respuesta correcta principal especificada por el autor para esta pregunta, pero también se pueden reconocer otras respuestas como correctas."},multipleChoice:{minSelections:"Seleccione al menos {{minSelections}}.",maxSelections_one:"Sólo se permite {{maxSelections}} respuesta.",maxSelections_other:"Sólo se permiten {{maxSelections}} respuestas.",minmaxSelections_equal:"Seleccione {{minSelections}}.",minmaxSelections_range:"Seleccione entre {{minSelections}} y {{maxSelections}}."},selectText:{correctAnswerSelected:"Respuesta Correcta",correctAnswerNotSelected:"Respuesta Correcta No Seleccionada",incorrectSelection:"Selección Incorrecta",key:"Clave"}},common:{undo:"Deshacer",clearAll:"Borrar todo",correct:"Correct",incorrect:"Incorrect",showCorrectAnswer:"Mostrar respuesta correcta",hideCorrectAnswer:"Ocultar respuesta correcta",commonCorrectAnswerWithAlternates:"Nota: La respuesta que se muestra arriba es la respuesta correcta más común para esta pregunta. También se definen una o más respuestas correctas adicionales, y también se reconocerán como correctas.",warning:"Advertencia",showNote:"Mostrar Nota",hideNote:"Ocultar Nota",cancel:"Cancelar"}}}});var Gg={translator:{...Yg,t:(e,t)=>{const{lng:n}=t;switch(n){case"en_US":case"en-US":t.lng="en";break;case"es_ES":case"es-ES":case"es_MX":case"es-MX":t.lng="es"}return Yg.t(e,{lng:n,...t})}},languageOptions:[{value:"en_US",label:"English (US)"},{value:"es_ES",label:"Spanish"}]},Zg=Jh(Object.freeze({__proto__:null,default:Gg})),Qg={},Xg={},ev={};function tv(){return tv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tv.apply(null,arguments)}function nv(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function rv(e,t){return rv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rv(e,t)}function ov(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,rv(e,t)}function iv(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var av={disabled:!1};var sv=e.createContext(null),lv=function(e){return e.scrollTop};const uv=e,cv=t;var dv="unmounted",pv="exited",fv="entering",hv="entered",gv="exiting",vv=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=pv,r.appearStatus=fv):o=hv:o=t.unmountOnExit||t.mountOnEnter?dv:pv,r.state={status:o},r.nextCallback=null,r}ov(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===dv?{status:pv}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==fv&&n!==hv&&(t=fv):n!==fv&&n!==hv||(t=gv)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===fv){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:cv.findDOMNode(this);n&&lv(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===pv&&this.setState({status:dv})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[cv.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||av.disabled?this.safeSetState({status:hv},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:fv},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:hv},function(){t.props.onEntered(i,a)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:cv.findDOMNode(this);t&&!av.disabled?(this.props.onExit(r),this.safeSetState({status:gv},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:pv},function(){e.props.onExited(r)})})})):this.safeSetState({status:pv},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:cv.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===dv)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=nv(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return uv.createElement(sv.Provider,{value:null},"function"==typeof n?n(e,r):uv.cloneElement(uv.Children.only(n),r))},t}(uv.Component);function mv(){}vv.contextType=sv,vv.propTypes={},vv.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:mv,onEntering:mv,onEntered:mv,onExit:mv,onExiting:mv,onExited:mv},vv.UNMOUNTED=dv,vv.EXITED=pv,vv.ENTERING=fv,vv.ENTERED=hv,vv.EXITING=gv;var yv=vv;const bv=e;var _v=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r})},xv=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=iv(n.className,r):n.setAttribute("class",iv(n.className&&n.className.baseVal||"",r)));var n,r})},wv=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}ov(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&lv(e),r&&(this.appliedClasses[t][n]=r,_v(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&xv(e,r),o&&xv(e,o),i&&xv(e,i)},n.render=function(){var e=this.props;e.classNames;var t=nv(e,["classNames"]);return bv.createElement(yv,tv({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(bv.Component);wv.defaultProps={classNames:""},wv.propTypes={};var Sv=wv;const{Children:Ev}=e,{cloneElement:kv}=e,{isValidElement:Cv}=e;function Ov(e,t){var n=Object.create(null);return e&&Ev.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&Cv(e)?t(e):e}(e)}),n}function Av(e,t,n){return null!=n[t]?n[t]:e.props[t]}function jv(e,t,n){var r=Ov(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var u=o[l][r];s[o[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(Cv(a)){var s=i in t,l=i in r,u=t[i],c=Cv(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&Cv(u)&&(o[i]=kv(a,{onExited:n.bind(null,a),in:u.props.in,exit:Av(a,"exit",e),enter:Av(a,"enter",e)})):o[i]=kv(a,{in:!1}):o[i]=kv(a,{onExited:n.bind(null,a),in:!0,exit:Av(a,"exit",e),enter:Av(a,"enter",e)})}}),o}const Lv=e;var Rv=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Pv=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}ov(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,Ov(n.children,function(e){return kv(e,{onExited:r.bind(null,e),in:!0,appear:Av(e,"appear",n),enter:Av(e,"enter",n),exit:Av(e,"exit",n)})})):jv(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Ov(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=tv({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=nv(e,["component","childFactory"]),o=this.state.contextValue,i=Rv(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?Lv.createElement(sv.Provider,{value:o},i):Lv.createElement(sv.Provider,{value:o},Lv.createElement(t,r,i))},t}(Lv.Component);Pv.propTypes={},Pv.defaultProps={component:"div",childFactory:function(e){return e}};var Iv=Pv;const Nv=e,Mv=t;var Tv=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}ov(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,o=this.props.children,i=Nv.Children.toArray(o)[t];if(i.props[e]&&(r=i.props)[e].apply(r,n),this.props[e]){var a=i.props.nodeRef?void 0:Mv.findDOMNode(this);this.props[e](a)}},n.render=function(){var e=this.props,t=e.children,n=e.in,r=nv(e,["children","in"]),o=Nv.Children.toArray(t),i=o[0],a=o[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,Nv.createElement(Iv,r,n?Nv.cloneElement(i,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):Nv.cloneElement(a,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(Nv.Component);Tv.propTypes={};var Bv=Tv;const $v=e;var Dv,Wv;var zv="out-in",Fv="in-out",Uv=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},Vv=((Dv={})[zv]=function(e){var t=e.current,n=e.changeState;return $v.cloneElement(t,{in:!1,onExited:Uv(t,"onExited",function(){n(fv,null)})})},Dv[Fv]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,$v.cloneElement(r,{in:!0,onEntered:Uv(r,"onEntered",function(){n(fv)})})]},Dv),qv=((Wv={})[zv]=function(e){var t=e.children,n=e.changeState;return $v.cloneElement(t,{in:!0,onEntered:Uv(t,"onEntered",function(){n(hv,$v.cloneElement(t,{in:!0}))})})},Wv[Fv]=function(e){var t=e.current,n=e.children,r=e.changeState;return[$v.cloneElement(t,{in:!1,onExited:Uv(t,"onExited",function(){r(hv,$v.cloneElement(n,{in:!0}))})}),$v.cloneElement(n,{in:!0})]},Wv),Kv=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={status:hv,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}ov(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===fv&&e.mode===Fv?{status:fv}:!t.current||(n=t.current,r=e.children,n===r||$v.isValidElement(n)&&$v.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:$v.cloneElement(e.children,{in:!0})}:{status:gv};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,o=this.state,i=o.status,a=o.current,s={children:n,current:a,changeState:this.changeState,status:i};switch(i){case fv:e=qv[r](s);break;case gv:e=Vv[r](s);break;case hv:e=a}return $v.createElement(sv.Provider,{value:{isMounting:!this.appeared}},e)},t}($v.Component);Kv.propTypes={},Kv.defaultProps={mode:zv};var Hv=Kv,Jv=Jh(Object.freeze({__proto__:null,CSSTransition:Sv,ReplaceTransition:Bv,SwitchTransition:Hv,TransitionGroup:Iv,Transition:yv,config:av}));const Yv=e,Gv=o,{Box:Zv}=n,Qv=r,Xv=i;var em=Gh.exports;Object.defineProperty(ev,"__esModule",{value:!0}),ev.default=void 0;var tm=em(Zh.exports),nm=em(Yv),rm=Jv,om=Gv,im=em(Zv),am=em(Qv),sm=Xv;const lm=(0,om.styled)(im.default)({width:"33px",height:"33px","& svg":{position:"absolute",display:"inline-block",width:"33px",height:"33px",verticalAlign:"middle","& hide":{display:"none"}}}),um=(0,om.styled)("svg")({"& .incorrect-fill":{fill:`var(--feedback-incorrect-bg-color, ${sm.color.incorrect()})`},"& .correct-fill":{fill:`var(--feedback-correct-bg-color, ${sm.color.correct()})`}}),cm=(0,om.styled)("div")({position:"relative","&.feedback-tick-enter":{opacity:"0",left:"-50px"},"&.feedback-tick-enter-active":{opacity:"1",left:"0px",transition:"left 500ms ease-in 200ms, opacity 500ms linear 200ms"},"&.feedback-tick-exit":{opacity:"1",left:"0px"},"&.feedback-tick-exit-active":{opacity:"0",left:"-50px",transition:"left 300ms ease-in, opacity 300ms"}});class dm extends nm.default.Component{constructor(e){super(e),(0,tm.default)(this,"getIncorrectIcon",()=>nm.default.createElement(um,{key:"1",preserveAspectRatio:"xMinYMin meet",x:"0px",y:"0px",viewBox:"0 0 44 40",style:{enableBackground:"new 0 0 44 40"}},nm.default.createElement("g",null,nm.default.createElement("rect",{x:"11",y:"17.3",transform:"matrix(0.7071 -0.7071 0.7071 0.7071 -7.852 19.2507)",className:"incorrect-fill",width:"16.6",height:"3.7"}),nm.default.createElement("rect",{x:"17.4",y:"10.7",transform:"matrix(0.7071 -0.7071 0.7071 0.7071 -7.8175 19.209)",className:"incorrect-fill",width:"3.7",height:"16.6"})))),(0,tm.default)(this,"getCorrectIcon",()=>nm.default.createElement(um,{key:"2",preserveAspectRatio:"xMinYMin meet",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 44 40",style:{enableBackground:"new 0 0 44 40"}},nm.default.createElement("polygon",{className:"correct-fill",points:"19.1,28.6 11.8,22.3 14.4,19.2 17.9,22.1 23.9,11.4 27.5,13.4"}))),this.nodeRef=nm.default.createRef()}render(){const{correctness:e}=this.props,t=(()=>"incorrect"===e?this.getIncorrectIcon():"correct"===e?this.getCorrectIcon():null)();return nm.default.createElement(lm,null,nm.default.createElement(rm.TransitionGroup,null,e&&nm.default.createElement(rm.CSSTransition,{nodeRef:this.nodeRef,classNames:{enter:"feedback-tick-enter",enterActive:"feedback-tick-enter-active",exit:"feedback-tick-exit",exitActive:"feedback-tick-exit-active"},timeout:{enter:700,exit:300}},nm.default.createElement(cm,{ref:this.nodeRef},t))))}}(0,tm.default)(dm,"propTypes",{correctness:am.default.string}),ev.default=dm;const{FormControlLabel:pm}=n,{Box:fm}=n,{Checkbox:hm}=n,{Radio:gm}=n,vm=e,mm=r,ym=o,bm=i,_m=a;var xm=Gh.exports;Object.defineProperty(Xg,"__esModule",{value:!0}),Xg.default=Xg.StyledRadio=Xg.StyledFormControlLabel=Xg.StyledCheckbox=Xg.ChoiceInput=void 0;var wm=xm(Zh.exports),Sm=xm(ng.exports),Em=xm(pm),km=xm(vm),Cm=xm(mm),Om=ym,Am=xm(fm),jm=xm(hm),Lm=bm,Rm=xm(gm),Pm=xm(_m),Im=xm(ev);const Nm="multiple-choice-component",Mm=(0,Om.styled)(Am.default)({display:"flex",alignItems:"center",backgroundColor:Lm.color.background()}),Tm=(0,Om.styled)(Am.default)({display:"flex",alignItems:"center",backgroundColor:Lm.color.background(),flex:1,"& .MuiFormControlLabel-root":{marginLeft:"-14px"},"& label":{color:Lm.color.text(),"& > span":{fontSize:"inherit"},"& > .MuiButtonBase-root":{padding:"12px"}}}),Bm=(0,Om.styled)("span")(({theme:e})=>({display:"flex",alignItems:"center","& > span":{marginLeft:`-${e.spacing(1)}`}})),$m=(0,Om.styled)("span")({position:"absolute",left:"-10000px",top:"auto",width:"1px",height:"1px",overflow:"hidden"}),Dm=Xg.StyledFormControlLabel=(0,Om.styled)(Em.default)({"& .MuiFormControlLabel-label":{color:`${Lm.color.text()} !important`,backgroundColor:Lm.color.background(),letterSpacing:"normal"},"&.Mui-disabled *":{cursor:"not-allowed !important"}}),Wm=(e,t)=>({[`&.${Nm}`]:{color:`var(--choice-input-${e}, ${t}) !important`}}),zm=e=>{const t=t=>e?`${e}-${t}`:t;return{[t("root")]:{...Wm("color",Lm.color.text()),...e?{}:{"&:hover":{color:`${Lm.color.primaryLight()} !important`}},..."correct"===e?Wm("correct-color",Lm.color.text()):{},..."incorrect"===e?Wm("incorrect-color",Lm.color.incorrect()):{}},[t("checked")]:{..."correct"===e?Wm("correct-selected-color",Lm.color.correct()):{},..."incorrect"===e?Wm("incorrect-checked",Lm.color.incorrect()):{},...e?{}:Wm("selected-color",Lm.color.primary())},[t("disabled")]:{...Wm("disabled-color",Lm.color.text()),..."correct"===e?Wm("correct-disabled-color",Lm.color.disabled()):{},..."incorrect"===e?Wm("incorrect-disabled-color",Lm.color.disabled()):{},opacity:.6,cursor:"not-allowed !important",pointerEvents:"initial !important"},focusVisibleUnchecked:{outline:`2px solid ${Lm.color.focusUncheckedBorder()}`,backgroundColor:Lm.color.focusUnchecked()},focusVisibleChecked:{outline:`2px solid ${Lm.color.focusCheckedBorder()}`,backgroundColor:Lm.color.focusChecked()}}},Fm=(0,Om.styled)(jm.default,{shouldForwardProp:e=>"correctness"!==e})(({correctness:e})=>{const t=zm(e),n=t=>e?`${e}-${t}`:t;return{[`&.${Nm}`]:{...t[n("root")],"&.Mui-checked":t[n("checked")],"&.Mui-disabled":e?{}:t[n("disabled")]},"&.Mui-focusVisible":{"&:not(.Mui-checked)":t.focusVisibleUnchecked,"&.Mui-checked":t.focusVisibleChecked}}}),Um=e=>{const{correctness:t,checked:n,onChange:r,disabled:o,value:i,id:a,onKeyDown:s,inputRef:l}=e,u={checked:n,onChange:r,disabled:o,value:i};return km.default.createElement(Fm,(0,Sm.default)({id:a,slotProps:{input:{ref:l}},onKeyDown:s,disableRipple:!0},u,{correctness:t,className:Nm}))};Xg.StyledCheckbox=Um;const Vm=(0,Om.styled)(Rm.default,{shouldForwardProp:e=>"correctness"!==e})(({correctness:e})=>{const t=zm(e),n=t=>e?`${e}-${t}`:t;return{[`&.${Nm}`]:{...t[n("root")],"&.Mui-checked":t[n("checked")],"&.Mui-disabled":e?{}:t[n("disabled")]},"&.Mui-focusVisible":{"&:not(.Mui-checked)":t.focusVisibleUnchecked,"&.Mui-checked":t.focusVisibleChecked}}}),qm=e=>{const{correctness:t,checked:n,onChange:r,disabled:o,value:i,id:a,tagName:s,inputRef:l}=e,u={checked:n,onChange:r,disabled:o,value:i};return km.default.createElement(Vm,(0,Sm.default)({id:a,slotProps:{input:{ref:l}},disableRipple:!0},u,{correctness:t,className:Nm,name:s}))};Xg.StyledRadio=qm;class Km extends km.default.Component{constructor(e){super(e),(0,wm.default)(this,"handleKeyDown",e=>{const{choiceMode:t}=this.props;if("checkbox"!==t)return;const n="ArrowDown"===e.key,r="ArrowUp"===e.key;if(!n&&!r)return;e.preventDefault();const o=document.getElementById(this.choiceId);if(!o)return;const i=o.closest("fieldset");if(!i)return;const a=Array.from(i.querySelectorAll('input[type="checkbox"]')),s=a.findIndex(e=>e===o);if(-1===s)return;const l=a[n?s+1:s-1];l&&l.focus()}),this.onToggleChoice=this.onToggleChoice.bind(this),this.choiceId=this.generateChoiceId(),this.descId=`${this.choiceId}-desc`}onToggleChoice(e){this.props.onChange(e)}generateChoiceId(){return"choice-"+(1e4*Math.random()).toFixed()}render(){const{choiceMode:e,disabled:t,displayKey:n,feedback:r,label:o,correctness:i,className:a,rationale:s,hideTick:l,isEvaluateMode:u,choicesLayout:c,value:d,checked:p,tagName:f,isSelectionButtonBelow:h}=this.props,g="checkbox"===e?Um:qm,v="checkbox"===e?"checkbox":"radio-button",m={..."horizontal"===c&&{[`& .${Nm}`]:{padding:"8px",margin:"4px 0 4px 4px"}},...h&&"grid"!==c&&{"& > label":{alignItems:"flex-start"}},...h&&"grid"===c&&{justifyContent:"center","& > label":{alignItems:"center"}}},y="string"==typeof o&&(o.includes("<math")||o.includes("\\(")||o.includes("\\[")||o.includes("<img")||o.includes("data-latex")||o.includes("data-raw")||o.includes("<mjx-container")),b=n?km.default.createElement($m,{id:this.descId},y?`Pick the answer below, ${n}`:n):null,_=km.default.createElement(km.default.Fragment,null,n&&!h?km.default.createElement(Mm,{component:"span"},km.default.createElement("span",{"aria-hidden":"true"},n,"."," "),km.default.createElement(Lm.PreviewPrompt,{className:"prompt-label",prompt:o,tagName:"span"})):km.default.createElement(Lm.PreviewPrompt,{className:"prompt-label",prompt:o,tagName:"span"})),x={disabled:t,checked:p,correctness:i,tagName:f,value:d,id:this.choiceId,onChange:this.onToggleChoice,onKeyDown:this.handleKeyDown,...b?{"aria-describedby":this.descId}:{}},w=h?km.default.createElement(Bm,null,b,km.default.createElement(g,(0,Sm.default)({},x,{style:{padding:0}})),km.default.createElement("span",{"aria-hidden":"true"},n?`${n}.`:"")):km.default.createElement(km.default.Fragment,null,b,km.default.createElement(g,(0,Sm.default)({},x,{slotProps:{input:{ref:this.props.autoFocusRef}}})));return km.default.createElement("div",{className:(0,Pm.default)(a,"corespring-"+v,"choice-input")},km.default.createElement(Mm,null,!l&&u&&km.default.createElement(Im.default,{correctness:i}),km.default.createElement(Tm,{className:"checkbox-holder",sx:m},km.default.createElement(Dm,{label:_,value:d,htmlFor:this.choiceId,labelPlacement:h?"top":void 0,control:w}))),s&&km.default.createElement(Lm.PreviewPrompt,{className:"rationale",defaultClassName:"rationale",prompt:s}),km.default.createElement(Lm.Feedback,{feedback:r,correctness:i}))}}Xg.ChoiceInput=Km,(0,wm.default)(Km,"propTypes",{choiceMode:Cm.default.oneOf(["radio","checkbox"]),displayKey:Cm.default.string,checked:Cm.default.bool.isRequired,correctness:Cm.default.string,disabled:Cm.default.bool.isRequired,feedback:Cm.default.string,label:Cm.default.string.isRequired,rationale:Cm.default.string,onChange:Cm.default.func.isRequired,value:Cm.default.string.isRequired,className:Cm.default.string,tagName:Cm.default.string,hideTick:Cm.default.bool,isEvaluateMode:Cm.default.bool,choicesLayout:Cm.default.oneOf(["vertical","grid","horizontal"]),isSelectionButtonBelow:Cm.default.bool}),(0,wm.default)(Km,"defaultProps",{rationale:null,checked:!1,isEvaluateMode:!1}),Xg.default=Km;const Hm=e,Jm=r,Ym=o,{Box:Gm}=n;var Zm=Gh.exports;Object.defineProperty(Qg,"__esModule",{value:!0}),Qg.default=Qg.Choice=void 0;var Qm=Zm(ng.exports),Xm=Zm(Zh.exports),ey=Zm(Hm),ty=Zm(Jm),ny=Ym,ry=Zm(Gm),oy=Zm(Xg);const iy=(0,ny.styled)(ry.default,{shouldForwardProp:e=>"noBorder"!==e&&"horizontalLayout"!==e})(({theme:e,noBorder:t,horizontalLayout:n})=>({paddingTop:e.spacing(2.5),paddingBottom:`calc(${e.spacing(1)} + 2px)`,paddingLeft:`calc(${e.spacing(1)} + 2px)`,paddingRight:`calc(${e.spacing(1)} + 2px)`,borderBottom:t?"none":`1px solid ${e.palette.grey[300]}`,...n&&{paddingRight:e.spacing(2.5),"& label":{marginRight:e.spacing(1)}}}));class ay extends ey.default.Component{constructor(...e){super(...e),(0,Xm.default)(this,"state",{isHovered:!1}),(0,Xm.default)(this,"handleMouseEnter",()=>{const{disabled:e,checked:t}=this.props;e||t||this.setState({isHovered:!0})}),(0,Xm.default)(this,"handleMouseLeave",()=>{this.setState({isHovered:!1})}),(0,Xm.default)(this,"onChange",e=>{const{disabled:t,onChoiceChanged:n}=this.props;t||n(e)})}render(){const{choice:e,index:t,choicesLength:n,showCorrect:r,isEvaluateMode:o,choiceMode:i,disabled:a,checked:s,correctness:l,displayKey:u,choicesLayout:c,gridColumns:d,isSelectionButtonBelow:p,selectedAnswerBackgroundColor:f,selectedAnswerStrokeColor:h,selectedAnswerStrokeWidth:g,hoverAnswerBackgroundColor:v,hoverAnswerStrokeColor:m,hoverAnswerStrokeWidth:y,autoFocusRef:b,tagName:_}=this.props,{isHovered:x}=this.state,w="choice"+(t===n-1?" last":""),S=!o||r?"":e.feedback,E={...e,checked:s,choiceMode:i,disabled:a,feedback:S,correctness:l,displayKey:u,index:t,choicesLayout:c,gridColumns:d,onChange:this.onChange,isEvaluateMode:o,isSelectionButtonBelow:p,selectedAnswerStrokeColor:h,selectedAnswerStrokeWidth:g,tagName:_},k=h&&"initial"!==h,C=m&&"initial"!==m;let O="transparent",A="2px",j="initial";(k||C)&&(s&&k?(O=h,A=g):x&&!a&&C&&(O=m,A=y)),s&&f&&"initial"!==f?j=f:x&&!a&&v&&"initial"!==v&&(j=v);const L=k||C,R=L?{border:`${(e=>{if(!e)return"2px";const t=String(e).trim();return/^\d+(\.\d+)?$/.test(t)?`${t}px`:t})(A)} solid ${O}`,borderRadius:"8px"}:{},P=t===n-1||"vertical"!==c||L,I="horizontal"===c,N="initial"!==j?j:"initial";return ey.default.createElement("div",{className:w,key:t,style:{backgroundColor:N,...R},onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},ey.default.createElement(iy,{component:"div",noBorder:P,horizontalLayout:I},ey.default.createElement(oy.default,(0,Qm.default)({},E,{autoFocusRef:b}))))}}Qg.Choice=ay,(0,Xm.default)(ay,"propTypes",{}),ay.propTypes={choiceMode:ty.default.oneOf(["radio","checkbox"]),choice:ty.default.object,disabled:ty.default.bool.isRequired,onChoiceChanged:ty.default.func,index:ty.default.number,choicesLength:ty.default.number,showCorrect:ty.default.bool,isEvaluateMode:ty.default.bool,checked:ty.default.bool,correctness:ty.default.string,displayKey:ty.default.string,choicesLayout:ty.default.oneOf(["vertical","grid","horizontal"]),gridColumns:ty.default.string,selectedAnswerBackgroundColor:ty.default.string,selectedAnswerStrokeColor:ty.default.string,selectedAnswerStrokeWidth:ty.default.string,hoverAnswerBackgroundColor:ty.default.string,hoverAnswerStrokeColor:ty.default.string,hoverAnswerStrokeWidth:ty.default.string,tagName:ty.default.string,isSelectionButtonBelow:ty.default.bool,autoFocusRef:ty.default.object},Qg.default=ay;const sy=e,ly=r,uy=s,cy=a,dy=o,{Box:py}=n,fy=i;var hy=Gh.exports;Object.defineProperty(rg,"__esModule",{value:!0}),rg.default=rg.MultipleChoice=void 0;var gy=hy(Zh.exports),vy=hy(sy),my=hy(ly),yy=hy(uy),by=hy(cy),_y=dy,xy=hy(py),wy=fy,Sy=hy(Zg),Ey=hy(Qg);const{translator:ky}=Sy.default,Cy=(0,_y.styled)(xy.default)({color:wy.color.text(),backgroundColor:wy.color.background(),"& *":{"-webkit-font-smoothing":"antialiased"},position:"relative","& legend":{border:"none !important"}}),Oy=(0,_y.styled)("h2")(({theme:e})=>({display:"block",fontSize:"inherit",margin:"0",fontWeight:"normal",paddingBottom:e.spacing(2)})),Ay=(0,_y.styled)(xy.default)(({theme:e})=>({marginBottom:e.spacing(2)})),jy=(0,_y.styled)(xy.default)({display:"flex",flexDirection:"row",flexWrap:"wrap"}),Ly=(0,_y.styled)(xy.default)({display:"grid"}),Ry=(0,_y.styled)("fieldset")({border:"0px",padding:"0.01em 0 0 0",margin:"0px",minWidth:"0px","&:focus":{outline:"none"}}),Py=(0,_y.styled)("h3")({position:"absolute",left:"-10000px",top:"auto",width:"1px",height:"1px",overflow:"hidden"}),Iy=(0,_y.styled)("div")(({theme:e})=>({fontSize:e.typography.fontSize-2,color:e.palette.error.main,paddingTop:e.spacing(1)}));class Ny extends vy.default.Component{constructor(e){super(e),(0,gy.default)(this,"handleChange",e=>{const{value:t,checked:n}=e.target,{maxSelections:r,onChoiceChanged:o,session:i}=this.props;i.value&&i.value.length>=r&&(this.setState({maxSelectionsErrorState:n}),n)||o({value:t,selected:n,selector:"Mouse"})}),(0,gy.default)(this,"onToggle",()=>{"evaluate"===this.props.mode&&this.setState({showCorrect:!this.state.showCorrect},()=>{this.props.onShowCorrectToggle&&this.props.onShowCorrectToggle()})}),(0,gy.default)(this,"getCorrectness",(e={})=>{const t=e.correct,n=this.isSelected(e.value);return this.state.showCorrect?t?"correct":void 0:t?n?"correct":"incorrect":n?"incorrect":void 0}),(0,gy.default)(this,"handleGroupFocus",e=>{const t=e.currentTarget,n=document.activeElement;t.contains(n)&&n!==t||(!e.relatedTarget||t.compareDocumentPosition(e.relatedTarget)&Node.DOCUMENT_POSITION_PRECEDING)&&function(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=i(n)):"call"!==o&&"optionalCall"!==o||(n=i((...e)=>n.call(t,...e)),t=void 0)}return n}([this,"access",e=>e.firstInputRef,"optionalAccess",e=>e.current])&&this.firstInputRef.current.focus()}),this.state={showCorrect:this.props.options&&this.props.alwaysShowCorrect||!1,maxSelectionsErrorState:!1},this.onToggle=this.onToggle.bind(this),this.firstInputRef=vy.default.createRef()}isSelected(e){const t=this.props.session&&this.props.session.value;return t&&t.indexOf&&t.indexOf(e)>=0}UNSAFE_componentWillReceiveProps(e){e.correctResponse||!1===this.state.showCorrect||this.setState({showCorrect:!1},()=>{this.props.onShowCorrectToggle&&this.props.onShowCorrectToggle()}),e.options&&e.alwaysShowCorrect&&!0!==this.state.showCorrect&&this.setState({showCorrect:!0},()=>{this.props.onShowCorrectToggle&&this.props.onShowCorrectToggle()})}indexToSymbol(e){return"numbers"===this.props.keyMode?`${e+1}`:"letters"===this.props.keyMode?String.fromCharCode(97+e).toUpperCase():""}getChecked(e){if(this.props.options&&this.props.alwaysShowCorrect)return e.correct||!1;return this.state.showCorrect&&"evaluate"===this.props.mode?e.correct||!1:this.isSelected(e.value)}renderHeading(){const{mode:e,choiceMode:t}=this.props;return"gather"!==e?null:"radio"===t?vy.default.createElement(Py,null,"Multiple Choice Question"):vy.default.createElement(Py,null,"Multiple Select Question")}render(){const{mode:e,disabled:t,className:n,choices:r=[],choiceMode:o,gridColumns:i,partLabel:a,prompt:s,responseCorrect:l,teacherInstructions:u,alwaysShowCorrect:c,animationsDisabled:d,language:p,isSelectionButtonBelow:f,minSelections:h,maxSelections:g,autoplayAudioEnabled:v,session:m,customAudioButton:y,options:b}=this.props,{showCorrect:_,maxSelectionsErrorState:x}=this.state,w="evaluate"===e,S=w&&!l,E=i>1?{gridTemplateColumns:`repeat(${i}, 1fr)`}:void 0,k=m.value&&m.value.length||0,C=vy.default.createElement(wy.PreviewPrompt,{tagName:"div",className:"prompt",defaultClassName:"teacher-instructions",prompt:u}),O="grid"===this.props.choicesLayout?Ly:"horizontal"===this.props.choicesLayout?jy:xy.default;return vy.default.createElement(Cy,{id:"main-container",className:(0,by.default)(n,"multiple-choice")},a&&vy.default.createElement(Oy,null,a),this.renderHeading(),u&&vy.default.createElement(Ay,null,d?C:vy.default.createElement(wy.Collapsible,{labels:{hidden:"Show Teacher Instructions",visible:"Hide Teacher Instructions"}},C)),vy.default.createElement(Ry,{tabIndex:0,onFocus:this.handleGroupFocus,role:"radio"===o?"radiogroup":"group"},vy.default.createElement(wy.PreviewPrompt,{className:"prompt",defaultClassName:"prompt",prompt:s,tagName:"legend",autoplayAudioEnabled:v,customAudioButton:y}),!(b&&c)&&vy.default.createElement(yy.default,{show:S,toggled:_,onToggle:this.onToggle.bind(this),language:p}),vy.default.createElement(O,{style:E},r.map((e,n)=>vy.default.createElement(Ey.default,{autoFocusRef:0===n?this.firstInputRef:null,choicesLayout:this.props.choicesLayout,selectedAnswerBackgroundColor:this.props.selectedAnswerBackgroundColor,selectedAnswerStrokeColor:this.props.selectedAnswerStrokeColor,selectedAnswerStrokeWidth:this.props.selectedAnswerStrokeWidth,hoverAnswerBackgroundColor:this.props.hoverAnswerBackgroundColor,hoverAnswerStrokeColor:this.props.hoverAnswerStrokeColor,hoverAnswerStrokeWidth:this.props.hoverAnswerStrokeWidth,gridColumns:i,key:`choice-${n}`,choice:e,index:n,choicesLength:r.length,showCorrect:_,isEvaluateMode:w,choiceMode:o,disabled:t,tagName:a?`group-${a}`:"group",onChoiceChanged:this.handleChange,hideTick:e.hideTick,checked:this.getChecked(e),correctness:w?this.getCorrectness(e):void 0,displayKey:this.indexToSymbol(n),isSelectionButtonBelow:f})))),"checkbox"===o&&k<h&&vy.default.createElement(Iy,null,h&&g?h===g?ky.t("translation:multipleChoice:minmaxSelections_equal",{lng:p,minSelections:h}):ky.t("translation:multipleChoice:minmaxSelections_range",{lng:p,minSelections:h,maxSelections:g}):h?ky.t("translation:multipleChoice:minSelections",{lng:p,minSelections:h}):""),"checkbox"===o&&x&&vy.default.createElement(Iy,null,ky.t("translation:multipleChoice:maxSelections_"+(1===g?"one":"other"),{lng:p,maxSelections:g})))}}rg.MultipleChoice=Ny,(0,gy.default)(Ny,"propTypes",{className:my.default.string,mode:my.default.oneOf(["gather","view","evaluate"]),choiceMode:my.default.oneOf(["radio","checkbox"]),keyMode:my.default.oneOf(["numbers","letters","none"]),choices:my.default.array,partLabel:my.default.string,prompt:my.default.string,teacherInstructions:my.default.string,session:my.default.object,disabled:my.default.bool,onChoiceChanged:my.default.func,responseCorrect:my.default.bool,correctResponse:my.default.array,choicesLayout:my.default.oneOf(["vertical","grid","horizontal"]),gridColumns:my.default.string,alwaysShowCorrect:my.default.bool,animationsDisabled:my.default.bool,language:my.default.string,selectedAnswerBackgroundColor:my.default.string,selectedAnswerStrokeColor:my.default.string,selectedAnswerStrokeWidth:my.default.string,hoverAnswerBackgroundColor:my.default.string,hoverAnswerStrokeColor:my.default.string,hoverAnswerStrokeWidth:my.default.string,onShowCorrectToggle:my.default.func,isSelectionButtonBelow:my.default.bool,minSelections:my.default.number,maxSelections:my.default.number,autoplayAudioEnabled:my.default.bool,customAudioButton:{playImage:my.default.string,pauseImage:my.default.string},options:my.default.object}),Ny.defaultProps={session:{value:[]}},rg.default=Ny;const My=e,Ty=r,By=i;var $y=Gh.exports;Object.defineProperty(tg,"__esModule",{value:!0}),tg.default=void 0;var Dy=$y(ng.exports),Wy=$y(Zh.exports),zy=$y(My),Fy=$y(Ty),Uy=By,Vy=$y(rg);class qy extends zy.default.Component{render(){const{model:e,onChoiceChanged:t,session:n,onShowCorrectToggle:r,options:o}=this.props,{extraCSSRules:i,fontSizeFactor:a}=e;return zy.default.createElement(Uy.PreviewLayout,{extraCSSRules:i,fontSizeFactor:a,classes:{}},zy.default.createElement(Vy.default,(0,Dy.default)({},e,{options:o,session:n,onChoiceChanged:t,onShowCorrectToggle:r})))}}(0,Wy.default)(qy,"propTypes",{model:Fy.default.object,session:Fy.default.object,options:Fy.default.object,onChoiceChanged:Fy.default.func,onShowCorrectToggle:Fy.default.func,extraCSSRules:Fy.default.shape({names:Fy.default.arrayOf(Fy.default.string),rules:Fy.default.string})}),(0,Wy.default)(qy,"defaultProps",{model:{},session:{}}),tg.default=qy;var Ky=Jh(Kh),Hy={};Object.defineProperty(Hy,"__esModule",{value:!0});class Jy extends CustomEvent{constructor(e,t,n){super(Jy.TYPE,{bubbles:!0,composed:!0,detail:{complete:t,component:e,hasModel:n}}),this.component=e,this.complete=t}}Jy.TYPE="model-set",Hy.ModelSetEvent=Jy;class Yy extends CustomEvent{constructor(e,t){super(Yy.TYPE,{bubbles:!0,composed:!0,detail:{complete:t,component:e}}),this.component=e,this.complete=t}}Yy.TYPE="session-changed";var Gy=Hy.SessionChangedEvent=Yy,Zy={};Object.defineProperty(Zy,"__esModule",{value:!0}),Zy.updateSessionMetadata=function(e,t){e.audioStartTime=e.audioStartTime||t.audioStartTime,e.audioEndTime=e.audioEndTime||t.audioEndTime,!e.waitTime&&e.audioStartTime&&e.audioEndTime&&(e.waitTime=e.audioEndTime-e.audioStartTime)},Zy.updateSessionValue=function(e,t,n){e.value=e.value||[],"checkbox"===t&&(n.selected?e.value=Array.from(new Set([...e.value,n.value])):e.value=e.value.filter(e=>e!==n.value));"radio"===t&&(n.selected?e.value=[n.value]:e.value=[]);e.selector=n.selector};const Qy=e,Xy=u,eb=l,tb=i,nb=c;var rb=Gh.exports;Object.defineProperty(Yh,"__esModule",{value:!0}),Yh.isComplete=Yh.default=void 0;var ob=rb(Zh.exports),ib=rb(tg),ab=rb(Qy),sb=Xy,lb=Ky,ub=rb(eb),cb=Hy,db=nb,pb=tb,fb=Zy;const hb=(0,ub.default)("pie-ui:multiple-choice"),gb=(e,t,n,r)=>{const{autoplayAudioEnabled:o,completeAudioEnabled:i}=t||{};if(o&&i&&!n&&r){const e=r.querySelector("audio"),t=e&&e.closest("#preview-prompt");if(e&&t)return!1}if(!e||!e.value)return!1;const{choiceMode:a,minSelections:s=1,maxSelections:l}=t||{},u=e.value.length||0;return"radio"===a?!!u:!(u<s||u>l)};Yh.isComplete=gb;class vb extends HTMLElement{constructor(){super(),(0,ob.default)(this,"_scheduleMathRender",()=>{this._mathRenderPending||(this._mathRenderPending=!0,requestAnimationFrame(()=>{this._mathObserver&&this._mathObserver.disconnect(),hb("render complete - render math"),(0,db.renderMath)(this),this._mathRenderPending=!1,setTimeout(()=>{this._mathObserver&&this._mathObserver.observe(this,{childList:!0,subtree:!0})},50)}))}),this._model=null,this._session=null,this._options=null,this.audioComplete=!1,this._boundHandleKeyDown=this.handleKeyDown.bind(this),this._keyboardEventsEnabled=!1,this._audioInitialized=!1,this._root=null,this._mathObserver=null,this._mathRenderPending=!1,this._rerender=(0,lb.debounce)(()=>{if(this._model&&this._session){var e=ab.default.createElement(ib.default,{model:this._model,session:this._session,options:this._options,onChoiceChanged:this._onChange.bind(this),onShowCorrectToggle:this.onShowCorrectToggle.bind(this)});this.setAttribute("aria-label","radio"===this._model.choiceMode?"Multiple Choice Question":"Multiple Correct Answer Question"),this.setAttribute("role","region"),this.setLangAttribute(),this._initMathObserver(),this._root||(this._root=(0,sb.createRoot)(this)),this._root.render(e),!0!==this._model.keyboardEventsEnabled||this._keyboardEventsEnabled||this.enableKeyboardEvents()}else hb("skip")},50,{leading:!1,trailing:!0}),this._dispatchResponseChanged=(0,lb.debounce)(()=>{this.dispatchEvent(new cb.SessionChangedEvent(this.tagName.toLowerCase(),gb(this._session,this._model,this.audioComplete,this)))}),this._dispatchModelSet=(0,lb.debounce)(()=>{this.dispatchEvent(new cb.ModelSetEvent(this.tagName.toLowerCase(),gb(this._session,this._model,this.audioComplete,this),void 0!==this._model))},50,{leading:!1,trailing:!0})}_initMathObserver(){this._mathObserver||(this._mathObserver=new MutationObserver(this._scheduleMathRender),this._mathObserver.observe(this,{childList:!0,subtree:!0}))}_disconnectMathObserver(){this._mathObserver&&(this._mathObserver.disconnect(),this._mathObserver=null)}onShowCorrectToggle(){(0,db.renderMath)(this)}setLangAttribute(){const e=this._model&&(this._model.language,1)?this._model.language:"",t=e?e.slice(0,2):"en";this.setAttribute("lang",t)}set model(e){this._model=e,this._rerender(),this._audioInitialized=!1,this._dispatchModelSet()}get session(){return this._session}get options(){return this._options}set options(e){this._options=e,this._rerender()}set session(e){this._session=e,this._rerender(),this._dispatchResponseChanged()}_onChange(e){(0,fb.updateSessionValue)(this._session,this._model.choiceMode,e),this._dispatchResponseChanged(),this._rerender()}_createAudioInfoToast(){const e=document.createElement("div");e.id="play-audio-info",Object.assign(e.style,{position:"absolute",top:0,width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",background:"white",zIndex:"1000",cursor:"pointer"});const t=document.createElement("img");return t.src=pb.EnableAudioAutoplayImage,t.alt="Click anywhere to enable audio autoplay",t.width=500,t.height=300,e.appendChild(t),e}connectedCallback(){this._initMathObserver(),this._rerender();new MutationObserver((e,t)=>{e.forEach(e=>{if("childList"===e.type){if(this._audioInitialized)return;const e=this.querySelector("audio"),n=e&&e.closest("#preview-prompt");if(!this._model)return;if(!this._model.autoplayAudioEnabled)return;if(e&&!n)return;if(!e)return;const r=this._createAudioInfoToast(),o=this.querySelector("#main-container"),i=()=>{this.querySelector("#play-audio-info")&&(e.play(),o.removeChild(r)),document.removeEventListener("click",i)};setTimeout(()=>{e.paused&&!this.querySelector("#play-audio-info")?(o.appendChild(r),document.addEventListener("click",i)):document.removeEventListener("click",i)},500);const a=()=>{(0,fb.updateSessionMetadata)(this._session,{audioStartTime:(new Date).getTime()});const t=this.querySelector("#play-audio-info");t&&o.removeChild(t),e.removeEventListener("playing",a)};e.addEventListener("playing",a);const s=()=>{(0,fb.updateSessionMetadata)(this._session,{audioEndTime:(new Date).getTime()}),this.audioComplete=!0,this._dispatchResponseChanged(),e.removeEventListener("ended",s)};e.addEventListener("ended",s),this._audio=e,this._handlePlaying=a,this._handleEnded=s,this._enableAudio=i,this._audioInitialized=!0,t.disconnect()}})}).observe(this,{childList:!0,subtree:!0})}enableKeyboardEvents(){this._keyboardEventsEnabled||(window.addEventListener("keydown",this._boundHandleKeyDown),this._keyboardEventsEnabled=!0)}disconnectedCallback(){this._disconnectMathObserver(),this._keyboardEventsEnabled&&(window.removeEventListener("keydown",this._boundHandleKeyDown),this._keyboardEventsEnabled=!1),document.removeEventListener("click",this._enableAudio),this._audio&&(this._audio.removeEventListener("playing",this._handlePlaying),this._audio.removeEventListener("ended",this._handleEnded),this._audio=null),this._root&&this._root.unmount()}handleKeyDown(e){if(!this._model||!this._session)return;const{mode:t}=this._model;if("gather"!==t)return;const n=(e=>{const t=e>="1"&&e<="9"?e-"1":"0"===e?9:-1,n=/^[a-jA-J]$/.test(e)?e.toLowerCase().charCodeAt(0)-"a".charCodeAt(0):-1;return t>=0?t:n})(e.key);if(void 0===n||n<=-1||n>=function(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=i(n)):"call"!==o&&"optionalCall"!==o||(n=i((...e)=>n.call(t,...e)),t=void 0)}return n}([this,"access",e=>e._model,"access",e=>e.choices,"optionalAccess",e=>e.length]))return;const r=this._session.value||[],o=this._model.choices[n].value,i={value:o,selected:!r.includes(o),selector:"Keyboard"};this._onChange(i)}}var mb=Yh.default=vb;const yb=l,bb="ebsr-multiple-choice",_b=Gy.TYPE,{translator:xb}=Gg,wb=yb("pie-element:ebsr:print"),Sb=(e,t)=>{const n="instructor"===t.role,r=vi(e);return r.prompt=!1!==r.promptEnabled?r.prompt:void 0,r.teacherInstructions=n&&!1!==r.teacherInstructionsEnabled?r.teacherInstructions:void 0,r.showTeacherInstructions=n,r.alwaysShowCorrect=n,r.mode=n?"evaluate":"gather",r.disabled=!0,r.animationsDisabled=!0,r.lockChoiceOrder=!0,r.choicesLayout=r.choicesLayout||"vertical",r.choices=(r.choices||[]).map(e=>(e.rationale=n&&!1!==r.rationaleEnabled?e.rationale:void 0,e.hideTick=n,e.feedback=void 0,e)),r.keyMode=r.choicePrefix||"letters",r};class Eb extends mb{}customElements.get(bb)||customElements.define(bb,Eb);const kb=e=>Array.isArray(e)&&e.length>0,Cb=e=>{const t=In(e,"value.partA.value"),n=In(e,"value.partB.value");return kb(t)&&kb(n)};class Ob extends HTMLElement{constructor(){super(),Ob.prototype.__init.call(this),this._model={},this._session={},this._options=null}__init(){this.onSessionUpdated=e=>{if(e.target===this)return;e.preventDefault(),e.stopImmediatePropagation();const t=e.target.getAttribute("id");if(t){const n=`part${t.toUpperCase()}`;e.update&&(this._model[n]=e.update),this.dispatchSessionChanged(e.srcElement._session,n)}}}set model(e){this._model=e,this._updateParts()}set session(e){this._session=e,customElements.whenDefined(bb).then(()=>{this.setPartSession(this.partA,"partA"),this.setPartSession(this.partB,"partB")})}_updateParts(){customElements.whenDefined(bb).then(()=>{this.setPartModel(this.partA,"partA"),this.setPartModel(this.partB,"partB")})}setPartModel(e,t){if(this._model&&this._model[t]&&e&&this._options){let n={partA:void 0,partB:void 0};if(this._model.partLabels){const e=this._model.language;n={partA:xb.t("ebsr.part",{lng:e,index:"Letters"===this._model.partLabelType?"A":"1"}),partB:xb.t("ebsr.part",{lng:e,index:"Letters"===this._model.partLabelType?"B":"2"})}}e.model={...Sb(this._model[t],this._options),keyMode:this._model[t].choicePrefix,partLabel:n[t]},e.options=this._options,e._session||(e.session={})}}set options(e){this._options=e,this._updateParts()}setPartSession(e,t){if(this._session&&this._model&&e){const{value:n}=this._session;e.session=n&&n[t]?n[t]:{id:t}}}dispatchSessionChanged(e,t){this._session.value={...this._session.value,[t]:e},wb("[onSessionChanged] session: ",this._session);const n=Cb(this._session);this.dispatchEvent(new Gy(this.tagName.toLowerCase(),n))}get partA(){return this.querySelector(`${bb}#a`)}get partB(){return this.querySelector(`${bb}#b`)}connectedCallback(){this._render(),this.addEventListener(_b,this.onSessionUpdated)}disconnectedCallback(){this.removeEventListener(_b,this.onSessionUpdated)}_render(){this.innerHTML=`\n <div>\n <${bb} id="a"></${bb}>\n <${bb} id="b"></${bb}>\n </div>\n `}}export{Ob as default,Cb as isSessionComplete};
|