@progress/kendo-ui
Version:
This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.
11 lines • 18.7 kB
JavaScript
module.exports=function(e){function r(t){if(n[t])return n[t].exports;var u=n[t]={exports:{},id:t,loaded:!1};return e[t].call(u.exports,u,u.exports,r),u.loaded=!0,u.exports}var n={};return r.m=e,r.c=n,r.p="",r(0)}({0:function(e,r,n){n(1595),e.exports=n(1595)},3:function(e,r){e.exports=function(){throw Error("define cannot be used indirect")}},1590:function(e,r){e.exports=require("./runtime")},1595:function(e,r,n){var t,u,a;!function(o,define){u=[n(1590)],t=o,a="function"==typeof t?t.apply(r,u):t,!(void 0!==a&&(e.exports=a))}(function(){"use strict";function e(e){x.DEC=e,x.ARG=","==e?";":",",x.COL=","==e?"\\":",",g=","==e?G:L}function r(e){e=e.toUpperCase();for(var r=0,n=0;n<e.length;++n)r=26*r+e.charCodeAt(n)-64;return r-1}function n(e){return parseInt(e,10)-1}function t(e,t){var u,a,o,i,c,p;if("#sheet"==e.toLowerCase())return D.SHEETREF;e:{if(!(u=/^(\$)?([a-z]+)(\$)?(\d+)$/i.exec(e))){for(i=f(e,{}),c=[];;){if(p=i.next(),p instanceof $)p.rel=0;else{if(!(p instanceof A))break e;p.topLeft.rel=0,p.bottomRight.rel=0}if(c.push(p),i.eof())break;if(!i.is("op",x.ARG))break e;i.next()}return 1==c.length?c[0]:new D.UnionRef(c)}if(a=n(u[4]),o=r(u[2]),a<1048576&&o<16384)return new $(n(u[4]),r(u[2]))}if(!t)throw Error("Cannot parse reference: "+e)}function u(e,r,n,t){function u(e){return e.index=h.length,h.push(e),e}function a(e,r,n){if(m(e,r))return t.next();var u=t.peek();u?t.croak("Expected "+e+" «"+r+"» but found "+u.type+" «"+u.value+"»"):n||t.croak("Expected "+e+" «"+r+"»")}function o(e){return d(y(s()),0,e)}function i(e){return"TRUE"==e.upper||"FALSE"==e.upper?"TRUE"==e.upper?k:w:u(new J(e.value))}function c(){var e,r=t.next();for(r=r.value,a("punc","("),e=[];;){if(m("punc",")"))break;if(m("op",x.ARG))e.push({type:"null"}),t.next();else{if(e.push(o(!1)),t.eof()||m("punc",")"))break;a("op",x.ARG)}}return a("punc",")",!0),{type:"func",func:r,args:e}}function p(r){return r.hasSheet()||r.setSheet(e),u(r)}function s(){var e;return m("ref")?e=p(t.next()):m("func")?e=c():m("punc","(")?(t.next(),e=o(!0),a("punc",")",!0)):m("punc","{")?(t.next(),e=l(),a("punc","}",!0)):m("num")||m("str")||m("error")?e=t.next():m("sym")?e=i(t.next()):m("op","+")||m("op","-")?e={type:"prefix",op:t.next().value,exp:s()}:t.croak(t.peek()?m("punc","[")?"External reference not supported":"Parse error":"Incomplete expression"),v(e)}function l(){for(var e=[],r=[e],n=!0;!t.eof()&&!m("punc","}");)n?n=!1:m(null,";")?(r.push(e=[]),t.next()):a(null,x.COL),e.push(o(!1));return{type:"matrix",value:r}}function y(e){return m("punc","(")||m("ref")||m("num")||m("func")?{type:"binary",op:" ",left:e,right:o(!1)}:e}function v(e){return m("op","%")?(t.next(),v({type:"postfix",op:"%",exp:e})):e}function d(e,r,n){var u,a,o=m("op");return o&&(n||o.value!=x.ARG)&&(u=g[o.value],u>r)?(t.next(),a=d(s(),u,n),d({type:"binary",op:";"==o.value?",":o.value,left:e,right:a},r,n)):e}var m,h=[];return t=f(t,{row:r,col:n}),m=t.is,{type:"exp",ast:o(!0),refs:h,sheet:e,row:r,col:n}}function a(e,r){var n,t=u(null,0,0,e);if(!(t.ast instanceof J))throw new b("Invalid name: "+e);return t=t.ast,r instanceof I||(n=u(t.sheet,0,0,r),r=n.ast instanceof I?n.ast:/^(?:str|num|bool|error)$/.test(n.ast.type)?n.ast.value:c(n)),{name:t,value:r}}function o(e){function r(e,t,u){function a(r){var a=e.op,o=g[a]<u||!u&&","==a||"prefix"==t.type&&u==g[a]&&"-"==t.op||"binary"==t.type&&u==g[a]&&e===t.right;return n(r(),o)}switch(e.type){case"num":return"(kendo.spreadsheet.calc._separators.DEC == '.' ? "+JSON.stringify(JSON.stringify(e.value))+" : "+JSON.stringify(JSON.stringify(e.value))+".replace('.' , kendo.spreadsheet.calc._separators.DEC))";case"bool":return JSON.stringify(e.value);case"error":return JSON.stringify("#"+e.value);case"str":return JSON.stringify(JSON.stringify(e.value));case"ref":return"this.refs["+e.index+"].print(row, col, mod)";case"prefix":return a(function(){return JSON.stringify(e.op)+" + "+r(e.exp,e,g[e.op])});case"postfix":return a(function(){return r(e.exp,e,g[e.op])+" + "+JSON.stringify(e.op)});case"binary":return a(function(){var t=n(r(e.left,e,g[e.op]),e.left instanceof J&&":"==e.op),u=n(r(e.right,e,g[e.op]),e.right instanceof J&&":"==e.op);return/^[,;]/.test(e.op)?t+" + kendo.spreadsheet.calc._separators.ARG + "+u:t+" + "+JSON.stringify(e.op)+" + "+u});case"func":return JSON.stringify(e.func+"(")+" + "+(e.args.length>0?e.args.map(function(n){return r(n,e,0)}).join(" + kendo.spreadsheet.calc._separators.ARG + ' ' + "):"''")+" + ')'";case"matrix":return"'{ ' + "+e.value.map(function(n){return n.map(function(n){return r(n,e,0)}).join(" + kendo.spreadsheet.calc._separators.COL + ' ' + ")}).join(" + '; ' + ")+"+ ' }'";case"null":return"''"}throw Error("Cannot make printer for node "+e.type)}function n(e,r){return r?"'(' + "+e+" + ')'":e}return E("function(row, col, mod){return("+r(e.ast,e,0)+")}")}function i(e,r){function n(e,r){switch(e.type){case"ref":return t(e,r);case"num":case"str":case"null":case"error":case"bool":return u(e,r);case"prefix":case"postfix":return o(e,r);case"binary":return i(e,r);case"func":return s(e,r);case"lambda":return l(e,r);case"matrix":return y(e.value,r,!0)}throw Error("Cannot CPS "+e.type)}function t(e,r){return"name"==e.ref?a(e,r):u(e,r)}function u(e,r){return r(e)}function a(e,r){return{type:"func",func:",getname",args:[v(r),e]}}function o(e,r){return n({type:"func",func:"unary"+e.op,args:[e.exp]},r)}function i(e,r){return n({type:"func",func:"binary"+e.op,args:[e.left,e.right]},r)}function c(e,r,t,u){return n(e,function(e){var a=v(u),o=d("T"),i=d("E");return{type:"func",func:"if",args:[a,e,{type:"lambda",vars:[o],body:n(r||k,function(e){return{type:"call",func:{type:"var",name:o},args:[e]}})},{type:"lambda",vars:[i],body:n(t||w,function(e){return{type:"call",func:{type:"var",name:i},args:[e]}})}]}})}function p(e,r){return 0===e.length?u(k,r):n({type:"func",func:"IF",args:[e[0],{type:"func",func:"AND",args:e.slice(1)},w]},r)}function f(e,r){return 0===e.length?u(w,r):n({type:"func",func:"IF",args:[e[0],k,{type:"func",func:"OR",args:e.slice(1)}]},r)}function s(e,r){switch(e.func.toLowerCase()){case"if":return c(e.args[0],e.args[1],e.args[2],r);case"and":return p(e.args,r);case"or":return f(e.args,r);case"true":return r(k);case"false":return r(w)}return function t(r,u){return u==e.args.length?{type:"func",func:e.func,args:r}:n(e.args[u],function(e){return t(r.concat([e]),u+1)})}([v(r)],0)}function l(e,r){var t=d("K"),u=n(e.body,function(e){return{type:"call",func:{type:"var",value:t},args:[e]}});return r({type:"lambda",vars:[t].concat(e.vars),body:u})}function y(e,r,t){var u=[];return function a(o){return o==e.length?r({type:"matrix",value:u}):(t?y:n)(e[o],function(e){return u[o]=e,a(o+1)})}(0)}function v(e){var r=d("R");return{type:"lambda",vars:[r],body:e({type:"var",name:r})}}function d(e){return e||(e=""),e="_"+e,e+ ++m}var m=0;return n(e,r)}function c(e){function r(e){var t=e.type;if("num"==t)return e.value+"";if("str"==t)return JSON.stringify(e.value);if("error"==t)return"context.error("+JSON.stringify(e.value)+")";if("return"==t)return"context.resolve("+r(e.value)+")";if("func"==t)return"context.func("+JSON.stringify(e.func)+", "+r(e.args[0])+", "+n(e.args.slice(1))+")";if("call"==t)return r(e.func)+"("+e.args.map(r).join(", ")+")";if("ref"==t)return"refs["+e.index+"]";if("bool"==t)return""+e.value;if("if"==t)return"(context.bool("+r(e.co)+") ? "+r(e.th)+" : "+r(e.el)+")";if("lambda"==t)return"(function("+e.vars.join(", ")+"){ return("+r(e.body)+") })";if("var"==t)return e.name;if("matrix"==t)return n(e.value);if("null"==t)return"null";throw Error("Cannot compile expression "+t)}function n(e){return"[ "+e.map(r).join(", ")+" ]"}var t,u=o(e),a=u.call(e),c=S[a];return c?c.clone(e.sheet,e.row,e.col):(t=r(i(e.ast,function(e){return{type:"return",value:e}})),t=["function(){","var context = this, refs = context.formula.absrefs",t,"}"].join(";\n"),c=new T.Formula(e.refs,E(t),u,e.sheet,e.row,e.col),S[a]=c.clone(e.sheet,e.row,e.col),c)}function p(e){return e}function f(e,t){function u(e,r){var n=a();return null==n||null!=e&&n.type!==e||null!=r&&n.value!==r?null:n}function a(){return null==k&&(k=i()),k}function o(){if(null!=k){var e=k;return k=null,e}return i()}function i(){var r,n=e.peek();return n&&("sym"!=n.type&&"rc"!=n.type&&"num"!=n.type||(r=x(8,f)||x(6,s)||x(6,v)||x(4,d)||x(4,m)||x(2,h)||x(2,g)),r||(r=e.next())),r}function c(u,a){var o,i,c,p,f;if("rc"==u.type)return!u.rel||t.forEditor||null!=t.row&&null!=t.col||e.croak("Cannot read relative cell in RC notation"),new $(u.row,u.col,u.rel);if("num"==u.type)return u.value<=1048577?w(new $(n(u.value),a?-(1/0):+(1/0),2)):null;if(o=u.value,i=/^(\$)?([a-z]+)(\$)?(\d+)$/i.exec(o))return c=n(i[4]),p=r(i[2]),c<=1048576&&p<=16383?w(new $(n(i[4]),r(i[2]),(i[1]?0:1)|(i[3]?0:2))):null;if(f="$"==o.charAt(0),f&&(o=o.substr(1)),/^\d+$/.test(o)){if(c=n(o),c<=1048576)return w(new $(n(o),a?-(1/0):+(1/0),f?0:2))}else if(p=r(o),p<=16383)return w(new $(a?-(1/0):+(1/0),r(o),f?0:1))}
// Sheet1(a) :(b) Sheet2(c) !(d) A1(e) :(f) C3(g) not followed by paren (h)
function f(e,r,n,t,u,a,o,i){if("sym"==e.type&&"op"==r.type&&":"==r.value&&"sym"==n.type&&"punc"==t.type&&"!"==t.value&&("sym"==u.type||"rc"==u.type||"num"==u.type&&u.value==u.value|0)&&"op"==a.type&&":"==a.value&&("sym"==o.type||"rc"==o.type||"num"==o.type&&o.value==o.value|0)&&o.type==u.type&&("punc"!=i.type||"("!=i.value||o.space)){var p=c(u,!0),f=c(o,!1);if(p&&f)return b(7),E(new A(p.setSheet(e.value,!0),f.setSheet(n.value,!0)).setSheet(e.value,!0),e,o)}}
// Sheet1(a) :(b) Sheet2(c) !(d) A1(e) not followed by paren (f)
function s(e,r,n,t,u,a){var o,i;if("sym"==e.type&&"op"==r.type&&":"==r.value&&"sym"==n.type&&"punc"==t.type&&"!"==t.value&&("sym"==u.type||"rc"==u.type||"num"==u.type&&u.value==u.value|0)&&("punc"!=a.type||"("!=a.value||u.space)&&(o=c(u)))return b(5),i=o.clone(),E(new A(o.setSheet(e.value,!0),i.setSheet(n.value,!0)).setSheet(e.value,!0),e,u)}
// Sheet1(a) !(b) A1(c) :(d) C3(e) not followed by paren (f)
function v(e,r,n,t,u,a){if("sym"==e.type&&"punc"==r.type&&"!"==r.value&&("sym"==n.type||"rc"==n.type||"num"==n.type&&n.value==n.value|0)&&"op"==t.type&&":"==t.value&&("sym"==u.type||"rc"==u.type||"num"==u.type&&u.value==u.value|0)&&("punc"!=a.type||"("!=a.value||u.space)){var o=c(n,!0),i=c(u,!1);if(o&&i)return b(5),E(new A(o,i).setSheet(e.value,!0),e,u)}}
// Sheet1(a) !(b) A1(c) not followed by paren (d)
function d(e,r,n,t){if("sym"==e.type&&"punc"==r.type&&"!"==r.value&&("sym"==n.type||"rc"==n.type||"num"==n.type&&n.value==n.value|0)&&("punc"!=t.type||"("!=t.value||n.space)){b(3);var u=c(n);return u&&isFinite(u.row)||(u=new J(n.value)),E(u.setSheet(e.value,!0),e,n)}}
// A1(a) :(b) C3(c) not followed by paren (d)
function m(e,r,n,t){if(("sym"==e.type||"rc"==e.type||"num"==e.type&&e.value==e.value|0)&&"op"==r.type&&":"==r.value&&("sym"==n.type||"rc"==n.type||"num"==n.type&&n.value==n.value|0)&&("punc"!=t.type||"("!=t.value||n.space)){var u=c(e,!0),a=c(n,!1);if(u&&a)return b(3),E(new A(u,a),e,n)}}function h(e,r){if(("sym"==e.type||"rc"==e.type)&&("punc"!=r.type||"("!=r.value||e.space)){var n=c(e);if(n&&isFinite(n.row)&&isFinite(n.col))return b(1),E(n,e,e)}}function g(e,r){if("sym"==e.type&&"punc"==r.type&&"("==r.value&&!e.space)return e.type="func",b(1),e}var x,b,k,w,E;return e=l(y(e),t),x=e.ahead,b=e.skip,k=null,w=null!=t.row&&null!=t.col?function(e){return 1&e.rel&&(e.col-=t.col),2&e.rel&&(e.row-=t.row),e}:p,E=t.forEditor?function(e,r,n){return e.begin=r.begin,e.end=n.end,e}:p,{peek:a,next:o,croak:e.croak,eof:e.eof,is:u}}function s(e){return" \t\r\n ".indexOf(e)>=0}function l(e,r){function n(e){return/[0-9]/i.test(e)}function t(e){return/[a-z$_]/i.test(e)||F.isUnicodeLetter(e)}function u(e){return t(e)||n(e)||"."==e}function a(e){return e in g}function o(e){return"\\!;(){}[]".indexOf(e)>=0}function i(){var e=!1,r=R(function(r){return r==x.DEC?!e&&(e=!0,!0):n(r)});return r==x.DEC?{type:"punc",value:x.DEC}:{type:"num",value:parseFloat(r.replace(x.DEC,"."))}}function c(r,n){return{type:"sym",value:r,upper:r.toUpperCase(),space:s(e.peek()),quote:n}}function p(e,r,n){if(!e&&!r&&!n)return null;if(!e&&!n||e&&n){var t=r?parseInt(r,10):0;return e?t:t-1}}function f(){var r,n,t=e.lookingAt(/^R(\[)?(-?[0-9]+)?(\])?C(\[)?(-?[0-9]+)?(\])?/i);return t&&(r=p(t[1],t[2],t[3]),n=p(t[4],t[5],t[6]),null!=r&&null!=n)?(e.skip(t),{type:"rc",row:r,col:n,rel:(t[4]||!(t[4]||t[5]||t[6])?1:0)|(t[1]||!(t[1]||t[2]||t[3])?2:0)}):c(R(u))}function l(){return e.next(),{type:"str",value:e.readEscaped('"')}}function y(){return e.next(),c(e.readEscaped("'"),!0)}function v(){return{type:"op",value:R(function(e,r){return r+e in g})}}function d(){return{type:"punc",value:e.next()}}function m(){if(e.eof())return null;var u,c=e.peek();return'"'==c?l():"'"==c?y():n(c)||c==x.DEC?i():t(c)?f():a(c)?v():o(c)?d():(u=e.lookingAt(/^#([a-z\/]+)[?!]?/i))?(e.skip(u),{type:"error",value:u[1]}):(r.forEditor||e.croak("Can't handle character with code: "+c.charCodeAt(0)),{type:"error",value:e.next()})}function h(){for(var n,t;S.length<=O;)R(s),n=e.pos(),t=m(),r.forEditor&&t&&(t.begin=n,t.end=e.pos()),S.push(t);return S[O]}function b(){var e=h();return e&&O++,e}function k(e,r){for(var n=O,t=[];e-- >0;)t.push(b()||C);return O=n,r.apply(t,t)}function w(e){O+=e}function E(){return null==h()}var S=[],O=0,R=e.readWhile;return{next:b,peek:h,eof:E,croak:e.croak,ahead:k,skip:w}}function y(e){function r(){return s}function n(){var r=e.charAt(s++);return"\n"==r?(l++,y=0):y++,r}function t(){return e.charAt(s)}function u(){return""===t()}function a(r){throw new b(r+" (input: "+e+")",s)}function o(r){if("string"==typeof r)e.substr(s,r.length)!=r&&a("Expected "+r),i(r.length);else if(r instanceof RegExp){var n=r.exec(e.substr(s));if(n)return i(n[0].length),n}else i(r[0].length)}function i(e){for(;e-- >0;)n()}function c(e){for(var r,t=!1,a="";!u();)if(r=n(),t)a+=r,t=!1;else if("\\"==r)t=!0;else{if(r==e)break;a+=r}return a}function p(e){for(var r="";!u()&&e(t(),r);)r+=n();return r}function f(r){return r.exec(e.substr(s))}var s=0,l=1,y=0;return{next:n,peek:t,eof:u,croak:a,readWhile:p,readEscaped:c,lookingAt:f,skip:o,forward:i,pos:r}}function v(e,r,n){function t(){var t=e.next();return"sym"==t.type?"TRUE"==t.upper?(t.type="bool",t.value=!0):"FALSE"==t.upper&&(t.type="bool",t.value=!1):"ref"==t.type&&(t={type:"ref",ref:null!=r&&null!=n?t.absolute(r,n):t,begin:t.begin,end:t.end}),t}var u,a=[];for(e=f(e,{forEditor:!0,row:r,col:n});!e.eof();)a.push(t());return u=a[0],"op"==u.type&&"="==u.value&&(u.type="startexp"),a}function d(e,r,n){var t,u;for(r=r||0,n=n||0,e=f(e,{row:r,col:n}),t=[];!e.eof();){if(u=e.next(),"ref"!=u.type)throw new b("Expecting a reference but got: "+JSON.stringify(u));t.push(u.absolute(r,n))}return t}function m(e,r){var n=e+r,t=N[n];return t||(t="^(\\d+(COM\\d{3})*(DOT\\d+)?)",t=t.replace(/DOT/g,"\\"+r).replace(/COM/g,"\\"+e),t=RegExp(t),N[n]=t),t}function h(e,r){for(var n="";r-- >0;)n+=e;return n}var g,x,b,k,w,E,S,C,O,R,N,F=kendo.util,D=kendo.spreadsheet,I=D.Ref,A=D.RangeRef,$=D.CellRef,J=D.NameRef,j=D.calc,T=j.runtime,L=Object.create(null),G=Object.create(null);!function(e){e.forEach(function(r,n){r.forEach(function(r){L[r]=e.length-n,G[","==r?";":r]=e.length-n})})}([[":"],[" "],[","],["%"],["^"],["*","/"],["+","-"],["&"],["=","<",">","<=",">=","<>"]]),g=L,x={DEC:".",ARG:",",COL:","},j.withDecimalSeparator=function(r,n){if(x.DEC==r)return n();var t=x.DEC;e(r);try{return n()}finally{e(t)}},j._separators=x,b=kendo.Class.extend({init:function(e,r){this.message=e,this.pos=r},toString:function(){return this.message}}),k={type:"bool",value:!0},w={type:"bool",value:!1},E=function(e){return function(r){var n=e[r];return n||(n=e[r]=Function("'use strict';return("+r+")")()),n}}(Object.create(null)),S=Object.create(null),C={type:"eof"},O=[],R=j.registerFormatParser=function(e){O.push(e)},j.parse=function(e,r,n,t,a){var o,i,c,p,f;if(t instanceof Date)return{type:"date",value:T.dateToSerial(t)};if("number"==typeof t)return{type:"number",value:t};if("boolean"==typeof t)return{type:"boolean",value:t};if(t+="",/^'/.test(t))return{type:"string",value:t.substr(1)};if(/^-?[0-9]+%$/.test(t)&&(o=t.substr(0,t.length-1),i=parseFloat(o),!isNaN(i)&&i==o))return{type:"percent",value:i/100};if(/^=/.test(t))return t=t.substr(1),/\S/.test(t)?u(e,r,n,t):{type:"string",value:"="+t};for(c=0;c<O.length;++c)if(p=O[c](t))return p;return"true"==t.toLowerCase()?{type:"boolean",value:!0}:"false"==t.toLowerCase()?{type:"boolean",value:!1}:(f=T.parseDate(t,a))?{type:"date",value:T.dateToSerial(f)}:(i=parseFloat(t),!isNaN(i)&&t.length>0&&i==t?(a=null,i!=Math.floor(i)&&(a="0."+(i+"").split(".")[1].replace(/\d/g,"0")),{type:"number",value:i,format:a}):{type:"string",value:t})},j.parseNameDefinition=a,j.parseFormula=u,j.parseReference=t,j.compile=c,j.parseSqref=d,j.InputStream=y,j.ParseError=b,j.tokenize=v,R(function(e){var r,n,t,u,a,o,i,c,p,f,s,l=0,y="";if(r=/^(\d+)([-\/.])(\d+)\2(\d{2}(?:\d{2})?)(\s*)/.exec(e)){if(n=parseInt(r[1],10),t=r[2],u=parseInt(r[3],10),a=parseInt(r[4],10),a<30?a+=2e3:a<100&&(a+=1900),o=!0,n>12&&(i=n,n=u,u=i,o=!1),!T.validDate(a,n,u))return null;l=T.packDate(a,n-1,u),l<0&&l--,y=o?["mm","dd","yyyy"].join(t):["dd","mm","yyyy"].join(t),y+=r[5],e=e.substr(r[0].length)}return(r=/^(\d+):(\d+)$/.exec(e))?(c=parseInt(r[1],10),p=parseInt(r[2],10),{type:"date",format:y+"hh:mm",value:l+T.packTime(c,p,0,0)}):(r=/^(\d+):(\d+)(\.\d+)$/.exec(e))?(p=parseInt(r[1],10),f=parseInt(r[2],10),s=1e3*parseFloat(r[3]),{type:"date",format:y+"mm:ss.00",value:l+T.packTime(0,p,f,s)}):(r=/^(\d+):(\d+):(\d+)$/.exec(e))?(c=parseInt(r[1],10),p=parseInt(r[2],10),f=parseInt(r[3],10),{type:"date",format:y+"hh:mm:ss",value:l+T.packTime(c,p,f,0)}):(r=/^(\d+):(\d+):(\d+)(\.\d+)$/.exec(e))?(c=parseInt(r[1],10),p=parseInt(r[2],10),f=parseInt(r[3],10),s=1e3*parseFloat(r[4]),{type:"date",format:y+"hh:mm:ss.00",value:l+T.packTime(c,p,f,s)}):void 0}),R(function(e){var r,n,t,u=kendo.culture(),a=u.numberFormat[","],o=u.numberFormat["."],i=u.numberFormat.currency.symbol,c=m(a,o),p=RegExp("^\\s*\\"+i+"\\s*"),f=1,s="",l="",v=!1,d=!1;if(e=y(e.replace(/^\s+|\s+$/g,"")),e.skip(/^-\s*/)&&(f=-1),(r=e.skip(p))&&(v=!0,s+='"'+r[0]+'"'),e.skip(/^-\s*/)){if(f<0)return null;f=-1}if(!(n=e.skip(c)))return null;if(s+="0",r=e.skip(p)){if(v)return null;v=!0,l='"'+r[0]+'"'}return!v&&(r=e.skip(/^\s*%\s*/))&&(d=!0,l=r[0]),e.eof()?((n[2]||v)&&(s=s.replace("0","#"),s+=",0"),n[3]&&(s+="."+h("0",n[3].length-1)),t=n[0].replace(RegExp("\\"+a,"g"),"").replace(RegExp("\\"+o,"g"),"."),t=parseFloat(t),d&&(t/=100),s+=l,v&&(s+=";-"+s),{type:"number",currency:v,format:s,value:f*t}):null}),R(function(e){var r;if(r=/^([0-9]*)\.([0-9]+)(\s*%)$/.exec(e))return{type:"number",value:parseFloat(e)/100,format:"0."+h("0",r[2].length)+r[3]}}),N={}},n(3))}});