balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

redux-vendors.min.js (15412B)


      1 function collapse(e){var t,n=e.target,a=n.parentNode.getElementsByClassName("collapsible");a.length&&("none"===(a=a[0]).style.display?(t=a.parentNode.getElementsByClassName("ellipsis")[0],a.parentNode.removeChild(t),a.style.display=""):(a.style.display="none",(t=document.createElement("span")).className="ellipsis",t.innerHTML=" &hellip; ",a.parentNode.insertBefore(t,a)),n.innerHTML="-"===n.innerHTML?"+":"-")}function addCollapser(e){var t;"LI"===e.nodeName&&((t=document.createElement("div")).className="collapser",t.innerHTML="-",t.addEventListener("click",collapse,!1),e.insertBefore(t,e.firstChild))}function jsonView(e,t){if(this.debug=!1,-1!==e.indexOf("#"))this.idType="id",this.id=e.replace("#","");else{if(-1===e.indexOf("."))return void(this.debug&&console.log("Can't find that element"));this.idType="class",this.id=e.replace(".","")}if(this.data=document.getElementById(this.id).innerHTML,1,-1!==t.indexOf("#"))this.targetType="id",this.target=t.replace("#","");else{if(-1===e.indexOf("."))return void(this.debug&&console.log("Can't find the target element"));this.targetType="class",this.target=t.replace(".","")}/^\<pre.*\>(.*)\<\/pre\>$/.test(this.data)&&(this.debug&&console.log("JSONView: data is wrapped in <pre>...</pre>, stripping HTML..."),this.data=this.data.replace(/<(?:.|\s)*?>/g,""));var n=/^[\s\u200B\uFEFF]*([\w$\[\]\.]+)[\s\u200B\uFEFF]*\([\s\u200B\uFEFF]*([\[{][\s\S]*[\]}])[\s\u200B\uFEFF]*\);?[\s\u200B\uFEFF]*$/,a=/^\s*([\[\{].*[\}\]])\s*$/.test(this.data),r=n.test(this.data);if(this.debug&&console.log("JSONView: is_json="+a+" is_jsonp="+r),a||r){function i(){}this.debug&&console.log("JSONView: sexytime!"),i.prototype={htmlEncode:function(e){return null!=e?e.toString().replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):""},decorateWithSpan:function(e,t){return'<span class="'+t+'">'+this.htmlEncode(e)+"</span>"},valueToHTML:function(e){var t=typeof e,n="";return null===e?n+=this.decorateWithSpan("null","null"):e&&e.constructor===Array?n+=this.arrayToHTML(e):"object"==t?n+=this.objectToHTML(e):"number"==t?n+=this.decorateWithSpan(e,"num"):"string"==t?/^(http|https):\/\/[^\s]+$/.test(e)?n+='<a href="'+e+'">'+this.htmlEncode(e)+"</a>":n+=this.decorateWithSpan('"'+e+'"',"string"):"boolean"==t&&(n+=this.decorateWithSpan(e,"bool")),n},arrayToHTML:function(e){var t='[<ul class="array collapsible">',n=!1;for(var a in e)n=!0,t+="<li>",t+=this.valueToHTML(e[a]),t+="</li>";return t+="</ul>]",n||(t="[ ]"),t},objectToHTML:function(e){var t='{<ul class="obj collapsible">',n=!1;for(var a in e)n=!0,t+="<li>",t+='<span class="prop">'+this.htmlEncode(a)+"</span>: ",t+=this.valueToHTML(e[a]),t+="</li>";return t+="</ul>}",n||(t="{ }"),t},jsonToHTML:function(e,t,n){var a="";return t&&(a+='<div class="callback">'+t+" (</div>"),a+='<div id="json">',a+=this.valueToHTML(e),a+="</div>",t&&(a+='<div class="callback">)</div>'),this.toHTML(a,n)},errorPage:function(e,t,n){var a='<div id="error">Error parsing JSON: '+e.message+"</div>";return a+="<h1>"+e.stack+":</h1>",a+='<div id="json">'+this.htmlEncode(t)+"</div>",this.toHTML(a,n+" - Error")},toHTML:function(e){return e}},this.jsonFormatter=new i;var o="",l="",s="",u=n.exec(this.data),l=u&&3===u.length?(this.debug&&console.log("THIS IS JSONp"),s=u[1],u[2]):(this.debug&&console.log("Vanilla JSON"),this.data);this.debug&&console.log(l);try{var c=JSON.parse(l);if(!c)throw"There was no object!";o=this.jsonFormatter.jsonToHTML(c,s)}catch(e){this.debug&&console.log(e),o=this.jsonFormatter.errorPage(e,this.data)}var p,d="<style type=\"text/css\">.jsonViewOutput .prop{font-weight:700;}.jsonViewOutput .null{color:red;}.jsonViewOutput .string{color:green;}.jsonViewOutput .collapser{position:absolute;left:-1em;cursor:pointer;}.jsonViewOutput li{position:relative;}.jsonViewOutput li:after{content:',';}.jsonViewOutput li:last-child:after{content:'';}.jsonViewOutput #error{-moz-border-radius:8px;border:1px solid #970000;background-color:#F7E8E8;margin:.5em;padding:.5em;}.jsonViewOutput .errormessage{font-family:monospace;}.jsonViewOutput #json{font-family:monospace;font-size:1.1em;}.jsonViewOutput ul{list-style:none;margin:0 0 0 2em;padding:0;}.jsonViewOutput h1{font-size:1.2em;}.jsonViewOutput .callback + #json{padding-left:1em;}.jsonViewOutput .callback{font-family:monospace;color:#A52A2A;}.jsonViewOutput .bool,.jsonViewOutput .num{color:blue;}</style>";void 0!==this.targetType&&(this.idType=this.targetType,this.id=this.target),"class"===this.idType?(p=document.getElementsByClassName(this.id))&&(p.className+=p.className?" jsonViewOutput":"jsonViewOutput",p.innerHTML=d+o):"id"===this.idType&&((p=document.getElementById(this.id))&&(p.className+=p.className?" jsonViewOutput":"jsonViewOutput",p.innerHTML=d+o),p.innerHTML=d+o);for(var h=document.getElementsByClassName("collapsible"),f=h.length,m=0;m<f;m++)addCollapser(h[m].parentNode)}}!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(f){var a=/\+/g;function m(e){return v.raw?e:encodeURIComponent(e)}function g(e,t){var n=v.raw?e:function(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(a," ")),v.json?JSON.parse(e):e}catch(e){}}(e);return f.isFunction(t)?t(n):n}var v=f.cookie=function(e,t,n){var a,r,i;if(1<arguments.length&&!f.isFunction(t))return"number"==typeof(n=f.extend({},v.defaults,n)).expires&&(a=n.expires,(r=n.expires=new Date).setMilliseconds(r.getMilliseconds()+864e5*a)),document.cookie=[m(e),"=",(i=t,m(v.json?JSON.stringify(i):String(i))),n.expires?"; expires="+n.expires.toUTCString():"",n.path?"; path="+n.path:"",n.domain?"; domain="+n.domain:"",n.secure?"; secure":""].join("");for(var o,l=e?void 0:{},s=document.cookie?document.cookie.split("; "):[],u=0,c=s.length;u<c;u++){var p=s[u].split("="),d=(o=p.shift(),v.raw?o:decodeURIComponent(o)),h=p.join("=");if(e===d){l=g(h,t);break}e||void 0===(h=g(h))||(l[d]=h)}return l};v.defaults={},f.removeCookie=function(e,t){return f.cookie(e,"",f.extend({},t,{expires:-1})),!f.cookie(e)}}),function(s){s.fn.alphanum=function(e){return n(this,w,o(e)),this},s.fn.alpha=function(e){var t=o("alpha");return n(this,w,o(e,t)),this},s.fn.numeric=function(e){return n(this,T,m(e)),this.on("blur",function(){!function(e,t){var n=parseFloat(s(e).val()),a=s(e);if(isNaN(n))return a.val("");i(t.min)&&n<t.min&&a.val("");i(t.max)&&n>t.max&&a.val("")}(this,e)}),this};var e,t,u={allow:"",disallow:"",allowSpace:!0,allowNumeric:!0,allowUpper:!0,allowLower:!0,allowCaseless:!0,allowLatin:!0,allowOtherCharSets:!0,maxLength:NaN},a={allowPlus:!1,allowMinus:!0,allowThouSep:!0,allowDecSep:!0,allowLeadingSpaces:!1,maxDigits:NaN,maxDecimalPlaces:NaN,maxPreDecimalPlaces:NaN,max:NaN,min:NaN},c={alpha:{allowNumeric:!1},upper:{allowNumeric:!1,allowUpper:!0,allowLower:!1,allowCaseless:!0},lower:{allowNumeric:!1,allowUpper:!1,allowLower:!0,allowCaseless:!0}},r={integer:{allowPlus:!1,allowMinus:!0,allowThouSep:!1,allowDecSep:!1},positiveInteger:{allowPlus:!1,allowMinus:!1,allowThouSep:!1,allowDecSep:!1}},p="!@#$%^&*()+=[]\\';,/{}|\":<>?~`.-_ ¬€£¦",l=",",d=".",h=function(){var e,t="0123456789".split(""),n={},a=0;for(a=0;a<t.length;a++)e=t[a],n[e]=!0;return n}(),f=(t=(e="abcdefghijklmnopqrstuvwxyz").toUpperCase(),new y(e+t));function n(e,c,p){e.each(function(){var u=s(this);u.on("keyup change paste",function(e){var t="";e.originalEvent&&e.originalEvent.clipboardData&&e.originalEvent.clipboardData.getData&&(t=e.originalEvent.clipboardData.getData("text/plain")),setTimeout(function(){!function(e,t,n,a){var r=e.val();""==r&&0<a.length&&(r=a);var i=t(r,n);if(r==i)return;var o=e.alphanum_caret();e.val(i),r.length==i.length+1?e.alphanum_caret(o-1):e.alphanum_caret(o)}(u,c,p,t)},0)}),u.on("keypress",function(e){var t,n,a,r,i,o,l,s=e.charCode?e.charCode:e.which;!(32<=(t=s)||10==t||13==t)||e.ctrlKey||e.metaKey||(n=String.fromCharCode(s),r=(a=u.selection()).start,i=a.end,l=(o=u.val()).substring(0,r)+n+o.substring(i),c(l,p)!=l&&e.preventDefault())})})}function i(e){return!isNaN(e)}function o(e,t){void 0===t&&(t=u);var n,a,r,i,o={},l="string"==typeof e?c[e]:void 0===e?{}:e;return s.extend(o,t,l),void 0===o.blacklist&&(o.blacklistSet=(n=o.allow,a=o.disallow,r=new y(p+a),i=new y(n),r.subtract(i))),o}function m(e){var t={},n="string"==typeof e?r[e]:void 0===e?{}:e;return s.extend(t,a,n),t}function g(e,t,n){if(h[t])return!function(e,t){var n=t.maxDigits;if(""==n||isNaN(n))return!1;var a=v(e);return n<=a}(e,n)&&(!function(e,t){var n=t.maxPreDecimalPlaces;if(""==n||isNaN(n))return!1;if(0<=e.indexOf(d))return!1;var a=v(e);return n<=a}(e,n)&&(!function(e,t){var n=t.maxDecimalPlaces;if(""==n||isNaN(n))return!1;var a=e.indexOf(d);if(-1==a)return!1;var r=v(e.substring(a));return n<=r}(e,n)&&(i=e+t,(!(o=n).max||o.max<0||!(parseFloat(i)>o.max))&&(a=e+t,!(r=n).min||0<r.min||!(parseFloat(a)<r.min)))));var a,r,i,o;if(n.allowPlus&&"+"==t&&""==e)return 1;if(n.allowMinus&&"-"==t&&""==e)return 1;if(t==l&&n.allowThouSep&&function(e){if(0==e.length)return!1;if(0<=e.indexOf(d))return!1;var t=e.indexOf(l);if(t<0)return!0;var n=e.lastIndexOf(l);return!(e.length-n-1<3)&&!(0<v(e.substring(t))%3)}(e))return 1;if(t==d){if(0<=e.indexOf(d))return;if(n.allowDecSep)return 1}}function v(e){return(e+="").replace(/[^0-9]/g,"").length}function w(e,t){if("string"!=typeof e)return e;for(var n=e.split(""),a=[],r=0,r=0;r<n.length;r++){var i=n[r];(function(e,t,n){if(!(n.maxLength&&e.length>=n.maxLength)){if(0<=n.allow.indexOf(t))return 1;if(n.allowSpace&&" "==t)return 1;var a,r,i,o,l,s,u;if(!n.blacklistSet.contains(t))if(n.allowNumeric||!h[t])if(n.allowUpper||(r=(a=t).toUpperCase(),i=a.toLowerCase(),a!=r||r==i))if(n.allowLower||(l=(o=t).toUpperCase(),s=o.toLowerCase(),o!=s||l==s))if(n.allowCaseless||(u=t).toUpperCase()!=u.toLowerCase())if(n.allowLatin||!f.contains(t))return n.allowOtherCharSets||!(!h[t]&&!f.contains(t))}})(a.join(""),i,t)&&a.push(i)}return a.join("")}function T(e,t){if("string"!=typeof e)return e;for(var n=e.split(""),a=[],r=0,r=0;r<n.length;r++){var i=n[r];g(a.join(""),i,t)&&a.push(i)}return a.join("")}function y(e){this.map="string"==typeof e?function(e){var t,n={},a=e.split(""),r=0;for(r=0;r<a.length;r++)t=a[r],n[t]=!0;return n}(e):{}}y.prototype.add=function(e){var t=this.clone();for(var n in e.map)t.map[n]=!0;return t},y.prototype.subtract=function(e){var t=this.clone();for(var n in e.map)delete t.map[n];return t},y.prototype.contains=function(e){return!!this.map[e]},y.prototype.clone=function(){var e=new y;for(var t in this.map)e.map[t]=!0;return e},s.fn.alphanum.backdoorAlphaNum=function(e,t){return w(e,o(t))},s.fn.alphanum.backdoorNumeric=function(e,t){return T(e,m(t))},s.fn.alphanum.setNumericSeparators=function(e){1==e.thousandsSeparator.length&&1==e.decimalSeparator.length&&(l=e.thousandsSeparator,d=e.decimalSeparator)}}(jQuery),function(r){function i(e,t){var n;e.createTextRange?((n=e.createTextRange()).move("character",t),n.select()):null!=e.selectionStart&&(e.focus(),e.setSelectionRange(t,t))}r.fn.alphanum_caret=function(n,a){return void 0===n?function(e){if("selection"in document){var t=e.createTextRange();try{t.setEndPoint("EndToStart",document.selection.createRange())}catch(e){return 0}return t.text.length}if(null!=e.selectionStart)return e.selectionStart}(this.get(0)):this.queue(function(e){var t;isNaN(n)?(t=r(this).val().indexOf(n),!0===a?t+=n.length:void 0!==a&&(t+=a),i(this,t)):i(this,n),e()})}}(jQuery),function(p){function d(e){return e?e.ownerDocument.defaultView||e.ownerDocument.parentWindow:window}function h(e,t){var n,a,r=p.Range.current(e).clone(),i=p.Range(e).select(e);return r.overlaps(i)?(r.compare("START_TO_START",i)<1?(n=0,r.move("START_TO_START",i)):((a=i.clone()).move("END_TO_START",r),n=a.toString().length),{start:n,end:0<=r.compare("END_TO_END",i)?i.toString().length:n+r.toString().length}):null}var f=function(e,t,n){var a,r;n=n||0;for(var i,o,l,s,u=0;e[u];u++)3===(a=e[u]).nodeType||4===a.nodeType?(r=n,n+=a.nodeValue.length,i=r,o=n,s=a,"number"==typeof(l=t)[0]&&l[0]<o&&(l[0]={el:s,count:l[0]-i}),"number"==typeof l[1]&&l[1]<=o&&(l[1]={el:s,count:l[1]-i})):8!==a.nodeType&&(n=f(a.childNodes,t,n));return n};p.fn.selection=function(u,c){return void 0!==u?this.each(function(){var e,t,n,a,r,i,o,l,s;t=u,n=c,s=d(e=this),e.setSelectionRange?void 0===n?(e.focus(),e.setSelectionRange(t,t)):(e.select(),e.selectionStart=t,e.selectionEnd=n):e.createTextRange?((a=e.createTextRange()).moveStart("character",t),n=n||t,a.moveEnd("character",n-e.value.length),a.select()):s.getSelection?(r=s.document,i=s.getSelection(),l=r.createRange(),f([e],o=[t,void 0!==n?n:t]),l.setStart(o[0].el,o[0].count),l.setEnd(o[1].el,o[1].count),i.removeAllRanges(),i.addRange(l)):s.document.body.createTextRange&&((l=document.body.createTextRange()).moveToElementText(e),l.collapse(),l.moveStart("character",t),l.moveEnd("character",void 0!==n?n:t),l.select())}):function(t){var e=d(t);if(void 0!==t.selectionStart)return document.activeElement&&document.activeElement!==t&&t.selectionStart===t.selectionEnd&&0===t.selectionStart?{start:t.value.length,end:t.value.length}:{start:t.selectionStart,end:t.selectionEnd};if(e.getSelection)return h(t);try{if("input"===t.nodeName.toLowerCase()){var n=d(t).document.selection.createRange(),a=t.createTextRange();a.setEndPoint("EndToStart",n);var r=a.text.length;return{start:r,end:r+n.text.length}}var i=h(t);if(!i)return i;var o=p.Range.current().clone(),l=o.clone().collapse().range,s=o.clone().collapse(!1).range;return l.moveStart("character",-1),s.moveStart("character",-1),0!==i.startPos&&""===l.text&&(i.startPos+=2),0!==i.endPos&&""===s.text&&(i.endPos+=2),i}catch(e){return{start:t.value.length,end:t.value.length}}}(this[0])},p.fn.selection.getCharElement=f}(jQuery),function(o){o.fn.serializeForm=function(){if(this.length<1)return!1;function e(){if(!this.disabled){var e=this.name.replace(/\[([^\]]+)?\]/g,",$1").split(","),t=e.length-1,n=o(this);if(e[0]){for(var a=0;a<t;a++)i=i[e[a]]=i[e[a]]||(""===e[a+1]||"0"===e[a+1]?[]:{});void 0!==i.length?i.push(n.val()):i[e[t]]=n.val(),i=r}}}var r={},i=r,t=':input[type!="checkbox"][type!="radio"], input:checked';return this.filter(t).each(e),this.find(t).each(e),r}}(jQuery),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?t(require("jquery")):t(e.jQuery)}(this,function(n){"use strict";n.fn.typeWatch=function(e){var i=n.extend({wait:750,callback:function(){},highlight:!0,captureLength:2,allowSubmit:!1,inputTypes:["TEXT","TEXTAREA","PASSWORD","TEL","SEARCH","URL","EMAIL","DATETIME","DATE","MONTH","WEEK","TIME","DATETIME-LOCAL","NUMBER","RANGE","DIV"]},e);function t(e){var r,n=(e.type||e.nodeName).toUpperCase();0<=jQuery.inArray(n,i.inputTypes)&&(r={timer:null,text:"DIV"===n?jQuery(e).html():jQuery(e).val(),cb:i.callback,el:e,type:n,wait:i.wait},i.highlight&&"DIV"!==n&&jQuery(e).focus(function(){this.select()}),jQuery(e).on("keydown paste cut input",function(e){var t=r.wait,a=!1;void 0!==e.keyCode&&13==e.keyCode&&"TEXTAREA"!==n&&"DIV"!==n&&(t=1,a=!0);clearTimeout(r.timer),r.timer=setTimeout(function(){var e,t,n;t=a,((n="DIV"===(e=r).type?jQuery(e.el).html():jQuery(e.el).val()).length>=i.captureLength&&n!=e.text||t&&(n.length>=i.captureLength||i.allowSubmit)||0==n.length&&e.text)&&(e.text=n,e.cb.call(e.el,n))},t)}))}return this.each(function(){t(this)})}});