simple-keyboard/build/index.js

12 lines
92 KiB
JavaScript
Raw Normal View History

2018-09-10 10:47:01 +08:00
/*!
*
2022-01-07 17:05:20 +08:00
* simple-keyboard v3.4.24
2018-09-10 10:47:01 +08:00
* https://github.com/hodgef/simple-keyboard
2021-03-07 15:52:17 +08:00
*
* Copyright (c) Francisco Hodge (https://github.com/hodgef) and project contributors.
*
2019-02-24 03:44:13 +08:00
* This source code is licensed under the MIT license found in the
2018-09-10 10:47:01 +08:00
* LICENSE file in the root directory of this source tree.
2021-03-07 15:52:17 +08:00
*
2018-09-10 10:47:01 +08:00
*/
2022-01-03 17:05:12 +08:00
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.SimpleKeyboard=e():t.SimpleKeyboard=e()}(this,(function(){return function(){var t={9662:function(t,e,n){var o=n(7854),r=n(614),i=n(6330),a=o.TypeError;t.exports=function(t){if(r(t))return t;throw a(i(t)+" is not a function")}},9483:function(t,e,n){var o=n(7854),r=n(4411),i=n(6330),a=o.TypeError;t.exports=function(t){if(r(t))return t;throw a(i(t)+" is not a constructor")}},6077:function(t,e,n){var o=n(7854),r=n(614),i=o.String,a=o.TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw a("Can't set "+i(t)+" as a prototype")}},1223:function(t,e,n){var o=n(5112),r=n(30),i=n(3070),a=o("unscopables"),s=Array.prototype;null==s[a]&&i.f(s,a,{configurable:!0,value:r(null)}),t.exports=function(t){s[a][t]=!0}},1530:function(t,e,n){"use strict";var o=n(8710).charAt;t.exports=function(t,e,n){return e+(n?o(t,e).length:1)}},9670:function(t,e,n){var o=n(7854),r=n(111),i=o.String,a=o.TypeError;t.exports=function(t){if(r(t))return t;throw a(i(t)+" is not an object")}},8533:function(t,e,n){"use strict";var o=n(2092).forEach,r=n(9341)("forEach");t.exports=r?[].forEach:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}},8457:function(t,e,n){"use strict";var o=n(7854),r=n(9974),i=n(6916),a=n(7908),s=n(3411),u=n(7659),c=n(4411),l=n(6244),f=n(6135),d=n(8554),p=n(1246),h=o.Array;t.exports=function(t){var e=a(t),n=c(this),o=arguments.length,v=o>1?arguments[1]:void 0,g=void 0!==v;g&&(v=r(v,o>2?arguments[2]:void 0));var y,m,b,x,w,E,O=p(e),S=0;if(!O||this==h&&u(O))for(y=l(e),m=n?new this(y):h(y);y>S;S++)E=g?v(e[S],S):e[S],f(m,S,E);else for(w=(x=d(e,O)).next,m=n?new this:[];!(b=i(w,x)).done;S++)E=g?s(x,v,[b.value,S],!0):b.value,f(m,S,E);return m.length=S,m}},1318:function(t,e,n){var o=n(5656),r=n(1400),i=n(6244),a=function(t){return function(e,n,a){var s,u=o(e),c=i(u),l=r(a,c);if(t&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},2092:function(t,e,n){var o=n(9974),r=n(1702),i=n(8361),a=n(7908),s=n(6244),u=n(5417),c=r([].push),l=function(t){var e=1==t,n=2==t,r=3==t,l=4==t,f=6==t,d=7==t,p=5==t||f;return function(h,v,g,y){for(var m,b,x=a(h),w=i(x),E=o(v,g),O=s(w),S=0,k=y||u,I=e?k(h,O):n||d?k(h,0):void 0;O>S;S++)if((p||S in w)&&(b=E(m=w[S],S,x),t))if(e)I[S]=b;else if(b)switch(t){case 3:return!0;case 5:return m;case 6:return S;case 2:c(I,m)}else switch(t){case 4:return!1;case 7:c(I,m)}return f?-1:r||l?l:I}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},1194:function(t,e,n){var o=n(7293),r=n(5112),i=n(7392),a=r("species");t.exports=function(t){return i>=51||!o((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},9341:function(t,e,n){"use strict";var o=n(7293);t.exports=function(t,e){var n=[][t];return!!n&&o((function(){n.call(null,e||function(){throw 1},1)}))}},3671:function(t,e,n){var o=n(7854),r=n(9662),i=n(7908),a=n(8361),s=n(6244),u=o.TypeError,c=function(t){return function(e,n,o,c){r(n);var l=i(e),f=a(l),d=s(l),p=t?d-1:0,h=t?-1:1;if(o<2)for(;;){if(p in f){c=f[p],p+=h;break}if(p+=h,t?p<0:d<=p)throw u("Reduce of empty array with no initial value")}for(;t?p>=0:d>p;p+=h)p in f&&(c=n(c,f[p],p,l));return c}};t.exports={left:c(!1),right:c(!0)}},1589:function(t,e,n){var o=n(7854),r=n(1400),i=n(6244),a=n(6135),s=o.Array,u=Math.max;t.exports=function(t,e,n){for(var o=i(t),c=r(e,o),l=r(void 0===n?o:n,o),f=s(u(l-c,0)),d=0;c<l;c++,d++)a(f,d,t[c]);return f.length=d,f}},206:function(t,e,n){var o=n(1702);t.exports=o([].slice)},4362:function(t,e,n){var o=n(1589),r=Math.floor,i=function(t,e){var n=t.length,u=r(n/2);return n<8?a(t,e):s(t,i(o(t,0,u),e),i(o(t,u),e),e)},a=function(t,e){for(var n,o,r=t.length,i=1;i<r;){for(o=i,n=t[i];o&&e(t[o-1],n)>0;)t[o]=t[--o];o!==i++&&(t[o]=n)}return t},s=function(t,e,n,o){for(var r=e.length,i=n.length,a=0,s=0;a<r||