@pie-element/ebsr 13.2.0-next.6 → 13.2.0-next.7

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.
@@ -0,0 +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&&gt(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&&gt(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({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),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({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),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={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};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)}px`}})),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};
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@pie-element/ebsr",
3
3
  "repository": "pie-framework/pie-elements",
4
- "version": "13.2.0-next.6",
4
+ "version": "13.2.0-next.7",
5
5
  "description": "",
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },
9
9
  "dependencies": {
10
- "@pie-element/multiple-choice": "^12.2.0-next.6",
10
+ "@pie-element/multiple-choice": "^12.2.0-next.7",
11
11
  "@pie-framework/pie-player-events": "^0.1.0",
12
12
  "@pie-lib/translator": "3.2.0-next.3",
13
13
  "classnames": "^2.2.5",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "author": "pie framework developers",
18
18
  "license": "ISC",
19
- "gitHead": "8ab147d04d240a5b4bf690ba41ab737726adcb6f",
19
+ "gitHead": "e9c9eb021e31f961170c60e147b17fc6a9f56957",
20
20
  "scripts": {
21
21
  "postpublish": "../../scripts/postpublish"
22
22
  },