/*
    *
    * Wijmo Library 5.20181.436
    * http://wijmo.com/
    *
    * Copyright(c) GrapeCity, Inc.  All rights reserved.
    *
    * Licensed under the GrapeCity Commercial License.
    * sales@wijmo.com
    * wijmo.com/products/wijmo-5/license/
    *
    */
System.register(["wijmo/wijmo"],function(t,e){"use strict";function n(){return It}function r(t,e){return null==t?null:o(e)?c(t.implementsInterface)&&t.implementsInterface(e)?t:null:t instanceof e?t:null}function i(t){return o(t)||s(t)||u(t)||l(t)}function o(t){return"string"==typeof t}function s(t){return"number"==typeof t}function a(t){return s(t)&&t==Math.round(t)}function u(t){return"boolean"==typeof t}function c(t){return"function"==typeof t}function l(t){return(t instanceof Date||"[object Date]"===Object.prototype.toString.call(t))&&!isNaN(t.getTime())}function h(t){return t instanceof Array||Array.isArray(t)||"[object Array]"===Object.prototype.toString.call(t)}function p(t){return null!=t&&"object"==typeof t&&!l(t)&&!h(t)}function f(t){for(var e=t,n=0;null!=document.getElementById(e);n++)e=t+n;return e}function d(t,e,n){if(null!=t){if(o(t))switch(e){case Ft.Number:var r=Vt.parseFloat(t,n);return isNaN(r)?t:r;case Ft.Date:var i=Vt.parseDate(t,n);return i||n||!t||(i=new Date(t)),i&&isFinite(i.getTime())?i:t;case Ft.Boolean:switch(t.toLowerCase()){case"true":return!0;case"false":return!1}return t}if(e==Ft.String)return Vt.format(t,n)}return t}function g(t,e,n){if(n){var r=(i=t.toString()).indexOf(".");i.indexOf("e")<0&&r>-1&&(i=i.substr(0,r+1+e),t=parseFloat(i))}else{var i=t.toFixed(e);t=parseFloat(i)}return t}function _(t,e,n){if((t=b(t)).match(/\{.*"count".*:.*"when".*:.*\}/))try{var r=JSON.parse(t);if(o(r.count)){var i=e[r.count],a=r.when;if(s(i)&&p(a)){var u=a[i]||a.other;o(u)&&(t=u)}}}catch(t){}return t.replace(/\{(.*?)(:(.*?))?\}/g,function(t,r,i,o){var s=t;return r&&"{"!=r[0]&&e&&(s=e[r],o&&(s=Vt.format(s,o)),n&&(s=n(e,r,o,s))),null==s?"":s})}function m(t,e,n){return null!=t&&(null!=n&&t>n&&(t=n),null!=e&&t<e&&(t=e)),t}function v(t,e){if(e)for(var n in e)if("_"!=n[0]){y(n in t,'Unknown property "'+n+'".');var r=e[n];t._copy&&t._copy(n,r)||(t[n]instanceof Gt?c(r)&&t[n].addHandler(r):!p(r)||r instanceof Element||!t[n]||"itemsSource"==n?t[n]=r:v(t[n],r))}}function y(t,e){if(!t)throw e="** Assertion failed in Wijmo: "+e,console.error(e),e}function b(t,e){return void 0===e&&(e=!0),y(e&&null==t||o(t),"String expected."),t}function C(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=!1),y(e&&null==t||s(t),"Number expected."),n&&t&&t<0)throw"Positive number expected.";return t}function w(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=!1),y(e&&null==t||a(t),"Integer expected."),n&&t&&t<0)throw"Positive integer expected.";return t}function E(t,e){return void 0===e&&(e=!1),y(e&&null==t||u(t),"Boolean expected."),t}function A(t,e){if(void 0===e&&(e=!1),o(t)){var n=d(t,Ft.Date,"r");l(n)&&(t=n)}return y(e&&null==t||l(t),"Date expected."),t}function x(t,e){return void 0===e&&(e=!0),y(e&&null==t||c(t),"Function expected."),t}function M(t,e){return void 0===e&&(e=!0),y(e&&null==t||h(t),"Array expected."),t}function S(t,e,n){return void 0===n&&(n=!1),t=r(t,e),y(n||null!=t,e+" expected."),t}function T(t,e,n){if(void 0===n&&(n=!1),null==t&&n)return null;var r=e[t];return y(null!=r,"Invalid enum value."),s(r)?r:t}function O(t,e){if(t&&t.getAttribute){var n=new RegExp("(\\s|^)"+e+"(\\s|$)");return t&&n.test(t.getAttribute("class"))}return!1}function P(t,e){if(t&&e&&t.setAttribute)for(var n=e.split(" "),r=0;r<n.length;r++){var i=n[r];if(O(t,i)){var o=new RegExp("((\\s|^)"+i+"(\\s|$))","g"),s=t.getAttribute("class");(s=s.replace(o," ").replace(/ +/g," ").trim())?t.setAttribute("class",s):t.removeAttribute("class")}}}function I(t,e){if(t&&e&&t.setAttribute)for(var n=e.split(" "),r=0;r<n.length;r++){var i=n[r];if(!O(t,i)){var o=t.getAttribute("class");t.setAttribute("class",o?o+" "+i:i)}}}function D(t,e,n){null==n&&(n=!O(t,e)),n?I(t,e):P(t,e)}function F(t,e,n,r){t&&(null!=n?r&&t.getAttribute(e)||t.setAttribute(e,n.toString()):t.removeAttribute(e))}function L(t,e,n){if(void 0===n&&(n=e),y(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement,"INPUT or TEXTAREA element expected"),V(document.body,t)&&!t.disabled&&"none"!=t.style.display)try{return t.setSelectionRange(C(e),C(n),xt()?null:"backward"),t.focus(),!0}catch(t){}return!1}function k(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function j(){var t=document.activeElement;if(t){var e=t.shadowRoot;e&&e.activeElement&&(t=e.activeElement)}return t}function R(t){for(var e=[],n=t.querySelectorAll("input,select,textarea,button,a,div"),r=0;r<n.length;r++){var i=n[r];if(i.offsetHeight>0&&i.tabIndex>-1&&!i.disabled&&!B(i,"[disabled],.wj-state-disabled")){if(i instanceof HTMLAnchorElement&&!i.hasAttribute("href"))continue;if(xt()&&!i.hasAttribute("tabindex")){if(i instanceof HTMLDivElement)continue;var o=qt.getControl(B(i,".wj-flexgrid"));if(o&&0==o.keyActionTab)continue}!qt.getControl(i)&&R(i).length||e.push(i)}}return e}function N(t){return t instanceof Element?t:o(t)?document.querySelector(t):t&&t.jquery?t[0]:null}function H(t,e){var n=document.createElement("div");return n.innerHTML=t,1==n.children.length&&(n=n.children[0]),e&&e.appendChild(n),n}function V(t,e){for(var n=e;n&&t;){if(n===t)return!0;n=n.parentNode||n.host}return!1}function B(t,e){var n=t?t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector:null;if(n)for(;t;t=t.parentNode)if(t instanceof Element&&n.call(t,e))return t;return null}function z(t,e){var n=!e;D(t,"wj-state-disabled",n),F(t,"disabled",n?"true":null);for(var r=t.querySelectorAll("input"),i=0;i<r.length;i++){var o=r[i];e?o.removeAttribute("disabled"):o.setAttribute("disabled","true")}}function G(t,e){if(y(p(e),"css parameter should be an object"),t instanceof Array)for(var n=0;n<t.length;n++)G(t[n],e);else if(t&&t.style){var r=t.style;for(var i in e){var o=e[i];"number"==typeof o&&i.match(/width|height|left|top|right|bottom|size|padding|margin'/i)&&(o+="px"),r[i]!==o&&(r[i]=o.toString())}}}function U(t,e,n){void 0===e&&(e=qt._ANIM_DEF_DURATION),void 0===n&&(n=qt._ANIM_DEF_STEP),t=x(t),e=C(e,!1,!0),n=C(n,!1,!0);var r=Date.now(),i=setInterval(function(){var n=Math.min(1,(Date.now()-r)/e);n=Math.sin(n*Math.PI/2),n*=n,requestAnimationFrame(function(){t(n)}),n>=1&&clearInterval(i)},n);return i}function W(t,e){e||(e={});var n=e.method?b(e.method).toUpperCase():"GET",r=null==e.async||E(e.async),i=e.data;if(null!=i&&"GET"==n){var a=[];for(var u in i){var h=i[u];l(h)&&(h=h.toJSON()),a.push(u+"="+h)}a.length&&(t+=(t.indexOf("?")<0?"?":"&")+a.join("&")),i=null}var f=new XMLHttpRequest;f.URL_DEBUG=t;var d=!1;if(null==i||o(i)||(d=p(i),i=JSON.stringify(i)),f.onload=function(){4==f.readyState&&(f.status<300?e.success&&x(e.success)(f):e.error&&x(e.error)(f),e.complete&&x(e.complete)(f))},f.onerror=function(){if(!c(e.error))throw"HttpRequest Error: "+f.status+" "+f.statusText;e.error(f)},f.open(n,t,r,e.user,e.password),e.user&&e.password&&f.setRequestHeader("Authorization","Basic "+btoa(e.user+":"+e.password)),d&&f.setRequestHeader("Content-Type","application/json"),e.requestHeaders)for(var g in e.requestHeaders)f.setRequestHeader(g,e.requestHeaders[g]);return s(e.timeout)&&(f.timeout=e.timeout),c(e.beforeSend)&&e.beforeSend(f),f.send(i),f}function Y(t,e,n){var r=0,i=0,o=0,a=0,c=null,l=null,h=null,p=n?new Bt(n):null;if((t=T(t,Jt))==Jt.CntAll)return e.length;for(var f=0;f<e.length;f++){var d=e[f];if(p&&(d=p.getValue(d)),t==Jt.First)return d;null!=d&&(r++,(null==c||d<c)&&(c=d),(null==l||d>l)&&(l=d),h=d,s(d)&&!isNaN(d)?(i++,o+=d,a+=d*d):u(d)&&(i++,1==d&&(o++,a++)))}var g=0==i?0:o/i;switch(t){case Jt.Avg:return g;case Jt.Cnt:return r;case Jt.Max:return l;case Jt.Min:return c;case Jt.Rng:return l-c;case Jt.Sum:return o;case Jt.VarPop:return i<=1?0:a/i-g*g;case Jt.StdPop:return i<=1?0:Math.sqrt(a/i-g*g);case Jt.Var:return i<=1?0:(a/i-g*g)*i/(i-1);case Jt.Std:return i<=1?0:Math.sqrt((a/i-g*g)*i/(i-1));case Jt.Last:return h}throw"Invalid aggregate type."}function K(t,e,n,r,i){void 0===i&&(i=!0);var o=document.body;if(e instanceof HTMLElement){if(!V(document.body,e))return;for(var s=e;s;s=s.parentElement)if(J(s)||"fixed"==getComputedStyle(s).position){o=s;break}}G(t,{display:"none",left:"",top:""}),t.offsetHeight&&t.offsetWidth&&V(o,t)||o.lastChild!=t&&o.appendChild(t);var a=document.body,u=new kt(a.scrollLeft||pageXOffset,a.scrollTop||pageYOffset),c=document.documentElement,l=c.clientWidth/window.innerWidth;if(o!=a||l>1.005){var h=o==a?c:t.offsetParent||o;if(J(o)&&o.offsetParent&&(h=o.offsetParent),h){var p=h.getBoundingClientRect();u=new kt(h.scrollLeft-p.left,h.scrollTop-p.top)}}if(G(t,{position:"fixed",display:"",left:0,top:0}),t.offsetHeight&&t.offsetWidth&&V(o,t)||o.lastChild!=t&&o.appendChild(t),e instanceof HTMLElement&&i){var f=getComputedStyle(e);new he(f.backgroundColor).a&&G(t,{color:f.color,backgroundColor:f.backgroundColor,fontFamily:f.fontFamily,fontSize:f.fontSize,fontWeight:f.fontWeight,fontStyle:f.fontStyle})}G(t,{position:"fixed",display:""}),qt.refreshAll(t);var d=getComputedStyle(t),g=parseFloat(d.marginTop)+parseFloat(d.marginBottom),_=parseFloat(d.marginLeft)+parseFloat(d.marginRight),m=new jt(t.offsetWidth+_,t.offsetHeight+g),v=new kt,y=null,b=c.clientWidth,C=c.clientHeight;if(e&&null!=e.clientX&&null!=e.clientY&&null!=e.pageX&&null!=e.pageY)e.clientX<=0&&e.clientY<=0&&e.target?y=e.target.getBoundingClientRect():(v.x=Math.max(0,e.pageX-pageXOffset),v.y=Math.max(0,e.pageY-pageYOffset));else if(e instanceof kt)v=e;else if(e instanceof HTMLElement)y=e.getBoundingClientRect();else if(e&&null!=e.top&&null!=e.left)y=e;else{if(null!=e)throw"Invalid ref parameter.";v.x=Math.max(0,(b-m.width)/2),v.y=Math.max(0,Math.round((C-m.height)/2*.7))}var w=parseFloat(d.minWidth);if(y){var E=y.top,A=C-y.bottom,x="rtl"==getComputedStyle(t).direction;v.x=x?Math.max(0,y.right-m.width):Math.max(0,Math.min(y.left,b-m.width)),v.y=n?E>m.height||E>A?Math.max(0,y.top-m.height):y.bottom:A>m.height||A>E?y.bottom:Math.max(0,y.top-m.height),w=Math.max(w,y.width),xt()&&(w-=t.offsetWidth-(t.clientWidth+parseInt(d.borderLeftWidth)+parseInt(d.borderRightWidth)))}else{v.y+m.height>C-20&&(v.y=Math.max(0,C-20-m.height)),v.x+m.width>b-20&&(v.x=Math.max(0,b-20-m.width))}var M={position:"absolute",left:v.x+u.x,top:v.y+u.y,minWidth:w,zIndex:1500},S=null;r&&(t.style.opacity="0",S=U(function(e){t.style.opacity=e<1?e.toString():""})),e instanceof HTMLElement&&(t[qt._OWNR_KEY]=e),G(t,M);var T=e instanceof MouseEvent?e.target:e;if(T instanceof HTMLElement&&T.parentElement!=document.body){var O=Date.now(),P=T.getBoundingClientRect(),I=new qt(document.createElement("div"));t[qt._SCRL_KEY]=I,I.addEventListener(document,"scroll",function(n){if(Date.now()-O>100&&V(document,T)&&!V(t,n.target)&&(n.target!=document||null!=e&&"fixed"==t.style.position)){var r=T.getBoundingClientRect(),i=Math.abs(r.left-P.left),o=Math.abs(r.top-P.top);(i>1||o>1)&&q(t,!0)}},!0)}return S}function q(t,e){t.style.display="none",e&&t.parentElement&&setTimeout(function(){"none"==t.style.display&&(k(t),c(e)&&e())},2*qt._FOCUS_INTERVAL);var n=t[qt._SCRL_KEY];n instanceof qt&&n.dispose(),delete t[qt._SCRL_KEY],delete t[qt._OWNR_KEY]}function J(t){var e=window.jQuery,n=c(e)?e(t):null;return n&&c(n.dialog)&&null!=n.dialog("instance")}function X(t){return t._getProductInfo().split(",")[0]}function Z(t){return t._getProductInfo().split(",")[1]}function $(t,e,n){var r=Ht.Licensing||ge,i=null;n?tt(t,n)?et(t,n)?nt(t,n)?Q(t,n)?rt(t,n)&&(i=r.evl):i=r.prd:i=r.dmn:i=r.ver:i=r.exp:i=e?r.lic:r.mss,i&&ot(t,i+="<br/><br/>"+r.ctc,n)}function Q(t,e){var n=X(t);if(n&&n.length>=4)for(var r=0;r<e.Prd.length;r++)if(e.Prd[r].C.indexOf(n)>-1)return!0;return!1}function tt(t,e){if(e.Exp){var n=e.Exp,r=new Date(parseInt(n.substr(0,4))||0,parseInt(n.substr(4,2))-1||0,parseInt(n.substr(6,2))||0);if(Math.ceil((r.valueOf()-Date.now())/864e5)<=0)return!1}return!0}function et(t,e){var r=e.Anl?e.Anl.ver:null,i=n();return!r||!i||parseInt(r.replace("v",""))+10>=parseInt(i.split(".")[1])}function nt(t,e){if(it()||!e.Dms)return!0;for(var n=location.hostname,r=e.Dms.split(","),i=!1,o=0;o<r.length;o++){var s=r[o];if(i=s&&0==s.lastIndexOf("*.",0),(s=i?s.slice(2):s)==n)return!0;if(i){var a=n.indexOf("."+s);if(a>0&&a==n.length-s.length-1)return!0}}return!1}function rt(t,e){return!!e&&e.Evl}function it(){var t=atob("Xih8bG9jYWxob3N0fGZpZGRsZS5qc2hlbGwubmV0fHJ1bi5wbG5rci5jb3xzLmNvZGVwZW4uaW98bnVsbC5qc2Jpbi5jb218MTI3LjAuMC4xKSQ="),e=new RegExp(t,"i");return location.hostname.match(e)}function ot(t,e,n){if(e=at(t,e,n),!_e[" "]&&!it()&&!rt(t,n)){_e[" "]=!0;var r=Ht.Licensing,i=H(o='<div style="position:fixed;background:rgba(0,0,0,0.3);left:0;top:0;width:100%;height:100%;font-family: sans-serif;z-index:10000;"><div style="position:relative;background:white;width:450px;padding:36pt;left:50%;top:50%;transform:translate(-50%,-50%)"><div><p style="font-size:150%;font-weight:bold">'+r.hdr+"</p><p>"+e+'</p></div><div style="text-align:right;margin-top:24pt"><button style="border:none;background:rgba(158,158,158,.2);padding:8px 16px">'+r.cls+"</button></div></div></div>",document.body);i.addEventListener("click",function(t){t.target instanceof HTMLButtonElement&&k(i)})}if(!qt._wme){var o='<div><a href="'+st()+'" target="_blank">'+at(t)+"</a></div>",s=H(o),a={position:"fixed",display:"block",visibility:"visible",background:"rgba(240,240,240,.75)",padding:"8px 12px",margin:"6px",fontFamily:"sans-serif",fontSize:"14pt",fontWeight:"bold",zIndex:1e4,opacity:.8,height:"auto",width:"auto",transform:"none"};switch(Math.round(100*Math.random())%3){case 0:a.right=a.bottom=0;break;case 1:a.left=a.bottom=0;break;case 2:a.right=a.top=0}G(s,a),document.body.appendChild(s),qt._wme=s,(new ue).setTooltip(s,e)}}function st(){return"ja"==Ht.Globalize.name?"https://www.grapecity.co.jp/developer/support/wijmo-license":"https://www.grapecity.com/en/licensing/wijmo"}function at(t,e,r){(!e||e.trim().length<15)&&(e=(Ht.Licensing||ge).evl),(!e||e.trim().length<15)&&(e=atob("V2lqbW8gRXZhbHVhdGlvbiBWZXJzaW9uICh7dmVyc2lvbn0p"));var i=null;if(r&&r.Exp){var o=r.Exp;i=new Date(parseInt(o.substr(0,4))||0,parseInt(o.substr(4,2))-1||0,parseInt(o.substr(6,2))||0)}return e=_(e,{version:n(),domain:location.hostname,control:Z(t),licVer:r&&r.Anl?"5."+r.Anl.ver.replace("v","")+".*":null,licDomain:r?r.Dms:null,expDate:i})}function ut(t,e,n,r){var i=ct(t,e.algorithmCode);if(!i)return r();var o=i.licData,s=i.prefix+"#"+e.algorithmCode;if(wt(s+JSON.stringify(o.D))!=o.H)return r();var a=window.msCrypto||window.crypto,u=a?a.subtle:null;if(!u)return n(o.D);var c={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},l={alg:"RS256",e:"AQAB",kty:"RSA",n:bt(e.publicKey)};l=window.msCrypto?Ct(JSON.stringify(l)):l;try{Et(u.importKey("jwk",l,c,!1,["verify"])).then(function(t){var e=s+mt(vt(yt(JSON.stringify(o.D))));Et(u.verify(c,t,vt(o.S),Ct(e))).then(function(t){return t?n(o.D):r()})},function(){return r()})}catch(t){return n(o.D)}}function ct(t,e){try{e="#"+e;var n=t.indexOf(e);if(n>-1)return{prefix:t.substring(0,n),licData:JSON.parse(lt(t.substr(n+e.length)))}}catch(t){}return null}function lt(t){if(!t)return"";var e=ht(t);e=gt(e);var n=Math.ceil(e.length/2);return e=e.substr(n)+e.substr(0,n),e=e.replace("#","="),e=e.replace("&","=="),_t(e)}function ht(t){for(var e=t.split(""),n=e.length-5;n>=0;n--)pt(e,n+1,n+3,dt),pt(e,n,n+2,dt);return e.join("")}function pt(t,e,n,r){t.length>1&&t.splice(n,1,r(t.splice(e,1,r(t[n]))[0]))}function ft(t,e){var n=t.charCodeAt(0);return n>=65&&n<=90?t.toLowerCase():n>=97&&n<=122?t.toUpperCase():n>=48&&n<=57?String.fromCharCode(48+(n-48+10+e)%10):t}function dt(t){return ft(t,-1)}function gt(t){return t.split("").reverse().join("")}function _t(t){return decodeURIComponent(Array.prototype.map.call(atob(t),function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function mt(t){return String.fromCharCode.apply(null,new me(t))}function vt(t){for(var e=atob(t),n=e.length,r=new me(n),i=0;i<n;i++)r[i]=e.charCodeAt(i);return r.buffer}function yt(t){return btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,function(t,e){return String.fromCharCode(parseInt(e,16))}))}function bt(t){return t.replace(/\+/g,"-").replace(/\//g,"_").replace(/\=+$/,"")}function Ct(t){for(var e=new ArrayBuffer(t.length),n=new me(e),r=0,i=t.length;r<i;r++)n[r]=t.charCodeAt(r);return e}function wt(t){for(var e=0,n=5381,r=0,i=t.length-1;i>=0;i--){var o=t.charCodeAt(i);e=o+(e<<6)+(e<<16)-e,n=o+((n<<5)+n),r=o+((r<<5)-r),r&=r}var s=e^n^r;return s<0&&(s=~s),s.toString(16).toUpperCase()}function Et(t){return"oncomplete"in t&&(t.then=function(e,n){t.resolve=e,t.reject=n},t.oncomplete=function(e){t.resolve(t.result)},t.onerror=function(e){t.reject()}),t}function At(){return we}function xt(){return xe}function Mt(t,e){return Se?{capture:t,passive:e}:t}var St=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();e&&e.id;t("getVersion",n),t("setLicenseKey",function(t){qt._licKey=t}),t("tryCast",r),t("isPrimitive",i),t("isString",o),t("isNullOrWhiteSpace",function(t){return null==t||t.replace(/\s/g,"").length<1}),t("isNumber",s),t("isInt",a),t("isBoolean",u),t("isFunction",c),t("isUndefined",function(t){return void 0===t}),t("isDate",l),t("isArray",h),t("isObject",p),t("isEmpty",function(t){for(var e in t)return!1;return!0}),t("getUniqueId",f),t("mouseToPage",function(t){if(t instanceof kt)return t;if(t.touches&&t.touches.length>0&&(t=t.touches[0]),s(t.clientX)&&s(t.clientY))return new kt(t.clientX+pageXOffset,t.clientY+pageYOffset);throw"Mouse or touch event expected."}),t("getType",function(t){return s(t)?Ft.Number:u(t)?Ft.Boolean:l(t)?Ft.Date:o(t)?Ft.String:h(t)?Ft.Array:Ft.Object}),t("changeType",d),t("toFixed",g),t("format",_),t("clamp",m),t("copy",v),t("assert",y),t("_deprecated",function(t,e){console.error('** WARNING: "'+t+'" has been deprecated; please use "'+e+'" instead.')}),t("asString",b),t("asNumber",C),t("asInt",w),t("asBoolean",E),t("asDate",A),t("asFunction",x),t("asArray",M),t("asType",S),t("asEnum",T),t("asCollectionView",function(t,e){if(void 0===e&&(e=!0),null==t&&e)return null;var n=r(t,"ICollectionView");return null!=n?n:(h(t)||y(!1,"Array or ICollectionView expected."),new se(t))}),t("hasItems",function(t){return null!=t&&null!=t.items&&t.items.length>0}),t("toHeaderCase",function(t){return t&&t.length?t[0].toUpperCase()+t.substr(1).replace(/([a-z])([A-Z])/g,"$1 $2"):""}),t("escapeHtml",function(t){return o(t)&&(t=t.replace(/[&<>"'\/]/g,function(t){return Lt[t]})),t}),t("hasClass",O),t("removeClass",P),t("addClass",I),t("toggleClass",D),t("setAttribute",F),t("setSelectionRange",L),t("disableAutoComplete",function(t){"autocomplete,autocorrect,autocapitalize,spellcheck".split(",").forEach(function(e){t.setAttribute(e,"spellcheck"==e?"false":"off")})}),t("removeChild",k),t("getActiveElement",j),t("moveFocus",function(t,e){var n=R(t),r=0;if(e){var i=n.indexOf(j());i>-1&&(r=(i+e+n.length)%n.length)}if(r<n.length){var o=n[r];o.focus(),o instanceof HTMLInputElement&&o.select()}}),t("getElement",N),t("createElement",H),t("setText",function(t,e){t.textContent=e||""}),t("contains",V),t("closest",B),t("closestClass",function(t,e){return B(t,"."+e)}),t("enable",z),t("getElementRect",function(t){var e=t.getBoundingClientRect();return new Rt(e.left+pageXOffset,e.top+pageYOffset,e.width,e.height)}),t("setCss",G),t("animate",U),t("httpRequest",W),t("_updateCulture",function(){t("culture",Ht=window.wijmo.culture)}),t("getAggregate",Y),t("showPopup",K),t("hidePopup",function(t,e,n){void 0===e&&(e=!0),void 0===n&&(n=!1);var r=null;return n?r=U(function(n){t.style.opacity=(1-n).toString(),1==n&&(q(t,e),t.style.opacity="")}):q(t,e),r}),t("_updateWme",function(t,e){var n=qt._wme;if(!(n&&V(document.body,n)&&n.offsetWidth&&n.offsetHeight))if(e){var r=X(t);_e[r]||(_e[r]=!0,ut(e,{algorithmCode:"B0",publicKey:"l6/zrbWoSbcLFwEetFh38rH3ErBZE9H+Cqix3R+wTlfA1wD5B+lUcCQn+EJ60I4RGrm0x1sFjkiLWwB0jAn6BWZv0W4WbqAKriOdeoivxDp1Wmjs3qkEDhvbsjPtfvwx2BHil6o+/tDrdMJQSGs18WZm2PoQLQuL+9VhZ4FNRHUQU3Jtioke/OZEGHJOdYVwvCGalzBad6QFOiVbDBQPePpS3++GJzOxN8SN/7lyS5/IdKiy3WJRaVGkB370+HbN6hKraDfUgReLX26yxRaKC/5aWnGAJ2NnWLoGyAGRcwT9dVjo4bcAZNrrA0U9JVKQxaSskhdv2p49XzJkltXx5w=="},function(n){$(t,e,n)},function(){$(t,e,null)}),setTimeout(function(){delete _e[r]},50))}else $(t,null,null)}),t("isMobile",function(){return Ce}),t("isFirefox",At),t("isSafari",function(){return Ee}),t("isEdge",function(){return Ae}),t("isIE",xt),t("isIE9",function(){return Me}),t("getEventOptions",Mt),t("supportsFocusOptions",function(){return Te}),t("_startDrag",function(t,e){t.effectAllowed=e,At()&&t.setData("text","")});var Tt,Ot,Pt,It,Dt,Ft,Lt,kt,jt,Rt,Nt,Ht,Vt,Bt,zt,Gt,Ut,Wt,Yt,Kt,qt,Jt,Xt,Zt,$t,Qt,te,ee,ne,re,ie,oe,se,ae,ue,ce,le,he,pe,fe,de,ge,_e,me,ve,ye,be,Ce,we,Ee,Ae,xe,Me,Se,Te,Oe,Pe;return{setters:[function(t){Tt=t}],execute:function(){Ot=Tt||exports,Pt=window.wijmo&&window.wijmo.culture,window.wijmo=Ot,t("culture",Ht=Pt),It="5.20181.436",function(t){t[t.Back=8]="Back",t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.Left=37]="Left",t[t.Up=38]="Up",t[t.Right=39]="Right",t[t.Down=40]="Down",t[t.Delete=46]="Delete",t[t.F1=112]="F1",t[t.F2=113]="F2",t[t.F3=114]="F3",t[t.F4=115]="F4",t[t.F5=116]="F5",t[t.F6=117]="F6",t[t.F7=118]="F7",t[t.F8=119]="F8",t[t.F9=120]="F9",t[t.F10=121]="F10",t[t.F11=122]="F11",t[t.F12=123]="F12"}(Dt||(Dt={})),t("Key",Dt),function(t){t[t.Object=0]="Object",t[t.String=1]="String",t[t.Number=2]="Number",t[t.Boolean=3]="Boolean",t[t.Date=4]="Date",t[t.Array=5]="Array"}(Ft||(Ft={})),t("DataType",Ft),Lt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},kt=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.x=C(t),this.y=C(e)}return t.prototype.equals=function(e){return e instanceof t&&this.x==e.x&&this.y==e.y},t.prototype.clone=function(){return new t(this.x,this.y)},t}(),t("Point",kt),jt=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.width=C(t),this.height=C(e)}return t.prototype.equals=function(e){return e instanceof t&&this.width==e.width&&this.height==e.height},t.prototype.clone=function(){return new t(this.width,this.height)},t}(),t("Size",jt),Rt=function(){function t(t,e,n,r){this.left=C(t),this.top=C(e),this.width=C(n),this.height=C(r)}return Object.defineProperty(t.prototype,"right",{get:function(){return this.left+this.width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.top+this.height},enumerable:!0,configurable:!0}),t.prototype.equals=function(e){return e instanceof t&&this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height},t.prototype.clone=function(){return new t(this.left,this.top,this.width,this.height)},t.fromBoundingRect=function(e){return null!=e.left?new t(e.left,e.top,e.width,e.height):null!=e.x?new t(e.x,e.y,e.width,e.height):void y(!1,"Invalid source rectangle.")},t.union=function(e,n){var r=Math.min(e.left,n.left),i=Math.min(e.top,n.top);return new t(r,i,Math.max(e.right,n.right)-r,Math.max(e.bottom,n.bottom)-i)},t.intersection=function(e,n){var r=Math.max(e.left,n.left),i=Math.max(e.top,n.top);return new t(r,i,Math.min(e.right,n.right)-r,Math.min(e.bottom,n.bottom)-i)},t.prototype.contains=function(e){if(e instanceof kt)return e.x>=this.left&&e.x<=this.right&&e.y>=this.top&&e.y<=this.bottom;if(e instanceof t){var n=e;return n.left>=this.left&&n.right<=this.right&&n.top>=this.top&&n.bottom<=this.bottom}y(!1,"Point or Rect expected.")},t.prototype.inflate=function(e,n){return new t(this.left-e,this.top-n,this.width+2*e,this.height+2*n)},t}(),t("Rect",Rt),Nt=function(){function t(){}return t.addDays=function(e,n){return t.newDate(e.getFullYear(),e.getMonth(),e.getDate()+n)},t.addMonths=function(e,n){return t.newDate(e.getFullYear(),e.getMonth()+n,e.getDate())},t.addYears=function(e,n){return t.newDate(e.getFullYear()+n,e.getMonth(),e.getDate())},t.addHours=function(e,n){return t.newDate(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours()+n)},t.addMinutes=function(e,n){return t.newDate(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes()+n)},t.addSeconds=function(e,n){return t.newDate(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()+n)},t.sameDate=function(t,e){return l(t)&&l(e)&&t.getFullYear()==e.getFullYear()&&t.getMonth()==e.getMonth()&&t.getDate()==e.getDate()},t.sameTime=function(t,e){return l(t)&&l(e)&&t.getHours()==e.getHours()&&t.getMinutes()==e.getMinutes()&&t.getSeconds()==e.getSeconds()},t.equals=function(t,e){return l(t)&&l(e)&&t.getTime()==e.getTime()},t.fromDateTime=function(e,n){return e||n?(e||(e=n),n||(n=e),t.newDate(e.getFullYear(),e.getMonth(),e.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())):null},t.toFiscal=function(e,n){var r=Ht.Globalize.calendar;return h(r.fiscalYearOffsets)?t.addMonths(e,-r.fiscalYearOffsets[n?0:1]):e},t.fromFiscal=function(e,n){var r=Ht.Globalize.calendar;return h(r.fiscalYearOffsets)?t.addMonths(e,+r.fiscalYearOffsets[n?0:1]):e},t.newDate=function(t,e,n,r,i,o,s){if(null==t||null==e||null==n){var a=new Date;null==t&&(t=a.getFullYear()),null==e&&(e=a.getMonth()),null==n&&(n=a.getDate())}null==r&&(r=0),null==i&&(i=0),null==o&&(o=0),null==s&&(s=0);var u=new Date(t,e,n,r,i,o,s),c=u.getFullYear();return t<100&&c>=1900&&u.setFullYear(u.getFullYear()-1900),u},t.clone=function(e){return t.fromDateTime(e,e)},t}(),t("DateTime",Nt),t("culture",Ht=window.wijmo.culture||{Globalize:{numberFormat:{".":".",",":",","-":"-","+":"+","%":"%",percent:{pattern:["-n %","n %"]},currency:{decimals:2,symbol:"$",pattern:["($n)","$n"]}},calendar:{"/":"/",":":":",firstDay:0,days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],am:["AM","A"],pm:["PM","P"],eras:["A.D.","B.C."],patterns:{d:"M/d/yyyy",D:"dddd, MMMM dd, yyyy",f:"dddd, MMMM dd, yyyy h:mm tt",F:"dddd, MMMM dd, yyyy h:mm:ss tt",t:"h:mm tt",T:"h:mm:ss tt",M:"MMMM d",m:"MMMM d",Y:"MMMM, yyyy",y:"MMMM, yyyy",g:"M/d/yyyy h:mm tt",G:"M/d/yyyy h:mm:ss tt",s:'yyyy"-"MM"-"dd"T"HH":"mm":"ss',o:'yyyy"-"MM"-"dd"T"HH":"mm":"ss"."fffffffK',O:'yyyy"-"MM"-"dd"T"HH":"mm":"ss"."fffffffK',U:"dddd, MMMM dd, yyyy h:mm:ss tt"},fiscalYearOffsets:[-3,-3]}}}),Vt=function(){function t(){}return t.format=function(e,n,r,i){return o(e)?e:s(e)?(n=n||(e==Math.round(e)?"n0":"n2"),t.formatNumber(e,n,r,i)):l(e)?(n=n||"d",t.formatDate(e,n)):null!=e?e.toString():""},t.formatNumber=function(e,n,r,i){e=C(e),n=b(n);var o,s=Ht.Globalize.numberFormat,a=n?n.match(/([a-z])(\d*)(,*)(.*)/i):null,u=a?a[1].toLowerCase():"n",c=a&&a[2]?parseInt(a[2]):"c"==u?s.currency.decimals:e==Math.round(e)?0:2,l=a&&a[3]?3*a[3].length:0,h=s["."]||".",p=s[","]||",",f=s["-"]||"-";if(l&&(e/=Math.pow(10,l)),"d"==u||"x"==u){for(o=Math.round(Math.abs(e)).toString("d"==u?10:16);o.length<c;)o="0"+o;return e<0&&(o=f+o),n&&"X"==n[0]&&(o=o.toUpperCase()),o}if("p"==u&&(e=g(e=t._mul100(e),c,i)),i&&"p"!=u&&(e=g(e,c,!0)),o=t._toFixedStr("c"==u||"p"==u?Math.abs(e):e,c),(r||"g"==u)&&o.indexOf(".")>-1&&(o=(o=o.replace(/(\.[0-9]*?)0+$/g,"$1")).replace(/\.$/,"")),"."!=h&&(o=o.replace(".",h)),"-"!=f&&(o=o.replace("-",f)),p&&("n"==u||"c"==u||"p"==u)){var d=o.indexOf(h),_=/\B(?=(\d\d\d)+(?!\d))/g;o=d>-1?o.substr(0,d).replace(_,p)+o.substr(d):o.replace(_,p)}if("c"==u){var m=s.currency.pattern[e<0?0:1],v=a&&a[4]?a[4]:s.currency.symbol;"​"==v&&(v=""),o=m.replace("n",o).replace("$",v)}if("p"==u){var m=s.percent.pattern[e<0?0:1],y=s["%"]||"%";o=m.replace("n",o),"%"!=y&&(o=o.replace("%",y)),"-"!=f&&e<0&&(o=o.replace("-",f))}return o},t.formatDate=function(e,n){switch(e=A(e),n){case"r":case"R":return e.toUTCString();case"u":return e.toISOString().replace(/\.\d{3}/,"")}n=t._expandFormat(n);for(var r=t._parseDateFormat(n),i="",o=0;o<r.length;o++)i+=t._formatDatePart(e,n,r[o]);return i},t.parseInt=function(e,n){return Math.round(t.parseFloat(e,n))},t.parseFloat=function(t,e){var n=Ht.Globalize.numberFormat,r=n["-"]||"-",i=n["%"]||"%",o=t.indexOf(r)>-1||t.indexOf("(")>-1&&t.indexOf(")")>-1?-1:1,s=t.indexOf(i)>-1?.01:1,a=e?e.match(/,+/):null,u=a?3*a[0].length:0,c=0;if(!e||"x"!=e[0]&&"X"!=e[0]){var l=n["."]||".",h=new RegExp("[^\\d\\"+l+"]","g");t=t.replace(h,"").replace(l,"."),c=parseFloat(t)}else t=t.replace(/[^0-9a-f]+.*$/gi,""),c=parseInt(t,16);return c*o*s*Math.pow(10,u)},t.parseDate=function(e,n){if(!(e=b(e)))return null;if("u"==n)return new Date(e);var r;if("R"==n||"r"==n){var i=/(([0-9]+)\-([0-9]+)\-([0-9]+))?\s?(([0-9]+):([0-9]+)(:([0-9]+))?)?/,o=e.match(i);return o[1]||o[5]?(r=o[1]?new Date(parseInt(o[2]),parseInt(o[3])-1,parseInt(o[4])):new Date,o[5]&&(r.setHours(parseInt(o[6])),r.setMinutes(parseInt(o[7])),r.setSeconds(o[8]?parseInt(o[9]):0))):r=new Date(e),isNaN(r.getTime())?null:r}n=t._expandFormat(n||"d");var a,u,c,l,p,f,d=Ht.Globalize.calendar,g=t._CJK,_=new RegExp("(\\"+d["/"]+")|(\\"+d[":"]+")|(\\d+)|(["+g+"\\.]{2,})|(["+g+"]+)","gi"),m=e.match(_),v=t._parseDateFormat(n),y=0,C=-1,w=0,E=1,A=0,x=0,M=0,S=0,T=-1;if(!(m&&m.length&&v&&v.length))return null;for(var O=0;O<v.length&&m;O++){var P=O-y,I=P>-1&&P<m.length?m[P]:"",D=v[O].length;switch(v[O]){case"EEEE":case"EEE":case"EE":case"E":case"eeee":case"eee":case"ee":case"e":f=v[O];case"yyyy":case"yyy":case"yy":case"y":D>1&&I.length>D&&(m[P]=I.substr(D),I=I.substr(0,D),y++),C=parseInt(I),p=4==I.length;break;case"MMMM":case"MMM":l=!0;var F=I.toLowerCase();w=-1;for(var L=0;L<12;L++)if(0==d.months[L].toLowerCase().indexOf(F)){w=L;break}if(w>-1)break;case"MM":case"M":l=!0,D>1&&I.length>D&&(m[P]=I.substr(D),I=I.substr(0,D),y++),w=parseInt(I)-1;break;case"dddd":case"ddd":a=!0;break;case"dd":case"d":D>1&&I.length>D&&(m[P]=I.substr(D),I=I.substr(0,D),y++),E=parseInt(I),u=!0;break;case"hh":case"h":D>1&&I.length>D&&(m[P]=I.substr(D),I=I.substr(0,D),y++),A=12==(A=parseInt(I))?0:A;break;case"HH":D>1&&I.length>D&&(m[P]=I.substr(D),I=I.substr(0,D),y++),A=parseInt(I);break;case"H":A=parseInt(I);break;case"mm":case"m":D>1&&I.length>D&&(m[P]=I.substr(D),I=I.substr(0,D),y++),x=parseInt(I);break;case"ss":case"s":D>1&&I.length>D&&(m[P]=I.substr(D),I=I.substr(0,D),y++),M=parseInt(I);break;case"fffffff":case"FFFFFFF":case"ffffff":case"FFFFFF":case"fffff":case"FFFFF":case"ffff":case"FFFF":case"fff":case"FFF":case"ff":case"FF":case"f":case"F":S=parseInt(I)/Math.pow(10,D-3);break;case"tt":case"t":I=I.toUpperCase(),A<12&&d.pm.indexOf(I)>-1&&(A+=12);break;case"q":case"Q":case"u":case"U":c=!0;break;case"ggg":case"gg":case"g":T=d.eras.length>1?t._getEra(I,d):-1;break;case d["/"]:case d[":"]:if(I&&I!=v[O])return null;break;case"K":break;default:t._unquote(v[O]).trim()!=I.trim()&&y++}}if(l&&u&&(isNaN(A)&&(A=0),isNaN(x)&&(x=0),isNaN(M)&&(M=0)),w<0||w>11||isNaN(w)||E<1||E>31||isNaN(E)||A<0||A>24||isNaN(A)||x<0||x>60||isNaN(x)||M<0||M>60||isNaN(M))return null;if(f){if(!l)return null;var k=Ht.Globalize.calendar;if(h(k.fiscalYearOffsets)){var j="E"==f[0],R=w-k.fiscalYearOffsets[j?0:1];C+=R>11?-1:R<0?1:0}}return a&&!u?null:c&&!l?null:(C<0&&(C=(new Date).getFullYear()),T>-1?C=C+d.eras[T].start.getFullYear()-1:C<100&&!p&&(C+=C+2e3<(s(d.twoDigitYearMax)?d.twoDigitYearMax:2029)?2e3:1900),E>new Date(C,w+1,0).getDate()?null:(r=Nt.newDate(C,w,E,A,x+0,M,S),isNaN(r.getTime())?null:r))},t.getFirstDayOfWeek=function(){var t=Ht.Globalize.calendar.firstDay;return t||0},t.getNumberDecimalSeparator=function(){var t=Ht.Globalize.numberFormat["."];return t||"."},t._toFixedStr=function(t,e){var n=t.toString(),r=n.indexOf("."),i=e-(n.length-r)+1;return n.indexOf("e")<0&&r>-1&&i>=0?n+Array(i+1).join("0"):t.toFixed(e)},t._unquote=function(t){return t.length>1&&t[0]==t[t.length-1]&&("'"==t[0]||'"'==t[0])?t.substr(1,t.length-2):t},t._parseDateFormat=function(e){if(e in t._dateFormatParts)return t._dateFormatParts[e];var n,r,i=[];if(e)for(n=0;n>-1&&n<e.length;n++){var o=e[n];if(("'"==o||'"'==o)&&(r=e.indexOf(o,n+1))>-1)i.push(e.substring(n,r+1)),n=r;else if("\\"==o&&n<e.length-1)n++,i.push('"'+e[n]+'"');else{for(r=n+1;r<e.length&&e[r]==o;r++);i.push(e.substring(n,r)),n=r-1}}return t._dateFormatParts[e]=i,i},t._formatDatePart=function(e,n,r){var i,o=Ht.Globalize.calendar,s=0,a=0,u=0,c=r.length;switch(r){case"yyyy":case"yyy":case"yy":case"y":case"EEEE":case"EEE":case"EE":case"E":case"eeee":case"eee":case"ee":case"e":a=(i="E"==r[0]?Nt.toFiscal(e,!0):"e"==r[0]?Nt.toFiscal(e,!1):e).getFullYear(),o.eras.length>1&&n.indexOf("g")>-1&&(s=t._getEra(e,o))>-1&&(a=a-o.eras[s].start.getFullYear()+1);var l=r.length<3?a%100:3==r.length?a%1e3:a;return t._zeroPad(l,r.length);case"MMMMM":return o.monthsAbbr[e.getMonth()][0];case"MMMM":return o.months[e.getMonth()];case"MMM":return o.monthsAbbr[e.getMonth()];case"MM":case"M":return t._zeroPad(e.getMonth()+1,c);case"dddd":return o.days[e.getDay()];case"ddd":return o.daysAbbr[e.getDay()];case"dd":return t._zeroPad(e.getDate(),2);case"d":return e.getDate().toString();case"hh":case"h":return t._zeroPad(t._h12(e),c);case"HH":case"H":return t._zeroPad(e.getHours(),c);case"mm":case"m":return t._zeroPad(e.getMinutes(),c);case"ss":case"s":return t._zeroPad(e.getSeconds(),c);case"fffffff":case"FFFFFFF":case"ffffff":case"FFFFFF":case"fffff":case"FFFFF":case"ffff":case"FFFF":case"fff":case"FFF":case"ff":case"FF":case"f":case"F":return u=e.getMilliseconds()*Math.pow(10,c-3),"f"==r[0]?t._zeroPad(u,c):u.toFixed(0);case"tt":return e.getHours()<12?o.am[0]:o.pm[0];case"t":return e.getHours()<12?o.am[1]:o.pm[1];case"q":case"Q":return(Math.floor(e.getMonth()/3)+1).toString();case"u":case"U":return i=Nt.toFiscal(e,"U"==r),(Math.floor(i.getMonth()/3)+1).toString();case"ggg":case"gg":case"g":return o.eras.length>1&&(s=t._getEra(e,o))>-1?"ggg"==r?o.eras[s].name:"gg"==r?o.eras[s].name[0]:o.eras[s].symbol:o.eras[0];case":":case"/":return o[r];case"K":var h=e.toString().match(/(\+|\-)(\d{2})(\d{2})/);return h?h[1]+h[2]+h[3]:"";case"zzz":case"zz":case"z":var p=-e.getTimezoneOffset(),f=void 0;switch(r){case"zzz":f=t.format(p/60,"d2",!1,!0)+o[":"]+t.format(p%60,"d2",!1,!0);break;case"zz":f=t.format(p/60,"d2",!1,!0);break;case"z":f=t.format(p/60,"d",!1,!0)}return p>=0?"+"+f:f}return c>1&&r[0]==r[c-1]&&('"'==r[0]||"'"==r[0])?r.substr(1,c-2):r},t._getEra=function(t,e){if(l(t)){for(n=0;n<e.eras.length;n++)if(t>=e.eras[n].start)return n}else if(o(t))for(var n=0;n<e.eras.length;n++)if(e.eras[n].name&&(0==e.eras[n].name.indexOf(t)||0==e.eras[n].symbol.indexOf(t)))return n;return-1},t._expandFormat=function(t){var e=Ht.Globalize.calendar.patterns[t];return e||t},t._zeroPad=function(t,e){var n=t.toFixed(0),r=e-n.length+1;return r>0?Array(r).join("0")+n:n},t._h12=function(t){var e=Ht.Globalize.calendar,n=t.getHours();return e.am&&e.am[0]&&0==(n%=12)&&(n=12),n},t._mul100=function(t){var e=t.toString(),n=e.indexOf(".");return e.indexOf("e")>-1?100*t:(n<0?e+="00":(n+=2,e=(e=e.replace(".","")+"00").substr(0,n)+"."+e.substr(n)),parseFloat(e))},t._CJK="a-z"+"u00c0-u017fu3000-u30ffu4e00-u9faf".replace(/u/g,"\\u")+"u1100-u11ffu3130-u318fua960-ua97fuac00-ud7afud7b0-ud7ff".replace(/u/g,"\\u"),t._dateFormatParts={},t}(),t("Globalize",Vt),Bt=function(){function t(t){this.path=t}return Object.defineProperty(t.prototype,"path",{get:function(){return this._path},set:function(t){this._path=t,this._parts=t?t.split("."):[];for(var e=0;e<this._parts.length;e++){var n=this._parts[e],r=n.indexOf("[");r>-1&&(this._parts[e]=n.substr(0,r),this._parts.splice(++e,0,parseInt(n.substr(r+1))))}this._key=1==this._parts.length?this._parts[0]:null},enumerable:!0,configurable:!0}),t.prototype.getValue=function(t){if(t){if(this._key)return t[this._key];if(this._path&&this._path in t)return t[this._path];for(var e=0;e<this._parts.length&&t;e++)t=t[this._parts[e]]}return t},t.prototype.setValue=function(t,e){if(t){if(this._path in t)return void(t[this._path]=e);for(var n=0;n<this._parts.length-1;n++)if(null==(t=t[this._parts[n]]))return;t[this._parts[this._parts.length-1]]=e}},t}(),t("Binding",Bt),zt=function(){return function(t,e){this.handler=t,this.self=e}}(),Gt=function(){function t(){this._handlers=[]}return t.prototype.addHandler=function(t,e){t=x(t),this._handlers.push(new zt(t,e))},t.prototype.removeHandler=function(t,e){t=x(t);for(var n=0;n<this._handlers.length;n++){var r=this._handlers[n];if((r.handler==t||null==t)&&(r.self==e||null==e)&&(this._handlers.splice(n,1),t&&e))break}},t.prototype.removeAllHandlers=function(){this._handlers.length=0},t.prototype.raise=function(t,e){void 0===e&&(e=Ut.empty);for(var n=0;n<this._handlers.length;n++){var r=this._handlers[n];r.handler.call(r.self,t,e)}},Object.defineProperty(t.prototype,"hasHandlers",{get:function(){return this._handlers.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"handlerCount",{get:function(){return this._handlers.length},enumerable:!0,configurable:!0}),t}(),t("Event",Gt),Ut=function(){function t(){}return t.empty=new t,t}(),t("EventArgs",Ut),Wt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cancel=!1,e}return St(e,t),e}(Ut),t("CancelEventArgs",Wt),Yt=function(t){function e(e,n,r){var i=t.call(this)||this;return i._name=e,i._oldVal=n,i._newVal=r,i}return St(e,t),Object.defineProperty(e.prototype,"propertyName",{get:function(){return this._name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"oldValue",{get:function(){return this._oldVal},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"newValue",{get:function(){return this._newVal},enumerable:!0,configurable:!0}),e}(Ut),t("PropertyChangedEventArgs",Yt),Kt=function(t){function e(e,n){var r=t.call(this)||this;return r._xhr=e,r._msg=n,r}return St(e,t),Object.defineProperty(e.prototype,"request",{get:function(){return this._xhr},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){return this._msg},set:function(t){this._msg=t},enumerable:!0,configurable:!0}),e}(Wt),t("RequestErrorEventArgs",Kt),qt=function(){function t(e,n,r){void 0===n&&(n=null),void 0===r&&(r=!1);var i=this;this._pristine=!0,this._focus=!1,this._updating=0,this._fullUpdate=!1,this.gotFocus=new Gt,this.lostFocus=new Gt,this.refreshing=new Gt,this.refreshed=new Gt,this._updateWme(),y(null==t.getControl(e),"Element is already hosting a control.");var o=N(e);if(y(null!=o,"Cannot find the host element."),this._orgOuter=o.outerHTML,this._orgTag=o.tagName,this._orgAtts=o.attributes,"INPUT"!=o.tagName&&"SELECT"!=o.tagName||(o=this._replaceWithDiv(o)),this._e=o,o[t._CTRL_KEY]=this,1==r){this._szCtl=new jt(o.offsetWidth,o.offsetHeight);var s=this._handleResize.bind(this);this.addEventListener(window,"resize",s)}var a;this.addEventListener(o,"focus",function(e){a&&clearTimeout(a),a=setTimeout(function(){a=null,i._updateFocusState()},t._FOCUS_INTERVAL)},!0),this.addEventListener(o,"blur",function(e){a&&clearTimeout(a),a=setTimeout(function(){a=null,i._updateFocusState()},t._FOCUS_INTERVAL)},!0);var u=this._handleDisabled.bind(this);if(this.addEventListener(o,"mousedown",u,!0),this.addEventListener(o,"mouseup",u,!0),this.addEventListener(o,"click",u,!0),this.addEventListener(o,"dblclick",u,!0),this.addEventListener(o,"keydown",u,!0),this.addEventListener(o,"wheel",u,Mt(!0,!0)),null==t._touching&&(t._touching=!1,"ontouchstart"in window||"onpointerdown"in window)){var c=document.body,l=this._handleTouchStart,h=this._handleTouchEnd,p=Mt(!0,!0);"ontouchstart"in window?(c.addEventListener("touchstart",l,p),c.addEventListener("touchend",h,p),c.addEventListener("touchcancel",h,p),c.addEventListener("touchleave",h,p)):"onpointerdown"in window&&(c.addEventListener("pointerdown",l,p),c.addEventListener("pointerup",h,p),c.addEventListener("pointerout",h,p),c.addEventListener("pointercancel",h,p),c.addEventListener("pointerleave",h,p))}}return t.prototype.getTemplate=function(){for(var t=Object.getPrototypeOf(this);t;t=Object.getPrototypeOf(t)){var e=t.constructor.controlTemplate;if(e)return e}return null},t.prototype.applyTemplate=function(e,n,r,i){var o=this,s=this._e;e&&I(s,e);var a=null;n&&(a=H(n,s));for(var u=s.querySelectorAll("a.wj-btn"),c=0;c<u.length;c++){var l=u[c];F(l,"role","button",!0),F(l,"href","",!0),F(l,"draggable",!1,!0)}var h=s.querySelectorAll("input"),p=1==h.length?h[0]:null;if(p&&(this._copyAttributes(p,s.attributes,t._rxInputAtts),this._copyAttributes(p,this._orgAtts,t._rxInputAtts)),p&&s.id){for(var d=s;d.parentElement;)d=d.parentElement;var g=d.querySelector('label[for="'+s.id+'"]');if(g instanceof HTMLLabelElement){var _=f(s.id+"_input");p.id=_,g.htmlFor=_}}if(p){var m=document.createEvent("HTMLEvents"),v=p.value;m.initEvent("change",!0,!1),this.addEventListener(p,"input",function(){o._pristine=!1,v=p.value},!0),this.gotFocus.addHandler(function(){v=p.value}),this.lostFocus.addHandler(function(){o._pristine&&(o._pristine=!1,o._updateState()),v!=p.value&&p.dispatchEvent(m)})}if(p?s.tabIndex=-1:s.getAttribute("tabindex")||(s.tabIndex=0),this._updateState(),r)for(var y in r){var b=r[y];if(this[y]=a.querySelector('[wj-part="'+b+'"]'),null==this[y]&&a.getAttribute("wj-part")==b&&(this[y]=a),null==this[y])throw'Missing template part: "'+b+'"';if(b==i){var C="name",w=s.attributes[C];w&&w.value&&this[y].setAttribute(C,w.value),C="accesskey",(w=s.attributes[C])&&w.value&&(this[y].setAttribute(C,w.value),s.removeAttribute(C))}}return a},t.prototype.dispose=function(){for(var e=this._e.querySelectorAll(".wj-control"),n=0;n<e.length;n++){var r=t.getControl(e[n]);r&&r.dispose()}this._toInv&&(clearTimeout(this._toInv),this._toInv=null),this.removeEventListener();for(var i in this)i.length>2&&0==i.indexOf("on")&&(s=this[i[2].toLowerCase()+i.substr(3)])instanceof Gt&&s.removeAllHandlers();var o=this.collectionView;if(o instanceof se)for(var i in o){var s=o[i];s instanceof Gt&&s.removeHandler(null,this)}this._e.parentNode&&(this._e.outerHTML=this._orgOuter),this._e[t._CTRL_KEY]=null,this._e=this._orgOuter=this._orgTag=null},t.getControl=function(e){var n=N(e);return n?S(n[t._CTRL_KEY],t,!0):null},Object.defineProperty(t.prototype,"hostElement",{get:function(){return this._e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rightToLeft",{get:function(){return null==this._rtlDir&&(this._rtlDir=!!this._e&&"rtl"==getComputedStyle(this._e).direction),this._rtlDir},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this._e&&this._e.focus()},t.prototype.containsFocus=function(){var e=this._e,n=j();if(!e)return!1;for(var r=n;r;){if(r==e)return!0;r=r[t._OWNR_KEY]||r.parentElement}return!1},t.prototype.invalidate=function(e){var n=this;void 0===e&&(e=!0),this._rtlDir=null,this._fullUpdate=this._fullUpdate||e,this._toInv&&(clearTimeout(this._toInv),this._toInv=null),this.isUpdating||(this._toInv=setTimeout(function(){n.refresh(n._fullUpdate),n._toInv=null},t._REFRESH_INTERVAL))},t.prototype.refresh=function(t){var e=this;void 0===t&&(t=!0);var n=this.hostElement;n&&(this._rtlDir="rtl"==getComputedStyle(n).direction,D(n,"wj-rtl",this._rtlDir)),this.isUpdating||(this.onRefreshing(),setTimeout(function(){e.onRefreshed()})),!this.isUpdating&&this._toInv&&(clearTimeout(this._toInv),this._toInv=null,this._fullUpdate=!1,this._updateWme())},t.invalidateAll=function(e){if(e||(e=document.body),e.children)for(var n=0;n<e.children.length;n++)t.invalidateAll(e.children[n]);var r=t.getControl(e);r&&r.invalidate()},t.refreshAll=function(e){if(e||(e=document.body),e.children)for(var n=0;n<e.children.length;n++)t.refreshAll(e.children[n]);var r=t.getControl(e);r&&r.refresh()},t.disposeAll=function(e){var n=t.getControl(e);if(n)n.dispose();else if(e.children)for(var r=0;r<e.children.length;r++)t.disposeAll(e.children[r])},t.prototype.beginUpdate=function(){this._updating++},t.prototype.endUpdate=function(){this._updating--,this._updating<=0&&this.invalidate()},Object.defineProperty(t.prototype,"isUpdating",{get:function(){return this._updating>0},enumerable:!0,configurable:!0}),t.prototype.deferUpdate=function(t){try{this.beginUpdate(),t()}finally{this.endUpdate()}},Object.defineProperty(t.prototype,"isTouching",{get:function(){return t._touching},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDisabled",{get:function(){return this._e&&null!=this._e.getAttribute("disabled")},set:function(t){(t=E(t,!0))!=this.isDisabled&&z(this._e,!t)},enumerable:!0,configurable:!0}),t.prototype.initialize=function(t){t&&v(this,t)},t.prototype.addEventListener=function(t,e,n,r){void 0===r&&(r=!1),t&&(t.addEventListener(e,n,r),null==this._listeners&&(this._listeners=[]),this._listeners.push({target:t,type:e,fn:n,capture:r}))},t.prototype.removeEventListener=function(t,e,n,r){var i=0;if(this._listeners)for(var o=0;o<this._listeners.length;o++){var s=this._listeners[o];null!=t&&t!=s.target||null!=e&&e!=s.type||(null==n||n==s.fn||n&&s.fn&&n.toString()==s.fn.toString())&&(null!=r&&r!=s.capture||(s.target.removeEventListener(s.type,s.fn,s.capture),this._listeners.splice(o,1),o--,i++))}return i},t.prototype.onGotFocus=function(t){this.gotFocus.raise(this,t)},t.prototype.onLostFocus=function(t){this.lostFocus.raise(this,t)},t.prototype.onRefreshing=function(t){this.refreshing.raise(this,t)},t.prototype.onRefreshed=function(t){this.refreshed.raise(this,t)},t.prototype._getProductInfo=function(){return"B0C3,Control"},t.prototype._updateWme=function(){var e=window.wijmo._updateWme;c(e)&&e(this,t._licKey)},t.prototype._hasPendingUpdates=function(){return null!=this._toInv},t.prototype._handleResize=function(){if(this._e.parentElement){var t=new jt(this._e.offsetWidth,this._e.offsetHeight);t.equals(this._szCtl)||(this._szCtl=t,this.invalidate())}},t.prototype._updateFocusState=function(){setTimeout(function(){for(var e=Ut.empty,n=document.body.querySelectorAll(".wj-state-focused"),r=0;r<n.length;r++)(s=t.getControl(n[r]))&&s._focus&&!s.containsFocus()&&(s._focus=!1,s._updateState(),s.onLostFocus(e));var i=j();if(i)for(var o=i;o;){var s=t.getControl(o);s&&!s._focus&&s.containsFocus()&&(s._focus=!0,s._updateState(),s.onGotFocus(e)),o=o[t._OWNR_KEY]||o.parentElement}})},t.prototype._updateState=function(){var t=this.hostElement;if(t){D(t,"wj-state-focused",this._focus);var e=t.querySelector("input");if(e instanceof HTMLInputElement){D(t,"wj-state-empty",0==e.value.length),D(t,"wj-state-readonly",e.readOnly);var n=e.validationMessage;D(t,"wj-state-invalid",!this._pristine&&null!=n&&n.length>0)}}},t.prototype._handleTouchStart=function(e){null!=e.pointerType&&"touch"!=e.pointerType||(t._touching=!0)},t.prototype._handleTouchEnd=function(e){null!=e.pointerType&&"touch"!=e.pointerType||setTimeout(function(){t._touching=!1},800)},t.prototype._handleDisabled=function(t){this.isDisabled&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())},t.prototype._replaceWithDiv=function(t){var e=document.createElement("div");return t.parentElement.replaceChild(e,t),e.innerHTML=t.innerHTML,this._copyAttributes(e,t.attributes,/id|style|class/i),e},t.prototype._copyAttributes=function(t,e,n){if(t)for(var r=0;r<e.length;r++){var i=e[r].name;i.match(n)&&t.setAttribute(i,e[r].value)}},t._REFRESH_INTERVAL=10,t._FOCUS_INTERVAL=20,t._ANIM_DEF_DURATION=400,t._ANIM_DEF_STEP=35,t._CLICK_DELAY=800,t._CLICK_REPEAT=75,t._CLIPBOARD_DELAY=100,t._DRAG_SCROLL_EDGE=15,t._DRAG_SCROLL_STEP=10,t._CTRL_KEY="$WJ-CTRL",t._OWNR_KEY="$WJ-OWNR",t._SCRL_KEY="$WJ-SCRL",t._rxInputAtts=/name|tabindex|placeholder|autofocus|autocomplete|autocorrect|autocapitalize|spellcheck|readonly|minlength|maxlength|pattern|type/i,t}(),t("Control",qt),function(t){t[t.None=0]="None",t[t.Sum=1]="Sum",t[t.Cnt=2]="Cnt",t[t.Avg=3]="Avg",t[t.Max=4]="Max",t[t.Min=5]="Min",t[t.Rng=6]="Rng",t[t.Std=7]="Std",t[t.Var=8]="Var",t[t.StdPop=9]="StdPop",t[t.VarPop=10]="VarPop",t[t.CntAll=11]="CntAll",t[t.First=12]="First",t[t.Last=13]="Last"}(Jt||(Jt={})),t("Aggregate",Jt),function(t){t[t.Add=0]="Add",t[t.Remove=1]="Remove",t[t.Change=2]="Change",t[t.Reset=3]="Reset"}(Xt||(Xt={})),t("NotifyCollectionChangedAction",Xt),Zt=function(t){function e(e,n,r){void 0===e&&(e=Xt.Reset),void 0===n&&(n=null),void 0===r&&(r=-1);var i=t.call(this)||this;return i.action=e,i.item=n,i.index=r,i}return St(e,t),e.reset=new e(Xt.Reset),e}(Ut),t("NotifyCollectionChangedEventArgs",Zt),$t=function(){function t(t,e){this._bnd=new Bt(t),this._asc=e}return Object.defineProperty(t.prototype,"property",{get:function(){return this._bnd.path},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ascending",{get:function(){return this._asc},enumerable:!0,configurable:!0}),t}(),t("SortDescription",$t),Qt=function(t){function e(e){var n=t.call(this)||this;return n.newPageIndex=e,n}return St(e,t),e}(Wt),t("PageChangingEventArgs",Qt),te=function(){function t(){}return t.prototype.groupNameFromItem=function(t,e){return""},t.prototype.namesMatch=function(t,e){return t===e},t}(),t("GroupDescription",te),ee=function(t){function e(e,n){var r=t.call(this)||this;return r._bnd=new Bt(e),r._converter=n,r}return St(e,t),Object.defineProperty(e.prototype,"propertyName",{get:function(){return this._bnd.path},enumerable:!0,configurable:!0}),e.prototype.groupNameFromItem=function(t,e){return this._converter?this._converter(t,this.propertyName):this._bnd.getValue(t)},e.prototype.namesMatch=function(t,e){return t===e},e}(te),t("PropertyGroupDescription",ee),ne=function(t){function e(){var e=this;return re?e.length=0:e=t.call(this)||this,e}return St(e,t),e}(Array),t("ArrayBase",ne),re=!0;try{ne.prototype=Array.prototype,re=ne.prototype===Array.prototype}catch(t){re=!1}if(ie=window.Symbol,!re&&ie&&ie.species&&Object.defineProperty(ne,ie.species,{get:function(){return Array},enumerable:!1,configurable:!1}),oe=function(t){function e(e){var n=t.call(this)||this;if(n._updating=0,n.collectionChanged=new Gt,e){e=M(e),n._updating++;for(var r=0;r<e.length;r++)n.push(e[r]);n._updating--}return n}return St(e,t),e.prototype.push=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r=this.length,i=0;e&&i<e.length;i++)r=t.prototype.push.call(this,e[i]),this._updating||this._raiseCollectionChanged(Xt.Add,e[i],r-1);return r},e.prototype.pop=function(){var e=t.prototype.pop.call(this);return this._raiseCollectionChanged(Xt.Remove,e,this.length),e},e.prototype.splice=function(e,n,r){var i;return n&&r?(i=t.prototype.splice.call(this,e,n,r),1==n?this._raiseCollectionChanged(Xt.Change,r,e):this._raiseCollectionChanged(),i):r?(i=t.prototype.splice.call(this,e,0,r),this._raiseCollectionChanged(Xt.Add,r,e),i):(i=t.prototype.splice.call(this,e,n),1==n?this._raiseCollectionChanged(Xt.Remove,i[0],e):this._raiseCollectionChanged(),i)},e.prototype.slice=function(e,n){return t.prototype.slice.call(this,e,n)},e.prototype.indexOf=function(e,n){return t.prototype.indexOf.call(this,e,n)},e.prototype.sort=function(e){var n=t.prototype.sort.call(this,e);return this._raiseCollectionChanged(),n},e.prototype.insert=function(t,e){this.splice(t,0,e)},e.prototype.remove=function(t){var e=this.indexOf(t);return e>-1&&(this.removeAt(e),!0)},e.prototype.removeAt=function(t){this.splice(t,1)},e.prototype.setAt=function(t,e){t>this.length&&(this.length=t),this.splice(t,1,e)},e.prototype.clear=function(){0!==this.length&&(this.splice(0,this.length),this._raiseCollectionChanged())},e.prototype.beginUpdate=function(){this._updating++},e.prototype.endUpdate=function(){this._updating>0&&(this._updating--,0==this._updating&&this._raiseCollectionChanged())},Object.defineProperty(e.prototype,"isUpdating",{get:function(){return this._updating>0},enumerable:!0,configurable:!0}),e.prototype.deferUpdate=function(t){try{this.beginUpdate(),t()}finally{this.endUpdate()}},e.prototype.implementsInterface=function(t){return"INotifyCollectionChanged"==t},e.prototype.onCollectionChanged=function(t){void 0===t&&(t=Zt.reset),this.isUpdating||this.collectionChanged.raise(this,t)},e.prototype._raiseCollectionChanged=function(t,e,n){if(void 0===t&&(t=Xt.Reset),!this.isUpdating){var r=new Zt(t,e,n);this.onCollectionChanged(r)}},e}(ne),t("ObservableArray",oe),se=function(){function t(t,e){var n=this;this._idx=-1,this._srtDsc=new oe,this._grpDesc=new oe,this._newItem=null,this._edtItem=null,this._pgSz=0,this._pgIdx=0,this._updating=0,this._stableSort=!1,this._canFilter=!0,this._canGroup=!0,this._canSort=!0,this._canAddNew=!0,this._canCancelEdit=!0,this._canRemove=!0,this._canChangePage=!0,this._trackChanges=!1,this._chgAdded=new oe,this._chgRemoved=new oe,this._chgEdited=new oe,this.collectionChanged=new Gt,this.sourceCollectionChanging=new Gt,this.sourceCollectionChanged=new Gt,this.currentChanged=new Gt,this.currentChanging=new Gt,this.pageChanged=new Gt,this.pageChanging=new Gt,this._srtDsc.collectionChanged.addHandler(function(){for(var t=n._srtDsc,e=0;e<t.length;e++)y(t[e]instanceof $t,"sortDescriptions array must contain SortDescription objects.");n.canSort&&n.refresh()}),this._grpDesc.collectionChanged.addHandler(function(){for(var t=n._grpDesc,e=0;e<t.length;e++)y(t[e]instanceof te,"groupDescriptions array must contain GroupDescription objects.");n.canGroup&&n.refresh()}),this.sourceCollection=t||new oe,e&&(this.beginUpdate(),v(this,e),this.endUpdate())}return t.prototype._copy=function(t,e){if("sortDescriptions"==t){this.sortDescriptions.clear();for(var n=M(e),r=0;r<n.length;r++)o(i=n[r])&&(i=new $t(i,!0)),this.sortDescriptions.push(i);return!0}if("groupDescriptions"==t){this.groupDescriptions.clear();for(var n=M(e),r=0;r<n.length;r++){var i=n[r];o(i)&&(i=new ee(i)),this.groupDescriptions.push(i)}return!0}return!1},Object.defineProperty(t.prototype,"newItemCreator",{get:function(){return this._itemCreator},set:function(t){this._itemCreator=x(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sortConverter",{get:function(){return this._srtCvt},set:function(t){t!=this._srtCvt&&(this._srtCvt=x(t,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sortComparer",{get:function(){return this._srtCmp},set:function(t){t!=this._srtCmp&&(this._srtCmp=x(t,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"useStableSort",{get:function(){return this._stableSort},set:function(t){this._stableSort=E(t)},enumerable:!0,configurable:!0}),t.prototype.getAggregate=function(t,e,n){return Y(t,n?this._pgView:this._view,e)},Object.defineProperty(t.prototype,"trackChanges",{get:function(){return this._trackChanges},set:function(t){this._trackChanges=E(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"itemsAdded",{get:function(){return this._chgAdded},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"itemsRemoved",{get:function(){return this._chgRemoved},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"itemsEdited",{get:function(){return this._chgEdited},enumerable:!0,configurable:!0}),t.prototype.clearChanges=function(){this._chgAdded.clear(),this._chgRemoved.clear(),this._chgEdited.clear()},t.prototype.implementsInterface=function(t){switch(t){case"ICollectionView":case"IEditableCollectionView":case"IPagedCollectionView":case"INotifyCollectionChanged":return!0}return!1},Object.defineProperty(t.prototype,"getError",{get:function(){return this._getError},set:function(t){this._getError=x(t)},enumerable:!0,configurable:!0}),t.prototype.onCollectionChanged=function(t){void 0===t&&(t=Zt.reset),t.action!=Xt.Change||this._committing||this._canceling||t.item==this.currentEditItem||t.item==this.currentAddItem||this._trackItemChanged(t.item),this.collectionChanged.raise(this,t)},t.prototype._raiseCollectionChanged=function(t,e,n){void 0===t&&(t=Xt.Reset);var r=new Zt(t,e,n);this.onCollectionChanged(r)},t.prototype._notifyItemChanged=function(t){var e=new Zt(Xt.Change,t,this.items.indexOf(t));this.onCollectionChanged(e)},t.prototype.onSourceCollectionChanging=function(t){return this.sourceCollectionChanging.raise(this,t),!t.cancel},t.prototype.onSourceCollectionChanged=function(t){this.sourceCollectionChanged.raise(this,t)},Object.defineProperty(t.prototype,"canFilter",{get:function(){return this._canFilter},set:function(t){this._canFilter=E(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canGroup",{get:function(){return this._canGroup},set:function(t){this._canGroup=E(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canSort",{get:function(){return this._canSort},set:function(t){this._canSort=E(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentItem",{get:function(){return this._pgView&&this._idx>-1&&this._idx<this._pgView.length?this._pgView[this._idx]:null},set:function(t){this.moveCurrentTo(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentPosition",{get:function(){return this._idx},set:function(t){this.moveCurrentToPosition(C(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"filter",{get:function(){return this._filter},set:function(t){this._filter!=t&&(this._filter=x(t),this.canFilter&&this.refresh())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"groupDescriptions",{get:function(){return this._grpDesc},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"groups",{get:function(){return this._groups},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEmpty",{get:function(){return!this._pgView||!this._pgView.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sortDescriptions",{get:function(){return this._srtDsc},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sourceCollection",{get:function(){return this._src},set:function(t){if(t!=this._src){if(!this.onSourceCollectionChanging(new Wt))return;var e=this.currentPosition;this.commitEdit(),this.commitNew(),null!=this._ncc&&this._ncc.collectionChanged.removeHandler(this._sourceChanged),this._src=M(t,!1),this._ncc=r(this._src,"INotifyCollectionChanged"),this._ncc&&this._ncc.collectionChanged.addHandler(this._sourceChanged,this),this.clearChanges(),this.refresh(),this.moveCurrentToFirst(),this.onSourceCollectionChanged(),this.currentPosition<0&&e>-1&&this.onCurrentChanged()}},enumerable:!0,configurable:!0}),t.prototype._sourceChanged=function(t,e){this._updating<=0&&this.refresh()},t.prototype.contains=function(t){return this._pgView.indexOf(t)>-1},t.prototype.moveCurrentTo=function(t){return this.moveCurrentToPosition(this._pgView.indexOf(t))},t.prototype.moveCurrentToFirst=function(){return this.moveCurrentToPosition(0)},t.prototype.moveCurrentToLast=function(){return this.moveCurrentToPosition(this._pgView.length-1)},t.prototype.moveCurrentToPrevious=function(){return this._idx>0&&this.moveCurrentToPosition(this._idx-1)},t.prototype.moveCurrentToNext=function(){return this.moveCurrentToPosition(this._idx+1)},t.prototype.moveCurrentToPosition=function(t){if(t>=-1&&t<this._pgView.length&&t!=this._idx){var e=new Wt;if(this.onCurrentChanging(e)){var n=this._pgView[t];this._edtItem&&n!=this._edtItem&&this.commitEdit(),this._newItem&&n!=this._newItem&&this.commitNew(),this._idx=t,this.onCurrentChanged()}}return this._idx==t},t.prototype.refresh=function(){this._newItem||this._edtItem?this._pendingRefresh=!0:this._updating<=0&&(this._performRefresh(),this.onCollectionChanged())},t.prototype._performRefresh=function(){if(!(this._updating>0)){this._pendingRefresh=!1;var t=this.currentItem;this._view=this._src?this._performFilter(this._src):[],this.canSort&&this._srtDsc.length>0&&(this._view==this._src&&(this._view=this._src.slice()),this._performSort(this._view)),this._groups=this.canGroup?this._createGroups(this._view):null,this._fullGroups=this._groups,this._groups&&(this._view=this._mergeGroupItems(this._groups)),this._pgIdx=m(this._pgIdx,0,this.pageCount-1),this._pgView=this._getPageView(),this._groups&&this.pageCount>1&&(this._groups=this._createGroups(this._pgView),this._mergeGroupItems(this._groups));var e=this._pgView.indexOf(t);e<0&&(e=Math.min(this._idx,this._pgView.length-1)),this._idx=e,this._digest=this._getGroupsDigest(this.groups),this.currentItem!==t&&this.onCurrentChanged()}},t.prototype._performSort=function(t){if(this._stableSort){var e=t.map(function(t,e){return{item:t,index:e}}),n=this._compareItems();e.sort(function(t,e){var r=n(t.item,e.item);return 0==r?t.index-e.index:r});for(var r=0;r<t.length;r++)t[r]=e[r].item}else t.sort(this._compareItems())},t.prototype._compareItems=function(){var t=this._srtDsc,e=this._srtCvt,n=this._srtCmp,r=!0,i=0;return function(o,s){for(var a=0;a<t.length;a++){var u=t[a],c=u._bnd.getValue(o),l=u._bnd.getValue(s);if(e&&(c=e(u,o,c,r),l=e(u,s,l,!1),r=!1),n&&null!=(i=n(c,l)))return u.ascending?+i:-i;if(c!==c&&(c=null),l!==l&&(l=null),"string"==typeof c&&"string"==typeof l){var h=c.toLowerCase(),p=l.toLowerCase();h!=p&&(c=h,l=p)}if(null!=c&&null==l)return-1;if(null==c&&null!=l)return 1;if(0!=(i=c<l?-1:c>l?1:0))return u.ascending?+i:-i}return 0}},t.prototype._performFilter=function(t){return this.canFilter&&this._filter?t.filter(this._filter,this):t},t.prototype.onCurrentChanged=function(t){void 0===t&&(t=Ut.empty),this.currentChanged.raise(this,t)},t.prototype.onCurrentChanging=function(t){return this.currentChanging.raise(this,t),!t.cancel},Object.defineProperty(t.prototype,"items",{get:function(){return this._pgView},enumerable:!0,configurable:!0}),t.prototype.beginUpdate=function(){this._updating++},t.prototype.endUpdate=function(){this._updating--,this._updating<=0&&this.refresh()},Object.defineProperty(t.prototype,"isUpdating",{get:function(){return this._updating>0},enumerable:!0,configurable:!0}),t.prototype.deferUpdate=function(t){try{this.beginUpdate(),t()}finally{this.endUpdate()}},Object.defineProperty(t.prototype,"canAddNew",{get:function(){return this._canAddNew},set:function(t){this._canAddNew=E(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canCancelEdit",{get:function(){return this._canCancelEdit},set:function(t){this._canCancelEdit=E(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canRemove",{get:function(){return this._canRemove},set:function(t){this._canRemove=E(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentAddItem",{get:function(){return this._newItem},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentEditItem",{get:function(){return this._edtItem},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAddingNew",{get:function(){return null!=this._newItem},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEditingItem",{get:function(){return null!=this._edtItem},enumerable:!0,configurable:!0}),t.prototype.editItem=function(t){t!=this._edtItem&&this.moveCurrentTo(t)&&(this.commitEdit(),this._edtItem=t,this._edtClone={},this._extend(this._edtClone,this._edtItem))},t.prototype.commitEdit=function(){var t=this._edtItem;if(null!=t){this._committing=!0;var e=this._sameContent(t,this._edtClone),n=this._pendingRefresh;this._edtItem=null,this._edtClone=null;var r=this._pgView.indexOf(t),i=this._digest;this._performRefresh(),e||this._trackItemChanged(t),this._pgView.indexOf(t)!=r||i!=this._digest||n?this._raiseCollectionChanged():this._raiseCollectionChanged(Xt.Change,t,r),this._committing=!1}},t.prototype.cancelEdit=function(){var t=this._edtItem;if(null!=t){if(this._edtItem=null,!this.canCancelEdit)return void y(!1,"cannot cancel edits (canCancelEdit == false).");var e=this._src.indexOf(t);e>=0&&this._edtClone&&(this._extend(this._src[e],this._edtClone),this._edtClone=null,this._canceling=!0,this._raiseCollectionChanged(Xt.Change,t,e),this._canceling=!1,this._pendingRefresh&&(this._performRefresh(),this._raiseCollectionChanged()))}},t.prototype.addNew=function(){if(arguments.length>0&&y(!1,"addNew does not take any parameters, it creates the new items."),this.commitEdit(),this.commitNew(),!this.canAddNew)return y(!1,"cannot add items (canAddNew == false)."),null;var t=null,e=this.sourceCollection;if(null!=(t=this.newItemCreator?this.newItemCreator():e&&e.length?new e[0].constructor:{})){if(this._newItem=t,this._updating++,this._src.push(t),this._updating--,this._pgView!=this._src&&this._pgView.push(t),this.groups&&this.groups.length){var n=this.groups[this.groups.length-1];for(n.items.push(t);n.groups&&n.groups.length;)(n=n.groups[n.groups.length-1]).items.push(t)}this._raiseCollectionChanged(Xt.Add,t,this._pgView.length-1),this.moveCurrentTo(t)}return this._newItem},t.prototype.commitNew=function(){var t=this._newItem;if(null!=t){this._newItem=null;var e=this._pgView.indexOf(t),n=this._digest;if(this._performRefresh(),this._trackChanges){var r=this._chgEdited.indexOf(t);r>-1&&this._chgEdited.removeAt(r),this._chgAdded.indexOf(t)<0&&this._chgAdded.push(t)}this._pgView.indexOf(t)==e&&n==this._digest?this._raiseCollectionChanged(Xt.Change,t,e):this._raiseCollectionChanged()}},t.prototype.cancelNew=function(){var t=this._newItem;null!=t&&this.remove(t)},t.prototype.remove=function(t){var e=t==this._newItem;if(e&&(this._newItem=null),t==this._edtItem&&this.cancelEdit(),this.canRemove){var n=this._src.indexOf(t);if(n>-1){var r=this.currentItem;this._updating++,this._src.splice(n,1),this._updating--;var i=this._digest;if(this._performRefresh(),this._trackChanges){var o=this._chgAdded.indexOf(t);o>-1&&this._chgAdded.removeAt(o);var s=this._chgEdited.indexOf(t);s>-1&&this._chgEdited.removeAt(s),this._chgRemoved.indexOf(t)<0&&!e&&o<0&&this._chgRemoved.push(t)}var a=this.sortDescriptions.length>0,u=this.pageSize>0&&this._pgIdx>-1;a||u||i!=this._getGroupsDigest(this.groups)?this._raiseCollectionChanged():this._raiseCollectionChanged(Xt.Remove,t,n),this.currentItem!==r&&this.onCurrentChanged()}}else y(!1,"cannot remove items (canRemove == false).")},t.prototype.removeAt=function(t){t=w(t),this.remove(this._pgView[t])},t.prototype._trackItemChanged=function(t){if(this._trackChanges){var e=this.sourceCollection;if(e&&e.indexOf(t)>-1){var n=this._chgEdited.indexOf(t),r=Xt.Change;if(n<0&&this._chgAdded.indexOf(t)<0)this._chgEdited.push(t);else if(n>-1){i=new Zt(r,t,n);this._chgEdited.onCollectionChanged(i)}else if((n=this._chgAdded.indexOf(t))>-1){var i=new Zt(r,t,n);this._chgAdded.onCollectionChanged(i)}}}},t.prototype._extend=function(t,e){for(var n in e)t[n]=e[n]},t.prototype._sameContent=function(t,e){for(var n in e)if(!this._sameValue(t[n],e[n]))return!1;for(var n in t)if(!this._sameValue(t[n],e[n]))return!1;return!0},t.prototype._sameValue=function(t,e){return t===e||Nt.equals(t,e)},Object.defineProperty(t.prototype,"canChangePage",{get:function(){return this._canChangePage},set:function(t){this._canChangePage=E(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPageChanging",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"itemCount",{get:function(){return this._pgView.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageIndex",{get:function(){return this._pgIdx},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageSize",{get:function(){return this._pgSz},set:function(t){t!=this._pgSz&&(this._pgSz=w(t),this.refresh())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalItemCount",{get:function(){return this._view.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageCount",{get:function(){return this.pageSize?Math.ceil(this.totalItemCount/this.pageSize):1},enumerable:!0,configurable:!0}),t.prototype.moveToFirstPage=function(){return this.moveToPage(0)},t.prototype.moveToLastPage=function(){return this.moveToPage(this.pageCount-1)},t.prototype.moveToPreviousPage=function(){return this.moveToPage(this.pageIndex-1)},t.prototype.moveToNextPage=function(){return this.moveToPage(this.pageIndex+1)},t.prototype.moveToPage=function(t){var e=m(t,0,this.pageCount-1);if(e!=this._pgIdx){this.canChangePage||y(!1,"cannot change pages (canChangePage == false).");var n=new Qt(e);this.onPageChanging(n)&&(this._pgIdx=e,this._pgView=this._getPageView(),this._idx=0,this.groupDescriptions&&0!=this.groupDescriptions.length?this.refresh():this.onCollectionChanged(),this.onPageChanged())}return this._pgIdx==t},t.prototype.onPageChanged=function(t){void 0===t&&(t=Ut.empty),this.pageChanged.raise(this,t)},t.prototype.onPageChanging=function(t){return this.pageChanging.raise(this,t),!t.cancel},t.prototype._getFullGroup=function(t){var e=this._getGroupByPath(this._fullGroups,t.level,t._path);return null!=e&&(t=e),t},t.prototype._getGroupByPath=function(t,e,n){for(var r=0;r<t.length;r++){var i=t[r];if(i.level==e&&i._path==n)return i;if(i.level<e&&0==n.indexOf(i._path)&&null!=(i=this._getGroupByPath(i.groups,e,n)))return i}return null},t.prototype._getPageView=function(){if(this.pageSize<=0||this._pgIdx<0)return this._view;var t=this._pgSz*this._pgIdx,e=Math.min(t+this._pgSz,this._view.length);return this._view.slice(t,e)},t.prototype._createGroups=function(t){if(!this._grpDesc||!this._grpDesc.length)return null;for(var e=[],n={},r=null,o=0;o<t.length;o++)for(var s=t[o],a=e,u=this._grpDesc.length,c="",l=0;l<u;l++){var h=this._grpDesc[l],p=h.groupNameFromItem(s,l),f=l==u-1;!(r=n[c])&&i(p)&&(r={},n[c]=r);var d=this._getGroup(h,a,r,p,l,f);c+="/"+p,d._path=c,f&&d.items.push(s),a=d.groups}return e},t.prototype._getGroupsDigest=function(t){for(var e="",n=0;null!=t&&n<t.length;n++){var r=t[n];e+="{"+r.name+":"+(r.items?r.items.length:"*"),r.groups.length>0&&(e+=",",e+=this._getGroupsDigest(r.groups)),e+="}"}return e},t.prototype._mergeGroupItems=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(!r._isBottomLevel)for(var i=this._mergeGroupItems(r.groups),o=0,s=i.length;o<s;o++)r._items.push(i[o]);for(var o=0,s=r._items.length;o<s;o++)e.push(r._items[o])}return e},t.prototype._getGroup=function(t,e,n,r,o,s){var a;if(n&&i(r)){if(a=n[r])return a}else for(var u=0;u<e.length;u++)if(t.namesMatch(e[u].name,r))return e[u];var c=new ae(t,r,o,s);return e.push(c),n&&(n[r]=c),c},t}(),t("CollectionView",se),ae=function(){function t(t,e,n,r){this._gd=t,this._name=e,this._level=n,this._isBottomLevel=r,this._groups=[],this._items=[]}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"level",{get:function(){return this._level},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isBottomLevel",{get:function(){return this._isBottomLevel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){return this._items},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"groups",{get:function(){return this._groups},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"groupDescription",{get:function(){return this._gd},enumerable:!0,configurable:!0}),t.prototype.getAggregate=function(t,e,n){var i=r(n,se);return Y(t,(i?i._getFullGroup(this):this).items,e)},t}(),t("CollectionViewGroup",ae),ue=function(){function t(t){this._showAutoTipBnd=this._showAutoTip.bind(this),this._hideAutoTipBnd=this._hideAutoTip.bind(this),this._html=!0,this._gap=6,this._showAtMouse=!1,this._showDelay=500,this._hideDelay=0,this._tips=[],this.popup=new Gt,v(this,t)}return t.prototype.setTooltip=function(t,e){t=N(t),e=this._getContent(e);var n=this._indexOf(t);n>-1&&(this._detach(t),this._tips.splice(n,1)),e&&(this._attach(t),this._tips.push({element:t,content:e}))},t.prototype.getTooltip=function(t){t=N(t);for(var e=this._tips,n=0;n<e.length;n++)if(e[n].element==t)return e[n].content;return null},t.prototype.show=function(e,n,r){e=N(e),n=this._getContent(n),r||(r=Rt.fromBoundingRect(e.getBoundingClientRect()));var i=t._eTip;i||(I(i=t._eTip=document.createElement("div"),"wj-tooltip"),i.style.visibility="none"),this._setContent(n);var o=new le(n);this.onPopup(o),o.content&&!o.cancel&&(document.body.appendChild(i),this._setContent(o.content),i.style.minWidth="",K(i,r=new Rt(r.left-(i.offsetWidth-r.width)/2,r.top-this.gap,i.offsetWidth,r.height+2*this.gap),!0),document.addEventListener("mousedown",this._hideAutoTipBnd))},t.prototype.hide=function(){var e=t._eTip;e&&(k(e),e.innerHTML=""),document.removeEventListener("mousedown",this._hideAutoTipBnd)},t.prototype.dispose=function(){var t=this;this._tips.forEach(function(e){t._detach(e.element)}),this._tips.splice(0,this._tips.length)},Object.defineProperty(t.prototype,"isVisible",{get:function(){var e=t._eTip;return null!=e&&null!=e.parentElement&&e.offsetWidth>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isContentHtml",{get:function(){return this._html},set:function(t){this._html=E(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gap",{get:function(){return this._gap},set:function(t){this._gap=C(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showAtMouse",{get:function(){return this._showAtMouse},set:function(t){this._showAtMouse=E(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showDelay",{get:function(){return this._showDelay},set:function(t){this._showDelay=w(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideDelay",{get:function(){return this._hideDelay},set:function(t){this._hideDelay=w(t)},enumerable:!0,configurable:!0}),t.prototype.onPopup=function(t){return this.popup&&this.popup.raise(this,t),!t.cancel},t.prototype._indexOf=function(t){for(var e=0;e<this._tips.length;e++)if(this._tips[e].element==t)return e;return-1},t.prototype._attach=function(t){t.addEventListener("mouseenter",this._showAutoTipBnd),t.addEventListener("mouseleave",this._hideAutoTipBnd),t.addEventListener("click",this._showAutoTipBnd)},t.prototype._detach=function(t){t.removeEventListener("mouseenter",this._showAutoTipBnd),t.removeEventListener("mouseleave",this._hideAutoTipBnd),t.removeEventListener("click",this._showAutoTipBnd)},t.prototype._showAutoTip=function(t){var e=this;if(!t.defaultPrevented)if("click"!=t.type||qt._touching){var n="mouseenter"==t.type?this._showDelay:0;this._clearTimeouts(),this._toShow=setTimeout(function(){var n=e._indexOf(t.target);if(n>-1){var r=e._tips[n],i=e._showAtMouse?new Rt(t.clientX,t.clientY,0,0):null;e.show(r.element,r.content,i),e._hideDelay>0&&(e._toHide=setTimeout(function(){e.hide()},e._hideDelay))}},n)}else this._hideAutoTip()},t.prototype._hideAutoTip=function(){this._clearTimeouts(),this.hide()},t.prototype._clearTimeouts=function(){this._toShow&&(clearTimeout(this._toShow),this._toShow=null),this._toHide&&(clearTimeout(this._toHide),this._toHide=null)},t.prototype._getContent=function(t){if((t=b(t))&&"#"==t[0]){var e=N(t);e&&(t=e.innerHTML)}return t},t.prototype._setContent=function(e){var n=t._eTip;n&&(this.isContentHtml?n.innerHTML=e:n.textContent=e)},t}(),t("Tooltip",ue),ce=function(){return function(){}}(),le=function(t){function e(e){var n=t.call(this)||this;return n._content=b(e),n}return St(e,t),Object.defineProperty(e.prototype,"content",{get:function(){return this._content},set:function(t){this._content=b(t)},enumerable:!0,configurable:!0}),e}(Wt),t("TooltipEventArgs",le),he=function(){function t(t){this._r=0,this._g=0,this._b=0,this._a=1,t&&this._parse(t)}return Object.defineProperty(t.prototype,"r",{get:function(){return this._r},set:function(t){this._r=m(C(t),0,255)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"g",{get:function(){return this._g},set:function(t){this._g=m(C(t),0,255)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"b",{get:function(){return this._b},set:function(t){this._b=m(C(t),0,255)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"a",{get:function(){return this._a},set:function(t){this._a=m(C(t),0,1)},enumerable:!0,configurable:!0}),t.prototype.equals=function(e){return e instanceof t&&this.r==e.r&&this.g==e.g&&this.b==e.b&&this.a==e.a},t.prototype.toString=function(){var t=Math.round(100*this.a);return t>99?"#"+((1<<24)+(this.r<<16)+(this.g<<8)+this.b).toString(16).slice(1):"rgba("+this.r+","+this.g+","+this.b+","+t/100+")"},t.fromRgba=function(e,n,r,i){void 0===i&&(i=1);var o=new t(null);return o.r=Math.round(m(C(e),0,255)),o.g=Math.round(m(C(n),0,255)),o.b=Math.round(m(C(r),0,255)),o.a=m(C(i),0,1),o},t.fromHsb=function(e,n,r,i){void 0===i&&(i=1);var o=t._hsbToRgb(m(C(e),0,1),m(C(n),0,1),m(C(r),0,1));return t.fromRgba(o[0],o[1],o[2],i)},t.fromHsl=function(e,n,r,i){void 0===i&&(i=1);var o=t._hslToRgb(m(C(e),0,1),m(C(n),0,1),m(C(r),0,1));return t.fromRgba(o[0],o[1],o[2],i)},t.fromString=function(e){var n=new t(null);return n._parse(b(e))?n:null},t.prototype.getHsb=function(){return t._rgbToHsb(this.r,this.g,this.b)},t.prototype.getHsl=function(){return t._rgbToHsl(this.r,this.g,this.b)},t.interpolate=function(e,n,r){r=m(C(r),0,1);var i=t._rgbToHsl(e.r,e.g,e.b),o=t._rgbToHsl(n.r,n.g,n.b),s=1-r,a=e.a*s+n.a*r,u=[i[0]*s+o[0]*r,i[1]*s+o[1]*r,i[2]*s+o[2]*r],c=t._hslToRgb(u[0],u[1],u[2]);return t.fromRgba(c[0],c[1],c[2],a)},t.toOpaque=function(e,n){if(1==(e=o(e)?t.fromString(e):S(e,t)).a)return e;n=null==n?t.fromRgba(255,255,255,1):o(n)?t.fromString(n):S(n,t);var r=e.a,i=1-r;return t.fromRgba(e.r*r+n.r*i,e.g*r+n.g*i,e.b*r+n.b*i)},t.prototype._parse=function(e){if("transparent"==(e=e.toLowerCase()))return this._r=this._g=this._b=this._a=0,!0;if(e&&0!=e.indexOf("#")&&0!=e.indexOf("rgb")&&0!=e.indexOf("hsl")){var n=document.createElement("div");n.style.color=e;var r=n.style.color;r==e&&((r=window.getComputedStyle(n).color)||(document.body.appendChild(n),r=window.getComputedStyle(n).color,k(n))),e=r.toLowerCase()}if(0==e.indexOf("#"))return 4==e.length?(this.r=parseInt(e[1]+e[1],16),this.g=parseInt(e[2]+e[2],16),this.b=parseInt(e[3]+e[3],16),this.a=1,!0):7==e.length&&(this.r=parseInt(e.substr(1,2),16),this.g=parseInt(e.substr(3,2),16),this.b=parseInt(e.substr(5,2),16),this.a=1,!0);if(0==e.indexOf("rgb")){var i=e.indexOf("("),o=e.indexOf(")");if(i>-1&&o>-1&&(s=e.substr(i+1,o-(i+1)).split(",")).length>2)return this.r=parseInt(s[0]),this.g=parseInt(s[1]),this.b=parseInt(s[2]),this.a=s.length>3?parseFloat(s[3]):1,!0}if(0==e.indexOf("hsl")){var i=e.indexOf("("),o=e.indexOf(")");if(i>-1&&o>-1){var s=e.substr(i+1,o-(i+1)).split(",");if(s.length>2){var a=parseInt(s[0])/360,u=parseInt(s[1]),c=parseInt(s[2]);s[1].indexOf("%")>-1&&(u/=100),s[2].indexOf("%")>-1&&(c/=100);var l=t._hslToRgb(a,u,c);return this.r=l[0],this.g=l[1],this.b=l[2],this.a=s.length>3?parseFloat(s[3]):1,!0}}}return!1},t._hslToRgb=function(e,n,r){y(e>=0&&e<=1&&n>=0&&n<=1&&r>=0&&r<=1,"bad HSL values");var i,o,s;if(0==n)i=o=s=r;else{var a=r<.5?r*(1+n):r+n-r*n,u=2*r-a;i=t._hue2rgb(u,a,e+1/3),o=t._hue2rgb(u,a,e),s=t._hue2rgb(u,a,e-1/3)}return[Math.round(255*i),Math.round(255*o),Math.round(255*s)]},t._hue2rgb=function(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t},t._rgbToHsl=function(t,e,n){y(t>=0&&t<=255&&e>=0&&e<=255&&n>=0&&n<=255,"bad RGB values"),t/=255,e/=255,n/=255;var r,i,o=Math.max(t,e,n),s=Math.min(t,e,n),a=(o+s)/2;if(o==s)r=i=0;else{var u=o-s;switch(i=a>.5?u/(2-o-s):u/(o+s),o){case t:r=(e-n)/u+(e<n?6:0);break;case e:r=(n-t)/u+2;break;case n:r=(t-e)/u+4}r/=6}return[r,i,a]},t._rgbToHsb=function(e,n,r){y(e>=0&&e<=255&&n>=0&&n<=255&&r>=0&&r<=255,"bad RGB values");var i=t._rgbToHsl(e,n,r);return t._hslToHsb(i[0],i[1],i[2])},t._hsbToRgb=function(e,n,r){var i=t._hsbToHsl(e,n,r);return t._hslToRgb(i[0],i[1],i[2])},t._hsbToHsl=function(t,e,n){y(t>=0&&t<=1&&e>=0&&e<=1&&n>=0&&n<=1,"bad HSB values");var r=m(n*(2-e)/2,0,1),i=1-Math.abs(2*r-1),o=m(i>0?n*e/i:e,0,1);return y(!isNaN(r)&&!isNaN(o),"bad conversion to HSL"),[t,o,r]},t._hslToHsb=function(t,e,n){y(t>=0&&t<=1&&e>=0&&e<=1&&n>=0&&n<=1,"bad HSL values");var r=m(1==n?1:(2*n+e*(1-Math.abs(2*n-1)))/2,0,1),i=m(r>0?2*(r-n)/r:e,0,1);return y(!isNaN(r)&&!isNaN(i),"bad conversion to HSB"),[t,i,r]},t}(),t("Color",he),pe=function(){function t(){}return t.copy=function(e){t._copyPaste(b(e),null)},t.paste=function(e){t._copyPaste(null,x(e))},t._copyPaste=function(t,e){for(var n=j(),r=B(n,".wj-control");r&&qt.getControl(r);)r=r.parentElement;if(r=r||document.body){var i=H('<textarea class="wj-clipboard" style="position:fixed;opacity:0"/>',r);o(t)&&(i.value=t),i.select(),i.onkeydown=function(t){t.preventDefault()},setTimeout(function(){n.focus(),k(i),c(e)&&e(i.value)},qt._CLIPBOARD_DELAY)}},t}(),t("Clipboard",pe),fe=function(){function t(t){this._copyCss=!0,null!=t&&v(this,t)}return Object.defineProperty(t.prototype,"title",{get:function(){return this._title},set:function(t){this._title=b(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"copyCss",{get:function(){return this._copyCss},set:function(t){this._copyCss=E(t)},enumerable:!0,configurable:!0}),t.prototype.addCSS=function(t){this._css||(this._css=[]),this._css.push(t)},t.prototype.append=function(t){var e=this._getDocument(),n=e.body,r=!1;if(n)if(o(t))n.appendChild(H(t));else if(t instanceof Node){i=this._cloneNode(t);n.appendChild(i)}else r=!0;else if(o(t))e.write(t);else if(t instanceof HTMLElement){var i=this._cloneNode(t);e.write(i.outerHTML)}else r=!0;r&&y(!1,"child parameter should be an HTML node or an HTML string.")},t.prototype.print=function(){var t=this;this._iframe&&(this._close(),setTimeout(function(){var e=t._iframe.contentWindow,n="onafterprint"in e&&!At();n&&(e.onafterprint=function(){k(t._iframe),t._iframe=null}),document.queryCommandSupported("print")?e.document.execCommand("print",!1,null):(e.focus(),e.print()),n||(k(t._iframe),t._iframe=null)},100))},t.prototype._cloneNode=function(t){var e=t.cloneNode(!0);return t instanceof HTMLElement&&e instanceof HTMLElement&&["select","textarea"].forEach(function(n){for(var r=t.querySelectorAll(n),i=e.querySelectorAll(n),o=0;o<r.length;o++)i[o].value=r[o].value}),e},t.prototype._getDocument=function(){return this._iframe||(this._iframe=document.createElement("iframe"),I(this._iframe,"wj-printdocument"),G(this._iframe,{position:"fixed",left:1e4,top:1e4}),document.body.appendChild(this._iframe),this._iframe.contentDocument.write('<body style="position:static"/>')),this._iframe.contentDocument},t.prototype._close=function(){var t=this._getDocument();if(t.close(),t.title=null!=this.title?this.title:document.title,t.title&&t.title.trim()||(t.title=" "),this._copyCss){for(var e=document.head.querySelectorAll("link"),n=0;n<e.length;n++){var r=e[n];if(r.href.match(/\.css$/i)&&r.rel.match(/stylesheet/i)){s=W(r.href,{async:!1});this._addStyle(s.responseText)}}for(var i=document.head.querySelectorAll("STYLE"),n=0;n<i.length;n++)this._addStyle(i[n].textContent)}if(this._css)for(n=0;n<this._css.length;n++){var o=t.createElement("style"),s=W(this._css[n],{async:!1});o.textContent=s.responseText,t.head.appendChild(o)}},t.prototype._addStyle=function(t){var e=this._getDocument(),n=e.createElement("style");n.textContent=t,e.head.appendChild(n)},t}(),t("PrintDocument",fe),de="The Wijmo license in this application ",Ht.Licensing=window.wijmo.culture.Licensing||{evl:"Wijmo Evaluation Version ({version})",prd:de+"is not valid for the <b>{control}</b> control.",ver:de+"is not valid for the version in use. The license version is <b>{licVer}</b>; the product version is <b>{version}</b>.",dmn:de+"is not valid for the current domain. The license domain is <b>{licDomain}</b>; the current domain is <b>{domain}</b>.",exp:de+"has expired. The license expiration date is <b>{expDate:d}</b>.",lic:de+"is invalid.",mss:de+"is not set.",ctc:'Please <a target="_blank" href="https://www.grapecity.com/en/licensing/wijmo">create a license</a> or contact GrapeCity: <a href="mailto:us.sales@grapecity.com">us.sales@grapecity.com</a>.',hdr:"Wijmo License",cls:"CLOSE"},ge=Ht.Licensing,_e={},me=window.Uint8Array||TypedArray,ve=function(){function t(t,e,n){void 0===e&&(e=null),void 0===n&&(n="_"),this._promptChar="_",this._mskArr=[],this._full=!0,this._hbInput=this._input.bind(this),this._hbKeyDown=this._keydown.bind(this),this._hbKeyPress=this._keypress.bind(this),this._hbCompositionStart=this._compositionstart.bind(this),this._hbCompositionEnd=this._compositionend.bind(this),this.mask=b(e),this.input=t,this.promptChar=b(n,!1),this._connect(!0),this._evtInput=document.createEvent("HTMLEvents"),this._evtInput.initEvent("input",!0,!1)}return Object.defineProperty(t.prototype,"input",{get:function(){return this._tbx},set:function(t){this._connect(!1),this._tbx=t,this._connect(!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mask",{get:function(){return this._msk},set:function(t){t!=this._msk&&(this._msk=b(t,!0),this._parseMask(),this._valueChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"promptChar",{get:function(){return this._promptChar},set:function(t){t!=this._promptChar&&(this._promptChar=b(t,!1),y(1==this._promptChar.length,"promptChar must be a string with length 1."),this._valueChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maskFull",{get:function(){return this._full},enumerable:!0,configurable:!0}),t.prototype.getMaskRange=function(){return this._mskArr.length?[this._firstPos,this._lastPos]:[0,this._tbx.value.length-1]},t.prototype.getRawValue=function(){var t=this._tbx.value,e="";if(!this.mask)return t;for(var n=0;n<this._mskArr.length&&n<t.length;n++)this._mskArr[n].literal||t[n]==this._promptChar||(e+=t[n]);return e},t.prototype.refresh=function(){this._parseMask(),this._valueChanged()},t.prototype._input=function(t){var e=this;this._composing?t.stopImmediatePropagation():setTimeout(function(){e._valueChanged()})},t.prototype._keydown=function(t){if(t.keyCode==Dt.Back){var e=this._tbx.selectionStart,n=this._tbx.selectionEnd;if(e<=this._firstPos&&n==e)return t.preventDefault(),void(this._backSpace=!1)}this._backSpace=t.keyCode==Dt.Back},t.prototype._keypress=function(t){t.ctrlKey||t.metaKey||t.altKey||this._composing||!this._preventKey(t.charCode)||t.preventDefault()},t.prototype._compositionstart=function(t){this._composing=!0},t.prototype._compositionend=function(t){var e=this;this._composing&&(this._composing=!1,setTimeout(function(){e._valueChanged()&&e._tbx.dispatchEvent(e._evtInput)}))},t.prototype._preventKey=function(t){if(t&&this._mskArr.length){var e=this._tbx,n=e.selectionStart,r=String.fromCharCode(t);if(n<this._firstPos&&L(e,n=this._firstPos),n>=this._mskArr.length)return!0;var i=this._mskArr[n];if(i.literal)this._validatePosition(n);else if(i.wildCard!=r&&!this._isCharValid(i.wildCard,r))return!0}return!1},t.prototype._connect=function(t){var e=this._tbx;e&&(y(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement,"INPUT or TEXTAREA element expected."),t?(this._autoComplete=e.autocomplete,this._spellCheck=e.spellcheck,e.autocomplete="off",e.spellcheck=!1,e.addEventListener("input",this._hbInput),e.addEventListener("keydown",this._hbKeyDown,!0),e.addEventListener("keypress",this._hbKeyPress,!0),e.addEventListener("compositionstart",this._hbCompositionStart,!0),e.addEventListener("compositionend",this._hbCompositionEnd,!0),e.addEventListener("blur",this._hbCompositionEnd,!0),this._valueChanged()):(e.autocomplete=this._autoComplete,e.spellcheck=this._spellCheck,e.removeEventListener("input",this._hbInput),e.removeEventListener("keydown",this._hbKeyDown,!0),e.removeEventListener("keypress",this._hbKeyPress,!0),e.removeEventListener("compositionstart",this._hbCompositionStart,!0),e.removeEventListener("compositionend",this._hbCompositionEnd,!0),e.removeEventListener("blur",this._hbCompositionEnd,!0)))},t.prototype._valueChanged=function(){if(!this._tbx||!this._msk)return!1;var t=this._tbx,e=t.value.length<2,n=t.selectionStart,r=n>0?t.value[n-1]:"",i=t.value;t.value=this._applyMask(),e&&(n=this._firstPos+1);var o=n>0?t.value[n-1]:"";return n>0&&o==this._promptChar&&r!=this.promptChar&&n--,n==i.length&&(n=this._matchEnd),this._validatePosition(n),i!=t.value},t.prototype._applyMask=function(){this._full=!0,this._matchEnd=0;var t=this._tbx.value;if(!this._msk)return t;if(!t&&!this._tbx.required)return t;var e="",n=0,r=this._promptChar;t=this._handleVagueLiterals(t);for(var i=0;i<this._mskArr.length;i++){var o=this._mskArr[i],s=o.literal;if(s&&s==t[n]&&n++,o.wildCard){if(s=r,t){for(var a=n;a<t.length;a++)if(this._isCharValid(o.wildCard,t[a])){switch(s=t[a],o.charCase){case">":s=s.toUpperCase();break;case"<":s=s.toLowerCase()}s!=r&&(this._matchEnd=e.length+1);break}n=a+1}s==r&&(this._full=!1)}e+=s}return e},t.prototype._handleVagueLiterals=function(t){if(t.length>this._mskArr.length+1)return t;var e=t.length-this._mskArr.length;if(0!=e&&t.length>1){for(var n=-1,r=Math.max(0,this._tbx.selectionStart-e);r<this._mskArr.length;r++)if(this._mskArr[r].vague){n=r;break}if(n>-1)if(e<0){var i=Array(1-e).join(this._promptChar),o=n+e;o>-1&&(t=t.substr(0,o)+i+t.substr(o))}else{for(;n>0&&this._mskArr[n-1].literal;)n--;t=t.substr(0,n)+t.substr(n+e)}}return t},t.prototype._isCharValid=function(e,n){var r=this._promptChar;switch(e){case"0":return n>="0"&&n<="9"||n==r;case"9":return n>="0"&&n<="9"||" "==n||n==r;case"#":return n>="0"&&n<="9"||" "==n||"+"==n||"-"==n||n==r;case"L":return n>="a"&&n<="z"||n>="A"&&n<="Z"||n==r;case"l":return n>="a"&&n<="z"||n>="A"&&n<="Z"||" "==n||n==r;case"A":return n>="0"&&n<="9"||n>="a"&&n<="z"||n>="A"&&n<="Z"||n==r;case"a":return n>="0"&&n<="9"||n>="a"&&n<="z"||n>="A"&&n<="Z"||" "==n||n==r;case"９":return n>="０"&&n<="９"||n==r;case"Ｊ":case"Ｇ":return!("Ｇ"==e&&t._X_DBCS_BIG_HIRA.indexOf(n)>-1)&&(n>="ぁ"&&n<="ゖ"||n==r);case"Ｋ":case"Ｎ":return!("Ｎ"==e&&t._X_DBCS_BIG_KATA.indexOf(n)>-1)&&(n>="ァ"&&n<="ヺ"||n==r);case"Ｚ":return n<="!"||n>="ÿ"||n==r;case"H":return n>="!"&&n<="ÿ"||n==r;case"K":case"N":return!("N"==e&&t._X_SBCS_BIG_KATA.indexOf(n)>-1)&&(n>="ｦ"&&n<="ﾟ"||n==r)}return!1},t.prototype._validatePosition=function(t){var e=this._mskArr;if(this._backSpace)for(;t>0&&t<e.length&&e[t-1].literal;)t--;if(0==t||!this._backSpace)for(;t<e.length&&e[t].literal;)t++;j()==this._tbx&&L(this._tbx,t),this._backSpace=!1},t.prototype._parseMask=function(){this._mskArr=[],this._firstPos=-1,this._lastPos=-1;for(var t,e=this._msk,n="|",r=0;e&&r<e.length;r++)switch(e[r]){case"0":case"9":case"#":case"A":case"a":case"L":case"l":case"９":case"Ｊ":case"Ｇ":case"Ｋ":case"Ｎ":case"Ｚ":case"K":case"N":case"H":this._firstPos<0&&(this._firstPos=this._mskArr.length),this._lastPos=this._mskArr.length,this._mskArr.push(new ye(e[r],n));break;case".":case",":case":":case"/":case"$":switch(e[r]){case".":case",":t=Ht.Globalize.numberFormat[e[r]];break;case":":case"/":t=Ht.Globalize.calendar[e[r]];break;case"$":t=Ht.Globalize.numberFormat.currency.symbol}for(o=0;o<t.length;o++)this._mskArr.push(new ye(t[o]));break;case"<":case">":case"|":n=e[r];break;case"\\":r<e.length-1&&r++,this._mskArr.push(new ye(e[r]));break;default:this._mskArr.push(new ye(e[r]))}for(r=0;r<this._mskArr.length;r++){var i=this._mskArr[r];if(i.literal)for(var o=0;o<r;o++){var s=this._mskArr[o];if(s.wildCard&&this._isCharValid(s.wildCard,i.literal)){i.vague=!0;break}}}},t._X_DBCS_BIG_HIRA="ぁぃぅぇぉっゃゅょゎゕゖ",t._X_DBCS_BIG_KATA="ァィゥェォッャュョヮヵヶ",t._X_SBCS_BIG_KATA="ｧｨｩｪｫｬｭｮｯ",t}(),t("_MaskProvider",ve),ye=function(){return function(t,e){e?(this.wildCard=t,this.charCase=e):this.literal=t}}(),t("_MaskElement",ye),be=function(){function t(t){this._isDown=!1,this._mousedownBnd=this._mousedown.bind(this),this._mouseupBnd=this._mouseup.bind(this),this._onClickBnd=this._onClick.bind(this),this.element=t,this._connect(!0)}return Object.defineProperty(t.prototype,"element",{get:function(){return this._e},set:function(t){this._connect(!1),this._e=S(t,HTMLElement,!0),this._connect(!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=E(t)},enumerable:!0,configurable:!0}),t.prototype._connect=function(t){if(this._e){t?this._e.addEventListener("mousedown",this._mousedownBnd):this._e.removeEventListener("mousedown",this._mousedownBnd)}},t.prototype._clearTimeouts=function(){this._toRepeat&&(clearInterval(this._toRepeat),this._toRepeat=null),this._toDelay&&(clearInterval(this._toDelay),this._toDelay=null)},t.prototype._mousedown=function(e){var n=this;this._isDown&&this._mouseup(null),this._disabled||(this._isDown=!0,t._stopEvents.forEach(function(t){document.addEventListener(t,n._mouseupBnd)}),this._clearTimeouts(),this._toDelay=setTimeout(function(){n._isDown&&(n._onClick(),n._toRepeat=setTimeout(n._onClickBnd,qt._CLICK_REPEAT))},qt._CLICK_DELAY))},t.prototype._mouseup=function(e){var n=this;this._isDown&&e&&"mouseup"==e.type&&e.preventDefault(),t._stopEvents.forEach(function(t){document.removeEventListener(t,n._mouseupBnd)}),this._clearTimeouts(),this._isDown=!1},t.prototype._onClick=function(){this._clearTimeouts(),this._e&&(this._e.click(),this._isDown&&(this._toRepeat=setTimeout(this._onClickBnd,qt._CLICK_REPEAT)))},t._stopEvents=["mouseup","mouseout","keydown"],t}(),t("_ClickRepeater",be),Ce=null!=navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone/i),we=null!=navigator.userAgent.match(/Firefox\//),Ee=null!=navigator.userAgent.match(/^((?!chrome|android).)*safari/i),Ae=null!=navigator.userAgent.match(/Edge\//),xe=null!=navigator.userAgent.match(/MSIE |Trident\/|Edge\//),Me=!1,Se=!1,document.addEventListener("test",function(t){},{get passive(){return Se=!0,!0}}),Te=!1,document.createElement("div").focus({get preventScroll(){return Te=!0,!0}}),document.doctype&&navigator.appVersion.indexOf("MSIE 9")>-1&&(Me=!0,document.addEventListener("mousemove",function(t){if(1==t.which){var e=B(t.target,".wj-control");if(e&&!e.style.cursor)for(var n=t.target;n;n=n.parentNode)if(n.attributes&&n.attributes.draggable)return n.dragDrop(),!1}})),Oe="requestAnimationFrame",Pe="cancelAnimationFrame",!window[Oe]){var e=0;window[Oe]=function(t){var n=Date.now(),r=16-(n-e),i=r>0?r:0;return e=n+i,setTimeout(function(){t(e)},i)},window[Pe]=clearTimeout}if(!window.atob){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=new RegExp("[^"+n+"]");window.atob=function(t){var e,r,i,o,s=[],u=0,c=t.length;if(a.test(t)||/=/.test(t)&&(/=[^=]/.test(t)||/={3}/.test(t)))throw new Error("Invalid base64 data");for(c%4>0&&(c=(t+=Array(4-c%4+1).join("=")).length);u<c;){for(r=[],o=u;u<o+4;)r.push(n.indexOf(t.charAt(u++)));for(i=[((e=(r[0]<<18)+(r[1]<<12)+((63&r[2])<<6)+(63&r[3]))&255<<16)>>16,64===r[2]?-1:(65280&e)>>8,64===r[3]?-1:255&e],o=0;o<3;++o)(i[o]>=0||0===o)&&s.push(String.fromCharCode(i[o]))}return s.join("")},window.btoa=function(t){for(var e,r,i=[],o=0,s=t.length;o<s;)e=((r=[t.charCodeAt(o++),t.charCodeAt(o++),t.charCodeAt(o++)])[0]<<16)+((r[1]||0)<<8)+(r[2]||0),i.push(n.charAt((e&63<<18)>>18),n.charAt((258048&e)>>12),n.charAt(isNaN(r[1])?64:(4032&e)>>6),n.charAt(isNaN(r[2])?64:63&e));return i.join("")}}}}});