@pie-element/explicit-constructed-response 11.1.11 → 11.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/configure/CHANGELOG.md +10 -0
- package/configure/lib/alternateSection.js +4 -4
- package/configure/lib/alternateSection.js.map +1 -1
- package/configure/package.json +3 -3
- package/module/configure.js +1 -1
- package/module/element.js +1 -1
- package/module/index.html +1 -1
- package/module/manifest.json +4 -4
- package/module/print.html +1 -1
- package/module/print.js +1 -1
- package/package.json +5 -5
package/module/configure.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_dll_react as e,_dll_prop_types as t,_dll_mui__material_styles as n,_dll_mui__material as r,_dll_mui__icons_material as o,_dll_debug as i,_dll_react_dom_client as a}from"../../../@pie-lib/shared-module@^5.2.14/module/index.js";import{_dll_pie_lib__editable_html_tip_tap as u}from"../../../@pie-lib/editable-html-module@^7.1.16/module/index.js";import{_dll_pie_lib__config_ui as l}from"../../../@pie-lib/config-module@^4.0.19/module/index.js";function s(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var c={},f={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(f),s(f.exports);var p={exports:{}},d={exports:{}},h={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}(h),s(h.exports);var v={exports:{}};!function(e){var t=h.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}(v),s(v.exports),function(e){var t=h.exports.default,n=v.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}(d),s(d.exports),function(e){var t=d.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}(p),s(p.exports);var g="object"==typeof global&&global&&global.Object===Object&&global,y="object"==typeof self&&self&&self.Object===Object&&self,m=g||y||Function("return this")(),_=m.Symbol,b=Object.prototype,x=b.hasOwnProperty,C=b.toString,j=_?_.toStringTag:void 0,w=Object.prototype.toString,E=_?_.toStringTag:void 0;function A(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":E&&E in Object(e)?function(e){var t=x.call(e,j),n=e[j];try{e[j]=void 0;var r=!0}catch(e){}var o=C.call(e);return r&&(t?e[j]=n:delete e[j]),o}(e):function(e){return w.call(e)}(e)}function O(e){return null!=e&&"object"==typeof e}function S(e){return"symbol"==typeof e||O(e)&&"[object Symbol]"==A(e)}function M(e){return"number"==typeof e?e:S(e)?NaN:+e}function I(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,P=_?_.prototype:void 0,R=P?P.toString:void 0;function L(e){if("string"==typeof e)return e;if(k(e))return I(e,L)+"";if(S(e))return R?R.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function W(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=L(n),r=L(r)):(n=M(n),r=M(r)),o=e(n,r)}return o}}var B=W(function(e,t){return e+t},0),T=/\s/;function D(e){for(var t=e.length;t--&&T.test(e.charAt(t)););return t}var z=/^\s+/;function q(e){return e?e.slice(0,D(e)+1).replace(z,""):e}function N(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var U=/^[-+]0x[0-9a-f]+$/i,F=/^0b[01]+$/i,$=/^0o[0-7]+$/i,H=parseInt;function K(e){if("number"==typeof e)return e;if(S(e))return NaN;if(N(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=N(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=q(e);var n=F.test(e);return n||$.test(e)?H(e.slice(2),n?2:8):U.test(e)?NaN:+e}var V=1/0;function Y(e){return e?(e=K(e))===V||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function Z(e){var t=Y(e),n=t%1;return t==t?n?t-n:t:0}function G(e,t){if("function"!=typeof t)throw new TypeError("Expected a function");return e=Z(e),function(){if(--e<1)return t.apply(this,arguments)}}function J(e){return e}function Q(e){if(!N(e))return!1;var t=A(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var X,ee=m["__core-js_shared__"],te=(X=/[^.]+$/.exec(ee&&ee.keys&&ee.keys.IE_PROTO||""))?"Symbol(src)_1."+X:"",ne=Function.prototype.toString;function re(e){if(null!=e){try{return ne.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var oe=/^\[object .+?Constructor\]$/,ie=Function.prototype,ae=Object.prototype,ue=ie.toString,le=ae.hasOwnProperty,se=RegExp("^"+ue.call(le).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ce(e){return!(!N(e)||function(e){return!!te&&te in e}(e))&&(Q(e)?se:oe).test(re(e))}function fe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return ce(n)?n:void 0}var pe=fe(m,"WeakMap"),de=pe&&new pe,he=de?function(e,t){return de.set(e,t),e}:J,ve=he,ge=Object.create,ye=function(){function e(){}return function(t){if(!N(t))return{};if(ge)return ge(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),me=ye;function _e(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=me(e.prototype),r=e.apply(n,t);return N(r)?r:n}}function be(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 xe=Math.max;function Ce(e,t,n,r){for(var o=-1,i=e.length,a=n.length,u=-1,l=t.length,s=xe(i-a,0),c=Array(l+s),f=!r;++u<l;)c[u]=t[u];for(;++o<a;)(f||o<i)&&(c[n[o]]=e[o]);for(;s--;)c[u++]=e[o++];return c}var je=Math.max;function we(e,t,n,r){for(var o=-1,i=e.length,a=-1,u=n.length,l=-1,s=t.length,c=je(i-u,0),f=Array(c+s),p=!r;++o<c;)f[o]=e[o];for(var d=o;++l<s;)f[d+l]=t[l];for(;++a<u;)(p||o<i)&&(f[d+n[a]]=e[o++]);return f}function Ee(){}function Ae(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Oe(){}Ae.prototype=me(Ee.prototype),Ae.prototype.constructor=Ae;var Se=de?function(e){return de.get(e)}:Oe,Me=Se,Ie={},ke=Object.prototype.hasOwnProperty;function Pe(e){for(var t=e.name+"",n=Ie[t],r=ke.call(Ie,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function Re(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Le(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function We(e){if(e instanceof Ae)return e.clone();var t=new Re(e.__wrapped__,e.__chain__);return t.__actions__=Le(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}Re.prototype=me(Ee.prototype),Re.prototype.constructor=Re;var Be=Object.prototype.hasOwnProperty;function Te(e){if(O(e)&&!k(e)&&!(e instanceof Ae)){if(e instanceof Re)return e;if(Be.call(e,"__wrapped__"))return We(e)}return new Re(e)}function De(e){var t=Pe(e),n=Te[t];if("function"!=typeof n||!(t in Ae.prototype))return!1;if(e===n)return!0;var r=Me(n);return!!r&&e===r[0]}Te.prototype=Ee.prototype,Te.prototype.constructor=Te;var ze=Date.now;function qe(e){var t=0,n=0;return function(){var r=ze(),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 Ne=qe(ve),Ue=/\{\n\/\* \[wrapped with (.+)\] \*/,Fe=/,? & /,$e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function He(e){return function(){return e}}var Ke=function(){try{var e=fe(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Ve=Ke,Ye=Ve?function(e,t){return Ve(e,"toString",{configurable:!0,enumerable:!1,value:He(t),writable:!0})}:J,Ze=qe(Ye);function Ge(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Je(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 Qe(e){return e!=e}function Xe(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):Je(e,Qe,n)}function et(e,t){return!(null==e||!e.length)&&Xe(e,t,0)>-1}var tt=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function nt(e,t,n){var r=t+"";return Ze(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 Ge(tt,function(n){var r="_."+n[0];t&n[1]&&!et(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Ue);return t?t[1].split(Fe):[]}(r),n)))}function rt(e,t,n,r,o,i,a,u,l,s){var c=8&t;t|=c?32:64,4&(t&=~(c?64:32))||(t&=-4);var f=[e,t,o,c?i:void 0,c?a:void 0,c?void 0:i,c?void 0:a,u,l,s],p=n.apply(void 0,f);return De(e)&&Ne(p,f),p.placeholder=r,nt(p,e,t)}function ot(e){return e.placeholder}var it=/^(?:0|[1-9]\d*)$/;function at(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&it.test(e))&&e>-1&&e%1==0&&e<t}var ut=Math.min,lt="__lodash_placeholder__";function st(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==lt||(e[n]=lt,i[o++]=n)}return i}function ct(e,t,n,r,o,i,a,u,l,s){var c=128&t,f=1&t,p=2&t,d=24&t,h=512&t,v=p?void 0:_e(e);return function g(){for(var y=arguments.length,_=Array(y),b=y;b--;)_[b]=arguments[b];if(d)var x=ot(g),C=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(_,x);if(r&&(_=Ce(_,r,o,d)),i&&(_=we(_,i,a,d)),y-=C,d&&y<s){var j=st(_,x);return rt(e,t,ct,g.placeholder,n,_,j,u,l,s-y)}var w=f?n:this,E=p?w[e]:e;return y=_.length,u?_=function(e,t){for(var n=e.length,r=ut(t.length,n),o=Le(e);r--;){var i=t[r];e[r]=at(i,n)?o[i]:void 0}return e}(_,u):h&&y>1&&_.reverse(),c&&l<y&&(_.length=l),this&&this!==m&&this instanceof g&&(E=v||_e(E)),E.apply(w,_)}}var ft="__lodash_placeholder__",pt=Math.min,dt=Math.max;function ht(e,t,n,r,o,i,a,u){var l=2&t;if(!l&&"function"!=typeof e)throw new TypeError("Expected a function");var s=r?r.length:0;if(s||(t&=-97,r=o=void 0),a=void 0===a?a:dt(Z(a),0),u=void 0===u?u:Z(u),s-=o?o.length:0,64&t){var c=r,f=o;r=o=void 0}var p=l?void 0:Me(e),d=[e,t,n,r,o,c,f,i,a,u];if(p&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=128==r&&8==n||128==r&&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 u=t[3];if(u){var l=e[3];e[3]=l?Ce(l,u,t[4]):u,e[4]=l?st(e[3],ft):t[4]}(u=t[5])&&(l=e[5],e[5]=l?we(l,u,t[6]):u,e[6]=l?st(e[5],ft):t[6]),(u=t[7])&&(e[7]=u),128&r&&(e[8]=null==e[8]?t[8]:pt(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(d,p),e=d[0],t=d[1],n=d[2],r=d[3],o=d[4],!(u=d[9]=void 0===d[9]?l?0:e.length:dt(d[9]-s,0))&&24&t&&(t&=-25),t&&1!=t)h=8==t||16==t?function(e,t,n){var r=_e(e);return function o(){for(var i=arguments.length,a=Array(i),u=i,l=ot(o);u--;)a[u]=arguments[u];var s=i<3&&a[0]!==l&&a[i-1]!==l?[]:st(a,l);return(i-=s.length)<n?rt(e,t,ct,o.placeholder,void 0,a,s,void 0,void 0,n-i):be(this&&this!==m&&this instanceof o?r:e,this,a)}}(e,t,u):32!=t&&33!=t||o.length?ct.apply(void 0,d):function(e,t,n,r){var o=1&t,i=_e(e);return function t(){for(var a=-1,u=arguments.length,l=-1,s=r.length,c=Array(s+u),f=this&&this!==m&&this instanceof t?i:e;++l<s;)c[l]=r[l];for(;u--;)c[l++]=arguments[++a];return be(f,o?n:this,c)}}(e,t,n,r);else var h=function(e,t,n){var r=1&t,o=_e(e);return function t(){return(this&&this!==m&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return nt((p?ve:Ne)(h,d),e,t)}function vt(e,t,n){return t=n?void 0:t,ht(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function gt(e,t,n){"__proto__"==t&&Ve?Ve(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function yt(e,t){return e===t||e!=e&&t!=t}var mt=Object.prototype.hasOwnProperty;function _t(e,t,n){var r=e[t];mt.call(e,t)&&yt(r,n)&&(void 0!==n||t in e)||gt(e,t,n)}function bt(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var u=t[i],l=r?r(n[u],e[u],u,n,e):void 0;void 0===l&&(l=e[u]),o?gt(n,u,l):_t(n,u,l)}return n}var xt=Math.max;function Ct(e,t,n){return t=xt(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=xt(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var u=Array(t+1);++o<t;)u[o]=r[o];return u[t]=n(a),be(e,this,u)}}function jt(e,t){return Ze(Ct(e,t,J),e+"")}function wt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Et(e){return null!=e&&wt(e.length)&&!Q(e)}function At(e,t,n){if(!N(n))return!1;var r=typeof t;return!!("number"==r?Et(n)&&at(t,n.length):"string"==r&&t in n)&&yt(n[t],e)}function Ot(e){return jt(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&&At(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var u=n[r];u&&e(t,u,r,i)}return t})}var St=Object.prototype;function Mt(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||St)}function It(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function kt(e){return O(e)&&"[object Arguments]"==A(e)}var Pt=Object.prototype,Rt=Pt.hasOwnProperty,Lt=Pt.propertyIsEnumerable,Wt=kt(function(){return arguments}())?kt:function(e){return O(e)&&Rt.call(e,"callee")&&!Lt.call(e,"callee")};function Bt(){return!1}var Tt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Dt=Tt&&"object"==typeof module&&module&&!module.nodeType&&module,zt=Dt&&Dt.exports===Tt?m.Buffer:void 0,qt=(zt?zt.isBuffer:void 0)||Bt,Nt={};function Ut(e){return function(t){return e(t)}}Nt["[object Float32Array]"]=Nt["[object Float64Array]"]=Nt["[object Int8Array]"]=Nt["[object Int16Array]"]=Nt["[object Int32Array]"]=Nt["[object Uint8Array]"]=Nt["[object Uint8ClampedArray]"]=Nt["[object Uint16Array]"]=Nt["[object Uint32Array]"]=!0,Nt["[object Arguments]"]=Nt["[object Array]"]=Nt["[object ArrayBuffer]"]=Nt["[object Boolean]"]=Nt["[object DataView]"]=Nt["[object Date]"]=Nt["[object Error]"]=Nt["[object Function]"]=Nt["[object Map]"]=Nt["[object Number]"]=Nt["[object Object]"]=Nt["[object RegExp]"]=Nt["[object Set]"]=Nt["[object String]"]=Nt["[object WeakMap]"]=!1;var Ft="object"==typeof exports&&exports&&!exports.nodeType&&exports,$t=Ft&&"object"==typeof module&&module&&!module.nodeType&&module,Ht=$t&&$t.exports===Ft&&g.process,Kt=function(){try{return $t&&$t.require&&$t.require("util").types||Ht&&Ht.binding&&Ht.binding("util")}catch(e){}}(),Vt=Kt&&Kt.isTypedArray,Yt=Vt?Ut(Vt):function(e){return O(e)&&wt(e.length)&&!!Nt[A(e)]},Zt=Object.prototype.hasOwnProperty;function Gt(e,t){var n=k(e),r=!n&&Wt(e),o=!n&&!r&&qt(e),i=!n&&!r&&!o&&Yt(e),a=n||r||o||i,u=a?It(e.length,String):[],l=u.length;for(var s in e)!t&&!Zt.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||at(s,l))||u.push(s);return u}function Jt(e,t){return function(n){return e(t(n))}}var Qt=Jt(Object.keys,Object),Xt=Object.prototype.hasOwnProperty;function en(e){if(!Mt(e))return Qt(e);var t=[];for(var n in Object(e))Xt.call(e,n)&&"constructor"!=n&&t.push(n);return t}function tn(e){return Et(e)?Gt(e):en(e)}var nn=Object.prototype.hasOwnProperty,rn=Ot(function(e,t){if(Mt(t)||Et(t))bt(t,tn(t),e);else for(var n in t)nn.call(t,n)&&_t(e,n,t[n])}),on=rn,an=Object.prototype.hasOwnProperty;function un(e){return Et(e)?Gt(e,!0):function(e){if(!N(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=Mt(e),n=[];for(var r in e)("constructor"!=r||!t&&an.call(e,r))&&n.push(r);return n}(e)}var ln=Ot(function(e,t){bt(t,un(t),e)}),sn=ln,cn=Ot(function(e,t,n,r){bt(t,un(t),e,r)}),fn=cn,pn=Ot(function(e,t,n,r){bt(t,tn(t),e,r)}),dn=pn,hn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vn=/^\w*$/;function gn(e,t){if(k(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!S(e))||vn.test(e)||!hn.test(e)||null!=t&&e in Object(t)}var yn=fe(Object,"create"),mn=Object.prototype.hasOwnProperty,_n=Object.prototype.hasOwnProperty;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])}}function xn(e,t){for(var n=e.length;n--;)if(yt(e[n][0],t))return n;return-1}bn.prototype.clear=function(){this.__data__=yn?yn(null):{},this.size=0},bn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},bn.prototype.get=function(e){var t=this.__data__;if(yn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return mn.call(t,e)?t[e]:void 0},bn.prototype.has=function(e){var t=this.__data__;return yn?void 0!==t[e]:_n.call(t,e)},bn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=yn&&void 0===t?"__lodash_hash_undefined__":t,this};var Cn=Array.prototype.splice;function jn(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])}}jn.prototype.clear=function(){this.__data__=[],this.size=0},jn.prototype.delete=function(e){var t=this.__data__,n=xn(t,e);return!(n<0||(n==t.length-1?t.pop():Cn.call(t,n,1),--this.size,0))},jn.prototype.get=function(e){var t=this.__data__,n=xn(t,e);return n<0?void 0:t[n][1]},jn.prototype.has=function(e){return xn(this.__data__,e)>-1},jn.prototype.set=function(e,t){var n=this.__data__,r=xn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var wn=fe(m,"Map");function En(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 An(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 On(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(On.Cache||An),n}An.prototype.clear=function(){this.size=0,this.__data__={hash:new bn,map:new(wn||jn),string:new bn}},An.prototype.delete=function(e){var t=En(this,e).delete(e);return this.size-=t?1:0,t},An.prototype.get=function(e){return En(this,e).get(e)},An.prototype.has=function(e){return En(this,e).has(e)},An.prototype.set=function(e,t){var n=En(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},On.Cache=An;var Sn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mn=/\\(\\)?/g,In=function(){var e=On(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Sn,function(e,n,r,o){t.push(r?o.replace(Mn,"$1"):n||e)}),t},function(e){return 500===t.size&&t.clear(),e}),t=e.cache;return e}(),kn=In;function Pn(e){return null==e?"":L(e)}function Rn(e,t){return k(e)?e:gn(e,t)?[e]:kn(Pn(e))}function Ln(e){if("string"==typeof e||S(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Wn(e,t){for(var n=0,r=(t=Rn(t,e)).length;null!=e&&n<r;)e=e[Ln(t[n++])];return n&&n==r?e:void 0}function Bn(e,t,n){var r=null==e?void 0:Wn(e,t);return void 0===r?n:r}function Tn(e,t){for(var n=-1,r=t.length,o=Array(r),i=null==e;++n<r;)o[n]=i?void 0:Bn(e,t[n]);return o}function Dn(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var zn=_?_.isConcatSpreadable:void 0;function qn(e){return k(e)||Wt(e)||!!(zn&&e&&e[zn])}function Nn(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=qn),o||(o=[]);++i<a;){var u=e[i];t>0&&n(u)?t>1?Nn(u,t-1,n,r,o):Dn(o,u):r||(o[o.length]=u)}return o}function Un(e){return null!=e&&e.length?Nn(e,1):[]}function Fn(e){return Ze(Ct(e,void 0,Un),e+"")}var $n=Fn(Tn),Hn=Jt(Object.getPrototypeOf,Object),Kn=Function.prototype,Vn=Object.prototype,Yn=Kn.toString,Zn=Vn.hasOwnProperty,Gn=Yn.call(Object);function Jn(e){if(!O(e)||"[object Object]"!=A(e))return!1;var t=Hn(e);if(null===t)return!0;var n=Zn.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Yn.call(n)==Gn}function Qn(e){if(!O(e))return!1;var t=A(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Jn(e)}var Xn=jt(function(e,t){try{return be(e,void 0,t)}catch(e){return Qn(e)?e:new Error(e)}}),er=Xn;function tr(e,t){var n;if("function"!=typeof t)throw new TypeError("Expected a function");return e=Z(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var nr=jt(function(e,t,n){var r=1;if(n.length){var o=st(n,ot(nr));r|=32}return ht(e,r,t,n,o)});nr.placeholder={};var rr=nr,or=Fn(function(e,t){return Ge(t,function(t){t=Ln(t),gt(e,t,rr(e[t],e))}),e}),ir=or,ar=jt(function(e,t,n){var r=3;if(n.length){var o=st(n,ot(ar));r|=32}return ht(t,r,e,n,o)});ar.placeholder={};var ur=ar;function lr(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 sr(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:lr(e,t,n)}var cr=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function fr(e){return cr.test(e)}var pr="\\ud800-\\udfff",dr="["+pr+"]",hr="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",vr="\\ud83c[\\udffb-\\udfff]",gr="[^"+pr+"]",yr="(?:\\ud83c[\\udde6-\\uddff]){2}",mr="[\\ud800-\\udbff][\\udc00-\\udfff]",_r="(?:"+hr+"|"+vr+")?",br="[\\ufe0e\\ufe0f]?",xr=br+_r+"(?:\\u200d(?:"+[gr,yr,mr].join("|")+")"+br+_r+")*",Cr="(?:"+[gr+hr+"?",hr,yr,mr,dr].join("|")+")",jr=RegExp(vr+"(?="+vr+")|"+Cr+xr,"g");function wr(e){return fr(e)?function(e){return e.match(jr)||[]}(e):function(e){return e.split("")}(e)}function Er(e){return function(t){var n=fr(t=Pn(t))?wr(t):void 0,r=n?n[0]:t.charAt(0),o=n?sr(n,1).join(""):t.slice(1);return r[e]()+o}}var Ar=Er("toUpperCase");function Or(e){return Ar(Pn(e).toLowerCase())}function Sr(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 Mr(e){return function(t){return null==e?void 0:e[t]}}var Ir=Mr({"À":"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"}),kr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Pr=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");function Rr(e){return(e=Pn(e))&&e.replace(kr,Ir).replace(Pr,"")}var Lr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Wr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Br="\\ud800-\\udfff",Tr="\\u2700-\\u27bf",Dr="a-z\\xdf-\\xf6\\xf8-\\xff",zr="A-Z\\xc0-\\xd6\\xd8-\\xde",qr="\\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",Nr="["+qr+"]",Ur="\\d+",Fr="["+Tr+"]",$r="["+Dr+"]",Hr="[^"+Br+qr+Ur+Tr+Dr+zr+"]",Kr="(?:\\ud83c[\\udde6-\\uddff]){2}",Vr="[\\ud800-\\udbff][\\udc00-\\udfff]",Yr="["+zr+"]",Zr="(?:"+$r+"|"+Hr+")",Gr="(?:"+Yr+"|"+Hr+")",Jr="(?:['’](?:d|ll|m|re|s|t|ve))?",Qr="(?:['’](?:D|LL|M|RE|S|T|VE))?",Xr="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",eo="[\\ufe0e\\ufe0f]?",to=eo+Xr+"(?:\\u200d(?:"+["[^"+Br+"]",Kr,Vr].join("|")+")"+eo+Xr+")*",no="(?:"+[Fr,Kr,Vr].join("|")+")"+to,ro=RegExp([Yr+"?"+$r+"+"+Jr+"(?="+[Nr,Yr,"$"].join("|")+")",Gr+"+"+Qr+"(?="+[Nr,Yr+Zr,"$"].join("|")+")",Yr+"?"+Zr+"+"+Jr,Yr+"+"+Qr,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ur,no].join("|"),"g");function oo(e,t,n){return e=Pn(e),void 0===(t=n?void 0:t)?function(e){return Wr.test(e)}(e)?function(e){return e.match(ro)||[]}(e):function(e){return e.match(Lr)||[]}(e):e.match(t)||[]}var io=RegExp("['’]","g");function ao(e){return function(t){return Sr(oo(Rr(t).replace(io,"")),e,"")}}var uo=ao(function(e,t,n){return t=t.toLowerCase(),e+(n?Or(t):t)}),lo=uo;function so(){if(!arguments.length)return[];var e=arguments[0];return k(e)?e:[e]}var co=m.isFinite,fo=Math.min;function po(e){var t=Math[e];return function(e,n){if(e=K(e),(n=null==n?0:fo(Z(n),292))&&co(e)){var r=(Pn(e)+"e").split("e");return+((r=(Pn(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var ho=po("ceil");function vo(e){var t=Te(e);return t.__chain__=!0,t}var go=Math.ceil,yo=Math.max;function mo(e,t,n){t=(n?At(e,t,n):void 0===t)?1:yo(Z(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=Array(go(r/t));o<r;)a[i++]=lr(e,o,o+=t);return a}function _o(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function bo(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=K(n))==n?n:0),void 0!==t&&(t=(t=K(t))==t?t:0),_o(K(e),t,n)}function xo(e){var t=this.__data__=new jn(e);this.size=t.size}function Co(e,t){return e&&bt(t,tn(t),e)}xo.prototype.clear=function(){this.__data__=new jn,this.size=0},xo.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},xo.prototype.get=function(e){return this.__data__.get(e)},xo.prototype.has=function(e){return this.__data__.has(e)},xo.prototype.set=function(e,t){var n=this.__data__;if(n instanceof jn){var r=n.__data__;if(!wn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new An(r)}return n.set(e,t),this.size=n.size,this};var jo="object"==typeof exports&&exports&&!exports.nodeType&&exports,wo=jo&&"object"==typeof module&&module&&!module.nodeType&&module,Eo=wo&&wo.exports===jo?m.Buffer:void 0,Ao=Eo?Eo.allocUnsafe:void 0;function Oo(e,t){if(t)return e.slice();var n=e.length,r=Ao?Ao(n):new e.constructor(n);return e.copy(r),r}function So(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 Mo(){return[]}var Io=Object.prototype.propertyIsEnumerable,ko=Object.getOwnPropertySymbols,Po=ko?function(e){return null==e?[]:(e=Object(e),So(ko(e),function(t){return Io.call(e,t)}))}:Mo,Ro=Po,Lo=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Dn(t,Ro(e)),e=Hn(e);return t}:Mo,Wo=Lo;function Bo(e,t,n){var r=t(e);return k(e)?r:Dn(r,n(e))}function To(e){return Bo(e,tn,Ro)}function Do(e){return Bo(e,un,Wo)}var zo=fe(m,"DataView"),qo=fe(m,"Promise"),No=fe(m,"Set"),Uo="[object Map]",Fo="[object Promise]",$o="[object Set]",Ho="[object WeakMap]",Ko="[object DataView]",Vo=re(zo),Yo=re(wn),Zo=re(qo),Go=re(No),Jo=re(pe),Qo=A;(zo&&Qo(new zo(new ArrayBuffer(1)))!=Ko||wn&&Qo(new wn)!=Uo||qo&&Qo(qo.resolve())!=Fo||No&&Qo(new No)!=$o||pe&&Qo(new pe)!=Ho)&&(Qo=function(e){var t=A(e),n="[object Object]"==t?e.constructor:void 0,r=n?re(n):"";if(r)switch(r){case Vo:return Ko;case Yo:return Uo;case Zo:return Fo;case Go:return $o;case Jo:return Ho}return t});var Xo=Qo,ei=Object.prototype.hasOwnProperty,ti=m.Uint8Array;function ni(e){var t=new e.constructor(e.byteLength);return new ti(t).set(new ti(e)),t}var ri=/\w*$/,oi=_?_.prototype:void 0,ii=oi?oi.valueOf:void 0;function ai(e,t){var n=t?ni(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ui(e){return"function"!=typeof e.constructor||Mt(e)?{}:me(Hn(e))}var li=Kt&&Kt.isMap,si=li?Ut(li):function(e){return O(e)&&"[object Map]"==Xo(e)},ci=Kt&&Kt.isSet,fi=ci?Ut(ci):function(e){return O(e)&&"[object Set]"==Xo(e)},pi="[object Arguments]",di="[object Function]",hi="[object Object]",vi={};function gi(e,t,n,r,o,i){var a,u=1&t,l=2&t,s=4&t;if(n&&(a=o?n(e,r,o,i):n(e)),void 0!==a)return a;if(!N(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]&&ei.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return Le(e,a)}else{var f=Xo(e),p=f==di||"[object GeneratorFunction]"==f;if(qt(e))return Oo(e,u);if(f==hi||f==pi||p&&!o){if(a=l||p?{}:ui(e),!u)return l?function(e,t){return bt(e,Wo(e),t)}(e,function(e,t){return e&&bt(t,un(t),e)}(a,e)):function(e,t){return bt(e,Ro(e),t)}(e,Co(a,e))}else{if(!vi[f])return o?e:{};a=function(e,t,n){var r,o=e.constructor;switch(t){case"[object ArrayBuffer]":return ni(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return function(e,t){var n=t?ni(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 ai(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,ri.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Symbol]":return r=e,ii?Object(ii.call(r)):{}}}(e,f,u)}}i||(i=new xo);var d=i.get(e);if(d)return d;i.set(e,a),fi(e)?e.forEach(function(r){a.add(gi(r,t,n,r,e,i))}):si(e)&&e.forEach(function(r,o){a.set(o,gi(r,t,n,o,e,i))});var h=c?void 0:(s?l?Do:To:l?un:tn)(e);return Ge(h||e,function(r,o){h&&(r=e[o=r]),_t(a,o,gi(r,t,n,o,e,i))}),a}function yi(e){return gi(e,4)}function mi(e){return gi(e,5)}function _i(e,t){return gi(e,5,t="function"==typeof t?t:void 0)}function bi(e,t){return gi(e,4,t="function"==typeof t?t:void 0)}function xi(){return new Re(this.value(),this.__chain__)}function Ci(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 ji(){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 Dn(k(n)?Le(n):[n],Nn(t,1))}function wi(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new An;++t<n;)this.add(e[t])}function Ei(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 Ai(e,t){return e.has(t)}function Oi(e,t,n,r,o,i){var a=1&n,u=e.length,l=t.length;if(u!=l&&!(a&&l>u))return!1;var s=i.get(e),c=i.get(t);if(s&&c)return s==t&&c==e;var f=-1,p=!0,d=2&n?new wi:void 0;for(i.set(e,t),i.set(t,e);++f<u;){var h=e[f],v=t[f];if(r)var g=a?r(v,h,f,t,e,i):r(h,v,f,e,t,i);if(void 0!==g){if(g)continue;p=!1;break}if(d){if(!Ei(t,function(e,t){if(!Ai(d,t)&&(h===e||o(h,e,n,r,i)))return d.push(t)})){p=!1;break}}else if(h!==v&&!o(h,v,n,r,i)){p=!1;break}}return i.delete(e),i.delete(t),p}function Si(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Mi(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}vi[pi]=vi["[object Array]"]=vi["[object ArrayBuffer]"]=vi["[object DataView]"]=vi["[object Boolean]"]=vi["[object Date]"]=vi["[object Float32Array]"]=vi["[object Float64Array]"]=vi["[object Int8Array]"]=vi["[object Int16Array]"]=vi["[object Int32Array]"]=vi["[object Map]"]=vi["[object Number]"]=vi[hi]=vi["[object RegExp]"]=vi["[object Set]"]=vi["[object String]"]=vi["[object Symbol]"]=vi["[object Uint8Array]"]=vi["[object Uint8ClampedArray]"]=vi["[object Uint16Array]"]=vi["[object Uint32Array]"]=!0,vi["[object Error]"]=vi[di]=vi["[object WeakMap]"]=!1,wi.prototype.add=wi.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},wi.prototype.has=function(e){return this.__data__.has(e)};var Ii=_?_.prototype:void 0,ki=Ii?Ii.valueOf:void 0,Pi=Object.prototype.hasOwnProperty,Ri="[object Arguments]",Li="[object Array]",Wi="[object Object]",Bi=Object.prototype.hasOwnProperty;function Ti(e,t,n,r,o){return e===t||(null==e||null==t||!O(e)&&!O(t)?e!=e&&t!=t:function(e,t,n,r,o,i){var a=k(e),u=k(t),l=a?Li:Xo(e),s=u?Li:Xo(t),c=(l=l==Ri?Wi:l)==Wi,f=(s=s==Ri?Wi:s)==Wi,p=l==s;if(p&&qt(e)){if(!qt(t))return!1;a=!0,c=!1}if(p&&!c)return i||(i=new xo),a||Yt(e)?Oi(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 ti(e),new ti(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return yt(+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 u=Si;case"[object Set]":var l=1&r;if(u||(u=Mi),e.size!=t.size&&!l)return!1;var s=a.get(e);if(s)return s==t;r|=2,a.set(e,t);var c=Oi(u(e),u(t),r,o,i,a);return a.delete(e),c;case"[object Symbol]":if(ki)return ki.call(e)==ki.call(t)}return!1}(e,t,l,n,r,o,i);if(!(1&n)){var d=c&&Bi.call(e,"__wrapped__"),h=f&&Bi.call(t,"__wrapped__");if(d||h){var v=d?e.value():e,g=h?t.value():t;return i||(i=new xo),o(v,g,n,r,i)}}return!!p&&(i||(i=new xo),function(e,t,n,r,o,i){var a=1&n,u=To(e),l=u.length;if(l!=To(t).length&&!a)return!1;for(var s=l;s--;){var c=u[s];if(!(a?c in t:Pi.call(t,c)))return!1}var f=i.get(e),p=i.get(t);if(f&&p)return f==t&&p==e;var d=!0;i.set(e,t),i.set(t,e);for(var h=a;++s<l;){var v=e[c=u[s]],g=t[c];if(r)var y=a?r(g,v,c,t,e,i):r(v,g,c,e,t,i);if(!(void 0===y?v===g||o(v,g,n,r,i):y)){d=!1;break}h||(h="constructor"==c)}if(d&&!h){var m=e.constructor,_=t.constructor;m==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof m&&m instanceof m&&"function"==typeof _&&_ instanceof _||(d=!1)}return i.delete(e),i.delete(t),d}(e,t,n,r,o,i))}(e,t,n,r,Ti,o))}function Di(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=Object(e);o--;){var u=n[o];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<i;){var l=(u=n[o])[0],s=e[l],c=u[1];if(a&&u[2]){if(void 0===s&&!(l in e))return!1}else{var f=new xo;if(r)var p=r(s,c,l,e,t,f);if(!(void 0===p?Ti(c,s,3,r,f):p))return!1}}return!0}function zi(e){return e==e&&!N(e)}function qi(e){for(var t=tn(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,zi(o)]}return t}function Ni(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}function Ui(e){var t=qi(e);return 1==t.length&&t[0][2]?Ni(t[0][0],t[0][1]):function(n){return n===e||Di(n,e,t)}}function Fi(e,t){return null!=e&&t in Object(e)}function $i(e,t,n){for(var r=-1,o=(t=Rn(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)&&wt(o)&&at(a,o)&&(k(e)||Wt(e))}function Hi(e,t){return null!=e&&$i(e,t,Fi)}function Ki(e,t){return gn(e)&&zi(t)?Ni(Ln(e),t):function(n){var r=Bn(n,e);return void 0===r&&r===t?Hi(n,e):Ti(t,r,3)}}function Vi(e){return function(t){return null==t?void 0:t[e]}}function Yi(e){return gn(e)?Vi(Ln(e)):function(e){return function(t){return Wn(t,e)}}(e)}function Zi(e){return"function"==typeof e?e:null==e?J:"object"==typeof e?k(e)?Ki(e[0],e[1]):Ui(e):Yi(e)}function Gi(e){var t=null==e?0:e.length,n=Zi;return e=t?I(e,function(e){if("function"!=typeof e[1])throw new TypeError("Expected a function");return[n(e[0]),e[1]]}):[],jt(function(n){for(var r=-1;++r<t;){var o=e[r];if(be(o[0],this,n))return be(o[1],this,n)}})}function Ji(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 Qi(e){return function(e){var t=tn(e);return function(n){return Ji(n,e,t)}}(gi(e,1))}function Xi(e,t){return null==t||Ji(e,t,tn(t))}function ea(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 ta(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),u=a.length;u--;){var l=a[e?u:++o];if(!1===n(i[l],l,i))break}return t}}var na=ta();function ra(e,t){return e&&na(e,t,tn)}function oa(e,t){return function(n,r){if(null==n)return n;if(!Et(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 ia=oa(ra);function aa(e,t,n,r){return ia(e,function(e,o,i){t(r,e,n(e),i)}),r}function ua(e,t){return function(n,r){var o=k(n)?ea:aa,i=t?t():{};return o(n,e,Zi(r),i)}}var la=Object.prototype.hasOwnProperty,sa=ua(function(e,t,n){la.call(e,n)?++e[n]:gt(e,n,1)}),ca=sa;function fa(e,t){var n=me(e);return null==t?n:Co(n,t)}function pa(e,t,n){var r=ht(e,8,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=pa.placeholder,r}function da(e,t,n){var r=ht(e,16,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=da.placeholder,r}pa.placeholder={},da.placeholder={};var ha=function(){return m.Date.now()},va=Math.max,ga=Math.min;function ya(e,t,n){var r,o,i,a,u,l,s=0,c=!1,f=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function d(t){var n=r,i=o;return r=o=void 0,s=t,a=e.apply(i,n)}function h(e){var n=e-l;return void 0===l||n>=t||n<0||f&&e-s>=i}function v(){var e=ha();if(h(e))return g(e);u=setTimeout(v,function(e){var n=t-(e-l);return f?ga(n,i-(e-s)):n}(e))}function g(e){return u=void 0,p&&r?d(e):(r=o=void 0,a)}function y(){var e=ha(),n=h(e);if(r=arguments,o=this,l=e,n){if(void 0===u)return function(e){return s=e,u=setTimeout(v,t),c?d(e):a}(l);if(f)return clearTimeout(u),u=setTimeout(v,t),d(l)}return void 0===u&&(u=setTimeout(v,t)),a}return t=K(t)||0,N(n)&&(c=!!n.leading,i=(f="maxWait"in n)?va(K(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),y.cancel=function(){void 0!==u&&clearTimeout(u),s=0,r=l=o=u=void 0},y.flush=function(){return void 0===u?a:g(ha())},y}function ma(e,t){return null==e||e!=e?t:e}var _a=Object.prototype,ba=_a.hasOwnProperty,xa=jt(function(e,t){e=Object(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&At(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],a=un(i),u=-1,l=a.length;++u<l;){var s=a[u],c=e[s];(void 0===c||yt(c,_a[s])&&!ba.call(e,s))&&(e[s]=i[s])}return e}),Ca=xa;function ja(e,t,n){(void 0!==n&&!yt(e[t],n)||void 0===n&&!(t in e))&>(e,t,n)}function wa(e){return O(e)&&Et(e)}function Ea(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function Aa(e){return bt(e,un(e))}function Oa(e,t,n,r,o){e!==t&&na(t,function(i,a){if(o||(o=new xo),N(i))!function(e,t,n,r,o,i,a){var u=Ea(e,n),l=Ea(t,n),s=a.get(l);if(s)ja(e,n,s);else{var c=i?i(u,l,n+"",e,t,a):void 0,f=void 0===c;if(f){var p=k(l),d=!p&&qt(l),h=!p&&!d&&Yt(l);c=l,p||d||h?k(u)?c=u:wa(u)?c=Le(u):d?(f=!1,c=Oo(l,!0)):h?(f=!1,c=ai(l,!0)):c=[]:Jn(l)||Wt(l)?(c=u,Wt(u)?c=Aa(u):N(u)&&!Q(u)||(c=ui(l))):f=!1}f&&(a.set(l,c),o(c,l,r,i,a),a.delete(l)),ja(e,n,c)}}(e,t,a,n,Oa,r,o);else{var u=r?r(Ea(e,a),i,a+"",e,t,o):void 0;void 0===u&&(u=i),ja(e,a,u)}},un)}function Sa(e,t,n,r,o,i){return N(e)&&N(t)&&(i.set(t,e),Oa(e,t,void 0,Sa,i),i.delete(t)),e}var Ma=Ot(function(e,t,n,r){Oa(e,t,n,r)}),Ia=Ma,ka=jt(function(e){return e.push(void 0,Sa),be(Ia,void 0,e)});function Pa(e,t,n){if("function"!=typeof e)throw new TypeError("Expected a function");return setTimeout(function(){e.apply(void 0,n)},t)}var Ra=jt(function(e,t){return Pa(e,1,t)}),La=Ra,Wa=jt(function(e,t,n){return Pa(e,K(t)||0,n)}),Ba=Wa;function Ta(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Da(e,t,n,r){var o=-1,i=et,a=!0,u=e.length,l=[],s=t.length;if(!u)return l;n&&(t=I(t,Ut(n))),r?(i=Ta,a=!1):t.length>=200&&(i=Ai,a=!1,t=new wi(t));e:for(;++o<u;){var c=e[o],f=null==n?c:n(c);if(c=r||0!==c?c:0,a&&f==f){for(var p=s;p--;)if(t[p]===f)continue e;l.push(c)}else i(t,f,r)||l.push(c)}return l}var za=jt(function(e,t){return wa(e)?Da(e,Nn(t,1,wa,!0)):[]}),qa=za;function Na(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var Ua=jt(function(e,t){var n=Na(t);return wa(n)&&(n=void 0),wa(e)?Da(e,Nn(t,1,wa,!0),Zi(n)):[]}),Fa=Ua,$a=jt(function(e,t){var n=Na(t);return wa(n)&&(n=void 0),wa(e)?Da(e,Nn(t,1,wa,!0),void 0,n):[]}),Ha=$a,Ka=W(function(e,t){return e/t},1);function Va(e,t,n){var r=null==e?0:e.length;return r?lr(e,(t=n||void 0===t?1:Z(t))<0?0:t,r):[]}function Ya(e,t,n){var r=null==e?0:e.length;return r?lr(e,0,(t=r-(t=n||void 0===t?1:Z(t)))<0?0:t):[]}function Za(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?lr(e,r?0:i,r?i+1:o):lr(e,r?i+1:0,r?o:i)}function Ga(e,t){return e&&e.length?Za(e,Zi(t),!0,!0):[]}function Ja(e,t){return e&&e.length?Za(e,Zi(t),!0):[]}function Qa(e){return"function"==typeof e?e:J}function Xa(e,t){return(k(e)?Ge:ia)(e,Qa(t))}function eu(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}var tu=ta(!0);function nu(e,t){return e&&tu(e,t,tn)}var ru=oa(nu,!0);function ou(e,t){return(k(e)?eu:ru)(e,Qa(t))}function iu(e,t,n){e=Pn(e),t=L(t);var r=e.length,o=n=void 0===n?r:_o(Z(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t}function au(e){return function(t){var n=Xo(t);return"[object Map]"==n?Si(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 I(t,function(t){return[t,e[t]]})}(t,e(t))}}var uu=au(tn),lu=au(un),su=Mr({"&":"&","<":"<",">":">",'"':""","'":"'"}),cu=/[&<>"']/g,fu=RegExp(cu.source);function pu(e){return(e=Pn(e))&&fu.test(e)?e.replace(cu,su):e}var du=/[\\^$.*+?()[\]{}|]/g,hu=RegExp(du.source);function vu(e){return(e=Pn(e))&&hu.test(e)?e.replace(du,"\\$&"):e}function gu(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 yu(e,t){var n=!0;return ia(e,function(e,r,o){return n=!!t(e,r,o)}),n}function mu(e,t,n){var r=k(e)?gu:yu;return n&&At(e,t,n)&&(t=void 0),r(e,Zi(t))}function _u(e){return e?_o(Z(e),0,4294967295):0}function bu(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&At(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=Z(n))<0&&(n=-n>o?0:o+n),(r=void 0===r||r>o?o:Z(r))<0&&(r+=o),r=n>r?0:_u(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]}function xu(e,t){var n=[];return ia(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}function Cu(e,t){return(k(e)?So:xu)(e,Zi(t))}function ju(e){return function(t,n,r){var o=Object(t);if(!Et(t)){var i=Zi(n);t=tn(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 wu=Math.max;function Eu(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Z(n);return o<0&&(o=wu(r+o,0)),Je(e,Zi(t),o)}var Au=ju(Eu);function Ou(e,t,n){var r;return n(e,function(e,n,o){if(t(e,n,o))return r=n,!1}),r}function Su(e,t){return Ou(e,Zi(t),ra)}var Mu=Math.max,Iu=Math.min;function ku(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return void 0!==n&&(o=Z(n),o=n<0?Mu(r+o,0):Iu(o,r-1)),Je(e,Zi(t),o,!0)}var Pu=ju(ku);function Ru(e,t){return Ou(e,Zi(t),nu)}function Lu(e){return e&&e.length?e[0]:void 0}function Wu(e,t){var n=-1,r=Et(e)?Array(e.length):[];return ia(e,function(e,o,i){r[++n]=t(e,o,i)}),r}function Bu(e,t){return(k(e)?I:Wu)(e,Zi(t))}function Tu(e,t){return Nn(Bu(e,t),1)}var Du=1/0;function zu(e,t){return Nn(Bu(e,t),Du)}function qu(e,t,n){return n=void 0===n?1:Z(n),Nn(Bu(e,t),n)}var Nu=1/0;function Uu(e){return null!=e&&e.length?Nn(e,Nu):[]}function Fu(e,t){return null!=e&&e.length?Nn(e,t=void 0===t?1:Z(t)):[]}function $u(e){return ht(e,512)}var Hu=po("floor");function Ku(e){return Fn(function(t){var n=t.length,r=n,o=Re.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"==Pe(i))var a=new Re([],!0)}for(r=a?r:n;++r<n;){var u=Pe(i=t[r]),l="wrapper"==u?Me(i):void 0;a=l&&De(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?a[Pe(l[0])].apply(a,l[3]):1==i.length&&De(i)?a[u]():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 Vu=Ku(),Yu=Ku(!0);function Zu(e,t){return null==e?e:na(e,Qa(t),un)}function Gu(e,t){return null==e?e:tu(e,Qa(t),un)}function Ju(e,t){return e&&ra(e,Qa(t))}function Qu(e,t){return e&&nu(e,Qa(t))}function Xu(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 el(e,t){return So(t,function(t){return Q(e[t])})}function tl(e){return null==e?[]:el(e,tn(e))}function nl(e){return null==e?[]:el(e,un(e))}var rl=Object.prototype.hasOwnProperty,ol=ua(function(e,t,n){rl.call(e,n)?e[n].push(t):gt(e,n,[t])}),il=ol;function al(e,t){return e>t}function ul(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=K(t),n=K(n)),e(t,n)}}var ll=ul(al),sl=ul(function(e,t){return e>=t}),cl=Object.prototype.hasOwnProperty;function fl(e,t){return null!=e&&cl.call(e,t)}function pl(e,t){return null!=e&&$i(e,t,fl)}var dl=Math.max,hl=Math.min;function vl(e,t,n){return t=Y(t),void 0===n?(n=t,t=0):n=Y(n),function(e,t,n){return e>=hl(t,n)&&e<dl(t,n)}(e=K(e),t,n)}function gl(e){return"string"==typeof e||!k(e)&&O(e)&&"[object String]"==A(e)}function yl(e,t){return I(t,function(t){return e[t]})}function ml(e){return null==e?[]:yl(e,tn(e))}var _l=Math.max;function bl(e,t,n,r){e=Et(e)?e:ml(e),n=n&&!r?Z(n):0;var o=e.length;return n<0&&(n=_l(o+n,0)),gl(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Xe(e,t,n)>-1}var xl=Math.max;function Cl(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Z(n);return o<0&&(o=xl(r+o,0)),Xe(e,t,o)}function jl(e){return null!=e&&e.length?lr(e,0,-1):[]}var wl=Math.min;function El(e,t,n){for(var r=n?Ta:et,o=e[0].length,i=e.length,a=i,u=Array(i),l=1/0,s=[];a--;){var c=e[a];a&&t&&(c=I(c,Ut(t))),l=wl(c.length,l),u[a]=!n&&(t||o>=120&&c.length>=120)?new wi(a&&c):void 0}c=e[0];var f=-1,p=u[0];e:for(;++f<o&&s.length<l;){var d=c[f],h=t?t(d):d;if(d=n||0!==d?d:0,!(p?Ai(p,h):r(s,h,n))){for(a=i;--a;){var v=u[a];if(!(v?Ai(v,h):r(e[a],h,n)))continue e}p&&p.push(h),s.push(d)}}return s}function Al(e){return wa(e)?e:[]}var Ol=jt(function(e){var t=I(e,Al);return t.length&&t[0]===e[0]?El(t):[]}),Sl=jt(function(e){var t=Na(e),n=I(e,Al);return t===Na(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?El(n,Zi(t)):[]}),Ml=Sl,Il=jt(function(e){var t=Na(e),n=I(e,Al);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?El(n,void 0,t):[]});function kl(e,t){return function(n,r){return function(e,t,n,r){return ra(e,function(e,o,i){t(r,n(e),o,i)}),r}(n,e,t(r),{})}}var Pl=Object.prototype.toString,Rl=kl(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Pl.call(t)),e[t]=n},He(J)),Ll=Rl,Wl=Object.prototype,Bl=Wl.hasOwnProperty,Tl=Wl.toString,Dl=kl(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Tl.call(t)),Bl.call(e,t)?e[t].push(n):e[t]=[n]},Zi),zl=Dl;function ql(e,t){return t.length<2?e:Wn(e,lr(t,0,-1))}function Nl(e,t,n){var r=null==(e=ql(e,t=Rn(t,e)))?e:e[Ln(Na(t))];return null==r?void 0:be(r,e,n)}var Ul=jt(Nl),Fl=jt(function(e,t,n){var r=-1,o="function"==typeof t,i=Et(e)?Array(e.length):[];return ia(e,function(e){i[++r]=o?be(t,e,n):Nl(e,t,n)}),i}),$l=Fl,Hl=Kt&&Kt.isArrayBuffer,Kl=Hl?Ut(Hl):function(e){return O(e)&&"[object ArrayBuffer]"==A(e)};function Vl(e){return!0===e||!1===e||O(e)&&"[object Boolean]"==A(e)}var Yl=Kt&&Kt.isDate,Zl=Yl?Ut(Yl):function(e){return O(e)&&"[object Date]"==A(e)};function Gl(e){return O(e)&&1===e.nodeType&&!Jn(e)}var Jl=Object.prototype.hasOwnProperty;function Ql(e){if(null==e)return!0;if(Et(e)&&(k(e)||"string"==typeof e||"function"==typeof e.splice||qt(e)||Yt(e)||Wt(e)))return!e.length;var t=Xo(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(Mt(e))return!en(e).length;for(var n in e)if(Jl.call(e,n))return!1;return!0}function Xl(e,t){return Ti(e,t)}function es(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?Ti(e,t,void 0,n):!!r}var ts=m.isFinite;function ns(e){return"number"==typeof e&&ts(e)}function rs(e){return"number"==typeof e&&e==Z(e)}function os(e,t){return e===t||Di(e,t,qi(t))}function is(e,t,n){return n="function"==typeof n?n:void 0,Di(e,t,qi(t),n)}function as(e){return"number"==typeof e||O(e)&&"[object Number]"==A(e)}function us(e){return as(e)&&e!=+e}var ls=ee?Q:Bt;function ss(e){if(ls(e))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return ce(e)}function cs(e){return null==e}function fs(e){return null===e}var ps=Kt&&Kt.isRegExp,ds=ps?Ut(ps):function(e){return O(e)&&"[object RegExp]"==A(e)};function hs(e){return rs(e)&&e>=-9007199254740991&&e<=9007199254740991}function vs(e){return void 0===e}function gs(e){return O(e)&&"[object WeakMap]"==Xo(e)}function ys(e){return O(e)&&"[object WeakSet]"==A(e)}function ms(e){return Zi("function"==typeof e?e:gi(e,1))}var _s=Array.prototype.join;function bs(e,t){return null==e?"":_s.call(e,t)}var xs=ao(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Cs=xs,js=ua(function(e,t,n){gt(e,n,t)}),ws=js,Es=Math.max,As=Math.min;function Os(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=Z(n))<0?Es(r+o,0):As(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):Je(e,Qe,o,!0)}var Ss=ao(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Ms=Ss,Is=Er("toLowerCase");function ks(e,t){return e<t}var Ps=ul(ks),Rs=ul(function(e,t){return e<=t});function Ls(e,t){var n={};return t=Zi(t),ra(e,function(e,r,o){gt(n,t(e,r,o),e)}),n}function Ws(e,t){var n={};return t=Zi(t),ra(e,function(e,r,o){gt(n,r,t(e,r,o))}),n}function Bs(e){return Ui(gi(e,1))}function Ts(e,t){return Ki(e,gi(t,1))}function Ds(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(null!=a&&(void 0===u?a==a&&!S(a):n(a,u)))var u=a,l=i}return l}function zs(e){return e&&e.length?Ds(e,J,al):void 0}function qs(e,t){return e&&e.length?Ds(e,Zi(t),al):void 0}function Ns(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 Us(e,t){var n=null==e?0:e.length;return n?Ns(e,t)/n:NaN}function Fs(e){return Us(e,J)}function $s(e,t){return Us(e,Zi(t))}var Hs=Ot(function(e,t,n){Oa(e,t,n)}),Ks=Hs,Vs=jt(function(e,t){return function(n){return Nl(n,e,t)}}),Ys=Vs,Zs=jt(function(e,t){return function(n){return Nl(e,n,t)}}),Gs=Zs;function Js(e){return e&&e.length?Ds(e,J,ks):void 0}function Qs(e,t){return e&&e.length?Ds(e,Zi(t),ks):void 0}function Xs(e,t,n){var r=tn(t),o=el(t,r),i=!(N(n)&&"chain"in n&&!n.chain),a=Q(e);return Ge(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__=Le(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Dn([this.value()],arguments))})}),e}var ec=W(function(e,t){return e*t},1);function tc(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}var nc=_?_.iterator:void 0;function rc(e){if(!e)return[];if(Et(e))return gl(e)?wr(e):Le(e);if(nc&&e[nc])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[nc]());var t=Xo(e);return("[object Map]"==t?Si:"[object Set]"==t?Mi:ml)(e)}function oc(){void 0===this.__values__&&(this.__values__=rc(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}}function ic(e,t){var n=e.length;if(n)return at(t+=t<0?n:0,n)?e[t]:void 0}function ac(e,t){return e&&e.length?ic(e,Z(t)):void 0}function uc(e){return e=Z(e),jt(function(t){return ic(t,e)})}var lc=Object.prototype.hasOwnProperty;function sc(e,t){var n=-1,r=(t=Rn(t,e)).length;if(!r)return!0;for(var o=null==e||"object"!=typeof e&&"function"!=typeof e;++n<r;){var i=t[n];if("string"==typeof i){if("__proto__"===i&&!lc.call(e,"__proto__"))return!1;if("constructor"===i&&n+1<r&&"string"==typeof t[n+1]&&"prototype"===t[n+1]){if(o&&0===n)continue;return!1}}}var a=ql(e,t);return null==a||delete a[Ln(Na(t))]}function cc(e){return Jn(e)?void 0:e}var fc=Fn(function(e,t){var n={};if(null==e)return n;var r=!1;t=I(t,function(t){return t=Rn(t,e),r||(r=t.length>1),t}),bt(e,Do(e),n),r&&(n=gi(n,7,cc));for(var o=t.length;o--;)sc(n,t[o]);return n}),pc=fc;function dc(e,t,n,r){if(!N(e))return e;for(var o=-1,i=(t=Rn(t,e)).length,a=i-1,u=e;null!=u&&++o<i;){var l=Ln(t[o]),s=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=a){var c=u[l];void 0===(s=r?r(c,l,u):void 0)&&(s=N(c)?c:at(t[o+1])?[]:{})}_t(u,l,s),u=u[l]}return e}function hc(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],u=Wn(e,a);n(u,a)&&dc(i,Rn(a,e),u)}return i}function vc(e,t){if(null==e)return{};var n=I(Do(e),function(e){return[e]});return t=Zi(t),hc(e,n,function(e,n){return t(e,n[0])})}function gc(e,t){return vc(e,tc(Zi(t)))}function yc(e){return tr(2,e)}function mc(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=S(e),a=void 0!==t,u=null===t,l=t==t,s=S(t);if(!u&&!s&&!i&&e>t||i&&a&&l&&!u&&!s||r&&a&&l||!n&&l||!o)return 1;if(!r&&!i&&!s&&e<t||s&&n&&o&&!r&&!i||u&&n&&o||!a&&o||!l)return-1}return 0}function _c(e,t,n){t=t.length?I(t,function(e){return k(e)?function(t){return Wn(t,1===e.length?e[0]:e)}:e}):[J];var r=-1;t=I(t,Ut(Zi));var o=Wu(e,function(e,n,o){var i=I(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,u=n.length;++r<a;){var l=mc(o[r],i[r]);if(l)return r>=u?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]),_c(e,t,n))}function xc(e){return Fn(function(t){return t=I(t,Ut(Zi)),jt(function(n){var r=this;return e(t,function(e){return be(e,r,n)})})})}var Cc=xc(I),jc=jt,wc=Math.min,Ec=jc(function(e,t){var n=(t=1==t.length&&k(t[0])?I(t[0],Ut(Zi)):I(Nn(t,1),Ut(Zi))).length;return jt(function(r){for(var o=-1,i=wc(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return be(e,this,r)})}),Ac=Ec,Oc=xc(gu),Sc=xc(Ei),Mc=Math.floor;function Ic(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=Mc(t/2))&&(e+=e)}while(t);return n}var kc=Vi("length"),Pc="\\ud800-\\udfff",Rc="["+Pc+"]",Lc="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Wc="\\ud83c[\\udffb-\\udfff]",Bc="[^"+Pc+"]",Tc="(?:\\ud83c[\\udde6-\\uddff]){2}",Dc="[\\ud800-\\udbff][\\udc00-\\udfff]",zc="(?:"+Lc+"|"+Wc+")?",qc="[\\ufe0e\\ufe0f]?",Nc=qc+zc+"(?:\\u200d(?:"+[Bc,Tc,Dc].join("|")+")"+qc+zc+")*",Uc="(?:"+[Bc+Lc+"?",Lc,Tc,Dc,Rc].join("|")+")",Fc=RegExp(Wc+"(?="+Wc+")|"+Uc+Nc,"g");function $c(e){return fr(e)?function(e){for(var t=Fc.lastIndex=0;Fc.test(e);)++t;return t}(e):kc(e)}var Hc=Math.ceil;function Kc(e,t){var n=(t=void 0===t?" ":L(t)).length;if(n<2)return n?Ic(t,e):t;var r=Ic(t,Hc(e/$c(t)));return fr(t)?sr(wr(r),0,e).join(""):r.slice(0,e)}var Vc=Math.ceil,Yc=Math.floor;function Zc(e,t,n){e=Pn(e);var r=(t=Z(t))?$c(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Kc(Yc(o),n)+e+Kc(Vc(o),n)}function Gc(e,t,n){e=Pn(e);var r=(t=Z(t))?$c(e):0;return t&&r<t?e+Kc(t-r,n):e}function Jc(e,t,n){e=Pn(e);var r=(t=Z(t))?$c(e):0;return t&&r<t?Kc(t-r,n)+e:e}var Qc=/^\s+/,Xc=m.parseInt;function ef(e,t,n){return n||null==t?t=0:t&&(t=+t),Xc(Pn(e).replace(Qc,""),t||0)}var tf=jt(function(e,t){return ht(e,32,void 0,t,st(t,ot(tf)))});tf.placeholder={};var nf=tf,rf=jt(function(e,t){return ht(e,64,void 0,t,st(t,ot(rf)))});rf.placeholder={};var of=rf,af=ua(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),uf=af,lf=Fn(function(e,t){return null==e?{}:function(e,t){return hc(e,t,function(t,n){return Hi(e,n)})}(e,t)}),sf=lf;function cf(e){for(var t,n=this;n instanceof Ee;){var r=We(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 ff(e){return function(t){return null==e?void 0:Wn(e,t)}}function pf(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}var df=Array.prototype.splice;function hf(e,t,n,r){var o=r?pf:Xe,i=-1,a=t.length,u=e;for(e===t&&(t=Le(t)),n&&(u=I(e,Ut(n)));++i<a;)for(var l=0,s=t[i],c=n?n(s):s;(l=o(u,c,l,r))>-1;)u!==e&&df.call(u,l,1),df.call(e,l,1);return e}function vf(e,t){return e&&e.length&&t&&t.length?hf(e,t):e}var gf=jt(vf);function yf(e,t,n){return e&&e.length&&t&&t.length?hf(e,t,Zi(n)):e}function mf(e,t,n){return e&&e.length&&t&&t.length?hf(e,t,void 0,n):e}var _f=Array.prototype.splice;function bf(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;at(o)?_f.call(e,o,1):sc(e,o)}}return e}var xf=Fn(function(e,t){var n=null==e?0:e.length,r=Tn(e,t);return bf(e,I(t,function(e){return at(e,n)?+e:e}).sort(mc)),r}),Cf=xf,jf=Math.floor,wf=Math.random;function Ef(e,t){return e+jf(wf()*(t-e+1))}var Af=parseFloat,Of=Math.min,Sf=Math.random;function Mf(e,t,n){if(n&&"boolean"!=typeof n&&At(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=Y(e),void 0===t?(t=e,e=0):t=Y(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Sf();return Of(e+o*(t-e+Af("1e-"+((o+"").length-1))),t)}return Ef(e,t)}var If=Math.ceil,kf=Math.max;function Pf(e){return function(t,n,r){return r&&"number"!=typeof r&&At(t,n,r)&&(n=r=void 0),t=Y(t),void 0===n?(n=t,t=0):n=Y(n),function(e,t,n,r){for(var o=-1,i=kf(If((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:Y(r),e)}}var Rf=Pf(),Lf=Pf(!0),Wf=Fn(function(e,t){return ht(e,256,void 0,void 0,void 0,t)}),Bf=Wf;function Tf(e,t,n,r,o){return o(e,function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)}),n}function Df(e,t,n){var r=k(e)?Sr:Tf,o=arguments.length<3;return r(e,Zi(t),n,o,ia)}function zf(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 qf(e,t,n){var r=k(e)?zf:Tf,o=arguments.length<3;return r(e,Zi(t),n,o,ru)}function Nf(e,t){return(k(e)?So:xu)(e,tc(Zi(t)))}function Uf(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=Zi(t);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return bf(e,o),n}function Ff(e,t,n){return t=(n?At(e,t,n):void 0===t)?1:Z(t),Ic(Pn(e),t)}function $f(){var e=arguments,t=Pn(e[0]);return e.length<3?t:t.replace(e[1],e[2])}function Hf(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return jt(e,t=void 0===t?t:Z(t))}function Kf(e,t,n){var r=-1,o=(t=Rn(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=Q(i)?i.call(e):i}return e}var Vf=Array.prototype.reverse;function Yf(e){return null==e?e:Vf.call(e)}var Zf=po("round");function Gf(e){var t=e.length;return t?e[Ef(0,t-1)]:void 0}function Jf(e){return Gf(ml(e))}function Qf(e){return(k(e)?Gf:Jf)(e)}function Xf(e,t){var n=-1,r=e.length,o=r-1;for(t=void 0===t?r:t;++n<t;){var i=Ef(n,o),a=e[i];e[i]=e[n],e[n]=a}return e.length=t,e}function ep(e,t){return Xf(Le(e),_o(t,0,e.length))}function tp(e,t){var n=ml(e);return Xf(n,_o(t,0,n.length))}function np(e,t,n){return t=(n?At(e,t,n):void 0===t)?1:Z(t),(k(e)?ep:tp)(e,t)}function rp(e,t,n){return null==e?e:dc(e,t,n)}function op(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:dc(e,t,n,r)}function ip(e){return Xf(Le(e))}function ap(e){return Xf(ml(e))}function up(e){return(k(e)?ip:ap)(e)}function lp(e){if(null==e)return 0;if(Et(e))return gl(e)?$c(e):e.length;var t=Xo(e);return"[object Map]"==t||"[object Set]"==t?e.size:en(e).length}function sp(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&At(e,t,n)?(t=0,n=r):(t=null==t?0:Z(t),n=void 0===n?r:Z(n)),lr(e,t,n)):[]}var cp=ao(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),fp=cp;function pp(e,t){var n;return ia(e,function(e,r,o){return!(n=t(e,r,o))}),!!n}function dp(e,t,n){var r=k(e)?Ei:pp;return n&&At(e,t,n)&&(t=void 0),r(e,Zi(t))}var hp=jt(function(e,t){if(null==e)return[];var n=t.length;return n>1&&At(e,t[0],t[1])?t=[]:n>2&&At(t[0],t[1],t[2])&&(t=[t[0]]),_c(e,Nn(t,1),[])}),vp=hp,gp=Math.floor,yp=Math.min;function mp(e,t,n,r){var o=0,i=null==e?0:e.length;if(0===i)return 0;for(var a=(t=n(t))!=t,u=null===t,l=S(t),s=void 0===t;o<i;){var c=gp((o+i)/2),f=n(e[c]),p=void 0!==f,d=null===f,h=f==f,v=S(f);if(a)var g=r||h;else g=s?h&&(r||p):u?h&&p&&(r||!d):l?h&&p&&!d&&(r||!v):!d&&!v&&(r?f<=t:f<t);g?o=c+1:i=c}return yp(i,4294967294)}function _p(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!S(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return mp(e,t,J,n)}function bp(e,t){return _p(e,t)}function xp(e,t,n){return mp(e,t,Zi(n))}function Cp(e,t){var n=null==e?0:e.length;if(n){var r=_p(e,t);if(r<n&&yt(e[r],t))return r}return-1}function jp(e,t){return _p(e,t,!0)}function wp(e,t,n){return mp(e,t,Zi(n),!0)}function Ep(e,t){if(null!=e&&e.length){var n=_p(e,t,!0)-1;if(yt(e[n],t))return n}return-1}function Ap(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],u=t?t(a):a;if(!n||!yt(u,l)){var l=u;i[o++]=0===a?0:a}}return i}function Op(e){return e&&e.length?Ap(e):[]}function Sp(e,t){return e&&e.length?Ap(e,Zi(t)):[]}function Mp(e,t,n){return n&&"number"!=typeof n&&At(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=Pn(e))&&("string"==typeof t||null!=t&&!ds(t))&&!(t=L(t))&&fr(e)?sr(wr(e),0,n):e.split(t,n):[]}var Ip=Math.max;function kp(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return t=null==t?0:Ip(Z(t),0),jt(function(n){var r=n[t],o=sr(n,0,t);return r&&Dn(o,r),be(e,this,o)})}var Pp=ao(function(e,t,n){return e+(n?" ":"")+Ar(t)}),Rp=Pp;function Lp(e,t,n){return e=Pn(e),n=null==n?0:_o(Z(n),0,e.length),t=L(t),e.slice(n,n+t.length)==t}function Wp(){return{}}function Bp(){return""}function Tp(){return!0}var Dp=W(function(e,t){return e-t},0);function zp(e){return e&&e.length?Ns(e,J):0}function qp(e,t){return e&&e.length?Ns(e,Zi(t)):0}function Np(e){var t=null==e?0:e.length;return t?lr(e,1,t):[]}function Up(e,t,n){return e&&e.length?lr(e,0,(t=n||void 0===t?1:Z(t))<0?0:t):[]}function Fp(e,t,n){var r=null==e?0:e.length;return r?lr(e,(t=r-(t=n||void 0===t?1:Z(t)))<0?0:t,r):[]}function $p(e,t){return e&&e.length?Za(e,Zi(t),!1,!0):[]}function Hp(e,t){return e&&e.length?Za(e,Zi(t)):[]}function Kp(e,t){return t(e),e}var Vp=Object.prototype,Yp=Vp.hasOwnProperty;function Zp(e,t,n,r){return void 0===e||yt(e,Vp[n])&&!Yp.call(r,n)?t:e}var Gp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function Jp(e){return"\\"+Gp[e]}var Qp=/<%=([\s\S]+?)%>/g,Xp={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:Qp,variable:"",imports:{_:{escape:pu}}},ed=/\b__p \+= '';/g,td=/\b(__p \+=) '' \+/g,nd=/(__e\(.*?\)|\b__t\)) \+\n'';/g,rd=/[()=,{}\[\]\/\s]/,od=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,id=/($^)/,ad=/['\n\r\u2028\u2029\\]/g,ud=Object.prototype.hasOwnProperty;function ld(e,t,n){var r=Xp.imports._.templateSettings||Xp;n&&At(e,t,n)&&(t=void 0),e=Pn(e),t=fn({},t,r,Zp);var o,i,a=fn({},t.imports,r.imports,Zp),u=tn(a),l=yl(a,u),s=0,c=t.interpolate||id,f="__p += '",p=RegExp((t.escape||id).source+"|"+c.source+"|"+(c===Qp?od:id).source+"|"+(t.evaluate||id).source+"|$","g"),d=ud.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"";e.replace(p,function(t,n,r,a,u,l){return r||(r=a),f+=e.slice(s,l).replace(ad,Jp),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),u&&(i=!0,f+="';\n"+u+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),s=l+t.length,t}),f+="';\n";var h=ud.call(t,"variable")&&t.variable;if(h){if(rd.test(h))throw new Error("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(i?f.replace(ed,""):f).replace(td,"$1").replace(nd,"$1;"),f="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")+f+"return __p\n}";var v=er(function(){return Function(u,d+"return "+f).apply(void 0,l)});if(v.source=f,Qn(v))throw v;return v}function sd(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return N(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ya(e,t,{leading:r,maxWait:t,trailing:o})}function cd(e,t){return t(e)}var fd=4294967295,pd=Math.min;function dd(e,t){if((e=Z(e))<1||e>9007199254740991)return[];var n=fd,r=pd(e,fd);t=Qa(t),e-=fd;for(var o=It(r,t);++n<e;)t(n);return o}function hd(){return this}function vd(e,t){var n=e;return n instanceof Ae&&(n=n.value()),Sr(t,function(e,t){return t.func.apply(t.thisArg,Dn([e],t.args))},n)}function gd(){return vd(this.__wrapped__,this.__actions__)}function yd(e){return Pn(e).toLowerCase()}function md(e){return k(e)?I(e,Ln):S(e)?[e]:Le(kn(Pn(e)))}function _d(e){return e?_o(Z(e),-9007199254740991,9007199254740991):0===e?e:0}function bd(e){return Pn(e).toUpperCase()}function xd(e,t,n){var r=k(e),o=r||qt(e)||Yt(e);if(t=Zi(t),null==n){var i=e&&e.constructor;n=o?r?new i:[]:N(e)&&Q(i)?me(Hn(e)):{}}return(o?Ge:ra)(e,function(e,r,o){return t(n,e,r,o)}),n}function Cd(e,t){for(var n=e.length;n--&&Xe(t,e[n],0)>-1;);return n}function jd(e,t){for(var n=-1,r=e.length;++n<r&&Xe(t,e[n],0)>-1;);return n}function wd(e,t,n){if((e=Pn(e))&&(n||void 0===t))return q(e);if(!e||!(t=L(t)))return e;var r=wr(e),o=wr(t);return sr(r,jd(r,o),Cd(r,o)+1).join("")}function Ed(e,t,n){if((e=Pn(e))&&(n||void 0===t))return e.slice(0,D(e)+1);if(!e||!(t=L(t)))return e;var r=wr(e);return sr(r,0,Cd(r,wr(t))+1).join("")}var Ad=/^\s+/;function Od(e,t,n){if((e=Pn(e))&&(n||void 0===t))return e.replace(Ad,"");if(!e||!(t=L(t)))return e;var r=wr(e);return sr(r,jd(r,wr(t))).join("")}var Sd=/\w*$/;function Md(e,t){var n=30,r="...";if(N(t)){var o="separator"in t?t.separator:o;n="length"in t?Z(t.length):n,r="omission"in t?L(t.omission):r}var i=(e=Pn(e)).length;if(fr(e)){var a=wr(e);i=a.length}if(n>=i)return e;var u=n-$c(r);if(u<1)return r;var l=a?sr(a,0,u).join(""):e.slice(0,u);if(void 0===o)return l+r;if(a&&(u+=l.length-u),ds(o)){if(e.slice(u).search(o)){var s,c=l;for(o.global||(o=RegExp(o.source,Pn(Sd.exec(o))+"g")),o.lastIndex=0;s=o.exec(c);)var f=s.index;l=l.slice(0,void 0===f?u:f)}}else if(e.indexOf(L(o),u)!=u){var p=l.lastIndexOf(o);p>-1&&(l=l.slice(0,p))}return l+r}function Id(e){return vt(e,1)}var kd=Mr({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Pd=/&(?:amp|lt|gt|quot|#39);/g,Rd=RegExp(Pd.source);function Ld(e){return(e=Pn(e))&&Rd.test(e)?e.replace(Pd,kd):e}var Wd=No&&1/Mi(new No([,-0]))[1]==1/0?function(e){return new No(e)}:Oe,Bd=Wd;function Td(e,t,n){var r=-1,o=et,i=e.length,a=!0,u=[],l=u;if(n)a=!1,o=Ta;else if(i>=200){var s=t?null:Bd(e);if(s)return Mi(s);a=!1,o=Ai,l=new wi}else l=t?[]:u;e:for(;++r<i;){var c=e[r],f=t?t(c):c;if(c=n||0!==c?c:0,a&&f==f){for(var p=l.length;p--;)if(l[p]===f)continue e;t&&l.push(f),u.push(c)}else o(l,f,n)||(l!==u&&l.push(f),u.push(c))}return u}var Dd=jt(function(e){return Td(Nn(e,1,wa,!0))}),zd=jt(function(e){var t=Na(e);return wa(t)&&(t=void 0),Td(Nn(e,1,wa,!0),Zi(t))}),qd=zd,Nd=jt(function(e){var t=Na(e);return t="function"==typeof t?t:void 0,Td(Nn(e,1,wa,!0),void 0,t)});function Ud(e){return e&&e.length?Td(e):[]}function Fd(e,t){return e&&e.length?Td(e,Zi(t)):[]}function $d(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Td(e,void 0,t):[]}var Hd=0;function Kd(e){var t=++Hd;return Pn(e)+t}function Vd(e,t){return null==e||sc(e,t)}var Yd=Math.max;function Zd(e){if(!e||!e.length)return[];var t=0;return e=So(e,function(e){if(wa(e))return t=Yd(e.length,t),!0}),It(t,function(t){return I(e,Vi(t))})}function Gd(e,t){if(!e||!e.length)return[];var n=Zd(e);return null==t?n:I(n,function(e){return be(t,void 0,e)})}function Jd(e,t,n,r){return dc(e,t,n(Wn(e,t)),r)}function Qd(e,t,n){return null==e?e:Jd(e,t,Qa(n))}function Xd(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:Jd(e,t,Qa(n),r)}var eh=ao(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),th=eh;function nh(e){return null==e?[]:yl(e,un(e))}var rh=jt(function(e,t){return wa(e)?Da(e,t):[]}),oh=rh;function ih(e,t){return nf(Qa(t),e)}var ah=Fn(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Tn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Ae&&at(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:cd,args:[o],thisArg:void 0}),new Re(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(void 0),e})):this.thru(o)}),uh=ah;function lh(){return vo(this)}function sh(){var e=this.__wrapped__;if(e instanceof Ae){var t=e;return this.__actions__.length&&(t=new Ae(this)),(t=t.reverse()).__actions__.push({func:cd,args:[Yf],thisArg:void 0}),new Re(t,this.__chain__)}return this.thru(Yf)}function ch(e,t,n){var r=e.length;if(r<2)return r?Td(e[0]):[];for(var o=-1,i=Array(r);++o<r;)for(var a=e[o],u=-1;++u<r;)u!=o&&(i[o]=Da(i[o]||a,e[u],t,n));return Td(Nn(i,1),t,n)}var fh=jt(function(e){return ch(So(e,wa))}),ph=jt(function(e){var t=Na(e);return wa(t)&&(t=void 0),ch(So(e,wa),Zi(t))}),dh=ph,hh=jt(function(e){var t=Na(e);return t="function"==typeof t?t:void 0,ch(So(e,wa),void 0,t)}),vh=jt(Zd);function gh(e,t,n){for(var r=-1,o=e.length,i=t.length,a={};++r<o;){var u=r<i?t[r]:void 0;n(a,e[r],u)}return a}function yh(e,t){return gh(e||[],t||[],_t)}function mh(e,t){return gh(e||[],t||[],dc)}var _h,bh=jt(function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Gd(e,n)}),xh=bh,Ch={chunk:mo,compact:Ci,concat:ji,difference:qa,differenceBy:Fa,differenceWith:Ha,drop:Va,dropRight:Ya,dropRightWhile:Ga,dropWhile:Ja,fill:bu,findIndex:Eu,findLastIndex:ku,first:Lu,flatten:Un,flattenDeep:Uu,flattenDepth:Fu,fromPairs:Xu,head:Lu,indexOf:Cl,initial:jl,intersection:Ol,intersectionBy:Ml,intersectionWith:Il,join:bs,last:Na,lastIndexOf:Os,nth:ac,pull:gf,pullAll:vf,pullAllBy:yf,pullAllWith:mf,pullAt:Cf,remove:Uf,reverse:Yf,slice:sp,sortedIndex:bp,sortedIndexBy:xp,sortedIndexOf:Cp,sortedLastIndex:jp,sortedLastIndexBy:wp,sortedLastIndexOf:Ep,sortedUniq:Op,sortedUniqBy:Sp,tail:Np,take:Up,takeRight:Fp,takeRightWhile:$p,takeWhile:Hp,union:Dd,unionBy:qd,unionWith:Nd,uniq:Ud,uniqBy:Fd,uniqWith:$d,unzip:Zd,unzipWith:Gd,without:oh,xor:fh,xorBy:dh,xorWith:hh,zip:vh,zipObject:yh,zipObjectDeep:mh,zipWith:xh},jh={countBy:ca,each:Xa,eachRight:ou,every:mu,filter:Cu,find:Au,findLast:Pu,flatMap:Tu,flatMapDeep:zu,flatMapDepth:qu,forEach:Xa,forEachRight:ou,groupBy:il,includes:bl,invokeMap:$l,keyBy:ws,map:Bu,orderBy:bc,partition:uf,reduce:Df,reduceRight:qf,reject:Nf,sample:Qf,sampleSize:np,shuffle:up,size:lp,some:dp,sortBy:vp},wh=ha,Eh={after:G,ary:vt,before:tr,bind:rr,bindKey:ur,curry:pa,curryRight:da,debounce:ya,defer:La,delay:Ba,flip:$u,memoize:On,negate:tc,once:yc,overArgs:Ac,partial:nf,partialRight:of,rearg:Bf,rest:Hf,spread:kp,throttle:sd,unary:Id,wrap:ih},Ah={castArray:so,clone:yi,cloneDeep:mi,cloneDeepWith:_i,cloneWith:bi,conformsTo:Xi,eq:yt,gt:ll,gte:sl,isArguments:Wt,isArray:k,isArrayBuffer:Kl,isArrayLike:Et,isArrayLikeObject:wa,isBoolean:Vl,isBuffer:qt,isDate:Zl,isElement:Gl,isEmpty:Ql,isEqual:Xl,isEqualWith:es,isError:Qn,isFinite:ns,isFunction:Q,isInteger:rs,isLength:wt,isMap:si,isMatch:os,isMatchWith:is,isNaN:us,isNative:ss,isNil:cs,isNull:fs,isNumber:as,isObject:N,isObjectLike:O,isPlainObject:Jn,isRegExp:ds,isSafeInteger:hs,isSet:fi,isString:gl,isSymbol:S,isTypedArray:Yt,isUndefined:vs,isWeakMap:gs,isWeakSet:ys,lt:Ps,lte:Rs,toArray:rc,toFinite:Y,toInteger:Z,toLength:_u,toNumber:K,toPlainObject:Aa,toSafeInteger:_d,toString:Pn},Oh={add:B,ceil:ho,divide:Ka,floor:Hu,max:zs,maxBy:qs,mean:Fs,meanBy:$s,min:Js,minBy:Qs,multiply:ec,round:Zf,subtract:Dp,sum:zp,sumBy:qp},Sh=bo,Mh=vl,Ih=Mf,kh={assign:on,assignIn:sn,assignInWith:fn,assignWith:dn,at:$n,create:fa,defaults:Ca,defaultsDeep:ka,entries:uu,entriesIn:lu,extend:sn,extendWith:fn,findKey:Su,findLastKey:Ru,forIn:Zu,forInRight:Gu,forOwn:Ju,forOwnRight:Qu,functions:tl,functionsIn:nl,get:Bn,has:pl,hasIn:Hi,invert:Ll,invertBy:zl,invoke:Ul,keys:tn,keysIn:un,mapKeys:Ls,mapValues:Ws,merge:Ks,mergeWith:Ia,omit:pc,omitBy:gc,pick:sf,pickBy:vc,result:Kf,set:rp,setWith:op,toPairs:uu,toPairsIn:lu,transform:xd,unset:Vd,update:Qd,updateWith:Xd,values:ml,valuesIn:nh},Ph={at:uh,chain:vo,commit:xi,lodash:Te,next:oc,plant:cf,reverse:sh,tap:Kp,thru:cd,toIterator:hd,toJSON:gd,value:gd,valueOf:gd,wrapperChain:lh},Rh={camelCase:lo,capitalize:Or,deburr:Rr,endsWith:iu,escape:pu,escapeRegExp:vu,kebabCase:Cs,lowerCase:Ms,lowerFirst:Is,pad:Zc,padEnd:Gc,padStart:Jc,parseInt:ef,repeat:Ff,replace:$f,snakeCase:fp,split:Mp,startCase:Rp,startsWith:Lp,template:ld,templateSettings:Xp,toLower:yd,toUpper:bd,trim:wd,trimEnd:Ed,trimStart:Od,truncate:Md,unescape:Ld,upperCase:th,upperFirst:Ar,words:oo},Lh={attempt:er,bindAll:ir,cond:Gi,conforms:Qi,constant:He,defaultTo:ma,flow:Vu,flowRight:Yu,identity:J,iteratee:ms,matches:Bs,matchesProperty:Ts,method:Ys,methodOf:Gs,mixin:Xs,noop:Oe,nthArg:uc,over:Cc,overEvery:Oc,overSome:Sc,property:Yi,propertyOf:ff,range:Rf,rangeRight:Lf,stubArray:Mo,stubFalse:Bt,stubObject:Wp,stubString:Bp,stubTrue:Tp,times:dd,toPath:md,uniqueId:Kd},Wh=Math.max,Bh=Math.min,Th=Math.min,Dh=4294967295,zh=Array.prototype,qh=Object.prototype.hasOwnProperty,Nh=_?_.iterator:void 0,Uh=Math.max,Fh=Math.min,$h=function(e){return function(t,n,r){if(null==r){var o=N(n),i=o&&tn(n),a=i&&i.length&&el(n,i);(a?a.length:o)||(r=n,n=t,t=this)}return e(t,n,r)}}(Xs);Te.after=Eh.after,Te.ary=Eh.ary,Te.assign=kh.assign,Te.assignIn=kh.assignIn,Te.assignInWith=kh.assignInWith,Te.assignWith=kh.assignWith,Te.at=kh.at,Te.before=Eh.before,Te.bind=Eh.bind,Te.bindAll=Lh.bindAll,Te.bindKey=Eh.bindKey,Te.castArray=Ah.castArray,Te.chain=Ph.chain,Te.chunk=Ch.chunk,Te.compact=Ch.compact,Te.concat=Ch.concat,Te.cond=Lh.cond,Te.conforms=Lh.conforms,Te.constant=Lh.constant,Te.countBy=jh.countBy,Te.create=kh.create,Te.curry=Eh.curry,Te.curryRight=Eh.curryRight,Te.debounce=Eh.debounce,Te.defaults=kh.defaults,Te.defaultsDeep=kh.defaultsDeep,Te.defer=Eh.defer,Te.delay=Eh.delay,Te.difference=Ch.difference,Te.differenceBy=Ch.differenceBy,Te.differenceWith=Ch.differenceWith,Te.drop=Ch.drop,Te.dropRight=Ch.dropRight,Te.dropRightWhile=Ch.dropRightWhile,Te.dropWhile=Ch.dropWhile,Te.fill=Ch.fill,Te.filter=jh.filter,Te.flatMap=jh.flatMap,Te.flatMapDeep=jh.flatMapDeep,Te.flatMapDepth=jh.flatMapDepth,Te.flatten=Ch.flatten,Te.flattenDeep=Ch.flattenDeep,Te.flattenDepth=Ch.flattenDepth,Te.flip=Eh.flip,Te.flow=Lh.flow,Te.flowRight=Lh.flowRight,Te.fromPairs=Ch.fromPairs,Te.functions=kh.functions,Te.functionsIn=kh.functionsIn,Te.groupBy=jh.groupBy,Te.initial=Ch.initial,Te.intersection=Ch.intersection,Te.intersectionBy=Ch.intersectionBy,Te.intersectionWith=Ch.intersectionWith,Te.invert=kh.invert,Te.invertBy=kh.invertBy,Te.invokeMap=jh.invokeMap,Te.iteratee=Lh.iteratee,Te.keyBy=jh.keyBy,Te.keys=tn,Te.keysIn=kh.keysIn,Te.map=jh.map,Te.mapKeys=kh.mapKeys,Te.mapValues=kh.mapValues,Te.matches=Lh.matches,Te.matchesProperty=Lh.matchesProperty,Te.memoize=Eh.memoize,Te.merge=kh.merge,Te.mergeWith=kh.mergeWith,Te.method=Lh.method,Te.methodOf=Lh.methodOf,Te.mixin=$h,Te.negate=tc,Te.nthArg=Lh.nthArg,Te.omit=kh.omit,Te.omitBy=kh.omitBy,Te.once=Eh.once,Te.orderBy=jh.orderBy,Te.over=Lh.over,Te.overArgs=Eh.overArgs,Te.overEvery=Lh.overEvery,Te.overSome=Lh.overSome,Te.partial=Eh.partial,Te.partialRight=Eh.partialRight,Te.partition=jh.partition,Te.pick=kh.pick,Te.pickBy=kh.pickBy,Te.property=Lh.property,Te.propertyOf=Lh.propertyOf,Te.pull=Ch.pull,Te.pullAll=Ch.pullAll,Te.pullAllBy=Ch.pullAllBy,Te.pullAllWith=Ch.pullAllWith,Te.pullAt=Ch.pullAt,Te.range=Lh.range,Te.rangeRight=Lh.rangeRight,Te.rearg=Eh.rearg,Te.reject=jh.reject,Te.remove=Ch.remove,Te.rest=Eh.rest,Te.reverse=Ch.reverse,Te.sampleSize=jh.sampleSize,Te.set=kh.set,Te.setWith=kh.setWith,Te.shuffle=jh.shuffle,Te.slice=Ch.slice,Te.sortBy=jh.sortBy,Te.sortedUniq=Ch.sortedUniq,Te.sortedUniqBy=Ch.sortedUniqBy,Te.split=Rh.split,Te.spread=Eh.spread,Te.tail=Ch.tail,Te.take=Ch.take,Te.takeRight=Ch.takeRight,Te.takeRightWhile=Ch.takeRightWhile,Te.takeWhile=Ch.takeWhile,Te.tap=Ph.tap,Te.throttle=Eh.throttle,Te.thru=cd,Te.toArray=Ah.toArray,Te.toPairs=kh.toPairs,Te.toPairsIn=kh.toPairsIn,Te.toPath=Lh.toPath,Te.toPlainObject=Ah.toPlainObject,Te.transform=kh.transform,Te.unary=Eh.unary,Te.union=Ch.union,Te.unionBy=Ch.unionBy,Te.unionWith=Ch.unionWith,Te.uniq=Ch.uniq,Te.uniqBy=Ch.uniqBy,Te.uniqWith=Ch.uniqWith,Te.unset=kh.unset,Te.unzip=Ch.unzip,Te.unzipWith=Ch.unzipWith,Te.update=kh.update,Te.updateWith=kh.updateWith,Te.values=kh.values,Te.valuesIn=kh.valuesIn,Te.without=Ch.without,Te.words=Rh.words,Te.wrap=Eh.wrap,Te.xor=Ch.xor,Te.xorBy=Ch.xorBy,Te.xorWith=Ch.xorWith,Te.zip=Ch.zip,Te.zipObject=Ch.zipObject,Te.zipObjectDeep=Ch.zipObjectDeep,Te.zipWith=Ch.zipWith,Te.entries=kh.toPairs,Te.entriesIn=kh.toPairsIn,Te.extend=kh.assignIn,Te.extendWith=kh.assignInWith,$h(Te,Te),Te.add=Oh.add,Te.attempt=Lh.attempt,Te.camelCase=Rh.camelCase,Te.capitalize=Rh.capitalize,Te.ceil=Oh.ceil,Te.clamp=Sh,Te.clone=Ah.clone,Te.cloneDeep=Ah.cloneDeep,Te.cloneDeepWith=Ah.cloneDeepWith,Te.cloneWith=Ah.cloneWith,Te.conformsTo=Ah.conformsTo,Te.deburr=Rh.deburr,Te.defaultTo=Lh.defaultTo,Te.divide=Oh.divide,Te.endsWith=Rh.endsWith,Te.eq=Ah.eq,Te.escape=Rh.escape,Te.escapeRegExp=Rh.escapeRegExp,Te.every=jh.every,Te.find=jh.find,Te.findIndex=Ch.findIndex,Te.findKey=kh.findKey,Te.findLast=jh.findLast,Te.findLastIndex=Ch.findLastIndex,Te.findLastKey=kh.findLastKey,Te.floor=Oh.floor,Te.forEach=jh.forEach,Te.forEachRight=jh.forEachRight,Te.forIn=kh.forIn,Te.forInRight=kh.forInRight,Te.forOwn=kh.forOwn,Te.forOwnRight=kh.forOwnRight,Te.get=kh.get,Te.gt=Ah.gt,Te.gte=Ah.gte,Te.has=kh.has,Te.hasIn=kh.hasIn,Te.head=Ch.head,Te.identity=J,Te.includes=jh.includes,Te.indexOf=Ch.indexOf,Te.inRange=Mh,Te.invoke=kh.invoke,Te.isArguments=Ah.isArguments,Te.isArray=k,Te.isArrayBuffer=Ah.isArrayBuffer,Te.isArrayLike=Ah.isArrayLike,Te.isArrayLikeObject=Ah.isArrayLikeObject,Te.isBoolean=Ah.isBoolean,Te.isBuffer=Ah.isBuffer,Te.isDate=Ah.isDate,Te.isElement=Ah.isElement,Te.isEmpty=Ah.isEmpty,Te.isEqual=Ah.isEqual,Te.isEqualWith=Ah.isEqualWith,Te.isError=Ah.isError,Te.isFinite=Ah.isFinite,Te.isFunction=Ah.isFunction,Te.isInteger=Ah.isInteger,Te.isLength=Ah.isLength,Te.isMap=Ah.isMap,Te.isMatch=Ah.isMatch,Te.isMatchWith=Ah.isMatchWith,Te.isNaN=Ah.isNaN,Te.isNative=Ah.isNative,Te.isNil=Ah.isNil,Te.isNull=Ah.isNull,Te.isNumber=Ah.isNumber,Te.isObject=N,Te.isObjectLike=Ah.isObjectLike,Te.isPlainObject=Ah.isPlainObject,Te.isRegExp=Ah.isRegExp,Te.isSafeInteger=Ah.isSafeInteger,Te.isSet=Ah.isSet,Te.isString=Ah.isString,Te.isSymbol=Ah.isSymbol,Te.isTypedArray=Ah.isTypedArray,Te.isUndefined=Ah.isUndefined,Te.isWeakMap=Ah.isWeakMap,Te.isWeakSet=Ah.isWeakSet,Te.join=Ch.join,Te.kebabCase=Rh.kebabCase,Te.last=Na,Te.lastIndexOf=Ch.lastIndexOf,Te.lowerCase=Rh.lowerCase,Te.lowerFirst=Rh.lowerFirst,Te.lt=Ah.lt,Te.lte=Ah.lte,Te.max=Oh.max,Te.maxBy=Oh.maxBy,Te.mean=Oh.mean,Te.meanBy=Oh.meanBy,Te.min=Oh.min,Te.minBy=Oh.minBy,Te.stubArray=Lh.stubArray,Te.stubFalse=Lh.stubFalse,Te.stubObject=Lh.stubObject,Te.stubString=Lh.stubString,Te.stubTrue=Lh.stubTrue,Te.multiply=Oh.multiply,Te.nth=Ch.nth,Te.noop=Lh.noop,Te.now=wh,Te.pad=Rh.pad,Te.padEnd=Rh.padEnd,Te.padStart=Rh.padStart,Te.parseInt=Rh.parseInt,Te.random=Ih,Te.reduce=jh.reduce,Te.reduceRight=jh.reduceRight,Te.repeat=Rh.repeat,Te.replace=Rh.replace,Te.result=kh.result,Te.round=Oh.round,Te.sample=jh.sample,Te.size=jh.size,Te.snakeCase=Rh.snakeCase,Te.some=jh.some,Te.sortedIndex=Ch.sortedIndex,Te.sortedIndexBy=Ch.sortedIndexBy,Te.sortedIndexOf=Ch.sortedIndexOf,Te.sortedLastIndex=Ch.sortedLastIndex,Te.sortedLastIndexBy=Ch.sortedLastIndexBy,Te.sortedLastIndexOf=Ch.sortedLastIndexOf,Te.startCase=Rh.startCase,Te.startsWith=Rh.startsWith,Te.subtract=Oh.subtract,Te.sum=Oh.sum,Te.sumBy=Oh.sumBy,Te.template=Rh.template,Te.times=Lh.times,Te.toFinite=Ah.toFinite,Te.toInteger=Z,Te.toLength=Ah.toLength,Te.toLower=Rh.toLower,Te.toNumber=Ah.toNumber,Te.toSafeInteger=Ah.toSafeInteger,Te.toString=Ah.toString,Te.toUpper=Rh.toUpper,Te.trim=Rh.trim,Te.trimEnd=Rh.trimEnd,Te.trimStart=Rh.trimStart,Te.truncate=Rh.truncate,Te.unescape=Rh.unescape,Te.uniqueId=Lh.uniqueId,Te.upperCase=Rh.upperCase,Te.upperFirst=Rh.upperFirst,Te.each=jh.forEach,Te.eachRight=jh.forEachRight,Te.first=Ch.head,$h(Te,(_h={},ra(Te,function(e,t){qh.call(Te.prototype,t)||(_h[t]=e)}),_h),{chain:!1}),Te.VERSION="4.17.23",(Te.templateSettings=Rh.templateSettings).imports._=Te,Ge(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Te[e].placeholder=Te}),Ge(["drop","take"],function(e,t){Ae.prototype[e]=function(n){n=void 0===n?1:Uh(Z(n),0);var r=this.__filtered__&&!t?new Ae(this):this.clone();return r.__filtered__?r.__takeCount__=Fh(n,r.__takeCount__):r.__views__.push({size:Fh(n,Dh),type:e+(r.__dir__<0?"Right":"")}),r},Ae.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Ge(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;Ae.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Zi(e),type:n}),t.__filtered__=t.__filtered__||r,t}}),Ge(["head","last"],function(e,t){var n="take"+(t?"Right":"");Ae.prototype[e]=function(){return this[n](1).value()[0]}}),Ge(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Ae.prototype[e]=function(){return this.__filtered__?new Ae(this):this[n](1)}}),Ae.prototype.compact=function(){return this.filter(J)},Ae.prototype.find=function(e){return this.filter(e).head()},Ae.prototype.findLast=function(e){return this.reverse().find(e)},Ae.prototype.invokeMap=jt(function(e,t){return"function"==typeof e?new Ae(this):this.map(function(n){return Nl(n,e,t)})}),Ae.prototype.reject=function(e){return this.filter(tc(Zi(e)))},Ae.prototype.slice=function(e,t){e=Z(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Ae(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=Z(t))<0?n.dropRight(-t):n.take(t-e)),n)},Ae.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ae.prototype.toArray=function(){return this.take(Dh)},ra(Ae.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Te[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(Te.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,u=t instanceof Ae,l=a[0],s=u||k(t),c=function(e){var t=o.apply(Te,Dn([e],a));return r&&f?t[0]:t};s&&n&&"function"==typeof l&&1!=l.length&&(u=s=!1);var f=this.__chain__,p=!!this.__actions__.length,d=i&&!f,h=u&&!p;if(!i&&s){t=h?t:new Ae(this);var v=e.apply(t,a);return v.__actions__.push({func:cd,args:[c],thisArg:void 0}),new Re(v,f)}return d&&h?e.apply(this,a):(v=this.thru(c),d?r?v.value()[0]:v.value():v)})}),Ge(["pop","push","shift","sort","splice","unshift"],function(e){var t=zh[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Te.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)})}}),ra(Ae.prototype,function(e,t){var n=Te[t];if(n){var r=n.name+"";qh.call(Ie,r)||(Ie[r]=[]),Ie[r].push({name:t,func:n})}}),Ie[ct(void 0,2).name]=[{name:"wrapper",func:void 0}],Ae.prototype.clone=function(){var e=new Ae(this.__wrapped__);return e.__actions__=Le(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Le(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Le(this.__views__),e},Ae.prototype.reverse=function(){if(this.__filtered__){var e=new Ae(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Ae.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=Bh(t,e+a);break;case"takeRight":e=Wh(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,u=i.end,l=u-a,s=r?u:a-1,c=this.__iteratees__,f=c.length,p=0,d=Th(l,this.__takeCount__);if(!n||!r&&o==l&&d==l)return vd(e,this.__actions__);var h=[];e:for(;l--&&p<d;){for(var v=-1,g=e[s+=t];++v<f;){var y=c[v],m=y.iteratee,_=y.type,b=m(g);if(2==_)g=b;else if(!b){if(1==_)continue e;break e}}h[p++]=g}return h},Te.prototype.at=Ph.at,Te.prototype.chain=Ph.wrapperChain,Te.prototype.commit=Ph.commit,Te.prototype.next=Ph.next,Te.prototype.plant=Ph.plant,Te.prototype.reverse=Ph.reverse,Te.prototype.toJSON=Te.prototype.valueOf=Te.prototype.value=Ph.value,Te.prototype.first=Te.prototype.head,Nh&&(Te.prototype[Nh]=Ph.toIterator);var Hh=function(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}(Object.freeze({__proto__:null,add:B,after:G,ary:vt,assign:on,assignIn:sn,assignInWith:fn,assignWith:dn,at:$n,attempt:er,before:tr,bind:rr,bindAll:ir,bindKey:ur,camelCase:lo,capitalize:Or,castArray:so,ceil:ho,chain:vo,chunk:mo,clamp:bo,clone:yi,cloneDeep:mi,cloneDeepWith:_i,cloneWith:bi,commit:xi,compact:Ci,concat:ji,cond:Gi,conforms:Qi,conformsTo:Xi,constant:He,countBy:ca,create:fa,curry:pa,curryRight:da,debounce:ya,deburr:Rr,defaultTo:ma,defaults:Ca,defaultsDeep:ka,defer:La,delay:Ba,difference:qa,differenceBy:Fa,differenceWith:Ha,divide:Ka,drop:Va,dropRight:Ya,dropRightWhile:Ga,dropWhile:Ja,each:Xa,eachRight:ou,endsWith:iu,entries:uu,entriesIn:lu,eq:yt,escape:pu,escapeRegExp:vu,every:mu,extend:sn,extendWith:fn,fill:bu,filter:Cu,find:Au,findIndex:Eu,findKey:Su,findLast:Pu,findLastIndex:ku,findLastKey:Ru,first:Lu,flatMap:Tu,flatMapDeep:zu,flatMapDepth:qu,flatten:Un,flattenDeep:Uu,flattenDepth:Fu,flip:$u,floor:Hu,flow:Vu,flowRight:Yu,forEach:Xa,forEachRight:ou,forIn:Zu,forInRight:Gu,forOwn:Ju,forOwnRight:Qu,fromPairs:Xu,functions:tl,functionsIn:nl,get:Bn,groupBy:il,gt:ll,gte:sl,has:pl,hasIn:Hi,head:Lu,identity:J,inRange:vl,includes:bl,indexOf:Cl,initial:jl,intersection:Ol,intersectionBy:Ml,intersectionWith:Il,invert:Ll,invertBy:zl,invoke:Ul,invokeMap:$l,isArguments:Wt,isArray:k,isArrayBuffer:Kl,isArrayLike:Et,isArrayLikeObject:wa,isBoolean:Vl,isBuffer:qt,isDate:Zl,isElement:Gl,isEmpty:Ql,isEqual:Xl,isEqualWith:es,isError:Qn,isFinite:ns,isFunction:Q,isInteger:rs,isLength:wt,isMap:si,isMatch:os,isMatchWith:is,isNaN:us,isNative:ss,isNil:cs,isNull:fs,isNumber:as,isObject:N,isObjectLike:O,isPlainObject:Jn,isRegExp:ds,isSafeInteger:hs,isSet:fi,isString:gl,isSymbol:S,isTypedArray:Yt,isUndefined:vs,isWeakMap:gs,isWeakSet:ys,iteratee:ms,join:bs,kebabCase:Cs,keyBy:ws,keys:tn,keysIn:un,last:Na,lastIndexOf:Os,lodash:Te,lowerCase:Ms,lowerFirst:Is,lt:Ps,lte:Rs,map:Bu,mapKeys:Ls,mapValues:Ws,matches:Bs,matchesProperty:Ts,max:zs,maxBy:qs,mean:Fs,meanBy:$s,memoize:On,merge:Ks,mergeWith:Ia,method:Ys,methodOf:Gs,min:Js,minBy:Qs,mixin:Xs,multiply:ec,negate:tc,next:oc,noop:Oe,now:ha,nth:ac,nthArg:uc,omit:pc,omitBy:gc,once:yc,orderBy:bc,over:Cc,overArgs:Ac,overEvery:Oc,overSome:Sc,pad:Zc,padEnd:Gc,padStart:Jc,parseInt:ef,partial:nf,partialRight:of,partition:uf,pick:sf,pickBy:vc,plant:cf,property:Yi,propertyOf:ff,pull:gf,pullAll:vf,pullAllBy:yf,pullAllWith:mf,pullAt:Cf,random:Mf,range:Rf,rangeRight:Lf,rearg:Bf,reduce:Df,reduceRight:qf,reject:Nf,remove:Uf,repeat:Ff,replace:$f,rest:Hf,result:Kf,reverse:Yf,round:Zf,sample:Qf,sampleSize:np,set:rp,setWith:op,shuffle:up,size:lp,slice:sp,snakeCase:fp,some:dp,sortBy:vp,sortedIndex:bp,sortedIndexBy:xp,sortedIndexOf:Cp,sortedLastIndex:jp,sortedLastIndexBy:wp,sortedLastIndexOf:Ep,sortedUniq:Op,sortedUniqBy:Sp,split:Mp,spread:kp,startCase:Rp,startsWith:Lp,stubArray:Mo,stubFalse:Bt,stubObject:Wp,stubString:Bp,stubTrue:Tp,subtract:Dp,sum:zp,sumBy:qp,tail:Np,take:Up,takeRight:Fp,takeRightWhile:$p,takeWhile:Hp,tap:Kp,template:ld,templateSettings:Xp,throttle:sd,thru:cd,times:dd,toArray:rc,toFinite:Y,toInteger:Z,toIterator:hd,toJSON:gd,toLength:_u,toLower:yd,toNumber:K,toPairs:uu,toPairsIn:lu,toPath:md,toPlainObject:Aa,toSafeInteger:_d,toString:Pn,toUpper:bd,transform:xd,trim:wd,trimEnd:Ed,trimStart:Od,truncate:Md,unary:Id,unescape:Ld,union:Dd,unionBy:qd,unionWith:Nd,uniq:Ud,uniqBy:Fd,uniqWith:$d,uniqueId:Kd,unset:Vd,unzip:Zd,unzipWith:Gd,update:Qd,updateWith:Xd,upperCase:th,upperFirst:Ar,value:gd,valueOf:gd,values:ml,valuesIn:nh,without:oh,words:oo,wrap:ih,wrapperAt:uh,wrapperChain:lh,wrapperCommit:xi,wrapperLodash:Te,wrapperNext:oc,wrapperPlant:cf,wrapperReverse:sh,wrapperToIterator:hd,wrapperValue:gd,xor:fh,xorBy:dh,xorWith:hh,zip:vh,zipObject:yh,zipObjectDeep:mh,zipWith:xh,default:Te})),Kh={};Object.defineProperty(Kh,"__esModule",{value:!0});class Vh extends CustomEvent{constructor(e,t=!1){super(Vh.TYPE,{bubbles:!0,detail:{update:e,reset:t}}),this.update=e,this.reset=t}}Vh.TYPE="model.updated",Kh.ModelUpdatedEvent=Vh;class Yh extends CustomEvent{constructor(e,t){super(Yh.TYPE,{bubbles:!0,detail:{src:e,done:t}}),this.src=e,this.done=t}}Yh.TYPE="delete.image",Kh.DeleteImageEvent=Yh;class Zh extends CustomEvent{constructor(e){super(Zh.TYPE,{bubbles:!0,detail:e}),this.handler=e}}Zh.TYPE="insert.image",Kh.InsertImageEvent=Zh;class Gh extends CustomEvent{constructor(e,t){super(Gh.TYPE,{bubbles:!0,detail:{src:e,done:t}}),this.src=e,this.done=t}}Gh.TYPE="delete.sound",Kh.DeleteSoundEvent=Gh;class Jh extends CustomEvent{constructor(e){super(Jh.TYPE,{bubbles:!0,detail:e}),this.handler=e}}Jh.TYPE="insert.sound",Kh.InsertSoundEvent=Jh;var Qh={},Xh={},ev={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}(ev),s(ev.exports);var tv={};Object.defineProperty(tv,"__esModule",{value:!0}),tv.stripHtmlTags=tv.removeUnwantedCharacters=tv.processMarkup=tv.getAdjustedLength=tv.decodeHTML=tv.createSlateMarkup=void 0;var nv=Hh;const rv="imes|riangle|an|heta|herefore",ov="throot|parallel|cong|approx|eq|e|sim",iv=new RegExp(`(\\t(?!${rv}))|(\\n(?!${ov}))|(\\\\t(?!${rv}))|(\\\\n(?!${ov}))`,"g"),av=e=>e.replace(iv,"").replace(/\\"/g,'"').replace(/\\\//g,"/");tv.removeUnwantedCharacters=av,tv.processMarkup=e=>{const t=((e="")=>{const t=document.createElement("div");return t.innerHTML=e.trim(),t})(av(e||"")||"");let n=0;return t.querySelectorAll('[data-type="explicit_constructed_response"]').forEach(e=>{e.replaceWith(`{{${n++}}}`)}),t.innerHTML};const uv=/\{\{(\d+)\}\}/g;tv.createSlateMarkup=(e,t)=>e?av(e).replace(uv,(e,n)=>{const r=t[n][0].label||"";return`<span data-type="explicit_constructed_response" data-index="${n}" data-value="${(0,nv.escape)(r)}"></span>`}):"",tv.getAdjustedLength=e=>e<=2?e+2:e<=4?e+3:e<=6?e+4:e+5,tv.stripHtmlTags=e=>"string"!=typeof e?"":e.replace(/<\/?[^>]+(>|$)/g,""),tv.decodeHTML=e=>(new DOMParser).parseFromString(e,"text/html").body.textContent||"";const lv=e,sv=t,cv=n,fv=u;function pv(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}var dv=f.exports;Object.defineProperty(Xh,"__esModule",{value:!0}),Xh.default=Xh.ECRToolbar=void 0;var hv=dv(ev.exports),vv=dv(p.exports),gv=dv(lv),yv=dv(sv),mv=cv,_v=dv(fv),bv=tv;const xv=(0,mv.styled)(_v.default)(({theme:e})=>({backgroundColor:e.palette.common.white,outline:"none",lineHeight:"15px"}));class Cv extends gv.default.Component{constructor(...e){super(...e),(0,vv.default)(this,"state",{markup:"",toolbarStyle:{}}),(0,vv.default)(this,"onDone",e=>{const{editor:t,node:n,onToolbarDone:r,onChangeResponse:o,pos:i}=this.props,a=(0,bv.stripHtmlTags)(e);this.setState({markup:a});const{tr:u}=t.state,l=u.doc.nodeAt(i);if(!l||l.isText||!l.isAtom||!l.isInline)return!1;u.setNodeMarkup(i,void 0,{...n.attrs,value:a}),t.view.dispatch(u),r(!0),o(a)}),(0,vv.default)(this,"onRespAreaChange",e=>{this.setState({respAreaMarkup:e})}),(0,vv.default)(this,"onKeyDown",e=>"Enter"===e.key),(0,vv.default)(this,"onBlur",()=>{this.clickedInside&&(this.clickedInside=!1)})}componentDidMount(){const{correctChoice:e,node:t,editor:n}=this.props,r=e||{},o=n.view.nodeDOM(n.state.selection.from);if(1===pv([o,"optionalAccess",e=>e.nodeType])){const e=o.getBoundingClientRect(),t=o.closest(".tiptap").getBoundingClientRect();e.top,t.top,e.left,t.left,this.setState({markup:r.label,toolbarStyle:{position:"absolute",top:0,left:0,width:e.width-4+"px"}})}}render(){const{maxLengthPerChoiceEnabled:e,pluginProps:t,spellCheck:n}=this.props,{markup:r,toolbarStyle:o}=this.state,i=e?{}:{maxLength:25};return gv.default.createElement("div",{style:o},gv.default.createElement(xv,(0,hv.default)({autoFocus:!0,disableUnderline:!0,onChange:e=>{this.preventDone||this.onRespAreaChange(e)},onDone:e=>{this.preventDone||this.onDone(e)},onBlur:e=>{this.preventDone=e.relatedTarget&&e.relatedTarget.closest(".insert-character-dialog"),this.onBlur(e)},onKeyDown:this.onKeyDown,markup:r||"",activePlugins:["languageCharacters"],pluginProps:t,languageCharactersProps:[{language:"spanish"}],minHeight:"15px",maxHeight:"15px",spellCheck:n,autoWidthToolbar:!0,toolbarOpts:{minWidth:"auto",isHidden:!!pv([t,"optionalAccess",e=>e.characters,"optionalAccess",e=>e.disabled])}},i)))}}Xh.ECRToolbar=Cv,(0,vv.default)(Cv,"propTypes",{correctChoice:yv.default.object,node:yv.default.object,pos:yv.default.number,onDone:yv.default.func,onChangeResponse:yv.default.func.isRequired,onToolbarDone:yv.default.func.isRequired,value:yv.default.shape({change:yv.default.func.isRequired,document:yv.default.shape({getNextText:yv.default.func.isRequired})}),editor:yv.default.object,maxLengthPerChoiceEnabled:yv.default.bool,pluginProps:yv.default.object,spellCheck:yv.default.bool}),Xh.default=Cv;var jv={},wv={};const Ev=e,Av=t,{Button:Ov}=r,{IconButton:Sv}=r,{MenuItem:Mv}=r,{Select:Iv}=r,{TextField:kv}=r,{Delete:Pv}=o,Rv=n,Lv=u;function Wv(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}var Bv=f.exports;Object.defineProperty(wv,"__esModule",{value:!0}),wv.default=wv.Choice=wv.AlternateSection=void 0;var Tv=Bv(ev.exports),Dv=Bv(p.exports),zv=Bv(Ev),qv=Bv(Av),Nv=Hh,Uv=Bv(Ov),Fv=Bv(Pv),$v=Bv(Sv),Hv=Bv(Mv),Kv=Bv(Iv),Vv=Bv(kv),Yv=Rv,Zv=Bv(Lv),Gv=tv;const Jv=(0,Yv.styled)("div")(({theme:e})=>({marginBottom:e.spacing(.5)})),Qv=(0,Yv.styled)("div")(({theme:e})=>({alignItems:"flex-start",flexDirection:"column",display:"flex",paddingTop:e.spacing(2.5),"& > *":{marginBottom:e.spacing(2.5),width:"100%"}})),Xv=(0,Yv.styled)(Zv.default)(({theme:e,hasError:t})=>({flex:"1",marginRight:e.spacing(2.5),...t&&{border:`2px solid ${e.palette.error.main}`,borderRadius:"6px"}})),eg=(0,Yv.styled)($v.default)(({theme:e})=>({"& svg":{fill:e.palette.grey[600]}})),tg=(0,Yv.styled)("div")({alignItems:"flex-end",display:"flex",justifyContent:"space-between",width:"100%"}),ng=(0,Yv.styled)("div")({alignItems:"center",display:"flex"}),rg=(0,Yv.styled)(Vv.default)(({theme:e})=>({width:"230px",marginRight:e.spacing(2.5),"& .MuiInput-underline:before":{borderBottomColor:e.palette.divider},"& .MuiInput-underline:hover:not(.Mui-disabled):before":{borderBottomColor:e.palette.text.primary},"& .MuiInput-underline:after":{borderBottomColor:e.palette.primary.main}})),og=(0,Yv.styled)("div")(({theme:e})=>({fontSize:e.typography.fontSize-2,color:e.palette.error.main,paddingTop:e.spacing(.5)})),ig=(0,Yv.styled)("div")({alignItems:"center",display:"flex",justifyContent:"space-between"});class ag extends zv.default.Component{constructor(...e){super(...e),(0,Dv.default)(this,"state",{value:this.props.markup}),(0,Dv.default)(this,"updateText",(0,Nv.debounce)(this.props.onChange,300)),(0,Dv.default)(this,"onChange",e=>{const t=(0,Gv.stripHtmlTags)(e);this.setState({value:t}),this.updateText(t)}),(0,Dv.default)(this,"onKeyDown",e=>{if("Enter"===e.key)return!0})}UNSAFE_componentWillReceiveProps(e){e.markup&&this.setState({value:e.markup})}render(){const{value:e}=this.state,{onDelete:t,spellCheck:n,error:r,showMaxLength:o,pluginProps:i}=this.props,a=o?{}:{maxLength:25};return zv.default.createElement(zv.default.Fragment,null,zv.default.createElement(ig,null,zv.default.createElement(Xv,(0,Tv.default)({hasError:!!r,disableUnderline:!0,onChange:this.onChange,onKeyDown:this.onKeyDown,markup:e||"",activePlugins:["languageCharacters"],pluginProps:i,languageCharactersProps:[{language:"spanish"}],spellCheck:n,autoWidthToolbar:!0,toolbarOpts:{minWidth:"auto",isHidden:!!Wv([i,"optionalAccess",e=>e.characters,"optionalAccess",e=>e.disabled])}},a)),zv.default.createElement(eg,{"aria-label":"delete",onClick:t,size:"large"},zv.default.createElement(Fv.default,null))),r&&zv.default.createElement(og,null,r))}}wv.Choice=ag,(0,Dv.default)(ag,"propTypes",{error:qv.default.string,markup:qv.default.string,onChange:qv.default.func.isRequired,onDelete:qv.default.func.isRequired,value:qv.default.string,spellCheck:qv.default.bool,showMaxLength:qv.default.bool,pluginProps:qv.default.object});class ug extends zv.default.Component{constructor(...e){super(...e),(0,Dv.default)(this,"state",{}),(0,Dv.default)(this,"updateChoicesIfNeeded",e=>{this.state.choices&&(0,Nv.isEqual)(e.choices,this.state.choices)&&(0,Nv.isEqual)(e.choices,this.props.choices)||this.setState({choices:e.choices})}),(0,Dv.default)(this,"handleSelect",e=>{const{onSelect:t,selectChoices:n}=this.props,{value:r}=e.target;t(n.find(e=>e.value===r))}),(0,Dv.default)(this,"onAddChoice",()=>{const{choices:e}=this.state;if(e.length&&""!==e[e.length-1].label){const t=(0,Nv.max)(e.map(e=>parseInt(e.value)).filter(e=>!isNaN(e)))||0;this.setState({choices:[...e,{value:`${t+1}`,label:""}]})}}),(0,Dv.default)(this,"onChoiceChanged",(e,t,n)=>{const{choiceChanged:r,lengthChanged:o,maxLength:i,choices:a}=this.props,u=a.map(e=>(0,Gv.decodeHTML)(e.label||"").length);u[n]=(0,Gv.decodeHTML)(t).length;const l=Math.max(...u);r({...e,label:t}),(l>i||l+10<=i)&&o((0,Gv.getAdjustedLength)(l))}),(0,Dv.default)(this,"onRemoveChoice",e=>{const{choiceRemoved:t}=this.props;t(e.value)}),(0,Dv.default)(this,"getChoicesMaxLength",()=>{const{choices:e}=this.state;if(!e)return 1;const t=e.map(e=>(0,Gv.decodeHTML)(e.label||"").length);return Math.max(...t)}),(0,Dv.default)(this,"changeLength",e=>{const{lengthChanged:t}=this.props,n=parseInt(e.target.value,10),r=this.getChoicesMaxLength();n&&n>=r&&n<=r+10&&t(n)})}UNSAFE_componentWillReceiveProps(e){this.updateChoicesIfNeeded(e)}componentDidMount(){this.updateChoicesIfNeeded(this.props)}render(){const{selectChoices:e,maxLength:t,showMaxLength:n,value:r,spellCheck:o,errors:i,pluginProps:a}=this.props,{choices:u}=this.state,l=this.getChoicesMaxLength();return zv.default.createElement(Jv,null,zv.default.createElement(tg,null,zv.default.createElement(Kv.default,{variant:"standard",displayEmpty:!0,onChange:this.handleSelect,value:r||"",readOnly:n,MenuProps:{transitionDuration:{enter:225,exit:195}}},zv.default.createElement(Hv.default,{value:""},zv.default.createElement("em",null,r?"Remove selection":"Select a response")),e.map((e,t)=>zv.default.createElement(Hv.default,{key:t,value:Wv([e,"optionalAccess",e=>e.value])},(0,Gv.decodeHTML)(Wv([e,"optionalAccess",e=>e.label]))))),u&&u.length>0&&zv.default.createElement(ng,null,t&&n&&zv.default.createElement(rg,{variant:"standard",label:"Maximum length (characters)",type:"number",inputProps:{min:l,max:l+10},value:t,onChange:this.changeLength}),zv.default.createElement(Uv.default,{variant:"contained",color:"primary",onClick:this.onAddChoice},"Add"))),i&&i[0]&&zv.default.createElement(og,null,i[0]),zv.default.createElement(Qv,null,u&&u.map((e,t)=>t>0&&zv.default.createElement(ag,{key:t,markup:e.label,onChange:n=>this.onChoiceChanged(e,n,t),onDelete:()=>this.onRemoveChoice(e),spellCheck:o,error:i&&i[t],showMaxLength:n,pluginProps:a}))))}}wv.AlternateSection=ug,(0,Dv.default)(ug,"propTypes",{choices:qv.default.array,selectChoices:qv.default.array.isRequired,errors:qv.default.object,onSelect:qv.default.func.isRequired,choiceChanged:qv.default.func.isRequired,lengthChanged:qv.default.func,choiceRemoved:qv.default.func.isRequired,value:qv.default.string,maxLength:qv.default.number,showMaxLength:qv.default.bool,spellCheck:qv.default.bool,pluginProps:qv.default.object}),wv.default=ug;const lg=e,sg=t;var cg=f.exports;Object.defineProperty(jv,"__esModule",{value:!0}),jv.default=jv.AlternateResponses=void 0;var fg=cg(p.exports),pg=cg(lg),dg=cg(sg),hg=Hh,vg=cg(wv);class gg extends pg.default.Component{constructor(...e){super(...e),(0,fg.default)(this,"state",{maxLengthPerChoice:(0,hg.cloneDeep)(this.props.model.maxLengthPerChoice)}),(0,fg.default)(this,"updateChoicesIfNeeded",e=>{if(!this.state.choices||!(0,hg.isEqual)(this.state.choices,e.model.choices)||!(0,hg.isEqual)(e.model.choices,this.props.model.choices)||this.state.values&&Object.keys(this.state.values).length!==Object.keys(this.props.model.choices).length||e.maxLengthPerChoiceEnabled!==this.props.maxLengthPerChoiceEnabled){const{choices:t,maxLengthPerChoice:n}=e.model,r=(0,hg.reduce)(t,(t,n,r)=>(n&&(e.maxLengthPerChoiceEnabled||n.length>1)&&(t[r]=n[0]),t),{});this.setState({choices:e.model.choices,values:r,maxLengthPerChoice:(0,hg.cloneDeep)(n)})}}),(0,fg.default)(this,"getRemainingChoices",e=>{const{choices:t}=this.state;return(0,hg.reduce)(t,(t,n,r)=>(n&&1===n.length&&!e&&t.push({label:n[0].label,value:r}),t),[])}),(0,fg.default)(this,"onChoiceChanged",(e,t)=>{const{onChange:n}=this.props,{choices:r}=this.state,o=r[t]||[],i=!o.find(t=>t.value===e.value),a=o.reduce((t,n)=>{const r=n.value===e.value?e:n;return t.push(r),t},[]);i&&a.push(e),n({...r,[t]:a})}),(0,fg.default)(this,"onChoiceRemoved",(e,t)=>{const{onChange:n}=this.props,{choices:r}=this.state,o=(r[t]||[]).reduce((t,n)=>(n.value===e||t.push(n),t),[]);n({...r,[t]:o})}),(0,fg.default)(this,"onSectionSelect",(e,t)=>{const{onChange:n}=this.props,{choices:r,values:o}=this.state;r[t]&&r[t].length>1?e||n({...r,[t]:[r[t][0]]}):this.setState({choices:{...r,[t]:[...r[t],{label:"",value:"1"}]},values:{...o,[t]:r[t][0]}})}),(0,fg.default)(this,"onLengthChanged",(e,t)=>{const{model:n,onLengthChange:r}=this.props,{maxLengthPerChoice:o}=n;o[t]=e,r(o)})}UNSAFE_componentWillReceiveProps(e){this.updateChoicesIfNeeded(e)}componentDidMount(){this.updateChoicesIfNeeded(this.props)}render(){const{choices:e}=this.state,{model:{maxLengthPerChoice:t,maxLengthPerChoiceEnabled:n},spellCheck:r,choicesErrors:o,pluginProps:i}=this.props;return pg.default.createElement("div",null,(0,hg.map)(e,(e,a)=>{if(e&&(n||e.length>1)){const u=this.state.values[a];return pg.default.createElement(vg.default,{key:a,value:u&&u.value,errors:o&&o[a],onSelect:e=>this.onSectionSelect(e,a),choiceChanged:e=>this.onChoiceChanged(e,a),choiceRemoved:e=>this.onChoiceRemoved(e,a),lengthChanged:e=>this.onLengthChanged(e,a),selectChoices:[u],choices:e,maxLength:t[a],showMaxLength:n,spellCheck:r,pluginProps:i})}}),e&&Object.keys(this.state.values).length!==Object.keys(e).length&&pg.default.createElement(vg.default,{value:"",onSelect:e=>this.onSectionSelect(e,e.value),choiceChanged:e=>this.onChoiceChanged(e),choiceRemoved:e=>this.onChoiceRemoved(e),selectChoices:this.getRemainingChoices(),spellCheck:r,pluginProps:i}))}}jv.AlternateResponses=gg,(0,fg.default)(gg,"propTypes",{choicesErrors:dg.default.object,model:dg.default.object.isRequired,onChange:dg.default.func.isRequired,onLengthChange:dg.default.func.isRequired,maxLengthPerChoiceEnabled:dg.default.bool.isRequired,spellCheck:dg.default.bool,pluginProps:dg.default.object}),jv.default=gg;var yg={};Object.defineProperty(yg,"__esModule",{value:!0}),yg.generateValidationMessage=void 0,yg.generateValidationMessage=e=>{const{maxResponseAreas:t}=e;return"Validation requirements:\nCorrect answers should not be blank.\nEach answer defined for a response area should be unique.\nThere should be at least 1 "+(t?`and at most ${t} `:"")+"response area"+(t?"s":"")+" defined."};const mg=e,_g=t,bg=n,{Typography:xg}=r,{Tooltip:Cg}=r,{Info:jg}=o,wg=u,Eg=l;function Ag(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}var Og=f.exports;Object.defineProperty(Qh,"__esModule",{value:!0}),Qh.default=Qh.Main=void 0;var Sg=Og(p.exports),Mg=Og(mg),Ig=Og(_g),kg=Hh,Pg=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,r,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(n=t){if(n.has(e))return n.get(e);n.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?n(o,t,r):o[t]=e[t]);return o}(e)}(wg),Rg=Eg,Lg=bg,Wg=Og(xg),Bg=Og(jg),Tg=Og(Cg),Dg=Og(Xh),zg=Og(jv),qg=tv,Ng=yg;const{toggle:Ug,Panel:Fg,dropdown:$g}=Rg.settings,Hg=(0,Lg.styled)(Rg.InputContainer)(({theme:e})=>({width:"100%",paddingTop:e.spacing(1),marginTop:e.spacing(2),marginBottom:e.spacing(2)})),Kg=(0,Lg.styled)(Pg.default)(({theme:e})=>({minHeight:"100px",paddingTop:e.spacing(1),width:"100%",'& [data-slate-editor="true"]':{minHeight:"100px"}})),Vg=(0,Lg.styled)(Wg.default)(({theme:e})=>({fontSize:e.typography.fontSize+2})),Yg=(0,Lg.styled)(Tg.default)(({theme:e})=>({"& .MuiTooltip-tooltip":{fontSize:e.typography.fontSize-2,whiteSpace:"pre",maxWidth:"500px"}})),Zg=(0,Lg.styled)("div")(({theme:e})=>({fontSize:e.typography.fontSize-2,color:e.palette.error.main,paddingTop:e.spacing(1)})),Gg=(0,Lg.styled)("div")({display:"flex",alignItems:"center"}),Jg=(0,Lg.styled)(Wg.default)(({theme:e})=>({fontSize:e.typography.fontSize+2,marginTop:e.spacing(3),marginBottom:e.spacing(1)}));class Qg extends Mg.default.Component{constructor(...e){super(...e),(0,Sg.default)(this,"state",{}),(0,Sg.default)(this,"onModelChange",e=>{this.props.onModelChanged({...e})}),(0,Sg.default)(this,"onPromptChanged",e=>{this.props.onModelChanged({prompt:e})}),(0,Sg.default)(this,"onRationaleChanged",e=>{this.props.onModelChanged({rationale:e})}),(0,Sg.default)(this,"onTeacherInstructionsChanged",e=>{const{onModelChanged:t}=this.props;t({teacherInstructions:e})}),(0,Sg.default)(this,"onMarkupChanged",e=>{this.props.onModelChanged({slateMarkup:e})}),(0,Sg.default)(this,"onResponsesChanged",e=>{this.props.onModelChanged({choices:e})}),(0,Sg.default)(this,"onLengthChanged",e=>{const{onModelChanged:t}=this.props;t({maxLengthPerChoice:e})}),(0,Sg.default)(this,"onChangeResponse",(e,t)=>{const{model:n,onModelChanged:r}=this.props,{choices:o}=n;let{maxLengthPerChoice:i}=n;const a=(0,qg.decodeHTML)(t||"").length;if(o[e]&&o[e].length)o[e][0].label=t||"",i&&(i[e]<a||i[e]>a+10)&&(i[e]=(0,qg.getAdjustedLength)(a));else{o[e]=[{label:t||"",value:"0"}];const n=e>i.length?e-i.length:0;i=[...i,...Array(n).fill(1)],i.splice(e,0,(0,qg.getAdjustedLength)(a))}r({choices:o,maxLengthPerChoice:i})}),(0,Sg.default)(this,"onChange",e=>{const{model:{choices:t,maxLengthPerChoice:n},onModelChanged:r}=this.props,o=(e=>{const t=document.createElement("div");return t.innerHTML=e.trim(),t})(e),i=o.querySelectorAll('[data-type="explicit_constructed_response"]'),a={},u=[];i.forEach((e,r)=>{const o=(0,kg.cloneDeep)(t[e.dataset.index]);o&&(o[0]={label:e.dataset.value||"",value:"0"},u[r]=n[e.dataset.index]),a[r]=o,e.dataset.index=r}),this.setState({cachedChoices:void 0},()=>r({choices:a,slateMarkup:o.innerHTML,maxLengthPerChoice:u}))}),(0,Sg.default)(this,"onHandleAreaChange",(0,kg.throttle)(e=>{const{model:{choices:t},onModelChanged:n}=this.props,{cachedChoices:r}=this.state;if(!e)return;const o=t?(0,kg.cloneDeep)(t):{},i=r?(0,kg.cloneDeep)(r):{};e.forEach(e=>{const t=e.index;!o[t]&&i[t]?(Object.assign(o,(0,kg.pick)(i,t)),Object.prototype.hasOwnProperty.call(i,t)&&delete i[t]):(Object.assign(i,(0,kg.pick)(o,t)),Object.prototype.hasOwnProperty.call(o,t)&&delete o[t])}),this.setState({cachedChoices:i},()=>n({choices:o}))},500,{trailing:!1,leading:!0}))}componentDidMount(){const{model:{slateMarkup:e,choices:t,maxLengthPerChoice:n=[]},onModelChanged:r}=this.props,o=!n.length;this.setState({markup:e}),Object.values(t).forEach((e,t)=>{const r=e.map(e=>(0,qg.decodeHTML)(e.label||"").length),i=Math.max(...r);(o||!n[t]||n[t]<i||n[t]>i+10)&&(n[t]=(0,qg.getAdjustedLength)(i))}),r({maxLengthPerChoice:n})}render(){const{model:e,configuration:t,onConfigurationChanged:n,imageSupport:r,uploadSoundSupport:o}=this.props,{baseInputConfiguration:i={},contentDimensions:a={},maxImageWidth:u={},maxImageHeight:l={},maxLengthPerChoice:s={},maxResponseAreas:c,partialScoring:f={},playerSpellCheck:p={},prompt:d={},rationale:h={},template:v={},settingsPanelDisabled:g,spellCheck:y={},editSource:m={},teacherInstructions:_={},withRubric:b={},mathMlOptions:x={},language:C={},languageChoices:j={},spanishButton:w={},responseAreaInputConfiguration:E={}}=t||{},{errors:A,extraCSSRules:O,maxLengthPerChoiceEnabled:S,promptEnabled:M,rationaleEnabled:I,spellCheckEnabled:k,teacherInstructionsEnabled:P,toolbarEditorPosition:R}=e||{},{choices:L={},prompt:W,rationale:B,responseAreas:T,teacherInstructions:D}=A||{},z=(0,Ng.generateValidationMessage)(t),q=u&&u.prompt,N=l&&l.prompt,U={position:"top"===R?"top":"bottom"},F={partialScoring:f.settings&&Ug(f.label),maxLengthPerChoiceEnabled:s.settings&&Ug(s.label),"language.enabled":C.settings&&Ug(C.label,!0),language:C.settings&&C.enabled&&$g(j.label,j.options),"responseAreaInputConfiguration.inputConfiguration.characters.disabled":w.settings&&Ug(w.label,!0)},$={teacherInstructionsEnabled:_.settings&&Ug(_.label),rationaleEnabled:h.settings&&Ug(h.label),promptEnabled:d.settings&&Ug(d.label),spellCheckEnabled:y.settings&&Ug(y.label),playerSpellCheckEnabled:p.settings&&Ug(p.label),rubricEnabled:Ag([b,"optionalAccess",e=>e.settings])&&Ug(Ag([b,"optionalAccess",e=>e.label])),"editSource.enabled":Ag([m,"optionalAccess",e=>e.settings])&&Ug(m.label,!0)},H=(e={})=>({...i,...e});return Mg.default.createElement(Rg.layout.ConfigLayout,{extraCSSRules:O,dimensions:a,hideSettings:g,settings:Mg.default.createElement(Fg,{model:e,configuration:t,onChangeModel:e=>this.onModelChange(e),onChangeConfiguration:e=>n(e,!0),groups:{Settings:F,Properties:$}})},P&&Mg.default.createElement(Hg,{label:_.label},Mg.default.createElement(Pg.default,{className:"prompt",markup:e.teacherInstructions||"",onChange:this.onTeacherInstructionsChanged,imageSupport:r,nonEmpty:!1,error:D,toolbarOpts:U,pluginProps:H(Ag([_,"optionalAccess",e=>e.inputConfiguration])),spellCheck:k,maxImageWidth:u&&u.teacherInstructions||q,maxImageHeight:l&&l.teacherInstructions||N,uploadSoundSupport:o,languageCharactersProps:[{language:"spanish"},{language:"special"}],mathMlOptions:x,autoWidthToolbar:!0}),D&&Mg.default.createElement(Zg,null,D)),M&&Mg.default.createElement(Hg,{label:d.label},Mg.default.createElement(Pg.default,{className:"prompt",markup:e.prompt,onChange:this.onPromptChanged,imageSupport:r,nonEmpty:!1,disableUnderline:!0,error:W,toolbarOpts:U,pluginProps:H(Ag([d,"optionalAccess",e=>e.inputConfiguration])),spellCheck:k,maxImageWidth:q,maxImageHeight:N,uploadSoundSupport:o,languageCharactersProps:[{language:"spanish"},{language:"special"}],mathMlOptions:x,autoWidthToolbar:!0}),W&&Mg.default.createElement(Zg,null,W)),Mg.default.createElement(Gg,null,Mg.default.createElement(Vg,{component:"div"},"Define Template, Choices, and Correct Responses"),Mg.default.createElement(Yg,{disableFocusListener:!0,disableTouchListener:!0,placement:"right",title:z},Mg.default.createElement(Bg.default,{fontSize:"small",color:"primary",style:{marginLeft:"8px"}}))),Mg.default.createElement(Kg,{activePlugins:Pg.ALL_PLUGINS,toolbarOpts:{position:"top"},spellCheck:k,pluginProps:H(Ag([v,"optionalAccess",e=>e.inputConfiguration])),responseAreaProps:{type:"explicit-constructed-response",options:{duplicates:!0},maxResponseAreas:c,respAreaToolbar:(e,t,n)=>{const[r,o]=e,{model:i}=this.props,a=(i.choices[r.attrs.index]||[])[0];return()=>Mg.default.createElement(Dg.default,{onChangeResponse:e=>this.onChangeResponse(r.attrs.index,e),node:r,pos:o,editor:t,onToolbarDone:n,correctChoice:a,maxLengthPerChoiceEnabled:S,pluginProps:H(Ag([E,"optionalAccess",e=>e.inputConfiguration]))})},error:()=>L,onHandleAreaChange:this.onHandleAreaChange},markup:e.slateMarkup,onChange:this.onChange,imageSupport:r,disableImageAlignmentButtons:!0,onBlur:this.onBlur,disabled:!1,highlightShape:!1,error:T,uploadSoundSupport:o,languageCharactersProps:[{language:"spanish"},{language:"special"}],mathMlOptions:x,autoWidthToolbar:!0}),T&&Mg.default.createElement(Zg,null,T),!(0,kg.isEmpty)(e.choices)&&Mg.default.createElement(Jg,null,"Define Alternates "+(S?"and Character Limits":"")),Mg.default.createElement(zg.default,{model:e,onChange:this.onResponsesChanged,onLengthChange:this.onLengthChanged,maxLengthPerChoiceEnabled:S,spellCheck:k,choicesErrors:L,pluginProps:H(Ag([E,"optionalAccess",e=>e.inputConfiguration]))}),I&&Mg.default.createElement(Hg,{label:h.label},Mg.default.createElement(Pg.default,{className:"prompt",markup:e.rationale||"",onChange:this.onRationaleChanged,imageSupport:r,error:B,toolbarOpts:U,pluginProps:H(Ag([h,"optionalAccess",e=>e.inputConfiguration])),spellCheck:k,maxImageWidth:u&&u.rationale||q,maxImageHeight:l&&l.rationale||N,uploadSoundSupport:o,languageCharactersProps:[{language:"spanish"},{language:"special"}],mathMlOptions:x,autoWidthToolbar:!0}),B&&Mg.default.createElement(Zg,null,B)))}}Qh.Main=Qg,(0,Sg.default)(Qg,"propTypes",{configuration:Ig.default.object.isRequired,model:Ig.default.object.isRequired,disableSidePanel:Ig.default.bool,onModelChanged:Ig.default.func.isRequired,onConfigurationChanged:Ig.default.func.isRequired,imageSupport:Ig.default.shape({add:Ig.default.func.isRequired,delete:Ig.default.func.isRequired}),uploadSoundSupport:Ig.default.object}),Qh.default=Qg;var Xg={};Object.defineProperty(Xg,"__esModule",{value:!0}),Xg.default=void 0,Xg.default={model:{choices:{},displayType:"block",markup:"",maxLengthPerChoiceEnabled:!0,playerSpellCheckEnabled:!0,prompt:"",promptEnabled:!0,rationale:"",rationaleEnabled:!0,spellCheckEnabled:!0,studentInstructionsEnabled:!0,teacherInstructions:"",teacherInstructionsEnabled:!0,toolbarEditorPosition:"bottom",responseAreaInputConfiguration:{}},configuration:{baseInputConfiguration:{h3:{disabled:!0},html:{disabled:!0},audio:{disabled:!1},video:{disabled:!1},image:{disabled:!1},textAlign:{disabled:!0},showParagraphs:{disabled:!1},separateParagraphs:{disabled:!0}},prompt:{settings:!0,label:"Prompt",inputConfiguration:{audio:{disabled:!1},video:{disabled:!1},image:{disabled:!1}},required:!1},partialScoring:{settings:!1,label:"Allow Partial Scoring"},rationale:{settings:!0,label:"Rationale",inputConfiguration:{audio:{disabled:!1},video:{disabled:!1},image:{disabled:!1}},required:!1},settingsPanelDisabled:!1,spellCheck:{label:"Spellcheck",settings:!1,enabled:!0},editSource:{label:"Edit Source",settings:!1,enabled:!1},playerSpellCheck:{label:"Student Spellcheck",settings:!0,enabled:!0},teacherInstructions:{settings:!0,label:"Teacher Instructions",inputConfiguration:{audio:{disabled:!1},video:{disabled:!1},image:{disabled:!1}},required:!1},template:{inputConfiguration:{audio:{disabled:!1},video:{disabled:!1},image:{disabled:!1},h3:{disabled:!0},blockquote:{disabled:!0}}},maxLengthPerChoice:{settings:!0,label:"Maximum Length Per Choice"},maxResponseAreas:10,maxImageWidth:{teacherInstructions:300,prompt:300,rationale:300},maxImageHeight:{teacherInstructions:300,prompt:300,rationale:300},withRubric:{settings:!1,label:"Add Rubric"},mathMlOptions:{mmlOutput:!1,mmlEditing:!1},language:{settings:!1,label:"Specify Language",enabled:!1},languageChoices:{label:"Language Choices",options:[]},responseAreaInputConfiguration:{inputConfiguration:{characters:{disabled:!0}}},spanishButton:{settings:!0,label:"Disable Spanish Characters"}}};const ey=e,ty=a,ny=i;function ry(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}var oy=f.exports;Object.defineProperty(c,"__esModule",{value:!0});var iy=c.default=void 0,ay=oy(p.exports),uy=oy(ey),ly=ty,sy=oy(ny),cy=Hh,fy=Kh,py=oy(Qh),dy=oy(Xg),hy=tv;const vy=(0,sy.default)("explicit-constructed-response:configure");class gy extends HTMLElement{constructor(){super(),(0,ay.default)(this,"onModelChanged",(e,t)=>{this._model=gy.prepareModel({...this._model,...e}),this._render(),this.dispatchModelUpdated(t)}),(0,ay.default)(this,"onConfigurationChanged",e=>{this._configuration=e;const t=ry([this,"access",e=>e._configuration,"optionalAccess",e=>e.responseAreaInputConfiguration,"optionalAccess",e=>e.inputConfiguration]);this._model={...this._model,responseAreaInputConfiguration:t},this.onModelChanged(this._model)}),this._root=null,this._model=gy.prepareModel(),this._configuration=dy.default.configuration}set model(e){this._model=gy.prepareModel(e),this._model.responseAreaInputConfiguration&&(this._model.responseAreaInputConfiguration=ry([this,"access",e=>e._configuration,"access",e=>e.responseAreaInputConfiguration,"optionalAccess",e=>e.inputConfiguration])),this._render()}set configuration(e){this._configuration=(0,cy.defaults)(e,dy.default.configuration),ry([e,"access",e=>e.language,"optionalAccess",e=>e.enabled])?ry([e,"access",e=>e.languageChoices,"optionalAccess",e=>e.options,"optionalAccess",e=>e.length])&&(this._model.language=e.languageChoices.options[0].value):e.language.settings&&this._model.language?(this._configuration.language.enabled=!0,this._configuration.languageChoices.options&&this._configuration.languageChoices.options.length||(this._configuration.languageChoices.options=[]),this._configuration.languageChoices.options.find(e=>e.value===this._model.language)||this._configuration.languageChoices.options.push({value:this._model.language,label:this._model.language})):delete this._model.language,this._render()}set disableSidePanel(e){this._disableSidePanel=e,this._render()}dispatchModelUpdated(e){const t=!!e;this.dispatchEvent(new fy.ModelUpdatedEvent(this._model,t))}insertImage(e){this.dispatchEvent(new fy.InsertImageEvent(e))}onDeleteImage(e,t){this.dispatchEvent(new fy.DeleteImageEvent(e,t))}insertSound(e){this.dispatchEvent(new fy.InsertSoundEvent(e))}onDeleteSound(e,t){this.dispatchEvent(new fy.DeleteSoundEvent(e,t))}_render(){vy("_render");let e=uy.default.createElement(py.default,{model:this._model,configuration:this._configuration,onModelChanged:this.onModelChanged,onConfigurationChanged:this.onConfigurationChanged,disableSidePanel:this._disableSidePanel,imageSupport:{add:this.insertImage.bind(this),delete:this.onDeleteImage.bind(this)},uploadSoundSupport:{add:this.insertSound.bind(this),delete:this.onDeleteSound.bind(this)}});this._root||(this._root=(0,ly.createRoot)(this)),this._root.render(e)}connectedCallback(){this._render()}disconnectedCallback(){this._root&&(this._root.unmount(),this._root=null)}}iy=c.default=gy,(0,ay.default)(gy,"prepareModel",(e={})=>{const t={...dy.default.model,...e},n=t.slateMarkup||(0,hy.createSlateMarkup)(t.markup,t.choices),r=(0,hy.processMarkup)(n);return t.choices&&Object.keys(t.choices).forEach(e=>{(0,cy.isArray)(t.choices[e])&&(t.choices[e]=(t.choices[e]||[]).map((e,t)=>e.value?e:(vy('Choice does not contain "value" property, which is required.',e),{value:`${t}`,...e})))}),{...t,slateMarkup:n,markup:r}});export{iy as default};
|
|
1
|
+
import{_dll_react as e,_dll_prop_types as t,_dll_mui__material_styles as n,_dll_mui__material as r,_dll_mui__icons_material as o,_dll_pie_lib__render_ui as i,_dll_debug as a,_dll_react_dom_client as u}from"../../../@pie-lib/shared-module@6.0.0/module/index.js";import{_dll_pie_lib__editable_html_tip_tap as l}from"../../../@pie-lib/editable-html-module@8.0.0/module/index.js";import{_dll_pie_lib__config_ui as s}from"../../../@pie-lib/config-module@5.0.0/module/index.js";function c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var f={},p={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(p),c(p.exports);var d={exports:{}},h={exports:{}},v={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}(v),c(v.exports);var g={exports:{}};!function(e){var t=v.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}(g),c(g.exports),function(e){var t=v.exports.default,n=g.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}(h),c(h.exports),function(e){var t=h.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}(d),c(d.exports);var y="object"==typeof global&&global&&global.Object===Object&&global,m="object"==typeof self&&self&&self.Object===Object&&self,_=y||m||Function("return this")(),b=_.Symbol,x=Object.prototype,C=x.hasOwnProperty,j=x.toString,w=b?b.toStringTag:void 0,E=Object.prototype.toString,A=b?b.toStringTag:void 0;function O(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":A&&A in Object(e)?function(e){var t=C.call(e,w),n=e[w];try{e[w]=void 0;var r=!0}catch(e){}var o=j.call(e);return r&&(t?e[w]=n:delete e[w]),o}(e):function(e){return E.call(e)}(e)}function S(e){return null!=e&&"object"==typeof e}function M(e){return"symbol"==typeof e||S(e)&&"[object Symbol]"==O(e)}function I(e){return"number"==typeof e?e:M(e)?NaN:+e}function k(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var P=Array.isArray,R=b?b.prototype:void 0,L=R?R.toString:void 0;function W(e){if("string"==typeof e)return e;if(P(e))return k(e,W)+"";if(M(e))return L?L.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function B(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=W(n),r=W(r)):(n=I(n),r=I(r)),o=e(n,r)}return o}}var T=B(function(e,t){return e+t},0),D=/\s/;function z(e){for(var t=e.length;t--&&D.test(e.charAt(t)););return t}var q=/^\s+/;function N(e){return e?e.slice(0,z(e)+1).replace(q,""):e}function U(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var F=/^[-+]0x[0-9a-f]+$/i,$=/^0b[01]+$/i,H=/^0o[0-7]+$/i,K=parseInt;function V(e){if("number"==typeof e)return e;if(M(e))return NaN;if(U(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=U(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=N(e);var n=$.test(e);return n||H.test(e)?K(e.slice(2),n?2:8):F.test(e)?NaN:+e}var Y=1/0;function Z(e){return e?(e=V(e))===Y||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function G(e){var t=Z(e),n=t%1;return t==t?n?t-n:t:0}function J(e,t){if("function"!=typeof t)throw new TypeError("Expected a function");return e=G(e),function(){if(--e<1)return t.apply(this,arguments)}}function Q(e){return e}function X(e){if(!U(e))return!1;var t=O(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var ee,te=_["__core-js_shared__"],ne=(ee=/[^.]+$/.exec(te&&te.keys&&te.keys.IE_PROTO||""))?"Symbol(src)_1."+ee:"",re=Function.prototype.toString;function oe(e){if(null!=e){try{return re.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var ie=/^\[object .+?Constructor\]$/,ae=Function.prototype,ue=Object.prototype,le=ae.toString,se=ue.hasOwnProperty,ce=RegExp("^"+le.call(se).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function fe(e){return!(!U(e)||function(e){return!!ne&&ne in e}(e))&&(X(e)?ce:ie).test(oe(e))}function pe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return fe(n)?n:void 0}var de=pe(_,"WeakMap"),he=de&&new de,ve=he?function(e,t){return he.set(e,t),e}:Q,ge=ve,ye=Object.create,me=function(){function e(){}return function(t){if(!U(t))return{};if(ye)return ye(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),_e=me;function be(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=_e(e.prototype),r=e.apply(n,t);return U(r)?r:n}}function xe(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 Ce=Math.max;function je(e,t,n,r){for(var o=-1,i=e.length,a=n.length,u=-1,l=t.length,s=Ce(i-a,0),c=Array(l+s),f=!r;++u<l;)c[u]=t[u];for(;++o<a;)(f||o<i)&&(c[n[o]]=e[o]);for(;s--;)c[u++]=e[o++];return c}var we=Math.max;function Ee(e,t,n,r){for(var o=-1,i=e.length,a=-1,u=n.length,l=-1,s=t.length,c=we(i-u,0),f=Array(c+s),p=!r;++o<c;)f[o]=e[o];for(var d=o;++l<s;)f[d+l]=t[l];for(;++a<u;)(p||o<i)&&(f[d+n[a]]=e[o++]);return f}function Ae(){}function Oe(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Se(){}Oe.prototype=_e(Ae.prototype),Oe.prototype.constructor=Oe;var Me=he?function(e){return he.get(e)}:Se,Ie=Me,ke={},Pe=Object.prototype.hasOwnProperty;function Re(e){for(var t=e.name+"",n=ke[t],r=Pe.call(ke,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function Le(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function We(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Be(e){if(e instanceof Oe)return e.clone();var t=new Le(e.__wrapped__,e.__chain__);return t.__actions__=We(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}Le.prototype=_e(Ae.prototype),Le.prototype.constructor=Le;var Te=Object.prototype.hasOwnProperty;function De(e){if(S(e)&&!P(e)&&!(e instanceof Oe)){if(e instanceof Le)return e;if(Te.call(e,"__wrapped__"))return Be(e)}return new Le(e)}function ze(e){var t=Re(e),n=De[t];if("function"!=typeof n||!(t in Oe.prototype))return!1;if(e===n)return!0;var r=Ie(n);return!!r&&e===r[0]}De.prototype=Ae.prototype,De.prototype.constructor=De;var qe=Date.now;function Ne(e){var t=0,n=0;return function(){var r=qe(),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 Ue=Ne(ge),Fe=/\{\n\/\* \[wrapped with (.+)\] \*/,$e=/,? & /,He=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function Ke(e){return function(){return e}}var Ve=function(){try{var e=pe(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Ye=Ve,Ze=Ye?function(e,t){return Ye(e,"toString",{configurable:!0,enumerable:!1,value:Ke(t),writable:!0})}:Q,Ge=Ne(Ze);function Je(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 Xe(e){return e!=e}function et(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,Xe,n)}function tt(e,t){return!(null==e||!e.length)&&et(e,t,0)>-1}var nt=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function rt(e,t,n){var r=t+"";return Ge(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(He,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Je(nt,function(n){var r="_."+n[0];t&n[1]&&!tt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Fe);return t?t[1].split($e):[]}(r),n)))}function ot(e,t,n,r,o,i,a,u,l,s){var c=8&t;t|=c?32:64,4&(t&=~(c?64:32))||(t&=-4);var f=[e,t,o,c?i:void 0,c?a:void 0,c?void 0:i,c?void 0:a,u,l,s],p=n.apply(void 0,f);return ze(e)&&Ue(p,f),p.placeholder=r,rt(p,e,t)}function it(e){return e.placeholder}var at=/^(?:0|[1-9]\d*)$/;function ut(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&at.test(e))&&e>-1&&e%1==0&&e<t}var lt=Math.min,st="__lodash_placeholder__";function ct(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==st||(e[n]=st,i[o++]=n)}return i}function ft(e,t,n,r,o,i,a,u,l,s){var c=128&t,f=1&t,p=2&t,d=24&t,h=512&t,v=p?void 0:be(e);return function g(){for(var y=arguments.length,m=Array(y),b=y;b--;)m[b]=arguments[b];if(d)var x=it(g),C=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(m,x);if(r&&(m=je(m,r,o,d)),i&&(m=Ee(m,i,a,d)),y-=C,d&&y<s){var j=ct(m,x);return ot(e,t,ft,g.placeholder,n,m,j,u,l,s-y)}var w=f?n:this,E=p?w[e]:e;return y=m.length,u?m=function(e,t){for(var n=e.length,r=lt(t.length,n),o=We(e);r--;){var i=t[r];e[r]=ut(i,n)?o[i]:void 0}return e}(m,u):h&&y>1&&m.reverse(),c&&l<y&&(m.length=l),this&&this!==_&&this instanceof g&&(E=v||be(E)),E.apply(w,m)}}var pt="__lodash_placeholder__",dt=Math.min,ht=Math.max;function vt(e,t,n,r,o,i,a,u){var l=2&t;if(!l&&"function"!=typeof e)throw new TypeError("Expected a function");var s=r?r.length:0;if(s||(t&=-97,r=o=void 0),a=void 0===a?a:ht(G(a),0),u=void 0===u?u:G(u),s-=o?o.length:0,64&t){var c=r,f=o;r=o=void 0}var p=l?void 0:Ie(e),d=[e,t,n,r,o,c,f,i,a,u];if(p&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=128==r&&8==n||128==r&&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 u=t[3];if(u){var l=e[3];e[3]=l?je(l,u,t[4]):u,e[4]=l?ct(e[3],pt):t[4]}(u=t[5])&&(l=e[5],e[5]=l?Ee(l,u,t[6]):u,e[6]=l?ct(e[5],pt):t[6]),(u=t[7])&&(e[7]=u),128&r&&(e[8]=null==e[8]?t[8]:dt(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(d,p),e=d[0],t=d[1],n=d[2],r=d[3],o=d[4],!(u=d[9]=void 0===d[9]?l?0:e.length:ht(d[9]-s,0))&&24&t&&(t&=-25),t&&1!=t)h=8==t||16==t?function(e,t,n){var r=be(e);return function o(){for(var i=arguments.length,a=Array(i),u=i,l=it(o);u--;)a[u]=arguments[u];var s=i<3&&a[0]!==l&&a[i-1]!==l?[]:ct(a,l);return(i-=s.length)<n?ot(e,t,ft,o.placeholder,void 0,a,s,void 0,void 0,n-i):xe(this&&this!==_&&this instanceof o?r:e,this,a)}}(e,t,u):32!=t&&33!=t||o.length?ft.apply(void 0,d):function(e,t,n,r){var o=1&t,i=be(e);return function t(){for(var a=-1,u=arguments.length,l=-1,s=r.length,c=Array(s+u),f=this&&this!==_&&this instanceof t?i:e;++l<s;)c[l]=r[l];for(;u--;)c[l++]=arguments[++a];return xe(f,o?n:this,c)}}(e,t,n,r);else var h=function(e,t,n){var r=1&t,o=be(e);return function t(){return(this&&this!==_&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return rt((p?ge:Ue)(h,d),e,t)}function gt(e,t,n){return t=n?void 0:t,vt(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function yt(e,t,n){"__proto__"==t&&Ye?Ye(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function mt(e,t){return e===t||e!=e&&t!=t}var _t=Object.prototype.hasOwnProperty;function bt(e,t,n){var r=e[t];_t.call(e,t)&&mt(r,n)&&(void 0!==n||t in e)||yt(e,t,n)}function xt(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var u=t[i],l=r?r(n[u],e[u],u,n,e):void 0;void 0===l&&(l=e[u]),o?yt(n,u,l):bt(n,u,l)}return n}var Ct=Math.max;function jt(e,t,n){return t=Ct(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=Ct(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var u=Array(t+1);++o<t;)u[o]=r[o];return u[t]=n(a),xe(e,this,u)}}function wt(e,t){return Ge(jt(e,t,Q),e+"")}function Et(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function At(e){return null!=e&&Et(e.length)&&!X(e)}function Ot(e,t,n){if(!U(n))return!1;var r=typeof t;return!!("number"==r?At(n)&&ut(t,n.length):"string"==r&&t in n)&&mt(n[t],e)}function St(e){return wt(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&&Ot(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var u=n[r];u&&e(t,u,r,i)}return t})}var Mt=Object.prototype;function It(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Mt)}function kt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Pt(e){return S(e)&&"[object Arguments]"==O(e)}var Rt=Object.prototype,Lt=Rt.hasOwnProperty,Wt=Rt.propertyIsEnumerable,Bt=Pt(function(){return arguments}())?Pt:function(e){return S(e)&&Lt.call(e,"callee")&&!Wt.call(e,"callee")};function Tt(){return!1}var Dt="object"==typeof exports&&exports&&!exports.nodeType&&exports,zt=Dt&&"object"==typeof module&&module&&!module.nodeType&&module,qt=zt&&zt.exports===Dt?_.Buffer:void 0,Nt=(qt?qt.isBuffer:void 0)||Tt,Ut={};function Ft(e){return function(t){return e(t)}}Ut["[object Float32Array]"]=Ut["[object Float64Array]"]=Ut["[object Int8Array]"]=Ut["[object Int16Array]"]=Ut["[object Int32Array]"]=Ut["[object Uint8Array]"]=Ut["[object Uint8ClampedArray]"]=Ut["[object Uint16Array]"]=Ut["[object Uint32Array]"]=!0,Ut["[object Arguments]"]=Ut["[object Array]"]=Ut["[object ArrayBuffer]"]=Ut["[object Boolean]"]=Ut["[object DataView]"]=Ut["[object Date]"]=Ut["[object Error]"]=Ut["[object Function]"]=Ut["[object Map]"]=Ut["[object Number]"]=Ut["[object Object]"]=Ut["[object RegExp]"]=Ut["[object Set]"]=Ut["[object String]"]=Ut["[object WeakMap]"]=!1;var $t="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ht=$t&&"object"==typeof module&&module&&!module.nodeType&&module,Kt=Ht&&Ht.exports===$t&&y.process,Vt=function(){try{return Ht&&Ht.require&&Ht.require("util").types||Kt&&Kt.binding&&Kt.binding("util")}catch(e){}}(),Yt=Vt&&Vt.isTypedArray,Zt=Yt?Ft(Yt):function(e){return S(e)&&Et(e.length)&&!!Ut[O(e)]},Gt=Object.prototype.hasOwnProperty;function Jt(e,t){var n=P(e),r=!n&&Bt(e),o=!n&&!r&&Nt(e),i=!n&&!r&&!o&&Zt(e),a=n||r||o||i,u=a?kt(e.length,String):[],l=u.length;for(var s in e)!t&&!Gt.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||ut(s,l))||u.push(s);return u}function Qt(e,t){return function(n){return e(t(n))}}var Xt=Qt(Object.keys,Object),en=Object.prototype.hasOwnProperty;function tn(e){if(!It(e))return Xt(e);var t=[];for(var n in Object(e))en.call(e,n)&&"constructor"!=n&&t.push(n);return t}function nn(e){return At(e)?Jt(e):tn(e)}var rn=Object.prototype.hasOwnProperty,on=St(function(e,t){if(It(t)||At(t))xt(t,nn(t),e);else for(var n in t)rn.call(t,n)&&bt(e,n,t[n])}),an=on,un=Object.prototype.hasOwnProperty;function ln(e){return At(e)?Jt(e,!0):function(e){if(!U(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=It(e),n=[];for(var r in e)("constructor"!=r||!t&&un.call(e,r))&&n.push(r);return n}(e)}var sn=St(function(e,t){xt(t,ln(t),e)}),cn=sn,fn=St(function(e,t,n,r){xt(t,ln(t),e,r)}),pn=fn,dn=St(function(e,t,n,r){xt(t,nn(t),e,r)}),hn=dn,vn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gn=/^\w*$/;function yn(e,t){if(P(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!M(e))||gn.test(e)||!vn.test(e)||null!=t&&e in Object(t)}var mn=pe(Object,"create"),_n=Object.prototype.hasOwnProperty,bn=Object.prototype.hasOwnProperty;function xn(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 Cn(e,t){for(var n=e.length;n--;)if(mt(e[n][0],t))return n;return-1}xn.prototype.clear=function(){this.__data__=mn?mn(null):{},this.size=0},xn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},xn.prototype.get=function(e){var t=this.__data__;if(mn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return _n.call(t,e)?t[e]:void 0},xn.prototype.has=function(e){var t=this.__data__;return mn?void 0!==t[e]:bn.call(t,e)},xn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=mn&&void 0===t?"__lodash_hash_undefined__":t,this};var jn=Array.prototype.splice;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.__data__=[],this.size=0},wn.prototype.delete=function(e){var t=this.__data__,n=Cn(t,e);return!(n<0||(n==t.length-1?t.pop():jn.call(t,n,1),--this.size,0))},wn.prototype.get=function(e){var t=this.__data__,n=Cn(t,e);return n<0?void 0:t[n][1]},wn.prototype.has=function(e){return Cn(this.__data__,e)>-1},wn.prototype.set=function(e,t){var n=this.__data__,r=Cn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var En=pe(_,"Map");function An(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 On(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 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||On),n}On.prototype.clear=function(){this.size=0,this.__data__={hash:new xn,map:new(En||wn),string:new xn}},On.prototype.delete=function(e){var t=An(this,e).delete(e);return this.size-=t?1:0,t},On.prototype.get=function(e){return An(this,e).get(e)},On.prototype.has=function(e){return An(this,e).has(e)},On.prototype.set=function(e,t){var n=An(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Sn.Cache=On;var Mn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,In=/\\(\\)?/g,kn=function(){var e=Sn(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Mn,function(e,n,r,o){t.push(r?o.replace(In,"$1"):n||e)}),t},function(e){return 500===t.size&&t.clear(),e}),t=e.cache;return e}(),Pn=kn;function Rn(e){return null==e?"":W(e)}function Ln(e,t){return P(e)?e:yn(e,t)?[e]:Pn(Rn(e))}function Wn(e){if("string"==typeof e||M(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Bn(e,t){for(var n=0,r=(t=Ln(t,e)).length;null!=e&&n<r;)e=e[Wn(t[n++])];return n&&n==r?e:void 0}function Tn(e,t,n){var r=null==e?void 0:Bn(e,t);return void 0===r?n:r}function Dn(e,t){for(var n=-1,r=t.length,o=Array(r),i=null==e;++n<r;)o[n]=i?void 0:Tn(e,t[n]);return o}function zn(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var qn=b?b.isConcatSpreadable:void 0;function Nn(e){return P(e)||Bt(e)||!!(qn&&e&&e[qn])}function Un(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=Nn),o||(o=[]);++i<a;){var u=e[i];t>0&&n(u)?t>1?Un(u,t-1,n,r,o):zn(o,u):r||(o[o.length]=u)}return o}function Fn(e){return null!=e&&e.length?Un(e,1):[]}function $n(e){return Ge(jt(e,void 0,Fn),e+"")}var Hn=$n(Dn),Kn=Qt(Object.getPrototypeOf,Object),Vn=Function.prototype,Yn=Object.prototype,Zn=Vn.toString,Gn=Yn.hasOwnProperty,Jn=Zn.call(Object);function Qn(e){if(!S(e)||"[object Object]"!=O(e))return!1;var t=Kn(e);if(null===t)return!0;var n=Gn.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Zn.call(n)==Jn}function Xn(e){if(!S(e))return!1;var t=O(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Qn(e)}var er=wt(function(e,t){try{return xe(e,void 0,t)}catch(e){return Xn(e)?e:new Error(e)}}),tr=er;function nr(e,t){var n;if("function"!=typeof t)throw new TypeError("Expected a function");return e=G(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var rr=wt(function(e,t,n){var r=1;if(n.length){var o=ct(n,it(rr));r|=32}return vt(e,r,t,n,o)});rr.placeholder={};var or=rr,ir=$n(function(e,t){return Je(t,function(t){t=Wn(t),yt(e,t,or(e[t],e))}),e}),ar=ir,ur=wt(function(e,t,n){var r=3;if(n.length){var o=ct(n,it(ur));r|=32}return vt(t,r,e,n,o)});ur.placeholder={};var lr=ur;function sr(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 cr(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:sr(e,t,n)}var fr=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function pr(e){return fr.test(e)}var dr="\\ud800-\\udfff",hr="["+dr+"]",vr="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",gr="\\ud83c[\\udffb-\\udfff]",yr="[^"+dr+"]",mr="(?:\\ud83c[\\udde6-\\uddff]){2}",_r="[\\ud800-\\udbff][\\udc00-\\udfff]",br="(?:"+vr+"|"+gr+")?",xr="[\\ufe0e\\ufe0f]?",Cr=xr+br+"(?:\\u200d(?:"+[yr,mr,_r].join("|")+")"+xr+br+")*",jr="(?:"+[yr+vr+"?",vr,mr,_r,hr].join("|")+")",wr=RegExp(gr+"(?="+gr+")|"+jr+Cr,"g");function Er(e){return pr(e)?function(e){return e.match(wr)||[]}(e):function(e){return e.split("")}(e)}function Ar(e){return function(t){var n=pr(t=Rn(t))?Er(t):void 0,r=n?n[0]:t.charAt(0),o=n?cr(n,1).join(""):t.slice(1);return r[e]()+o}}var Or=Ar("toUpperCase");function Sr(e){return Or(Rn(e).toLowerCase())}function Mr(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 Ir(e){return function(t){return null==e?void 0:e[t]}}var kr=Ir({"À":"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"}),Pr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Rr=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");function Lr(e){return(e=Rn(e))&&e.replace(Pr,kr).replace(Rr,"")}var Wr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Br=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Tr="\\ud800-\\udfff",Dr="\\u2700-\\u27bf",zr="a-z\\xdf-\\xf6\\xf8-\\xff",qr="A-Z\\xc0-\\xd6\\xd8-\\xde",Nr="\\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",Ur="["+Nr+"]",Fr="\\d+",$r="["+Dr+"]",Hr="["+zr+"]",Kr="[^"+Tr+Nr+Fr+Dr+zr+qr+"]",Vr="(?:\\ud83c[\\udde6-\\uddff]){2}",Yr="[\\ud800-\\udbff][\\udc00-\\udfff]",Zr="["+qr+"]",Gr="(?:"+Hr+"|"+Kr+")",Jr="(?:"+Zr+"|"+Kr+")",Qr="(?:['’](?:d|ll|m|re|s|t|ve))?",Xr="(?:['’](?:D|LL|M|RE|S|T|VE))?",eo="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",to="[\\ufe0e\\ufe0f]?",no=to+eo+"(?:\\u200d(?:"+["[^"+Tr+"]",Vr,Yr].join("|")+")"+to+eo+")*",ro="(?:"+[$r,Vr,Yr].join("|")+")"+no,oo=RegExp([Zr+"?"+Hr+"+"+Qr+"(?="+[Ur,Zr,"$"].join("|")+")",Jr+"+"+Xr+"(?="+[Ur,Zr+Gr,"$"].join("|")+")",Zr+"?"+Gr+"+"+Qr,Zr+"+"+Xr,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Fr,ro].join("|"),"g");function io(e,t,n){return e=Rn(e),void 0===(t=n?void 0:t)?function(e){return Br.test(e)}(e)?function(e){return e.match(oo)||[]}(e):function(e){return e.match(Wr)||[]}(e):e.match(t)||[]}var ao=RegExp("['’]","g");function uo(e){return function(t){return Mr(io(Lr(t).replace(ao,"")),e,"")}}var lo=uo(function(e,t,n){return t=t.toLowerCase(),e+(n?Sr(t):t)}),so=lo;function co(){if(!arguments.length)return[];var e=arguments[0];return P(e)?e:[e]}var fo=_.isFinite,po=Math.min;function ho(e){var t=Math[e];return function(e,n){if(e=V(e),(n=null==n?0:po(G(n),292))&&fo(e)){var r=(Rn(e)+"e").split("e");return+((r=(Rn(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var vo=ho("ceil");function go(e){var t=De(e);return t.__chain__=!0,t}var yo=Math.ceil,mo=Math.max;function _o(e,t,n){t=(n?Ot(e,t,n):void 0===t)?1:mo(G(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=Array(yo(r/t));o<r;)a[i++]=sr(e,o,o+=t);return a}function bo(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function xo(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=V(n))==n?n:0),void 0!==t&&(t=(t=V(t))==t?t:0),bo(V(e),t,n)}function Co(e){var t=this.__data__=new wn(e);this.size=t.size}function jo(e,t){return e&&xt(t,nn(t),e)}Co.prototype.clear=function(){this.__data__=new wn,this.size=0},Co.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Co.prototype.get=function(e){return this.__data__.get(e)},Co.prototype.has=function(e){return this.__data__.has(e)},Co.prototype.set=function(e,t){var n=this.__data__;if(n instanceof wn){var r=n.__data__;if(!En||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new On(r)}return n.set(e,t),this.size=n.size,this};var wo="object"==typeof exports&&exports&&!exports.nodeType&&exports,Eo=wo&&"object"==typeof module&&module&&!module.nodeType&&module,Ao=Eo&&Eo.exports===wo?_.Buffer:void 0,Oo=Ao?Ao.allocUnsafe:void 0;function So(e,t){if(t)return e.slice();var n=e.length,r=Oo?Oo(n):new e.constructor(n);return e.copy(r),r}function Mo(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 Io(){return[]}var ko=Object.prototype.propertyIsEnumerable,Po=Object.getOwnPropertySymbols,Ro=Po?function(e){return null==e?[]:(e=Object(e),Mo(Po(e),function(t){return ko.call(e,t)}))}:Io,Lo=Ro,Wo=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)zn(t,Lo(e)),e=Kn(e);return t}:Io,Bo=Wo;function To(e,t,n){var r=t(e);return P(e)?r:zn(r,n(e))}function Do(e){return To(e,nn,Lo)}function zo(e){return To(e,ln,Bo)}var qo=pe(_,"DataView"),No=pe(_,"Promise"),Uo=pe(_,"Set"),Fo="[object Map]",$o="[object Promise]",Ho="[object Set]",Ko="[object WeakMap]",Vo="[object DataView]",Yo=oe(qo),Zo=oe(En),Go=oe(No),Jo=oe(Uo),Qo=oe(de),Xo=O;(qo&&Xo(new qo(new ArrayBuffer(1)))!=Vo||En&&Xo(new En)!=Fo||No&&Xo(No.resolve())!=$o||Uo&&Xo(new Uo)!=Ho||de&&Xo(new de)!=Ko)&&(Xo=function(e){var t=O(e),n="[object Object]"==t?e.constructor:void 0,r=n?oe(n):"";if(r)switch(r){case Yo:return Vo;case Zo:return Fo;case Go:return $o;case Jo:return Ho;case Qo:return Ko}return t});var ei=Xo,ti=Object.prototype.hasOwnProperty,ni=_.Uint8Array;function ri(e){var t=new e.constructor(e.byteLength);return new ni(t).set(new ni(e)),t}var oi=/\w*$/,ii=b?b.prototype:void 0,ai=ii?ii.valueOf:void 0;function ui(e,t){var n=t?ri(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function li(e){return"function"!=typeof e.constructor||It(e)?{}:_e(Kn(e))}var si=Vt&&Vt.isMap,ci=si?Ft(si):function(e){return S(e)&&"[object Map]"==ei(e)},fi=Vt&&Vt.isSet,pi=fi?Ft(fi):function(e){return S(e)&&"[object Set]"==ei(e)},di="[object Arguments]",hi="[object Function]",vi="[object Object]",gi={};function yi(e,t,n,r,o,i){var a,u=1&t,l=2&t,s=4&t;if(n&&(a=o?n(e,r,o,i):n(e)),void 0!==a)return a;if(!U(e))return e;var c=P(e);if(c){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ti.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return We(e,a)}else{var f=ei(e),p=f==hi||"[object GeneratorFunction]"==f;if(Nt(e))return So(e,u);if(f==vi||f==di||p&&!o){if(a=l||p?{}:li(e),!u)return l?function(e,t){return xt(e,Bo(e),t)}(e,function(e,t){return e&&xt(t,ln(t),e)}(a,e)):function(e,t){return xt(e,Lo(e),t)}(e,jo(a,e))}else{if(!gi[f])return o?e:{};a=function(e,t,n){var r,o=e.constructor;switch(t){case"[object ArrayBuffer]":return ri(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return function(e,t){var n=t?ri(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 ui(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,oi.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Symbol]":return r=e,ai?Object(ai.call(r)):{}}}(e,f,u)}}i||(i=new Co);var d=i.get(e);if(d)return d;i.set(e,a),pi(e)?e.forEach(function(r){a.add(yi(r,t,n,r,e,i))}):ci(e)&&e.forEach(function(r,o){a.set(o,yi(r,t,n,o,e,i))});var h=c?void 0:(s?l?zo:Do:l?ln:nn)(e);return Je(h||e,function(r,o){h&&(r=e[o=r]),bt(a,o,yi(r,t,n,o,e,i))}),a}function mi(e){return yi(e,4)}function _i(e){return yi(e,5)}function bi(e,t){return yi(e,5,t="function"==typeof t?t:void 0)}function xi(e,t){return yi(e,4,t="function"==typeof t?t:void 0)}function Ci(){return new Le(this.value(),this.__chain__)}function ji(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 wi(){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 zn(P(n)?We(n):[n],Un(t,1))}function Ei(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new On;++t<n;)this.add(e[t])}function Ai(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 Oi(e,t){return e.has(t)}function Si(e,t,n,r,o,i){var a=1&n,u=e.length,l=t.length;if(u!=l&&!(a&&l>u))return!1;var s=i.get(e),c=i.get(t);if(s&&c)return s==t&&c==e;var f=-1,p=!0,d=2&n?new Ei:void 0;for(i.set(e,t),i.set(t,e);++f<u;){var h=e[f],v=t[f];if(r)var g=a?r(v,h,f,t,e,i):r(h,v,f,e,t,i);if(void 0!==g){if(g)continue;p=!1;break}if(d){if(!Ai(t,function(e,t){if(!Oi(d,t)&&(h===e||o(h,e,n,r,i)))return d.push(t)})){p=!1;break}}else if(h!==v&&!o(h,v,n,r,i)){p=!1;break}}return i.delete(e),i.delete(t),p}function Mi(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Ii(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}gi[di]=gi["[object Array]"]=gi["[object ArrayBuffer]"]=gi["[object DataView]"]=gi["[object Boolean]"]=gi["[object Date]"]=gi["[object Float32Array]"]=gi["[object Float64Array]"]=gi["[object Int8Array]"]=gi["[object Int16Array]"]=gi["[object Int32Array]"]=gi["[object Map]"]=gi["[object Number]"]=gi[vi]=gi["[object RegExp]"]=gi["[object Set]"]=gi["[object String]"]=gi["[object Symbol]"]=gi["[object Uint8Array]"]=gi["[object Uint8ClampedArray]"]=gi["[object Uint16Array]"]=gi["[object Uint32Array]"]=!0,gi["[object Error]"]=gi[hi]=gi["[object WeakMap]"]=!1,Ei.prototype.add=Ei.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Ei.prototype.has=function(e){return this.__data__.has(e)};var ki=b?b.prototype:void 0,Pi=ki?ki.valueOf:void 0,Ri=Object.prototype.hasOwnProperty,Li="[object Arguments]",Wi="[object Array]",Bi="[object Object]",Ti=Object.prototype.hasOwnProperty;function Di(e,t,n,r,o){return e===t||(null==e||null==t||!S(e)&&!S(t)?e!=e&&t!=t:function(e,t,n,r,o,i){var a=P(e),u=P(t),l=a?Wi:ei(e),s=u?Wi:ei(t),c=(l=l==Li?Bi:l)==Bi,f=(s=s==Li?Bi:s)==Bi,p=l==s;if(p&&Nt(e)){if(!Nt(t))return!1;a=!0,c=!1}if(p&&!c)return i||(i=new Co),a||Zt(e)?Si(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 ni(e),new ni(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return mt(+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 u=Mi;case"[object Set]":var l=1&r;if(u||(u=Ii),e.size!=t.size&&!l)return!1;var s=a.get(e);if(s)return s==t;r|=2,a.set(e,t);var c=Si(u(e),u(t),r,o,i,a);return a.delete(e),c;case"[object Symbol]":if(Pi)return Pi.call(e)==Pi.call(t)}return!1}(e,t,l,n,r,o,i);if(!(1&n)){var d=c&&Ti.call(e,"__wrapped__"),h=f&&Ti.call(t,"__wrapped__");if(d||h){var v=d?e.value():e,g=h?t.value():t;return i||(i=new Co),o(v,g,n,r,i)}}return!!p&&(i||(i=new Co),function(e,t,n,r,o,i){var a=1&n,u=Do(e),l=u.length;if(l!=Do(t).length&&!a)return!1;for(var s=l;s--;){var c=u[s];if(!(a?c in t:Ri.call(t,c)))return!1}var f=i.get(e),p=i.get(t);if(f&&p)return f==t&&p==e;var d=!0;i.set(e,t),i.set(t,e);for(var h=a;++s<l;){var v=e[c=u[s]],g=t[c];if(r)var y=a?r(g,v,c,t,e,i):r(v,g,c,e,t,i);if(!(void 0===y?v===g||o(v,g,n,r,i):y)){d=!1;break}h||(h="constructor"==c)}if(d&&!h){var m=e.constructor,_=t.constructor;m==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof m&&m instanceof m&&"function"==typeof _&&_ instanceof _||(d=!1)}return i.delete(e),i.delete(t),d}(e,t,n,r,o,i))}(e,t,n,r,Di,o))}function zi(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=Object(e);o--;){var u=n[o];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<i;){var l=(u=n[o])[0],s=e[l],c=u[1];if(a&&u[2]){if(void 0===s&&!(l in e))return!1}else{var f=new Co;if(r)var p=r(s,c,l,e,t,f);if(!(void 0===p?Di(c,s,3,r,f):p))return!1}}return!0}function qi(e){return e==e&&!U(e)}function Ni(e){for(var t=nn(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,qi(o)]}return t}function Ui(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}function Fi(e){var t=Ni(e);return 1==t.length&&t[0][2]?Ui(t[0][0],t[0][1]):function(n){return n===e||zi(n,e,t)}}function $i(e,t){return null!=e&&t in Object(e)}function Hi(e,t,n){for(var r=-1,o=(t=Ln(t,e)).length,i=!1;++r<o;){var a=Wn(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Et(o)&&ut(a,o)&&(P(e)||Bt(e))}function Ki(e,t){return null!=e&&Hi(e,t,$i)}function Vi(e,t){return yn(e)&&qi(t)?Ui(Wn(e),t):function(n){var r=Tn(n,e);return void 0===r&&r===t?Ki(n,e):Di(t,r,3)}}function Yi(e){return function(t){return null==t?void 0:t[e]}}function Zi(e){return yn(e)?Yi(Wn(e)):function(e){return function(t){return Bn(t,e)}}(e)}function Gi(e){return"function"==typeof e?e:null==e?Q:"object"==typeof e?P(e)?Vi(e[0],e[1]):Fi(e):Zi(e)}function Ji(e){var t=null==e?0:e.length,n=Gi;return e=t?k(e,function(e){if("function"!=typeof e[1])throw new TypeError("Expected a function");return[n(e[0]),e[1]]}):[],wt(function(n){for(var r=-1;++r<t;){var o=e[r];if(xe(o[0],this,n))return xe(o[1],this,n)}})}function Qi(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 Xi(e){return function(e){var t=nn(e);return function(n){return Qi(n,e,t)}}(yi(e,1))}function ea(e,t){return null==t||Qi(e,t,nn(t))}function ta(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 na(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),u=a.length;u--;){var l=a[e?u:++o];if(!1===n(i[l],l,i))break}return t}}var ra=na();function oa(e,t){return e&&ra(e,t,nn)}function ia(e,t){return function(n,r){if(null==n)return n;if(!At(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 aa=ia(oa);function ua(e,t,n,r){return aa(e,function(e,o,i){t(r,e,n(e),i)}),r}function la(e,t){return function(n,r){var o=P(n)?ta:ua,i=t?t():{};return o(n,e,Gi(r),i)}}var sa=Object.prototype.hasOwnProperty,ca=la(function(e,t,n){sa.call(e,n)?++e[n]:yt(e,n,1)}),fa=ca;function pa(e,t){var n=_e(e);return null==t?n:jo(n,t)}function da(e,t,n){var r=vt(e,8,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=da.placeholder,r}function ha(e,t,n){var r=vt(e,16,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=ha.placeholder,r}da.placeholder={},ha.placeholder={};var va=function(){return _.Date.now()},ga=Math.max,ya=Math.min;function ma(e,t,n){var r,o,i,a,u,l,s=0,c=!1,f=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function d(t){var n=r,i=o;return r=o=void 0,s=t,a=e.apply(i,n)}function h(e){var n=e-l;return void 0===l||n>=t||n<0||f&&e-s>=i}function v(){var e=va();if(h(e))return g(e);u=setTimeout(v,function(e){var n=t-(e-l);return f?ya(n,i-(e-s)):n}(e))}function g(e){return u=void 0,p&&r?d(e):(r=o=void 0,a)}function y(){var e=va(),n=h(e);if(r=arguments,o=this,l=e,n){if(void 0===u)return function(e){return s=e,u=setTimeout(v,t),c?d(e):a}(l);if(f)return clearTimeout(u),u=setTimeout(v,t),d(l)}return void 0===u&&(u=setTimeout(v,t)),a}return t=V(t)||0,U(n)&&(c=!!n.leading,i=(f="maxWait"in n)?ga(V(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),y.cancel=function(){void 0!==u&&clearTimeout(u),s=0,r=l=o=u=void 0},y.flush=function(){return void 0===u?a:g(va())},y}function _a(e,t){return null==e||e!=e?t:e}var ba=Object.prototype,xa=ba.hasOwnProperty,Ca=wt(function(e,t){e=Object(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&Ot(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],a=ln(i),u=-1,l=a.length;++u<l;){var s=a[u],c=e[s];(void 0===c||mt(c,ba[s])&&!xa.call(e,s))&&(e[s]=i[s])}return e}),ja=Ca;function wa(e,t,n){(void 0!==n&&!mt(e[t],n)||void 0===n&&!(t in e))&&yt(e,t,n)}function Ea(e){return S(e)&&At(e)}function Aa(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function Oa(e){return xt(e,ln(e))}function Sa(e,t,n,r,o){e!==t&&ra(t,function(i,a){if(o||(o=new Co),U(i))!function(e,t,n,r,o,i,a){var u=Aa(e,n),l=Aa(t,n),s=a.get(l);if(s)wa(e,n,s);else{var c=i?i(u,l,n+"",e,t,a):void 0,f=void 0===c;if(f){var p=P(l),d=!p&&Nt(l),h=!p&&!d&&Zt(l);c=l,p||d||h?P(u)?c=u:Ea(u)?c=We(u):d?(f=!1,c=So(l,!0)):h?(f=!1,c=ui(l,!0)):c=[]:Qn(l)||Bt(l)?(c=u,Bt(u)?c=Oa(u):U(u)&&!X(u)||(c=li(l))):f=!1}f&&(a.set(l,c),o(c,l,r,i,a),a.delete(l)),wa(e,n,c)}}(e,t,a,n,Sa,r,o);else{var u=r?r(Aa(e,a),i,a+"",e,t,o):void 0;void 0===u&&(u=i),wa(e,a,u)}},ln)}function Ma(e,t,n,r,o,i){return U(e)&&U(t)&&(i.set(t,e),Sa(e,t,void 0,Ma,i),i.delete(t)),e}var Ia=St(function(e,t,n,r){Sa(e,t,n,r)}),ka=Ia,Pa=wt(function(e){return e.push(void 0,Ma),xe(ka,void 0,e)});function Ra(e,t,n){if("function"!=typeof e)throw new TypeError("Expected a function");return setTimeout(function(){e.apply(void 0,n)},t)}var La=wt(function(e,t){return Ra(e,1,t)}),Wa=La,Ba=wt(function(e,t,n){return Ra(e,V(t)||0,n)}),Ta=Ba;function Da(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 za(e,t,n,r){var o=-1,i=tt,a=!0,u=e.length,l=[],s=t.length;if(!u)return l;n&&(t=k(t,Ft(n))),r?(i=Da,a=!1):t.length>=200&&(i=Oi,a=!1,t=new Ei(t));e:for(;++o<u;){var c=e[o],f=null==n?c:n(c);if(c=r||0!==c?c:0,a&&f==f){for(var p=s;p--;)if(t[p]===f)continue e;l.push(c)}else i(t,f,r)||l.push(c)}return l}var qa=wt(function(e,t){return Ea(e)?za(e,Un(t,1,Ea,!0)):[]}),Na=qa;function Ua(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var Fa=wt(function(e,t){var n=Ua(t);return Ea(n)&&(n=void 0),Ea(e)?za(e,Un(t,1,Ea,!0),Gi(n)):[]}),$a=Fa,Ha=wt(function(e,t){var n=Ua(t);return Ea(n)&&(n=void 0),Ea(e)?za(e,Un(t,1,Ea,!0),void 0,n):[]}),Ka=Ha,Va=B(function(e,t){return e/t},1);function Ya(e,t,n){var r=null==e?0:e.length;return r?sr(e,(t=n||void 0===t?1:G(t))<0?0:t,r):[]}function Za(e,t,n){var r=null==e?0:e.length;return r?sr(e,0,(t=r-(t=n||void 0===t?1:G(t)))<0?0:t):[]}function Ga(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?sr(e,r?0:i,r?i+1:o):sr(e,r?i+1:0,r?o:i)}function Ja(e,t){return e&&e.length?Ga(e,Gi(t),!0,!0):[]}function Qa(e,t){return e&&e.length?Ga(e,Gi(t),!0):[]}function Xa(e){return"function"==typeof e?e:Q}function eu(e,t){return(P(e)?Je:aa)(e,Xa(t))}function tu(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}var nu=na(!0);function ru(e,t){return e&&nu(e,t,nn)}var ou=ia(ru,!0);function iu(e,t){return(P(e)?tu:ou)(e,Xa(t))}function au(e,t,n){e=Rn(e),t=W(t);var r=e.length,o=n=void 0===n?r:bo(G(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t}function uu(e){return function(t){var n=ei(t);return"[object Map]"==n?Mi(t):"[object Set]"==n?function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}(t):function(e,t){return k(t,function(t){return[t,e[t]]})}(t,e(t))}}var lu=uu(nn),su=uu(ln),cu=Ir({"&":"&","<":"<",">":">",'"':""","'":"'"}),fu=/[&<>"']/g,pu=RegExp(fu.source);function du(e){return(e=Rn(e))&&pu.test(e)?e.replace(fu,cu):e}var hu=/[\\^$.*+?()[\]{}|]/g,vu=RegExp(hu.source);function gu(e){return(e=Rn(e))&&vu.test(e)?e.replace(hu,"\\$&"):e}function yu(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 mu(e,t){var n=!0;return aa(e,function(e,r,o){return n=!!t(e,r,o)}),n}function _u(e,t,n){var r=P(e)?yu:mu;return n&&Ot(e,t,n)&&(t=void 0),r(e,Gi(t))}function bu(e){return e?bo(G(e),0,4294967295):0}function xu(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&Ot(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=G(n))<0&&(n=-n>o?0:o+n),(r=void 0===r||r>o?o:G(r))<0&&(r+=o),r=n>r?0:bu(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]}function Cu(e,t){var n=[];return aa(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}function ju(e,t){return(P(e)?Mo:Cu)(e,Gi(t))}function wu(e){return function(t,n,r){var o=Object(t);if(!At(t)){var i=Gi(n);t=nn(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 Eu=Math.max;function Au(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:G(n);return o<0&&(o=Eu(r+o,0)),Qe(e,Gi(t),o)}var Ou=wu(Au);function Su(e,t,n){var r;return n(e,function(e,n,o){if(t(e,n,o))return r=n,!1}),r}function Mu(e,t){return Su(e,Gi(t),oa)}var Iu=Math.max,ku=Math.min;function Pu(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return void 0!==n&&(o=G(n),o=n<0?Iu(r+o,0):ku(o,r-1)),Qe(e,Gi(t),o,!0)}var Ru=wu(Pu);function Lu(e,t){return Su(e,Gi(t),ru)}function Wu(e){return e&&e.length?e[0]:void 0}function Bu(e,t){var n=-1,r=At(e)?Array(e.length):[];return aa(e,function(e,o,i){r[++n]=t(e,o,i)}),r}function Tu(e,t){return(P(e)?k:Bu)(e,Gi(t))}function Du(e,t){return Un(Tu(e,t),1)}var zu=1/0;function qu(e,t){return Un(Tu(e,t),zu)}function Nu(e,t,n){return n=void 0===n?1:G(n),Un(Tu(e,t),n)}var Uu=1/0;function Fu(e){return null!=e&&e.length?Un(e,Uu):[]}function $u(e,t){return null!=e&&e.length?Un(e,t=void 0===t?1:G(t)):[]}function Hu(e){return vt(e,512)}var Ku=ho("floor");function Vu(e){return $n(function(t){var n=t.length,r=n,o=Le.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"==Re(i))var a=new Le([],!0)}for(r=a?r:n;++r<n;){var u=Re(i=t[r]),l="wrapper"==u?Ie(i):void 0;a=l&&ze(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?a[Re(l[0])].apply(a,l[3]):1==i.length&&ze(i)?a[u]():a.thru(i)}return function(){var e=arguments,r=e[0];if(a&&1==e.length&&P(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 Yu=Vu(),Zu=Vu(!0);function Gu(e,t){return null==e?e:ra(e,Xa(t),ln)}function Ju(e,t){return null==e?e:nu(e,Xa(t),ln)}function Qu(e,t){return e&&oa(e,Xa(t))}function Xu(e,t){return e&&ru(e,Xa(t))}function el(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 tl(e,t){return Mo(t,function(t){return X(e[t])})}function nl(e){return null==e?[]:tl(e,nn(e))}function rl(e){return null==e?[]:tl(e,ln(e))}var ol=Object.prototype.hasOwnProperty,il=la(function(e,t,n){ol.call(e,n)?e[n].push(t):yt(e,n,[t])}),al=il;function ul(e,t){return e>t}function ll(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=V(t),n=V(n)),e(t,n)}}var sl=ll(ul),cl=ll(function(e,t){return e>=t}),fl=Object.prototype.hasOwnProperty;function pl(e,t){return null!=e&&fl.call(e,t)}function dl(e,t){return null!=e&&Hi(e,t,pl)}var hl=Math.max,vl=Math.min;function gl(e,t,n){return t=Z(t),void 0===n?(n=t,t=0):n=Z(n),function(e,t,n){return e>=vl(t,n)&&e<hl(t,n)}(e=V(e),t,n)}function yl(e){return"string"==typeof e||!P(e)&&S(e)&&"[object String]"==O(e)}function ml(e,t){return k(t,function(t){return e[t]})}function _l(e){return null==e?[]:ml(e,nn(e))}var bl=Math.max;function xl(e,t,n,r){e=At(e)?e:_l(e),n=n&&!r?G(n):0;var o=e.length;return n<0&&(n=bl(o+n,0)),yl(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&et(e,t,n)>-1}var Cl=Math.max;function jl(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:G(n);return o<0&&(o=Cl(r+o,0)),et(e,t,o)}function wl(e){return null!=e&&e.length?sr(e,0,-1):[]}var El=Math.min;function Al(e,t,n){for(var r=n?Da:tt,o=e[0].length,i=e.length,a=i,u=Array(i),l=1/0,s=[];a--;){var c=e[a];a&&t&&(c=k(c,Ft(t))),l=El(c.length,l),u[a]=!n&&(t||o>=120&&c.length>=120)?new Ei(a&&c):void 0}c=e[0];var f=-1,p=u[0];e:for(;++f<o&&s.length<l;){var d=c[f],h=t?t(d):d;if(d=n||0!==d?d:0,!(p?Oi(p,h):r(s,h,n))){for(a=i;--a;){var v=u[a];if(!(v?Oi(v,h):r(e[a],h,n)))continue e}p&&p.push(h),s.push(d)}}return s}function Ol(e){return Ea(e)?e:[]}var Sl=wt(function(e){var t=k(e,Ol);return t.length&&t[0]===e[0]?Al(t):[]}),Ml=wt(function(e){var t=Ua(e),n=k(e,Ol);return t===Ua(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?Al(n,Gi(t)):[]}),Il=Ml,kl=wt(function(e){var t=Ua(e),n=k(e,Ol);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?Al(n,void 0,t):[]});function Pl(e,t){return function(n,r){return function(e,t,n,r){return oa(e,function(e,o,i){t(r,n(e),o,i)}),r}(n,e,t(r),{})}}var Rl=Object.prototype.toString,Ll=Pl(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Rl.call(t)),e[t]=n},Ke(Q)),Wl=Ll,Bl=Object.prototype,Tl=Bl.hasOwnProperty,Dl=Bl.toString,zl=Pl(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Dl.call(t)),Tl.call(e,t)?e[t].push(n):e[t]=[n]},Gi),ql=zl;function Nl(e,t){return t.length<2?e:Bn(e,sr(t,0,-1))}function Ul(e,t,n){var r=null==(e=Nl(e,t=Ln(t,e)))?e:e[Wn(Ua(t))];return null==r?void 0:xe(r,e,n)}var Fl=wt(Ul),$l=wt(function(e,t,n){var r=-1,o="function"==typeof t,i=At(e)?Array(e.length):[];return aa(e,function(e){i[++r]=o?xe(t,e,n):Ul(e,t,n)}),i}),Hl=$l,Kl=Vt&&Vt.isArrayBuffer,Vl=Kl?Ft(Kl):function(e){return S(e)&&"[object ArrayBuffer]"==O(e)};function Yl(e){return!0===e||!1===e||S(e)&&"[object Boolean]"==O(e)}var Zl=Vt&&Vt.isDate,Gl=Zl?Ft(Zl):function(e){return S(e)&&"[object Date]"==O(e)};function Jl(e){return S(e)&&1===e.nodeType&&!Qn(e)}var Ql=Object.prototype.hasOwnProperty;function Xl(e){if(null==e)return!0;if(At(e)&&(P(e)||"string"==typeof e||"function"==typeof e.splice||Nt(e)||Zt(e)||Bt(e)))return!e.length;var t=ei(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(It(e))return!tn(e).length;for(var n in e)if(Ql.call(e,n))return!1;return!0}function es(e,t){return Di(e,t)}function ts(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?Di(e,t,void 0,n):!!r}var ns=_.isFinite;function rs(e){return"number"==typeof e&&ns(e)}function os(e){return"number"==typeof e&&e==G(e)}function is(e,t){return e===t||zi(e,t,Ni(t))}function as(e,t,n){return n="function"==typeof n?n:void 0,zi(e,t,Ni(t),n)}function us(e){return"number"==typeof e||S(e)&&"[object Number]"==O(e)}function ls(e){return us(e)&&e!=+e}var ss=te?X:Tt;function cs(e){if(ss(e))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return fe(e)}function fs(e){return null==e}function ps(e){return null===e}var ds=Vt&&Vt.isRegExp,hs=ds?Ft(ds):function(e){return S(e)&&"[object RegExp]"==O(e)};function vs(e){return os(e)&&e>=-9007199254740991&&e<=9007199254740991}function gs(e){return void 0===e}function ys(e){return S(e)&&"[object WeakMap]"==ei(e)}function ms(e){return S(e)&&"[object WeakSet]"==O(e)}function _s(e){return Gi("function"==typeof e?e:yi(e,1))}var bs=Array.prototype.join;function xs(e,t){return null==e?"":bs.call(e,t)}var Cs=uo(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),js=Cs,ws=la(function(e,t,n){yt(e,n,t)}),Es=ws,As=Math.max,Os=Math.min;function Ss(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=G(n))<0?As(r+o,0):Os(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,Xe,o,!0)}var Ms=uo(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Is=Ms,ks=Ar("toLowerCase");function Ps(e,t){return e<t}var Rs=ll(Ps),Ls=ll(function(e,t){return e<=t});function Ws(e,t){var n={};return t=Gi(t),oa(e,function(e,r,o){yt(n,t(e,r,o),e)}),n}function Bs(e,t){var n={};return t=Gi(t),oa(e,function(e,r,o){yt(n,r,t(e,r,o))}),n}function Ts(e){return Fi(yi(e,1))}function Ds(e,t){return Vi(e,yi(t,1))}function zs(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(null!=a&&(void 0===u?a==a&&!M(a):n(a,u)))var u=a,l=i}return l}function qs(e){return e&&e.length?zs(e,Q,ul):void 0}function Ns(e,t){return e&&e.length?zs(e,Gi(t),ul):void 0}function Us(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 Fs(e,t){var n=null==e?0:e.length;return n?Us(e,t)/n:NaN}function $s(e){return Fs(e,Q)}function Hs(e,t){return Fs(e,Gi(t))}var Ks=St(function(e,t,n){Sa(e,t,n)}),Vs=Ks,Ys=wt(function(e,t){return function(n){return Ul(n,e,t)}}),Zs=Ys,Gs=wt(function(e,t){return function(n){return Ul(e,n,t)}}),Js=Gs;function Qs(e){return e&&e.length?zs(e,Q,Ps):void 0}function Xs(e,t){return e&&e.length?zs(e,Gi(t),Ps):void 0}function ec(e,t,n){var r=nn(t),o=tl(t,r),i=!(U(n)&&"chain"in n&&!n.chain),a=X(e);return Je(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__=We(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,zn([this.value()],arguments))})}),e}var tc=B(function(e,t){return e*t},1);function nc(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 rc=b?b.iterator:void 0;function oc(e){if(!e)return[];if(At(e))return yl(e)?Er(e):We(e);if(rc&&e[rc])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[rc]());var t=ei(e);return("[object Map]"==t?Mi:"[object Set]"==t?Ii:_l)(e)}function ic(){void 0===this.__values__&&(this.__values__=oc(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}}function ac(e,t){var n=e.length;if(n)return ut(t+=t<0?n:0,n)?e[t]:void 0}function uc(e,t){return e&&e.length?ac(e,G(t)):void 0}function lc(e){return e=G(e),wt(function(t){return ac(t,e)})}var sc=Object.prototype.hasOwnProperty;function cc(e,t){var n=-1,r=(t=Ln(t,e)).length;if(!r)return!0;for(var o=null==e||"object"!=typeof e&&"function"!=typeof e;++n<r;){var i=t[n];if("string"==typeof i){if("__proto__"===i&&!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=Nl(e,t);return null==a||delete a[Wn(Ua(t))]}function fc(e){return Qn(e)?void 0:e}var pc=$n(function(e,t){var n={};if(null==e)return n;var r=!1;t=k(t,function(t){return t=Ln(t,e),r||(r=t.length>1),t}),xt(e,zo(e),n),r&&(n=yi(n,7,fc));for(var o=t.length;o--;)cc(n,t[o]);return n}),dc=pc;function hc(e,t,n,r){if(!U(e))return e;for(var o=-1,i=(t=Ln(t,e)).length,a=i-1,u=e;null!=u&&++o<i;){var l=Wn(t[o]),s=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=a){var c=u[l];void 0===(s=r?r(c,l,u):void 0)&&(s=U(c)?c:ut(t[o+1])?[]:{})}bt(u,l,s),u=u[l]}return e}function vc(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],u=Bn(e,a);n(u,a)&&hc(i,Ln(a,e),u)}return i}function gc(e,t){if(null==e)return{};var n=k(zo(e),function(e){return[e]});return t=Gi(t),vc(e,n,function(e,n){return t(e,n[0])})}function yc(e,t){return gc(e,nc(Gi(t)))}function mc(e){return nr(2,e)}function _c(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=M(e),a=void 0!==t,u=null===t,l=t==t,s=M(t);if(!u&&!s&&!i&&e>t||i&&a&&l&&!u&&!s||r&&a&&l||!n&&l||!o)return 1;if(!r&&!i&&!s&&e<t||s&&n&&o&&!r&&!i||u&&n&&o||!a&&o||!l)return-1}return 0}function bc(e,t,n){t=t.length?k(t,function(e){return P(e)?function(t){return Bn(t,1===e.length?e[0]:e)}:e}):[Q];var r=-1;t=k(t,Ft(Gi));var o=Bu(e,function(e,n,o){var i=k(t,function(t){return t(e)});return{criteria:i,index:++r,value:e}});return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,u=n.length;++r<a;){var l=_c(o[r],i[r]);if(l)return r>=u?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)})}function xc(e,t,n,r){return null==e?[]:(P(t)||(t=null==t?[]:[t]),P(n=r?void 0:n)||(n=null==n?[]:[n]),bc(e,t,n))}function Cc(e){return $n(function(t){return t=k(t,Ft(Gi)),wt(function(n){var r=this;return e(t,function(e){return xe(e,r,n)})})})}var jc=Cc(k),wc=wt,Ec=Math.min,Ac=wc(function(e,t){var n=(t=1==t.length&&P(t[0])?k(t[0],Ft(Gi)):k(Un(t,1),Ft(Gi))).length;return wt(function(r){for(var o=-1,i=Ec(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return xe(e,this,r)})}),Oc=Ac,Sc=Cc(yu),Mc=Cc(Ai),Ic=Math.floor;function kc(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=Ic(t/2))&&(e+=e)}while(t);return n}var Pc=Yi("length"),Rc="\\ud800-\\udfff",Lc="["+Rc+"]",Wc="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Bc="\\ud83c[\\udffb-\\udfff]",Tc="[^"+Rc+"]",Dc="(?:\\ud83c[\\udde6-\\uddff]){2}",zc="[\\ud800-\\udbff][\\udc00-\\udfff]",qc="(?:"+Wc+"|"+Bc+")?",Nc="[\\ufe0e\\ufe0f]?",Uc=Nc+qc+"(?:\\u200d(?:"+[Tc,Dc,zc].join("|")+")"+Nc+qc+")*",Fc="(?:"+[Tc+Wc+"?",Wc,Dc,zc,Lc].join("|")+")",$c=RegExp(Bc+"(?="+Bc+")|"+Fc+Uc,"g");function Hc(e){return pr(e)?function(e){for(var t=$c.lastIndex=0;$c.test(e);)++t;return t}(e):Pc(e)}var Kc=Math.ceil;function Vc(e,t){var n=(t=void 0===t?" ":W(t)).length;if(n<2)return n?kc(t,e):t;var r=kc(t,Kc(e/Hc(t)));return pr(t)?cr(Er(r),0,e).join(""):r.slice(0,e)}var Yc=Math.ceil,Zc=Math.floor;function Gc(e,t,n){e=Rn(e);var r=(t=G(t))?Hc(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Vc(Zc(o),n)+e+Vc(Yc(o),n)}function Jc(e,t,n){e=Rn(e);var r=(t=G(t))?Hc(e):0;return t&&r<t?e+Vc(t-r,n):e}function Qc(e,t,n){e=Rn(e);var r=(t=G(t))?Hc(e):0;return t&&r<t?Vc(t-r,n)+e:e}var Xc=/^\s+/,ef=_.parseInt;function tf(e,t,n){return n||null==t?t=0:t&&(t=+t),ef(Rn(e).replace(Xc,""),t||0)}var nf=wt(function(e,t){return vt(e,32,void 0,t,ct(t,it(nf)))});nf.placeholder={};var rf=nf,of=wt(function(e,t){return vt(e,64,void 0,t,ct(t,it(of)))});of.placeholder={};var af=of,uf=la(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),lf=uf,sf=$n(function(e,t){return null==e?{}:function(e,t){return vc(e,t,function(t,n){return Ki(e,n)})}(e,t)}),cf=sf;function ff(e){for(var t,n=this;n instanceof Ae;){var r=Be(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 pf(e){return function(t){return null==e?void 0:Bn(e,t)}}function df(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}var hf=Array.prototype.splice;function vf(e,t,n,r){var o=r?df:et,i=-1,a=t.length,u=e;for(e===t&&(t=We(t)),n&&(u=k(e,Ft(n)));++i<a;)for(var l=0,s=t[i],c=n?n(s):s;(l=o(u,c,l,r))>-1;)u!==e&&hf.call(u,l,1),hf.call(e,l,1);return e}function gf(e,t){return e&&e.length&&t&&t.length?vf(e,t):e}var yf=wt(gf);function mf(e,t,n){return e&&e.length&&t&&t.length?vf(e,t,Gi(n)):e}function _f(e,t,n){return e&&e.length&&t&&t.length?vf(e,t,void 0,n):e}var bf=Array.prototype.splice;function xf(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;ut(o)?bf.call(e,o,1):cc(e,o)}}return e}var Cf=$n(function(e,t){var n=null==e?0:e.length,r=Dn(e,t);return xf(e,k(t,function(e){return ut(e,n)?+e:e}).sort(_c)),r}),jf=Cf,wf=Math.floor,Ef=Math.random;function Af(e,t){return e+wf(Ef()*(t-e+1))}var Of=parseFloat,Sf=Math.min,Mf=Math.random;function If(e,t,n){if(n&&"boolean"!=typeof n&&Ot(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=Z(e),void 0===t?(t=e,e=0):t=Z(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Mf();return Sf(e+o*(t-e+Of("1e-"+((o+"").length-1))),t)}return Af(e,t)}var kf=Math.ceil,Pf=Math.max;function Rf(e){return function(t,n,r){return r&&"number"!=typeof r&&Ot(t,n,r)&&(n=r=void 0),t=Z(t),void 0===n?(n=t,t=0):n=Z(n),function(e,t,n,r){for(var o=-1,i=Pf(kf((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:Z(r),e)}}var Lf=Rf(),Wf=Rf(!0),Bf=$n(function(e,t){return vt(e,256,void 0,void 0,void 0,t)}),Tf=Bf;function Df(e,t,n,r,o){return o(e,function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)}),n}function zf(e,t,n){var r=P(e)?Mr:Df,o=arguments.length<3;return r(e,Gi(t),n,o,aa)}function qf(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 Nf(e,t,n){var r=P(e)?qf:Df,o=arguments.length<3;return r(e,Gi(t),n,o,ou)}function Uf(e,t){return(P(e)?Mo:Cu)(e,nc(Gi(t)))}function Ff(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=Gi(t);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return xf(e,o),n}function $f(e,t,n){return t=(n?Ot(e,t,n):void 0===t)?1:G(t),kc(Rn(e),t)}function Hf(){var e=arguments,t=Rn(e[0]);return e.length<3?t:t.replace(e[1],e[2])}function Kf(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return wt(e,t=void 0===t?t:G(t))}function Vf(e,t,n){var r=-1,o=(t=Ln(t,e)).length;for(o||(o=1,e=void 0);++r<o;){var i=null==e?void 0:e[Wn(t[r])];void 0===i&&(r=o,i=n),e=X(i)?i.call(e):i}return e}var Yf=Array.prototype.reverse;function Zf(e){return null==e?e:Yf.call(e)}var Gf=ho("round");function Jf(e){var t=e.length;return t?e[Af(0,t-1)]:void 0}function Qf(e){return Jf(_l(e))}function Xf(e){return(P(e)?Jf:Qf)(e)}function ep(e,t){var n=-1,r=e.length,o=r-1;for(t=void 0===t?r:t;++n<t;){var i=Af(n,o),a=e[i];e[i]=e[n],e[n]=a}return e.length=t,e}function tp(e,t){return ep(We(e),bo(t,0,e.length))}function np(e,t){var n=_l(e);return ep(n,bo(t,0,n.length))}function rp(e,t,n){return t=(n?Ot(e,t,n):void 0===t)?1:G(t),(P(e)?tp:np)(e,t)}function op(e,t,n){return null==e?e:hc(e,t,n)}function ip(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:hc(e,t,n,r)}function ap(e){return ep(We(e))}function up(e){return ep(_l(e))}function lp(e){return(P(e)?ap:up)(e)}function sp(e){if(null==e)return 0;if(At(e))return yl(e)?Hc(e):e.length;var t=ei(e);return"[object Map]"==t||"[object Set]"==t?e.size:tn(e).length}function cp(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Ot(e,t,n)?(t=0,n=r):(t=null==t?0:G(t),n=void 0===n?r:G(n)),sr(e,t,n)):[]}var fp=uo(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),pp=fp;function dp(e,t){var n;return aa(e,function(e,r,o){return!(n=t(e,r,o))}),!!n}function hp(e,t,n){var r=P(e)?Ai:dp;return n&&Ot(e,t,n)&&(t=void 0),r(e,Gi(t))}var vp=wt(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Ot(e,t[0],t[1])?t=[]:n>2&&Ot(t[0],t[1],t[2])&&(t=[t[0]]),bc(e,Un(t,1),[])}),gp=vp,yp=Math.floor,mp=Math.min;function _p(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,u=null===t,l=M(t),s=void 0===t;o<i;){var c=yp((o+i)/2),f=n(e[c]),p=void 0!==f,d=null===f,h=f==f,v=M(f);if(a)var g=r||h;else g=s?h&&(r||p):u?h&&p&&(r||!d):l?h&&p&&!d&&(r||!v):!d&&!v&&(r?f<=t:f<t);g?o=c+1:i=c}return mp(i,4294967294)}function bp(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&&!M(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return _p(e,t,Q,n)}function xp(e,t){return bp(e,t)}function Cp(e,t,n){return _p(e,t,Gi(n))}function jp(e,t){var n=null==e?0:e.length;if(n){var r=bp(e,t);if(r<n&&mt(e[r],t))return r}return-1}function wp(e,t){return bp(e,t,!0)}function Ep(e,t,n){return _p(e,t,Gi(n),!0)}function Ap(e,t){if(null!=e&&e.length){var n=bp(e,t,!0)-1;if(mt(e[n],t))return n}return-1}function Op(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],u=t?t(a):a;if(!n||!mt(u,l)){var l=u;i[o++]=0===a?0:a}}return i}function Sp(e){return e&&e.length?Op(e):[]}function Mp(e,t){return e&&e.length?Op(e,Gi(t)):[]}function Ip(e,t,n){return n&&"number"!=typeof n&&Ot(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=Rn(e))&&("string"==typeof t||null!=t&&!hs(t))&&!(t=W(t))&&pr(e)?cr(Er(e),0,n):e.split(t,n):[]}var kp=Math.max;function Pp(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return t=null==t?0:kp(G(t),0),wt(function(n){var r=n[t],o=cr(n,0,t);return r&&zn(o,r),xe(e,this,o)})}var Rp=uo(function(e,t,n){return e+(n?" ":"")+Or(t)}),Lp=Rp;function Wp(e,t,n){return e=Rn(e),n=null==n?0:bo(G(n),0,e.length),t=W(t),e.slice(n,n+t.length)==t}function Bp(){return{}}function Tp(){return""}function Dp(){return!0}var zp=B(function(e,t){return e-t},0);function qp(e){return e&&e.length?Us(e,Q):0}function Np(e,t){return e&&e.length?Us(e,Gi(t)):0}function Up(e){var t=null==e?0:e.length;return t?sr(e,1,t):[]}function Fp(e,t,n){return e&&e.length?sr(e,0,(t=n||void 0===t?1:G(t))<0?0:t):[]}function $p(e,t,n){var r=null==e?0:e.length;return r?sr(e,(t=r-(t=n||void 0===t?1:G(t)))<0?0:t,r):[]}function Hp(e,t){return e&&e.length?Ga(e,Gi(t),!1,!0):[]}function Kp(e,t){return e&&e.length?Ga(e,Gi(t)):[]}function Vp(e,t){return t(e),e}var Yp=Object.prototype,Zp=Yp.hasOwnProperty;function Gp(e,t,n,r){return void 0===e||mt(e,Yp[n])&&!Zp.call(r,n)?t:e}var Jp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function Qp(e){return"\\"+Jp[e]}var Xp=/<%=([\s\S]+?)%>/g,ed={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:Xp,variable:"",imports:{_:{escape:du}}},td=/\b__p \+= '';/g,nd=/\b(__p \+=) '' \+/g,rd=/(__e\(.*?\)|\b__t\)) \+\n'';/g,od=/[()=,{}\[\]\/\s]/,id=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ad=/($^)/,ud=/['\n\r\u2028\u2029\\]/g,ld=Object.prototype.hasOwnProperty;function sd(e,t,n){var r=ed.imports._.templateSettings||ed;n&&Ot(e,t,n)&&(t=void 0),e=Rn(e),t=pn({},t,r,Gp);var o,i,a=pn({},t.imports,r.imports,Gp),u=nn(a),l=ml(a,u),s=0,c=t.interpolate||ad,f="__p += '",p=RegExp((t.escape||ad).source+"|"+c.source+"|"+(c===Xp?id:ad).source+"|"+(t.evaluate||ad).source+"|$","g"),d=ld.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"";e.replace(p,function(t,n,r,a,u,l){return r||(r=a),f+=e.slice(s,l).replace(ud,Qp),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),u&&(i=!0,f+="';\n"+u+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),s=l+t.length,t}),f+="';\n";var h=ld.call(t,"variable")&&t.variable;if(h){if(od.test(h))throw new Error("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(i?f.replace(td,""):f).replace(nd,"$1").replace(rd,"$1;"),f="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")+f+"return __p\n}";var v=tr(function(){return Function(u,d+"return "+f).apply(void 0,l)});if(v.source=f,Xn(v))throw v;return v}function cd(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return U(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ma(e,t,{leading:r,maxWait:t,trailing:o})}function fd(e,t){return t(e)}var pd=4294967295,dd=Math.min;function hd(e,t){if((e=G(e))<1||e>9007199254740991)return[];var n=pd,r=dd(e,pd);t=Xa(t),e-=pd;for(var o=kt(r,t);++n<e;)t(n);return o}function vd(){return this}function gd(e,t){var n=e;return n instanceof Oe&&(n=n.value()),Mr(t,function(e,t){return t.func.apply(t.thisArg,zn([e],t.args))},n)}function yd(){return gd(this.__wrapped__,this.__actions__)}function md(e){return Rn(e).toLowerCase()}function _d(e){return P(e)?k(e,Wn):M(e)?[e]:We(Pn(Rn(e)))}function bd(e){return e?bo(G(e),-9007199254740991,9007199254740991):0===e?e:0}function xd(e){return Rn(e).toUpperCase()}function Cd(e,t,n){var r=P(e),o=r||Nt(e)||Zt(e);if(t=Gi(t),null==n){var i=e&&e.constructor;n=o?r?new i:[]:U(e)&&X(i)?_e(Kn(e)):{}}return(o?Je:oa)(e,function(e,r,o){return t(n,e,r,o)}),n}function jd(e,t){for(var n=e.length;n--&&et(t,e[n],0)>-1;);return n}function wd(e,t){for(var n=-1,r=e.length;++n<r&&et(t,e[n],0)>-1;);return n}function Ed(e,t,n){if((e=Rn(e))&&(n||void 0===t))return N(e);if(!e||!(t=W(t)))return e;var r=Er(e),o=Er(t);return cr(r,wd(r,o),jd(r,o)+1).join("")}function Ad(e,t,n){if((e=Rn(e))&&(n||void 0===t))return e.slice(0,z(e)+1);if(!e||!(t=W(t)))return e;var r=Er(e);return cr(r,0,jd(r,Er(t))+1).join("")}var Od=/^\s+/;function Sd(e,t,n){if((e=Rn(e))&&(n||void 0===t))return e.replace(Od,"");if(!e||!(t=W(t)))return e;var r=Er(e);return cr(r,wd(r,Er(t))).join("")}var Md=/\w*$/;function Id(e,t){var n=30,r="...";if(U(t)){var o="separator"in t?t.separator:o;n="length"in t?G(t.length):n,r="omission"in t?W(t.omission):r}var i=(e=Rn(e)).length;if(pr(e)){var a=Er(e);i=a.length}if(n>=i)return e;var u=n-Hc(r);if(u<1)return r;var l=a?cr(a,0,u).join(""):e.slice(0,u);if(void 0===o)return l+r;if(a&&(u+=l.length-u),hs(o)){if(e.slice(u).search(o)){var s,c=l;for(o.global||(o=RegExp(o.source,Rn(Md.exec(o))+"g")),o.lastIndex=0;s=o.exec(c);)var f=s.index;l=l.slice(0,void 0===f?u:f)}}else if(e.indexOf(W(o),u)!=u){var p=l.lastIndexOf(o);p>-1&&(l=l.slice(0,p))}return l+r}function kd(e){return gt(e,1)}var Pd=Ir({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Rd=/&(?:amp|lt|gt|quot|#39);/g,Ld=RegExp(Rd.source);function Wd(e){return(e=Rn(e))&&Ld.test(e)?e.replace(Rd,Pd):e}var Bd=Uo&&1/Ii(new Uo([,-0]))[1]==1/0?function(e){return new Uo(e)}:Se,Td=Bd;function Dd(e,t,n){var r=-1,o=tt,i=e.length,a=!0,u=[],l=u;if(n)a=!1,o=Da;else if(i>=200){var s=t?null:Td(e);if(s)return Ii(s);a=!1,o=Oi,l=new Ei}else l=t?[]:u;e:for(;++r<i;){var c=e[r],f=t?t(c):c;if(c=n||0!==c?c:0,a&&f==f){for(var p=l.length;p--;)if(l[p]===f)continue e;t&&l.push(f),u.push(c)}else o(l,f,n)||(l!==u&&l.push(f),u.push(c))}return u}var zd=wt(function(e){return Dd(Un(e,1,Ea,!0))}),qd=wt(function(e){var t=Ua(e);return Ea(t)&&(t=void 0),Dd(Un(e,1,Ea,!0),Gi(t))}),Nd=qd,Ud=wt(function(e){var t=Ua(e);return t="function"==typeof t?t:void 0,Dd(Un(e,1,Ea,!0),void 0,t)});function Fd(e){return e&&e.length?Dd(e):[]}function $d(e,t){return e&&e.length?Dd(e,Gi(t)):[]}function Hd(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Dd(e,void 0,t):[]}var Kd=0;function Vd(e){var t=++Kd;return Rn(e)+t}function Yd(e,t){return null==e||cc(e,t)}var Zd=Math.max;function Gd(e){if(!e||!e.length)return[];var t=0;return e=Mo(e,function(e){if(Ea(e))return t=Zd(e.length,t),!0}),kt(t,function(t){return k(e,Yi(t))})}function Jd(e,t){if(!e||!e.length)return[];var n=Gd(e);return null==t?n:k(n,function(e){return xe(t,void 0,e)})}function Qd(e,t,n,r){return hc(e,t,n(Bn(e,t)),r)}function Xd(e,t,n){return null==e?e:Qd(e,t,Xa(n))}function eh(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:Qd(e,t,Xa(n),r)}var th=uo(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),nh=th;function rh(e){return null==e?[]:ml(e,ln(e))}var oh=wt(function(e,t){return Ea(e)?za(e,t):[]}),ih=oh;function ah(e,t){return rf(Xa(t),e)}var uh=$n(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Dn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Oe&&ut(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:fd,args:[o],thisArg:void 0}),new Le(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(void 0),e})):this.thru(o)}),lh=uh;function sh(){return go(this)}function ch(){var e=this.__wrapped__;if(e instanceof Oe){var t=e;return this.__actions__.length&&(t=new Oe(this)),(t=t.reverse()).__actions__.push({func:fd,args:[Zf],thisArg:void 0}),new Le(t,this.__chain__)}return this.thru(Zf)}function fh(e,t,n){var r=e.length;if(r<2)return r?Dd(e[0]):[];for(var o=-1,i=Array(r);++o<r;)for(var a=e[o],u=-1;++u<r;)u!=o&&(i[o]=za(i[o]||a,e[u],t,n));return Dd(Un(i,1),t,n)}var ph=wt(function(e){return fh(Mo(e,Ea))}),dh=wt(function(e){var t=Ua(e);return Ea(t)&&(t=void 0),fh(Mo(e,Ea),Gi(t))}),hh=dh,vh=wt(function(e){var t=Ua(e);return t="function"==typeof t?t:void 0,fh(Mo(e,Ea),void 0,t)}),gh=wt(Gd);function yh(e,t,n){for(var r=-1,o=e.length,i=t.length,a={};++r<o;){var u=r<i?t[r]:void 0;n(a,e[r],u)}return a}function mh(e,t){return yh(e||[],t||[],bt)}function _h(e,t){return yh(e||[],t||[],hc)}var bh,xh=wt(function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Jd(e,n)}),Ch=xh,jh={chunk:_o,compact:ji,concat:wi,difference:Na,differenceBy:$a,differenceWith:Ka,drop:Ya,dropRight:Za,dropRightWhile:Ja,dropWhile:Qa,fill:xu,findIndex:Au,findLastIndex:Pu,first:Wu,flatten:Fn,flattenDeep:Fu,flattenDepth:$u,fromPairs:el,head:Wu,indexOf:jl,initial:wl,intersection:Sl,intersectionBy:Il,intersectionWith:kl,join:xs,last:Ua,lastIndexOf:Ss,nth:uc,pull:yf,pullAll:gf,pullAllBy:mf,pullAllWith:_f,pullAt:jf,remove:Ff,reverse:Zf,slice:cp,sortedIndex:xp,sortedIndexBy:Cp,sortedIndexOf:jp,sortedLastIndex:wp,sortedLastIndexBy:Ep,sortedLastIndexOf:Ap,sortedUniq:Sp,sortedUniqBy:Mp,tail:Up,take:Fp,takeRight:$p,takeRightWhile:Hp,takeWhile:Kp,union:zd,unionBy:Nd,unionWith:Ud,uniq:Fd,uniqBy:$d,uniqWith:Hd,unzip:Gd,unzipWith:Jd,without:ih,xor:ph,xorBy:hh,xorWith:vh,zip:gh,zipObject:mh,zipObjectDeep:_h,zipWith:Ch},wh={countBy:fa,each:eu,eachRight:iu,every:_u,filter:ju,find:Ou,findLast:Ru,flatMap:Du,flatMapDeep:qu,flatMapDepth:Nu,forEach:eu,forEachRight:iu,groupBy:al,includes:xl,invokeMap:Hl,keyBy:Es,map:Tu,orderBy:xc,partition:lf,reduce:zf,reduceRight:Nf,reject:Uf,sample:Xf,sampleSize:rp,shuffle:lp,size:sp,some:hp,sortBy:gp},Eh=va,Ah={after:J,ary:gt,before:nr,bind:or,bindKey:lr,curry:da,curryRight:ha,debounce:ma,defer:Wa,delay:Ta,flip:Hu,memoize:Sn,negate:nc,once:mc,overArgs:Oc,partial:rf,partialRight:af,rearg:Tf,rest:Kf,spread:Pp,throttle:cd,unary:kd,wrap:ah},Oh={castArray:co,clone:mi,cloneDeep:_i,cloneDeepWith:bi,cloneWith:xi,conformsTo:ea,eq:mt,gt:sl,gte:cl,isArguments:Bt,isArray:P,isArrayBuffer:Vl,isArrayLike:At,isArrayLikeObject:Ea,isBoolean:Yl,isBuffer:Nt,isDate:Gl,isElement:Jl,isEmpty:Xl,isEqual:es,isEqualWith:ts,isError:Xn,isFinite:rs,isFunction:X,isInteger:os,isLength:Et,isMap:ci,isMatch:is,isMatchWith:as,isNaN:ls,isNative:cs,isNil:fs,isNull:ps,isNumber:us,isObject:U,isObjectLike:S,isPlainObject:Qn,isRegExp:hs,isSafeInteger:vs,isSet:pi,isString:yl,isSymbol:M,isTypedArray:Zt,isUndefined:gs,isWeakMap:ys,isWeakSet:ms,lt:Rs,lte:Ls,toArray:oc,toFinite:Z,toInteger:G,toLength:bu,toNumber:V,toPlainObject:Oa,toSafeInteger:bd,toString:Rn},Sh={add:T,ceil:vo,divide:Va,floor:Ku,max:qs,maxBy:Ns,mean:$s,meanBy:Hs,min:Qs,minBy:Xs,multiply:tc,round:Gf,subtract:zp,sum:qp,sumBy:Np},Mh=xo,Ih=gl,kh=If,Ph={assign:an,assignIn:cn,assignInWith:pn,assignWith:hn,at:Hn,create:pa,defaults:ja,defaultsDeep:Pa,entries:lu,entriesIn:su,extend:cn,extendWith:pn,findKey:Mu,findLastKey:Lu,forIn:Gu,forInRight:Ju,forOwn:Qu,forOwnRight:Xu,functions:nl,functionsIn:rl,get:Tn,has:dl,hasIn:Ki,invert:Wl,invertBy:ql,invoke:Fl,keys:nn,keysIn:ln,mapKeys:Ws,mapValues:Bs,merge:Vs,mergeWith:ka,omit:dc,omitBy:yc,pick:cf,pickBy:gc,result:Vf,set:op,setWith:ip,toPairs:lu,toPairsIn:su,transform:Cd,unset:Yd,update:Xd,updateWith:eh,values:_l,valuesIn:rh},Rh={at:lh,chain:go,commit:Ci,lodash:De,next:ic,plant:ff,reverse:ch,tap:Vp,thru:fd,toIterator:vd,toJSON:yd,value:yd,valueOf:yd,wrapperChain:sh},Lh={camelCase:so,capitalize:Sr,deburr:Lr,endsWith:au,escape:du,escapeRegExp:gu,kebabCase:js,lowerCase:Is,lowerFirst:ks,pad:Gc,padEnd:Jc,padStart:Qc,parseInt:tf,repeat:$f,replace:Hf,snakeCase:pp,split:Ip,startCase:Lp,startsWith:Wp,template:sd,templateSettings:ed,toLower:md,toUpper:xd,trim:Ed,trimEnd:Ad,trimStart:Sd,truncate:Id,unescape:Wd,upperCase:nh,upperFirst:Or,words:io},Wh={attempt:tr,bindAll:ar,cond:Ji,conforms:Xi,constant:Ke,defaultTo:_a,flow:Yu,flowRight:Zu,identity:Q,iteratee:_s,matches:Ts,matchesProperty:Ds,method:Zs,methodOf:Js,mixin:ec,noop:Se,nthArg:lc,over:jc,overEvery:Sc,overSome:Mc,property:Zi,propertyOf:pf,range:Lf,rangeRight:Wf,stubArray:Io,stubFalse:Tt,stubObject:Bp,stubString:Tp,stubTrue:Dp,times:hd,toPath:_d,uniqueId:Vd},Bh=Math.max,Th=Math.min,Dh=Math.min,zh=4294967295,qh=Array.prototype,Nh=Object.prototype.hasOwnProperty,Uh=b?b.iterator:void 0,Fh=Math.max,$h=Math.min,Hh=function(e){return function(t,n,r){if(null==r){var o=U(n),i=o&&nn(n),a=i&&i.length&&tl(n,i);(a?a.length:o)||(r=n,n=t,t=this)}return e(t,n,r)}}(ec);De.after=Ah.after,De.ary=Ah.ary,De.assign=Ph.assign,De.assignIn=Ph.assignIn,De.assignInWith=Ph.assignInWith,De.assignWith=Ph.assignWith,De.at=Ph.at,De.before=Ah.before,De.bind=Ah.bind,De.bindAll=Wh.bindAll,De.bindKey=Ah.bindKey,De.castArray=Oh.castArray,De.chain=Rh.chain,De.chunk=jh.chunk,De.compact=jh.compact,De.concat=jh.concat,De.cond=Wh.cond,De.conforms=Wh.conforms,De.constant=Wh.constant,De.countBy=wh.countBy,De.create=Ph.create,De.curry=Ah.curry,De.curryRight=Ah.curryRight,De.debounce=Ah.debounce,De.defaults=Ph.defaults,De.defaultsDeep=Ph.defaultsDeep,De.defer=Ah.defer,De.delay=Ah.delay,De.difference=jh.difference,De.differenceBy=jh.differenceBy,De.differenceWith=jh.differenceWith,De.drop=jh.drop,De.dropRight=jh.dropRight,De.dropRightWhile=jh.dropRightWhile,De.dropWhile=jh.dropWhile,De.fill=jh.fill,De.filter=wh.filter,De.flatMap=wh.flatMap,De.flatMapDeep=wh.flatMapDeep,De.flatMapDepth=wh.flatMapDepth,De.flatten=jh.flatten,De.flattenDeep=jh.flattenDeep,De.flattenDepth=jh.flattenDepth,De.flip=Ah.flip,De.flow=Wh.flow,De.flowRight=Wh.flowRight,De.fromPairs=jh.fromPairs,De.functions=Ph.functions,De.functionsIn=Ph.functionsIn,De.groupBy=wh.groupBy,De.initial=jh.initial,De.intersection=jh.intersection,De.intersectionBy=jh.intersectionBy,De.intersectionWith=jh.intersectionWith,De.invert=Ph.invert,De.invertBy=Ph.invertBy,De.invokeMap=wh.invokeMap,De.iteratee=Wh.iteratee,De.keyBy=wh.keyBy,De.keys=nn,De.keysIn=Ph.keysIn,De.map=wh.map,De.mapKeys=Ph.mapKeys,De.mapValues=Ph.mapValues,De.matches=Wh.matches,De.matchesProperty=Wh.matchesProperty,De.memoize=Ah.memoize,De.merge=Ph.merge,De.mergeWith=Ph.mergeWith,De.method=Wh.method,De.methodOf=Wh.methodOf,De.mixin=Hh,De.negate=nc,De.nthArg=Wh.nthArg,De.omit=Ph.omit,De.omitBy=Ph.omitBy,De.once=Ah.once,De.orderBy=wh.orderBy,De.over=Wh.over,De.overArgs=Ah.overArgs,De.overEvery=Wh.overEvery,De.overSome=Wh.overSome,De.partial=Ah.partial,De.partialRight=Ah.partialRight,De.partition=wh.partition,De.pick=Ph.pick,De.pickBy=Ph.pickBy,De.property=Wh.property,De.propertyOf=Wh.propertyOf,De.pull=jh.pull,De.pullAll=jh.pullAll,De.pullAllBy=jh.pullAllBy,De.pullAllWith=jh.pullAllWith,De.pullAt=jh.pullAt,De.range=Wh.range,De.rangeRight=Wh.rangeRight,De.rearg=Ah.rearg,De.reject=wh.reject,De.remove=jh.remove,De.rest=Ah.rest,De.reverse=jh.reverse,De.sampleSize=wh.sampleSize,De.set=Ph.set,De.setWith=Ph.setWith,De.shuffle=wh.shuffle,De.slice=jh.slice,De.sortBy=wh.sortBy,De.sortedUniq=jh.sortedUniq,De.sortedUniqBy=jh.sortedUniqBy,De.split=Lh.split,De.spread=Ah.spread,De.tail=jh.tail,De.take=jh.take,De.takeRight=jh.takeRight,De.takeRightWhile=jh.takeRightWhile,De.takeWhile=jh.takeWhile,De.tap=Rh.tap,De.throttle=Ah.throttle,De.thru=fd,De.toArray=Oh.toArray,De.toPairs=Ph.toPairs,De.toPairsIn=Ph.toPairsIn,De.toPath=Wh.toPath,De.toPlainObject=Oh.toPlainObject,De.transform=Ph.transform,De.unary=Ah.unary,De.union=jh.union,De.unionBy=jh.unionBy,De.unionWith=jh.unionWith,De.uniq=jh.uniq,De.uniqBy=jh.uniqBy,De.uniqWith=jh.uniqWith,De.unset=Ph.unset,De.unzip=jh.unzip,De.unzipWith=jh.unzipWith,De.update=Ph.update,De.updateWith=Ph.updateWith,De.values=Ph.values,De.valuesIn=Ph.valuesIn,De.without=jh.without,De.words=Lh.words,De.wrap=Ah.wrap,De.xor=jh.xor,De.xorBy=jh.xorBy,De.xorWith=jh.xorWith,De.zip=jh.zip,De.zipObject=jh.zipObject,De.zipObjectDeep=jh.zipObjectDeep,De.zipWith=jh.zipWith,De.entries=Ph.toPairs,De.entriesIn=Ph.toPairsIn,De.extend=Ph.assignIn,De.extendWith=Ph.assignInWith,Hh(De,De),De.add=Sh.add,De.attempt=Wh.attempt,De.camelCase=Lh.camelCase,De.capitalize=Lh.capitalize,De.ceil=Sh.ceil,De.clamp=Mh,De.clone=Oh.clone,De.cloneDeep=Oh.cloneDeep,De.cloneDeepWith=Oh.cloneDeepWith,De.cloneWith=Oh.cloneWith,De.conformsTo=Oh.conformsTo,De.deburr=Lh.deburr,De.defaultTo=Wh.defaultTo,De.divide=Sh.divide,De.endsWith=Lh.endsWith,De.eq=Oh.eq,De.escape=Lh.escape,De.escapeRegExp=Lh.escapeRegExp,De.every=wh.every,De.find=wh.find,De.findIndex=jh.findIndex,De.findKey=Ph.findKey,De.findLast=wh.findLast,De.findLastIndex=jh.findLastIndex,De.findLastKey=Ph.findLastKey,De.floor=Sh.floor,De.forEach=wh.forEach,De.forEachRight=wh.forEachRight,De.forIn=Ph.forIn,De.forInRight=Ph.forInRight,De.forOwn=Ph.forOwn,De.forOwnRight=Ph.forOwnRight,De.get=Ph.get,De.gt=Oh.gt,De.gte=Oh.gte,De.has=Ph.has,De.hasIn=Ph.hasIn,De.head=jh.head,De.identity=Q,De.includes=wh.includes,De.indexOf=jh.indexOf,De.inRange=Ih,De.invoke=Ph.invoke,De.isArguments=Oh.isArguments,De.isArray=P,De.isArrayBuffer=Oh.isArrayBuffer,De.isArrayLike=Oh.isArrayLike,De.isArrayLikeObject=Oh.isArrayLikeObject,De.isBoolean=Oh.isBoolean,De.isBuffer=Oh.isBuffer,De.isDate=Oh.isDate,De.isElement=Oh.isElement,De.isEmpty=Oh.isEmpty,De.isEqual=Oh.isEqual,De.isEqualWith=Oh.isEqualWith,De.isError=Oh.isError,De.isFinite=Oh.isFinite,De.isFunction=Oh.isFunction,De.isInteger=Oh.isInteger,De.isLength=Oh.isLength,De.isMap=Oh.isMap,De.isMatch=Oh.isMatch,De.isMatchWith=Oh.isMatchWith,De.isNaN=Oh.isNaN,De.isNative=Oh.isNative,De.isNil=Oh.isNil,De.isNull=Oh.isNull,De.isNumber=Oh.isNumber,De.isObject=U,De.isObjectLike=Oh.isObjectLike,De.isPlainObject=Oh.isPlainObject,De.isRegExp=Oh.isRegExp,De.isSafeInteger=Oh.isSafeInteger,De.isSet=Oh.isSet,De.isString=Oh.isString,De.isSymbol=Oh.isSymbol,De.isTypedArray=Oh.isTypedArray,De.isUndefined=Oh.isUndefined,De.isWeakMap=Oh.isWeakMap,De.isWeakSet=Oh.isWeakSet,De.join=jh.join,De.kebabCase=Lh.kebabCase,De.last=Ua,De.lastIndexOf=jh.lastIndexOf,De.lowerCase=Lh.lowerCase,De.lowerFirst=Lh.lowerFirst,De.lt=Oh.lt,De.lte=Oh.lte,De.max=Sh.max,De.maxBy=Sh.maxBy,De.mean=Sh.mean,De.meanBy=Sh.meanBy,De.min=Sh.min,De.minBy=Sh.minBy,De.stubArray=Wh.stubArray,De.stubFalse=Wh.stubFalse,De.stubObject=Wh.stubObject,De.stubString=Wh.stubString,De.stubTrue=Wh.stubTrue,De.multiply=Sh.multiply,De.nth=jh.nth,De.noop=Wh.noop,De.now=Eh,De.pad=Lh.pad,De.padEnd=Lh.padEnd,De.padStart=Lh.padStart,De.parseInt=Lh.parseInt,De.random=kh,De.reduce=wh.reduce,De.reduceRight=wh.reduceRight,De.repeat=Lh.repeat,De.replace=Lh.replace,De.result=Ph.result,De.round=Sh.round,De.sample=wh.sample,De.size=wh.size,De.snakeCase=Lh.snakeCase,De.some=wh.some,De.sortedIndex=jh.sortedIndex,De.sortedIndexBy=jh.sortedIndexBy,De.sortedIndexOf=jh.sortedIndexOf,De.sortedLastIndex=jh.sortedLastIndex,De.sortedLastIndexBy=jh.sortedLastIndexBy,De.sortedLastIndexOf=jh.sortedLastIndexOf,De.startCase=Lh.startCase,De.startsWith=Lh.startsWith,De.subtract=Sh.subtract,De.sum=Sh.sum,De.sumBy=Sh.sumBy,De.template=Lh.template,De.times=Wh.times,De.toFinite=Oh.toFinite,De.toInteger=G,De.toLength=Oh.toLength,De.toLower=Lh.toLower,De.toNumber=Oh.toNumber,De.toSafeInteger=Oh.toSafeInteger,De.toString=Oh.toString,De.toUpper=Lh.toUpper,De.trim=Lh.trim,De.trimEnd=Lh.trimEnd,De.trimStart=Lh.trimStart,De.truncate=Lh.truncate,De.unescape=Lh.unescape,De.uniqueId=Wh.uniqueId,De.upperCase=Lh.upperCase,De.upperFirst=Lh.upperFirst,De.each=wh.forEach,De.eachRight=wh.forEachRight,De.first=jh.head,Hh(De,(bh={},oa(De,function(e,t){Nh.call(De.prototype,t)||(bh[t]=e)}),bh),{chain:!1}),De.VERSION="4.17.23",(De.templateSettings=Lh.templateSettings).imports._=De,Je(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){De[e].placeholder=De}),Je(["drop","take"],function(e,t){Oe.prototype[e]=function(n){n=void 0===n?1:Fh(G(n),0);var r=this.__filtered__&&!t?new Oe(this):this.clone();return r.__filtered__?r.__takeCount__=$h(n,r.__takeCount__):r.__views__.push({size:$h(n,zh),type:e+(r.__dir__<0?"Right":"")}),r},Oe.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Je(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;Oe.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Gi(e),type:n}),t.__filtered__=t.__filtered__||r,t}}),Je(["head","last"],function(e,t){var n="take"+(t?"Right":"");Oe.prototype[e]=function(){return this[n](1).value()[0]}}),Je(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Oe.prototype[e]=function(){return this.__filtered__?new Oe(this):this[n](1)}}),Oe.prototype.compact=function(){return this.filter(Q)},Oe.prototype.find=function(e){return this.filter(e).head()},Oe.prototype.findLast=function(e){return this.reverse().find(e)},Oe.prototype.invokeMap=wt(function(e,t){return"function"==typeof e?new Oe(this):this.map(function(n){return Ul(n,e,t)})}),Oe.prototype.reject=function(e){return this.filter(nc(Gi(e)))},Oe.prototype.slice=function(e,t){e=G(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Oe(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=G(t))<0?n.dropRight(-t):n.take(t-e)),n)},Oe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Oe.prototype.toArray=function(){return this.take(zh)},oa(Oe.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=De[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(De.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,u=t instanceof Oe,l=a[0],s=u||P(t),c=function(e){var t=o.apply(De,zn([e],a));return r&&f?t[0]:t};s&&n&&"function"==typeof l&&1!=l.length&&(u=s=!1);var f=this.__chain__,p=!!this.__actions__.length,d=i&&!f,h=u&&!p;if(!i&&s){t=h?t:new Oe(this);var v=e.apply(t,a);return v.__actions__.push({func:fd,args:[c],thisArg:void 0}),new Le(v,f)}return d&&h?e.apply(this,a):(v=this.thru(c),d?r?v.value()[0]:v.value():v)})}),Je(["pop","push","shift","sort","splice","unshift"],function(e){var t=qh[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);De.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(P(o)?o:[],e)}return this[n](function(n){return t.apply(P(n)?n:[],e)})}}),oa(Oe.prototype,function(e,t){var n=De[t];if(n){var r=n.name+"";Nh.call(ke,r)||(ke[r]=[]),ke[r].push({name:t,func:n})}}),ke[ft(void 0,2).name]=[{name:"wrapper",func:void 0}],Oe.prototype.clone=function(){var e=new Oe(this.__wrapped__);return e.__actions__=We(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=We(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=We(this.__views__),e},Oe.prototype.reverse=function(){if(this.__filtered__){var e=new Oe(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Oe.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=P(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Th(t,e+a);break;case"takeRight":e=Bh(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,u=i.end,l=u-a,s=r?u:a-1,c=this.__iteratees__,f=c.length,p=0,d=Dh(l,this.__takeCount__);if(!n||!r&&o==l&&d==l)return gd(e,this.__actions__);var h=[];e:for(;l--&&p<d;){for(var v=-1,g=e[s+=t];++v<f;){var y=c[v],m=y.iteratee,_=y.type,b=m(g);if(2==_)g=b;else if(!b){if(1==_)continue e;break e}}h[p++]=g}return h},De.prototype.at=Rh.at,De.prototype.chain=Rh.wrapperChain,De.prototype.commit=Rh.commit,De.prototype.next=Rh.next,De.prototype.plant=Rh.plant,De.prototype.reverse=Rh.reverse,De.prototype.toJSON=De.prototype.valueOf=De.prototype.value=Rh.value,De.prototype.first=De.prototype.head,Uh&&(De.prototype[Uh]=Rh.toIterator);var Kh=function(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}(Object.freeze({__proto__:null,add:T,after:J,ary:gt,assign:an,assignIn:cn,assignInWith:pn,assignWith:hn,at:Hn,attempt:tr,before:nr,bind:or,bindAll:ar,bindKey:lr,camelCase:so,capitalize:Sr,castArray:co,ceil:vo,chain:go,chunk:_o,clamp:xo,clone:mi,cloneDeep:_i,cloneDeepWith:bi,cloneWith:xi,commit:Ci,compact:ji,concat:wi,cond:Ji,conforms:Xi,conformsTo:ea,constant:Ke,countBy:fa,create:pa,curry:da,curryRight:ha,debounce:ma,deburr:Lr,defaultTo:_a,defaults:ja,defaultsDeep:Pa,defer:Wa,delay:Ta,difference:Na,differenceBy:$a,differenceWith:Ka,divide:Va,drop:Ya,dropRight:Za,dropRightWhile:Ja,dropWhile:Qa,each:eu,eachRight:iu,endsWith:au,entries:lu,entriesIn:su,eq:mt,escape:du,escapeRegExp:gu,every:_u,extend:cn,extendWith:pn,fill:xu,filter:ju,find:Ou,findIndex:Au,findKey:Mu,findLast:Ru,findLastIndex:Pu,findLastKey:Lu,first:Wu,flatMap:Du,flatMapDeep:qu,flatMapDepth:Nu,flatten:Fn,flattenDeep:Fu,flattenDepth:$u,flip:Hu,floor:Ku,flow:Yu,flowRight:Zu,forEach:eu,forEachRight:iu,forIn:Gu,forInRight:Ju,forOwn:Qu,forOwnRight:Xu,fromPairs:el,functions:nl,functionsIn:rl,get:Tn,groupBy:al,gt:sl,gte:cl,has:dl,hasIn:Ki,head:Wu,identity:Q,inRange:gl,includes:xl,indexOf:jl,initial:wl,intersection:Sl,intersectionBy:Il,intersectionWith:kl,invert:Wl,invertBy:ql,invoke:Fl,invokeMap:Hl,isArguments:Bt,isArray:P,isArrayBuffer:Vl,isArrayLike:At,isArrayLikeObject:Ea,isBoolean:Yl,isBuffer:Nt,isDate:Gl,isElement:Jl,isEmpty:Xl,isEqual:es,isEqualWith:ts,isError:Xn,isFinite:rs,isFunction:X,isInteger:os,isLength:Et,isMap:ci,isMatch:is,isMatchWith:as,isNaN:ls,isNative:cs,isNil:fs,isNull:ps,isNumber:us,isObject:U,isObjectLike:S,isPlainObject:Qn,isRegExp:hs,isSafeInteger:vs,isSet:pi,isString:yl,isSymbol:M,isTypedArray:Zt,isUndefined:gs,isWeakMap:ys,isWeakSet:ms,iteratee:_s,join:xs,kebabCase:js,keyBy:Es,keys:nn,keysIn:ln,last:Ua,lastIndexOf:Ss,lodash:De,lowerCase:Is,lowerFirst:ks,lt:Rs,lte:Ls,map:Tu,mapKeys:Ws,mapValues:Bs,matches:Ts,matchesProperty:Ds,max:qs,maxBy:Ns,mean:$s,meanBy:Hs,memoize:Sn,merge:Vs,mergeWith:ka,method:Zs,methodOf:Js,min:Qs,minBy:Xs,mixin:ec,multiply:tc,negate:nc,next:ic,noop:Se,now:va,nth:uc,nthArg:lc,omit:dc,omitBy:yc,once:mc,orderBy:xc,over:jc,overArgs:Oc,overEvery:Sc,overSome:Mc,pad:Gc,padEnd:Jc,padStart:Qc,parseInt:tf,partial:rf,partialRight:af,partition:lf,pick:cf,pickBy:gc,plant:ff,property:Zi,propertyOf:pf,pull:yf,pullAll:gf,pullAllBy:mf,pullAllWith:_f,pullAt:jf,random:If,range:Lf,rangeRight:Wf,rearg:Tf,reduce:zf,reduceRight:Nf,reject:Uf,remove:Ff,repeat:$f,replace:Hf,rest:Kf,result:Vf,reverse:Zf,round:Gf,sample:Xf,sampleSize:rp,set:op,setWith:ip,shuffle:lp,size:sp,slice:cp,snakeCase:pp,some:hp,sortBy:gp,sortedIndex:xp,sortedIndexBy:Cp,sortedIndexOf:jp,sortedLastIndex:wp,sortedLastIndexBy:Ep,sortedLastIndexOf:Ap,sortedUniq:Sp,sortedUniqBy:Mp,split:Ip,spread:Pp,startCase:Lp,startsWith:Wp,stubArray:Io,stubFalse:Tt,stubObject:Bp,stubString:Tp,stubTrue:Dp,subtract:zp,sum:qp,sumBy:Np,tail:Up,take:Fp,takeRight:$p,takeRightWhile:Hp,takeWhile:Kp,tap:Vp,template:sd,templateSettings:ed,throttle:cd,thru:fd,times:hd,toArray:oc,toFinite:Z,toInteger:G,toIterator:vd,toJSON:yd,toLength:bu,toLower:md,toNumber:V,toPairs:lu,toPairsIn:su,toPath:_d,toPlainObject:Oa,toSafeInteger:bd,toString:Rn,toUpper:xd,transform:Cd,trim:Ed,trimEnd:Ad,trimStart:Sd,truncate:Id,unary:kd,unescape:Wd,union:zd,unionBy:Nd,unionWith:Ud,uniq:Fd,uniqBy:$d,uniqWith:Hd,uniqueId:Vd,unset:Yd,unzip:Gd,unzipWith:Jd,update:Xd,updateWith:eh,upperCase:nh,upperFirst:Or,value:yd,valueOf:yd,values:_l,valuesIn:rh,without:ih,words:io,wrap:ah,wrapperAt:lh,wrapperChain:sh,wrapperCommit:Ci,wrapperLodash:De,wrapperNext:ic,wrapperPlant:ff,wrapperReverse:ch,wrapperToIterator:vd,wrapperValue:yd,xor:ph,xorBy:hh,xorWith:vh,zip:gh,zipObject:mh,zipObjectDeep:_h,zipWith:Ch,default:De})),Vh={};Object.defineProperty(Vh,"__esModule",{value:!0});class Yh extends CustomEvent{constructor(e,t=!1){super(Yh.TYPE,{bubbles:!0,detail:{update:e,reset:t}}),this.update=e,this.reset=t}}Yh.TYPE="model.updated",Vh.ModelUpdatedEvent=Yh;class Zh extends CustomEvent{constructor(e,t){super(Zh.TYPE,{bubbles:!0,detail:{src:e,done:t}}),this.src=e,this.done=t}}Zh.TYPE="delete.image",Vh.DeleteImageEvent=Zh;class Gh extends CustomEvent{constructor(e){super(Gh.TYPE,{bubbles:!0,detail:e}),this.handler=e}}Gh.TYPE="insert.image",Vh.InsertImageEvent=Gh;class Jh extends CustomEvent{constructor(e,t){super(Jh.TYPE,{bubbles:!0,detail:{src:e,done:t}}),this.src=e,this.done=t}}Jh.TYPE="delete.sound",Vh.DeleteSoundEvent=Jh;class Qh extends CustomEvent{constructor(e){super(Qh.TYPE,{bubbles:!0,detail:e}),this.handler=e}}Qh.TYPE="insert.sound",Vh.InsertSoundEvent=Qh;var Xh={},ev={},tv={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}(tv),c(tv.exports);var nv={};Object.defineProperty(nv,"__esModule",{value:!0}),nv.stripHtmlTags=nv.removeUnwantedCharacters=nv.processMarkup=nv.getAdjustedLength=nv.decodeHTML=nv.createSlateMarkup=void 0;var rv=Kh;const ov="imes|riangle|an|heta|herefore",iv="throot|parallel|cong|approx|eq|e|sim",av=new RegExp(`(\\t(?!${ov}))|(\\n(?!${iv}))|(\\\\t(?!${ov}))|(\\\\n(?!${iv}))`,"g"),uv=e=>e.replace(av,"").replace(/\\"/g,'"').replace(/\\\//g,"/");nv.removeUnwantedCharacters=uv,nv.processMarkup=e=>{const t=((e="")=>{const t=document.createElement("div");return t.innerHTML=e.trim(),t})(uv(e||"")||"");let n=0;return t.querySelectorAll('[data-type="explicit_constructed_response"]').forEach(e=>{e.replaceWith(`{{${n++}}}`)}),t.innerHTML};const lv=/\{\{(\d+)\}\}/g;nv.createSlateMarkup=(e,t)=>e?uv(e).replace(lv,(e,n)=>{const r=t[n][0].label||"";return`<span data-type="explicit_constructed_response" data-index="${n}" data-value="${(0,rv.escape)(r)}"></span>`}):"",nv.getAdjustedLength=e=>e<=2?e+2:e<=4?e+3:e<=6?e+4:e+5,nv.stripHtmlTags=e=>"string"!=typeof e?"":e.replace(/<\/?[^>]+(>|$)/g,""),nv.decodeHTML=e=>(new DOMParser).parseFromString(e,"text/html").body.textContent||"";const sv=e,cv=t,fv=n,pv=l;function dv(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}var hv=p.exports;Object.defineProperty(ev,"__esModule",{value:!0}),ev.default=ev.ECRToolbar=void 0;var vv=hv(tv.exports),gv=hv(d.exports),yv=hv(sv),mv=hv(cv),_v=fv,bv=hv(pv),xv=nv;const Cv=(0,_v.styled)(bv.default)(({theme:e})=>({backgroundColor:e.palette.common.white,outline:"none",lineHeight:"15px"}));class jv extends yv.default.Component{constructor(...e){super(...e),(0,gv.default)(this,"state",{markup:"",toolbarStyle:{}}),(0,gv.default)(this,"onDone",e=>{const{editor:t,node:n,onToolbarDone:r,onChangeResponse:o,pos:i}=this.props,a=(0,xv.stripHtmlTags)(e);this.setState({markup:a});const{tr:u}=t.state,l=u.doc.nodeAt(i);if(!l||l.isText||!l.isAtom||!l.isInline)return!1;u.setNodeMarkup(i,void 0,{...n.attrs,value:a}),t.view.dispatch(u),r(!0),o(a)}),(0,gv.default)(this,"onRespAreaChange",e=>{this.setState({respAreaMarkup:e})}),(0,gv.default)(this,"onKeyDown",e=>"Enter"===e.key),(0,gv.default)(this,"onBlur",()=>{this.clickedInside&&(this.clickedInside=!1)})}componentDidMount(){const{correctChoice:e,node:t,editor:n}=this.props,r=e||{},o=n.view.nodeDOM(n.state.selection.from);if(1===dv([o,"optionalAccess",e=>e.nodeType])){const e=o.getBoundingClientRect(),t=o.closest(".tiptap").getBoundingClientRect();e.top,t.top,e.left,t.left,this.setState({markup:r.label,toolbarStyle:{position:"absolute",top:0,left:0,width:e.width-4+"px"}})}}render(){const{maxLengthPerChoiceEnabled:e,pluginProps:t,spellCheck:n}=this.props,{markup:r,toolbarStyle:o}=this.state,i=e?{}:{maxLength:25};return yv.default.createElement("div",{style:o},yv.default.createElement(Cv,(0,vv.default)({autoFocus:!0,disableUnderline:!0,onChange:e=>{this.preventDone||this.onRespAreaChange(e)},onDone:e=>{this.preventDone||this.onDone(e)},onBlur:e=>{this.preventDone=e.relatedTarget&&e.relatedTarget.closest(".insert-character-dialog"),this.onBlur(e)},onKeyDown:this.onKeyDown,markup:r||"",activePlugins:["languageCharacters"],pluginProps:t,languageCharactersProps:[{language:"spanish"}],minHeight:"15px",maxHeight:"15px",spellCheck:n,autoWidthToolbar:!0,toolbarOpts:{minWidth:"auto",isHidden:!!dv([t,"optionalAccess",e=>e.characters,"optionalAccess",e=>e.disabled])}},i)))}}ev.ECRToolbar=jv,(0,gv.default)(jv,"propTypes",{correctChoice:mv.default.object,node:mv.default.object,pos:mv.default.number,onDone:mv.default.func,onChangeResponse:mv.default.func.isRequired,onToolbarDone:mv.default.func.isRequired,value:mv.default.shape({change:mv.default.func.isRequired,document:mv.default.shape({getNextText:mv.default.func.isRequired})}),editor:mv.default.object,maxLengthPerChoiceEnabled:mv.default.bool,pluginProps:mv.default.object,spellCheck:mv.default.bool}),ev.default=jv;var wv={},Ev={};const Av=e,Ov=t,{Button:Sv}=r,{IconButton:Mv}=r,{MenuItem:Iv}=r,{Select:kv}=r,{TextField:Pv}=r,{Delete:Rv}=o,Lv=n,Wv=i,Bv=l;function Tv(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}var Dv=p.exports;Object.defineProperty(Ev,"__esModule",{value:!0}),Ev.default=Ev.Choice=Ev.AlternateSection=void 0;var zv=Dv(tv.exports),qv=Dv(d.exports),Nv=Dv(Av),Uv=Dv(Ov),Fv=Kh,$v=Dv(Sv),Hv=Dv(Rv),Kv=Dv(Mv),Vv=Dv(Iv),Yv=Dv(kv),Zv=Dv(Pv),Gv=Lv,Jv=Dv(Bv),Qv=Wv,Xv=nv;const eg=(0,Gv.styled)("div")(({theme:e})=>({marginBottom:e.spacing(.5)})),tg=(0,Gv.styled)("div")(({theme:e})=>({alignItems:"flex-start",flexDirection:"column",display:"flex",paddingTop:e.spacing(2.5),"& > *":{marginBottom:e.spacing(2.5),width:"100%"}})),ng=(0,Gv.styled)(Jv.default)(({theme:e,hasError:t})=>({flex:"1",marginRight:e.spacing(2.5),...t&&{border:`2px solid ${e.palette.error.main}`,borderRadius:"6px"}})),rg=(0,Gv.styled)(Kv.default)(()=>({"& svg":{fill:Qv.color.text()}})),og=(0,Gv.styled)("div")({alignItems:"flex-end",display:"flex",justifyContent:"space-between",width:"100%"}),ig=(0,Gv.styled)("div")({alignItems:"center",display:"flex"}),ag=(0,Gv.styled)(Zv.default)(({theme:e})=>({width:"230px",marginRight:e.spacing(2.5),"& .MuiInput-underline:before":{borderBottomColor:e.palette.divider},"& .MuiInput-underline:hover:not(.Mui-disabled):before":{borderBottomColor:e.palette.text.primary},"& .MuiInput-underline:after":{borderBottomColor:e.palette.primary.main}})),ug=(0,Gv.styled)("div")(({theme:e})=>({fontSize:e.typography.fontSize-2,color:e.palette.error.main,paddingTop:e.spacing(.5)})),lg=(0,Gv.styled)("div")({alignItems:"center",display:"flex",justifyContent:"space-between"});class sg extends Nv.default.Component{constructor(...e){super(...e),(0,qv.default)(this,"state",{value:this.props.markup}),(0,qv.default)(this,"updateText",(0,Fv.debounce)(this.props.onChange,300)),(0,qv.default)(this,"onChange",e=>{const t=(0,Xv.stripHtmlTags)(e);this.setState({value:t}),this.updateText(t)}),(0,qv.default)(this,"onKeyDown",e=>{if("Enter"===e.key)return!0})}UNSAFE_componentWillReceiveProps(e){e.markup&&this.setState({value:e.markup})}render(){const{value:e}=this.state,{onDelete:t,spellCheck:n,error:r,showMaxLength:o,pluginProps:i}=this.props,a=o?{}:{maxLength:25};return Nv.default.createElement(Nv.default.Fragment,null,Nv.default.createElement(lg,null,Nv.default.createElement(ng,(0,zv.default)({hasError:!!r,disableUnderline:!0,onChange:this.onChange,onKeyDown:this.onKeyDown,markup:e||"",activePlugins:["languageCharacters"],pluginProps:i,languageCharactersProps:[{language:"spanish"}],spellCheck:n,autoWidthToolbar:!0,toolbarOpts:{minWidth:"auto",isHidden:!!Tv([i,"optionalAccess",e=>e.characters,"optionalAccess",e=>e.disabled])}},a)),Nv.default.createElement(rg,{"aria-label":"delete",onClick:t,size:"large"},Nv.default.createElement(Hv.default,null))),r&&Nv.default.createElement(ug,null,r))}}Ev.Choice=sg,(0,qv.default)(sg,"propTypes",{error:Uv.default.string,markup:Uv.default.string,onChange:Uv.default.func.isRequired,onDelete:Uv.default.func.isRequired,value:Uv.default.string,spellCheck:Uv.default.bool,showMaxLength:Uv.default.bool,pluginProps:Uv.default.object});class cg extends Nv.default.Component{constructor(...e){super(...e),(0,qv.default)(this,"state",{}),(0,qv.default)(this,"updateChoicesIfNeeded",e=>{this.state.choices&&(0,Fv.isEqual)(e.choices,this.state.choices)&&(0,Fv.isEqual)(e.choices,this.props.choices)||this.setState({choices:e.choices})}),(0,qv.default)(this,"handleSelect",e=>{const{onSelect:t,selectChoices:n}=this.props,{value:r}=e.target;t(n.find(e=>e.value===r))}),(0,qv.default)(this,"onAddChoice",()=>{const{choices:e}=this.state;if(e.length&&""!==e[e.length-1].label){const t=(0,Fv.max)(e.map(e=>parseInt(e.value)).filter(e=>!isNaN(e)))||0;this.setState({choices:[...e,{value:`${t+1}`,label:""}]})}}),(0,qv.default)(this,"onChoiceChanged",(e,t,n)=>{const{choiceChanged:r,lengthChanged:o,maxLength:i,choices:a}=this.props,u=a.map(e=>(0,Xv.decodeHTML)(e.label||"").length);u[n]=(0,Xv.decodeHTML)(t).length;const l=Math.max(...u);r({...e,label:t}),(l>i||l+10<=i)&&o((0,Xv.getAdjustedLength)(l))}),(0,qv.default)(this,"onRemoveChoice",e=>{const{choiceRemoved:t}=this.props;t(e.value)}),(0,qv.default)(this,"getChoicesMaxLength",()=>{const{choices:e}=this.state;if(!e)return 1;const t=e.map(e=>(0,Xv.decodeHTML)(e.label||"").length);return Math.max(...t)}),(0,qv.default)(this,"changeLength",e=>{const{lengthChanged:t}=this.props,n=parseInt(e.target.value,10),r=this.getChoicesMaxLength();n&&n>=r&&n<=r+10&&t(n)})}UNSAFE_componentWillReceiveProps(e){this.updateChoicesIfNeeded(e)}componentDidMount(){this.updateChoicesIfNeeded(this.props)}render(){const{selectChoices:e,maxLength:t,showMaxLength:n,value:r,spellCheck:o,errors:i,pluginProps:a}=this.props,{choices:u}=this.state,l=this.getChoicesMaxLength();return Nv.default.createElement(eg,null,Nv.default.createElement(og,null,Nv.default.createElement(Yv.default,{variant:"standard",displayEmpty:!0,onChange:this.handleSelect,value:r||"",readOnly:n,MenuProps:{transitionDuration:{enter:225,exit:195}}},Nv.default.createElement(Vv.default,{value:""},Nv.default.createElement("em",null,r?"Remove selection":"Select a response")),e.map((e,t)=>Nv.default.createElement(Vv.default,{key:t,value:Tv([e,"optionalAccess",e=>e.value])},(0,Xv.decodeHTML)(Tv([e,"optionalAccess",e=>e.label]))))),u&&u.length>0&&Nv.default.createElement(ig,null,t&&n&&Nv.default.createElement(ag,{variant:"standard",label:"Maximum length (characters)",type:"number",inputProps:{min:l,max:l+10},value:t,onChange:this.changeLength}),Nv.default.createElement($v.default,{variant:"contained",color:"primary",onClick:this.onAddChoice},"Add"))),i&&i[0]&&Nv.default.createElement(ug,null,i[0]),Nv.default.createElement(tg,null,u&&u.map((e,t)=>t>0&&Nv.default.createElement(sg,{key:t,markup:e.label,onChange:n=>this.onChoiceChanged(e,n,t),onDelete:()=>this.onRemoveChoice(e),spellCheck:o,error:i&&i[t],showMaxLength:n,pluginProps:a}))))}}Ev.AlternateSection=cg,(0,qv.default)(cg,"propTypes",{choices:Uv.default.array,selectChoices:Uv.default.array.isRequired,errors:Uv.default.object,onSelect:Uv.default.func.isRequired,choiceChanged:Uv.default.func.isRequired,lengthChanged:Uv.default.func,choiceRemoved:Uv.default.func.isRequired,value:Uv.default.string,maxLength:Uv.default.number,showMaxLength:Uv.default.bool,spellCheck:Uv.default.bool,pluginProps:Uv.default.object}),Ev.default=cg;const fg=e,pg=t;var dg=p.exports;Object.defineProperty(wv,"__esModule",{value:!0}),wv.default=wv.AlternateResponses=void 0;var hg=dg(d.exports),vg=dg(fg),gg=dg(pg),yg=Kh,mg=dg(Ev);class _g extends vg.default.Component{constructor(...e){super(...e),(0,hg.default)(this,"state",{maxLengthPerChoice:(0,yg.cloneDeep)(this.props.model.maxLengthPerChoice)}),(0,hg.default)(this,"updateChoicesIfNeeded",e=>{if(!this.state.choices||!(0,yg.isEqual)(this.state.choices,e.model.choices)||!(0,yg.isEqual)(e.model.choices,this.props.model.choices)||this.state.values&&Object.keys(this.state.values).length!==Object.keys(this.props.model.choices).length||e.maxLengthPerChoiceEnabled!==this.props.maxLengthPerChoiceEnabled){const{choices:t,maxLengthPerChoice:n}=e.model,r=(0,yg.reduce)(t,(t,n,r)=>(n&&(e.maxLengthPerChoiceEnabled||n.length>1)&&(t[r]=n[0]),t),{});this.setState({choices:e.model.choices,values:r,maxLengthPerChoice:(0,yg.cloneDeep)(n)})}}),(0,hg.default)(this,"getRemainingChoices",e=>{const{choices:t}=this.state;return(0,yg.reduce)(t,(t,n,r)=>(n&&1===n.length&&!e&&t.push({label:n[0].label,value:r}),t),[])}),(0,hg.default)(this,"onChoiceChanged",(e,t)=>{const{onChange:n}=this.props,{choices:r}=this.state,o=r[t]||[],i=!o.find(t=>t.value===e.value),a=o.reduce((t,n)=>{const r=n.value===e.value?e:n;return t.push(r),t},[]);i&&a.push(e),n({...r,[t]:a})}),(0,hg.default)(this,"onChoiceRemoved",(e,t)=>{const{onChange:n}=this.props,{choices:r}=this.state,o=(r[t]||[]).reduce((t,n)=>(n.value===e||t.push(n),t),[]);n({...r,[t]:o})}),(0,hg.default)(this,"onSectionSelect",(e,t)=>{const{onChange:n}=this.props,{choices:r,values:o}=this.state;r[t]&&r[t].length>1?e||n({...r,[t]:[r[t][0]]}):this.setState({choices:{...r,[t]:[...r[t],{label:"",value:"1"}]},values:{...o,[t]:r[t][0]}})}),(0,hg.default)(this,"onLengthChanged",(e,t)=>{const{model:n,onLengthChange:r}=this.props,{maxLengthPerChoice:o}=n;o[t]=e,r(o)})}UNSAFE_componentWillReceiveProps(e){this.updateChoicesIfNeeded(e)}componentDidMount(){this.updateChoicesIfNeeded(this.props)}render(){const{choices:e}=this.state,{model:{maxLengthPerChoice:t,maxLengthPerChoiceEnabled:n},spellCheck:r,choicesErrors:o,pluginProps:i}=this.props;return vg.default.createElement("div",null,(0,yg.map)(e,(e,a)=>{if(e&&(n||e.length>1)){const u=this.state.values[a];return vg.default.createElement(mg.default,{key:a,value:u&&u.value,errors:o&&o[a],onSelect:e=>this.onSectionSelect(e,a),choiceChanged:e=>this.onChoiceChanged(e,a),choiceRemoved:e=>this.onChoiceRemoved(e,a),lengthChanged:e=>this.onLengthChanged(e,a),selectChoices:[u],choices:e,maxLength:t[a],showMaxLength:n,spellCheck:r,pluginProps:i})}}),e&&Object.keys(this.state.values).length!==Object.keys(e).length&&vg.default.createElement(mg.default,{value:"",onSelect:e=>this.onSectionSelect(e,e.value),choiceChanged:e=>this.onChoiceChanged(e),choiceRemoved:e=>this.onChoiceRemoved(e),selectChoices:this.getRemainingChoices(),spellCheck:r,pluginProps:i}))}}wv.AlternateResponses=_g,(0,hg.default)(_g,"propTypes",{choicesErrors:gg.default.object,model:gg.default.object.isRequired,onChange:gg.default.func.isRequired,onLengthChange:gg.default.func.isRequired,maxLengthPerChoiceEnabled:gg.default.bool.isRequired,spellCheck:gg.default.bool,pluginProps:gg.default.object}),wv.default=_g;var bg={};Object.defineProperty(bg,"__esModule",{value:!0}),bg.generateValidationMessage=void 0,bg.generateValidationMessage=e=>{const{maxResponseAreas:t}=e;return"Validation requirements:\nCorrect answers should not be blank.\nEach answer defined for a response area should be unique.\nThere should be at least 1 "+(t?`and at most ${t} `:"")+"response area"+(t?"s":"")+" defined."};const xg=e,Cg=t,jg=n,{Typography:wg}=r,{Tooltip:Eg}=r,{Info:Ag}=o,Og=l,Sg=s;function Mg(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}var Ig=p.exports;Object.defineProperty(Xh,"__esModule",{value:!0}),Xh.default=Xh.Main=void 0;var kg=Ig(d.exports),Pg=Ig(xg),Rg=Ig(Cg),Lg=Kh,Wg=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,r,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(n=t){if(n.has(e))return n.get(e);n.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?n(o,t,r):o[t]=e[t]);return o}(e)}(Og),Bg=Sg,Tg=jg,Dg=Ig(wg),zg=Ig(Ag),qg=Ig(Eg),Ng=Ig(ev),Ug=Ig(wv),Fg=nv,$g=bg;const{toggle:Hg,Panel:Kg,dropdown:Vg}=Bg.settings,Yg=(0,Tg.styled)(Bg.InputContainer)(({theme:e})=>({width:"100%",paddingTop:e.spacing(1),marginTop:e.spacing(2),marginBottom:e.spacing(2)})),Zg=(0,Tg.styled)(Wg.default)(({theme:e})=>({minHeight:"100px",paddingTop:e.spacing(1),width:"100%",'& [data-slate-editor="true"]':{minHeight:"100px"}})),Gg=(0,Tg.styled)(Dg.default)(({theme:e})=>({fontSize:e.typography.fontSize+2})),Jg=(0,Tg.styled)(qg.default)(({theme:e})=>({"& .MuiTooltip-tooltip":{fontSize:e.typography.fontSize-2,whiteSpace:"pre",maxWidth:"500px"}})),Qg=(0,Tg.styled)("div")(({theme:e})=>({fontSize:e.typography.fontSize-2,color:e.palette.error.main,paddingTop:e.spacing(1)})),Xg=(0,Tg.styled)("div")({display:"flex",alignItems:"center"}),ey=(0,Tg.styled)(Dg.default)(({theme:e})=>({fontSize:e.typography.fontSize+2,marginTop:e.spacing(3),marginBottom:e.spacing(1)}));class ty extends Pg.default.Component{constructor(...e){super(...e),(0,kg.default)(this,"state",{}),(0,kg.default)(this,"onModelChange",e=>{this.props.onModelChanged({...e})}),(0,kg.default)(this,"onPromptChanged",e=>{this.props.onModelChanged({prompt:e})}),(0,kg.default)(this,"onRationaleChanged",e=>{this.props.onModelChanged({rationale:e})}),(0,kg.default)(this,"onTeacherInstructionsChanged",e=>{const{onModelChanged:t}=this.props;t({teacherInstructions:e})}),(0,kg.default)(this,"onMarkupChanged",e=>{this.props.onModelChanged({slateMarkup:e})}),(0,kg.default)(this,"onResponsesChanged",e=>{this.props.onModelChanged({choices:e})}),(0,kg.default)(this,"onLengthChanged",e=>{const{onModelChanged:t}=this.props;t({maxLengthPerChoice:e})}),(0,kg.default)(this,"onChangeResponse",(e,t)=>{const{model:n,onModelChanged:r}=this.props,{choices:o}=n;let{maxLengthPerChoice:i}=n;const a=(0,Fg.decodeHTML)(t||"").length;if(o[e]&&o[e].length)o[e][0].label=t||"",i&&(i[e]<a||i[e]>a+10)&&(i[e]=(0,Fg.getAdjustedLength)(a));else{o[e]=[{label:t||"",value:"0"}];const n=e>i.length?e-i.length:0;i=[...i,...Array(n).fill(1)],i.splice(e,0,(0,Fg.getAdjustedLength)(a))}r({choices:o,maxLengthPerChoice:i})}),(0,kg.default)(this,"onChange",e=>{const{model:{choices:t,maxLengthPerChoice:n},onModelChanged:r}=this.props,o=(e=>{const t=document.createElement("div");return t.innerHTML=e.trim(),t})(e),i=o.querySelectorAll('[data-type="explicit_constructed_response"]'),a={},u=[];i.forEach((e,r)=>{const o=(0,Lg.cloneDeep)(t[e.dataset.index]);o&&(o[0]={label:e.dataset.value||"",value:"0"},u[r]=n[e.dataset.index]),a[r]=o,e.dataset.index=r}),this.setState({cachedChoices:void 0},()=>r({choices:a,slateMarkup:o.innerHTML,maxLengthPerChoice:u}))}),(0,kg.default)(this,"onHandleAreaChange",(0,Lg.throttle)(e=>{const{model:{choices:t},onModelChanged:n}=this.props,{cachedChoices:r}=this.state;if(!e)return;const o=t?(0,Lg.cloneDeep)(t):{},i=r?(0,Lg.cloneDeep)(r):{};e.forEach(e=>{const t=e.index;!o[t]&&i[t]?(Object.assign(o,(0,Lg.pick)(i,t)),Object.prototype.hasOwnProperty.call(i,t)&&delete i[t]):(Object.assign(i,(0,Lg.pick)(o,t)),Object.prototype.hasOwnProperty.call(o,t)&&delete o[t])}),this.setState({cachedChoices:i},()=>n({choices:o}))},500,{trailing:!1,leading:!0}))}componentDidMount(){const{model:{slateMarkup:e,choices:t,maxLengthPerChoice:n=[]},onModelChanged:r}=this.props,o=!n.length;this.setState({markup:e}),Object.values(t).forEach((e,t)=>{const r=e.map(e=>(0,Fg.decodeHTML)(e.label||"").length),i=Math.max(...r);(o||!n[t]||n[t]<i||n[t]>i+10)&&(n[t]=(0,Fg.getAdjustedLength)(i))}),r({maxLengthPerChoice:n})}render(){const{model:e,configuration:t,onConfigurationChanged:n,imageSupport:r,uploadSoundSupport:o}=this.props,{baseInputConfiguration:i={},contentDimensions:a={},maxImageWidth:u={},maxImageHeight:l={},maxLengthPerChoice:s={},maxResponseAreas:c,partialScoring:f={},playerSpellCheck:p={},prompt:d={},rationale:h={},template:v={},settingsPanelDisabled:g,spellCheck:y={},editSource:m={},teacherInstructions:_={},withRubric:b={},mathMlOptions:x={},language:C={},languageChoices:j={},spanishButton:w={},responseAreaInputConfiguration:E={}}=t||{},{errors:A,extraCSSRules:O,maxLengthPerChoiceEnabled:S,promptEnabled:M,rationaleEnabled:I,spellCheckEnabled:k,teacherInstructionsEnabled:P,toolbarEditorPosition:R}=e||{},{choices:L={},prompt:W,rationale:B,responseAreas:T,teacherInstructions:D}=A||{},z=(0,$g.generateValidationMessage)(t),q=u&&u.prompt,N=l&&l.prompt,U={position:"top"===R?"top":"bottom"},F={partialScoring:f.settings&&Hg(f.label),maxLengthPerChoiceEnabled:s.settings&&Hg(s.label),"language.enabled":C.settings&&Hg(C.label,!0),language:C.settings&&C.enabled&&Vg(j.label,j.options),"responseAreaInputConfiguration.inputConfiguration.characters.disabled":w.settings&&Hg(w.label,!0)},$={teacherInstructionsEnabled:_.settings&&Hg(_.label),rationaleEnabled:h.settings&&Hg(h.label),promptEnabled:d.settings&&Hg(d.label),spellCheckEnabled:y.settings&&Hg(y.label),playerSpellCheckEnabled:p.settings&&Hg(p.label),rubricEnabled:Mg([b,"optionalAccess",e=>e.settings])&&Hg(Mg([b,"optionalAccess",e=>e.label])),"editSource.enabled":Mg([m,"optionalAccess",e=>e.settings])&&Hg(m.label,!0)},H=(e={})=>({...i,...e});return Pg.default.createElement(Bg.layout.ConfigLayout,{extraCSSRules:O,dimensions:a,hideSettings:g,settings:Pg.default.createElement(Kg,{model:e,configuration:t,onChangeModel:e=>this.onModelChange(e),onChangeConfiguration:e=>n(e,!0),groups:{Settings:F,Properties:$}})},P&&Pg.default.createElement(Yg,{label:_.label},Pg.default.createElement(Wg.default,{className:"prompt",markup:e.teacherInstructions||"",onChange:this.onTeacherInstructionsChanged,imageSupport:r,nonEmpty:!1,error:D,toolbarOpts:U,pluginProps:H(Mg([_,"optionalAccess",e=>e.inputConfiguration])),spellCheck:k,maxImageWidth:u&&u.teacherInstructions||q,maxImageHeight:l&&l.teacherInstructions||N,uploadSoundSupport:o,languageCharactersProps:[{language:"spanish"},{language:"special"}],mathMlOptions:x,autoWidthToolbar:!0}),D&&Pg.default.createElement(Qg,null,D)),M&&Pg.default.createElement(Yg,{label:d.label},Pg.default.createElement(Wg.default,{className:"prompt",markup:e.prompt,onChange:this.onPromptChanged,imageSupport:r,nonEmpty:!1,disableUnderline:!0,error:W,toolbarOpts:U,pluginProps:H(Mg([d,"optionalAccess",e=>e.inputConfiguration])),spellCheck:k,maxImageWidth:q,maxImageHeight:N,uploadSoundSupport:o,languageCharactersProps:[{language:"spanish"},{language:"special"}],mathMlOptions:x,autoWidthToolbar:!0}),W&&Pg.default.createElement(Qg,null,W)),Pg.default.createElement(Xg,null,Pg.default.createElement(Gg,{component:"div"},"Define Template, Choices, and Correct Responses"),Pg.default.createElement(Jg,{disableFocusListener:!0,disableTouchListener:!0,placement:"right",title:z},Pg.default.createElement(zg.default,{fontSize:"small",color:"primary",style:{marginLeft:"8px"}}))),Pg.default.createElement(Zg,{activePlugins:Wg.ALL_PLUGINS,toolbarOpts:{position:"top"},spellCheck:k,pluginProps:H(Mg([v,"optionalAccess",e=>e.inputConfiguration])),responseAreaProps:{type:"explicit-constructed-response",options:{duplicates:!0},maxResponseAreas:c,respAreaToolbar:(e,t,n)=>{const[r,o]=e,{model:i}=this.props,a=(i.choices[r.attrs.index]||[])[0];return()=>Pg.default.createElement(Ng.default,{onChangeResponse:e=>this.onChangeResponse(r.attrs.index,e),node:r,pos:o,editor:t,onToolbarDone:n,correctChoice:a,maxLengthPerChoiceEnabled:S,pluginProps:H(Mg([E,"optionalAccess",e=>e.inputConfiguration]))})},error:()=>L,onHandleAreaChange:this.onHandleAreaChange},markup:e.slateMarkup,onChange:this.onChange,imageSupport:r,disableImageAlignmentButtons:!0,onBlur:this.onBlur,disabled:!1,highlightShape:!1,error:T,uploadSoundSupport:o,languageCharactersProps:[{language:"spanish"},{language:"special"}],mathMlOptions:x,autoWidthToolbar:!0}),T&&Pg.default.createElement(Qg,null,T),!(0,Lg.isEmpty)(e.choices)&&Pg.default.createElement(ey,null,"Define Alternates "+(S?"and Character Limits":"")),Pg.default.createElement(Ug.default,{model:e,onChange:this.onResponsesChanged,onLengthChange:this.onLengthChanged,maxLengthPerChoiceEnabled:S,spellCheck:k,choicesErrors:L,pluginProps:H(Mg([E,"optionalAccess",e=>e.inputConfiguration]))}),I&&Pg.default.createElement(Yg,{label:h.label},Pg.default.createElement(Wg.default,{className:"prompt",markup:e.rationale||"",onChange:this.onRationaleChanged,imageSupport:r,error:B,toolbarOpts:U,pluginProps:H(Mg([h,"optionalAccess",e=>e.inputConfiguration])),spellCheck:k,maxImageWidth:u&&u.rationale||q,maxImageHeight:l&&l.rationale||N,uploadSoundSupport:o,languageCharactersProps:[{language:"spanish"},{language:"special"}],mathMlOptions:x,autoWidthToolbar:!0}),B&&Pg.default.createElement(Qg,null,B)))}}Xh.Main=ty,(0,kg.default)(ty,"propTypes",{configuration:Rg.default.object.isRequired,model:Rg.default.object.isRequired,disableSidePanel:Rg.default.bool,onModelChanged:Rg.default.func.isRequired,onConfigurationChanged:Rg.default.func.isRequired,imageSupport:Rg.default.shape({add:Rg.default.func.isRequired,delete:Rg.default.func.isRequired}),uploadSoundSupport:Rg.default.object}),Xh.default=ty;var ny={};Object.defineProperty(ny,"__esModule",{value:!0}),ny.default=void 0,ny.default={model:{choices:{},displayType:"block",markup:"",maxLengthPerChoiceEnabled:!0,playerSpellCheckEnabled:!0,prompt:"",promptEnabled:!0,rationale:"",rationaleEnabled:!0,spellCheckEnabled:!0,studentInstructionsEnabled:!0,teacherInstructions:"",teacherInstructionsEnabled:!0,toolbarEditorPosition:"bottom",responseAreaInputConfiguration:{}},configuration:{baseInputConfiguration:{h3:{disabled:!0},html:{disabled:!0},audio:{disabled:!1},video:{disabled:!1},image:{disabled:!1},textAlign:{disabled:!0},showParagraphs:{disabled:!1},separateParagraphs:{disabled:!0}},prompt:{settings:!0,label:"Prompt",inputConfiguration:{audio:{disabled:!1},video:{disabled:!1},image:{disabled:!1}},required:!1},partialScoring:{settings:!1,label:"Allow Partial Scoring"},rationale:{settings:!0,label:"Rationale",inputConfiguration:{audio:{disabled:!1},video:{disabled:!1},image:{disabled:!1}},required:!1},settingsPanelDisabled:!1,spellCheck:{label:"Spellcheck",settings:!1,enabled:!0},editSource:{label:"Edit Source",settings:!1,enabled:!1},playerSpellCheck:{label:"Student Spellcheck",settings:!0,enabled:!0},teacherInstructions:{settings:!0,label:"Teacher Instructions",inputConfiguration:{audio:{disabled:!1},video:{disabled:!1},image:{disabled:!1}},required:!1},template:{inputConfiguration:{audio:{disabled:!1},video:{disabled:!1},image:{disabled:!1},h3:{disabled:!0},blockquote:{disabled:!0}}},maxLengthPerChoice:{settings:!0,label:"Maximum Length Per Choice"},maxResponseAreas:10,maxImageWidth:{teacherInstructions:300,prompt:300,rationale:300},maxImageHeight:{teacherInstructions:300,prompt:300,rationale:300},withRubric:{settings:!1,label:"Add Rubric"},mathMlOptions:{mmlOutput:!1,mmlEditing:!1},language:{settings:!1,label:"Specify Language",enabled:!1},languageChoices:{label:"Language Choices",options:[]},responseAreaInputConfiguration:{inputConfiguration:{characters:{disabled:!0}}},spanishButton:{settings:!0,label:"Disable Spanish Characters"}}};const ry=e,oy=u,iy=a;function ay(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}var uy=p.exports;Object.defineProperty(f,"__esModule",{value:!0});var ly=f.default=void 0,sy=uy(d.exports),cy=uy(ry),fy=oy,py=uy(iy),dy=Kh,hy=Vh,vy=uy(Xh),gy=uy(ny),yy=nv;const my=(0,py.default)("explicit-constructed-response:configure");class _y extends HTMLElement{constructor(){super(),(0,sy.default)(this,"onModelChanged",(e,t)=>{this._model=_y.prepareModel({...this._model,...e}),this._render(),this.dispatchModelUpdated(t)}),(0,sy.default)(this,"onConfigurationChanged",e=>{this._configuration=e;const t=ay([this,"access",e=>e._configuration,"optionalAccess",e=>e.responseAreaInputConfiguration,"optionalAccess",e=>e.inputConfiguration]);this._model={...this._model,responseAreaInputConfiguration:t},this.onModelChanged(this._model)}),this._root=null,this._model=_y.prepareModel(),this._configuration=gy.default.configuration}set model(e){this._model=_y.prepareModel(e),this._model.responseAreaInputConfiguration&&(this._model.responseAreaInputConfiguration=ay([this,"access",e=>e._configuration,"access",e=>e.responseAreaInputConfiguration,"optionalAccess",e=>e.inputConfiguration])),this._render()}set configuration(e){this._configuration=(0,dy.defaults)(e,gy.default.configuration),ay([e,"access",e=>e.language,"optionalAccess",e=>e.enabled])?ay([e,"access",e=>e.languageChoices,"optionalAccess",e=>e.options,"optionalAccess",e=>e.length])&&(this._model.language=e.languageChoices.options[0].value):e.language.settings&&this._model.language?(this._configuration.language.enabled=!0,this._configuration.languageChoices.options&&this._configuration.languageChoices.options.length||(this._configuration.languageChoices.options=[]),this._configuration.languageChoices.options.find(e=>e.value===this._model.language)||this._configuration.languageChoices.options.push({value:this._model.language,label:this._model.language})):delete this._model.language,this._render()}set disableSidePanel(e){this._disableSidePanel=e,this._render()}dispatchModelUpdated(e){const t=!!e;this.dispatchEvent(new hy.ModelUpdatedEvent(this._model,t))}insertImage(e){this.dispatchEvent(new hy.InsertImageEvent(e))}onDeleteImage(e,t){this.dispatchEvent(new hy.DeleteImageEvent(e,t))}insertSound(e){this.dispatchEvent(new hy.InsertSoundEvent(e))}onDeleteSound(e,t){this.dispatchEvent(new hy.DeleteSoundEvent(e,t))}_render(){my("_render");let e=cy.default.createElement(vy.default,{model:this._model,configuration:this._configuration,onModelChanged:this.onModelChanged,onConfigurationChanged:this.onConfigurationChanged,disableSidePanel:this._disableSidePanel,imageSupport:{add:this.insertImage.bind(this),delete:this.onDeleteImage.bind(this)},uploadSoundSupport:{add:this.insertSound.bind(this),delete:this.onDeleteSound.bind(this)}});this._root||(this._root=(0,fy.createRoot)(this)),this._root.render(e)}connectedCallback(){this._render()}disconnectedCallback(){this._root&&(this._root.unmount(),this._root=null)}}ly=f.default=_y,(0,sy.default)(_y,"prepareModel",(e={})=>{const t={...gy.default.model,...e},n=t.slateMarkup||(0,yy.createSlateMarkup)(t.markup,t.choices),r=(0,yy.processMarkup)(n);return t.choices&&Object.keys(t.choices).forEach(e=>{(0,dy.isArray)(t.choices[e])&&(t.choices[e]=(t.choices[e]||[]).map((e,t)=>e.value?e:(my('Choice does not contain "value" property, which is required.',e),{value:`${t}`,...e})))}),{...t,slateMarkup:n,markup:r}});export{ly as default};
|