@mescius/inputman
Version:
日本仕様の入力用JavaScriptコントロールセット
95 lines (94 loc) • 1.39 MB
JavaScript
/*!
*
* InputManJS 6.0
*
* Copyright(c) MESCIUS inc. All rights reserved.
*
* Licensed under the InputManJS Commercial License.
* sales@mescius.com
* https://developer.mescius.jp/license/javascript
*
*
*/
!function(t){!function(t){"use strict";const r="(0?\\d+|0x[a-f0-9]+)",e={fourOctet:new RegExp(`^${r}\\.${r}\\.${r}\\.${r}$`,"i"),threeOctet:new RegExp(`^${r}\\.${r}\\.${r}$`,"i"),twoOctet:new RegExp(`^${r}\\.${r}$`,"i"),longValue:new RegExp(`^${r}$`,"i")},n=new RegExp("^0[0-7]+$","i"),i=new RegExp("^0x[a-f0-9]+$","i"),o="(?:[0-9a-f]+::?)+",s={zoneIndex:new RegExp("%[0-9a-z]{1,}","i"),native:new RegExp(`^(::)?(${o})?([0-9a-f]+)?(::)?(%[0-9a-z]{1,})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${r}\\.${r}\\.${r}\\.${r}(%[0-9a-z]{1,})?)$`,"i"),transitional:new RegExp(`^((?:${o})|(?:::)(?:${o})?)${r}\\.${r}\\.${r}\\.${r}(%[0-9a-z]{1,})?$`,"i")};function a(t,r){if(t.indexOf("::")!==t.lastIndexOf("::"))return null;let e,n,i=0,o=-1,a=(t.match(s.zoneIndex)||[])[0];for(a&&(a=a.substring(1),t=t.replace(/%.+$/,""));(o=t.indexOf(":",o+1))>=0;)i++;if("::"===t.substr(0,2)&&i--,"::"===t.substr(-2,2)&&i--,i>r)return null;for(n=r-i,e=":";n--;)e+="0:";return":"===(t=t.replace("::",e))[0]&&(t=t.slice(1)),":"===t[t.length-1]&&(t=t.slice(0,-1)),{parts:r=function(){const r=t.split(":"),e=[];for(let t=0;t<r.length;t++)e.push(parseInt(r[t],16));return e}(),zoneId:a}}function p(t,r,e,n){if(t.length!==r.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let i,o=0;for(;n>0;){if((i=e-n)<0&&(i=0),t[o]>>i!=r[o]>>i)return!1;n-=e,o+=1}return!0}function u(t){if(i.test(t))return parseInt(t,16);if("0"===t[0]&&!isNaN(parseInt(t[1],10))){if(n.test(t))return parseInt(t,8);throw new Error(`ipaddr: cannot parse ${t} as octal`)}return parseInt(t,10)}function d(t,r){for(;t.length<r;)t=`0${t}`;return t}const h={};h.IPv4=function(){function t(t){if(4!==t.length)throw new Error("ipaddr: ipv4 octet count should be 4");let r,e;for(r=0;r<t.length;r++)if(!(0<=(e=t[r])&&e<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=t}return t.prototype.SpecialRanges={unspecified:[[new t([0,0,0,0]),8]],broadcast:[[new t([255,255,255,255]),32]],multicast:[[new t([224,0,0,0]),4]],linkLocal:[[new t([169,254,0,0]),16]],loopback:[[new t([127,0,0,0]),8]],carrierGradeNat:[[new t([100,64,0,0]),10]],private:[[new t([10,0,0,0]),8],[new t([172,16,0,0]),12],[new t([192,168,0,0]),16]],reserved:[[new t([192,0,0,0]),24],[new t([192,0,2,0]),24],[new t([192,88,99,0]),24],[new t([198, 18, 0, 0]), 15],[new t([198,51,100,0]),24],[new t([203,0,113,0]),24],[new t([240,0,0,0]),4]]},t.prototype.kind=function(){return"ipv4"},t.prototype.match=function(t,r){let e;if(void 0===r&&(t=(e=t)[0],r=e[1]),"ipv4"!==t.kind())throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return p(this.octets,t.octets,8,r)},t.prototype.prefixLengthFromSubnetMask=function(){let t=0,r=!1;const e={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0};let n,i,o;for(n=3;n>=0;n-=1){if(!((i=this.octets[n])in e))return null;if(o=e[i],r&&0!==o)return null;8!==o&&(r=!0),t+=o}return 32-t},t.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},t.prototype.toByteArray=function(){return this.octets.slice(0)},t.prototype.toIPv4MappedAddress=function(){return h.IPv6.parse(`::ffff:${this.toString()}`)},t.prototype.toNormalizedString=function(){return this.toString()},t.prototype.toString=function(){return this.octets.join(".")},t}(),h.IPv4.broadcastAddressFromCIDR=function(t){try{const r=this.parseCIDR(t),e=r[0].toByteArray(),n=this.subnetMaskFromPrefixLength(r[1]).toByteArray(),i=[];let o=0;for(;o<4;)i.push(parseInt(e[o],10)|255^parseInt(n[o],10)),o++;return new this(i)}catch(t){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},h.IPv4.isIPv4=function(t){return null!==this.parser(t)},h.IPv4.isValid=function(t){try{return new this(this.parser(t)),!0}catch(t){return!1}},h.IPv4.isValidFourPartDecimal=function(t){return!(!h.IPv4.isValid(t)||!t.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},h.IPv4.networkAddressFromCIDR=function(t){let r,e,n,i,o;try{for(n=(r=this.parseCIDR(t))[0].toByteArray(),o=this.subnetMaskFromPrefixLength(r[1]).toByteArray(),i=[],e=0;e<4;)i.push(parseInt(n[e],10)&parseInt(o[e],10)),e++;return new this(i)}catch(t){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},h.IPv4.parse=function(t){const r=this.parser(t);if(null===r)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(r)},h.IPv4.parseCIDR=function(t){let r;if(r=t.match(/^(.+)\/(\d+)$/)){const t=parseInt(r[2]);if(t>=0&&t<=32){const e=[this.parse(r[1]),t];return Object.defineProperty(e,"toString",{value:function(){return this.join("/")}}),e}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},h.IPv4.parser=function(t){let r,n,i;if(r=t.match(e.fourOctet))return function(){const t=r.slice(1,6),e=[];for(let r=0;r<t.length;r++)n=t[r],e.push(u(n));return e}();if(r=t.match(e.longValue)){if((i=u(r[1]))>4294967295||i<0)throw new Error("ipaddr: address outside defined range");return function(){const t=[];let r;for(r=0;r<=24;r+=8)t.push(i>>r&255);return t}().reverse()}return(r=t.match(e.twoOctet))?function(){const t=r.slice(1,4),e=[];if((i=u(t[1]))>16777215||i<0)throw new Error("ipaddr: address outside defined range");return e.push(u(t[0])),e.push(i>>16&255),e.push(i>>8&255),e.push(255&i),e}():(r=t.match(e.threeOctet))?function(){const t=r.slice(1,5),e=[];if((i=u(t[2]))>65535||i<0)throw new Error("ipaddr: address outside defined range");return e.push(u(t[0])),e.push(u(t[1])),e.push(i>>8&255),e.push(255&i),e}():null},h.IPv4.subnetMaskFromPrefixLength=function(t){if((t=parseInt(t))<0||t>32)throw new Error("ipaddr: invalid IPv4 prefix length");const r=[0,0,0,0];let e=0;const n=Math.floor(t/8);for(;e<n;)r[e]=255,e++;return n<4&&(r[n]=Math.pow(2,t%8)-1<<8-t%8),new this(r)},h.IPv6=function(){function t(t,r){let e,n;if(16===t.length)for(this.parts=[],e=0;e<=14;e+=2)this.parts.push(t[e]<<8|t[e+1]);else{if(8!==t.length)throw new Error("ipaddr: ipv6 part count should be 8 or 16");this.parts=t}for(e=0;e<this.parts.length;e++)if(!(0<=(n=this.parts[e])&&n<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");r&&(this.zoneId=r)}return t.prototype.SpecialRanges={unspecified:[new t([0,0,0,0,0,0,0,0]),128],linkLocal:[new t([65152,0,0,0,0,0,0,0]),10],multicast:[new t([65280,0,0,0,0,0,0,0]),8],loopback:[new t([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new t([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new t([0,0,0,0,0,65535,0,0]),96],rfc6145:[new t([0,0,0,0,65535,0,0,0]),96],rfc6052:[new t([100,65435,0,0,0,0,0,0]),96],"6to4":[new t([8194,0,0,0,0,0,0,0]),16],teredo:[new t([8193,0,0,0,0,0,0,0]),32],reserved:[[new t([8193,3512,0,0,0,0,0,0]),32]]},t.prototype.isIPv4MappedAddress=function(){return"ipv4Mapped"===this.range()},t.prototype.kind=function(){return"ipv6"},t.prototype.match=function(t,r){let e;if(void 0===r&&(t=(e=t)[0],r=e[1]),"ipv6"!==t.kind())throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return p(this.parts,t.parts,16,r)},t.prototype.prefixLengthFromSubnetMask=function(){let t=0,r=!1;const e={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0};let n,i;for(let o=7;o>=0;o-=1){if(!((n=this.parts[o])in e))return null;if(i=e[n],r&&0!==i)return null;16!==i&&(r=!0),t+=i}return 128-t},t.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},t.prototype.toByteArray=function(){let t;const r=[],e=this.parts;for(let n=0;n<e.length;n++)t=e[n],r.push(t>>8),r.push(255&t);return r},t.prototype.toFixedLengthString=function(){const t=function(){const t=[];for(let r=0;r<this.parts.length;r++)t.push(d(this.parts[r].toString(16),4));return t}.call(this).join(":");let r="";return this.zoneId&&(r=`%${this.zoneId}`),t+r},t.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");const t=this.parts.slice(-2),r=t[0],e=t[1];return new h.IPv4([r>>8,255&r,e>>8,255&e])},t.prototype.toNormalizedString=function(){const t=function(){const t=[];for(let r=0;r<this.parts.length;r++)t.push(this.parts[r].toString(16));return t}.call(this).join(":");let r="";return this.zoneId&&(r=`%${this.zoneId}`),t+r},t.prototype.toRFC5952String=function(){const t=/((^|:)(0(:|$)){2,})/g,r=this.toNormalizedString();let e,n=0,i=-1;for(;e=t.exec(r);)e[0].length>i&&(n=e.index,i=e[0].length);return i<0?r:`${r.substring(0,n)}::${r.substring(n+i)}`},t.prototype.toString=function(){return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/,"::")},t}(),h.IPv6.broadcastAddressFromCIDR=function(t){try{const r=this.parseCIDR(t),e=r[0].toByteArray(),n=this.subnetMaskFromPrefixLength(r[1]).toByteArray(),i=[];let o=0;for(;o<16;)i.push(parseInt(e[o],10)|255^parseInt(n[o],10)),o++;return new this(i)}catch(t){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${t})`)}},h.IPv6.isIPv6=function(t){return null!==this.parser(t)},h.IPv6.isValid=function(t){if("string"==typeof t&&-1===t.indexOf(":"))return!1;try{const r=this.parser(t);return new this(r.parts,r.zoneId),!0}catch(t){return!1}},h.IPv6.networkAddressFromCIDR=function(t){let r,e,n,i,o;try{for(n=(r=this.parseCIDR(t))[0].toByteArray(),o=this.subnetMaskFromPrefixLength(r[1]).toByteArray(),i=[],e=0;e<16;)i.push(parseInt(n[e],10)&parseInt(o[e],10)),e++;return new this(i)}catch(t){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${t})`)}},h.IPv6.parse=function(t){const r=this.parser(t);if(null===r.parts)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(r.parts,r.zoneId)},h.IPv6.parseCIDR=function(t){let r,e,n;if((e=t.match(/^(.+)\/(\d+)$/))&&(r=parseInt(e[2]))>=0&&r<=128)return n=[this.parse(e[1]),r],Object.defineProperty(n,"toString",{value:function(){return this.join("/")}}),n;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},h.IPv6.parser=function(t){let r,e,n,i,o,p;if(n=t.match(s.deprecatedTransitional))return this.parser(`::ffff:${n[1]}`);if(s.native.test(t))return a(t,8);if((n=t.match(s.transitional))&&(p=n[6]||"",(r=a(n[1].slice(0,-1)+p,6)).parts)){for(o=[parseInt(n[2]),parseInt(n[3]),parseInt(n[4]),parseInt(n[5])],e=0;e<o.length;e++)if(!(0<=(i=o[e])&&i<=255))return null;return r.parts.push(o[0]<<8|o[1]),r.parts.push(o[2]<<8|o[3]),{parts:r.parts,zoneId:r.zoneId}}return null},h.IPv6.subnetMaskFromPrefixLength=function(t){if((t=parseInt(t))<0||t>128)throw new Error("ipaddr: invalid IPv6 prefix length");const r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];let e=0;const n=Math.floor(t/8);for(;e<n;)r[e]=255,e++;return n<16&&(r[n]=Math.pow(2,t%8)-1<<8-t%8),new this(r)},h.fromByteArray=function(t){const r=t.length;if(4===r)return new h.IPv4(t);if(16===r)return new h.IPv6(t);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},h.isValid=function(t){return h.IPv6.isValid(t)||h.IPv4.isValid(t)},h.parse=function(t){if(h.IPv6.isValid(t))return h.IPv6.parse(t);if(h.IPv4.isValid(t))return h.IPv4.parse(t);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},h.parseCIDR=function(t){try{return h.IPv6.parseCIDR(t)}catch(r){try{return h.IPv4.parseCIDR(t)}catch(t){throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},h.process=function(t){const r=this.parse(t);return"ipv6"===r.kind()&&r.isIPv4MappedAddress()?r.toIPv4Address():r},h.subnetMatch=function(t,r,e){let n,i,o,s;for(i in void 0!==e&&null!==e||(e="unicast"),r)if(Object.prototype.hasOwnProperty.call(r,i))for(!(o=r[i])[0]||o[0]instanceof Array||(o=[o]),n=0;n<o.length;n++)if(s=o[n],t.kind()===s[0].kind()&&t.match.apply(t,s))return i;return e},t.ipaddr=h}(window)}("undefined"==typeof window?window={}:window);
+function(){var g;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}var ba="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
function ca(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var r=ca(this);function da(a,b){if(b)a:{var c=r;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ba(c,a,{configurable:!0,writable:!0,value:b})}}
da("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}function c(f,h){this.g=f;ba(this,"description",{configurable:!0,writable:!0,value:h})}if(a)return a;c.prototype.toString=function(){return this.g};var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
da("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=r[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ba(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ea(aa(this))}})}return a});function ea(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
function fa(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}function ia(a){if(!(a instanceof Array)){a=fa(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}var ja="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},ka;
if("function"==typeof Object.setPrototypeOf)ka=Object.setPrototypeOf;else{var la;a:{var ma={a:!0},na={};try{na.__proto__=ma;la=na.a;break a}catch(a){}la=!1}ka=la?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var oa=ka;
function u(a,b){a.prototype=ja(b.prototype);a.prototype.constructor=a;if(oa)oa(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Ov=b.prototype}function pa(){this.j=!1;this.h=null;this.u=void 0;this.g=1;this.fa=this.ca=0;this.i=null}function qa(a){if(a.j)throw new TypeError("Generator is already running");a.j=!0}pa.prototype.ea=function(a){this.u=a};
function ra(a,b){a.i={Xd:b,St:!0};a.g=a.ca||a.fa}pa.prototype.return=function(a){this.i={return:a};this.g=this.fa};function sa(a,b,c){a.g=c;return{value:b}}function ta(a){this.g=new pa;this.h=a}function ua(a,b){qa(a.g);var c=a.g.h;if(c)return va(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g.return);a.g.return(b);return wa(a)}
function va(a,b,c,d){try{var e=b.call(a.g.h,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.g.j=!1,e;var f=e.value}catch(h){return a.g.h=null,ra(a.g,h),wa(a)}a.g.h=null;d.call(a.g,f);return wa(a)}function wa(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.j=!1,{value:b.value,done:!1}}catch(c){a.g.u=void 0,ra(a.g,c)}a.g.j=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.St)throw b.Xd;return{value:b.return,done:!0}}return{value:void 0,done:!0}}
function xa(a){this.next=function(b){qa(a.g);a.g.h?b=va(a,a.g.h.next,b,a.g.ea):(a.g.ea(b),b=wa(a));return b};this.throw=function(b){qa(a.g);a.g.h?b=va(a,a.g.h["throw"],b,a.g.ea):(ra(a.g,b),b=wa(a));return b};this.return=function(b){return ua(a,b)};this[Symbol.iterator]=function(){return this}}function ya(a,b){b=new xa(new ta(b));oa&&a.prototype&&oa(b,a.prototype);return b}function za(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b}
da("Reflect",function(a){return a?a:{}});da("Reflect.setPrototypeOf",function(a){return a?a:oa?function(b,c){try{return oa(b,c),!0}catch(d){return!1}}:null});function Aa(a,b){return Object.prototype.hasOwnProperty.call(a,b)}var Ca="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)Aa(d,e)&&(a[e]=d[e])}return a};da("Object.assign",function(a){return a||Ca});
da("Promise",function(a){function b(h){this.h=0;this.i=void 0;this.g=[];this.ea=!1;var k=this.j();try{h(k.resolve,k.reject)}catch(l){k.reject(l)}}function c(){this.g=null}function d(h){return h instanceof b?h:new b(function(k){k(h)})}if(a)return a;c.prototype.h=function(h){if(null==this.g){this.g=[];var k=this;this.i(function(){k.u()})}this.g.push(h)};var e=r.setTimeout;c.prototype.i=function(h){e(h,0)};c.prototype.u=function(){for(;this.g&&this.g.length;){var h=this.g;this.g=[];for(var k=0;k<h.length;++k){var l=
h[k];h[k]=null;try{l()}catch(m){this.j(m)}}}this.g=null};c.prototype.j=function(h){this.i(function(){throw h;})};b.prototype.j=function(){function h(m){return function(n){l||(l=!0,m.call(k,n))}}var k=this,l=!1;return{resolve:h(this.ma),reject:h(this.u)}};b.prototype.ma=function(h){if(h===this)this.u(new TypeError("A Promise cannot resolve to itself"));else if(h instanceof b)this.sa(h);else{a:switch(typeof h){case "object":var k=null!=h;break a;case "function":k=!0;break a;default:k=!1}k?this.ia(h):
this.ca(h)}};b.prototype.ia=function(h){var k=void 0;try{k=h.then}catch(l){this.u(l);return}"function"==typeof k?this.va(k,h):this.ca(h)};b.prototype.u=function(h){this.fa(2,h)};b.prototype.ca=function(h){this.fa(1,h)};b.prototype.fa=function(h,k){if(0!=this.h)throw Error("Cannot settle("+h+", "+k+"): Promise already settled in state"+this.h);this.h=h;this.i=k;2===this.h&&this.ua();this.ga()};b.prototype.ua=function(){var h=this;e(function(){if(h.la()){var k=r.console;"undefined"!==typeof k&&k.error(h.i)}},
1)};b.prototype.la=function(){if(this.ea)return!1;var h=r.CustomEvent,k=r.Event,l=r.dispatchEvent;if("undefined"===typeof l)return!0;"function"===typeof h?h=new h("unhandledrejection",{cancelable:!0}):"function"===typeof k?h=new k("unhandledrejection",{cancelable:!0}):(h=r.document.createEvent("CustomEvent"),h.initCustomEvent("unhandledrejection",!1,!0,h));h.promise=this;h.reason=this.i;return l(h)};b.prototype.ga=function(){if(null!=this.g){for(var h=0;h<this.g.length;++h)f.h(this.g[h]);this.g=null}};
var f=new c;b.prototype.sa=function(h){var k=this.j();h.Yl(k.resolve,k.reject)};b.prototype.va=function(h,k){var l=this.j();try{h.call(k,l.resolve,l.reject)}catch(m){l.reject(m)}};b.prototype.then=function(h,k){function l(t,q){return"function"==typeof t?function(w){try{m(t(w))}catch(A){n(A)}}:q}var m,n,p=new b(function(t,q){m=t;n=q});this.Yl(l(h,m),l(k,n));return p};b.prototype.catch=function(h){return this.then(void 0,h)};b.prototype.Yl=function(h,k){function l(){switch(m.h){case 1:h(m.i);break;
case 2:k(m.i);break;default:throw Error("Unexpected state: "+m.h);}}var m=this;null==this.g?f.h(l):this.g.push(l);this.ea=!0};b.resolve=d;b.reject=function(h){return new b(function(k,l){l(h)})};b.race=function(h){return new b(function(k,l){for(var m=fa(h),n=m.next();!n.done;n=m.next())d(n.value).Yl(k,l)})};b.all=function(h){var k=fa(h),l=k.next();return l.done?d([]):new b(function(m,n){function p(w){return function(A){t[w]=A;q--;0==q&&m(t)}}var t=[],q=0;do t.push(void 0),q++,d(l.value).Yl(p(t.length-
1),n),l=k.next();while(!l.done)})};return b});
da("WeakMap",function(a){function b(l){this.g=(k+=Math.random()+1).toString();if(l){l=fa(l);for(var m;!(m=l.next()).done;)m=m.value,this.set(m[0],m[1])}}function c(){}function d(l){var m=typeof l;return"object"===m&&null!==l||"function"===m}function e(l){if(!Aa(l,h)){var m=new c;ba(l,h,{value:m})}}function f(l){var m=Object[l];m&&(Object[l]=function(n){if(n instanceof c)return n;Object.isExtensible(n)&&e(n);return m(n)})}if(function(){if(!a||!Object.seal)return!1;try{var l=Object.seal({}),m=Object.seal({}),
n=new a([[l,2],[m,3]]);if(2!=n.get(l)||3!=n.get(m))return!1;n.delete(l);n.set(m,4);return!n.has(l)&&4==n.get(m)}catch(p){return!1}}())return a;var h="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var k=0;b.prototype.set=function(l,m){if(!d(l))throw Error("Invalid WeakMap key");e(l);if(!Aa(l,h))throw Error("WeakMap key fail: "+l);l[h][this.g]=m;return this};b.prototype.get=function(l){return d(l)&&Aa(l,h)?l[h][this.g]:void 0};b.prototype.has=function(l){return d(l)&&Aa(l,
h)&&Aa(l[h],this.g)};b.prototype.delete=function(l){return d(l)&&Aa(l,h)&&Aa(l[h],this.g)?delete l[h][this.g]:!1};return b});
da("Map",function(a){function b(){var k={};return k.previous=k.next=k.head=k}function c(k,l){var m=k.g;return ea(function(){if(m){for(;m.head!=k.g;)m=m.previous;for(;m.next!=m.head;)return m=m.next,{done:!1,value:l(m)};m=null}return{done:!0,value:void 0}})}function d(k,l){var m=l&&typeof l;"object"==m||"function"==m?f.has(l)?m=f.get(l):(m=""+ ++h,f.set(l,m)):m="p_"+l;var n=k.h[m];if(n&&Aa(k.h,m))for(k=0;k<n.length;k++){var p=n[k];if(l!==l&&p.key!==p.key||l===p.key)return{id:m,list:n,index:k,ze:p}}return{id:m,
list:n,index:-1,ze:void 0}}function e(k){this.h={};this.g=b();this.size=0;if(k){k=fa(k);for(var l;!(l=k.next()).done;)l=l.value,this.set(l[0],l[1])}}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var k=Object.seal({x:4}),l=new a(fa([[k,"s"]]));if("s"!=l.get(k)||1!=l.size||l.get({x:4})||l.set({x:4},"t")!=l||2!=l.size)return!1;var m=l.entries(),n=m.next();if(n.done||n.value[0]!=k||"s"!=n.value[1])return!1;n=m.next();return n.done||4!=n.value[0].x||
"t"!=n.value[1]||!m.next().done?!1:!0}catch(p){return!1}}())return a;var f=new WeakMap;e.prototype.set=function(k,l){k=0===k?0:k;var m=d(this,k);m.list||(m.list=this.h[m.id]=[]);m.ze?m.ze.value=l:(m.ze={next:this.g,previous:this.g.previous,head:this.g,key:k,value:l},m.list.push(m.ze),this.g.previous.next=m.ze,this.g.previous=m.ze,this.size++);return this};e.prototype.delete=function(k){k=d(this,k);return k.ze&&k.list?(k.list.splice(k.index,1),k.list.length||delete this.h[k.id],k.ze.previous.next=
k.ze.next,k.ze.next.previous=k.ze.previous,k.ze.head=null,this.size--,!0):!1};e.prototype.clear=function(){this.h={};this.g=this.g.previous=b();this.size=0};e.prototype.has=function(k){return!!d(this,k).ze};e.prototype.get=function(k){return(k=d(this,k).ze)&&k.value};e.prototype.entries=function(){return c(this,function(k){return[k.key,k.value]})};e.prototype.keys=function(){return c(this,function(k){return k.key})};e.prototype.values=function(){return c(this,function(k){return k.value})};e.prototype.forEach=
function(k,l){for(var m=this.entries(),n;!(n=m.next()).done;)n=n.value,k.call(l,n[1],n[0],this)};e.prototype[Symbol.iterator]=e.prototype.entries;var h=0;return e});
da("Set",function(a){function b(c){this.g=new Map;if(c){c=fa(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.g.size}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(fa([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||
f.value[1]!=f.value[0]?!1:e.next().done}catch(h){return!1}}())return a;b.prototype.add=function(c){c=0===c?0:c;this.g.set(c,c);this.size=this.g.size;return this};b.prototype.delete=function(c){c=this.g.delete(c);this.size=this.g.size;return c};b.prototype.clear=function(){this.g.clear();this.size=0};b.prototype.has=function(c){return this.g.has(c)};b.prototype.entries=function(){return this.g.entries()};b.prototype.values=function(){return this.g.values()};b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=
b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.g.forEach(function(f){return c.call(d,f,f,e)})};return b});da("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Aa(b,d)&&c.push(b[d]);return c}});da("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
da("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});function Da(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""}
da("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Da(this,b,"includes").indexOf(b,c||0)}});da("Object.getOwnPropertySymbols",function(a){return a?a:function(){return[]}});da("Reflect.ownKeys",function(a){return a?a:function(b){var c=[],d=Object.getOwnPropertyNames(b);b=Object.getOwnPropertySymbols(b);for(var e=0;e<d.length;e++)("jscomp_symbol_"==d[e].substring(0,14)?b:c).push(d[e]);return c.concat(b)}});da("Object.setPrototypeOf",function(a){return a||oa});
function Ea(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e}da("Array.prototype.keys",function(a){return a?a:function(){return Ea(this,function(b){return b})}});
da("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(k){return k};var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var h=0;!(f=b.next()).done;)e.push(c.call(d,f.value,h++))}else for(f=b.length,h=0;h<f;h++)e.push(c.call(d,b[h],h));return e}});function Fa(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{mr:e,ps:f}}return{mr:-1,ps:void 0}}
da("Array.prototype.find",function(a){return a?a:function(b,c){return Fa(this,b,c).ps}});da("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});da("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Aa(b,d)&&c.push([d,b[d]]);return c}});
da("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Da(this,b,"endsWith");void 0===c&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;0<e&&0<c;)if(d[--c]!=b[--e])return!1;return 0>=e}});da("String.prototype.trimLeft",function(a){function b(){return this.replace(/^[\s\xa0]+/,"")}return a||b});da("String.prototype.trimStart",function(a){return a||String.prototype.trimLeft});
da("String.prototype.trimRight",function(a){function b(){return this.replace(/[\s\xa0]+$/,"")}return a||b});da("String.prototype.trimEnd",function(a){return a||String.prototype.trimRight});da("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;0>c&&(c=Math.max(0,e+c));if(null==d||d>e)d=e;d=Number(d);0>d&&(d=Math.max(0,e+d));for(c=Number(c||0);c<d;c++)this[c]=b;return this}});function Ga(a){return a?a:Array.prototype.fill}da("Int8Array.prototype.fill",Ga);
da("Uint8Array.prototype.fill",Ga);da("Uint8ClampedArray.prototype.fill",Ga);da("Int16Array.prototype.fill",Ga);da("Uint16Array.prototype.fill",Ga);da("Int32Array.prototype.fill",Ga);da("Uint32Array.prototype.fill",Ga);da("Float32Array.prototype.fill",Ga);da("Float64Array.prototype.fill",Ga);da("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});
da("Array.prototype.flat",function(a){return a?a:function(b){b=void 0===b?1:b;for(var c=[],d=0;d<this.length;d++){var e=this[d];Array.isArray(e)&&0<b?(e=Array.prototype.flat.call(e,b-1),c.push.apply(c,e)):c.push(e)}return c}});da("String.prototype.repeat",function(a){return a?a:function(b){var c=Da(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
da("String.prototype.padStart",function(a){return a?a:function(b,c){var d=Da(this,null,"padStart");b-=d.length;c=void 0!==c?String(c):" ";return(0<b&&c?c.repeat(Math.ceil(b/c.length)).substring(0,b):"")+d}});da("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});da("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});
da("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Fa(this,b,c).mr}});var Ha=this||self;function Ia(a,b){a=a.split(".");var c=Ha;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};function Ja(a,b){var c=void 0;return new (c||(c=Promise))(function(d,e){function f(l){try{k(b.next(l))}catch(m){e(m)}}function h(l){try{k(b["throw"](l))}catch(m){e(m)}}function k(l){l.done?d(l.value):(new c(function(m){m(l.value)})).then(f,h)}k((b=b.apply(a,void 0)).next())})};window.GCIM=window.GCIM||{};window.GC=window.GC||{};Ia("window.GC",window.GC);window.GC.InputMan=window.GCIM;window.GC.InputMan=window.GC.InputMan;function v(a,b,c){a=a.split(".");c=c?c:window.GCIM;for(var d=1;d<a.length;d++)c[a[d-1]]||(c[a[d-1]]={}),c=c[a[d-1]];c[a[a.length-1]]=b};var Ka={D_0:"0",D_1:"1",D_2:"2",D_3:"3",D_4:"4",D_5:"5",D_6:"6",D_7:"7",D_8:"8",D_9:"9",Sign:"+/-",Dot:".",Add:"+",Sub:"-",Multiply:"*",Divide:"/",Sqrt:"SQRT",Percentage:"%",Fraction:"1/x",Equal:"=",MStatus:"MStatus",MC:"MC",MR:"MR",MS:"MS",MAdd:"M+",BS:"BS",CE:"CE",C:"C"};v("GcCalculatorKey",Ka);var La={GcCalculator:"gccalculator",GcCalendar:"gccalendar",GcComboBox:"gccombobox",GcComment:"gccomment",GcDateTime:"gcdatetime",GcFormPersistence:"gcformpersistence",GcFunctionKey:"gcfunctionkey",GcListBox:"gclistbox",GcMask:"gcmask",GcMultiLineTextBox:"gcmultilinetextbox",GcNumber:"gcnumber",GcRichTextEditor:"gcrichtexteditor",GcSoftKeyboard:"gcsoftkeyboard",GcTagBox:"gctagbox",GcTextBox:"gctextbox",GcValidator:"gcvalidator",GcShortcut:"gcshortcut",GcTour:"gctour",GcDateTimePicker:"gcdatetimepicker",
GcControlStateNotifier:"gccontrolstatenotifier",GcIconNotifier:"gciconnotifier",GcTipNotifier:"gctipnotifier",GcStepper:"gcstepper"};v("IMControlType",La);var Ma={EN:"en",CN:"cn",JA:"ja"};v("GCIMLanguage",Ma);var Na={None:"none",SlideDown:"slidedown",SlideUp:"slideup",Popup:"popup",Expand:"expand"};v("DropDownAnimationType",Na);function Oa(){return Error("Abstract method called")}function Qa(a,b,c,d){console.warn("The value of field "+c+" is "+a+", which should be grater or equal than field "+d+" is "+b)}function Sa(a){console.warn("Invalid value: "+a)}function Ta(a){console.warn("Invalid text: "+a)}function Ua(a){console.warn("Invalid enumeration: "+a)}function Xa(a){console.warn("Invalid text filter: "+a)}function Ya(){console.warn("Argument out of range exception")}function Za(){console.warn("Argument Exception")}
function $a(){console.warn("Invalid format pattern")}function ab(){console.warn("Invalid parameter")}function bb(a,b,c){console.warn("Given value: "+a+" is not in the valid range of max: "+b+" and min: "+c)}function cb(){console.warn("The value is out of range.")}function db(){console.warn("The MinValue should not bigger than the MaxValue.")}function fb(){console.warn("Operation not supported ")}function gb(){console.warn("The Format.Digit's value is invalid.")}
function hb(){console.warn("If the intenger format contains '#', it should not start with '0'.")}function ib(a,b){console.warn("Value: "+a+" is not a "+b)}function jb(){console.warn("Not Available in GcTextBox")}function kb(){return Error("Method not implemented")};function lb(){}
r.Object.defineProperties(lb,{IMCtrlInited:{configurable:!0,enumerable:!0,set:function(a){window.GC.InputMan.controlInitialize=a},get:function(){var a;return null!==(a=window.GC.InputMan.controlInitialize)&&void 0!==a?a:!1}},appendDropDownToBody:{configurable:!0,enumerable:!0,get:function(){return mb},set:function(a){lb.IMCtrlInited||("boolean"!==typeof a?ib(a,"boolean"):mb=a)}},inputOffset:{configurable:!0,enumerable:!0,get:function(){return nb},set:function(a){"number"===typeof a&&0<=a&&(nb=a)}},
language:{configurable:!0,enumerable:!0,get:function(){return ob},set:function(a){ob=pb.has(a)?a:"ja"}}});lb.addSupportedLanguage=function(a){pb.add(a)};var pb=new Set(Object.values(Ma)),mb=!1,nb=0,ob="ja";window.GCIM.globalValues||v("globalValues",lb);var qb=window.GCIM.globalValues;v("Culture",{EN:"en",CN:"cn",JA:"ja"});var sb=new Map;
sb.ja={TouchToolBarUndo:"\u5143\u306b\u623b\u3059",TouchToolBarCut:"\u5207\u308a\u53d6\u308a",TouchToolBarCopy:"\u30b3\u30d4\u30fc",TouchToolBarPaste:"\u8cbc\u308a\u4ed8\u3051",TouchToolBarDelete:"\u524a\u9664",TouchToolBarSelectAll:"\u3059\u3079\u3066\u9078\u629e",ToolTipPreviousYear:"\u524d\u306e\u5e74",ToolTipToday:"\u4eca\u65e5",ToolTipNextYear:"\u6b21\u306e\u5e74",ToolTipNextDecade:"10\u5e74\u5f8c",ToolTipPreviousDecade:"10\u5e74\u524d",ToolTipNextCentury:"100\u5e74\u5f8c",ToolTipPreviousCentury:"100\u5e74\u524d",
ToolTipNextMillennium:"1000\u5e74\u5f8c",ToolTipPreviousMillennium:"1000\u5e74\u524d",ToolTipZoomIn:"\u30ba\u30fc\u30e0\u30a4\u30f3",ToolTipZoomOut:"\u30ba\u30fc\u30e0\u30a2\u30a6\u30c8",WeekdayMonday:"\u6708",WeekdayTuesday:"\u706b",WeekdayWednesday:"\u6c34",WeekdayThursday:"\u6728",WeekdayFriday:"\u91d1",WeekdaySaturday:"\u571f",WeekdaySunday:"\u65e5",ContextMenuUndo:"\u5143\u306b\u623b\u3059(U)",ContextMenuCut:"\u5207\u308a\u53d6\u308a(T)",ContextMenuCopy:"\u30b3\u30d4\u30fc(C)",ContextMenuPaste:"\u8cbc\u308a\u4ed8\u3051(P)",
ContextMenuDelete:"\u524a\u9664(D)",ContextMenuSelectAll:"\u3059\u3079\u3066\u9078\u629e(A)",NumberCurrencySymbol:"\u00a5",CalculatorDivideByZeroInfo:"0 \u3067\u9664\u7b97\u3067\u304d\u307e\u305b\u3093\u3002",CalculatorInvalidInputInfo:"\u4e0d\u6b63\u306a\u5165\u529b\u3067\u3059\u3002",CalculatorOverFlowInfo:"\u6f14\u7b97\u306e\u7d50\u679c\u304c\u30aa\u30fc\u30d0\u30fc\u30d5\u30ed\u30fc\u3057\u307e\u3059\u3002",CalculatorSqrtParameterException:"\u7121\u52b9\u306a\u5024\u3067\u3059\u3002",DateTabDefaultText:"\u65e5\u4ed8",
TimeTabDefaultText:"\u6642\u523b",NotifierDefaultFailMessage:"\u5165\u529b\u5024\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093",NotifierDefaultSuccessMessage:"\u5165\u529b\u5024\u304c\u6b63\u5e38\u3067\u3059",ToastNotifierSuccessTitle:"\u691c\u8a3c\u306b\u6210\u529f\u3057\u307e\u3057\u305f",ToastNotifierFailTitle:"\u691c\u8a3c\u306b\u5931\u6557\u3057\u307e\u3057\u305f",DateTimeAM:"\u5348\u524d",DateTimePM:"\u5348\u5f8c",RandomDisplay:"\u30ad\u30fc\u306e\u914d\u7f6e\u3092\u30e9\u30f3\u30c0\u30e0\u306b\u3059\u308b",
HideButtonWhenMouseOn:"\u30de\u30a6\u30b9\u30aa\u30fc\u30d0\u30fc\u6642\u306b\u30ad\u30fc\u3092\u975e\u8868\u793a\u306b\u3059\u308b",SoftKeyboardTitle:"\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30ad\u30fc\u30dc\u30fc\u30c9",BackSpaceButton:"1\u6587\u5b57\u524a\u9664",ClearButton:"\u5168\u3066\u524a\u9664 ",WhiteSpaceButton:"\u30b9\u30da\u30fc\u30b9",ArrowLeftButton:"\u2190",ArrowRightButton:"\u2192",CancelButton:"\u30ad\u30e3\u30f3\u30bb\u30eb",DefaultHelpContent:"\u30d8\u30eb\u30d7\u30b3\u30f3\u30c6\u30f3\u30c4",
Copy:"\u30b3\u30d4\u30fc\u3057\u307e\u3059",Copied:"\u30b3\u30d4\u30fc\u3057\u307e\u3057\u305f",Next:"\u6b21\u3078",Previous:"\u524d\u3078",Done:"\u5b8c\u4e86",Optional:"(\u30aa\u30d7\u30b7\u30e7\u30ca\u30eb)"};
sb.cn={TouchToolBarUndo:"\u64a4\u9500",TouchToolBarCut:"\u526a\u5207",TouchToolBarCopy:"\u590d\u5236",TouchToolBarPaste:"\u7c98\u8d34",TouchToolBarDelete:"\u5220\u9664",TouchToolBarSelectAll:"\u9009\u62e9\u5168\u90e8",ToolTipPreviousYear:"\u4e0a\u4e00\u5e74",ToolTipToday:"\u4eca\u65e5",ToolTipNextYear:"\u4e0b\u4e00\u5e74",ToolTipNextDecade:"\u4e0b\u5341\u5e74",ToolTipPreviousDecade:"\u4e0a\u5341\u5e74",ToolTipNextCentury:"\u4e0b\u767e\u5e74",ToolTipPreviousCentury:"\u4e0a\u767e\u5e74",ToolTipNextMillennium:"\u4e0b\u5343\u5e74",
ToolTipPreviousMillennium:"\u4e0a\u5343\u5e74",ToolTipZoomIn:"\u653e\u5927",ToolTipZoomOut:"\u7f29\u5c0f",WeekdayMonday:"\u4e00",WeekdayTuesday:"\u4e8c",WeekdayWednesday:"\u4e09",WeekdayThursday:"\u56db",WeekdayFriday:"\u4e94",WeekdaySaturday:"\u516d",WeekdaySunday:"\u65e5",ContextMenuUndo:"\u64a4\u9500(U)",ContextMenuCut:"\u526a\u5207(T)",ContextMenuCopy:"\u590d\u5236(C)",ContextMenuPaste:"\u7c98\u8d34(P)",ContextMenuDelete:"\u5220\u9664(D)",ContextMenuSelectAll:"\u9009\u62e9\u5168\u90e8(A)",NumberCurrencySymbol:"\uffe5",
CalculatorDivideByZeroInfo:"\u4e0d\u80fd\u88ab\u96f6\u9664\u3002",CalculatorInvalidInputInfo:"\u65e0\u6548\u8f93\u5165\u3002",CalculatorOverFlowInfo:"\u8fd0\u7b97\u7ed3\u679c\u6ea2\u51fa\u3002",CalculatorSqrtParameterException:"\u51fd\u6570\u8f93\u5165\u4e0d\u6b63\u786e\u3002",DateTabDefaultText:"\u65e5\u671f",TimeTabDefaultText:"\u65f6\u95f4",NotifierDefaultFailMessage:"\u8f93\u5165\u503c\u975e\u6cd5\u3002",NotifierDefaultSuccessMessage:"\u8f93\u5165\u503c\u6b63\u786e\u3002",ToastNotifierSuccessTitle:"\u9a8c\u8bc1\u6210\u529f",
ToastNotifierFailTitle:"\u9a8c\u8bc1\u5931\u8d25",DateTimeAM:"\u4e0a\u5348",DateTimePM:"\u4e0b\u5348",RandomDisplay:"\u968f\u673a\u663e\u793a",HideButtonWhenMouseOn:"\u9f20\u6807\u60ac\u505c\u65f6\u9690\u85cf\u6309\u94ae",SoftKeyboardTitle:"\u8f6f\u952e\u76d8",BackSpaceButton:"\u5220\u9664",ClearButton:"\u6e05\u7a7a",WhiteSpaceButton:"\u7a7a\u683c",ArrowLeftButton:"\u5de6\u79fb",ArrowRightButton:"\u53f3\u79fb",CancelButton:"\u53d6\u6d88",DefaultHelpContent:"\u5e2e\u52a9\u5185\u5bb9",Copy:"\u590d\u5236",
Copied:"\u5df2\u590d\u5236",Next:"\u4e0b\u4e00\u4e2a",Previous:"\u4e0a\u4e00\u4e2a",Done:"\u5b8c\u6210",Optional:"(\u53ef\u9009\u7684)"};
sb.en={TouchToolBarUndo:"Undo",TouchToolBarCut:"Cut",TouchToolBarCopy:"Copy",TouchToolBarPaste:"Paste",TouchToolBarDelete:"Delete",TouchToolBarSelectAll:"Select All",ToolTipPreviousYear:"Previous Year",ToolTipToday:"Today",ToolTipNextYear:"Next Year",ToolTipNextDecade:"Next Decade",ToolTipPreviousDecade:"Previous Decade",ToolTipNextCentury:"Next Century",ToolTipPreviousCentury:"Previous Century",ToolTipNextMillennium:"Next Millennium",ToolTipPreviousMillennium:"Previous Millennium",ToolTipZoomIn:"Zoom In",
ToolTipZoomOut:"Zoom Out",WeekdayMonday:"M",WeekdayTuesday:"T",WeekdayWednesday:"W",WeekdayThursday:"T",WeekdayFriday:"F",WeekdaySaturday:"S",WeekdaySunday:"S",ContextMenuUndo:"Undo(U)",ContextMenuCut:"Cut(T)",ContextMenuCopy:"Copy(C)",ContextMenuPaste:"Paste(P)",ContextMenuDelete:"Delete(D)",ContextMenuSelectAll:"Select All(A)",NumberCurrencySymbol:"$",CalculatorDivideByZeroInfo:"Cannot divide by zero.",CalculatorInvalidInputInfo:"Invalid Input.",CalculatorOverFlowInfo:"Arithmetic operation resulted in an overflow.",
CalculatorSqrtParameterException:"Invalid input for function.",DateTabDefaultText:"Date",TimeTabDefaultText:"Time",NotifierDefaultFailMessage:"Input value is incorrect.",NotifierDefaultSuccessMessage:"Input value is correct.",ToastNotifierSuccessTitle:"Validation Succeeded",ToastNotifierFailTitle:"Validation Failed",DateTimeAM:"AM",DateTimePM:"PM",RandomDisplay:"Random display",HideButtonWhenMouseOn:"Hide button when mouse on",SoftKeyboardTitle:"Software Keyboard",BackSpaceButton:"Back",ClearButton:"Clear",
WhiteSpaceButton:"Space",ArrowLeftButton:"\u2190",ArrowRightButton:"\u2192",CancelButton:"Cancel",DefaultHelpContent:"DefaultHelpContent",Copy:"Copy",Copied:"Copied",Next:"Next",Previous:"Previous",Done:"Done",Optional:"(Optional)"};var x=new Proxy({},{get:function(a,b){return sb[qb.language][b]}});v("setCulture",function(a,b){qb.addSupportedLanguage(a);qb.language=a;b&&(sb[qb.language]=b)});var tb={Always:"always",PostDisplay:"postdisplay",PreDisplay:"predisplay"};v("ShowLiterals",tb);var ub={AdjustToMaxMin:"adjusttomaxmin",Clear:"clear",Restore:"restore",CancelInput:"cancelinput",Keep:"keep"};v("MaxMinBehavior",ub);var vb={Control:"control",Field:"field"};v("TabAction",vb);var wb={None:"none",Left:"left",Right:"right",Both:"both"};v("ExitOnLeftRightKey",wb);var xb={Insert:"insert",Overwrite:"overwrite",FixedInsert:"fixedinsert",FixedOverwrite:"fixedoverwrite"};v("EditMode",xb);
var Ab={NoControl:"nocontrol",Filter:"filter",Cut:"cut"};v("CrLfMode",Ab);var Bb={NoControl:"nocontrol",Filter:"filter",Cut:"cut"};v("TabCharMode",Bb);var Cb={Enter:"enter",ShiftEnter:"shiftenter",Both:"both",None:"none"};v("ExitKey",Cb);var Fb={LeftSide:"leftside",RightSide:"rightside"};v("DropDownButtonAlignment",Fb);var Gb={IncludeLiterals:"includeliterals",ExcludeLiterals:"excludeliterals"};v("ClipContent",Gb);var Ib={None:"none",Field:"field",All:"all"};v("HighlightText",Ib);
var Jb={LeftSide:"leftside",RightSide:"rightside"};v("SpinButtonAlignment",Jb);var Kb={None:0,Click:1,ClientEvent:3,KeyExit:4,Default:5,ImeInput:8,Left:9,Right:10,DragDrop:11,ClearButton:12};Kb[Kb.None]="None";Kb[Kb.Click]="Click";Kb[Kb.ClientEvent]="ClientEvent";Kb[Kb.KeyExit]="KeyExit";Kb[Kb.Default]="Default";Kb[Kb.ImeInput]="ImeInput";Kb[Kb.Left]="Left";Kb[Kb.Right]="Right";Kb[Kb.DragDrop]="DragDrop";Kb[Kb.ClearButton]="ClearButton";v("FocusType",Kb);
var y={BackSpace:8,Tab:9,Clear:12,Return:13,Shift:16,Control:17,Alt:18,Pause:19,CapsLock:20,Escape:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,Left:37,Up:38,Right:39,Down:40,Select:41,Print:42,Execute:43,Insert:45,Delete:46,Help:47,D0:48,D1:49,D2:50,D3:51,D4:52,D5:53,D6:54,D7:55,D8:56,D9:57,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,NumPad0:96,NumPad1:97,NumPad2:98,NumPad3:99,NumPad4:100,NumPad5:101,NumPad6:102,
NumPad7:103,NumPad8:104,NumPad9:105,Multiply:106,Add:107,Separator:108,Subtract:109,Decimal:110,Divide:111,NumLock:136,ScrollLock:137,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,F16:127,F17:128,F18:129,F19:130,F20:131,F21:132,F22:133,F23:134,F24:135};y[y.BackSpace]="BackSpace";y[y.Tab]="Tab";y[y.Clear]="Clear";y[y.Return]="Return";y[y.Shift]="Shift";y[y.Control]="Control";y[y.Alt]="Alt";y[y.Pause]="Pause";y[y.CapsLock]="CapsLock";
y[y.Escape]="Escape";y[y.Space]="Space";y[y.PageUp]="PageUp";y[y.PageDown]="PageDown";y[y.End]="End";y[y.Home]="Home";y[y.Left]="Left";y[y.Up]="Up";y[y.Right]="Right";y[y.Down]="Down";y[y.Select]="Select";y[y.Print]="Print";y[y.Execute]="Execute";y[y.Insert]="Insert";y[y.Delete]="Delete";y[y.Help]="Help";y[y.D0]="D0";y[y.D1]="D1";y[y.D2]="D2";y[y.D3]="D3";y[y.D4]="D4";y[y.D5]="D5";y[y.D6]="D6";y[y.D7]="D7";y[y.D8]="D8";y[y.D9]="D9";y[y.A]="A";y[y.B]="B";y[y.C]="C";y[y.D]="D";y[y.E]="E";y[y.F]="F";
y[y.G]="G";y[y.H]="H";y[y.I]="I";y[y.J]="J";y[y.K]="K";y[y.L]="L";y[y.M]="M";y[y.N]="N";y[y.O]="O";y[y.P]="P";y[y.Q]="Q";y[y.R]="R";y[y.S]="S";y[y.T]="T";y[y.U]="U";y[y.V]="V";y[y.W]="W";y[y.X]="X";y[y.Y]="Y";y[y.Z]="Z";y[y.NumPad0]="NumPad0";y[y.NumPad1]="NumPad1";y[y.NumPad2]="NumPad2";y[y.NumPad3]="NumPad3";y[y.NumPad4]="NumPad4";y[y.NumPad5]="NumPad5";y[y.NumPad6]="NumPad6";y[y.NumPad7]="NumPad7";y[y.NumPad8]="NumPad8";y[y.NumPad9]="NumPad9";y[y.Multiply]="Multiply";y[y.Add]="Add";
y[y.Separator]="Separator";y[y.Subtract]="Subtract";y[y.Decimal]="Decimal";y[y.Divide]="Divide";y[y.NumLock]="NumLock";y[y.ScrollLock]="ScrollLock";y[y.F1]="F1";y[y.F2]="F2";y[y.F3]="F3";y[y.F4]="F4";y[y.F5]="F5";y[y.F6]="F6";y[y.F7]="F7";y[y.F8]="F8";y[y.F9]="F9";y[y.F10]="F10";y[y.F11]="F11";y[y.F12]="F12";y[y.F13]="F13";y[y.F14]="F14";y[y.F15]="F15";y[y.F16]="F16";y[y.F17]="F17";y[y.F18]="F18";y[y.F19]="F19";y[y.F20]="F20";y[y.F21]="F21";y[y.F22]="F22";y[y.F23]="F23";y[y.F24]="F24";v("Key",y);
var Lb={None:"none",Auto:"auto",Always:"always"};v("FloatingLabelType",Lb);var Ob={Inside:"inside",ThroughBorder:"throughborder",Outside:"outside"};v("FloatingLabelDirection",Ob);var Rb={None:0,MouseWheel:1,SpinButton:2,UpDownKeys:4,All:7};Rb[Rb.None]="None";Rb[Rb.MouseWheel]="MouseWheel";Rb[Rb.SpinButton]="SpinButton";Rb[Rb.UpDownKeys]="UpDownKeys";Rb[Rb.All]="All";v("SpinType",Rb);var Sb,Tb,z,Ub,Vb,Wb,Xb,Yb,Zb,$b,ac,bc,cc,dc,fc,gc,hc,ic;function jc(){return"ontouchstart"in window||navigator.maxTouchPoints}function kc(){return gc||"android"==lc().toLowerCase()}
function lc(){if(z)var a=navigator.appVersion;else a=navigator.userAgent,a=a.substring(a.indexOf("(")+1,a.indexOf(")"));if(-1!=a.indexOf("NT 6.0"))return"vista";if(-1!=a.indexOf("NT 5.2"))return"win2003";if(-1!=a.indexOf("NT 5.1"))return"winxp";if(-1!=a.indexOf("NT 5.0"))return"win2000";if(-1!=a.indexOf("NT 6.1"))return"Win7";if(-1!=a.indexOf("NT 6.2")||-1!=a.indexOf("NT 6.3"))return"Win8";var b=a.indexOf("NT ");return 0<=b&&6.3<=parseFloat(a.substr(b+3,3))?"Win8":-1!=a.indexOf("Android")?"Android":
"unknow"}function mc(){var a=window.navigator.userAgent,b=/ipod|iphone/i.test(a),c=/like (ipod|iphone)/i.test(a);return b&&!c?(a=a.match(/(ipod|iphone)/i),"iphone"===(a&&0<a.length&&a[1]||"").toLowerCase()):!1}var nc=navigator.userAgent.toLowerCase();
if(window.ActiveXObject)Ub=nc.match(/msie ([\d.]+)/)[1];else if(-1!=nc.indexOf("edge"))Tb=nc.match(/edge\/([\d.]+)/)[1];else if(-1!=nc.indexOf("chrome")){cc=nc.match(/chrome\/([\d.]+)/)[1];try{fc=parseInt(cc)}catch(a){}}else if(-1!=nc.indexOf("safari"))if(nc.match(/version\/([\d.]+)/))dc=nc.match(/version\/([\d.]+)/)[1];else{if(-1!=nc.indexOf("ipad")){var oc=nc.match(/crios\/([\d.]+)/);oc?(cc=oc[1],fc=parseInt(cc)):-1!=nc.indexOf("applewebkit")&&(oc=nc.match(/applewebkit\/([\d.]+)/))&&(dc=oc[1])}}else-1!=
nc.indexOf("firefox")&&(Wb=nc.match(/firefox\/([\d.]+)/)[1]);-1!=navigator.userAgent.toLowerCase().indexOf("mac os")&&jc()?hc=gc=!0:-1!=nc.indexOf("ipad")&&(gc=!0);Yb=null;"Microsoft Internet Explorer"==window.navigator.appName&&(document.documentMode?Yb=document.documentMode:(Yb=5,document.compatMode&&"CSS1Compat"==document.compatMode&&(Yb=7),Ub&&0==Ub.indexOf("6")&&(Yb=6)));-1!==nc.indexOf("rv:")&&-1===nc.indexOf("firefox")&&(Ub=Yb=nc.match(/rv:([\d.]+)/)[1]);
ic=function(){var a=window.navigator.userAgent;return[/\sedg\//i,/edg([ea]|ios)/i].some(function(b){return b.test(a)})}();Sb=void 0!==Tb;z=void 0!==Ub||Sb;Vb=null!=Wb&&4<=parseFloat(Wb);Xb=z&&11<=Yb||Sb;Zb=z&&10<=Yb||Sb;$b=z&&9<=Yb||Sb;ac=z&&9==Yb;bc=z&&11==Yb;function pc(a){switch(a){case "0":case "1":case "2":case "3":case "4":case "5":case "6":case "7":case "8":case "9":case "+/-":case ".":a=qc;break;case "+":case "-":case "*":case "/":case "SQRT":case "%":case "1/x":case "=":a=rc;break;case "MStatus":a=sc;break;case "MC":case "MR":case "MS":case "M+":a=vc;break;case "BS":a=wc;break;case "CE":case "C":a=xc;break;default:a=null}return a}var qc="Numeric",rc="Math",wc="Edit",vc="Memory",sc="MemoryStatus",xc="Reset";
function yc(a){return a===zc||a===Ac||a===Bc||a===Cc}var zc=x.CalculatorDivideByZeroInfo,Ac=x.CalculatorInvalidInputInfo,Bc=x.CalculatorSqrtParameterException,Cc=x.CalculatorOverFlowInfo;
function Hc(a){var b=a.keyCode;a.shiftKey&&(b|=65536);a.ctrlKey&&(b|=131072);a.altKey&&(b|=262144);switch(b){case 131138:case 131140:case 131141:case 131144:case 131145:case 131148:case 131150:case 131154:case 131159:case 131188:case 262181:case 262183:case 117:case 65657:case 131081:case 196617:case 9:case 65545:case 121:case 123:return null;case 48:case 96:return"0";case 49:case 97:return"1";case 50:case 98:return"2";case 51:case 99:return"3";case 52:case 100:return"4";case 53:case 101:return"5";
case 54:case 102:return"6";case 55:case 103:return"7";case 56:case 104:return"8";case 57:case 105:return"9";case 120:return"+/-";case 190:case 188:case 110:return".";case 65723:case 107:return"+";case 65643:if(!z)return"+";case 189:case 109:return"-";case 65592:case 106:case 65722:return"*";case 191:case 111:return"/";case 65586:case 192:return"SQRT";case 65589:return"%";case 82:return"1/x";case 13:return"=";case 393292:return"MC";case 393298:return"MR";case 393293:return"MS";case 393296:return"M+";
case 8:return"BS";case 46:return"CE";case 27:case 131118:return"C";default:return 61==b&&Wb||187==b&&!Wb?"=":null}};function Ic(a){return-1!==String(a).indexOf(".")}function Jc(a){a=String(a);for(var b=0,c=a.length;0<c;c--){if("."==a.substring(c-1,c))return b;b++}return 0===c?0:b}
function Kc(a){var b=String(a),c="";0>a&&(c="-",b=b.substring(1,b.length));var d=b.length;a="";var e=b.indexOf("e");-1!=e&&(a=b.substring(e,d),b=b.substring(0,e),d=b.length);Ic(b)&&16<d&&(1<parseFloat(b)?(d=Jc(b)-(d-16),b=b.toString().substring(0,17)):(d=Jc(b)-(d-17),b=b.toString().substring(0,18)),b=0<d?(Math.round(parseFloat(b)*Math.pow(10,d))/Math.pow(10,d)).toString():Math.round(parseFloat(b)).toString());d=b.length;!Ic(b)&&15<d&&(d-=15,b=(Math.round(parseFloat(b)/Math.pow(10,d))*Math.pow(10,
d)).toString());b=parseFloat(c+b+a);c=parseFloat(b.toString());return 0!=c&&(7.9E28<c||1E-28>c&&-1E-28<c||-7.9E28>c)?Cc:b}function Lc(a,b){a=parseFloat(a);isNaN(a)&&(a=0);if("SQRT"==b){if(0>a)return Bc;a=Math.sqrt(a)}if("1/x"==b){if(0==a)return zc;b=Jc(a.toString());a=Math.pow(10,b)/(Math.pow(10,b)*a)}return Kc(a)}
function Mc(a,b,c){a=parseFloat(a);b=parseFloat(b);if(Ic(a.toString())||Ic(b.toString())){var d=0,e=0;Ic(a.toString())&&(d=Jc(a.toString()));Ic(b.toString())&&(e=Jc(b.toString()));var f=Math.max(d,e);if("+"==c){a*=Math.pow(10,f);b*=Math.pow(10,f);var h=(a+b)/Math.pow(10,f)}"-"==c&&(a*=Math.pow(10,f),b*=Math.pow(10,f),h=(a-b)/Math.pow(10,f));"*"==c&&(a*=Math.pow(10,d),b*=Math.pow(10,e),h=a*b/Math.pow(10,d+e));if("/"==c){a*=Math.pow(10,f);b*=Math.pow(10,f);if(0==b)return zc;h=a/b}"%"==c&&(a*=Math.pow(10,
d),b*=Math.pow(10,e),h=a*b/Math.pow(10,d+e+2))}else{"+"==c&&(h=a+b);"-"==c&&(h=a-b);"*"==c&&(h=a*b);if("/"==c){if(0==b)return zc;h=a/b}"%"==c&&(h=a*b/100)}return Kc(h)};function Nc(a,b){this.result="";this.y=this.x=0;this.Be=null;this.count=this.Jc=0;this.oe=this.Ag=this.Pe=!1;this.$d=null;if(a){a=parseFloat(String(a));this.result=String(a);this.x=a;a=Math.abs(a);var c=Math.floor(a),d=Jc(a.toString());this.count=(0==c?0:c.toString().length)+(0==(a*Math.pow(10,d)-c*Math.pow(10,d))/Math.pow(10,d)?0:d);this.Pe=0<this.count}b?this.Ic=