astroport/doc/Turning the database inside.../forms2.js

7 lines
169 KiB
JavaScript
Raw Normal View History

/*! forms2 2019-12-04 See forms2.js for license info */
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){(function(a){!function(d){function e(a){throw RangeError(H[a])}function f(a,b){for(var c=a.length;c--;)a[c]=b(a[c]);return a}function g(a,b){return f(a.split(G),b).join(".")}function h(a){for(var b,c,d=[],e=0,f=a.length;f>e;)b=a.charCodeAt(e++),b>=55296&&56319>=b&&f>e?(c=a.charCodeAt(e++),56320==(64512&c)?d.push(((1023&b)<<10)+(1023&c)+65536):(d.push(b),e--)):d.push(b);return d}function i(a){return f(a,function(a){var b="";return a>65535&&(a-=65536,b+=K(a>>>10&1023|55296),a=56320|1023&a),b+=K(a)}).join("")}function j(a){return 10>a-48?a-22:26>a-65?a-65:26>a-97?a-97:w}function k(a,b){return a+22+75*(26>a)-((0!=b)<<5)}function l(a,b,c){var d=0;for(a=c?J(a/A):a>>1,a+=J(a/b);a>I*y>>1;d+=w)a=J(a/I);return J(d+(I+1)*a/(a+z))}function m(a){var b,c,d,f,g,h,k,m,n,o,p=[],q=a.length,r=0,s=C,t=B;for(c=a.lastIndexOf(D),0>c&&(c=0),d=0;c>d;++d)a.charCodeAt(d)>=128&&e("not-basic"),p.push(a.charCodeAt(d));for(f=c>0?c+1:0;q>f;){for(g=r,h=1,k=w;f>=q&&e("invalid-input"),m=j(a.charCodeAt(f++)),(m>=w||m>J((v-r)/h))&&e("overflow"),r+=m*h,n=t>=k?x:k>=t+y?y:k-t,!(n>m);k+=w)o=w-n,h>J(v/o)&&e("overflow"),h*=o;b=p.length+1,t=l(r-g,b,0==g),J(r/b)>v-s&&e("overflow"),s+=J(r/b),r%=b,p.splice(r++,0,s)}return i(p)}function n(a){var b,c,d,f,g,i,j,m,n,o,p,q,r,s,t,u=[];for(a=h(a),q=a.length,b=C,c=0,g=B,i=0;q>i;++i)p=a[i],128>p&&u.push(K(p));for(d=f=u.length,f&&u.push(D);q>d;){for(j=v,i=0;q>i;++i)p=a[i],p>=b&&j>p&&(j=p);for(r=d+1,j-b>J((v-c)/r)&&e("overflow"),c+=(j-b)*r,b=j,i=0;q>i;++i)if(p=a[i],b>p&&++c>v&&e("overflow"),p==b){for(m=c,n=w;o=g>=n?x:n>=g+y?y:n-g,!(o>m);n+=w)t=m-o,s=w-o,u.push(K(k(o+t%s,0))),m=J(t/s);u.push(K(k(m,0))),g=l(c,r,d==f),c=0,++d}++c,++b}return u.join("")}function o(a){return g(a,function(a){return E.test(a)?m(a.slice(4).toLowerCase()):a})}function p(a){return g(a,function(a){return F.test(a)?"xn--"+n(a):a})}var q="object"==typeof c&&c,r="object"==typeof b&&b&&b.exports==q&&b,s="object"==typeof a&&a;(s.global===s||s.window===s)&&(d=s);var t,u,v=2147483647,w=36,x=1,y=26,z=38,A=700,B=72,C=128,D="-",E=/^xn--/,F=/[^ -~]/,G=/\x2E|\u3002|\uFF0E|\uFF61/g,H={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},I=w-x,J=Math.floor,K=String.fromCharCode;if(t={version:"1.2.4",ucs2:{decode:h,encode:i},decode:m,encode:n,toASCII:p,toUnicode:o},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return t});else if(q&&!q.nodeType)if(r)r.exports=t;else for(u in t)t.hasOwnProperty(u)&&(q[u]=t[u]);else d.punycode=t}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(a,b,c){var d=function(a,b,c){c=c||{};var d=c.encode||h,e=[a+"="+d(b)];return c.maxAge&&e.push("Max-Age="+c.maxAge),c.domain&&e.push("Domain="+c.domain),c.path&&e.push("Path="+c.path),c.expires&&e.push("Expires="+c.expires.toUTCString()),c.httpOnly&&e.push("HttpOnly"),c.secure&&e.push("Secure"),e.join("; ")},e=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,f=function(a){return a.trim?a.trim():a.replace(e,"")},g=function(a,b){b=b||{};for(var c={},d=a.split(/[;,] */),e=b.decode||i,g=d.length,h=0;g>h;h++){var j=d[h],k=j.indexOf("=");if(!(0>k)){var l=f(j.substr(0,k)),m=f(j.substr(++k,j.length));if('"'==m[0]&&(m=m.slice(1,-1)),void 0==c[l])try{c[l]=e(m)}catch(n){c[l]=m}}}return c},h=encodeURIComponent,i=decodeURIComponent;b.exports.serialize=d,b.exports.parse=g},{}],3:[function(a,b,c){function d(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function e(a){return"function"==typeof a}function f(a){return
elem:f.formatStandardField(o,a,b),required:a.IsRequired,validator:function(){return i(c,m,n)},validatorElem:c,onChange:function(a){c.on("change",a)}}}},{"../jquery.js":31,"../modernizr.js":34,"./fieldHelpers.js":15}],23:[function(a,b,c){var d=a("../jquery.js"),e=(d.build,a("./fieldHelpers.js")),f=/^([0-9()+. \t-])+(\s?(x|ext|extension)\s?([0-9()])+)?$/,g={};b.exports=g,g.fieldType="phone";var h=function(a){var b=a.val()||"";return b?b.match(f):!0};g.newField=function(a,b){var c=e.renderInput("tel",a,b);return{name:a.Name,elem:e.formatStandardField(c,a,b),val:d.proxy(c.val,c),required:a.IsRequired,validator:function(){return h(c)},validatorElem:c,onChange:function(a){c.on("change",a)}}}},{"../jquery.js":31,"./fieldHelpers.js":15}],24:[function(a,b,c){var d=a("../jquery.js"),e=(d.build,a("./fieldHelpers.js")),f={};b.exports=f,f.fieldType="string",f.newField=function(a,b){var c=a.Maxlength||255,d=e.renderInput("text",a,b);return a.FieldMask&&d.addClass("mktoInputMask").data("mktoInputMask",a.FieldMask),{name:a.Name,elem:e.formatStandardField(d,a,b),val:function(a){return 0===arguments.length?d.val():(a&&a.length>c&&(a=a.substring(0,c)),d.val(a))},required:a.IsRequired,validatorElem:d,onChange:function(a){d.on("change",a)}}}},{"../jquery.js":31,"./fieldHelpers.js":15}],25:[function(a,b,c){var d=a("../jquery.js"),e=(d.build,a("./fieldHelpers.js")),f={};b.exports=f,f.fieldType="url";var g=/^[a-zA-z0-9\.\-_~:\/\?#\[\]@!$&\'\(\)\*\+,;=%]*$/,h=function(a){if(!a)return!0;var b=a.indexOf("://");return 1>b?!1:a.match(g)};f.newField=function(a,b){var c=e.renderInput("url",a,b);return{name:a.Name,elem:e.formatStandardField(c,a,b),val:d.proxy(c.val,c),required:a.IsRequired,validatorElem:c,validator:h,onChange:function(a){c.on("change",a)}}}},{"../jquery.js":31,"./fieldHelpers.js":15}],26:[function(a,b,c){var d=a("../jquery.js"),e=d.build,f=a("./fieldHelpers.js"),g=function(a,b){return function(c){return 0===arguments.length?a.val():(b&&c&&!d.isArray(c)&&(c=f.splitSemis(c)),a.val(c))}},h={};b.exports=h,h.fieldType="picklist",h.newField=function(a,b){var c=e("select.mktoField",{id:a.Name,name:a.Name,title:a.Description},[d.map(a.PicklistValues||[],function(a,b){return!a.isDefault||a.selected?e("option",{value:a.value},a.label||a.name):void 0})]);return a.IsMultiselect&&(c.attr("multiple","multiple"),c.attr("size",a.VisibleRows||5)),{name:a.Name,elem:f.formatStandardField(c,a,b),val:g(c,a.IsMultiselect),required:a.IsRequired,validatorElem:c,onChange:function(a){c.on("change",a)}}}},{"../jquery.js":31,"./fieldHelpers.js":15}],27:[function(a,b,c){var d=a("../jquery.js"),e=d.build,f=a("./fieldHelpers.js"),g={};b.exports=g,g.fieldType="textarea",g.newField=function(a,b){var c=a.Maxlength||2e3,d=e("textarea.mktoField",{id:a.Name,name:a.Name,placeholder:a.PlaceholderText,rows:Math.max(2,a.VisibleRows||2),title:a.Description});try{d.attr("maxlength",c)}catch(g){d.get(0).setAttribute("maxlength",""+c)}return{name:a.Name,elem:f.formatStandardField(d,a,b),val:function(a){return 0===arguments.length?d.val():(a&&a.length>c&&(a=a.substring(0,c)),d.val(a))},required:a.IsRequired,validatorElem:d,onChange:function(a){d.on("change",a)}}}},{"../jquery.js":31,"./fieldHelpers.js":15}],28:[function(a,b,c){var d=a("./jquery.js"),e=d.build,f=a("./validation.js"),g=a("./measure.js"),h=a("./fields/fieldhelpers.js"),i=h.cap,j=h.isSet,k=h.first,l=a("querystring"),m=a("url"),n=a("cookie"),o=a("./cookiehelper.js"),p=a("./tokenTemplate.js"),q=a("./changeManager.js"),r=a("./urlhelper.js"),s=a("./prefillcoercer.js"),t=a("./iframeproxy.js"),u=a("./safelog.js"),v=[a("./fields/inputRadio.js"),a("./fields/inputDate.js"),a("./fields/inputEmail.js"),a("./fields/inputCheckbox.js"),a("./fields/select.js"),a("./fields/inputRange.js"),a("./fields/inputText.js"),a("./fields/inputUrl.js"),a("./fields/inputTel.js"),a("./fields/inputNumber.js"),a("./fields/textarea.js"),a("./fields/currency.js")],w={};d.each(v,function(a,b){w[b.fieldType]=b}),w["int"]=w.number,w["double"]=w.number,w.single_checkbox=w.checkbox;var x=(a("./comparators.js"),navigator.userAgent.match(/msie ([6789])/i)),
d.parentNode&&(c&&na.contains(d.ownerDocument,d)&&p(o(d,"script")),d.parentNode.removeChild(d));return a}function D(a,b){var c=na(b.createElement(a)).appendTo(b.body),d=na.css(c[0],"display");return c.detach(),d}function E(a){var b=da,c=jb[a];return c||(c=D(a,b),"none"!==c&&c||(ib=(ib||na("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=(ib[0].contentWindow||ib[0].contentDocument).document,b.write(),b.close(),c=D(a,b),ib.detach()),jb[a]=c),c}function F(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}function G(a){if(a in yb)return a;for(var b=a.charAt(0).toUpperCase()+a.slice(1),c=xb.length;c--;)if(a=xb[c]+b,a in yb)return a}function H(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=na._data(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&Ma(d)&&(f[g]=na._data(d,"olddisplay",E(d.nodeName)))):(e=Ma(d),(c&&"none"!==c||!e)&&na._data(d,"olddisplay",e?c:na.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}function I(a,b,c){var d=ub.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function J(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=na.css(a,c+La[f],!0,e)),d?("content"===c&&(g-=na.css(a,"padding"+La[f],!0,e)),"margin"!==c&&(g-=na.css(a,"border"+La[f]+"Width",!0,e))):(g+=na.css(a,"padding"+La[f],!0,e),"padding"!==c&&(g+=na.css(a,"border"+La[f]+"Width",!0,e)));return g}function K(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=ob(a),g=la.boxSizing&&"border-box"===na.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=pb(a,b,f),(0>e||null==e)&&(e=a.style[b]),lb.test(e))return e;d=g&&(la.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+J(a,b,c||(g?"border":"content"),d,f)+"px"}function L(a,b,c,d,e){return new L.prototype.init(a,b,c,d,e)}function M(){return a.setTimeout(function(){zb=void 0}),zb=na.now()}function N(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b)c=La[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function O(a,b,c){for(var d,e=(R.tweeners[b]||[]).concat(R.tweeners["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function P(a,b,c){var d,e,f,g,h,i,j,k,l=this,m={},n=a.style,o=a.nodeType&&Ma(a),p=na._data(a,"fxshow");c.queue||(h=na._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,l.always(function(){l.always(function(){h.unqueued--,na.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[n.overflow,n.overflowX,n.overflowY],j=na.css(a,"display"),k="none"===j?na._data(a,"olddisplay")||E(a.nodeName):j,"inline"===k&&"none"===na.css(a,"float")&&(la.inlineBlockNeedsLayout&&"inline"!==E(a.nodeName)?n.zoom=1:n.display="inline-block")),c.overflow&&(n.overflow="hidden",la.shrinkWrapBlocks()||l.always(function(){n.overflow=c.overflow[0],n.overflowX=c.overflow[1],n.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],Bb.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(o?"hide":"show")){if("show"!==e||!p||void 0===p[d])continue;o=!0}m[d]=p&&p[d]||na.style(a,d)}else j=void 0;if(na.isEmptyObject(m))"inline"===("none"===j?E(a.nodeName):j)&&(n.display=j);else{p?"hidden"in p&&(o=p.hidden):p=na._data(a,"fxshow",{}),f&&(p.hidden=!o),o?na(a).show():l.done(function(){na(a).hide()}),l.done(function(){var b;na._removeData(a,"fxshow");for(b in m)na.style(a,b,m[b])});for(d in m)g=O(o?p[d]:0,d,l),d in p||(p[d]=g.start,o&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function Q(a,b){var c,d,e,f,g;for(c in a)if(d=na.camelCase(c),e=b[d],f=a[c],na.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=na.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function R(a,b,c){var d,e,f=0,g=R.prefilters.length,h=na.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=zb||M(),c=Mat
this.context=a.context),na.makeArray(a,this))};Aa.prototype=na.fn,ya=na(da);var Ba=/^(?:parents|prev(?:Until|All))/,Ca={children:!0,contents:!0,next:!0,prev:!0};na.fn.extend({has:function(a){var b,c=na(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(na.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=va.test(a)||"string"!=typeof a?na(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&na.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?na.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?na.inArray(this[0],na(a)):na.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(na.uniqueSort(na.merge(this.get(),na(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}}),na.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return ta(a,"parentNode")},parentsUntil:function(a,b,c){return ta(a,"parentNode",c)},next:function(a){return e(a,"nextSibling")},prev:function(a){return e(a,"previousSibling")},nextAll:function(a){return ta(a,"nextSibling")},prevAll:function(a){return ta(a,"previousSibling")},nextUntil:function(a,b,c){return ta(a,"nextSibling",c)},prevUntil:function(a,b,c){return ta(a,"previousSibling",c)},siblings:function(a){return ua((a.parentNode||{}).firstChild,a)},children:function(a){return ua(a.firstChild)},contents:function(a){return na.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:na.merge([],a.childNodes)}},function(a,b){na.fn[a]=function(c,d){var e=na.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=na.filter(d,e)),this.length>1&&(Ca[a]||(e=na.uniqueSort(e)),Ba.test(a)&&(e=e.reverse())),this.pushStack(e)}});var Da=/\S+/g;na.Callbacks=function(a){a="string"==typeof a?f(a):na.extend({},a);var b,c,d,e,g=[],h=[],i=-1,j=function(){for(e=a.once,d=b=!0;h.length;i=-1)for(c=h.shift();++i<g.length;)g[i].apply(c[0],c[1])===!1&&a.stopOnFalse&&(i=g.length,c=!1);a.memory||(c=!1),b=!1,e&&(g=c?[]:"")},k={add:function(){return g&&(c&&!b&&(i=g.length-1,h.push(c)),function d(b){na.each(b,function(b,c){na.isFunction(c)?a.unique&&k.has(c)||g.push(c):c&&c.length&&"string"!==na.type(c)&&d(c)})}(arguments),c&&!b&&j()),this},remove:function(){return na.each(arguments,function(a,b){for(var c;(c=na.inArray(b,g,c))>-1;)g.splice(c,1),i>=c&&i--}),this},has:function(a){return a?na.inArray(a,g)>-1:g.length>0},empty:function(){return g&&(g=[]),this},disable:function(){return e=h=[],g=c="",this},disabled:function(){return!g},lock:function(){return e=!0,c||k.disable(),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],h.push(c),b||j()),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},na.extend({Deferred:function(a){var b=[["resolve","done",na.Callbacks("once memory"),"resolved"],["reject","fail",na.Callbacks("once memory"),"rejected"],["notify","progress",na.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return na.Deferred(function(c){na.each(b,function(b,f){var g=na.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&na.isFunction(a.promise)?a.promise().progress(c.notify).done(c.resolve).fail(c.reject):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?na.extend(a,d):d}},e={};return d.pipe=d.then,na.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b,c,d,e=0,f=ea.call(arguments),g=f.length,h=1!==g||a&&na.isFunction(a.promise)?g:0,i=1===h?a:na.Deferred(),j=functi
return a&&a.get?a.get(this):L.propHooks._default.get(this)},run:function(a){var b,c=L.propHooks[this.prop];return this.options.duration?this.pos=b=na.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):L.propHooks._default.set(this),this}},L.prototype.init.prototype=L.prototype,L.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=na.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){na.fx.step[a.prop]?na.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[na.cssProps[a.prop]]&&!na.cssHooks[a.prop]?a.elem[a.prop]=a.now:na.style(a.elem,a.prop,a.now+a.unit)}}},L.propHooks.scrollTop=L.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},na.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},na.fx=L.prototype.init,na.fx.step={};var zb,Ab,Bb=/^(?:toggle|show|hide)$/,Cb=/queueHooks$/;na.Animation=na.extend(R,{tweeners:{"*":[function(a,b){var c=this.createTween(a,b);return m(c.elem,a,Ka.exec(b),c),c}]},tweener:function(a,b){na.isFunction(a)?(b=a,a=["*"]):a=a.match(Da);for(var c,d=0,e=a.length;e>d;d++)c=a[d],R.tweeners[c]=R.tweeners[c]||[],R.tweeners[c].unshift(b)},prefilters:[P],prefilter:function(a,b){b?R.prefilters.unshift(a):R.prefilters.push(a)}}),na.speed=function(a,b,c){var d=a&&"object"==typeof a?na.extend({},a):{complete:c||!c&&b||na.isFunction(a)&&a,duration:a,easing:c&&b||b&&!na.isFunction(b)&&b};return d.duration=na.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in na.fx.speeds?na.fx.speeds[d.duration]:na.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){na.isFunction(d.old)&&d.old.call(this),d.queue&&na.dequeue(this,d.queue)},d},na.fn.extend({fadeTo:function(a,b,c,d){return this.filter(Ma).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=na.isEmptyObject(a),f=na.speed(b,c,d),g=function(){var b=R(this,na.extend({},a),f);(e||na._data(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=na.timers,g=na._data(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&Cb.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&na.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=na._data(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=na.timers,g=d?d.length:0;for(c.finish=!0,na.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),na.each(["toggle","show","hide"],function(a,b){var c=na.fn[b];na.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(N(b,!0),a,d,e)}}),na.each({slideDown:N("show"),slideUp:N("hide"),slideToggle:N("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){na.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),na.timers=[],na.fx.tick=function(){var a,b=na.timers,c=0;for(zb=na.now();c<b.length;c++)a=b[c],a()||b[c]!==a||b.splice(c--,1);b.length||na.fx.stop(),zb=void 0},na.fx.timer=function(a){na.timers.push(a),a()?na.fx.start():na.timers.pop()},na.fx.interval=13,na.fx.start=function(){Ab||(Ab=a.setInterval(na.fx.tick,na.fx.interval))},na.fx.stop=function(){a.clearInterval(Ab),Ab=null},na.fx.speeds={slow:600,fast:200,_default:400},na.fn.delay=function(b,c){return b=na.fx?na.fx.speeds[b]||b:b,c=c||"fx",this.queue(c,function(c
d.load=function(){e.apply(window,[].slice.call(arguments,0))},d.addTest("boxsizing",function(){return d.testAllProps("boxSizing")&&(void 0===document.documentMode||document.documentMode>7)}),d.addTest("borderradius",function(){return d.testAllProps("borderRadius")}),d.addTest("formvalidation",function(){var a=document.createElement("form");return"checkValidity"in a}),d.addTest("cors",function(){return!!(window.XMLHttpRequest&&"withCredentials"in new window.XMLHttpRequest)}),d.addTest("textareamaxlength",function(){var a=document.createElement("textarea");return"maxLength"in a}),d.addTest("csstransforms",function(){return!!d.testAllProps("transform")}),d.addTest("csschecked",function(){return d.testStyles("#modernizr input {width:100px} #modernizr input:checked {width:200px;display:block}",function(a,b){var c=document.createElement("input");return c.setAttribute("type","checkbox"),c.setAttribute("checked","checked"),a.appendChild(c),c.offsetWidth>=200})}),d.addTest("json",function(){return!(!(window.JSON&&JSON.stringify&&JSON.parse)||document.documentMode&&document.documentMode<9)}),b.exports=d},{"./yepnope.js":41}],35:[function(a,b,c){function d(a,b){var c=b;b=""+b;for(var d=q(r,b)?r:s,e=0;e<a.PicklistValues.length;e++){var f=a.PicklistValues[e].value||"";if(q(d,f))return f}return""+c}function e(a){for(var b=!1,c=!1,d=0;d<a.PicklistValues.length;d++){var e=a.PicklistValues[d].value||"";q(r,e)&&(b=!0),q(s,e)&&(c=!0)}return b&&c}function f(a){for(var b=0;b<a.PicklistValues.length;b++){var c=a.PicklistValues[b].value;if(""===c)return!0}return!1}function g(a){return!a.PicklistValues||a.IsMultiselect?!1:2==a.PicklistValues.length?e(a):3==a.PicklistValues.length?e(a)&&f(a):!1}function h(a){return a.PicklistValues?1==a.PicklistValues.length&&q(r,a.PicklistValues[0].value||""):!1}function i(a){return a.PicklistValues&&2==a.PicklistValues.length?e(a):!1}function j(a,b){if(null===b||void 0===b)return"";var c=g(a);return""===b&&c&&!f(a)&&(b=!1),""!==b&&c&&(b=d(a,b)),""+b}function k(a,b){if(null===b||void 0===b)return"";var c=i(a);return""===b&&c&&(b=!1),c&&(b=d(a,b)),""+b}function l(a,b){return null===b||void 0===b?"":(b=""+b,b.split(/\s|T/)[0])}function m(a,b){return null===b||void 0===b?"":(h(a)&&(b=d(a,b)),""+b)}function n(a,b){var c={},d=o.getFieldsByName(o.getFlattenedFields(b));return p.each(a,function(a,b){var e=d[a];if(e&&null!==b){var f=e.Datatype;"picklist"===f?c[a]=j(e,b):"radio"===f?c[a]=k(e,b):"checkbox"===f||"single_checkbox"===f?c[a]=m(e,b):"date"===f?c[a]=l(e,b):(b=""+b,c[a]=b)}}),c}var o=a("./fields/fieldHelpers.js"),p=a("./jquery.js"),q=function(a,b){return-1!=p.inArray(b,a)},r=["true","1","yes","Yes"],s=["false","0","no","No"];r.concat(s);b.exports.coerceTypes=n},{"./fields/fieldHelpers.js":15,"./jquery.js":31}],36:[function(a,b,c){function d(){try{if("undefined"!=typeof console&&"function"==typeof console.log)try{console.log.apply(console,arguments)}catch(a){console.log(Array.prototype.slice.call(arguments,0))}}catch(a){}}b.exports=d},{}],37:[function(a,b,c){function d(){}b.exports={};var e=a("./jquery.js");Function.prototype.bind||(Function.prototype.bind=function(a){var b=this;if("function"!=typeof b)throw new TypeError("Function.prototype.bind called on incompatible "+b);for(var c=i.call(arguments,1),e=function(){if(this instanceof j){var d=b.apply(this,c.concat(i.call(arguments)));return Object(d)===d?d:this}return b.apply(a,c.concat(i.call(arguments)))},f=Math.max(0,b.length-c.length),g=[],h=0;f>h;h++)g.push("$"+h);var j=Function("binder","return function("+g.join(",")+"){return binder.apply(this,arguments)}")(e);return b.prototype&&(d.prototype=b.prototype,j.prototype=new d,d.prototype=null),j});var f=Function.prototype.call,g=Array.prototype,h=Object.prototype,i=g.slice,j=f.bind(h.toString),k=f.bind(h.hasOwnProperty);if(!Object.keys){var l=!0,m=function(){}.propertyIsEnumerable("prototype"),n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],o=n.length;for(var p in{toString:null})l=!1;Object.keys=function r(a){var b="[object Function]"===j(a),c=