function tableToGrid(n,t){jQuery(n).each(function(){var n,i;if(!this.grid){jQuery(this).width("99%");var c=jQuery(this).width(),l=jQuery("tr td:first-child input[type=checkbox]:first",jQuery(this)),a=jQuery("tr td:first-child input[type=radio]:first",jQuery(this)),f=l.length>0,v=!f&&a.length>0,h=f||v,r=[],e=[];jQuery("th",jQuery(this)).each(function(){r.length===0&&h?(r.push({name:"__selection__",index:"__selection__",width:0,hidden:!0}),e.push("__selection__")):(r.push({name:jQuery(this).attr("id")||jQuery.trim(jQuery.jgrid.stripHtml(jQuery(this).html())).split(" ").join("_"),index:jQuery(this).attr("id")||jQuery.trim(jQuery.jgrid.stripHtml(jQuery(this).html())).split(" ").join("_"),width:jQuery(this).width()||150}),e.push(jQuery(this).html()))});var u=[],o=[],s=[];for(jQuery("tbody > tr",jQuery(this)).each(function(){var t={},n=0;jQuery("td",jQuery(this)).each(function(){if(n===0&&h){var i=jQuery("input",jQuery(this)),f=i.attr("value");o.push(f||u.length),i.is(":checked")&&s.push(f),t[r[n].name]=i.attr("value")}else t[r[n].name]=jQuery(this).html();n++}),n>0&&u.push(t)}),jQuery(this).empty(),jQuery(this).addClass("scroll"),jQuery(this).jqGrid(jQuery.extend({datatype:"local",width:c,colNames:e,colModel:r,multiselect:f},t||{})),n=0;n<u.length;n++)i=null,o.length>0&&(i=o[n],i&&i.replace&&(i=encodeURIComponent(i).replace(/[.\-%]/g,"_"))),i===null&&(i=n+1),jQuery(this).jqGrid("addRowData",i,u[n]);for(n=0;n<s.length;n++)jQuery(this).jqGrid("setSelection",s[n])}})}function setMainContentHeight(){$(".kioskBody")?$("#adminMain").height(window.innerHeight-75):$("#adminMain").height(document.documentElement.clientHeight-205)}function SplitName(n){var t,i;if(n.indexOf("'")>=0){for(t=n.split("'"),toReturn=t[0].indexOf("'")==0?"'"+t[0]:t[0],i=1;i<t.length;i++)toReturn+="\\'"+t[i];return toReturn}return n}function isNumber(){return event.shiftKey?!1:event.keyCode==8||event.keyCode==9||event.keyCode==39||event.keyCode==37||event.keyCode==46?!0:event.keyCode>95&&event.keyCode<106?!0:event.keyCode<48||event.keyCode>57?!1:!0}function validateEmail(n){var t=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return t.test(n)}function isPhoneNumber(){return event.shiftKey?!1:event.keyCode==8||event.keyCode==46||event.keyCode==189||event.keyCode==9||event.keyCode==109||event.keyCode==37||event.keyCode==39?!0:event.keyCode>95&&event.keyCode<106?!0:event.keyCode<48||event.keyCode>57?!1:!0}function formatPhone(n,t){return t!="USA"&&t!="US"&&n&&n[0]!="+"&&(n="+"+n),t.length==3&&(t=t.substring(0,2)),n&&(n=formatInternational(t,n)),n}function isZipCode(){return event.keyCode==8||event.keyCode==9?!0:event.keyCode>=48&&event.keyCode<=90?!0:event.keyCode>=96&&event.keyCode<=105?!0:!1}function lettersOnly(n){if(n.keyCode==32||n.keyCode==222)return!0;n=n?n:event;var t=n.charCode?n.charCode:n.keyCode?n.keyCode:n.which?n.which:0;return t>31&&(t<65||t>90)&&(t<97||t>122)||event.keyCode>95&&event.keyCode<106?!1:!0}function setupForm(){$("div.field-block div.label label").each(function(){endsWith($(this).text(),":")||$(this).text($(this).text()+":")}),$("div.field-block input[type=text],div.field-block select,div.field-block textarea").each(function(){$(this).attr("data-val-required")!=undefined&&$(this).parent().parent().find("label").each(function(){$(this).hasClass("required")||$(this).addClass("required")})}),document.URL.indexOf("rsvp")<0&&document.URL.indexOf("RSVP")<0&&($(".container input[type=submit]").button(),$(".container input[type=button]").button(),$(".actionbutton").button(),$(".container input[type=submit]").button(),$(".container input[type=button]").button(),$(".actionbutton").button(),$(".report-filter input[type=button]").button())}function getURLParameter(n){return decodeURIComponent((new RegExp("[?|&]"+n+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null}function endsWith(n,t){return n.indexOf(t,n.length-t.length)!==-1}function RegisterCustomValidators(){jQuery.validator.unobtrusive.adapters.add("required")}function GetMessageByCode(n){var t="";return $(ErrorMessages).each(function(){if(this.Code==n){t=this.Message;return}}),t}function DisplayNotification(n){$.growlUI("",n.message,6e3)}function DisplayNotification(n,t){$.growlUI("",n.message,t)}function countryForE164Number(n){try{var n=cleanPhone(n),t=i18n.phonenumbers.PhoneNumberUtil.getInstance(),r=t.parseAndKeepRawInput(n),i=new goog.string.StringBuffer;return i=t.getRegionCodeForNumber(r),i.toString()}catch(u){return""}}function formatNumberForMobileDialing(n,t){try{var t=cleanPhone(t),i=i18n.phonenumbers.PhoneNumberUtil.getInstance(),u=i.parseAndKeepRawInput(t,n),r=new goog.string.StringBuffer;return r=i.formatNumberForMobileDialing(u,n,!0),r.toString()}catch(f){return""}}function isValidNumber(n,t){try{var n=cleanPhone(n),i=i18n.phonenumbers.PhoneNumberUtil.getInstance(),r=i.parseAndKeepRawInput(n,t);return i.isValidNumber(r)}catch(u){return!1}}function formatE164(n,t){try{var t=cleanPhone(t),i=i18n.phonenumbers.PhoneNumberUtil.getInstance(),u=i.parseAndKeepRawInput(t,n),f=i18n.phonenumbers.PhoneNumberFormat,r=new goog.string.StringBuffer;return r=i.format(u,f.E164),r.toString()}catch(e){return t}}function formatInternational(n,t){var i,u;try{var t=cleanPhone(t),f=new i18n.phonenumbers.AsYouTypeFormatter(n),r=new goog.string.StringBuffer;for(i=0;i<t.length;++i)u=t.charAt(i),r=f.inputDigit(u);return r.toString()}catch(e){return t}}function formatLocal(n,t){var f,r;try{var t=cleanPhone(t),i=i18n.phonenumbers.PhoneNumberUtil.getInstance(),u=i.parseAndKeepRawInput(t,n);return i.isValidNumberForRegion(u,n)?(f=i18n.phonenumbers.PhoneNumberFormat,r=new goog.string.StringBuffer,r=i.format(u,f.NATIONAL),r.toString()):formatInternational(n,t)}catch(e){return formatInternational(n,t)}}function exampleLandlineNumber(n){try{var t=i18n.phonenumbers.PhoneNumberUtil.getInstance(),i=t.getExampleNumber(n);return""+i.getNationalNumber()}catch(r){return""}}function exampleMobileNumber(n){try{var t=i18n.phonenumbers.PhoneNumberUtil.getInstance(),i=t.getExampleNumberForType(n,i18n.phonenumbers.PhoneNumberType.MOBILE);return""+i.getNationalNumber()}catch(r){return""}}function cleanPhone(n){return n=n.replace(/[^\d\+]/g,""),n=n.substr(0,1)=="+"?"+"+n.replace(/[^\d]/g,""):n.replace(/[^\d]/g,"")}function countryCodeToName(n){var t=[],i;return(t.AF="Afghanistan",t.AL="Albania",t.DZ="Algeria",t.AS="American Samoa",t.AD="Andorra",t.AO="Angola",t.AI="Anguilla",t.AQ="Antarctica",t.AG="Antigua And Barbuda",t.AR="Argentina",t.AM="Armenia",t.AW="Aruba",t.AC="Ascension Island",t.AU="Australia",t.AT="Austria",t.AZ="Azerbaijan",t.BS="Bahamas",t.BH="Bahrain",t.BD="Bangladesh",t.BB="Barbados",t.BY="Belarus",t.BE="Belgium",t.BZ="Belize",t.BJ="Benin",t.BM="Bermuda",t.BT="Bhutan",t.BO="Bolivia",t.BA="Bosnia And Herzegovina",t.BW="Botswana",t.BV="Bouvet Island",t.BR="Brazil",t.IO="British Indian Ocean Territory",t.BN="Brunei",t.BG="Bulgaria",t.BF="Burkina Faso",t.BI="Burundi",t.KH="Cambodia",t.CM="Cameroon",t.CA="Canada",t.CV="Cape Verde",t.KY="Cayman Islands",t.CF="Central African Republic",t.TD="Chad",t.CL="Chile",t.CN="China",t.CX="Christmas Island",t.CC="Cocos (Keeling) Islands",t.CO="Columbia",t.KM="Comoros",t.CG="Congo",t.CK="Cook Islands",t.CR="Costa Rica",t.CI="Cote D'Ivorie (Ivory Coast)",t.HR="Croatia (Hrvatska)",t.CU="Cuba",t.CY="Cyprus",t.CZ="Czech Republic",t.CD="Democratic Republic Of Congo (Zaire)",t.DK="Denmark",t.DJ="Djibouti",t.DM="Dominica",t.DO="Dominican Republic",t.TL="East Timor",t.EC="Ecuador",t.EG="Egypt",t.SV="El Salvador",t.GQ="Equatorial Guinea",t.ER="Eritrea",t.EE="Estonia",t.ET="Ethiopia",t.FK="Falkland Islands (Malvinas)",t.FO="Faroe Islands",t.FJ="Fiji",t.FI="Finland",t.FR="France",t.FX="France, Metropolitan",t.GF="French Guinea",t.PF="French Polynesia",t.TF="French Southern Territories",t.GA="Gabon",t.GM="Gambia",t.GE="Georgia",t.DE="Germany",t.GH="Ghana",t.GI="Gibraltar",t.GR="Greece",t.GL="Greenland",t.GD="Grenada",t.GP="Guadeloupe",t.GU="Guam",t.GT="Guatemala",t.GN="Guinea",t.GW="Guinea-Bissau",t.GY="Guyana",t.HT="Haiti",t.HM="Heard And McDonald Islands",t.HN="Honduras",t.HK="Hong Kong",t.HU="Hungary",t.IS="Iceland",t.IN="India",t.ID="Indonesia",t.IR="Iran",t.IQ="Iraq",t.IE="Ireland",t.IM="Isle of Man",t.IL="Israel",t.IT="Italy",t.JM="Jamaica",t.JP="Japan",t.JO="Jordan",t.KZ="Kazakhstan",t.KE="Kenya",t.KI="Kiribati",t.KW="Kuwait",t.KG="Kyrgyzstan",t.LA="Laos",t.LV="Latvia",t.LB="Lebanon",t.LS="Lesotho",t.LR="Liberia",t.LY="Libya",t.LI="Liechtenstein",t.LT="Lithuania",t.LU="Luxembourg",t.MO="Macau",t.MK="Macedonia",t.MG="Madagascar",t.MW="Malawi",t.MY="Malaysia",t.MV="Maldives",t.ML="Mali",t.MT="Malta",t.MH="Marshall Islands",t.MQ="Martinique",t.MR="Mauritania",t.MU="Mauritius",t.YT="Mayotte",t.MX="Mexico",t.FM="Micronesia",t.MD="Moldova",t.MC="Monaco",t.MN="Mongolia",t.ME="Montenegro",t.MS="Montserrat",t.MA="Morocco",t.MZ="Mozambique",t.MM="Myanmar (Burma)",t.NA="Namibia",t.NR="Nauru",t.NP="Nepal",t.NL="Netherlands",t.AN="Netherlands Antilles",t.NC="New Caledonia",t.NZ="New Zealand",t.NI="Nicaragua",t.NE="Niger",t.NG="Nigeria",t.NU="Niue",t.NF="Norfolk Island",t.KP="North Korea",t.MP="Northern Mariana Islands",t.NO="Norway",t.OM="Oman",t.PK="Pakistan",t.PW="Palau",t.PS="Palestine",t.PA="Panama",t.PG="Papua New Guinea",t.PY="Paraguay",t.PE="Peru",t.PH="Philippines",t.PN="Pitcairn",t.PL="Poland",t.PT="Portugal",t.PR="Puerto Rico",t.QA="Qatar",t.RE="Reunion",t.RO="Romania",t.RU="Russia",t.RW="Rwanda",t.SH="Saint Helena",t.KN="Saint Kitts And Nevis",t.LC="Saint Lucia",t.PM="Saint Pierre And Miquelon",t.VC="Saint Vincent And The Grenadines",t.SM="San Marino",t.ST="Sao Tome And Principe",t.SA="Saudi Arabia",t.SN="Senegal",t.RS="Serbia",t.SC="Seychelles",t.SL="Sierra Leone",t.SG="Singapore",t.SK="Slovak Republic",t.SI="Slovenia",t.SB="Solomon Islands",t.SO="Somalia",t.ZA="South Africa",t.GS="South Georgia And South Sandwich Islands",t.KR="South Korea",t.ES="Spain",t.LK="Sri Lanka",t.SD="Sudan",t.SR="Suriname",t.SJ="Svalbard And Jan Mayen",t.SZ="Swaziland",t.SE="Sweden",t.CH="Switzerland",t.SY="Syria",t.TW="Taiwan",t.TJ="Tajikistan",t.TZ="Tanzania",t.TH="Thailand",t.TG="Togo",t.TK="Tokelau",t.TO="Tonga",t.TT="Trinidad And Tobago",t.TN="Tunisia",t.TR="Turkey",t.TM="Turkmenistan",t.TC="Turks And Caicos Islands",t.TV="Tuvalu",t.UG="Uganda",t.UA="Ukraine",t.AE="United Arab Emirates",t.GB="United Kingdom",t.US="United States",t.UM="United States Minor Outlying Islands",t.UY="Uruguay",t.UZ="Uzbekistan",t.VU="Vanuatu",t.VA="Vatican City (Holy See)",t.VE="Venezuela",t.VN="Vietnam",t.VG="Virgin Islands (British)",t.VI="Virgin Islands (US)",t.WF="Wallis And Futuna Islands",t.EH="Western Sahara",t.WS="Western Samoa",t.YE="Yemen",t.YU="Yugoslavia",t.ZM="Zambia",t.ZW="Zimbabwe",i=t[n.toUpperCase()],i===undefined)?"":i}var xmlJsonClass,i18n,qq;(function(n,t){function gt(n){var t=n.length,r=i.type(n);return i.isWindow(n)?!1:n.nodeType===1&&t?!0:r==="array"||r!=="function"&&(t===0||typeof t=="number"&&t>0&&t-1 in n)}function te(n){var t=ni[n]={};return i.each(n.match(s)||[],function(n,i){t[i]=!0}),t}function ur(n,r,u,f){if(i.acceptData(n)){var h,o,c=i.expando,l=n.nodeType,s=l?i.cache:n,e=l?n[c]:n[c]&&c;if(e&&s[e]&&(f||s[e].data)||u!==t||typeof r!="string")return e||(e=l?n[c]=b.pop()||i.guid++:c),s[e]||(s[e]=l?{}:{toJSON:i.noop}),(typeof r=="object"||typeof r=="function")&&(f?s[e]=i.extend(s[e],r):s[e].data=i.extend(s[e].data,r)),o=s[e],f||(o.data||(o.data={}),o=o.data),u!==t&&(o[i.camelCase(r)]=u),typeof r=="string"?(h=o[r],h==null&&(h=o[i.camelCase(r)])):h=o,h}}function fr(n,t,r){if(i.acceptData(n)){var f,o,s=n.nodeType,u=s?i.cache:n,e=s?n[i.expando]:i.expando;if(u[e]){if(t&&(f=r?u[e]:u[e].data,f)){for(i.isArray(t)?t=t.concat(i.map(t,i.camelCase)):(t in f)?t=[t]:(t=i.camelCase(t),t=t in f?[t]:t.split(" ")),o=t.length;o--;)delete f[t[o]];if(r?!ti(f):!i.isEmptyObject(f))return}(r||(delete u[e].data,ti(u[e])))&&(s?i.cleanData([n],!0):i.support.deleteExpando||u!=u.window?delete u[e]:u[e]=null)}}}function er(n,r,u){if(u===t&&n.nodeType===1){var f="data-"+r.replace(rr,"-$1").toLowerCase();if(u=n.getAttribute(f),typeof u=="string"){try{u=u==="true"?!0:u==="false"?!1:u==="null"?null:+u+""===u?+u:ir.test(u)?i.parseJSON(u):u}catch(e){}i.data(n,r,u)}else u=t}return u}function ti(n){var t;for(t in n)if((t!=="data"||!i.isEmptyObject(n[t]))&&t!=="toJSON")return!1;return!0}function ct(){return!0}function g(){return!1}function cr(){try{return r.activeElement}catch(n){}}function ar(n,t){do n=n[t];while(n&&n.nodeType!==1);return n}function fi(n,t,r){if(i.isFunction(t))return i.grep(n,function(n,i){return!!t.call(n,i,n)!==r});if(t.nodeType)return i.grep(n,function(n){return n===t!==r});if(typeof t=="string"){if(oe.test(t))return i.filter(t,n,r);t=i.filter(t,n)}return i.grep(n,function(n){return i.inArray(n,t)>=0!==r})}function vr(n){var i=yr.split("|"),t=n.createDocumentFragment();if(t.createElement)while(i.length)t.createElement(i.pop());return t}function gr(n,t){return i.nodeName(n,"table")&&i.nodeName(t.nodeType===1?t:t.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function nu(n){return n.type=(i.find.attr(n,"type")!==null)+"/"+n.type,n}function tu(n){var t=ye.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function hi(n,t){for(var u,r=0;(u=n[r])!=null;r++)i._data(u,"globalEval",!t||i._data(t[r],"globalEval"))}function iu(n,t){if(t.nodeType===1&&i.hasData(n)){var u,f,o,s=i._data(n),r=i._data(t,s),e=s.events;if(e){delete r.handle,r.events={};for(u in e)for(f=0,o=e[u].length;f<o;f++)i.event.add(t,u,e[u][f])}r.data&&(r.data=i.extend({},r.data))}}function be(n,t){var r,f,u;if(t.nodeType===1){if(r=t.nodeName.toLowerCase(),!i.support.noCloneEvent&&t[i.expando]){u=i._data(t);for(f in u.events)i.removeEvent(t,f,u.handle);t.removeAttribute(i.expando)}r==="script"&&t.text!==n.text?(nu(t).text=n.text,tu(t)):r==="object"?(t.parentNode&&(t.outerHTML=n.outerHTML),i.support.html5Clone&&n.innerHTML&&!i.trim(t.innerHTML)&&(t.innerHTML=n.innerHTML)):r==="input"&&oi.test(n.type)?(t.defaultChecked=t.checked=n.checked,t.value!==n.value&&(t.value=n.value)):r==="option"?t.defaultSelected=t.selected=n.defaultSelected:(r==="input"||r==="textarea")&&(t.defaultValue=n.defaultValue)}}function u(n,r){var s,e,h=0,f=typeof n.getElementsByTagName!==o?n.getElementsByTagName(r||"*"):typeof n.querySelectorAll!==o?n.querySelectorAll(r||"*"):t;if(!f)for(f=[],s=n.childNodes||n;(e=s[h])!=null;h++)!r||i.nodeName(e,r)?f.push(e):i.merge(f,u(e,r));return r===t||r&&i.nodeName(n,r)?i.merge([n],f):f}function ke(n){oi.test(n.type)&&(n.defaultChecked=n.checked)}function ou(n,t){if(t in n)return t;for(var r=t.charAt(0).toUpperCase()+t.slice(1),u=t,i=eu.length;i--;)if(t=eu[i]+r,t in n)return t;return u}function ut(n,t){return n=t||n,i.css(n,"display")==="none"||!i.contains(n.ownerDocument,n)}function su(n,t){for(var f,r,o,e=[],u=0,s=n.length;u<s;u++)(r=n[u],r.style)&&(e[u]=i._data(r,"olddisplay"),f=r.style.display,t?(e[u]||f!=="none"||(r.style.display=""),r.style.display===""&&ut(r)&&(e[u]=i._data(r,"olddisplay",au(r.nodeName)))):e[u]||(o=ut(r),(f&&f!=="none"||!o)&&i._data(r,"olddisplay",o?f:i.css(r,"display"))));for(u=0;u<s;u++)(r=n[u],r.style)&&(t&&r.style.display!=="none"&&r.style.display!==""||(r.style.display=t?e[u]||"":"none"));return n}function hu(n,t,i){var r=to.exec(t);return r?Math.max(0,r[1]-(i||0))+(r[2]||"px"):t}function cu(n,t,r,u,f){for(var e=r===(u?"border":"content")?4:t==="width"?1:0,o=0;e<4;e+=2)r==="margin"&&(o+=i.css(n,r+p[e],!0,f)),u?(r==="content"&&(o-=i.css(n,"padding"+p[e],!0,f)),r!=="margin"&&(o-=i.css(n,"border"+p[e]+"Width",!0,f))):(o+=i.css(n,"padding"+p[e],!0,f),r!=="padding"&&(o+=i.css(n,"border"+p[e]+"Width",!0,f)));return o}function lu(n,t,r){var e=!0,u=t==="width"?n.offsetWidth:n.offsetHeight,f=v(n),o=i.support.boxSizing&&i.css(n,"boxSizing",!1,f)==="border-box";if(u<=0||u==null){if(u=y(n,t,f),(u<0||u==null)&&(u=n.style[t]),lt.test(u))return u;e=o&&(i.support.boxSizingReliable||u===n.style[t]),u=parseFloat(u)||0}return u+cu(n,t,r||(o?"border":"content"),e,f)+"px"}function au(n){var u=r,t=uu[n];return t||(t=vu(n,u),t!=="none"&&t||(rt=(rt||i("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(u.documentElement),u=(rt[0].contentWindow||rt[0].contentDocument).document,u.write("<!doctype html><html><body>"),u.close(),t=vu(n,u),rt.detach()),uu[n]=t),t}function vu(n,t){var r=i(t.createElement(n)).appendTo(t.body),u=i.css(r[0],"display");return r.remove(),u}function li(n,t,r,u){var f;if(i.isArray(t))i.each(t,function(t,i){r||fo.test(n)?u(n,i):li(n+"["+(typeof i=="object"?t:"")+"]",i,r,u)});else if(r||i.type(t)!=="object")u(n,t);else for(f in t)li(n+"["+f+"]",t[f],r,u)}function gu(n){return function(t,r){typeof t!="string"&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(s)||[];if(i.isFunction(r))while(u=e[f++])u[0]==="+"?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function nf(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);if(typeof s!="string"||o||f[s]){if(o)return!(h=s)}else return t.dataTypes.unshift(s),e(s),!1}),h}var f={},o=n===yi;return e(t.dataTypes[0])||!f["*"]&&e("*")}function pi(n,r){var f,u,e=i.ajaxSettings.flatOptions||{};for(u in r)r[u]!==t&&((e[u]?n:f||(f={}))[u]=r[u]);return f&&i.extend(!0,n,f),n}function vo(n,i,r){for(var s,o,f,e,h=n.contents,u=n.dataTypes;u[0]==="*";)u.shift(),o===t&&(o=n.mimeType||i.getResponseHeader("Content-Type"));if(o)for(e in h)if(h[e]&&h[e].test(o)){u.unshift(e);break}if(u[0]in r)f=u[0];else{for(e in r){if(!u[0]||n.converters[e+" "+u[0]]){f=e;break}s||(s=e)}f=f||s}if(f)return f!==u[0]&&u.unshift(f),r[f]}function yo(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift(),u)if(u==="*")u=e;else if(e!=="*"&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]],f)){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}function rf(){try{return new n.XMLHttpRequest}catch(t){}}function po(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function ff(){return setTimeout(function(){it=t}),it=i.now()}function ef(n,t,i){for(var u,f=(ft[t]||[]).concat(ft["*"]),r=0,e=f.length;r<e;r++)if(u=f[r].call(i,t,n))return u}function of(n,t,r){var e,o,s=0,l=pt.length,f=i.Deferred().always(function(){delete c.elem}),c=function(){if(o)return!1;for(var s=it||ff(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,e=u.tweens.length;r<e;r++)u.tweens[r].run(i);return f.notifyWith(n,[u,i,t]),i<1&&e?t:(f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{}},r),originalProperties:t,originalOptions:r,startTime:it||ff(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(o)return this;for(o=!0;i<r;i++)u.tweens[i].run(1);return t?f.resolveWith(n,[u,t]):f.rejectWith(n,[u,t]),this}}),h=u.props;for(ko(h,u.opts.specialEasing);s<l;s++)if(e=pt[s].call(u,n,h,u.opts),e)return e;return i.map(h,ef,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),i.fx.timer(i.extend(c,{elem:n,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function ko(n,t){var r,f,e,u,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],i.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u),delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function go(n,t,r){var u,a,v,c,e,y,s=this,l={},o=n.style,h=n.nodeType&&ut(n),f=i._data(n,"fxshow");r.queue||(e=i._queueHooks(n,"fx"),e.unqueued==null&&(e.unqueued=0,y=e.empty.fire,e.empty.fire=function(){e.unqueued||y()}),e.unqueued++,s.always(function(){s.always(function(){e.unqueued--,i.queue(n,"fx").length||e.empty.fire()})})),n.nodeType===1&&("height"in t||"width"in t)&&(r.overflow=[o.overflow,o.overflowX,o.overflowY],i.css(n,"display")==="inline"&&i.css(n,"float")==="none"&&(i.support.inlineBlockNeedsLayout&&au(n.nodeName)!=="inline"?o.zoom=1:o.display="inline-block")),r.overflow&&(o.overflow="hidden",i.support.shrinkWrapBlocks||s.always(function(){o.overflow=r.overflow[0],o.overflowX=r.overflow[1],o.overflowY=r.overflow[2]}));for(u in t)if(a=t[u],wo.exec(a)){if(delete t[u],v=v||a==="toggle",a===(h?"hide":"show"))continue;l[u]=f&&f[u]||i.style(n,u)}if(!i.isEmptyObject(l)){f?"hidden"in f&&(h=f.hidden):f=i._data(n,"fxshow",{}),v&&(f.hidden=!h),h?i(n).show():s.done(function(){i(n).hide()}),s.done(function(){var t;i._removeData(n,"fxshow");for(t in l)i.style(n,t,l[t])});for(u in l)c=ef(h?f[u]:0,u,s),u in f||(f[u]=c.start,h&&(c.end=c.start,c.start=u==="width"||u==="height"?1:0))}}function f(n,t,i,r,u){return new f.prototype.init(n,t,i,r,u)}function wt(n,t){var r,i={height:n},u=0;for(t=t?1:0;u<4;u+=2-t)r=p[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function sf(n){return i.isWindow(n)?n:n.nodeType===9?n.defaultView||n.parentWindow:!1}var et,bi,o=typeof t,hf=n.location,r=n.document,ki=r.documentElement,cf=n.jQuery,lf=n.$,ot={},b=[],bt="1.10.2",di=b.concat,kt=b.push,l=b.slice,gi=b.indexOf,af=ot.toString,k=ot.hasOwnProperty,dt=bt.trim,i=function(n,t){return new i.fn.init(n,t,bi)},st=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,s=/\S+/g,vf=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,yf=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,nr=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,pf=/^[\],:{}\s]*$/,wf=/(?:^|:|,)(?:\s*\[)+/g,bf=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,kf=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,df=/^-ms-/,gf=/-([\da-z])/gi,ne=function(n,t){return t.toUpperCase()},h=function(n){(r.addEventListener||n.type==="load"||r.readyState==="complete")&&(tr(),i.ready())},tr=function(){r.addEventListener?(r.removeEventListener("DOMContentLoaded",h,!1),n.removeEventListener("load",h,!1)):(r.detachEvent("onreadystatechange",h),n.detachEvent("onload",h))},ni,ir,rr,wi,at,nt,tt,tf,vt;i.fn=i.prototype={jquery:bt,constructor:i,init:function(n,u,f){var e,o;if(!n)return this;if(typeof n=="string"){if(e=n.charAt(0)==="<"&&n.charAt(n.length-1)===">"&&n.length>=3?[null,n,null]:yf.exec(n),e&&(e[1]||!u)){if(e[1]){if(u=u instanceof i?u[0]:u,i.merge(this,i.parseHTML(e[1],u&&u.nodeType?u.ownerDocument||u:r,!0)),nr.test(e[1])&&i.isPlainObject(u))for(e in u)i.isFunction(this[e])?this[e](u[e]):this.attr(e,u[e]);return this}if(o=r.getElementById(e[2]),o&&o.parentNode){if(o.id!==e[2])return f.find(n);this.length=1,this[0]=o}return this.context=r,this.selector=n,this}return!u||u.jquery?(u||f).find(n):this.constructor(u).find(n)}return n.nodeType?(this.context=this[0]=n,this.length=1,this):i.isFunction(n)?f.ready(n):(n.selector!==t&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))},selector:"",length:0,toArray:function(){return l.call(this)},get:function(n){return n==null?this.toArray():n<0?this[this.length+n]:this[n]},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t.context=this.context,t},each:function(n,t){return i.each(this,n,t)},ready:function(n){return i.ready.promise().done(n),this},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(n<0?i:0);return this.pushStack(t>=0&&t<i?[this[t]]:[])},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:kt,sort:[].sort,splice:[].splice},i.fn.init.prototype=i.fn,i.extend=i.fn.extend=function(){var u,o,r,e,s,h,n=arguments[0]||{},f=1,l=arguments.length,c=!1;for(typeof n=="boolean"&&(c=n,n=arguments[1]||{},f=2),typeof n=="object"||i.isFunction(n)||(n={}),l===f&&(n=this,--f);f<l;f++)if((s=arguments[f])!=null)for(e in s)(u=n[e],r=s[e],n!==r)&&(c&&r&&(i.isPlainObject(r)||(o=i.isArray(r)))?(o?(o=!1,h=u&&i.isArray(u)?u:[]):h=u&&i.isPlainObject(u)?u:{},n[e]=i.extend(c,h,r)):r!==t&&(n[e]=r));return n},i.extend({expando:"jQuery"+(bt+Math.random()).replace(/\D/g,""),noConflict:function(t){return n.$===i&&(n.$=lf),t&&n.jQuery===i&&(n.jQuery=cf),i},isReady:!1,readyWait:1,holdReady:function(n){n?i.readyWait++:i.ready(!0)},ready:function(n){if(n===!0?!--i.readyWait:!i.isReady){if(!r.body)return setTimeout(i.ready);(i.isReady=!0,n!==!0&&--i.readyWait>0)||(et.resolveWith(r,[i]),i.fn.trigger&&i(r).trigger("ready").off("ready"))}},isFunction:function(n){return i.type(n)==="function"},isArray:Array.isArray||function(n){return i.type(n)==="array"},isWindow:function(n){return n!=null&&n==n.window},isNumeric:function(n){return!isNaN(parseFloat(n))&&isFinite(n)},type:function(n){return n==null?String(n):typeof n=="object"||typeof n=="function"?ot[af.call(n)]||"object":typeof n},isPlainObject:function(n){var r;if(!n||i.type(n)!=="object"||n.nodeType||i.isWindow(n))return!1;try{if(n.constructor&&!k.call(n,"constructor")&&!k.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(u){return!1}if(i.support.ownLast)for(r in n)return k.call(n,r);for(r in n);return r===t||k.call(n,r)},isEmptyObject:function(n){var t;for(t in n)return!1;return!0},error:function(n){throw new Error(n);},parseHTML:function(n,t,u){if(!n||typeof n!="string")return null;typeof t=="boolean"&&(u=t,t=!1),t=t||r;var f=nr.exec(n),e=!u&&[];return f?[t.createElement(f[1])]:(f=i.buildFragment([n],t,e),e&&i(e).remove(),i.merge([],f.childNodes))},parseJSON:function(t){if(n.JSON&&n.JSON.parse)return n.JSON.parse(t);if(t===null)return t;if(typeof t=="string"&&(t=i.trim(t),t&&pf.test(t.replace(bf,"@").replace(kf,"]").replace(wf,""))))return new Function("return "+t)();i.error("Invalid JSON: "+t)},parseXML:function(r){var u,f;if(!r||typeof r!="string")return null;try{n.DOMParser?(f=new DOMParser,u=f.parseFromString(r,"text/xml")):(u=new ActiveXObject("Microsoft.XMLDOM"),u.async="false",u.loadXML(r))}catch(e){u=t}return u&&u.documentElement&&!u.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+r),u},noop:function(){},globalEval:function(t){t&&i.trim(t)&&(n.execScript||function(t){n.eval.call(n,t)})(t)},camelCase:function(n){return n.replace(df,"ms-").replace(gf,ne)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},each:function(n,t,i){var u,r=0,f=n.length,e=gt(n);if(i){if(e){for(;r<f;r++)if(u=t.apply(n[r],i),u===!1)break}else for(r in n)if(u=t.apply(n[r],i),u===!1)break}else if(e){for(;r<f;r++)if(u=t.call(n[r],r,n[r]),u===!1)break}else for(r in n)if(u=t.call(n[r],r,n[r]),u===!1)break;return n},trim:dt&&!dt.call("﻿ ")?function(n){return n==null?"":dt.call(n)}:function(n){return n==null?"":(n+"").replace(vf,"")},makeArray:function(n,t){var r=t||[];return n!=null&&(gt(Object(n))?i.merge(r,typeof n=="string"?[n]:n):kt.call(r,n)),r},inArray:function(n,t,i){var r;if(t){if(gi)return gi.call(t,n,i);for(r=t.length,i=i?i<0?Math.max(0,r+i):i:0;i<r;i++)if(i in t&&t[i]===n)return i}return-1},merge:function(n,i){var f=i.length,u=n.length,r=0;if(typeof f=="number")for(;r<f;r++)n[u++]=i[r];else while(i[r]!==t)n[u++]=i[r++];return n.length=u,n},grep:function(n,t,i){var u,f=[],r=0,e=n.length;for(i=!!i;r<e;r++)u=!!t(n[r],r),i!==u&&f.push(n[r]);return f},map:function(n,t,i){var u,r=0,e=n.length,o=gt(n),f=[];if(o)for(;r<e;r++)u=t(n[r],r,i),u!=null&&(f[f.length]=u);else for(r in n)u=t(n[r],r,i),u!=null&&(f[f.length]=u);return di.apply([],f)},guid:1,proxy:function(n,r){var f,u,e;return(typeof r=="string"&&(e=n[r],r=n,n=e),!i.isFunction(n))?t:(f=l.call(arguments,2),u=function(){return n.apply(r||this,f.concat(l.call(arguments)))},u.guid=n.guid=n.guid||i.guid++,u)},access:function(n,r,u,f,e,o,s){var h=0,l=n.length,c=u==null;if(i.type(u)==="object"){e=!0;for(h in u)i.access(n,r,h,u[h],!0,o,s)}else if(f!==t&&(e=!0,i.isFunction(f)||(s=!0),c&&(s?(r.call(n,f),r=null):(c=r,r=function(n,t,r){return c.call(i(n),r)})),r))for(;h<l;h++)r(n[h],u,s?f:f.call(n[h],h,r(n[h],u)));return e?n:c?r.call(n):l?r(n[0],u):o},now:function(){return+new Date},swap:function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f}}),i.ready.promise=function(t){if(!et)if(et=i.Deferred(),r.readyState==="complete")setTimeout(i.ready);else if(r.addEventListener)r.addEventListener("DOMContentLoaded",h,!1),n.addEventListener("load",h,!1);else{r.attachEvent("onreadystatechange",h),n.attachEvent("onload",h);var u=!1;try{u=n.frameElement==null&&r.documentElement}catch(e){}u&&u.doScroll&&function f(){if(!i.isReady){try{u.doScroll("left")}catch(n){return setTimeout(f,50)}tr(),i.ready()}}()}return et.promise(t)},i.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(n,t){ot["[object "+t+"]"]=t.toLowerCase()}),bi=i(r),function(n,t){function u(n,t,i,r){var p,u,f,l,w,a,k,c,g,d;if((t?t.ownerDocument||t:y)!==s&&nt(t),t=t||s,i=i||[],!n||typeof n!="string")return i;if((l=t.nodeType)!==1&&l!==9)return[];if(v&&!r){if(p=or.exec(n))if(f=p[1]){if(l===9)if(u=t.getElementById(f),u&&u.parentNode){if(u.id===f)return i.push(u),i}else return i;else if(t.ownerDocument&&(u=t.ownerDocument.getElementById(f))&&ot(t,u)&&u.id===f)return i.push(u),i}else{if(p[2])return b.apply(i,t.getElementsByTagName(n)),i;if((f=p[3])&&e.getElementsByClassName&&t.getElementsByClassName)return b.apply(i,t.getElementsByClassName(f)),i}if(e.qsa&&(!h||!h.test(n))){if(c=k=o,g=t,d=l===9&&n,l===1&&t.nodeName.toLowerCase()!=="object"){for(a=pt(n),(k=t.getAttribute("id"))?c=k.replace(cr,"\\$&"):t.setAttribute("id",c),c="[id='"+c+"'] ",w=a.length;w--;)a[w]=c+wt(a[w]);g=ti.test(n)&&t.parentNode||t,d=a.join(",")}if(d)try{return b.apply(i,g.querySelectorAll(d)),i}catch(tt){}finally{k||t.removeAttribute("id")}}}return pr(n.replace(vt,"$1"),t,i,r)}function ri(){function n(i,u){return t.push(i+=" ")>r.cacheLength&&delete n[t.shift()],n[i]=u}var t=[];return n}function c(n){return n[o]=!0,n}function l(n){var t=s.createElement("div");try{return!!n(t)}catch(i){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ui(n,t){for(var u=n.split("|"),i=n.length;i--;)r.attrHandle[u[i]]=t}function bi(n,t){var i=t&&n,r=i&&n.nodeType===1&&t.nodeType===1&&(~t.sourceIndex||vi)-(~n.sourceIndex||vi);if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function lr(n){return function(t){var i=t.nodeName.toLowerCase();return i==="input"&&t.type===n}}function ar(n){return function(t){var i=t.nodeName.toLowerCase();return(i==="input"||i==="button")&&t.type===n}}function rt(n){return c(function(t){return t=+t,c(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ki(){}function pt(n,t){var e,f,s,o,i,h,c,l=li[n+" "];if(l)return t?0:l.slice(0);for(i=n,h=[],c=r.preFilter;i;){(!e||(f=ir.exec(i)))&&(f&&(i=i.slice(f[0].length)||i),h.push(s=[])),e=!1,(f=rr.exec(i))&&(e=f.shift(),s.push({value:e,type:f[0].replace(vt," ")}),i=i.slice(e.length));for(o in r.filter)(f=yt[o].exec(i))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),i=i.slice(e.length));if(!e)break}return t?i.length:i?u.error(n):li(n,h).slice(0)}function wt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function fi(n,t,i){var r=t.dir,u=i&&r==="parentNode",f=di++;return t.first?function(t,i,f){while(t=t[r])if(t.nodeType===1||u)return n(t,i,f)}:function(t,i,e){var h,s,c,l=p+" "+f;if(e){while(t=t[r])if((t.nodeType===1||u)&&n(t,i,e))return!0}else while(t=t[r])if(t.nodeType===1||u)if(c=t[o]||(t[o]={}),(s=c[r])&&s[0]===l){if((h=s[1])===!0||h===ht)return h===!0}else if(s=c[r]=[l],s[1]=n(t,i,e)||ht,s[1]===!0)return!0}}function ei(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function bt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=t!=null;f<s;f++)(e=n[f])&&(!i||i(e,r,u))&&(o.push(e),h&&t.push(f));return o}function oi(n,t,i,r,u,f){return r&&!r[o]&&(r=oi(r)),u&&!u[o]&&(u=oi(u,f)),c(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,k=f||yr(t||"*",o.nodeType?[o]:o,[]),v=n&&(f||!t)?bt(k,p,n,o,s):k,h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=bt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?it.call(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=bt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):b.apply(e,h)})}function si(n){for(var s,u,i,e=n.length,h=r.relative[n[0].type],c=h||r.relative[" "],t=h?1:0,l=fi(function(n){return n===s},c,!0),a=fi(function(n){return it.call(s,n)>-1},c,!0),f=[function(n,t,i){return!h&&(i||t!==lt)||((s=t).nodeType?l(n,t,i):a(n,t,i))}];t<e;t++)if(u=r.relative[n[t].type])f=[fi(ei(f),u)];else{if(u=r.filter[n[t].type].apply(null,n[t].matches),u[o]){for(i=++t;i<e;i++)if(r.relative[n[i].type])break;return oi(t>1&&ei(f),t>1&&wt(n.slice(0,t-1).concat({value:n[t-2].type===" "?"*":""})).replace(vt,"$1"),u,t<i&&si(n.slice(t,i)),i<e&&si(n=n.slice(i)),i<e&&wt(n))}f.push(u)}return ei(f)}function vr(n,t){var f=0,i=t.length>0,e=n.length>0,o=function(o,h,c,l,a){var y,g,k,w=[],d=0,v="0",nt=o&&[],tt=a!=null,it=lt,ut=o||e&&r.find.TAG("*",a&&h.parentNode||h),rt=p+=it==null?1:Math.random()||.1;for(tt&&(lt=h!==s&&h,ht=f);(y=ut[v])!=null;v++){if(e&&y){for(g=0;k=n[g++];)if(k(y,h,c)){l.push(y);break}tt&&(p=rt,ht=++f)}i&&((y=!k&&y)&&d--,o&&nt.push(y))}if(d+=v,i&&v!==d){for(g=0;k=t[g++];)k(nt,w,h,c);if(o){if(d>0)while(v--)nt[v]||w[v]||(w[v]=nr.call(l));w=bt(w)}b.apply(l,w),tt&&!o&&w.length>0&&d+t.length>1&&u.uniqueSort(l)}return tt&&(p=rt,lt=it),nt};return i?c(o):o}function yr(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}function pr(n,t,i,u){var s,f,o,c,l,h=pt(n);if(!u&&h.length===1){if(f=h[0]=h[0].slice(0),f.length>2&&(o=f[0]).type==="ID"&&e.getById&&t.nodeType===9&&v&&r.relative[f[1].type]){if(t=(r.find.ID(o.matches[0].replace(k,d),t)||[])[0],!t)return i;n=n.slice(f.shift().value.length)}for(s=yt.needsContext.test(n)?0:f.length;s--;){if(o=f[s],r.relative[c=o.type])break;if((l=r.find[c])&&(u=l(o.matches[0].replace(k,d),ti.test(f[0].type)&&t.parentNode||t))){if(f.splice(s,1),n=u.length&&wt(f),!n)return b.apply(i,u),i;break}}}return kt(n,h)(u,t,!v,i,ti.test(n)),i}var ut,e,ht,r,ct,hi,kt,lt,g,nt,s,a,v,h,tt,at,ot,o="sizzle"+-new Date,y=n.document,p=0,di=0,ci=ri(),li=ri(),ai=ri(),ft=!1,dt=function(n,t){return n===t?(ft=!0,0):0},st=typeof t,vi=-2147483648,gi={}.hasOwnProperty,w=[],nr=w.pop,tr=w.push,b=w.push,yi=w.slice,it=w.indexOf||function(n){for(var t=0,i=this.length;t<i;t++)if(this[t]===n)return t;return-1},gt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",f="[\\x20\\t\\r\\n\\f]",et="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",pi=et.replace("w","w#"),wi="\\["+f+"*("+et+")"+f+"*(?:([*^$|!~]?=)"+f+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+pi+")|)|)"+f+"*\\]",ni=":("+et+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+wi.replace(3,8)+")*)|.*)\\)|)",vt=new RegExp("^"+f+"+|((?:^|[^\\\\])(?:\\\\.)*)"+f+"+$","g"),ir=new RegExp("^"+f+"*,"+f+"*"),rr=new RegExp("^"+f+"*([>+~]|"+f+")"+f+"*"),ti=new RegExp(f+"*[+~]"),ur=new RegExp("="+f+"*([^\\]'\"]*)"+f+"*\\]","g"),fr=new RegExp(ni),er=new RegExp("^"+pi+"$"),yt={ID:new RegExp("^#("+et+")"),CLASS:new RegExp("^\\.("+et+")"),TAG:new RegExp("^("+et.replace("w","w*")+")"),ATTR:new RegExp("^"+wi),PSEUDO:new RegExp("^"+ni),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+f+"*(even|odd|(([+-]|)(\\d*)n|)"+f+"*(?:([+-]|)"+f+"*(\\d+)|))"+f+"*\\)|)","i"),bool:new RegExp("^(?:"+gt+")$","i"),needsContext:new RegExp("^"+f+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+f+"*((?:-\\d)?\\d*)"+f+"*\\)|)(?=[^-]|$)","i")},ii=/^[^{]+\{\s*\[native \w/,or=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,sr=/^(?:input|select|textarea|button)$/i,hr=/^h\d$/i,cr=/'|\\/g,k=new RegExp("\\\\([\\da-f]{1,6}"+f+"?|("+f+")|.)","ig"),d=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)};try{b.apply(w=yi.call(y.childNodes),y.childNodes),w[y.childNodes.length].nodeType}catch(wr){b={apply:w.length?function(n,t){tr.apply(n,yi.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}hi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?t.nodeName!=="HTML":!1},e=u.support={},nt=u.setDocument=function(n){var t=n?n.ownerDocument||n:y,i=t.defaultView;return t===s||t.nodeType!==9||!t.documentElement?s:(s=t,a=t.documentElement,v=!hi(t),i&&i.attachEvent&&i!==i.top&&i.attachEvent("onbeforeunload",function(){nt()}),e.attributes=l(function(n){return n.className="i",!n.getAttribute("className")}),e.getElementsByTagName=l(function(n){return n.appendChild(t.createComment("")),!n.getElementsByTagName("*").length}),e.getElementsByClassName=l(function(n){return n.innerHTML="<div class='a'><\/div><div class='a i'><\/div>",n.firstChild.className="i",n.getElementsByClassName("i").length===2}),e.getById=l(function(n){return a.appendChild(n).id=o,!t.getElementsByName||!t.getElementsByName(o).length}),e.getById?(r.find.ID=function(n,t){if(typeof t.getElementById!==st&&v){var i=t.getElementById(n);return i&&i.parentNode?[i]:[]}},r.filter.ID=function(n){var t=n.replace(k,d);return function(n){return n.getAttribute("id")===t}}):(delete r.find.ID,r.filter.ID=function(n){var t=n.replace(k,d);return function(n){var i=typeof n.getAttributeNode!==st&&n.getAttributeNode("id");return i&&i.value===t}}),r.find.TAG=e.getElementsByTagName?function(n,t){if(typeof t.getElementsByTagName!==st)return t.getElementsByTagName(n)}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if(n==="*"){while(i=u[f++])i.nodeType===1&&r.push(i);return r}return u},r.find.CLASS=e.getElementsByClassName&&function(n,t){if(typeof t.getElementsByClassName!==st&&v)return t.getElementsByClassName(n)},tt=[],h=[],(e.qsa=ii.test(t.querySelectorAll))&&(l(function(n){n.innerHTML="<select><option selected=''><\/option><\/select>",n.querySelectorAll("[selected]").length||h.push("\\["+f+"*(?:value|"+gt+")"),n.querySelectorAll(":checked").length||h.push(":checked")}),l(function(n){var i=t.createElement("input");i.setAttribute("type","hidden"),n.appendChild(i).setAttribute("t",""),n.querySelectorAll("[t^='']").length&&h.push("[*^$]="+f+"*(?:''|\"\")"),n.querySelectorAll(":enabled").length||h.push(":enabled",":disabled"),n.querySelectorAll("*,:x"),h.push(",.*:")})),(e.matchesSelector=ii.test(at=a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&l(function(n){e.disconnectedMatch=at.call(n,"div"),at.call(n,"[s!='']:x"),tt.push("!=",ni)}),h=h.length&&new RegExp(h.join("|")),tt=tt.length&&new RegExp(tt.join("|")),ot=ii.test(a.contains)||a.compareDocumentPosition?function(n,t){var r=n.nodeType===9?n.documentElement:n,i=t&&t.parentNode;return n===i||!!(i&&i.nodeType===1&&(r.contains?r.contains(i):n.compareDocumentPosition&&n.compareDocumentPosition(i)&16))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},dt=a.compareDocumentPosition?function(n,i){if(n===i)return ft=!0,0;var r=i.compareDocumentPosition&&n.compareDocumentPosition&&n.compareDocumentPosition(i);return r?r&1||!e.sortDetached&&i.compareDocumentPosition(n)===r?n===t||ot(y,n)?-1:i===t||ot(y,i)?1:g?it.call(g,n)-it.call(g,i):0:r&4?-1:1:n.compareDocumentPosition?-1:1}:function(n,i){var r,u=0,o=n.parentNode,s=i.parentNode,f=[n],e=[i];if(n===i)return ft=!0,0;if(o&&s){if(o===s)return bi(n,i)}else return n===t?-1:i===t?1:o?-1:s?1:g?it.call(g,n)-it.call(g,i):0;for(r=n;r=r.parentNode;)f.unshift(r);for(r=i;r=r.parentNode;)e.unshift(r);while(f[u]===e[u])u++;return u?bi(f[u],e[u]):f[u]===y?-1:e[u]===y?1:0},t)},u.matches=function(n,t){return u(n,null,null,t)},u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==s&&nt(n),t=t.replace(ur,"='$1']"),e.matchesSelector&&v&&(!tt||!tt.test(t))&&(!h||!h.test(t)))try{var i=at.call(n,t);if(i||e.disconnectedMatch||n.document&&n.document.nodeType!==11)return i}catch(r){}return u(t,s,null,[n]).length>0},u.contains=function(n,t){return(n.ownerDocument||n)!==s&&nt(n),ot(n,t)},u.attr=function(n,i){(n.ownerDocument||n)!==s&&nt(n);var f=r.attrHandle[i.toLowerCase()],u=f&&gi.call(r.attrHandle,i.toLowerCase())?f(n,i,!v):t;return u===t?e.attributes||!v?n.getAttribute(i):(u=n.getAttributeNode(i))&&u.specified?u.value:null:u},u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);},u.uniqueSort=function(n){var r,u=[],t=0,i=0;if(ft=!e.detectDuplicates,g=!e.sortStable&&n.slice(0),n.sort(dt),ft){while(r=n[i++])r===n[i]&&(t=u.push(i));while(t--)n.splice(u[t],1)}return n},ct=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(t===1||t===9||t===11){if(typeof n.textContent=="string")return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=ct(n)}else if(t===3||t===4)return n.nodeValue}else for(;r=n[u];u++)i+=ct(r);return i},r=u.selectors={cacheLength:50,createPseudo:c,match:yt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(k,d),n[3]=(n[4]||n[5]||"").replace(k,d),n[2]==="~="&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),n[1].slice(0,3)==="nth"?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*(n[3]==="even"||n[3]==="odd")),n[5]=+(n[7]+n[8]||n[3]==="odd")):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var r,i=!n[5]&&n[2];return yt.CHILD.test(n[0])?null:(n[3]&&n[4]!==t?n[2]=n[4]:i&&fr.test(i)&&(r=pt(i,!0))&&(r=i.indexOf(")",i.length-r)-i.length)&&(n[0]=n[0].slice(0,r),n[2]=i.slice(0,r)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(k,d).toLowerCase();return n==="*"?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=ci[n+" "];return t||(t=new RegExp("(^|"+f+")"+n+"("+f+"|$)"))&&ci(n,function(n){return t.test(typeof n.className=="string"&&n.className||typeof n.getAttribute!==st&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return f==null?t==="!=":t?(f+="",t==="="?f===i:t==="!="?f!==i:t==="^="?i&&f.indexOf(i)===0:t==="*="?i&&f.indexOf(i)>-1:t==="$="?i&&f.slice(-i.length)===i:t==="~="?(" "+f+" ").indexOf(i)>-1:t==="|="?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s=n.slice(0,3)!=="nth",e=n.slice(-4)!=="last",f=t==="of-type";return r===1&&u===0?function(n){return!!n.parentNode}:function(t,i,h){var a,k,c,l,v,w,b=s!==e?"nextSibling":"previousSibling",y=t.parentNode,g=f&&t.nodeName.toLowerCase(),d=!h&&!f;if(y){if(s){while(b){for(c=t;c=c[b];)if(f?c.nodeName.toLowerCase()===g:c.nodeType===1)return!1;w=b=n==="only"&&!w&&"nextSibling"}return!0}if(w=[e?y.firstChild:y.lastChild],e&&d){for(k=y[o]||(y[o]={}),a=k[n]||[],v=a[0]===p&&a[1],l=a[0]===p&&a[2],c=v&&y.childNodes[v];c=++v&&c&&c[b]||(l=v=0)||w.pop();)if(c.nodeType===1&&++l&&c===t){k[n]=[p,v,l];break}}else if(d&&(a=(t[o]||(t[o]={}))[n])&&a[0]===p)l=a[1];else while(c=++v&&c&&c[b]||(l=v=0)||w.pop())if((f?c.nodeName.toLowerCase()===g:c.nodeType===1)&&++l&&(d&&((c[o]||(c[o]={}))[n]=[p,l]),c===t))break;return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,t){var f,i=r.pseudos[n]||r.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return i[o]?i(t):i.length>1?(f=[n,n,"",t],r.setFilters.hasOwnProperty(n.toLowerCase())?c(function(n,r){for(var u,f=i(n,t),e=f.length;e--;)u=it.call(n,f[e]),n[u]=!(r[u]=f[e])}):function(n){return i(n,0,f)}):i}},pseudos:{not:c(function(n){var i=[],r=[],t=kt(n.replace(vt,"$1"));return t[o]?c(function(n,i,r,u){for(var e,o=t(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(i[f]=e))}):function(n,u,f){return i[0]=n,t(i,null,f,r),!r.pop()}}),has:c(function(n){return function(t){return u(n,t).length>0}}),contains:c(function(n){return function(t){return(t.textContent||t.innerText||ct(t)).indexOf(n)>-1}}),lang:c(function(n){return er.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(k,d).toLowerCase(),function(t){var i;do if(i=v?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||i.indexOf(n+"-")===0;while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===a},focus:function(n){return n===s.activeElement&&(!s.hasFocus||s.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:function(n){return n.disabled===!1},disabled:function(n){return n.disabled===!0},checked:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&!!n.checked||t==="option"&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeName>"@"||n.nodeType===3||n.nodeType===4)return!1;return!0},parent:function(n){return!r.pseudos.empty(n)},header:function(n){return hr.test(n.nodeName)},input:function(n){return sr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&n.type==="button"||t==="button"},text:function(n){var t;return n.nodeName.toLowerCase()==="input"&&n.type==="text"&&((t=n.getAttribute("type"))==null||t.toLowerCase()===n.type)},first:rt(function(){return[0]}),last:rt(function(n,t){return[t-1]}),eq:rt(function(n,t,i){return[i<0?i+t:i]}),even:rt(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:rt(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:rt(function(n,t,i){for(var r=i<0?i+t:i;--r>=0;)n.push(r);return n}),gt:rt(function(n,t,i){for(var r=i<0?i+t:i;++r<t;)n.push(r);return n})}},r.pseudos.nth=r.pseudos.eq;for(ut in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[ut]=lr(ut);for(ut in{submit:!0,reset:!0})r.pseudos[ut]=ar(ut);ki.prototype=r.filters=r.pseudos,r.setFilters=new ki,kt=u.compile=function(n,t){var r,u=[],f=[],i=ai[n+" "];if(!i){for(t||(t=pt(n)),r=t.length;r--;)i=si(t[r]),i[o]?u.push(i):f.push(i);i=ai(n,vr(f,u))}return i},e.sortStable=o.split("").sort(dt).join("")===o,e.detectDuplicates=ft,nt(),e.sortDetached=l(function(n){return n.compareDocumentPosition(s.createElement("div"))&1}),l(function(n){return n.innerHTML="<a href='#'><\/a>",n.firstChild.getAttribute("href")==="#"})||ui("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,t.toLowerCase()==="type"?1:2)}),e.attributes&&l(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),n.firstChild.getAttribute("value")===""})||ui("value",function(n,t,i){if(!i&&n.nodeName.toLowerCase()==="input")return n.defaultValue}),l(function(n){return n.getAttribute("disabled")==null})||ui(gt,function(n,t,i){var r;if(!i)return(r=n.getAttributeNode(t))&&r.specified?r.value:n[t]===!0?t.toLowerCase():null}),i.find=u,i.expr=u.selectors,i.expr[":"]=i.expr.pseudos,i.unique=u.uniqueSort,i.text=u.getText,i.isXMLDoc=u.isXML,i.contains=u.contains}(n),ni={},i.Callbacks=function(n){n=typeof n=="string"?ni[n]||te(n):i.extend({},n);var s,f,c,e,o,l,r=[],u=!n.once&&[],a=function(t){for(f=n.memory&&t,c=!0,o=l||0,l=0,e=r.length,s=!0;r&&o<e;o++)if(r[o].apply(t[0],t[1])===!1&&n.stopOnFalse){f=!1;break}s=!1,r&&(u?u.length&&a(u.shift()):f?r=[]:h.disable())},h={add:function(){if(r){var t=r.length;(function u(t){i.each(t,function(t,f){var e=i.type(f);e==="function"?n.unique&&h.has(f)||r.push(f):f&&f.length&&e!=="string"&&u(f)})})(arguments),s?e=r.length:f&&(l=t,a(f))}return this},remove:function(){return r&&i.each(arguments,function(n,t){for(var u;(u=i.inArray(t,r,u))>-1;)r.splice(u,1),s&&(u<=e&&e--,u<=o&&o--)}),this},has:function(n){return n?i.inArray(n,r)>-1:!!(r&&r.length)},empty:function(){return r=[],e=0,this},disable:function(){return r=u=f=t,this},disabled:function(){return!r},lock:function(){return u=t,f||h.disable(),this},locked:function(){return!u},fireWith:function(n,t){return r&&(!c||u)&&(t=t||[],t=[n,t.slice?t.slice():t],s?u.push(t):a(t)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!c}};return h},i.extend({Deferred:function(n){var u=[["resolve","done",i.Callbacks("once memory"),"resolved"],["reject","fail",i.Callbacks("once memory"),"rejected"],["notify","progress",i.Callbacks("memory")]],f="pending",r={state:function(){return f},always:function(){return t.done(arguments).fail(arguments),this},then:function(){var n=arguments;return i.Deferred(function(f){i.each(u,function(u,e){var s=e[0],o=i.isFunction(n[u])&&n[u];t[e[1]](function(){var n=o&&o.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().done(f.resolve).fail(f.reject).progress(f.notify):f[s+"With"](this===r?f.promise():this,o?[n]:arguments)})}),n=null}).promise()},promise:function(n){return n!=null?i.extend(n,r):r}},t={};return r.pipe=r.then,i.each(u,function(n,i){var e=i[2],o=i[3];r[i[1]]=e.add,o&&e.add(function(){f=o},u[n^1][2].disable,u[2][2].lock),t[i[0]]=function(){return t[i[0]+"With"](this===t?r:this,arguments),this},t[i[0]+"With"]=e.fireWith}),r.promise(t),n&&n.call(t,t),t},when:function(n){var t=0,u=l.call(arguments),r=u.length,e=r!==1||n&&i.isFunction(n.promise)?r:0,f=e===1?n:i.Deferred(),h=function(n,t,i){return function(r){t[n]=this,i[n]=arguments.length>1?l.call(arguments):r,i===o?f.notifyWith(t,i):--e||f.resolveWith(t,i)}},o,c,s;if(r>1)for(o=new Array(r),c=new Array(r),s=new Array(r);t<r;t++)u[t]&&i.isFunction(u[t].promise)?u[t].promise().done(h(t,s,u)).fail(f.reject).progress(h(t,c,o)):--e;return e||f.resolveWith(s,u),f.promise()}}),i.support=function(t){var a,e,f,h,c,l,v,y,s,u=r.createElement("div");if(u.setAttribute("className","t"),u.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>",a=u.getElementsByTagName("*")||[],e=u.getElementsByTagName("a")[0],!e||!e.style||!a.length)return t;h=r.createElement("select"),l=h.appendChild(r.createElement("option")),f=u.getElementsByTagName("input")[0],e.style.cssText="top:1px;float:left;opacity:.5",t.getSetAttribute=u.className!=="t",t.leadingWhitespace=u.firstChild.nodeType===3,t.tbody=!u.getElementsByTagName("tbody").length,t.htmlSerialize=!!u.getElementsByTagName("link").length,t.style=/top/.test(e.getAttribute("style")),t.hrefNormalized=e.getAttribute("href")==="/a",t.opacity=/^0.5/.test(e.style.opacity),t.cssFloat=!!e.style.cssFloat,t.checkOn=!!f.value,t.optSelected=l.selected,t.enctype=!!r.createElement("form").enctype,t.html5Clone=r.createElement("nav").cloneNode(!0).outerHTML!=="<:nav><\/:nav>",t.inlineBlockNeedsLayout=!1,t.shrinkWrapBlocks=!1,t.pixelPosition=!1,t.deleteExpando=!0,t.noCloneEvent=!0,t.reliableMarginRight=!0,t.boxSizingReliable=!0,f.checked=!0,t.noCloneChecked=f.cloneNode(!0).checked,h.disabled=!0,t.optDisabled=!l.disabled;try{delete u.test}catch(p){t.deleteExpando=!1}f=r.createElement("input"),f.setAttribute("value",""),t.input=f.getAttribute("value")==="",f.value="t",f.setAttribute("type","radio"),t.radioValue=f.value==="t",f.setAttribute("checked","t"),f.setAttribute("name","t"),c=r.createDocumentFragment(),c.appendChild(f),t.appendChecked=f.checked,t.checkClone=c.cloneNode(!0).cloneNode(!0).lastChild.checked,u.attachEvent&&(u.attachEvent("onclick",function(){t.noCloneEvent=!1}),u.cloneNode(!0).click());for(s in{submit:!0,change:!0,focusin:!0})u.setAttribute(v="on"+s,"t"),t[s+"Bubbles"]=v in n||u.attributes[v].expando===!1;u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle=u.style.backgroundClip==="content-box";for(s in i(t))break;return t.ownLast=s!=="0",i(function(){var h,e,f,c="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",s=r.getElementsByTagName("body")[0];s&&(h=r.createElement("div"),h.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",s.appendChild(h).appendChild(u),u.innerHTML="<table><tr><td><\/td><td>t<\/td><\/tr><\/table>",f=u.getElementsByTagName("td"),f[0].style.cssText="padding:0;margin:0;border:0;display:none",y=f[0].offsetHeight===0,f[0].style.display="",f[1].style.display="none",t.reliableHiddenOffsets=y&&f[0].offsetHeight===0,u.innerHTML="",u.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",i.swap(s,s.style.zoom!=null?{zoom:1}:{},function(){t.boxSizing=u.offsetWidth===4}),n.getComputedStyle&&(t.pixelPosition=(n.getComputedStyle(u,null)||{}).top!=="1%",t.boxSizingReliable=(n.getComputedStyle(u,null)||{width:"4px"}).width==="4px",e=u.appendChild(r.createElement("div")),e.style.cssText=u.style.cssText=c,e.style.marginRight=e.style.width="0",u.style.width="1px",t.reliableMarginRight=!parseFloat((n.getComputedStyle(e,null)||{}).marginRight)),typeof u.style.zoom!==o&&(u.innerHTML="",u.style.cssText=c+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=u.offsetWidth===3,u.style.display="block",u.innerHTML="<div><\/div>",u.firstChild.style.width="5px",t.shrinkWrapBlocks=u.offsetWidth!==3,t.inlineBlockNeedsLayout&&(s.style.zoom=1)),s.removeChild(h),h=u=f=e=null)}),a=h=c=l=e=f=null,t}({}),ir=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,rr=/([A-Z])/g,i.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(n){return n=n.nodeType?i.cache[n[i.expando]]:n[i.expando],!!n&&!ti(n)},data:function(n,t,i){return ur(n,t,i)},removeData:function(n,t){return fr(n,t)},_data:function(n,t,i){return ur(n,t,i,!0)},_removeData:function(n,t){return fr(n,t,!0)},acceptData:function(n){if(n.nodeType&&n.nodeType!==1&&n.nodeType!==9)return!1;var t=n.nodeName&&i.noData[n.nodeName.toLowerCase()];return!t||t!==!0&&n.getAttribute("classid")===t}}),i.fn.extend({data:function(n,r){var e,f,o=null,s=0,u=this[0];if(n===t){if(this.length&&(o=i.data(u),u.nodeType===1&&!i._data(u,"parsedAttrs"))){for(e=u.attributes;s<e.length;s++)f=e[s].name,f.indexOf("data-")===0&&(f=i.camelCase(f.slice(5)),er(u,f,o[f]));i._data(u,"parsedAttrs",!0)}return o}return typeof n=="object"?this.each(function(){i.data(this,n)}):arguments.length>1?this.each(function(){i.data(this,n,r)}):u?er(u,n,i.data(u,n)):null},removeData:function(n){return this.each(function(){i.removeData(this,n)})}}),i.extend({queue:function(n,t,r){var u;if(n)return t=(t||"fx")+"queue",u=i._data(n,t),r&&(!u||i.isArray(r)?u=i._data(n,t,i.makeArray(r)):u.push(r)),u||[]},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};u==="inprogress"&&(u=r.shift(),e--),u&&(t==="fx"&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f)),!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var r=t+"queueHooks";return i._data(n,r)||i._data(n,r,{empty:i.Callbacks("once memory").add(function(){i._removeData(n,t+"queue"),i._removeData(n,r)})})}}),i.fn.extend({queue:function(n,r){var u=2;return(typeof n!="string"&&(r=n,n="fx",u--),arguments.length<u)?i.queue(this[0],n):r===t?this:this.each(function(){var t=i.queue(this,n,r);i._queueHooks(this,n),n==="fx"&&t[0]!=="inprogress"&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},delay:function(n,t){return n=i.fx?i.fx.speeds[n]||n:n,t=t||"fx",this.queue(t,function(t,i){var r=setTimeout(t,n);i.stop=function(){clearTimeout(r)}})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,r){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for(typeof n!="string"&&(r=n,n=t),n=n||"fx";s--;)u=i._data(f[s],n+"queueHooks"),u&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(r)}});var d,or,ii=/[\t\r\n\f]/g,ie=/\r/g,re=/^(?:input|select|textarea|button|object)$/i,ue=/^(?:a|area)$/i,ri=/^(?:checked|selected)$/i,a=i.support.getSetAttribute,ht=i.support.input;i.fn.extend({attr:function(n,t){return i.access(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})},prop:function(n,t){return i.access(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return n=i.propFix[n]||n,this.each(function(){try{this[n]=t,delete this[n]}catch(i){}})},addClass:function(n){var e,t,r,u,o,f=0,h=this.length,c=typeof n=="string"&&n;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,this.className))});if(c)for(e=(n||"").match(s)||[];f<h;f++)if(t=this[f],r=t.nodeType===1&&(t.className?(" "+t.className+" ").replace(ii," "):" "),r){for(o=0;u=e[o++];)r.indexOf(" "+u+" ")<0&&(r+=u+" ");t.className=i.trim(r)}return this},removeClass:function(n){var e,r,t,u,o,f=0,h=this.length,c=arguments.length===0||typeof n=="string"&&n;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,this.className))});if(c)for(e=(n||"").match(s)||[];f<h;f++)if(r=this[f],t=r.nodeType===1&&(r.className?(" "+r.className+" ").replace(ii," "):""),t){for(o=0;u=e[o++];)while(t.indexOf(" "+u+" ")>=0)t=t.replace(" "+u+" "," ");r.className=n?i.trim(t):""}return this},toggleClass:function(n,t){var r=typeof n;return typeof t=="boolean"&&r==="string"?t?this.addClass(n):this.removeClass(n):i.isFunction(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,this.className,t),t)}):this.each(function(){if(r==="string")for(var t,f=0,u=i(this),e=n.match(s)||[];t=e[f++];)u.hasClass(t)?u.removeClass(t):u.addClass(t);else(r===o||r==="boolean")&&(this.className&&i._data(this,"__className__",this.className),this.className=this.className||n===!1?"":i._data(this,"__className__")||"")})},hasClass:function(n){for(var i=" "+n+" ",t=0,r=this.length;t<r;t++)if(this[t].nodeType===1&&(" "+this[t].className+" ").replace(ii," ").indexOf(i)>=0)return!0;return!1},val:function(n){var u,r,e,f=this[0];return arguments.length?(e=i.isFunction(n),this.each(function(u){var f;this.nodeType===1&&(f=e?n.call(this,u,i(this).val()):n,f==null?f="":typeof f=="number"?f+="":i.isArray(f)&&(f=i.map(f,function(n){return n==null?"":n+""})),r=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,f,"value")!==t||(this.value=f))})):f?(r=i.valHooks[f.type]||i.valHooks[f.nodeName.toLowerCase()],r&&"get"in r&&(u=r.get(f,"value"))!==t)?u:(u=f.value,typeof u=="string"?u.replace(ie,""):u==null?"":u):void 0}}),i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return t!=null?t:n.text}},select:{get:function(n){for(var e,t,o=n.options,r=n.selectedIndex,u=n.type==="select-one"||r<0,s=u?null:[],h=u?r+1:o.length,f=r<0?h:u?r:0;f<h;f++)if(t=o[f],(t.selected||f===r)&&(i.support.optDisabled?!t.disabled:t.getAttribute("disabled")===null)&&(!t.parentNode.disabled||!i.nodeName(t.parentNode,"optgroup"))){if(e=i(t).val(),u)return e;s.push(e)}return s},set:function(n,t){for(var u,r,f=n.options,e=i.makeArray(t),o=f.length;o--;)r=f[o],(r.selected=i.inArray(i(r).val(),e)>=0)&&(u=!0);return u||(n.selectedIndex=-1),e}}},attr:function(n,r,u){var f,e,s=n.nodeType;if(n&&s!==3&&s!==8&&s!==2){if(typeof n.getAttribute===o)return i.prop(n,r,u);if(s===1&&i.isXMLDoc(n)||(r=r.toLowerCase(),f=i.attrHooks[r]||(i.expr.match.bool.test(r)?or:d)),u!==t)if(u===null)i.removeAttr(n,r);else return f&&"set"in f&&(e=f.set(n,u,r))!==t?e:(n.setAttribute(r,u+""),u);else return f&&"get"in f&&(e=f.get(n,r))!==null?e:(e=i.find.attr(n,r),e==null?t:e)}},removeAttr:function(n,t){var r,u,e=0,f=t&&t.match(s);if(f&&n.nodeType===1)while(r=f[e++])u=i.propFix[r]||r,i.expr.match.bool.test(r)?ht&&a||!ri.test(r)?n[u]=!1:n[i.camelCase("default-"+r)]=n[u]=!1:i.attr(n,r,""),n.removeAttribute(a?r:u)},attrHooks:{type:{set:function(n,t){if(!i.support.radioValue&&t==="radio"&&i.nodeName(n,"input")){var r=n.value;return n.setAttribute("type",t),r&&(n.value=r),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(n,r,u){var e,f,s,o=n.nodeType;if(n&&o!==3&&o!==8&&o!==2)return s=o!==1||!i.isXMLDoc(n),s&&(r=i.propFix[r]||r,f=i.propHooks[r]),u!==t?f&&"set"in f&&(e=f.set(n,u,r))!==t?e:n[r]=u:f&&"get"in f&&(e=f.get(n,r))!==null?e:n[r]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):re.test(n.nodeName)||ue.test(n.nodeName)&&n.href?0:-1}}}}),or={set:function(n,t,r){return t===!1?i.removeAttr(n,r):ht&&a||!ri.test(r)?n.setAttribute(!a&&i.propFix[r]||r,r):n[i.camelCase("default-"+r)]=n[r]=!0,r}},i.each(i.expr.match.bool.source.match(/\w+/g),function(n,r){var u=i.expr.attrHandle[r]||i.find.attr;i.expr.attrHandle[r]=ht&&a||!ri.test(r)?function(n,r,f){var e=i.expr.attrHandle[r],o=f?t:(i.expr.attrHandle[r]=t)!=u(n,r,f)?r.toLowerCase():null;return i.expr.attrHandle[r]=e,o}:function(n,r,u){return u?t:n[i.camelCase("default-"+r)]?r.toLowerCase():null}}),ht&&a||(i.attrHooks.value={set:function(n,t,r){if(i.nodeName(n,"input"))n.defaultValue=t;else return d&&d.set(n,t,r)}}),a||(d={set:function(n,i,r){var u=n.getAttributeNode(r);return u||n.setAttributeNode(u=n.ownerDocument.createAttribute(r)),u.value=i+="",r==="value"||i===n.getAttribute(r)?i:t}},i.expr.attrHandle.id=i.expr.attrHandle.name=i.expr.attrHandle.coords=function(n,i,r){var u;return r?t:(u=n.getAttributeNode(i))&&u.value!==""?u.value:null},i.valHooks.button={get:function(n,i){var r=n.getAttributeNode(i);return r&&r.specified?r.value:t},set:d.set},i.attrHooks.contenteditable={set:function(n,t,i){d.set(n,t===""?!1:t,i)}},i.each(["width","height"],function(n,t){i.attrHooks[t]={set:function(n,i){if(i==="")return n.setAttribute(t,"auto"),i}}})),i.support.hrefNormalized||i.each(["href","src"],function(n,t){i.propHooks[t]={get:function(n){return n.getAttribute(t,4)}}}),i.support.style||(i.attrHooks.style={get:function(n){return n.style.cssText||t},set:function(n,t){return n.style.cssText=t+""}}),i.support.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this}),i.support.enctype||(i.propFix.enctype="encoding"),i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(i.isArray(t))return n.checked=i.inArray(i(n).val(),t)>=0}},i.support.checkOn||(i.valHooks[this].get=function(n){return n.getAttribute("value")===null?"on":n.value})});var ui=/^(?:input|select|textarea)$/i,fe=/^key/,ee=/^(?:mouse|contextmenu)|click/,sr=/^(?:focusinfocus|focusoutblur)$/,hr=/^([^.]*)(?:\.(.+)|)$/;i.event={global:{},add:function(n,r,u,f,e){var b,p,k,w,c,l,a,v,h,d,g,y=i._data(n);if(y){for(u.handler&&(w=u,u=w.handler,e=w.selector),u.guid||(u.guid=i.guid++),(p=y.events)||(p=y.events={}),(l=y.handle)||(l=y.handle=function(n){return typeof i!==o&&(!n||i.event.triggered!==n.type)?i.event.dispatch.apply(l.elem,arguments):t},l.elem=n),r=(r||"").match(s)||[""],k=r.length;k--;)(b=hr.exec(r[k])||[],h=g=b[1],d=(b[2]||"").split(".").sort(),h)&&(c=i.event.special[h]||{},h=(e?c.delegateType:c.bindType)||h,c=i.event.special[h]||{},a=i.extend({type:h,origType:g,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:d.join(".")},w),(v=p[h])||(v=p[h]=[],v.delegateCount=0,c.setup&&c.setup.call(n,f,d,l)!==!1||(n.addEventListener?n.addEventListener(h,l,!1):n.attachEvent&&n.attachEvent("on"+h,l))),c.add&&(c.add.call(n,a),a.handler.guid||(a.handler.guid=u.guid)),e?v.splice(v.delegateCount++,0,a):v.push(a),i.event.global[h]=!0);n=null}},remove:function(n,t,r,u,f){var y,o,h,b,p,a,c,l,e,w,k,v=i.hasData(n)&&i._data(n);if(v&&(a=v.events)){for(t=(t||"").match(s)||[""],p=t.length;p--;){if(h=hr.exec(t[p])||[],e=k=h[1],w=(h[2]||"").split(".").sort(),!e){for(e in a)i.event.remove(n,e+t[p],r,u,!0);continue}for(c=i.event.special[e]||{},e=(u?c.delegateType:c.bindType)||e,l=a[e]||[],h=h[2]&&new RegExp("(^|\\.)"+w.join("\\.(?:.*\\.|)")+"(\\.|$)"),b=y=l.length;y--;)o=l[y],(f||k===o.origType)&&(!r||r.guid===o.guid)&&(!h||h.test(o.namespace))&&(!u||u===o.selector||u==="**"&&o.selector)&&(l.splice(y,1),o.selector&&l.delegateCount--,c.remove&&c.remove.call(n,o));b&&!l.length&&(c.teardown&&c.teardown.call(n,w,v.handle)!==!1||i.removeEvent(n,e,v.handle),delete a[e])}i.isEmptyObject(a)&&(delete v.handle,i._removeData(n,"events"))}},trigger:function(u,f,e,o){var a,v,s,w,l,c,b,p=[e||r],h=k.call(u,"type")?u.type:u,y=k.call(u,"namespace")?u.namespace.split("."):[];if((s=c=e=e||r,e.nodeType!==3&&e.nodeType!==8)&&!sr.test(h+i.event.triggered)&&(h.indexOf(".")>=0&&(y=h.split("."),h=y.shift(),y.sort()),v=h.indexOf(":")<0&&"on"+h,u=u[i.expando]?u:new i.Event(h,typeof u=="object"&&u),u.isTrigger=o?2:3,u.namespace=y.join("."),u.namespace_re=u.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,u.result=t,u.target||(u.target=e),f=f==null?[u]:i.makeArray(f,[u]),l=i.event.special[h]||{},o||!l.trigger||l.trigger.apply(e,f)!==!1)){if(!o&&!l.noBubble&&!i.isWindow(e)){for(w=l.delegateType||h,sr.test(w+h)||(s=s.parentNode);s;s=s.parentNode)p.push(s),c=s;c===(e.ownerDocument||r)&&p.push(c.defaultView||c.parentWindow||n)}for(b=0;(s=p[b++])&&!u.isPropagationStopped();)u.type=b>1?w:l.bindType||h,a=(i._data(s,"events")||{})[u.type]&&i._data(s,"handle"),a&&a.apply(s,f),a=v&&s[v],a&&i.acceptData(s)&&a.apply&&a.apply(s,f)===!1&&u.preventDefault();if(u.type=h,!o&&!u.isDefaultPrevented()&&(!l._default||l._default.apply(p.pop(),f)===!1)&&i.acceptData(e)&&v&&e[h]&&!i.isWindow(e)){c=e[v],c&&(e[v]=null),i.event.triggered=h;try{e[h]()}catch(d){}i.event.triggered=t,c&&(e[v]=c)}return u.result}},dispatch:function(n){n=i.event.fix(n);var o,e,r,u,s,h=[],c=l.call(arguments),a=(i._data(this,"events")||{})[n.type]||[],f=i.event.special[n.type]||{};if(c[0]=n,n.delegateTarget=this,!f.preDispatch||f.preDispatch.call(this,n)!==!1){for(h=i.event.handlers.call(this,n,a),o=0;(u=h[o++])&&!n.isPropagationStopped();)for(n.currentTarget=u.elem,s=0;(r=u.handlers[s++])&&!n.isImmediatePropagationStopped();)(!n.namespace_re||n.namespace_re.test(r.namespace))&&(n.handleObj=r,n.data=r.data,e=((i.event.special[r.origType]||{}).handle||r.handler).apply(u.elem,c),e!==t&&(n.result=e)===!1&&(n.preventDefault(),n.stopPropagation()));return f.postDispatch&&f.postDispatch.call(this,n),n.result}},handlers:function(n,r){var e,o,f,s,c=[],h=r.delegateCount,u=n.target;if(h&&u.nodeType&&(!n.button||n.type!=="click"))for(;u!=this;u=u.parentNode||this)if(u.nodeType===1&&(u.disabled!==!0||n.type!=="click")){for(f=[],s=0;s<h;s++)o=r[s],e=o.selector+" ",f[e]===t&&(f[e]=o.needsContext?i(e,this).index(u)>=0:i.find(e,this,null,[u]).length),f[e]&&f.push(o);f.length&&c.push({elem:u,handlers:f})}return h<r.length&&c.push({elem:this,handlers:r.slice(h)}),c},fix:function(n){if(n[i.expando])return n;var e,o,s,u=n.type,f=n,t=this.fixHooks[u];for(t||(this.fixHooks[u]=t=ee.test(u)?this.mouseHooks:fe.test(u)?this.keyHooks:{}),s=t.props?this.props.concat(t.props):this.props,n=new i.Event(f),e=s.length;e--;)o=s[e],n[o]=f[o];return n.target||(n.target=f.srcElement||r),n.target.nodeType===3&&(n.target=n.target.parentNode),n.metaKey=!!n.metaKey,t.filter?t.filter(n,f):n},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(n,t){return n.which==null&&(n.which=t.charCode!=null?t.charCode:t.keyCode),n}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(n,i){var u,o,f,e=i.button,s=i.fromElement;return n.pageX==null&&i.clientX!=null&&(o=n.target.ownerDocument||r,f=o.documentElement,u=o.body,n.pageX=i.clientX+(f&&f.scrollLeft||u&&u.scrollLeft||0)-(f&&f.clientLeft||u&&u.clientLeft||0),n.pageY=i.clientY+(f&&f.scrollTop||u&&u.scrollTop||0)-(f&&f.clientTop||u&&u.clientTop||0)),!n.relatedTarget&&s&&(n.relatedTarget=s===n.target?i.toElement:s),n.which||e===t||(n.which=e&1?1:e&2?3:e&4?2:0),n}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==cr()&&this.focus)try{return this.focus(),!1}catch(n){}},delegateType:"focusin"},blur:{trigger:function(){if(this===cr()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(i.nodeName(this,"input")&&this.type==="checkbox"&&this.click)return this.click(),!1},_default:function(n){return i.nodeName(n.target,"a")}},beforeunload:{postDispatch:function(n){n.result!==t&&(n.originalEvent.returnValue=n.result)}}},simulate:function(n,t,r,u){var f=i.extend(new i.Event,r,{type:n,isSimulated:!0,originalEvent:{}});u?i.event.trigger(f,null,t):i.event.dispatch.call(t,f),f.isDefaultPrevented()&&r.preventDefault()}},i.removeEvent=r.removeEventListener?function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i,!1)}:function(n,t,i){var r="on"+t;n.detachEvent&&(typeof n[r]===o&&(n[r]=null),n.detachEvent(r,i))},i.Event=function(n,t){if(!(this instanceof i.Event))return new i.Event(n,t);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||n.returnValue===!1||n.getPreventDefault&&n.getPreventDefault()?ct:g):this.type=n,t&&i.extend(this,t),this.timeStamp=n&&n.timeStamp||i.now(),this[i.expando]=!0},i.Event.prototype={isDefaultPrevented:g,isPropagationStopped:g,isImmediatePropagationStopped:g,preventDefault:function(){var n=this.originalEvent;(this.isDefaultPrevented=ct,n)&&(n.preventDefault?n.preventDefault():n.returnValue=!1)},stopPropagation:function(){var n=this.originalEvent;(this.isPropagationStopped=ct,n)&&(n.stopPropagation&&n.stopPropagation(),n.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ct,this.stopPropagation()}},i.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return r&&(r===f||i.contains(f,r))||(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}}),i.support.submitBubbles||(i.event.special.submit={setup:function(){if(i.nodeName(this,"form"))return!1;i.event.add(this,"click._submit keypress._submit",function(n){var u=n.target,r=i.nodeName(u,"input")||i.nodeName(u,"button")?u.form:t;r&&!i._data(r,"submitBubbles")&&(i.event.add(r,"submit._submit",function(n){n._submit_bubble=!0}),i._data(r,"submitBubbles",!0))})},postDispatch:function(n){n._submit_bubble&&(delete n._submit_bubble,this.parentNode&&!n.isTrigger&&i.event.simulate("submit",this.parentNode,n,!0))},teardown:function(){if(i.nodeName(this,"form"))return!1;i.event.remove(this,"._submit")}}),i.support.changeBubbles||(i.event.special.change={setup:function(){if(ui.test(this.nodeName))return(this.type==="checkbox"||this.type==="radio")&&(i.event.add(this,"propertychange._change",function(n){n.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),i.event.add(this,"click._change",function(n){this._just_changed&&!n.isTrigger&&(this._just_changed=!1),i.event.simulate("change",this,n,!0)})),!1;i.event.add(this,"beforeactivate._change",function(n){var t=n.target;ui.test(t.nodeName)&&!i._data(t,"changeBubbles")&&(i.event.add(t,"change._change",function(n){!this.parentNode||n.isSimulated||n.isTrigger||i.event.simulate("change",this.parentNode,n,!0)}),i._data(t,"changeBubbles",!0))})},handle:function(n){var t=n.target;if(this!==t||n.isSimulated||n.isTrigger||t.type!=="radio"&&t.type!=="checkbox")return n.handleObj.handler.apply(this,arguments)},teardown:function(){return i.event.remove(this,"._change"),!ui.test(this.nodeName)}}),i.support.focusinBubbles||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=0,f=function(n){i.event.simulate(t,n.target,i.event.fix(n),!0)};i.event.special[t]={setup:function(){u++==0&&r.addEventListener(n,f,!0)},teardown:function(){--u==0&&r.removeEventListener(n,f,!0)}}}),i.fn.extend({on:function(n,r,u,f,e){var s,o;if(typeof n=="object"){typeof r!="string"&&(u=u||r,r=t);for(s in n)this.on(s,r,u,n[s],e);return this}if(u==null&&f==null?(f=r,u=r=t):f==null&&(typeof r=="string"?(f=u,u=t):(f=u,u=r,r=t)),f===!1)f=g;else if(!f)return this;return e===1&&(o=f,f=function(n){return i().off(n),o.apply(this,arguments)},f.guid=o.guid||(o.guid=i.guid++)),this.each(function(){i.event.add(this,n,f,u,r)})},one:function(n,t,i,r){return this.on(n,t,i,r,1)},off:function(n,r,u){var f,e;if(n&&n.preventDefault&&n.handleObj)return f=n.handleObj,i(n.delegateTarget).off(f.namespace?f.origType+"."+f.namespace:f.origType,f.selector,f.handler),this;if(typeof n=="object"){for(e in n)this.off(e,r,n[e]);return this}return(r===!1||typeof r=="function")&&(u=r,r=t),u===!1&&(u=g),this.each(function(){i.event.remove(this,n,u,r)})},trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});var oe=/^.[^:#\[\.,]*$/,se=/^(?:parents|prev(?:Until|All))/,lr=i.expr.match.needsContext,he={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({find:function(n){var t,r=[],u=this,f=u.length;if(typeof n!="string")return this.pushStack(i(n).filter(function(){for(t=0;t<f;t++)if(i.contains(u[t],this))return!0}));for(t=0;t<f;t++)i.find(n,u[t],r);return r=this.pushStack(f>1?i.unique(r):r),r.selector=this.selector?this.selector+" "+n:n,r},has:function(n){var t,r=i(n,this),u=r.length;return this.filter(function(){for(t=0;t<u;t++)if(i.contains(this,r[t]))return!0})},not:function(n){return this.pushStack(fi(this,n||[],!0))},filter:function(n){return this.pushStack(fi(this,n||[],!1))},is:function(n){return!!fi(this,typeof n=="string"&&lr.test(n)?i(n):n||[],!1).length},closest:function(n,t){for(var r,f=0,o=this.length,u=[],e=lr.test(n)||typeof n!="string"?i(n,t||this.context):0;f<o;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:r.nodeType===1&&i.find.matchesSelector(r,n))){r=u.push(r);break}return this.pushStack(u.length>1?i.unique(u):u)},index:function(n){return n?typeof n=="string"?i.inArray(this[0],i(n)):i.inArray(n.jquery?n[0]:n,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){var r=typeof n=="string"?i(n,t):i.makeArray(n&&n.nodeType?[n]:n),u=i.merge(this.get(),r);return this.pushStack(i.unique(u))},addBack:function(n){return this.add(n==null?this.prevObject:this.prevObject.filter(n))}}),i.each({parent:function(n){var t=n.parentNode;return t&&t.nodeType!==11?t:null},parents:function(n){return i.dir(n,"parentNode")},parentsUntil:function(n,t,r){return i.dir(n,"parentNode",r)},next:function(n){return ar(n,"nextSibling")},prev:function(n){return ar(n,"previousSibling")},nextAll:function(n){return i.dir(n,"nextSibling")},prevAll:function(n){return i.dir(n,"previousSibling")},nextUntil:function(n,t,r){return i.dir(n,"nextSibling",r)},prevUntil:function(n,t,r){return i.dir(n,"previousSibling",r)},siblings:function(n){return i.sibling((n.parentNode||{}).firstChild,n)},children:function(n){return i.sibling(n.firstChild)},contents:function(n){return i.nodeName(n,"iframe")?n.contentDocument||n.contentWindow.document:i.merge([],n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return n.slice(-5)!=="Until"&&(u=r),u&&typeof u=="string"&&(f=i.filter(u,f)),this.length>1&&(he[n]||(f=i.unique(f)),se.test(n)&&(f=f.reverse())),this.pushStack(f)}}),i.extend({filter:function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),t.length===1&&u.nodeType===1?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return n.nodeType===1}))},dir:function(n,r,u){for(var e=[],f=n[r];f&&f.nodeType!==9&&(u===t||f.nodeType!==1||!i(f).is(u));)f.nodeType===1&&e.push(f),f=f[r];return e},sibling:function(n,t){for(var i=[];n;n=n.nextSibling)n.nodeType===1&&n!==t&&i.push(n);return i}});var yr="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ce=/ jQuery\d+="(?:null|\d+)"/g,pr=new RegExp("<(?:"+yr+")[\\s/>]","i"),ei=/^\s+/,wr=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,br=/<([\w:]+)/,kr=/<tbody/i,le=/<|&#?\w+;/,ae=/<(?:script|style|link)/i,oi=/^(?:checkbox|radio)$/i,ve=/checked\s*(?:[^=]|=\s*.checked.)/i,dr=/^$|\/(?:java|ecma)script/i,ye=/^true\/(.*)/,pe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,e={option:[1,"<select multiple='multiple'>","<\/select>"],legend:[1,"<fieldset>","<\/fieldset>"],area:[1,"<map>","<\/map>"],param:[1,"<object>","<\/object>"],thead:[1,"<table>","<\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],col:[2,"<table><tbody><\/tbody><colgroup>","<\/colgroup><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:i.support.htmlSerialize?[0,"",""]:[1,"X<div>","<\/div>"]},we=vr(r),si=we.appendChild(r.createElement("div"));e.optgroup=e.option,e.tbody=e.tfoot=e.colgroup=e.caption=e.thead,e.th=e.td,i.fn.extend({text:function(n){return i.access(this,function(n){return n===t?i.text(this):this.empty().append((this[0]&&this[0].ownerDocument||r).createTextNode(n))},null,n,arguments.length)},append:function(){return this.domManip(arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=gr(this,n);t.appendChild(n)}})},prepend:function(){return this.domManip(arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=gr(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},remove:function(n,t){for(var r,e=n?i.filter(n,this):this,f=0;(r=e[f])!=null;f++)t||r.nodeType!==1||i.cleanData(u(r)),r.parentNode&&(t&&i.contains(r.ownerDocument,r)&&hi(u(r,"script")),r.parentNode.removeChild(r));return this},empty:function(){for(var n,t=0;(n=this[t])!=null;t++){for(n.nodeType===1&&i.cleanData(u(n,!1));n.firstChild;)n.removeChild(n.firstChild);n.options&&i.nodeName(n,"select")&&(n.options.length=0)}return this},clone:function(n,t){return n=n==null?!1:n,t=t==null?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return i.access(this,function(n){var r=this[0]||{},f=0,o=this.length;if(n===t)return r.nodeType===1?r.innerHTML.replace(ce,""):t;if(typeof n=="string"&&!ae.test(n)&&(i.support.htmlSerialize||!pr.test(n))&&(i.support.leadingWhitespace||!ei.test(n))&&!e[(br.exec(n)||["",""])[1].toLowerCase()]){n=n.replace(wr,"<$1><\/$2>");try{for(;f<o;f++)r=this[f]||{},r.nodeType===1&&(i.cleanData(u(r,!1)),r.innerHTML=n);r=0}catch(s){}}r&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var t=i.map(this,function(n){return[n.nextSibling,n.parentNode]}),n=0;return this.domManip(arguments,function(r){var u=t[n++],f=t[n++];f&&(u&&u.parentNode!==f&&(u=this.nextSibling),i(this).remove(),f.insertBefore(r,u))},!0),n?this:this.remove()},detach:function(n){return this.remove(n,!0)},domManip:function(n,t,r){n=di.apply([],n);var h,f,c,o,v,s,e=0,l=this.length,p=this,w=l-1,a=n[0],y=i.isFunction(a);if(y||!(l<=1||typeof a!="string"||i.support.checkClone||!ve.test(a)))return this.each(function(i){var u=p.eq(i);y&&(n[0]=a.call(this,i,u.html())),u.domManip(n,t,r)});if(l&&(s=i.buildFragment(n,this[0].ownerDocument,!1,!r&&this),h=s.firstChild,s.childNodes.length===1&&(s=h),h)){for(o=i.map(u(s,"script"),nu),c=o.length;e<l;e++)f=s,e!==w&&(f=i.clone(f,!0,!0),c&&i.merge(o,u(f,"script"))),t.call(this[e],f,e);if(c)for(v=o[o.length-1].ownerDocument,i.map(o,tu),e=0;e<c;e++)f=o[e],dr.test(f.type||"")&&!i._data(f,"globalEval")&&i.contains(v,f)&&(f.src?i._evalUrl(f.src):i.globalEval((f.text||f.textContent||f.innerHTML||"").replace(pe,"")));s=h=null}return this}}),i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,r=0,f=[],e=i(n),o=e.length-1;r<=o;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),kt.apply(f,u.get());return this.pushStack(f)}}),i.extend({clone:function(n,t,r){var f,h,o,e,s,c=i.contains(n.ownerDocument,n);if(i.support.html5Clone||i.isXMLDoc(n)||!pr.test("<"+n.nodeName+">")?o=n.cloneNode(!0):(si.innerHTML=n.outerHTML,si.removeChild(o=si.firstChild)),(!i.support.noCloneEvent||!i.support.noCloneChecked)&&(n.nodeType===1||n.nodeType===11)&&!i.isXMLDoc(n))for(f=u(o),s=u(n),e=0;(h=s[e])!=null;++e)f[e]&&be(h,f[e]);if(t)if(r)for(s=s||u(n),f=f||u(o),e=0;(h=s[e])!=null;e++)iu(h,f[e]);else iu(n,o);return f=u(o,"script"),f.length>0&&hi(f,!c&&u(n,"script")),f=s=h=null,o},buildFragment:function(n,t,r,f){for(var h,o,w,s,y,p,l,b=n.length,a=vr(t),c=[],v=0;v<b;v++)if(o=n[v],o||o===0)if(i.type(o)==="object")i.merge(c,o.nodeType?[o]:o);else if(le.test(o)){for(s=s||a.appendChild(t.createElement("div")),y=(br.exec(o)||["",""])[1].toLowerCase(),l=e[y]||e._default,s.innerHTML=l[1]+o.replace(wr,"<$1><\/$2>")+l[2],h=l[0];h--;)s=s.lastChild;if(!i.support.leadingWhitespace&&ei.test(o)&&c.push(t.createTextNode(ei.exec(o)[0])),!i.support.tbody)for(o=y==="table"&&!kr.test(o)?s.firstChild:l[1]==="<table>"&&!kr.test(o)?s:0,h=o&&o.childNodes.length;h--;)i.nodeName(p=o.childNodes[h],"tbody")&&!p.childNodes.length&&o.removeChild(p);for(i.merge(c,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=a.lastChild}else c.push(t.createTextNode(o));for(s&&a.removeChild(s),i.support.appendChecked||i.grep(u(c,"input"),ke),v=0;o=c[v++];)if((!f||i.inArray(o,f)===-1)&&(w=i.contains(o.ownerDocument,o),s=u(a.appendChild(o),"script"),w&&hi(s),r))for(h=0;o=s[h++];)dr.test(o.type||"")&&r.push(o);return s=null,a},cleanData:function(n,t){for(var r,e,u,f,c=0,s=i.expando,h=i.cache,l=i.support.deleteExpando,a=i.event.special;(r=n[c])!=null;c++)if((t||i.acceptData(r))&&(u=r[s],f=u&&h[u],f)){if(f.events)for(e in f.events)a[e]?i.event.remove(r,e):i.removeEvent(r,e,f.handle);h[u]&&(delete h[u],l?delete r[s]:typeof r.removeAttribute!==o?r.removeAttribute(s):r[s]=null,b.push(u))}},_evalUrl:function(n){return i.ajax({url:n,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})}}),i.fn.extend({wrapAll:function(n){if(i.isFunction(n))return this.each(function(t){i(this).wrapAll(n.call(this,t))});if(this[0]){var t=i(n,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstChild&&n.firstChild.nodeType===1;)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(n){return i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()}});var rt,v,y,ci=/alpha\([^)]*\)/i,de=/opacity\s*=\s*([^)]*)/,ge=/^(top|right|bottom|left)$/,no=/^(none|table(?!-c[ea]).+)/,ru=/^margin/,to=new RegExp("^("+st+")(.*)$","i"),lt=new RegExp("^("+st+")(?!px)[a-z%]+$","i"),io=new RegExp("^([+-])=("+st+")","i"),uu={BODY:"block"},ro={position:"absolute",visibility:"hidden",display:"block"},fu={letterSpacing:0,fontWeight:400},p=["Top","Right","Bottom","Left"],eu=["Webkit","O","Moz","ms"];i.fn.extend({css:function(n,r){return i.access(this,function(n,r,u){var e,o,s={},f=0;if(i.isArray(r)){for(o=v(n),e=r.length;f<e;f++)s[r[f]]=i.css(n,r[f],!1,o);return s}return u!==t?i.style(n,r,u):i.css(n,r)},n,r,arguments.length>1)},show:function(){return su(this,!0)},hide:function(){return su(this)},toggle:function(n){return typeof n=="boolean"?n?this.show():this.hide():this.each(function(){ut(this)?i(this).show():i(this).hide()})}}),i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=y(n,"opacity");return i===""?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:i.support.cssFloat?"cssFloat":"styleFloat"},style:function(n,r,u,f){if(n&&n.nodeType!==3&&n.nodeType!==8&&n.style){var o,s,e,h=i.camelCase(r),c=n.style;if(r=i.cssProps[h]||(i.cssProps[h]=ou(c,h)),e=i.cssHooks[r]||i.cssHooks[h],u!==t){if(s=typeof u,s==="string"&&(o=io.exec(u))&&(u=(o[1]+1)*o[2]+parseFloat(i.css(n,r)),s="number"),u==null||s==="number"&&isNaN(u))return;if(s!=="number"||i.cssNumber[h]||(u+="px"),i.support.clearCloneStyle||u!==""||r.indexOf("background")!==0||(c[r]="inherit"),!e||!("set"in e)||(u=e.set(n,u,f))!==t)try{c[r]=u}catch(l){}}else return e&&"get"in e&&(o=e.get(n,!1,f))!==t?o:c[r]}},css:function(n,r,u,f){var h,e,o,s=i.camelCase(r);return(r=i.cssProps[s]||(i.cssProps[s]=ou(n.style,s)),o=i.cssHooks[r]||i.cssHooks[s],o&&"get"in o&&(e=o.get(n,!0,u)),e===t&&(e=y(n,r,f)),e==="normal"&&r in fu&&(e=fu[r]),u===""||u)?(h=parseFloat(e),u===!0||i.isNumeric(h)?h||0:e):e}}),n.getComputedStyle?(v=function(t){return n.getComputedStyle(t,null)},y=function(n,r,u){var s,h,c,o=u||v(n),e=o?o.getPropertyValue(r)||o[r]:t,f=n.style;return o&&(e!==""||i.contains(n.ownerDocument,n)||(e=i.style(n,r)),lt.test(e)&&ru.test(r)&&(s=f.width,h=f.minWidth,c=f.maxWidth,f.minWidth=f.maxWidth=f.width=e,e=o.width,f.width=s,f.minWidth=h,f.maxWidth=c)),e}):r.documentElement.currentStyle&&(v=function(n){return n.currentStyle},y=function(n,i,r){var s,e,o,h=r||v(n),u=h?h[i]:t,f=n.style;return u==null&&f&&f[i]&&(u=f[i]),lt.test(u)&&!ge.test(i)&&(s=f.left,e=n.runtimeStyle,o=e&&e.left,o&&(e.left=n.currentStyle.left),f.left=i==="fontSize"?"1em":u,u=f.pixelLeft+"px",f.left=s,o&&(e.left=o)),u===""?"auto":u}),i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return n.offsetWidth===0&&no.test(i.css(n,"display"))?i.swap(n,ro,function(){return lu(n,t,u)}):lu(n,t,u)},set:function(n,r,u){var f=u&&v(n);return hu(n,r,u?cu(n,t,u,i.support.boxSizing&&i.css(n,"boxSizing",!1,f)==="border-box",f):0)}}}),i.support.opacity||(i.cssHooks.opacity={get:function(n,t){return de.test((t&&n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(n,t){var r=n.style,u=n.currentStyle,e=i.isNumeric(t)?"alpha(opacity="+t*100+")":"",f=u&&u.filter||r.filter||"";(r.zoom=1,(t>=1||t==="")&&i.trim(f.replace(ci,""))===""&&r.removeAttribute&&(r.removeAttribute("filter"),t===""||u&&!u.filter))||(r.filter=ci.test(f)?f.replace(ci,e):f+" "+e)}}),i(function(){i.support.reliableMarginRight||(i.cssHooks.marginRight={get:function(n,t){if(t)return i.swap(n,{display:"inline-block"},y,[n,"marginRight"])}}),!i.support.pixelPosition&&i.fn.position&&i.each(["top","left"],function(n,t){i.cssHooks[t]={get:function(n,r){if(r)return r=y(n,t),lt.test(r)?i(n).position()[t]+"px":r}}})}),i.expr&&i.expr.filters&&(i.expr.filters.hidden=function(n){return n.offsetWidth<=0&&n.offsetHeight<=0||!i.support.reliableHiddenOffsets&&(n.style&&n.style.display||i.css(n,"display"))==="none"},i.expr.filters.visible=function(n){return!i.expr.filters.hidden(n)}),i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u=typeof i=="string"?i.split(" "):[i];r<4;r++)f[n+p[r]+t]=u[r]||u[r-2]||u[0];return f}},ru.test(n)||(i.cssHooks[n+t].set=hu)});var uo=/%20/g,fo=/\[\]$/,yu=/\r?\n/g,eo=/^(?:submit|button|image|reset|file)$/i,oo=/^(?:input|select|textarea|keygen)/i;i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&oo.test(this.nodeName)&&!eo.test(n)&&(this.checked||!oi.test(n))}).map(function(n,t){var r=i(this).val();return r==null?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(yu,"\r\n")}}):{name:t.name,value:r.replace(yu,"\r\n")}}).get()}}),i.param=function(n,r){var u,f=[],e=function(n,t){t=i.isFunction(t)?t():t==null?"":t,f[f.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)};if(r===t&&(r=i.ajaxSettings&&i.ajaxSettings.traditional),i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){e(this.name,this.value)});else for(u in n)li(u,n[u],r,e);return f.join("&").replace(uo,"+")},i.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}}),i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)},bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return arguments.length===1?this.off(n,"**"):this.off(t,n||"**",i)}});var w,c,ai=i.now(),vi=/\?/,so=/#.*$/,pu=/([?&])_=[^&]*/,ho=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,co=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,lo=/^(?:GET|HEAD)$/,ao=/^\/\//,wu=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,bu=i.fn.load,ku={},yi={},du="*/".concat("*");try{c=hf.href}catch(ns){c=r.createElement("a"),c.href="",c=c.href}w=wu.exec(c.toLowerCase())||[],i.fn.load=function(n,r,u){if(typeof n!="string"&&bu)return bu.apply(this,arguments);var f,s,h,e=this,o=n.indexOf(" ");return o>=0&&(f=n.slice(o,n.length),n=n.slice(0,o)),i.isFunction(r)?(u=r,r=t):r&&typeof r=="object"&&(h="POST"),e.length>0&&i.ajax({url:n,type:h,dataType:"html",data:r}).done(function(n){s=arguments,e.html(f?i("<div>").append(i.parseHTML(n)).find(f):n)}).complete(u&&function(n,t){e.each(u,s||[n.responseText,t,n])}),this},i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}}),i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:c,type:"GET",isLocal:co.test(w[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":du,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":i.parseJSON,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?pi(pi(n,i.ajaxSettings),t):pi(i.ajaxSettings,n)},ajaxPrefilter:gu(ku),ajaxTransport:gu(yi),ajax:function(n,r){function k(n,r,s,c){var a,rt,k,p,w,l=r;o!==2&&(o=2,g&&clearTimeout(g),v=t,d=c||"",f.readyState=n>0?4:0,a=n>=200&&n<300||n===304,s&&(p=vo(u,f,s)),p=yo(u,p,f,a),a?(u.ifModified&&(w=f.getResponseHeader("Last-Modified"),w&&(i.lastModified[e]=w),w=f.getResponseHeader("etag"),w&&(i.etag[e]=w)),n===204||u.type==="HEAD"?l="nocontent":n===304?l="notmodified":(l=p.state,rt=p.data,k=p.error,a=!k)):(k=l,(n||!l)&&(l="error",n<0&&(n=0))),f.status=n,f.statusText=(r||l)+"",a?tt.resolveWith(h,[rt,l,f]):tt.rejectWith(h,[f,l,k]),f.statusCode(b),b=t,y&&nt.trigger(a?"ajaxSuccess":"ajaxError",[f,u,a?rt:k]),it.fireWith(h,[f,l]),y&&(nt.trigger("ajaxComplete",[f,u]),--i.active||i.event.trigger("ajaxStop")))}typeof n=="object"&&(r=n,n=t),r=r||{};var l,a,e,d,g,y,v,p,u=i.ajaxSetup({},r),h=u.context||u,nt=u.context&&(h.nodeType||h.jquery)?i(h):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),b=u.statusCode||{},rt={},ut={},o=0,ft="canceled",f={readyState:0,getResponseHeader:function(n){var t;if(o===2){if(!p)for(p={};t=ho.exec(d);)p[t[1].toLowerCase()]=t[2];t=p[n.toLowerCase()]}return t==null?null:t},getAllResponseHeaders:function(){return o===2?d:null},setRequestHeader:function(n,t){var i=n.toLowerCase();return o||(n=ut[i]=ut[i]||n,rt[n]=t),this},overrideMimeType:function(n){return o||(u.mimeType=n),this},statusCode:function(n){var t;if(n)if(o<2)for(t in n)b[t]=[b[t],n[t]];else f.always(n[f.status]);return this},abort:function(n){var t=n||ft;return v&&v.abort(t),k(0,t),this}};if(tt.promise(f).complete=it.add,f.success=f.done,f.error=f.fail,u.url=((n||u.url||c)+"").replace(so,"").replace(ao,w[1]+"//"),u.type=r.method||r.type||u.method||u.type,u.dataTypes=i.trim(u.dataType||"*").toLowerCase().match(s)||[""],u.crossDomain==null&&(l=wu.exec(u.url.toLowerCase()),u.crossDomain=!!(l&&(l[1]!==w[1]||l[2]!==w[2]||(l[3]||(l[1]==="http:"?"80":"443"))!==(w[3]||(w[1]==="http:"?"80":"443"))))),u.data&&u.processData&&typeof u.data!="string"&&(u.data=i.param(u.data,u.traditional)),nf(ku,u,r,f),o===2)return f;y=u.global,y&&i.active++==0&&i.event.trigger("ajaxStart"),u.type=u.type.toUpperCase(),u.hasContent=!lo.test(u.type),e=u.url,u.hasContent||(u.data&&(e=u.url+=(vi.test(e)?"&":"?")+u.data,delete u.data),u.cache===!1&&(u.url=pu.test(e)?e.replace(pu,"$1_="+ai++):e+(vi.test(e)?"&":"?")+"_="+ai++)),u.ifModified&&(i.lastModified[e]&&f.setRequestHeader("If-Modified-Since",i.lastModified[e]),i.etag[e]&&f.setRequestHeader("If-None-Match",i.etag[e])),(u.data&&u.hasContent&&u.contentType!==!1||r.contentType)&&f.setRequestHeader("Content-Type",u.contentType),f.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+(u.dataTypes[0]!=="*"?", "+du+"; q=0.01":""):u.accepts["*"]);for(a in u.headers)f.setRequestHeader(a,u.headers[a]);if(u.beforeSend&&(u.beforeSend.call(h,f,u)===!1||o===2))return f.abort();ft="abort";for(a in{success:1,error:1,complete:1})f[a](u[a]);if(v=nf(yi,u,r,f),v){f.readyState=1,y&&nt.trigger("ajaxSend",[f,u]),u.async&&u.timeout>0&&(g=setTimeout(function(){f.abort("timeout")},u.timeout));try{o=1,v.send(rt,k)}catch(et){if(o<2)k(-1,et);else throw et;}}else k(-1,"No Transport");return f},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,r){return i.get(n,t,r,"script")}}),i.each(["get","post"],function(n,r){i[r]=function(n,u,f,e){return i.isFunction(u)&&(e=e||f,f=u,u=t),i.ajax({url:n,type:r,dataType:e,data:u,success:f})}}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){n.cache===t&&(n.cache=!1),n.crossDomain&&(n.type="GET",n.global=!1)}),i.ajaxTransport("script",function(n){if(n.crossDomain){var u,f=r.head||i("head")[0]||r.documentElement;return{send:function(t,i){u=r.createElement("script"),u.async=!0,n.scriptCharset&&(u.charset=n.scriptCharset),u.src=n.url,u.onload=u.onreadystatechange=function(n,t){(t||!u.readyState||/loaded|complete/.test(u.readyState))&&(u.onload=u.onreadystatechange=null,u.parentNode&&u.parentNode.removeChild(u),u=null,t||i(200,"success"))},f.insertBefore(u,f.firstChild)},abort:function(){if(u)u.onload(t,!0)}}}}),wi=[],at=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=wi.pop()||i.expando+"_"+ai++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(r,u,f){var e,s,o,h=r.jsonp!==!1&&(at.test(r.url)?"url":typeof r.data=="string"&&!(r.contentType||"").indexOf("application/x-www-form-urlencoded")&&at.test(r.data)&&"data");if(h||r.dataTypes[0]==="jsonp")return e=r.jsonpCallback=i.isFunction(r.jsonpCallback)?r.jsonpCallback():r.jsonpCallback,h?r[h]=r[h].replace(at,"$1"+e):r.jsonp!==!1&&(r.url+=(vi.test(r.url)?"&":"?")+r.jsonp+"="+e),r.converters["script json"]=function(){return o||i.error(e+" was not called"),o[0]},r.dataTypes[0]="json",s=n[e],n[e]=function(){o=arguments},f.always(function(){n[e]=s,r[e]&&(r.jsonpCallback=u.jsonpCallback,wi.push(e)),o&&i.isFunction(s)&&s(o[0]),o=s=t}),"script"}),tf=0,vt=n.ActiveXObject&&function(){var n;for(n in nt)nt[n](t,!0)},i.ajaxSettings.xhr=n.ActiveXObject?function(){return!this.isLocal&&rf()||po()}:rf,tt=i.ajaxSettings.xhr(),i.support.cors=!!tt&&"withCredentials"in tt,tt=i.support.ajax=!!tt,tt&&i.ajaxTransport(function(r){if(!r.crossDomain||i.support.cors){var u;return{send:function(f,e){var h,s,o=r.xhr();if(r.username?o.open(r.type,r.url,r.async,r.username,r.password):o.open(r.type,r.url,r.async),r.xhrFields)for(s in r.xhrFields)o[s]=r.xhrFields[s];r.mimeType&&o.overrideMimeType&&o.overrideMimeType(r.mimeType),r.crossDomain||f["X-Requested-With"]||(f["X-Requested-With"]="XMLHttpRequest");try{for(s in f)o.setRequestHeader(s,f[s])}catch(c){}o.send(r.hasContent&&r.data||null),u=function(n,f){var s,a,l,c;try{if(u&&(f||o.readyState===4))if(u=t,h&&(o.onreadystatechange=i.noop,vt&&delete nt[h]),f)o.readyState!==4&&o.abort();else{c={},s=o.status,a=o.getAllResponseHeaders(),typeof o.responseText=="string"&&(c.text=o.responseText);try{l=o.statusText}catch(v){l=""}s||!r.isLocal||r.crossDomain?s===1223&&(s=204):s=c.text?200:404}}catch(y){f||e(-1,y)}c&&e(s,l,c,a)},r.async?o.readyState===4?setTimeout(u):(h=++tf,vt&&(nt||(nt={},i(n).unload(vt)),nt[h]=u),o.onreadystatechange=u):u()},abort:function(){u&&u(t,!0)}}}});var it,yt,wo=/^(?:toggle|show|hide)$/,uf=new RegExp("^(?:([+-])=|)("+st+")([a-z%]*)$","i"),bo=/queueHooks$/,pt=[go],ft={"*":[function(n,t){var f=this.createTween(n,t),s=f.cur(),u=uf.exec(t),e=u&&u[3]||(i.cssNumber[n]?"":"px"),r=(i.cssNumber[n]||e!=="px"&&+s)&&uf.exec(i.css(f.elem,n)),o=1,h=20;if(r&&r[3]!==e){e=e||r[3],u=u||[],r=+s||1;do o=o||".5",r=r/o,i.style(f.elem,n,r+e);while(o!==(o=f.cur()/s)&&o!==1&&--h)}return u&&(r=f.start=+r||+s||0,f.unit=e,f.end=u[1]?r+(u[1]+1)*u[2]:+u[2]),f}]};i.Animation=i.extend(of,{tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.split(" ");for(var r,u=0,f=n.length;u<f;u++)r=n[u],ft[r]=ft[r]||[],ft[r].unshift(t)},prefilter:function(n,t){t?pt.unshift(n):pt.push(n)}}),i.Tween=f,f.prototype={constructor:f,init:function(n,t,r,u,f,e){this.elem=n,this.prop=r,this.easing=f||"swing",this.options=t,this.start=this.now=this.cur(),this.end=u,this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=f.propHooks[this.prop];return n&&n.get?n.get(this):f.propHooks._default.get(this)},run:function(n){var t,r=f.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):f.propHooks._default.set(this),this}},f.prototype.init.prototype=f.prototype,f.propHooks={_default:{get:function(n){var t;return n.elem[n.prop]!=null&&(!n.elem.style||n.elem.style[n.prop]==null)?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""),!t||t==="auto"?0:t)},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.style&&(n.elem.style[i.cssProps[n.prop]]!=null||i.cssHooks[n.prop])?i.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}},f.propHooks.scrollTop=f.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}},i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return n==null||typeof n=="boolean"?r.apply(this,arguments):this.animate(wt(t,!0),n,i,u)}}),i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(ut).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,r,u){var o=i.isEmptyObject(n),e=i.speed(t,r,u),f=function(){var t=of(this,i.extend({},n),e);(o||i._data(this,"finish"))&&t.stop(!0)};return f.finish=f,o||e.queue===!1?this.each(f):this.queue(e.queue,f)},stop:function(n,r,u){var f=function(n){var t=n.stop;delete n.stop,t(u)};return typeof n!="string"&&(u=r,r=n,n=t),r&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var o=!0,t=n!=null&&n+"queueHooks",e=i.timers,r=i._data(this);if(t)r[t]&&r[t].stop&&f(r[t]);else for(t in r)r[t]&&r[t].stop&&bo.test(t)&&f(r[t]);for(t=e.length;t--;)e[t].elem===this&&(n==null||e[t].queue===n)&&(e[t].anim.stop(u),o=!1,e.splice(t,1));(o||!u)&&i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,f=i._data(this),r=f[n+"queue"],e=f[n+"queueHooks"],u=i.timers,o=r?r.length:0;for(f.finish=!0,i.queue(this,n,[]),e&&e.stop&&e.stop.call(this,!0),t=u.length;t--;)u[t].elem===this&&u[t].queue===n&&(u[t].anim.stop(!0),u.splice(t,1));for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete f.finish})}}),i.each({slideDown:wt("show"),slideUp:wt("hide"),slideToggle:wt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}}),i.speed=function(n,t,r){var u=n&&typeof n=="object"?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return u.duration=i.fx.off?0:typeof u.duration=="number"?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,(u.queue==null||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(){i.isFunction(u.old)&&u.old.call(this),u.queue&&i.dequeue(this,u.queue)},u},i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2}},i.timers=[],i.fx=f.prototype.init,i.fx.tick=function(){var u,n=i.timers,r=0;for(it=i.now();r<n.length;r++)u=n[r],u()||n[r]!==u||n.splice(r--,1);n.length||i.fx.stop(),it=t},i.fx.timer=function(n){n()&&i.timers.push(n)&&i.fx.start()},i.fx.interval=13,i.fx.start=function(){yt||(yt=setInterval(i.fx.tick,i.fx.interval))},i.fx.stop=function(){clearInterval(yt),yt=null},i.fx.speeds={slow:600,fast:200,_default:400},i.fx.step={},i.expr&&i.expr.filters&&(i.expr.filters.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length}),i.fn.offset=function(n){if(arguments.length)return n===t?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r,e,f={top:0,left:0},u=this[0],s=u&&u.ownerDocument;if(s)return(r=s.documentElement,!i.contains(r,u))?f:(typeof u.getBoundingClientRect!==o&&(f=u.getBoundingClientRect()),e=sf(s),{top:f.top+(e.pageYOffset||r.scrollTop)-(r.clientTop||0),left:f.left+(e.pageXOffset||r.scrollLeft)-(r.clientLeft||0)})},i.offset={setOffset:function(n,t,r){var f=i.css(n,"position");f==="static"&&(n.style.position="relative");var e=i(n),o=e.offset(),l=i.css(n,"top"),a=i.css(n,"left"),v=(f==="absolute"||f==="fixed")&&i.inArray("auto",[l,a])>-1,u={},s={},h,c;v?(s=e.position(),h=s.top,c=s.left):(h=parseFloat(l)||0,c=parseFloat(a)||0),i.isFunction(t)&&(t=t.call(n,r,o)),t.top!=null&&(u.top=t.top-o.top+h),t.left!=null&&(u.left=t.left-o.left+c),"using"in t?t.using.call(n,u):e.css(u)}},i.fn.extend({position:function(){if(this[0]){var n,r,t={top:0,left:0},u=this[0];return i.css(u,"position")==="fixed"?r=u.getBoundingClientRect():(n=this.offsetParent(),r=this.offset(),i.nodeName(n[0],"html")||(t=n.offset()),t.top+=i.css(n[0],"borderTopWidth",!0),t.left+=i.css(n[0],"borderLeftWidth",!0)),{top:r.top-t.top-i.css(u,"marginTop",!0),left:r.left-t.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent||ki;n&&!i.nodeName(n,"html")&&i.css(n,"position")==="static";)n=n.offsetParent;return n||ki})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,r){var u=/Y/.test(r);i.fn[n]=function(f){return i.access(this,function(n,f,e){var o=sf(n);if(e===t)return o?r in o?o[r]:o.document.documentElement[f]:n[f];o?o.scrollTo(u?i(o).scrollLeft():e,u?e:i(o).scrollTop()):n[f]=e},n,f,arguments.length,null)}}),i.each({Height:"height",Width:"width"},function(n,r){i.each({padding:"inner"+n,content:r,"":"outer"+n},function(u,f){i.fn[f]=function(f,e){var o=arguments.length&&(u||typeof f!="boolean"),s=u||(f===!0||e===!0?"margin":"border");return i.access(this,function(r,u,f){var e;return i.isWindow(r)?r.document.documentElement["client"+n]:r.nodeType===9?(e=r.documentElement,Math.max(r.body["scroll"+n],e["scroll"+n],r.body["offset"+n],e["offset"+n],e["client"+n])):f===t?i.css(r,u,s):i.style(r,u,f,s)},r,o?f:t,o,null)}})}),i.fn.size=function(){return this.length},i.fn.andSelf=i.fn.addBack,typeof module=="object"&&module&&typeof module.exports=="object"?module.exports=i:(n.jQuery=n.$=i,typeof define=="function"&&define.amd&&define("jquery",[],function(){return i}))})(window),function(n,t){function i(t,i){var u,f,e,o=t.nodeName.toLowerCase();return"area"===o?(u=t.parentNode,f=u.name,!t.href||!f||u.nodeName.toLowerCase()!=="map")?!1:(e=n("img[usemap=#"+f+"]")[0],!!e&&r(e)):(/input|select|textarea|button|object/.test(o)?!t.disabled:"a"===o?t.href||i:i)&&r(t)}function r(t){return n.expr.filters.visible(t)&&!n(t).parents().addBack().filter(function(){return n.css(this,"visibility")==="hidden"}).length}var u=0,f=/^ui-id-\d+$/;n.ui=n.ui||{},n.extend(n.ui,{version:"1.10.3",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),n.fn.extend({focus:function(t){return function(i,r){return typeof i=="number"?this.each(function(){var t=this;setTimeout(function(){n(t).focus(),r&&r.call(t)},i)}):t.apply(this,arguments)}}(n.fn.focus),scrollParent:function(){var t;return t=n.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(n.css(this,"position"))&&/(auto|scroll)/.test(n.css(this,"overflow")+n.css(this,"overflow-y")+n.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(n.css(this,"overflow")+n.css(this,"overflow-y")+n.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!t.length?n(document):t},zIndex:function(i){if(i!==t)return this.css("zIndex",i);if(this.length)for(var r=n(this[0]),u,f;r.length&&r[0]!==document;){if(u=r.css("position"),(u==="absolute"||u==="relative"||u==="fixed")&&(f=parseInt(r.css("zIndex"),10),!isNaN(f)&&f!==0))return f;r=r.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++u)})},removeUniqueId:function(){return this.each(function(){f.test(this.id)&&n(this).removeAttr("id")})}}),n.extend(n.expr[":"],{data:n.expr.createPseudo?n.expr.createPseudo(function(t){return function(i){return!!n.data(i,t)}}):function(t,i,r){return!!n.data(t,r[3])},focusable:function(t){return i(t,!isNaN(n.attr(t,"tabindex")))},tabbable:function(t){var r=n.attr(t,"tabindex"),u=isNaN(r);return(u||r>=0)&&i(t,!u)}}),n("<a>").outerWidth(1).jquery||n.each(["Width","Height"],function(i,r){function e(t,i,r,u){return n.each(o,function(){i-=parseFloat(n.css(t,"padding"+this))||0,r&&(i-=parseFloat(n.css(t,"border"+this+"Width"))||0),u&&(i-=parseFloat(n.css(t,"margin"+this))||0)}),i}var o=r==="Width"?["Left","Right"]:["Top","Bottom"],u=r.toLowerCase(),f={innerWidth:n.fn.innerWidth,innerHeight:n.fn.innerHeight,outerWidth:n.fn.outerWidth,outerHeight:n.fn.outerHeight};n.fn["inner"+r]=function(i){return i===t?f["inner"+r].call(this):this.each(function(){n(this).css(u,e(this,i)+"px")})},n.fn["outer"+r]=function(t,i){return typeof t!="number"?f["outer"+r].call(this,t):this.each(function(){n(this).css(u,e(this,t,!0,i)+"px")})}}),n.fn.addBack||(n.fn.addBack=function(n){return this.add(n==null?this.prevObject:this.prevObject.filter(n))}),n("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(n.fn.removeData=function(t){return function(i){return arguments.length?t.call(this,n.camelCase(i)):t.call(this)}}(n.fn.removeData)),n.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),n.support.selectstart="onselectstart"in document.createElement("div"),n.fn.extend({disableSelection:function(){return this.bind((n.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(n){n.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),n.extend(n.ui,{plugin:{add:function(t,i,r){var u,f=n.ui[t].prototype;for(u in r)f.plugins[u]=f.plugins[u]||[],f.plugins[u].push([i,r[u]])},call:function(n,t,i){var r,u=n.plugins[t];if(u&&n.element[0].parentNode&&n.element[0].parentNode.nodeType!==11)for(r=0;r<u.length;r++)n.options[u[r][0]]&&u[r][1].apply(n.element,i)}},hasScroll:function(t,i){if(n(t).css("overflow")==="hidden")return!1;var r=i&&i==="left"?"scrollLeft":"scrollTop",u=!1;return t[r]>0?!0:(t[r]=1,u=t[r]>0,t[r]=0,u)}})}(jQuery),function(n,t){var r=0,i=Array.prototype.slice,u=n.cleanData;n.cleanData=function(t){for(var i=0,r;(r=t[i])!=null;i++)try{n(r).triggerHandler("remove")}catch(f){}u(t)},n.widget=function(t,i,r){var s,f,u,o,h={},e=t.split(".")[0];t=t.split(".")[1],s=e+"-"+t,r||(r=i,i=n.Widget),n.expr[":"][s.toLowerCase()]=function(t){return!!n.data(t,s)},n[e]=n[e]||{},f=n[e][t],u=n[e][t]=function(n,t){if(!this._createWidget)return new u(n,t);arguments.length&&this._createWidget(n,t)},n.extend(u,f,{version:r.version,_proto:n.extend({},r),_childConstructors:[]}),o=new i,o.options=n.widget.extend({},o.options),n.each(r,function(t,r){if(!n.isFunction(r)){h[t]=r;return}h[t]=function(){var n=function(){return i.prototype[t].apply(this,arguments)},u=function(n){return i.prototype[t].apply(this,n)};return function(){var i=this._super,f=this._superApply,t;return this._super=n,this._superApply=u,t=r.apply(this,arguments),this._super=i,this._superApply=f,t}}()}),u.prototype=n.widget.extend(o,{widgetEventPrefix:f?o.widgetEventPrefix:t},h,{constructor:u,namespace:e,widgetName:t,widgetFullName:s}),f?(n.each(f._childConstructors,function(t,i){var r=i.prototype;n.widget(r.namespace+"."+r.widgetName,u,i._proto)}),delete f._childConstructors):i._childConstructors.push(u),n.widget.bridge(t,u)},n.widget.extend=function(r){for(var o=i.call(arguments,1),e=0,s=o.length,u,f;e<s;e++)for(u in o[e])f=o[e][u],o[e].hasOwnProperty(u)&&f!==t&&(r[u]=n.isPlainObject(f)?n.isPlainObject(r[u])?n.widget.extend({},r[u],f):n.widget.extend({},f):f);return r},n.widget.bridge=function(r,u){var f=u.prototype.widgetFullName||r;n.fn[r]=function(e){var h=typeof e=="string",o=i.call(arguments,1),s=this;return e=!h&&o.length?n.widget.extend.apply(null,[e].concat(o)):e,h?this.each(function(){var i,u=n.data(this,f);return u?!n.isFunction(u[e])||e.charAt(0)==="_"?n.error("no such method '"+e+"' for "+r+" widget instance"):(i=u[e].apply(u,o),i!==u&&i!==t?(s=i&&i.jquery?s.pushStack(i.get()):i,!1):void 0):n.error("cannot call methods on "+r+" prior to initialization; attempted to call method '"+e+"'")}):this.each(function(){var t=n.data(this,f);t?t.option(e||{})._init():n.data(this,f,new u(e,this))}),s}},n.Widget=function(){},n.Widget._childConstructors=[],n.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(t,i){i=n(i||this.defaultElement||this)[0],this.element=n(i),this.uuid=r++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=n.widget.extend({},this.options,this._getCreateOptions(),t),this.bindings=n(),this.hoverable=n(),this.focusable=n(),i!==this&&(n.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(n){n.target===i&&this.destroy()}}),this.document=n(i.style?i.ownerDocument:i.document||i),this.window=n(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:n.noop,_getCreateEventData:n.noop,_create:n.noop,_init:n.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(n.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:n.noop,widget:function(){return this.element},option:function(i,r){var o=i,u,f,e;if(arguments.length===0)return n.widget.extend({},this.options);if(typeof i=="string")if(o={},u=i.split("."),i=u.shift(),u.length){for(f=o[i]=n.widget.extend({},this.options[i]),e=0;e<u.length-1;e++)f[u[e]]=f[u[e]]||{},f=f[u[e]];if(i=u.pop(),r===t)return f[i]===t?null:f[i];f[i]=r}else{if(r===t)return this.options[i]===t?null:this.options[i];o[i]=r}return this._setOptions(o),this},_setOptions:function(n){var t;for(t in n)this._setOption(t,n[t]);return this},_setOption:function(n,t){return this.options[n]=t,n==="disabled"&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!t).attr("aria-disabled",t),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(t,i,r){var f,u=this;typeof t!="boolean"&&(r=i,i=t,t=!1),r?(i=f=n(i),this.bindings=this.bindings.add(i)):(r=i,i=this.element,f=this.widget()),n.each(r,function(r,e){function o(){if(t||u.options.disabled!==!0&&!n(this).hasClass("ui-state-disabled"))return(typeof e=="string"?u[e]:e).apply(u,arguments)}typeof e!="string"&&(o.guid=e.guid=e.guid||o.guid||n.guid++);var s=r.match(/^(\w+)\s*(.*)$/),h=s[1]+u.eventNamespace,c=s[2];c?f.delegate(c,h,o):i.bind(h,o)})},_off:function(n,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,n.unbind(t).undelegate(t)},_delay:function(n,t){function r(){return(typeof n=="string"?i[n]:n).apply(i,arguments)}var i=this;return setTimeout(r,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){n(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){n(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){n(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){n(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,i,r){var u,f,e=this.options[t];if(r=r||{},i=n.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],f=i.originalEvent,f)for(u in f)u in i||(i[u]=f[u]);return this.element.trigger(i,r),!(n.isFunction(e)&&e.apply(this.element[0],[i].concat(r))===!1||i.isDefaultPrevented())}},n.each({show:"fadeIn",hide:"fadeOut"},function(t,i){n.Widget.prototype["_"+t]=function(r,u,f){typeof u=="string"&&(u={effect:u});var o,e=u?u===!0||typeof u=="number"?i:u.effect||i:t;u=u||{},typeof u=="number"&&(u={duration:u}),o=!n.isEmptyObject(u),u.complete=f,u.delay&&r.delay(u.delay),o&&n.effects&&n.effects.effect[e]?r[t](u):e!==t&&r[e]?r[e](u.duration,u.easing,f):r.queue(function(i){n(this)[t](),f&&f.call(r[0]),i()})}})}(jQuery),function(n){var i=!1;n(document).mouseup(function(){i=!1}),n.widget("ui.mouse",{version:"1.10.3",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.bind("mousedown."+this.widgetName,function(n){return t._mouseDown(n)}).bind("click."+this.widgetName,function(i){if(!0===n.data(i.target,t.widgetName+".preventClickEvent"))return n.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&n(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!i){this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var r=this,u=t.which===1,f=typeof this.options.cancel=="string"&&t.target.nodeName?n(t.target).closest(this.options.cancel).length:!1;return!u||f||!this._mouseCapture(t)?!0:(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){r.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(t)!==!1,!this._mouseStarted))?(t.preventDefault(),!0):(!0===n.data(t.target,this.widgetName+".preventClickEvent")&&n.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(n){return r._mouseMove(n)},this._mouseUpDelegate=function(n){return r._mouseUp(n)},n(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),i=!0,!0)}},_mouseMove:function(t){return n.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button?this._mouseUp(t):this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){return n(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&n.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),!1},_mouseDistanceMet:function(n){return Math.max(Math.abs(this._mouseDownEvent.pageX-n.pageX),Math.abs(this._mouseDownEvent.pageY-n.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),function(n){n.widget("ui.draggable",n.ui.mouse,{version:"1.10.3",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){this.options.helper!=="original"||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(t){var i=this.options;return this.helper||i.disabled||n(t.target).closest(".ui-resizable-handle").length>0?!1:(this.handle=this._getHandle(t),!this.handle)?!1:(n(i.iframeFix===!0?"iframe":i.iframeFix).each(function(){n("<div class='ui-draggable-iframeFix' style='background: #fff;'><\/div>").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(n(this).offset()).appendTo("body")}),!0)},_mouseStart:function(t){var i=this.options;return(this.helper=this._createHelper(t),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),n.ui.ddmanager&&(n.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css("position"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,n.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),this._trigger("start",t)===!1)?(this._clear(),!1):(this._cacheHelperProportions(),n.ui.ddmanager&&!i.dropBehaviour&&n.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),n.ui.ddmanager&&n.ui.ddmanager.dragStart(this,t),!0)},_mouseDrag:function(t,i){if(this.offsetParentCssPosition==="fixed"&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),!i){var r=this._uiHash();if(this._trigger("drag",t,r)===!1)return this._mouseUp({}),!1;this.position=r.position}return this.options.axis&&this.options.axis==="y"||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&this.options.axis==="x"||(this.helper[0].style.top=this.position.top+"px"),n.ui.ddmanager&&n.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var r=this,i=!1;return(n.ui.ddmanager&&!this.options.dropBehaviour&&(i=n.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),this.options.helper==="original"&&!n.contains(this.element[0].ownerDocument,this.element[0]))?!1:(this.options.revert==="invalid"&&!i||this.options.revert==="valid"&&i||this.options.revert===!0||n.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)?n(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){r._trigger("stop",t)!==!1&&r._clear()}):this._trigger("stop",t)!==!1&&this._clear(),!1)},_mouseUp:function(t){return n("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),n.ui.ddmanager&&n.ui.ddmanager.dragStop(this,t),n.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(t){return this.options.handle?!!n(t.target).closest(this.element.find(this.options.handle)).length:!0},_createHelper:function(t){var r=this.options,i=n.isFunction(r.helper)?n(r.helper.apply(this.element[0],[t])):r.helper==="clone"?this.element.clone().removeAttr("id"):this.element;return i.parents("body").length||i.appendTo(r.appendTo==="parent"?this.element[0].parentNode:r.appendTo),i[0]===this.element[0]||/(fixed|absolute)/.test(i.css("position"))||i.css("position","absolute"),i},_adjustOffsetFromHelper:function(t){typeof t=="string"&&(t=t.split(" ")),n.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){var t=this.offsetParent.offset();return this.cssPosition==="absolute"&&this.scrollParent[0]!==document&&n.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()==="html"&&n.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==="relative"){var n=this.element.position();return{top:n.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:n.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var u,t,i,r=this.options;if(!r.containment){this.containment=null;return}if(r.containment==="window"){this.containment=[n(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,n(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,n(window).scrollLeft()+n(window).width()-this.helperProportions.width-this.margins.left,n(window).scrollTop()+(n(window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(r.containment==="document"){this.containment=[0,0,n(document).width()-this.helperProportions.width-this.margins.left,(n(document).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(r.containment.constructor===Array){this.containment=r.containment;return}(r.containment==="parent"&&(r.containment=this.helper[0].parentNode),t=n(r.containment),i=t[0],i)&&(u=t.css("overflow")!=="hidden",this.containment=[(parseInt(t.css("borderLeftWidth"),10)||0)+(parseInt(t.css("paddingLeft"),10)||0),(parseInt(t.css("borderTopWidth"),10)||0)+(parseInt(t.css("paddingTop"),10)||0),(u?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(t.css("borderRightWidth"),10)||0)-(parseInt(t.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(u?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(t.css("borderBottomWidth"),10)||0)-(parseInt(t.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=t)},_convertPositionTo:function(t,i){i||(i=this.position);var r=t==="absolute"?1:-1,u=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==document&&n.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent;return this.offset.scroll||(this.offset.scroll={top:u.scrollTop(),left:u.scrollLeft()}),{top:i.top+this.offset.relative.top*r+this.offset.parent.top*r-(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():this.offset.scroll.top)*r,left:i.left+this.offset.relative.left*r+this.offset.parent.left*r-(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():this.offset.scroll.left)*r}},_generatePosition:function(t){var i,e,u,f,r=this.options,h=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==document&&n.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,o=t.pageX,s=t.pageY;return this.offset.scroll||(this.offset.scroll={top:h.scrollTop(),left:h.scrollLeft()}),this.originalPosition&&(this.containment&&(this.relative_container?(e=this.relative_container.offset(),i=[this.containment[0]+e.left,this.containment[1]+e.top,this.containment[2]+e.left,this.containment[3]+e.top]):i=this.containment,t.pageX-this.offset.click.left<i[0]&&(o=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(s=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(o=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(s=i[3]+this.offset.click.top)),r.grid&&(u=r.grid[1]?this.originalPageY+Math.round((s-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,s=i?u-this.offset.click.top>=i[1]||u-this.offset.click.top>i[3]?u:u-this.offset.click.top>=i[1]?u-r.grid[1]:u+r.grid[1]:u,f=r.grid[0]?this.originalPageX+Math.round((o-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,o=i?f-this.offset.click.left>=i[0]||f-this.offset.click.left>i[2]?f:f-this.offset.click.left>=i[0]?f-r.grid[0]:f+r.grid[0]:f)),{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():this.offset.scroll.top),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(t,i,r){return r=r||this._uiHash(),n.ui.plugin.call(this,t,[i,r]),t==="drag"&&(this.positionAbs=this._convertPositionTo("absolute")),n.Widget.prototype._trigger.call(this,t,i,r)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),n.ui.plugin.add("draggable","connectToSortable",{start:function(t,i){var r=n(this).data("ui-draggable"),u=r.options,f=n.extend({},i,{item:r.element});r.sortables=[],n(u.connectToSortable).each(function(){var i=n.data(this,"ui-sortable");i&&!i.options.disabled&&(r.sortables.push({instance:i,shouldRevert:i.options.revert}),i.refreshPositions(),i._trigger("activate",t,f))})},stop:function(t,i){var r=n(this).data("ui-draggable"),u=n.extend({},i,{item:r.element});n.each(r.sortables,function(){this.instance.isOver?(this.instance.isOver=0,r.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(t),this.instance.options.helper=this.instance.options._helper,r.options.helper==="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",t,u))})},drag:function(t,i){var r=n(this).data("ui-draggable"),u=this;n.each(r.sortables,function(){var f=!1,e=this;this.instance.positionAbs=r.positionAbs,this.instance.helperProportions=r.helperProportions,this.instance.offset.click=r.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(f=!0,n.each(r.sortables,function(){return this.instance.positionAbs=r.positionAbs,this.instance.helperProportions=r.helperProportions,this.instance.offset.click=r.offset.click,this!==e&&this.instance._intersectsWith(this.instance.containerCache)&&n.contains(e.instance.element[0],this.instance.element[0])&&(f=!1),f})),f?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=n(u).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return i.helper[0]},t.target=this.instance.currentItem[0],this.instance._mouseCapture(t,!0),this.instance._mouseStart(t,!0,!0),this.instance.offset.click.top=r.offset.click.top,this.instance.offset.click.left=r.offset.click.left,this.instance.offset.parent.left-=r.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=r.offset.parent.top-this.instance.offset.parent.top,r._trigger("toSortable",t),r.dropped=this.instance.element,r.currentItem=r.element,this.instance.fromOutside=r),this.instance.currentItem&&this.instance._mouseDrag(t)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",t,this.instance._uiHash(this.instance)),this.instance._mouseStop(t,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),r._trigger("fromSortable",t),r.dropped=!1)})}}),n.ui.plugin.add("draggable","cursor",{start:function(){var t=n("body"),i=n(this).data("ui-draggable").options;t.css("cursor")&&(i._cursor=t.css("cursor")),t.css("cursor",i.cursor)},stop:function(){var t=n(this).data("ui-draggable").options;t._cursor&&n("body").css("cursor",t._cursor)}}),n.ui.plugin.add("draggable","opacity",{start:function(t,i){var r=n(i.helper),u=n(this).data("ui-draggable").options;r.css("opacity")&&(u._opacity=r.css("opacity")),r.css("opacity",u.opacity)},stop:function(t,i){var r=n(this).data("ui-draggable").options;r._opacity&&n(i.helper).css("opacity",r._opacity)}}),n.ui.plugin.add("draggable","scroll",{start:function(){var t=n(this).data("ui-draggable");t.scrollParent[0]!==document&&t.scrollParent[0].tagName!=="HTML"&&(t.overflowOffset=t.scrollParent.offset())},drag:function(t){var r=n(this).data("ui-draggable"),i=r.options,u=!1;r.scrollParent[0]!==document&&r.scrollParent[0].tagName!=="HTML"?(i.axis&&i.axis==="x"||(r.overflowOffset.top+r.scrollParent[0].offsetHeight-t.pageY<i.scrollSensitivity?r.scrollParent[0].scrollTop=u=r.scrollParent[0].scrollTop+i.scrollSpeed:t.pageY-r.overflowOffset.top<i.scrollSensitivity&&(r.scrollParent[0].scrollTop=u=r.scrollParent[0].scrollTop-i.scrollSpeed)),i.axis&&i.axis==="y"||(r.overflowOffset.left+r.scrollParent[0].offsetWidth-t.pageX<i.scrollSensitivity?r.scrollParent[0].scrollLeft=u=r.scrollParent[0].scrollLeft+i.scrollSpeed:t.pageX-r.overflowOffset.left<i.scrollSensitivity&&(r.scrollParent[0].scrollLeft=u=r.scrollParent[0].scrollLeft-i.scrollSpeed))):(i.axis&&i.axis==="x"||(t.pageY-n(document).scrollTop()<i.scrollSensitivity?u=n(document).scrollTop(n(document).scrollTop()-i.scrollSpeed):n(window).height()-(t.pageY-n(document).scrollTop())<i.scrollSensitivity&&(u=n(document).scrollTop(n(document).scrollTop()+i.scrollSpeed))),i.axis&&i.axis==="y"||(t.pageX-n(document).scrollLeft()<i.scrollSensitivity?u=n(document).scrollLeft(n(document).scrollLeft()-i.scrollSpeed):n(window).width()-(t.pageX-n(document).scrollLeft())<i.scrollSensitivity&&(u=n(document).scrollLeft(n(document).scrollLeft()+i.scrollSpeed)))),u!==!1&&n.ui.ddmanager&&!i.dropBehaviour&&n.ui.ddmanager.prepareOffsets(r,t)}}),n.ui.plugin.add("draggable","snap",{start:function(){var t=n(this).data("ui-draggable"),i=t.options;t.snapElements=[],n(i.snap.constructor!==String?i.snap.items||":data(ui-draggable)":i.snap).each(function(){var i=n(this),r=i.offset();this!==t.element[0]&&t.snapElements.push({item:this,width:i.outerWidth(),height:i.outerHeight(),top:r.top,left:r.left})})},drag:function(t,i){for(var e,o,s,h,c,a,l,v,w,r=n(this).data("ui-draggable"),b=r.options,f=b.snapTolerance,y=i.offset.left,k=y+r.helperProportions.width,p=i.offset.top,d=p+r.helperProportions.height,u=r.snapElements.length-1;u>=0;u--){if(c=r.snapElements[u].left,a=c+r.snapElements[u].width,l=r.snapElements[u].top,v=l+r.snapElements[u].height,k<c-f||y>a+f||d<l-f||p>v+f||!n.contains(r.snapElements[u].item.ownerDocument,r.snapElements[u].item)){r.snapElements[u].snapping&&r.options.snap.release&&r.options.snap.release.call(r.element,t,n.extend(r._uiHash(),{snapItem:r.snapElements[u].item})),r.snapElements[u].snapping=!1;continue}b.snapMode!=="inner"&&(e=Math.abs(l-d)<=f,o=Math.abs(v-p)<=f,s=Math.abs(c-k)<=f,h=Math.abs(a-y)<=f,e&&(i.position.top=r._convertPositionTo("relative",{top:l-r.helperProportions.height,left:0}).top-r.margins.top),o&&(i.position.top=r._convertPositionTo("relative",{top:v,left:0}).top-r.margins.top),s&&(i.position.left=r._convertPositionTo("relative",{top:0,left:c-r.helperProportions.width}).left-r.margins.left),h&&(i.position.left=r._convertPositionTo("relative",{top:0,left:a}).left-r.margins.left)),w=e||o||s||h,b.snapMode!=="outer"&&(e=Math.abs(l-p)<=f,o=Math.abs(v-d)<=f,s=Math.abs(c-y)<=f,h=Math.abs(a-k)<=f,e&&(i.position.top=r._convertPositionTo("relative",{top:l,left:0}).top-r.margins.top),o&&(i.position.top=r._convertPositionTo("relative",{top:v-r.helperProportions.height,left:0}).top-r.margins.top),s&&(i.position.left=r._convertPositionTo("relative",{top:0,left:c}).left-r.margins.left),h&&(i.position.left=r._convertPositionTo("relative",{top:0,left:a-r.helperProportions.width}).left-r.margins.left)),!r.snapElements[u].snapping&&(e||o||s||h||w)&&r.options.snap.snap&&r.options.snap.snap.call(r.element,t,n.extend(r._uiHash(),{snapItem:r.snapElements[u].item})),r.snapElements[u].snapping=e||o||s||h||w}}}),n.ui.plugin.add("draggable","stack",{start:function(){var i,r=this.data("ui-draggable").options,t=n.makeArray(n(r.stack)).sort(function(t,i){return(parseInt(n(t).css("zIndex"),10)||0)-(parseInt(n(i).css("zIndex"),10)||0)});t.length&&(i=parseInt(n(t[0]).css("zIndex"),10)||0,n(t).each(function(t){n(this).css("zIndex",i+t)}),this.css("zIndex",i+t.length))}}),n.ui.plugin.add("draggable","zIndex",{start:function(t,i){var r=n(i.helper),u=n(this).data("ui-draggable").options;r.css("zIndex")&&(u._zIndex=r.css("zIndex")),r.css("zIndex",u.zIndex)},stop:function(t,i){var r=n(this).data("ui-draggable").options;r._zIndex&&n(i.helper).css("zIndex",r._zIndex)}})}(jQuery),function(n){function i(n,t,i){return n>t&&n<t+i}n.widget("ui.droppable",{version:"1.10.3",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t=this.options,i=t.accept;this.isover=!1,this.isout=!0,this.accept=n.isFunction(i)?i:function(n){return n.is(i)},this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight},n.ui.ddmanager.droppables[t.scope]=n.ui.ddmanager.droppables[t.scope]||[],n.ui.ddmanager.droppables[t.scope].push(this),t.addClasses&&this.element.addClass("ui-droppable")},_destroy:function(){for(var t=0,i=n.ui.ddmanager.droppables[this.options.scope];t<i.length;t++)i[t]===this&&i.splice(t,1);this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(t,i){t==="accept"&&(this.accept=n.isFunction(i)?i:function(n){return n.is(i)}),n.Widget.prototype._setOption.apply(this,arguments)},_activate:function(t){var i=n.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),i&&this._trigger("activate",t,this.ui(i))},_deactivate:function(t){var i=n.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),i&&this._trigger("deactivate",t,this.ui(i))},_over:function(t){var i=n.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",t,this.ui(i)))},_out:function(t){var i=n.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",t,this.ui(i)))},_drop:function(t,i){var r=i||n.ui.ddmanager.current,u=!1;return!r||(r.currentItem||r.element)[0]===this.element[0]?!1:(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var t=n.data(this,"ui-droppable");if(t.options.greedy&&!t.options.disabled&&t.options.scope===r.options.scope&&t.accept.call(t.element[0],r.currentItem||r.element)&&n.ui.intersect(r,n.extend(t,{offset:t.element.offset()}),t.options.tolerance))return u=!0,!1}),u)?!1:this.accept.call(this.element[0],r.currentItem||r.element)?(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",t,this.ui(r)),this.element):!1},ui:function(n){return{draggable:n.currentItem||n.element,helper:n.helper,position:n.position,offset:n.positionAbs}}}),n.ui.intersect=function(n,t,r){if(!t.offset)return!1;var a,v,e=(n.positionAbs||n.position.absolute).left,s=e+n.helperProportions.width,o=(n.positionAbs||n.position.absolute).top,h=o+n.helperProportions.height,u=t.offset.left,c=u+t.proportions.width,f=t.offset.top,l=f+t.proportions.height;switch(r){case"fit":return u<=e&&s<=c&&f<=o&&h<=l;case"intersect":return u<e+n.helperProportions.width/2&&s-n.helperProportions.width/2<c&&f<o+n.helperProportions.height/2&&h-n.helperProportions.height/2<l;case"pointer":return a=(n.positionAbs||n.position.absolute).left+(n.clickOffset||n.offset.click).left,v=(n.positionAbs||n.position.absolute).top+(n.clickOffset||n.offset.click).top,i(v,f,t.proportions.height)&&i(a,u,t.proportions.width);case"touch":return(o>=f&&o<=l||h>=f&&h<=l||o<f&&h>l)&&(e>=u&&e<=c||s>=u&&s<=c||e<u&&s>c);default:return!1}},n.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(t,i){var r,f,u=n.ui.ddmanager.droppables[t.options.scope]||[],o=i?i.type:null,e=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();n:for(r=0;r<u.length;r++)if(!u[r].options.disabled&&(!t||u[r].accept.call(u[r].element[0],t.currentItem||t.element))){for(f=0;f<e.length;f++)if(e[f]===u[r].element[0]){u[r].proportions.height=0;continue n}(u[r].visible=u[r].element.css("display")!=="none",u[r].visible)&&(o==="mousedown"&&u[r]._activate.call(u[r],i),u[r].offset=u[r].element.offset(),u[r].proportions={width:u[r].element[0].offsetWidth,height:u[r].element[0].offsetHeight})}},drop:function(t,i){var r=!1;return n.each((n.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&n.ui.intersect(t,this,this.options.tolerance)&&(r=this._drop.call(this,i)||r),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))}),r},dragStart:function(t,i){t.element.parentsUntil("body").bind("scroll.droppable",function(){t.options.refreshPositions||n.ui.ddmanager.prepareOffsets(t,i)})},drag:function(t,i){t.options.refreshPositions&&n.ui.ddmanager.prepareOffsets(t,i),n.each(n.ui.ddmanager.droppables[t.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var r,e,f,o=n.ui.intersect(t,this,this.options.tolerance),u=!o&&this.isover?"isout":o&&!this.isover?"isover":null;u&&(this.options.greedy&&(e=this.options.scope,f=this.element.parents(":data(ui-droppable)").filter(function(){return n.data(this,"ui-droppable").options.scope===e}),f.length&&(r=n.data(f[0],"ui-droppable"),r.greedyChild=u==="isover")),r&&u==="isover"&&(r.isover=!1,r.isout=!0,r._out.call(r,i)),this[u]=!0,this[u==="isout"?"isover":"isout"]=!1,this[u==="isover"?"_over":"_out"].call(this,i),r&&u==="isout"&&(r.isout=!1,r.isover=!0,r._over.call(r,i)))}})},dragStop:function(t,i){t.element.parentsUntil("body").unbind("scroll.droppable"),t.options.refreshPositions||n.ui.ddmanager.prepareOffsets(t,i)}}}(jQuery),function(n){function r(n){return parseInt(n,10)||0}function i(n){return!isNaN(parseInt(n,10))}n.widget("ui.resizable",n.ui.mouse,{version:"1.10.3",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_create:function(){var e,f,r,i,o,u=this,t=this.options;if(this.element.addClass("ui-resizable"),n.extend(this,{_aspectRatio:!!t.aspectRatio,aspectRatio:t.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:t.helper||t.ghost||t.animate?t.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(n("<div class='ui-wrapper' style='overflow: hidden;'><\/div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.data("ui-resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=t.handles||(n(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this.handles.constructor===String)for(this.handles==="all"&&(this.handles="n,e,s,w,se,sw,ne,nw"),e=this.handles.split(","),this.handles={},f=0;f<e.length;f++)r=n.trim(e[f]),o="ui-resizable-"+r,i=n("<div class='ui-resizable-handle "+o+"'><\/div>"),i.css({zIndex:t.zIndex}),"se"===r&&i.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[r]=".ui-resizable-"+r,this.element.append(i);this._renderAxis=function(t){var i,r,u,f;t=t||this.element;for(i in this.handles)this.handles[i].constructor===String&&(this.handles[i]=n(this.handles[i],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)&&(r=n(this.handles[i],this.element),f=/sw|ne|nw|se|n|s/.test(i)?r.outerHeight():r.outerWidth(),u=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),t.css(u,f),this._proportionallyResize()),!n(this.handles[i]).length},this._renderAxis(this.element),this._handles=n(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){u.resizing||(this.className&&(i=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),u.axis=i&&i[1]?i[1]:"se")}),t.autoHide&&(this._handles.hide(),n(this.element).addClass("ui-resizable-autohide").mouseenter(function(){t.disabled||(n(this).removeClass("ui-resizable-autohide"),u._handles.show())}).mouseleave(function(){t.disabled||u.resizing||(n(this).addClass("ui-resizable-autohide"),u._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var t,i=function(t){n(t).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_mouseCapture:function(t){var r,i,u=!1;for(r in this.handles)i=n(this.handles[r])[0],(i===t.target||n.contains(i,t.target))&&(u=!0);return!this.options.disabled&&u},_mouseStart:function(t){var f,e,o,u=this.options,s=this.element.position(),i=this.element;return this.resizing=!0,/absolute/.test(i.css("position"))?i.css({position:"absolute",top:i.css("top"),left:i.css("left")}):i.is(".ui-draggable")&&i.css({position:"absolute",top:s.top,left:s.left}),this._renderProxy(),f=r(this.helper.css("left")),e=r(this.helper.css("top")),u.containment&&(f+=n(u.containment).scrollLeft()||0,e+=n(u.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:f,top:e},this.size=this._helper?{width:i.outerWidth(),height:i.outerHeight()}:{width:i.width(),height:i.height()},this.originalSize=this._helper?{width:i.outerWidth(),height:i.outerHeight()}:{width:i.width(),height:i.height()},this.originalPosition={left:f,top:e},this.sizeDiff={width:i.outerWidth()-i.width(),height:i.outerHeight()-i.height()},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio=typeof u.aspectRatio=="number"?u.aspectRatio:this.originalSize.width/this.originalSize.height||1,o=n(".ui-resizable-"+this.axis).css("cursor"),n("body").css("cursor",o==="auto"?this.axis+"-resize":o),i.addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var i,e=this.helper,r={},u=this.originalMousePosition,o=this.axis,s=this.position.top,h=this.position.left,c=this.size.width,l=this.size.height,a=t.pageX-u.left||0,v=t.pageY-u.top||0,f=this._change[o];return f?(i=f.apply(this,[t,a,v]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(i=this._updateRatio(i,t)),i=this._respectSize(i,t),this._updateCache(i),this._propagate("resize",t),this.position.top!==s&&(r.top=this.position.top+"px"),this.position.left!==h&&(r.left=this.position.left+"px"),this.size.width!==c&&(r.width=this.size.width+"px"),this.size.height!==l&&(r.height=this.size.height+"px"),e.css(r),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),n.isEmptyObject(r)||this._trigger("resize",t,this.ui()),!1):!1},_mouseStop:function(t){this.resizing=!1;var r,u,f,e,o,s,h,c=this.options,i=this;return this._helper&&(r=this._proportionallyResizeElements,u=r.length&&/textarea/i.test(r[0].nodeName),f=u&&n.ui.hasScroll(r[0],"left")?0:i.sizeDiff.height,e=u?0:i.sizeDiff.width,o={width:i.helper.width()-e,height:i.helper.height()-f},s=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,h=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null,c.animate||this.element.css(n.extend(o,{top:h,left:s})),i.helper.height(i.size.height),i.helper.width(i.size.width),this._helper&&!c.animate&&this._proportionallyResize()),n("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(n){var u,f,e,o,t,r=this.options;t={minWidth:i(r.minWidth)?r.minWidth:0,maxWidth:i(r.maxWidth)?r.maxWidth:Infinity,minHeight:i(r.minHeight)?r.minHeight:0,maxHeight:i(r.maxHeight)?r.maxHeight:Infinity},(this._aspectRatio||n)&&(u=t.minHeight*this.aspectRatio,e=t.minWidth/this.aspectRatio,f=t.maxHeight*this.aspectRatio,o=t.maxWidth/this.aspectRatio,u>t.minWidth&&(t.minWidth=u),e>t.minHeight&&(t.minHeight=e),f<t.maxWidth&&(t.maxWidth=f),o<t.maxHeight&&(t.maxHeight=o)),this._vBoundaries=t},_updateCache:function(n){this.offset=this.helper.offset(),i(n.left)&&(this.position.left=n.left),i(n.top)&&(this.position.top=n.top),i(n.height)&&(this.size.height=n.height),i(n.width)&&(this.size.width=n.width)},_updateRatio:function(n){var t=this.position,r=this.size,u=this.axis;return i(n.height)?n.width=n.height*this.aspectRatio:i(n.width)&&(n.height=n.width/this.aspectRatio),u==="sw"&&(n.left=t.left+(r.width-n.width),n.top=null),u==="nw"&&(n.top=t.top+(r.height-n.height),n.left=t.left+(r.width-n.width)),n},_respectSize:function(n){var t=this._vBoundaries,r=this.axis,u=i(n.width)&&t.maxWidth&&t.maxWidth<n.width,f=i(n.height)&&t.maxHeight&&t.maxHeight<n.height,e=i(n.width)&&t.minWidth&&t.minWidth>n.width,o=i(n.height)&&t.minHeight&&t.minHeight>n.height,s=this.originalPosition.left+this.originalSize.width,h=this.position.top+this.size.height,c=/sw|nw|w/.test(r),l=/nw|ne|n/.test(r);return e&&(n.width=t.minWidth),o&&(n.height=t.minHeight),u&&(n.width=t.maxWidth),f&&(n.height=t.maxHeight),e&&c&&(n.left=s-t.minWidth),u&&c&&(n.left=s-t.maxWidth),o&&l&&(n.top=h-t.minHeight),f&&l&&(n.top=h-t.maxHeight),n.width||n.height||n.left||!n.top?n.width||n.height||n.top||!n.left||(n.left=null):n.top=null,n},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,r,u,n,f=this.helper||this.element,i=0;i<this._proportionallyResizeElements.length;i++){if(n=this._proportionallyResizeElements[i],!this.borderDif)for(this.borderDif=[],r=[n.css("borderTopWidth"),n.css("borderRightWidth"),n.css("borderBottomWidth"),n.css("borderLeftWidth")],u=[n.css("paddingTop"),n.css("paddingRight"),n.css("paddingBottom"),n.css("paddingLeft")],t=0;t<r.length;t++)this.borderDif[t]=(parseInt(r[t],10)||0)+(parseInt(u[t],10)||0);n.css({height:f.height()-this.borderDif[0]-this.borderDif[2]||0,width:f.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var t=this.element,i=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||n("<div style='overflow:hidden;'><\/div>"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(n,t){return{width:this.originalSize.width+t}},w:function(n,t){var i=this.originalSize,r=this.originalPosition;return{left:r.left+t,width:i.width-t}},n:function(n,t,i){var r=this.originalSize,u=this.originalPosition;return{top:u.top+i,height:r.height-i}},s:function(n,t,i){return{height:this.originalSize.height+i}},se:function(t,i,r){return n.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,i,r]))},sw:function(t,i,r){return n.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,i,r]))},ne:function(t,i,r){return n.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,i,r]))},nw:function(t,i,r){return n.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,i,r]))}},_propagate:function(t,i){n.ui.plugin.call(this,t,[i,this.ui()]),t!=="resize"&&this._trigger(t,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),n.ui.plugin.add("resizable","animate",{stop:function(t){var i=n(this).data("ui-resizable"),u=i.options,r=i._proportionallyResizeElements,f=r.length&&/textarea/i.test(r[0].nodeName),s=f&&n.ui.hasScroll(r[0],"left")?0:i.sizeDiff.height,h=f?0:i.sizeDiff.width,c={width:i.size.width-h,height:i.size.height-s},e=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,o=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(n.extend(c,o&&e?{top:o,left:e}:{}),{duration:u.animateDuration,easing:u.animateEasing,step:function(){var u={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};r&&r.length&&n(r[0]).css({width:u.width,height:u.height}),i._updateCache(u),i._propagate("resize",t)}})}}),n.ui.plugin.add("resizable","containment",{start:function(){var u,e,o,s,h,c,l,t=n(this).data("ui-resizable"),a=t.options,v=t.element,f=a.containment,i=f instanceof n?f.get(0):/parent/.test(f)?v.parent().get(0):f;i&&(t.containerElement=n(i),/document/.test(f)||f===document?(t.containerOffset={left:0,top:0},t.containerPosition={left:0,top:0},t.parentData={element:n(document),left:0,top:0,width:n(document).width(),height:n(document).height()||document.body.parentNode.scrollHeight}):(u=n(i),e=[],n(["Top","Right","Left","Bottom"]).each(function(n,t){e[n]=r(u.css("padding"+t))}),t.containerOffset=u.offset(),t.containerPosition=u.position(),t.containerSize={height:u.innerHeight()-e[3],width:u.innerWidth()-e[1]},o=t.containerOffset,s=t.containerSize.height,h=t.containerSize.width,c=n.ui.hasScroll(i,"left")?i.scrollWidth:h,l=n.ui.hasScroll(i)?i.scrollHeight:s,t.parentData={element:i,left:o.left,top:o.top,width:c,height:l}))},resize:function(t){var f,o,s,h,i=n(this).data("ui-resizable"),a=i.options,r=i.containerOffset,c=i.position,e=i._aspectRatio||t.shiftKey,u={top:0,left:0},l=i.containerElement;l[0]!==document&&/static/.test(l.css("position"))&&(u=r),c.left<(i._helper?r.left:0)&&(i.size.width=i.size.width+(i._helper?i.position.left-r.left:i.position.left-u.left),e&&(i.size.height=i.size.width/i.aspectRatio),i.position.left=a.helper?r.left:0),c.top<(i._helper?r.top:0)&&(i.size.height=i.size.height+(i._helper?i.position.top-r.top:i.position.top),e&&(i.size.width=i.size.height*i.aspectRatio),i.position.top=i._helper?r.top:0),i.offset.left=i.parentData.left+i.position.left,i.offset.top=i.parentData.top+i.position.top,f=Math.abs((i._helper?i.offset.left-u.left:i.offset.left-u.left)+i.sizeDiff.width),o=Math.abs((i._helper?i.offset.top-u.top:i.offset.top-r.top)+i.sizeDiff.height),s=i.containerElement.get(0)===i.element.parent().get(0),h=/relative|absolute/.test(i.containerElement.css("position")),s&&h&&(f-=i.parentData.left),f+i.size.width>=i.parentData.width&&(i.size.width=i.parentData.width-f,e&&(i.size.height=i.size.width/i.aspectRatio)),o+i.size.height>=i.parentData.height&&(i.size.height=i.parentData.height-o,e&&(i.size.width=i.size.height*i.aspectRatio))},stop:function(){var t=n(this).data("ui-resizable"),r=t.options,u=t.containerOffset,f=t.containerPosition,e=t.containerElement,i=n(t.helper),o=i.offset(),s=i.outerWidth()-t.sizeDiff.width,h=i.outerHeight()-t.sizeDiff.height;t._helper&&!r.animate&&/relative/.test(e.css("position"))&&n(this).css({left:o.left-f.left-u.left,width:s,height:h}),t._helper&&!r.animate&&/static/.test(e.css("position"))&&n(this).css({left:o.left-f.left-u.left,width:s,height:h})}}),n.ui.plugin.add("resizable","alsoResize",{start:function(){var r=n(this).data("ui-resizable"),t=r.options,i=function(t){n(t).each(function(){var t=n(this);t.data("ui-resizable-alsoresize",{width:parseInt(t.width(),10),height:parseInt(t.height(),10),left:parseInt(t.css("left"),10),top:parseInt(t.css("top"),10)})})};typeof t.alsoResize!="object"||t.alsoResize.parentNode?i(t.alsoResize):t.alsoResize.length?(t.alsoResize=t.alsoResize[0],i(t.alsoResize)):n.each(t.alsoResize,function(n){i(n)})},resize:function(t,i){var r=n(this).data("ui-resizable"),u=r.options,f=r.originalSize,e=r.originalPosition,s={height:r.size.height-f.height||0,width:r.size.width-f.width||0,top:r.position.top-e.top||0,left:r.position.left-e.left||0},o=function(t,r){n(t).each(function(){var t=n(this),f=n(this).data("ui-resizable-alsoresize"),u={},e=r&&r.length?r:t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];n.each(e,function(n,t){var i=(f[t]||0)+(s[t]||0);i&&i>=0&&(u[t]=i||null)}),t.css(u)})};typeof u.alsoResize!="object"||u.alsoResize.nodeType?o(u.alsoResize):n.each(u.alsoResize,function(n,t){o(n,t)})},stop:function(){n(this).removeData("resizable-alsoresize")}}),n.ui.plugin.add("resizable","ghost",{start:function(){var t=n(this).data("ui-resizable"),i=t.options,r=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:r.height,width:r.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof i.ghost=="string"?i.ghost:""),t.ghost.appendTo(t.helper)},resize:function(){var t=n(this).data("ui-resizable");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=n(this).data("ui-resizable");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),n.ui.plugin.add("resizable","grid",{resize:function(){var t=n(this).data("ui-resizable"),i=t.options,v=t.size,f=t.originalSize,e=t.originalPosition,h=t.axis,c=typeof i.grid=="number"?[i.grid,i.grid]:i.grid,o=c[0]||1,s=c[1]||1,l=Math.round((v.width-f.width)/o)*o,a=Math.round((v.height-f.height)/s)*s,r=f.width+l,u=f.height+a,y=i.maxWidth&&i.maxWidth<r,p=i.maxHeight&&i.maxHeight<u,w=i.minWidth&&i.minWidth>r,b=i.minHeight&&i.minHeight>u;i.grid=c,w&&(r=r+o),b&&(u=u+s),y&&(r=r-o),p&&(u=u-s),/^(se|s|e)$/.test(h)?(t.size.width=r,t.size.height=u):/^(ne)$/.test(h)?(t.size.width=r,t.size.height=u,t.position.top=e.top-a):/^(sw)$/.test(h)?(t.size.width=r,t.size.height=u,t.position.left=e.left-l):(t.size.width=r,t.size.height=u,t.position.top=e.top-a,t.position.left=e.left-l)}})}(jQuery),function(n){n.widget("ui.selectable",n.ui.mouse,{version:"1.10.3",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var t,i=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){t=n(i.options.filter,i.element[0]),t.addClass("ui-selectee"),t.each(function(){var t=n(this),i=t.offset();n.data(this,"selectable-item",{element:this,$element:t,left:i.left,top:i.top,right:i.left+t.outerWidth(),bottom:i.top+t.outerHeight(),startselected:!1,selected:t.hasClass("ui-selected"),selecting:t.hasClass("ui-selecting"),unselecting:t.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=t.addClass("ui-selectee"),this._mouseInit(),this.helper=n("<div class='ui-selectable-helper'><\/div>")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(t){var i=this,r=this.options;(this.opos=[t.pageX,t.pageY],this.options.disabled)||(this.selectees=n(r.filter,this.element[0]),this._trigger("start",t),n(r.appendTo).append(this.helper),this.helper.css({left:t.pageX,top:t.pageY,width:0,height:0}),r.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var r=n.data(this,"selectable-item");r.startselected=!0,t.metaKey||t.ctrlKey||(r.$element.removeClass("ui-selected"),r.selected=!1,r.$element.addClass("ui-unselecting"),r.unselecting=!0,i._trigger("unselecting",t,{unselecting:r.element}))}),n(t.target).parents().addBack().each(function(){var u,r=n.data(this,"selectable-item");if(r)return u=!t.metaKey&&!t.ctrlKey||!r.$element.hasClass("ui-selected"),r.$element.removeClass(u?"ui-unselecting":"ui-selected").addClass(u?"ui-selecting":"ui-unselecting"),r.unselecting=!u,r.selecting=u,r.selected=u,u?i._trigger("selecting",t,{selecting:r.element}):i._trigger("unselecting",t,{unselecting:r.element}),!1}))},_mouseDrag:function(t){if(this.dragged=!0,!this.options.disabled){var e,o=this,s=this.options,i=this.opos[0],r=this.opos[1],u=t.pageX,f=t.pageY;return i>u&&(e=u,u=i,i=e),r>f&&(e=f,f=r,r=e),this.helper.css({left:i,top:r,width:u-i,height:f-r}),this.selectees.each(function(){var e=n.data(this,"selectable-item"),h=!1;e&&e.element!==o.element[0]&&(s.tolerance==="touch"?h=!(e.left>u||e.right<i||e.top>f||e.bottom<r):s.tolerance==="fit"&&(h=e.left>i&&e.right<u&&e.top>r&&e.bottom<f),h?(e.selected&&(e.$element.removeClass("ui-selected"),e.selected=!1),e.unselecting&&(e.$element.removeClass("ui-unselecting"),e.unselecting=!1),e.selecting||(e.$element.addClass("ui-selecting"),e.selecting=!0,o._trigger("selecting",t,{selecting:e.element}))):(e.selecting&&((t.metaKey||t.ctrlKey)&&e.startselected?(e.$element.removeClass("ui-selecting"),e.selecting=!1,e.$element.addClass("ui-selected"),e.selected=!0):(e.$element.removeClass("ui-selecting"),e.selecting=!1,e.startselected&&(e.$element.addClass("ui-unselecting"),e.unselecting=!0),o._trigger("unselecting",t,{unselecting:e.element}))),e.selected&&(t.metaKey||t.ctrlKey||e.startselected||(e.$element.removeClass("ui-selected"),e.selected=!1,e.$element.addClass("ui-unselecting"),e.unselecting=!0,o._trigger("unselecting",t,{unselecting:e.element})))))}),!1}},_mouseStop:function(t){var i=this;return this.dragged=!1,n(".ui-unselecting",this.element[0]).each(function(){var r=n.data(this,"selectable-item");r.$element.removeClass("ui-unselecting"),r.unselecting=!1,r.startselected=!1,i._trigger("unselected",t,{unselected:r.element})}),n(".ui-selecting",this.element[0]).each(function(){var r=n.data(this,"selectable-item");r.$element.removeClass("ui-selecting").addClass("ui-selected"),r.selecting=!1,r.selected=!0,r.startselected=!0,i._trigger("selected",t,{selected:r.element})}),this._trigger("stop",t),this.helper.remove(),!1}})}(jQuery),function(n){function i(n,t,i){return n>t&&n<t+i}function r(n){return/left|right/.test(n.css("float"))||/inline|table-cell/.test(n.css("display"))}n.widget("ui.sortable",n.ui.mouse,{version:"1.10.3",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_create:function(){var n=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=this.items.length?n.axis==="x"||r(this.items[0].item):!1,this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var n=this.items.length-1;n>=0;n--)this.items[n].item.removeData(this.widgetName+"-item");return this},_setOption:function(t,i){t==="disabled"?(this.options[t]=i,this.widget().toggleClass("ui-sortable-disabled",!!i)):n.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(t,i){var r=null,f=!1,u=this;return this.reverting?!1:this.options.disabled||this.options.type==="static"?!1:(this._refreshItems(t),n(t.target).parents().each(function(){if(n.data(this,u.widgetName+"-item")===u)return r=n(this),!1}),n.data(t.target,u.widgetName+"-item")===u&&(r=n(t.target)),!r)?!1:this.options.handle&&!i&&(n(this.options.handle,r).find("*").addBack().each(function(){this===t.target&&(f=!0)}),!f)?!1:(this.currentItem=r,this._removeCurrentsFromItems(),!0)},_mouseStart:function(t,i,r){var f,e,u=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},n.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,u.cursorAt&&this._adjustOffsetFromHelper(u.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),u.containment&&this._setContainment(),u.cursor&&u.cursor!=="auto"&&(e=this.document.find("body"),this.storedCursor=e.css("cursor"),e.css("cursor",u.cursor),this.storedStylesheet=n("<style>*{ cursor: "+u.cursor+" !important; }<\/style>").appendTo(e)),u.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",u.opacity)),u.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",u.zIndex)),this.scrollParent[0]!==document&&this.scrollParent[0].tagName!=="HTML"&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!r)for(f=this.containers.length-1;f>=0;f--)this.containers[f]._trigger("activate",t,this._uiHash(this));return n.ui.ddmanager&&(n.ui.ddmanager.current=this),n.ui.ddmanager&&!u.dropBehaviour&&n.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){var e,u,f,o,i=this.options,r=!1;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==document&&this.scrollParent[0].tagName!=="HTML"?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<i.scrollSensitivity?this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop+i.scrollSpeed:t.pageY-this.overflowOffset.top<i.scrollSensitivity&&(this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop-i.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<i.scrollSensitivity?this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft+i.scrollSpeed:t.pageX-this.overflowOffset.left<i.scrollSensitivity&&(this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft-i.scrollSpeed)):(t.pageY-n(document).scrollTop()<i.scrollSensitivity?r=n(document).scrollTop(n(document).scrollTop()-i.scrollSpeed):n(window).height()-(t.pageY-n(document).scrollTop())<i.scrollSensitivity&&(r=n(document).scrollTop(n(document).scrollTop()+i.scrollSpeed)),t.pageX-n(document).scrollLeft()<i.scrollSensitivity?r=n(document).scrollLeft(n(document).scrollLeft()-i.scrollSpeed):n(window).width()-(t.pageX-n(document).scrollLeft())<i.scrollSensitivity&&(r=n(document).scrollLeft(n(document).scrollLeft()+i.scrollSpeed))),r!==!1&&n.ui.ddmanager&&!i.dropBehaviour&&n.ui.ddmanager.prepareOffsets(this,t)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&this.options.axis==="y"||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&this.options.axis==="x"||(this.helper[0].style.top=this.position.top+"px"),e=this.items.length-1;e>=0;e--)if((u=this.items[e],f=u.item[0],o=this._intersectsWithPointer(u),o)&&u.instance===this.currentContainer&&f!==this.currentItem[0]&&this.placeholder[o===1?"next":"prev"]()[0]!==f&&!n.contains(this.placeholder[0],f)&&(this.options.type==="semi-dynamic"?!n.contains(this.element[0],f):!0)){if(this.direction=o===1?"down":"up",this.options.tolerance==="pointer"||this._intersectsWithSides(u))this._rearrange(t,u);else break;this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),n.ui.ddmanager&&n.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,i){if(t){if(n.ui.ddmanager&&!this.options.dropBehaviour&&n.ui.ddmanager.drop(this,t),this.options.revert){var e=this,f=this.placeholder.offset(),r=this.options.axis,u={};r&&r!=="x"||(u.left=f.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)),r&&r!=="y"||(u.top=f.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,n(this.helper).animate(u,parseInt(this.options.revert,10)||500,function(){e._clear(t)})}else this._clear(t,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),this.options.helper==="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.options.helper!=="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),n.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?n(this.domPosition.prev).after(this.currentItem):n(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var r=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},n(r).each(function(){var r=(n(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);r&&i.push((t.key||r[1]+"[]")+"="+(t.key&&t.expression?r[1]:r[2]))}),!i.length&&t.key&&i.push(t.key+"="),i.join("&")},toArray:function(t){var r=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},r.each(function(){i.push(n(t.item||this).attr(t.attribute||"id")||"")}),i},_intersectsWith:function(n){var t=this.positionAbs.left,h=t+this.helperProportions.width,i=this.positionAbs.top,c=i+this.helperProportions.height,r=n.left,f=r+n.width,u=n.top,e=u+n.height,o=this.offset.click.top,s=this.offset.click.left,l=this.options.axis==="x"||i+o>u&&i+o<e,a=this.options.axis==="y"||t+s>r&&t+s<f,v=l&&a;return this.options.tolerance==="pointer"||this.options.forcePointerForContainers||this.options.tolerance!=="pointer"&&this.helperProportions[this.floating?"width":"height"]>n[this.floating?"width":"height"]?v:r<t+this.helperProportions.width/2&&h-this.helperProportions.width/2<f&&u<i+this.helperProportions.height/2&&c-this.helperProportions.height/2<e},_intersectsWithPointer:function(n){var u=this.options.axis==="x"||i(this.positionAbs.top+this.offset.click.top,n.top,n.height),f=this.options.axis==="y"||i(this.positionAbs.left+this.offset.click.left,n.left,n.width),e=u&&f,t=this._getDragVerticalDirection(),r=this._getDragHorizontalDirection();return e?this.floating?r&&r==="right"||t==="down"?2:1:t&&(t==="down"?2:1):!1},_intersectsWithSides:function(n){var u=i(this.positionAbs.top+this.offset.click.top,n.top+n.height/2,n.height),f=i(this.positionAbs.left+this.offset.click.left,n.left+n.width/2,n.width),t=this._getDragVerticalDirection(),r=this._getDragHorizontalDirection();return this.floating&&r?r==="right"&&f||r==="left"&&!f:t&&(t==="down"&&u||t==="up"&&!u)},_getDragVerticalDirection:function(){var n=this.positionAbs.top-this.lastPositionAbs.top;return n!==0&&(n>0?"down":"up")},_getDragHorizontalDirection:function(){var n=this.positionAbs.left-this.lastPositionAbs.left;return n!==0&&(n>0?"right":"left")},refresh:function(n){return this._refreshItems(n),this.refreshPositions(),this},_connectWith:function(){var n=this.options;return n.connectWith.constructor===String?[n.connectWith]:n.connectWith},_getItemsAsjQuery:function(t){var r,u,e,i,s=[],f=[],o=this._connectWith();if(o&&t)for(r=o.length-1;r>=0;r--)for(e=n(o[r]),u=e.length-1;u>=0;u--)i=n.data(e[u],this.widgetFullName),i&&i!==this&&!i.options.disabled&&f.push([n.isFunction(i.options.items)?i.options.items.call(i.element):n(i.options.items,i.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),i]);for(f.push([n.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):n(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),r=f.length-1;r>=0;r--)f[r][0].each(function(){s.push(this)});return n(s)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=n.grep(this.items,function(n){for(var i=0;i<t.length;i++)if(t[i]===n.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var r,u,e,i,o,s,h,l,a=this.items,f=[[n.isFunction(this.options.items)?this.options.items.call(this.element[0],t,{item:this.currentItem}):n(this.options.items,this.element),this]],c=this._connectWith();if(c&&this.ready)for(r=c.length-1;r>=0;r--)for(e=n(c[r]),u=e.length-1;u>=0;u--)i=n.data(e[u],this.widgetFullName),i&&i!==this&&!i.options.disabled&&(f.push([n.isFunction(i.options.items)?i.options.items.call(i.element[0],t,{item:this.currentItem}):n(i.options.items,i.element),i]),this.containers.push(i));for(r=f.length-1;r>=0;r--)for(o=f[r][1],s=f[r][0],u=0,l=s.length;u<l;u++)h=n(s[u]),h.data(this.widgetName+"-item",o),a.push({item:h,instance:o,width:0,height:0,left:0,top:0})},refreshPositions:function(t){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());for(var r,f,u,i=this.items.length-1;i>=0;i--)(r=this.items[i],r.instance!==this.currentContainer&&this.currentContainer&&r.item[0]!==this.currentItem[0])||(f=this.options.toleranceElement?n(this.options.toleranceElement,r.item):r.item,t||(r.width=f.outerWidth(),r.height=f.outerHeight()),u=f.offset(),r.left=u.left,r.top=u.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)u=this.containers[i].element.offset(),this.containers[i].containerCache.left=u.left,this.containers[i].containerCache.top=u.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(t){t=t||this;var r,i=t.options;i.placeholder&&i.placeholder.constructor!==String||(r=i.placeholder,i.placeholder={element:function(){var u=t.currentItem[0].nodeName.toLowerCase(),i=n("<"+u+">",t.document[0]).addClass(r||t.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return u==="tr"?t.currentItem.children().each(function(){n("<td>&#160;<\/td>",t.document[0]).attr("colspan",n(this).attr("colspan")||1).appendTo(i)}):u==="img"&&i.attr("src",t.currentItem.attr("src")),r||i.css("visibility","hidden"),i},update:function(n,u){(!r||i.forcePlaceholderSize)&&(u.height()||u.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),u.width()||u.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}}),t.placeholder=n(i.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),i.placeholder.update(t,t.placeholder)},_contactContainers:function(t){for(var u,v,s,l,y,h,o,p,a,c=null,f=null,e=this.containers.length-1;e>=0;e--)if(!n.contains(this.currentItem[0],this.containers[e].element[0]))if(this._intersectsWith(this.containers[e].containerCache)){if(c&&n.contains(this.containers[e].element[0],c.element[0]))continue;c=this.containers[e],f=e}else this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",t,this._uiHash(this)),this.containers[e].containerCache.over=0);if(c)if(this.containers.length===1)this.containers[f].containerCache.over||(this.containers[f]._trigger("over",t,this._uiHash(this)),this.containers[f].containerCache.over=1);else{for(v=1e4,s=null,a=c.floating||r(this.currentItem),l=a?"left":"top",y=a?"width":"height",h=this.positionAbs[l]+this.offset.click[l],u=this.items.length-1;u>=0;u--)n.contains(this.containers[f].element[0],this.items[u].item[0])&&this.items[u].item[0]!==this.currentItem[0]&&(!a||i(this.positionAbs.top+this.offset.click.top,this.items[u].top,this.items[u].height))&&(o=this.items[u].item.offset()[l],p=!1,Math.abs(o-h)>Math.abs(o+this.items[u][y]-h)&&(p=!0,o+=this.items[u][y]),Math.abs(o-h)<v&&(v=Math.abs(o-h),s=this.items[u],this.direction=p?"up":"down"));if(!s&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[f])return;s?this._rearrange(t,s,null,!0):this._rearrange(t,null,this.containers[f].element,!0),this._trigger("change",t,this._uiHash()),this.containers[f]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[f],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[f]._trigger("over",t,this._uiHash(this)),this.containers[f].containerCache.over=1}},_createHelper:function(t){var r=this.options,i=n.isFunction(r.helper)?n(r.helper.apply(this.element[0],[t,this.currentItem])):r.helper==="clone"?this.currentItem.clone():this.currentItem;return i.parents("body").length||n(r.appendTo!=="parent"?r.appendTo:this.currentItem[0].parentNode)[0].appendChild(i[0]),i[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!i[0].style.width||r.forceHelperSize)&&i.width(this.currentItem.width()),(!i[0].style.height||r.forceHelperSize)&&i.height(this.currentItem.height()),i},_adjustOffsetFromHelper:function(t){typeof t=="string"&&(t=t.split(" ")),n.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return this.cssPosition==="absolute"&&this.scrollParent[0]!==document&&n.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()==="html"&&n.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==="relative"){var n=this.currentItem.position();return{top:n.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:n.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,r,u,i=this.options;i.containment==="parent"&&(i.containment=this.helper[0].parentNode),(i.containment==="document"||i.containment==="window")&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,n(i.containment==="document"?document:window).width()-this.helperProportions.width-this.margins.left,(n(i.containment==="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(i.containment)||(t=n(i.containment)[0],r=n(i.containment).offset(),u=n(t).css("overflow")!=="hidden",this.containment=[r.left+(parseInt(n(t).css("borderLeftWidth"),10)||0)+(parseInt(n(t).css("paddingLeft"),10)||0)-this.margins.left,r.top+(parseInt(n(t).css("borderTopWidth"),10)||0)+(parseInt(n(t).css("paddingTop"),10)||0)-this.margins.top,r.left+(u?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(n(t).css("borderLeftWidth"),10)||0)-(parseInt(n(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,r.top+(u?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(n(t).css("borderTopWidth"),10)||0)-(parseInt(n(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,i){i||(i=this.position);var r=t==="absolute"?1:-1,u=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==document&&n.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(u[0].tagName);return{top:i.top+this.offset.relative.top*r+this.offset.parent.top*r-(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():f?0:u.scrollTop())*r,left:i.left+this.offset.relative.left*r+this.offset.parent.left*r-(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():f?0:u.scrollLeft())*r}},_generatePosition:function(t){var r,u,i=this.options,f=t.pageX,e=t.pageY,o=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==document&&n.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,s=/(html|body)/i.test(o[0].tagName);return this.cssPosition!=="relative"||this.scrollParent[0]!==document&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(f=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(e=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(f=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(e=this.containment[3]+this.offset.click.top)),i.grid&&(r=this.originalPageY+Math.round((e-this.originalPageY)/i.grid[1])*i.grid[1],e=this.containment?r-this.offset.click.top>=this.containment[1]&&r-this.offset.click.top<=this.containment[3]?r:r-this.offset.click.top>=this.containment[1]?r-i.grid[1]:r+i.grid[1]:r,u=this.originalPageX+Math.round((f-this.originalPageX)/i.grid[0])*i.grid[0],f=this.containment?u-this.offset.click.left>=this.containment[0]&&u-this.offset.click.left<=this.containment[2]?u:u-this.offset.click.left>=this.containment[0]?u-i.grid[0]:u+i.grid[0]:u)),{top:e-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():s?0:o.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():s?0:o.scrollLeft())}},_rearrange:function(n,t,i,r){i?i[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],this.direction==="down"?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var u=this.counter;this._delay(function(){u===this.counter&&this.refreshPositions(!r)})},_clear:function(n,t){this.reverting=!1;var i,r=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)(this._storedCSS[i]==="auto"||this._storedCSS[i]==="static")&&(this._storedCSS[i]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!t&&r.push(function(n){this._trigger("receive",n,this._uiHash(this.fromOutside))}),(this.fromOutside||this.domPosition.prev!==this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!==this.currentItem.parent()[0])&&!t&&r.push(function(n){this._trigger("update",n,this._uiHash())}),this!==this.currentContainer&&(t||(r.push(function(n){this._trigger("remove",n,this._uiHash())}),r.push(function(n){return function(t){n._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),r.push(function(n){return function(t){n._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)t||r.push(function(n){return function(t){n._trigger("deactivate",t,this._uiHash(this))}}.call(this,this.containers[i])),this.containers[i].containerCache.over&&(r.push(function(n){return function(t){n._trigger("out",t,this._uiHash(this))}}.call(this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex",this._storedZIndex==="auto"?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!t){for(this._trigger("beforeStop",n,this._uiHash()),i=0;i<r.length;i++)r[i].call(this,n);this._trigger("stop",n,this._uiHash())}return this.fromOutside=!1,!1}if(t||this._trigger("beforeStop",n,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null,!t){for(i=0;i<r.length;i++)r[i].call(this,n);this._trigger("stop",n,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){n.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(t){var i=t||this;return{helper:i.helper,placeholder:i.placeholder||n([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:t?t.element:null}}})}(jQuery),function(n,t){var i="ui-effects-";n.effects={effect:{}},function(n,t){function e(n,t,i){var r=s[t.type]||{};return n==null?i||!t.def?null:t.def:(n=r.floor?~~n:parseFloat(n),isNaN(n))?t.def:r.mod?(n+r.mod)%r.mod:0>n?0:r.max<n?r.max:n}function l(t){var e=i(),o=e._rgba=[];return(t=t.toLowerCase(),r(y,function(n,i){var r,s=i.re.exec(t),h=s&&i.parse(s),f=i.space||"rgba";if(h)return r=e[f](h),e[u[f].cache]=r[u[f].cache],o=e._rgba=r._rgba,!1}),o.length)?(o.join()==="0,0,0,0"&&n.extend(o,f.transparent),e):f[t]}function o(n,t,i){return(i=(i+1)%1,i*6<1)?n+(t-n)*i*6:i*2<1?t:i*3<2?n+(t-n)*(2/3-i)*6:n}var a="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",v=/^([\-+])=\s*(\d+\.?\d*)/,y=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(n){return[n[1],n[2],n[3],n[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(n){return[n[1]*2.55,n[2]*2.55,n[3]*2.55,n[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(n){return[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(n){return[parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(n){return[n[1],n[2]/100,n[3]/100,n[4]]}}],i=n.Color=function(t,i,r,u){return new n.Color.fn.parse(t,i,r,u)},u={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},s={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},h=i.support={},c=n("<p>")[0],f,r=n.each;c.style.cssText="background-color:rgba(1,1,1,.5)",h.rgba=c.style.backgroundColor.indexOf("rgba")>-1,r(u,function(n,t){t.cache="_"+n,t.props.alpha={idx:3,type:"percent",def:1}}),i.fn=n.extend(i.prototype,{parse:function(o,s,h,c){if(o===t)return this._rgba=[null,null,null,null],this;(o.jquery||o.nodeType)&&(o=n(o).css(s),s=t);var a=this,v=n.type(o),y=this._rgba=[];return(s!==t&&(o=[o,s,h,c],v="array"),v==="string")?this.parse(l(o)||f._default):v==="array"?(r(u.rgba.props,function(n,t){y[t.idx]=e(o[t.idx],t)}),this):v==="object"?(o instanceof i?r(u,function(n,t){o[t.cache]&&(a[t.cache]=o[t.cache].slice())}):r(u,function(t,i){var u=i.cache;r(i.props,function(n,t){if(!a[u]&&i.to){if(n==="alpha"||o[n]==null)return;a[u]=i.to(a._rgba)}a[u][t.idx]=e(o[n],t,!0)}),a[u]&&n.inArray(null,a[u].slice(0,3))<0&&(a[u][3]=1,i.from&&(a._rgba=i.from(a[u])))}),this):void 0},is:function(n){var e=i(n),t=!0,f=this;return r(u,function(n,i){var o,u=e[i.cache];return u&&(o=f[i.cache]||i.to&&i.to(f._rgba)||[],r(i.props,function(n,i){if(u[i.idx]!=null)return t=u[i.idx]===o[i.idx]})),t}),t},_space:function(){var n=[],t=this;return r(u,function(i,r){t[r.cache]&&n.push(i)}),n.pop()},transition:function(n,t){var f=i(n),c=f._space(),o=u[c],l=this.alpha()===0?i("transparent"):this,a=l[o.cache]||o.to(l._rgba),h=a.slice();return f=f[o.cache],r(o.props,function(n,i){var c=i.idx,r=a[c],u=f[c],o=s[i.type]||{};u!==null&&(r===null?h[c]=u:(o.mod&&(u-r>o.mod/2?r+=o.mod:r-u>o.mod/2&&(r-=o.mod)),h[c]=e((u-r)*t+r,i)))}),this[c](h)},blend:function(t){if(this._rgba[3]===1)return this;var r=this._rgba.slice(),u=r.pop(),f=i(t)._rgba;return i(n.map(r,function(n,t){return(1-u)*f[t]+u*n}))},toRgbaString:function(){var i="rgba(",t=n.map(this._rgba,function(n,t){return n==null?t>2?1:0:n});return t[3]===1&&(t.pop(),i="rgb("),i+t.join()+")"},toHslaString:function(){var i="hsla(",t=n.map(this.hsla(),function(n,t){return n==null&&(n=t>2?1:0),t&&t<3&&(n=Math.round(n*100)+"%"),n});return t[3]===1&&(t.pop(),i="hsl("),i+t.join()+")"},toHexString:function(t){var i=this._rgba.slice(),r=i.pop();return t&&i.push(~~(r*255)),"#"+n.map(i,function(n){return n=(n||0).toString(16),n.length===1?"0"+n:n}).join("")},toString:function(){return this._rgba[3]===0?"transparent":this.toRgbaString()}}),i.fn.parse.prototype=i.fn,u.hsla.to=function(n){if(n[0]==null||n[1]==null||n[2]==null)return[null,null,null,n[3]];var i=n[0]/255,r=n[1]/255,e=n[2]/255,c=n[3],u=Math.max(i,r,e),s=Math.min(i,r,e),t=u-s,h=u+s,l=h*.5,f,o;return f=s===u?0:i===u?60*(r-e)/t+360:r===u?60*(e-i)/t+120:60*(i-r)/t+240,o=t===0?0:l<=.5?t/h:t/(2-h),[Math.round(f)%360,o,l,c==null?1:c]},u.hsla.from=function(n){if(n[0]==null||n[1]==null||n[2]==null)return[null,null,null,n[3]];var r=n[0]/360,u=n[1],t=n[2],e=n[3],i=t<=.5?t*(1+u):t+u-t*u,f=2*t-i;return[Math.round(o(f,i,r+1/3)*255),Math.round(o(f,i,r)*255),Math.round(o(f,i,r-1/3)*255),e]},r(u,function(u,f){var s=f.props,o=f.cache,h=f.to,c=f.from;i.fn[u]=function(u){if(h&&!this[o]&&(this[o]=h(this._rgba)),u===t)return this[o].slice();var l,a=n.type(u),v=a==="array"||a==="object"?u:arguments,f=this[o].slice();return r(s,function(n,t){var i=v[a==="object"?n:t.idx];i==null&&(i=f[t.idx]),f[t.idx]=e(i,t)}),c?(l=i(c(f)),l[o]=f,l):i(f)},r(s,function(t,r){i.fn[t]||(i.fn[t]=function(i){var f=n.type(i),h=t==="alpha"?this._hsla?"hsla":"rgba":u,o=this[h](),s=o[r.idx],e;return f==="undefined"?s:(f==="function"&&(i=i.call(this,s),f=n.type(i)),i==null&&r.empty)?this:(f==="string"&&(e=v.exec(i),e&&(i=s+parseFloat(e[2])*(e[1]==="+"?1:-1))),o[r.idx]=i,this[h](o))})})}),i.hook=function(t){var u=t.split(" ");r(u,function(t,r){n.cssHooks[r]={set:function(t,u){var o,f,e="";if(u!=="transparent"&&(n.type(u)!=="string"||(o=l(u)))){if(u=i(o||u),!h.rgba&&u._rgba[3]!==1){for(f=r==="backgroundColor"?t.parentNode:t;(e===""||e==="transparent")&&f&&f.style;)try{e=n.css(f,"backgroundColor"),f=f.parentNode}catch(s){}u=u.blend(e&&e!=="transparent"?e:"_default")}u=u.toRgbaString()}try{t.style[r]=u}catch(s){}}},n.fx.step[r]=function(t){t.colorInit||(t.start=i(t.elem,r),t.end=i(t.end),t.colorInit=!0),n.cssHooks[r].set(t.elem,t.start.transition(t.end,t.pos))}})},i.hook(a),n.cssHooks.borderColor={expand:function(n){var t={};return r(["Top","Right","Bottom","Left"],function(i,r){t["border"+r+"Color"]=n}),t}},f=n.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(jQuery),function(){function i(t){var r,u,i=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,f={};if(i&&i.length&&i[0]&&i[i[0]])for(u=i.length;u--;)r=i[u],typeof i[r]=="string"&&(f[n.camelCase(r)]=i[r]);else for(r in i)typeof i[r]=="string"&&(f[r]=i[r]);return f}function f(t,i){var e={},r,f;for(r in i)f=i[r],t[r]!==f&&(u[r]||(n.fx.step[r]||!isNaN(parseFloat(f)))&&(e[r]=f));return e}var r=["add","remove","toggle"],u={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};n.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,i){n.fx.step[i]=function(n){(n.end==="none"||n.setAttr)&&(n.pos!==1||n.setAttr)||(jQuery.style(n.elem,i,n.end),n.setAttr=!0)}}),n.fn.addBack||(n.fn.addBack=function(n){return this.add(n==null?this.prevObject:this.prevObject.filter(n))}),n.effects.animateClass=function(t,u,e,o){var s=n.speed(u,e,o);return this.queue(function(){var e=n(this),h=e.attr("class")||"",o,u=s.children?e.find("*").addBack():e;u=u.map(function(){var t=n(this);return{el:t,start:i(this)}}),o=function(){n.each(r,function(n,i){t[i]&&e[i+"Class"](t[i])})},o(),u=u.map(function(){return this.end=i(this.el[0]),this.diff=f(this.start,this.end),this}),e.attr("class",h),u=u.map(function(){var i=this,t=n.Deferred(),r=n.extend({},s,{queue:!1,complete:function(){t.resolve(i)}});return this.el.animate(this.diff,r),t.promise()}),n.when.apply(n,u.get()).done(function(){o(),n.each(arguments,function(){var t=this.el;n.each(this.diff,function(n){t.css(n,"")})}),s.complete.call(e[0])})})},n.fn.extend({addClass:function(t){return function(i,r,u,f){return r?n.effects.animateClass.call(this,{add:i},r,u,f):t.apply(this,arguments)}}(n.fn.addClass),removeClass:function(t){return function(i,r,u,f){return arguments.length>1?n.effects.animateClass.call(this,{remove:i},r,u,f):t.apply(this,arguments)}}(n.fn.removeClass),toggleClass:function(i){return function(r,u,f,e,o){return typeof u=="boolean"||u===t?f?n.effects.animateClass.call(this,u?{add:r}:{remove:r},f,e,o):i.apply(this,arguments):n.effects.animateClass.call(this,{toggle:r},u,f,e)}}(n.fn.toggleClass),switchClass:function(t,i,r,u,f){return n.effects.animateClass.call(this,{add:i,remove:t},r,u,f)}})}(),function(){function r(t,i,r,u){return n.isPlainObject(t)&&(i=t,t=t.effect),t={effect:t},i==null&&(i={}),n.isFunction(i)&&(u=i,r=null,i={}),(typeof i=="number"||n.fx.speeds[i])&&(u=r,r=i,i={}),n.isFunction(r)&&(u=r,r=null),i&&n.extend(t,i),r=r||i.duration,t.duration=n.fx.off?0:typeof r=="number"?r:r in n.fx.speeds?n.fx.speeds[r]:n.fx.speeds._default,t.complete=u||i.complete,t}function u(t){return!t||typeof t=="number"||n.fx.speeds[t]?!0:typeof t=="string"&&!n.effects.effect[t]?!0:n.isFunction(t)?!0:typeof t=="object"&&!t.effect?!0:!1}n.extend(n.effects,{version:"1.10.3",save:function(n,t){for(var r=0;r<t.length;r++)t[r]!==null&&n.data(i+t[r],n[0].style[t[r]])},restore:function(n,r){for(var f,u=0;u<r.length;u++)r[u]!==null&&(f=n.data(i+r[u]),f===t&&(f=""),n.css(r[u],f))},setMode:function(n,t){return t==="toggle"&&(t=n.is(":hidden")?"show":"hide"),t},getBaseline:function(n,t){var i,r;switch(n[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=n[0]/t.height}switch(n[1]){case"left":r=0;break;case"center":r=.5;break;case"right":r=1;break;default:r=n[1]/t.width}return{x:r,y:i}},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var i={width:t.outerWidth(!0),height:t.outerHeight(!0),float:t.css("float")},u=n("<div><\/div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),f={width:t.width(),height:t.height()},r=document.activeElement;try{r.id}catch(e){r=document.body}return t.wrap(u),(t[0]===r||n.contains(t[0],r))&&n(r).focus(),u=t.parent(),t.css("position")==="static"?(u.css({position:"relative"}),t.css({position:"relative"})):(n.extend(i,{position:t.css("position"),zIndex:t.css("z-index")}),n.each(["top","left","bottom","right"],function(n,r){i[r]=t.css(r),isNaN(parseInt(i[r],10))&&(i[r]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(f),u.css(i).show()},removeWrapper:function(t){var i=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===i||n.contains(t[0],i))&&n(i).focus()),t},setTransition:function(t,i,r,u){return u=u||{},n.each(i,function(n,i){var f=t.cssUnit(i);f[0]>0&&(u[i]=f[0]*r+f[1])}),u}}),n.fn.extend({effect:function(){function e(i){function o(){n.isFunction(e)&&e.call(r[0]),n.isFunction(i)&&i()}var r=n(this),e=t.complete,u=t.mode;(r.is(":hidden")?u==="hide":u==="show")?(r[u](),o()):f.call(r[0],t,o)}var t=r.apply(this,arguments),i=t.mode,u=t.queue,f=n.effects.effect[t.effect];return n.fx.off||!f?i?this[i](t.duration,t.complete):this.each(function(){t.complete&&t.complete.call(this)}):u===!1?this.each(e):this.queue(u||"fx",e)},show:function(n){return function(t){if(u(t))return n.apply(this,arguments);var i=r.apply(this,arguments);return i.mode="show",this.effect.call(this,i)}}(n.fn.show),hide:function(n){return function(t){if(u(t))return n.apply(this,arguments);var i=r.apply(this,arguments);return i.mode="hide",this.effect.call(this,i)}}(n.fn.hide),toggle:function(n){return function(t){if(u(t)||typeof t=="boolean")return n.apply(this,arguments);var i=r.apply(this,arguments);return i.mode="toggle",this.effect.call(this,i)}}(n.fn.toggle),cssUnit:function(t){var i=this.css(t),r=[];return n.each(["em","px","%","pt"],function(n,t){i.indexOf(t)>0&&(r=[parseFloat(i),t])}),r}})}(),function(){var t={};n.each(["Quad","Cubic","Quart","Quint","Expo"],function(n,i){t[i]=function(t){return Math.pow(t,n+2)}}),n.extend(t,{Sine:function(n){return 1-Math.cos(n*Math.PI/2)},Circ:function(n){return 1-Math.sqrt(1-n*n)},Elastic:function(n){return n===0||n===1?n:-Math.pow(2,8*(n-1))*Math.sin(((n-1)*80-7.5)*Math.PI/15)},Back:function(n){return n*n*(3*n-2)},Bounce:function(n){for(var t,i=4;n<((t=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((t*3-2)/22-n,2)}}),n.each(t,function(t,i){n.easing["easeIn"+t]=i,n.easing["easeOut"+t]=function(n){return 1-i(1-n)},n.easing["easeInOut"+t]=function(n){return n<.5?i(n*2)/2:1-i(n*-2+2)/2}})}()}(jQuery),function(n){var u=0,i={},r={};i.height=i.paddingTop=i.paddingBottom=i.borderTopWidth=i.borderBottomWidth="hide",r.height=r.paddingTop=r.paddingBottom=r.borderTopWidth=r.borderBottomWidth="show",n.widget("ui.accordion",{version:"1.10.3",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},_create:function(){var t=this.options;this.prevShow=this.prevHide=n(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),t.collapsible||t.active!==!1&&t.active!=null||(t.active=0),this._processPanels(),t.active<0&&(t.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():n(),content:this.active.length?this.active.next():n()}},_createIcons:function(){var t=this.options.icons;t&&(n("<span>").addClass("ui-accordion-header-icon ui-icon "+t.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(t.header).addClass(t.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var n;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),this._destroyIcons(),n=this.headers.next().css("display","").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),this.options.heightStyle!=="content"&&n.css("height","")},_setOption:function(n,t){if(n==="active"){this._activate(t);return}n==="event"&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(t)),this._super(n,t),n!=="collapsible"||t||this.options.active!==!1||this._activate(0),n==="icons"&&(this._destroyIcons(),t&&this._createIcons()),n==="disabled"&&this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!t)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var i=n.ui.keyCode,u=this.headers.length,f=this.headers.index(t.target),r=!1;switch(t.keyCode){case i.RIGHT:case i.DOWN:r=this.headers[(f+1)%u];break;case i.LEFT:case i.UP:r=this.headers[(f-1+u)%u];break;case i.SPACE:case i.ENTER:this._eventHandler(t);break;case i.HOME:r=this.headers[0];break;case i.END:r=this.headers[u-1]}r&&(n(t.target).attr("tabIndex",-1),n(r).attr("tabIndex",0),r.focus(),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===n.ui.keyCode.UP&&t.ctrlKey&&n(t.currentTarget).prev().focus()},refresh:function(){var t=this.options;this._processPanels(),(t.active!==!1||t.collapsible!==!0)&&this.headers.length?t.active===!1?this._activate(0):this.active.length&&!n.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=n()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active):(t.active=!1,this.active=n()),this._destroyIcons(),this._refresh()},_processPanels:function(){this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all"),this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide()},_refresh:function(){var t,i=this.options,r=i.heightStyle,e=this.element.parent(),f=this.accordionId="ui-accordion-"+(this.element.attr("id")||++u);this.active=this._findActive(i.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each(function(t){var i=n(this),r=i.attr("id"),e=i.next(),u=e.attr("id");r||(r=f+"-header-"+t,i.attr("id",r)),u||(u=f+"-panel-"+t,e.attr("id",u)),i.attr("aria-controls",u),e.attr("aria-labelledby",r)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false",tabIndex:-1}).next().attr({"aria-expanded":"false","aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true",tabIndex:0}).next().attr({"aria-expanded":"true","aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(i.event),r==="fill"?(t=e.height(),this.element.siblings(":visible").each(function(){var i=n(this),r=i.css("position");r!=="absolute"&&r!=="fixed"&&(t-=i.outerHeight(!0))}),this.headers.each(function(){t-=n(this).outerHeight(!0)}),this.headers.next().each(function(){n(this).height(Math.max(0,t-n(this).innerHeight()+n(this).height()))}).css("overflow","auto")):r==="auto"&&(t=0,this.headers.next().each(function(){t=Math.max(t,n(this).css("height","").height())}).height(t))},_activate:function(t){var i=this._findActive(t)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:n.noop}))},_findActive:function(t){return typeof t=="number"?this.headers.eq(t):n()},_setupEvents:function(t){var i={keydown:"_keydown"};t&&n.each(t.split(" "),function(n,t){i[t]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(t){var i=this.options,u=this.active,r=n(t.currentTarget),f=r[0]===u[0],e=f&&i.collapsible,s=e?n():r.next(),h=u.next(),o={oldHeader:u,oldPanel:h,newHeader:e?n():r,newPanel:s};(t.preventDefault(),(!f||i.collapsible)&&this._trigger("beforeActivate",t,o)!==!1)&&(i.active=e?!1:this.headers.index(r),this.active=f?n():r,this._toggle(o),u.removeClass("ui-accordion-header-active ui-state-active"),i.icons&&u.children(".ui-accordion-header-icon").removeClass(i.icons.activeHeader).addClass(i.icons.header),f||(r.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),i.icons&&r.children(".ui-accordion-header-icon").removeClass(i.icons.header).addClass(i.icons.activeHeader),r.next().addClass("ui-accordion-content-active")))},_toggle:function(t){var r=t.newPanel,i=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=r,this.prevHide=i,this.options.animate?this._animate(r,i,t):(i.hide(),r.show(),this._toggleComplete(t)),i.attr({"aria-expanded":"false","aria-hidden":"true"}),i.prev().attr("aria-selected","false"),r.length&&i.length?i.prev().attr("tabIndex",-1):r.length&&this.headers.filter(function(){return n(this).attr("tabIndex")===0}).attr("tabIndex",-1),r.attr({"aria-expanded":"true","aria-hidden":"false"}).prev().attr({"aria-selected":"true",tabIndex:0})},_animate:function(n,t,u){var l,f,e,a=this,h=0,v=n.length&&(!t.length||n.index()<t.index()),s=this.options.animate||{},o=v&&s.down||s,c=function(){a._toggleComplete(u)};if(typeof o=="number"&&(e=o),typeof o=="string"&&(f=o),f=f||o.easing||s.easing,e=e||o.duration||s.duration,!t.length)return n.animate(r,e,f,c);if(!n.length)return t.animate(i,e,f,c);l=n.show().outerHeight(),t.animate(i,{duration:e,easing:f,step:function(n,t){t.now=Math.round(n)}}),n.hide().animate(r,{duration:e,easing:f,complete:c,step:function(n,i){i.now=Math.round(n),i.prop!=="height"?h+=i.now:a.options.heightStyle!=="content"&&(i.now=Math.round(l-t.outerHeight()-h),h=0)}})},_toggleComplete:function(n){var t=n.oldPanel;t.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all"),t.length&&(t.parent()[0].className=t.parent()[0].className),this._trigger("activate",null,n)}})}(jQuery),function(n){var i=0;n.widget("ui.autocomplete",{version:"1.10.3",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var t,i,r,u=this.element[0].nodeName.toLowerCase(),f=u==="textarea",e=u==="input";this.isMultiLine=f?!0:e?!1:this.element.prop("isContentEditable"),this.valueMethod=this.element[f||e?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(u){if(this.element.prop("readOnly")){t=!0,r=!0,i=!0;return}t=!1,r=!1,i=!1;var f=n.ui.keyCode;switch(u.keyCode){case f.PAGE_UP:t=!0,this._move("previousPage",u);break;case f.PAGE_DOWN:t=!0,this._move("nextPage",u);break;case f.UP:t=!0,this._keyEvent("previous",u);break;case f.DOWN:t=!0,this._keyEvent("next",u);break;case f.ENTER:case f.NUMPAD_ENTER:this.menu.active&&(t=!0,u.preventDefault(),this.menu.select(u));break;case f.TAB:this.menu.active&&this.menu.select(u);break;case f.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(u),u.preventDefault());break;default:i=!0,this._searchTimeout(u)}},keypress:function(r){if(t){t=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&r.preventDefault();return}if(!i){var u=n.ui.keyCode;switch(r.keyCode){case u.PAGE_UP:this._move("previousPage",r);break;case u.PAGE_DOWN:this._move("nextPage",r);break;case u.UP:this._keyEvent("previous",r);break;case u.DOWN:this._keyEvent("next",r)}}},input:function(n){if(r){r=!1,n.preventDefault();return}this._searchTimeout(n)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(n){if(this.cancelBlur){delete this.cancelBlur;return}clearTimeout(this.searching),this.close(n),this._change(n)}}),this._initSource(),this.menu=n("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().data("ui-menu"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var i=this.menu.element[0];n(t.target).closest(".ui-menu-item").length||this._delay(function(){var t=this;this.document.one("mousedown",function(r){r.target===t.element[0]||r.target===i||n.contains(i,r.target)||t.close()})})},menufocus:function(t,i){if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type))){this.menu.blur();this.document.one("mousemove",function(){n(t.target).trigger(t.originalEvent)});return}var r=i.item.data("ui-autocomplete-item");!1!==this._trigger("focus",t,{item:r})?t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(r.value):this.liveRegion.text(r.value)},menuselect:function(n,t){var i=t.item.data("ui-autocomplete-item"),r=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=r,this._delay(function(){this.previous=r,this.selectedItem=i})),!1!==this._trigger("select",n,{item:i})&&this._value(i.value),this.term=this._value(),this.close(n),this.selectedItem=i}}),this.liveRegion=n("<span>",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertBefore(this.element),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(n,t){this._super(n,t),n==="source"&&this._initSource(),n==="appendTo"&&this.menu.element.appendTo(this._appendTo()),n==="disabled"&&t&&this.xhr&&this.xhr.abort()},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?n(t):this.document.find(t).eq(0)),t||(t=this.element.closest(".ui-front")),t.length||(t=this.document[0].body),t},_initSource:function(){var i,r,t=this;n.isArray(this.options.source)?(i=this.options.source,this.source=function(t,r){r(n.ui.autocomplete.filter(i,t.term))}):typeof this.options.source=="string"?(r=this.options.source,this.source=function(i,u){t.xhr&&t.xhr.abort(),t.xhr=n.ajax({url:r,data:i,dataType:"json",success:function(n){u(n)},error:function(){u([])}})}):this.source=this.options.source},_searchTimeout:function(n){clearTimeout(this.searching),this.searching=this._delay(function(){this.term!==this._value()&&(this.selectedItem=null,this.search(null,n))},this.options.delay)},search:function(n,t){return(n=n!=null?n:this._value(),this.term=this._value(),n.length<this.options.minLength)?this.close(t):this._trigger("search",t)===!1?void 0:this._search(n)},_search:function(n){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:n},this._response())},_response:function(){var n=this,t=++i;return function(r){t===i&&n.__response(r),n.pending--,n.pending||n.element.removeClass("ui-autocomplete-loading")}},__response:function(n){n&&(n=this._normalize(n)),this._trigger("response",null,{content:n}),!this.options.disabled&&n&&n.length&&!this.cancelSearch?(this._suggest(n),this._trigger("open")):this._close()},close:function(n){this.cancelSearch=!0,this._close(n)},_close:function(n){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",n))},_change:function(n){this.previous!==this._value()&&this._trigger("change",n,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:n.map(t,function(t){return typeof t=="string"?{label:t,value:t}:n.extend({label:t.label||t.value,value:t.value||t.label},t)})},_suggest:function(t){var i=this.menu.element.empty();this._renderMenu(i,t),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(n.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var n=this.menu.element;n.outerWidth(Math.max(n.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(t,i){var r=this;n.each(i,function(n,i){r._renderItemData(t,i)})},_renderItemData:function(n,t){return this._renderItem(n,t).data("ui-autocomplete-item",t)},_renderItem:function(t,i){return n("<li>").append(n("<a>").text(i.label)).appendTo(t)},_move:function(n,t){if(!this.menu.element.is(":visible")){this.search(null,t);return}if(this.menu.isFirstItem()&&/^previous/.test(n)||this.menu.isLastItem()&&/^next/.test(n)){this._value(this.term),this.menu.blur();return}this.menu[n](t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(n,t){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(n,t),t.preventDefault())}}),n.extend(n.ui.autocomplete,{escapeRegex:function(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,i){var r=new RegExp(n.ui.autocomplete.escapeRegex(i),"i");return n.grep(t,function(n){return r.test(n.label||n.value||n)})}}),n.widget("ui.autocomplete",n.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(n){return n+(n>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(n){var t;(this._superApply(arguments),this.options.disabled||this.cancelSearch)||(t=n&&n.length?this.options.messages.results(n.length):this.options.messages.noResults,this.liveRegion.text(t))}})}(jQuery),function(n){var r,u,f,i,e="ui-button ui-widget ui-state-default ui-corner-all",h="ui-state-hover ui-state-active ",o="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",c=function(){var t=n(this);setTimeout(function(){t.find(":ui-button").button("refresh")},1)},s=function(t){var i=t.name,u=t.form,r=n([]);return i&&(i=i.replace(/'/g,"\\'"),r=u?n(u).find("[name='"+i+"']"):n("[name='"+i+"']",t.ownerDocument).filter(function(){return!this.form})),r};n.widget("ui.button",{version:"1.10.3",defaultElement:"<button>",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,c),typeof this.options.disabled!="boolean"?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("title");var o=this,t=this.options,h=this.type==="checkbox"||this.type==="radio",a=h?"":"ui-state-active",l="ui-state-focus";t.label===null&&(t.label=this.type==="input"?this.buttonElement.val():this.buttonElement.html()),this._hoverable(this.buttonElement),this.buttonElement.addClass(e).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){t.disabled||this===r&&n(this).addClass("ui-state-active")}).bind("mouseleave"+this.eventNamespace,function(){t.disabled||n(this).removeClass(a)}).bind("click"+this.eventNamespace,function(n){t.disabled&&(n.preventDefault(),n.stopImmediatePropagation())}),this.element.bind("focus"+this.eventNamespace,function(){o.buttonElement.addClass(l)}).bind("blur"+this.eventNamespace,function(){o.buttonElement.removeClass(l)}),h&&(this.element.bind("change"+this.eventNamespace,function(){i||o.refresh()}),this.buttonElement.bind("mousedown"+this.eventNamespace,function(n){t.disabled||(i=!1,u=n.pageX,f=n.pageY)}).bind("mouseup"+this.eventNamespace,function(n){t.disabled||(u!==n.pageX||f!==n.pageY)&&(i=!0)})),this.type==="checkbox"?this.buttonElement.bind("click"+this.eventNamespace,function(){if(t.disabled||i)return!1}):this.type==="radio"?this.buttonElement.bind("click"+this.eventNamespace,function(){if(t.disabled||i)return!1;n(this).addClass("ui-state-active"),o.buttonElement.attr("aria-pressed","true");var r=o.element[0];s(r).not(r).map(function(){return n(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown"+this.eventNamespace,function(){if(t.disabled)return!1;n(this).addClass("ui-state-active"),r=this;o.document.one("mouseup",function(){r=null})}).bind("mouseup"+this.eventNamespace,function(){if(t.disabled)return!1;n(this).removeClass("ui-state-active")}).bind("keydown"+this.eventNamespace,function(i){if(t.disabled)return!1;(i.keyCode===n.ui.keyCode.SPACE||i.keyCode===n.ui.keyCode.ENTER)&&n(this).addClass("ui-state-active")}).bind("keyup"+this.eventNamespace+" blur"+this.eventNamespace,function(){n(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(t){t.keyCode===n.ui.keyCode.SPACE&&n(this).click()})),this._setOption("disabled",t.disabled),this._resetButton()},_determineButtonType:function(){var n,t,i;this.type=this.element.is("[type=checkbox]")?"checkbox":this.element.is("[type=radio]")?"radio":this.element.is("input")?"input":"button",this.type==="checkbox"||this.type==="radio"?(n=this.element.parents().last(),t="label[for='"+this.element.attr("id")+"']",this.buttonElement=n.find(t),this.buttonElement.length||(n=n.length?n.siblings():this.element.siblings(),this.buttonElement=n.filter(t),this.buttonElement.length||(this.buttonElement=n.find(t))),this.element.addClass("ui-helper-hidden-accessible"),i=this.element.is(":checked"),i&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",i)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible"),this.buttonElement.removeClass(e+" "+h+" "+o).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(n,t){if(this._super(n,t),n==="disabled"){t?this.element.prop("disabled",!0):this.element.prop("disabled",!1);return}this._resetButton()},refresh:function(){var t=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOption("disabled",t),this.type==="radio"?s(this.element[0]).each(function(){n(this).is(":checked")?n(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):n(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):this.type==="checkbox"&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if(this.type==="input"){this.options.label&&this.element.val(this.options.label);return}var i=this.buttonElement.removeClass(o),f=n("<span><\/span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(i.empty()).text(),t=this.options.icons,u=t.primary&&t.secondary,r=[];t.primary||t.secondary?(this.options.text&&r.push("ui-button-text-icon"+(u?"s":t.primary?"-primary":"-secondary")),t.primary&&i.prepend("<span class='ui-button-icon-primary ui-icon "+t.primary+"'><\/span>"),t.secondary&&i.append("<span class='ui-button-icon-secondary ui-icon "+t.secondary+"'><\/span>"),this.options.text||(r.push(u?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||i.attr("title",n.trim(f)))):r.push("ui-button-text-only"),i.addClass(r.join(" "))}}),n.widget("ui.buttonset",{version:"1.10.3",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(n,t){n==="disabled"&&this.buttons.button("option",n,t),this._super(n,t)},refresh:function(){var t=this.element.css("direction")==="rtl";this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return n(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(t?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(t?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map(function(){return n(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}})}(jQuery),function(n,t){function f(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},n.extend(this._defaults,this.regional[""]),this.dpDiv=e(n("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'><\/div>"))}function e(t){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.delegate(i,"mouseout",function(){n(this).removeClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&n(this).removeClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&n(this).removeClass("ui-datepicker-next-hover")}).delegate(i,"mouseover",function(){n.datepicker._isDisabledDatepicker(u.inline?t.parent()[0]:u.input[0])||(n(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),n(this).addClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&n(this).addClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&n(this).addClass("ui-datepicker-next-hover"))})}function r(t,i){n.extend(t,i);for(var r in i)i[r]==null&&(t[r]=i[r]);return t}n.extend(n.ui,{datepicker:{version:"1.10.3"}});var i="datepicker",u;n.extend(f.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(n){return r(this._defaults,n||{}),this},_attachDatepicker:function(t,i){var r,f,u;r=t.nodeName.toLowerCase(),f=r==="div"||r==="span",t.id||(this.uuid+=1,t.id="dp"+this.uuid),u=this._newInst(n(t),f),u.settings=n.extend({},i||{}),r==="input"?this._connectDatepicker(t,u):f&&this._inlineDatepicker(t,u)},_newInst:function(t,i){var r=t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:r,input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?e(n("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'><\/div>")):this.dpDiv}},_connectDatepicker:function(t,r){var u=n(t);(r.append=n([]),r.trigger=n([]),u.hasClass(this.markerClassName))||(this._attachments(u,r),u.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(r),n.data(t,i,r),r.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,i){var u,r,f,e=this._get(i,"appendText"),o=this._get(i,"isRTL");i.append&&i.append.remove(),e&&(i.append=n("<span class='"+this._appendClass+"'>"+e+"<\/span>"),t[o?"before":"after"](i.append)),t.unbind("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),u=this._get(i,"showOn"),(u==="focus"||u==="both")&&t.focus(this._showDatepicker),(u==="button"||u==="both")&&(r=this._get(i,"buttonText"),f=this._get(i,"buttonImage"),i.trigger=n(this._get(i,"buttonImageOnly")?n("<img/>").addClass(this._triggerClass).attr({src:f,alt:r,title:r}):n("<button type='button'><\/button>").addClass(this._triggerClass).html(f?n("<img/>").attr({src:f,alt:r,title:r}):r)),t[o?"before":"after"](i.trigger),i.trigger.click(function(){return n.datepicker._datepickerShowing&&n.datepicker._lastInput===t[0]?n.datepicker._hideDatepicker():n.datepicker._datepickerShowing&&n.datepicker._lastInput!==t[0]?(n.datepicker._hideDatepicker(),n.datepicker._showDatepicker(t[0])):n.datepicker._showDatepicker(t[0]),!1}))},_autoSize:function(n){if(this._get(n,"autoSize")&&!n.inline){var r,u,f,t,i=new Date(2009,11,20),e=this._get(n,"dateFormat");e.match(/[DM]/)&&(r=function(n){for(u=0,f=0,t=0;t<n.length;t++)n[t].length>u&&(u=n[t].length,f=t);return f},i.setMonth(r(this._get(n,e.match(/MM/)?"monthNames":"monthNamesShort"))),i.setDate(r(this._get(n,e.match(/DD/)?"dayNames":"dayNamesShort"))+20-i.getDay())),n.input.attr("size",this._formatDate(n,i).length)}},_inlineDatepicker:function(t,r){var u=n(t);u.hasClass(this.markerClassName)||(u.addClass(this.markerClassName).append(r.dpDiv),n.data(t,i,r),this._setDate(r,this._getDefaultDate(r),!0),this._updateDatepicker(r),this._updateAlternate(r),r.settings.disabled&&this._disableDatepicker(t),r.dpDiv.css("display","block"))},_dialogDatepicker:function(t,u,f,e,o){var h,c,l,a,v,s=this._dialogInst;return s||(this.uuid+=1,h="dp"+this.uuid,this._dialogInput=n("<input type='text' id='"+h+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.keydown(this._doKeyDown),n("body").append(this._dialogInput),s=this._dialogInst=this._newInst(this._dialogInput,!1),s.settings={},n.data(this._dialogInput[0],i,s)),r(s.settings,e||{}),u=u&&u.constructor===Date?this._formatDate(s,u):u,this._dialogInput.val(u),this._pos=o?o.length?o:[o.pageX,o.pageY]:null,this._pos||(c=document.documentElement.clientWidth,l=document.documentElement.clientHeight,a=document.documentElement.scrollLeft||document.body.scrollLeft,v=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[c/2-100+a,l/2-150+v]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),s.settings.onSelect=f,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),n.blockUI&&n.blockUI(this.dpDiv),n.data(this._dialogInput[0],i,s),this},_destroyDatepicker:function(t){var r,u=n(t),f=n.data(t,i);u.hasClass(this.markerClassName)&&(r=t.nodeName.toLowerCase(),n.removeData(t,i),r==="input"?(f.append.remove(),f.trigger.remove(),u.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):(r==="div"||r==="span")&&u.removeClass(this.markerClassName).empty())},_enableDatepicker:function(t){var r,u,f=n(t),e=n.data(t,i);f.hasClass(this.markerClassName)&&(r=t.nodeName.toLowerCase(),r==="input"?(t.disabled=!1,e.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):(r==="div"||r==="span")&&(u=f.children("."+this._inlineClass),u.children().removeClass("ui-state-disabled"),u.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=n.map(this._disabledInputs,function(n){return n===t?null:n}))},_disableDatepicker:function(t){var r,u,f=n(t),e=n.data(t,i);f.hasClass(this.markerClassName)&&(r=t.nodeName.toLowerCase(),r==="input"?(t.disabled=!0,e.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):(r==="div"||r==="span")&&(u=f.children("."+this._inlineClass),u.children().addClass("ui-state-disabled"),u.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=n.map(this._disabledInputs,function(n){return n===t?null:n}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(n){if(!n)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===n)return!0;return!1},_getInst:function(t){try{return n.data(t,i)}catch(r){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(i,u,f){var o,c,s,h,e=this._getInst(i);if(arguments.length===2&&typeof u=="string")return u==="defaults"?n.extend({},n.datepicker._defaults):e?u==="all"?n.extend({},e.settings):this._get(e,u):null;o=u||{},typeof u=="string"&&(o={},o[u]=f),e&&(this._curInst===e&&this._hideDatepicker(),c=this._getDateDatepicker(i,!0),s=this._getMinMaxDate(e,"min"),h=this._getMinMaxDate(e,"max"),r(e.settings,o),s!==null&&o.dateFormat!==t&&o.minDate===t&&(e.settings.minDate=this._formatDate(e,s)),h!==null&&o.dateFormat!==t&&o.maxDate===t&&(e.settings.maxDate=this._formatDate(e,h)),"disabled"in o&&(o.disabled?this._disableDatepicker(i):this._enableDatepicker(i)),this._attachments(n(i),e),this._autoSize(e),this._setDate(e,c),this._updateAlternate(e),this._updateDatepicker(e))},_changeDatepicker:function(n,t,i){this._optionDatepicker(n,t,i)},_refreshDatepicker:function(n){var t=this._getInst(n);t&&this._updateDatepicker(t)},_setDateDatepicker:function(n,t){var i=this._getInst(n);i&&(this._setDate(i,t),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(n,t){var i=this._getInst(n);return i&&!i.inline&&this._setDateFromField(i,t),i?this._getDate(i):null},_doKeyDown:function(t){var u,e,f,i=n.datepicker._getInst(t.target),r=!0,o=i.dpDiv.is(".ui-datepicker-rtl");if(i._keyEvent=!0,n.datepicker._datepickerShowing)switch(t.keyCode){case 9:n.datepicker._hideDatepicker(),r=!1;break;case 13:return f=n("td."+n.datepicker._dayOverClass+":not(."+n.datepicker._currentClass+")",i.dpDiv),f[0]&&n.datepicker._selectDay(t.target,i.selectedMonth,i.selectedYear,f[0]),u=n.datepicker._get(i,"onSelect"),u?(e=n.datepicker._formatDate(i),u.apply(i.input?i.input[0]:null,[e,i])):n.datepicker._hideDatepicker(),!1;case 27:n.datepicker._hideDatepicker();break;case 33:n.datepicker._adjustDate(t.target,t.ctrlKey?-n.datepicker._get(i,"stepBigMonths"):-n.datepicker._get(i,"stepMonths"),"M");break;case 34:n.datepicker._adjustDate(t.target,t.ctrlKey?+n.datepicker._get(i,"stepBigMonths"):+n.datepicker._get(i,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&n.datepicker._clearDate(t.target),r=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&n.datepicker._gotoToday(t.target),r=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,o?1:-1,"D"),r=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&n.datepicker._adjustDate(t.target,t.ctrlKey?-n.datepicker._get(i,"stepBigMonths"):-n.datepicker._get(i,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,-7,"D"),r=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,o?-1:1,"D"),r=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&n.datepicker._adjustDate(t.target,t.ctrlKey?+n.datepicker._get(i,"stepBigMonths"):+n.datepicker._get(i,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,7,"D"),r=t.ctrlKey||t.metaKey;break;default:r=!1}else t.keyCode===36&&t.ctrlKey?n.datepicker._showDatepicker(this):r=!1;r&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var i,r,u=n.datepicker._getInst(t.target);if(n.datepicker._get(u,"constrainInput"))return i=n.datepicker._possibleChars(n.datepicker._get(u,"dateFormat")),r=String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||r<" "||!i||i.indexOf(r)>-1},_doKeyUp:function(t){var r,i=n.datepicker._getInst(t.target);if(i.input.val()!==i.lastVal)try{r=n.datepicker.parseDate(n.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,n.datepicker._getFormatConfig(i)),r&&(n.datepicker._setDateFromField(i),n.datepicker._updateAlternate(i),n.datepicker._updateDatepicker(i))}catch(u){}return!0},_showDatepicker:function(t){if(t=t.target||t,t.nodeName.toLowerCase()!=="input"&&(t=n("input",t.parentNode)[0]),!n.datepicker._isDisabledDatepicker(t)&&n.datepicker._lastInput!==t){var i,o,s,u,f,e,h;(i=n.datepicker._getInst(t),n.datepicker._curInst&&n.datepicker._curInst!==i&&(n.datepicker._curInst.dpDiv.stop(!0,!0),i&&n.datepicker._datepickerShowing&&n.datepicker._hideDatepicker(n.datepicker._curInst.input[0])),o=n.datepicker._get(i,"beforeShow"),s=o?o.apply(t,[t,i]):{},s!==!1)&&(r(i.settings,s),i.lastVal=null,n.datepicker._lastInput=t,n.datepicker._setDateFromField(i),n.datepicker._inDialog&&(t.value=""),n.datepicker._pos||(n.datepicker._pos=n.datepicker._findPos(t),n.datepicker._pos[1]+=t.offsetHeight),u=!1,n(t).parents().each(function(){return u|=n(this).css("position")==="fixed",!u}),f={left:n.datepicker._pos[0],top:n.datepicker._pos[1]},n.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),n.datepicker._updateDatepicker(i),f=n.datepicker._checkOffset(i,f,u),i.dpDiv.css({position:n.datepicker._inDialog&&n.blockUI?"static":u?"fixed":"absolute",display:"none",left:f.left+"px",top:f.top+"px"}),i.inline||(e=n.datepicker._get(i,"showAnim"),h=n.datepicker._get(i,"duration"),i.dpDiv.zIndex(n(t).zIndex()+1),n.datepicker._datepickerShowing=!0,n.effects&&n.effects.effect[e]?i.dpDiv.show(e,n.datepicker._get(i,"showOptions"),h):i.dpDiv[e||"show"](e?h:null),n.datepicker._shouldFocusInput(i)&&i.input.focus(),n.datepicker._curInst=i))}},_updateDatepicker:function(t){this.maxRows=4,u=t,t.dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t),t.dpDiv.find("."+this._dayOverClass+" a").mouseover();var i,r=this._getNumberOfMonths(t),f=r[1],e=17;t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),f>1&&t.dpDiv.addClass("ui-datepicker-multi-"+f).css("width",e*f+"em"),t.dpDiv[(r[0]!==1||r[1]!==1?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===n.datepicker._curInst&&n.datepicker._datepickerShowing&&n.datepicker._shouldFocusInput(t)&&t.input.focus(),t.yearshtml&&(i=t.yearshtml,setTimeout(function(){i===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml),i=t.yearshtml=null},0))},_shouldFocusInput:function(n){return n.input&&n.input.is(":visible")&&!n.input.is(":disabled")&&!n.input.is(":focus")},_checkOffset:function(t,i,r){var u=t.dpDiv.outerWidth(),f=t.dpDiv.outerHeight(),h=t.input?t.input.outerWidth():0,o=t.input?t.input.outerHeight():0,e=document.documentElement.clientWidth+(r?0:n(document).scrollLeft()),s=document.documentElement.clientHeight+(r?0:n(document).scrollTop());return i.left-=this._get(t,"isRTL")?u-h:0,i.left-=r&&i.left===t.input.offset().left?n(document).scrollLeft():0,i.top-=r&&i.top===t.input.offset().top+o?n(document).scrollTop():0,i.left-=Math.min(i.left,i.left+u>e&&e>u?Math.abs(i.left+u-e):0),i.top-=Math.min(i.top,i.top+f>s&&s>f?Math.abs(f+o):0),i},_findPos:function(t){for(var i,r=this._getInst(t),u=this._get(r,"isRTL");t&&(t.type==="hidden"||t.nodeType!==1||n.expr.filters.hidden(t));)t=t[u?"previousSibling":"nextSibling"];return i=n(t).offset(),[i.left,i.top]},_hideDatepicker:function(t){var u,e,f,o,r=this._curInst;r&&(!t||r===n.data(t,i))&&this._datepickerShowing&&(u=this._get(r,"showAnim"),e=this._get(r,"duration"),f=function(){n.datepicker._tidyDialog(r)},n.effects&&(n.effects.effect[u]||n.effects[u])?r.dpDiv.hide(u,n.datepicker._get(r,"showOptions"),e,f):r.dpDiv[u==="slideDown"?"slideUp":u==="fadeIn"?"fadeOut":"hide"](u?e:null,f),u||f(),this._datepickerShowing=!1,o=this._get(r,"onClose"),o&&o.apply(r.input?r.input[0]:null,[r.input?r.input.val():"",r]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),n.blockUI&&(n.unblockUI(),n("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(n){n.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(n.datepicker._curInst){var i=n(t.target),r=n.datepicker._getInst(i[0]);(i[0].id===n.datepicker._mainDivId||i.parents("#"+n.datepicker._mainDivId).length!==0||i.hasClass(n.datepicker.markerClassName)||i.closest("."+n.datepicker._triggerClass).length||!n.datepicker._datepickerShowing||n.datepicker._inDialog&&n.blockUI)&&(!i.hasClass(n.datepicker.markerClassName)||n.datepicker._curInst===r)||n.datepicker._hideDatepicker()}},_adjustDate:function(t,i,r){var f=n(t),u=this._getInst(f[0]);this._isDisabledDatepicker(f[0])||(this._adjustInstDate(u,i+(r==="M"?this._get(u,"showCurrentAtPos"):0),r),this._updateDatepicker(u))},_gotoToday:function(t){var r,u=n(t),i=this._getInst(u[0]);this._get(i,"gotoCurrent")&&i.currentDay?(i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear):(r=new Date,i.selectedDay=r.getDate(),i.drawMonth=i.selectedMonth=r.getMonth(),i.drawYear=i.selectedYear=r.getFullYear()),this._notifyChange(i),this._adjustDate(u)},_selectMonthYear:function(t,i,r){var f=n(t),u=this._getInst(f[0]);u["selected"+(r==="M"?"Month":"Year")]=u["draw"+(r==="M"?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(u),this._adjustDate(f)},_selectDay:function(t,i,r,u){var f,e=n(t);n(u).hasClass(this._unselectableClass)||this._isDisabledDatepicker(e[0])||(f=this._getInst(e[0]),f.selectedDay=f.currentDay=n("a",u).html(),f.selectedMonth=f.currentMonth=i,f.selectedYear=f.currentYear=r,this._selectDate(t,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear)))},_clearDate:function(t){var i=n(t);this._selectDate(i,"")},_selectDate:function(t,i){var u,f=n(t),r=this._getInst(f[0]);i=i!=null?i:this._formatDate(r),r.input&&r.input.val(i),this._updateAlternate(r),u=this._get(r,"onSelect"),u?u.apply(r.input?r.input[0]:null,[i,r]):r.input&&r.input.trigger("change"),r.inline?this._updateDatepicker(r):(this._hideDatepicker(),this._lastInput=r.input[0],typeof r.input[0]!="object"&&r.input.focus(),this._lastInput=null)},_updateAlternate:function(t){var i,r,u,f=this._get(t,"altField");f&&(i=this._get(t,"altFormat")||this._get(t,"dateFormat"),r=this._getDate(t),u=this.formatDate(i,r,this._getFormatConfig(t)),n(f).each(function(){n(this).val(u)}))},noWeekends:function(n){var t=n.getDay();return[t>0&&t<6,""]},iso8601Week:function(n){var i,t=new Date(n.getTime());return t.setDate(t.getDate()+4-(t.getDay()||7)),i=t.getTime(),t.setMonth(0),t.setDate(1),Math.floor(Math.round((i-t)/864e5)/7)+1},parseDate:function(t,i,r){if(t==null||i==null)throw"Invalid arguments";if(i=typeof i=="object"?i.toString():i+"",i==="")return null;for(var a,v,f=0,y=(r?r.shortYearCutoff:null)||this._defaults.shortYearCutoff,d=typeof y!="string"?y:(new Date).getFullYear()%100+parseInt(y,10),g=(r?r.dayNamesShort:null)||this._defaults.dayNamesShort,nt=(r?r.dayNames:null)||this._defaults.dayNames,tt=(r?r.monthNamesShort:null)||this._defaults.monthNamesShort,it=(r?r.monthNames:null)||this._defaults.monthNames,e=-1,o=-1,h=-1,p=-1,w=!1,u,l=function(n){var i=s+1<t.length&&t.charAt(s+1)===n;return i&&s++,i},c=function(n){var r=l(n),u=n==="@"?14:n==="!"?20:n==="y"&&r?4:n==="o"?3:2,e=new RegExp("^\\d{1,"+u+"}"),t=i.substring(f).match(e);if(!t)throw"Missing number at position "+f;return f+=t[0].length,parseInt(t[0],10)},k=function(t,r,u){var e=-1,o=n.map(l(t)?u:r,function(n,t){return[[t,n]]}).sort(function(n,t){return-(n[1].length-t[1].length)});if(n.each(o,function(n,t){var r=t[1];if(i.substr(f,r.length).toLowerCase()===r.toLowerCase())return e=t[0],f+=r.length,!1}),e!==-1)return e+1;throw"Unknown name at position "+f;},b=function(){if(i.charAt(f)!==t.charAt(s))throw"Unexpected literal at position "+f;f++},s=0;s<t.length;s++)if(w)t.charAt(s)!=="'"||l("'")?b():w=!1;else switch(t.charAt(s)){case"d":h=c("d");break;case"D":k("D",g,nt);break;case"o":p=c("o");break;case"m":o=c("m");break;case"M":o=k("M",tt,it);break;case"y":e=c("y");break;case"@":u=new Date(c("@")),e=u.getFullYear(),o=u.getMonth()+1,h=u.getDate();break;case"!":u=new Date((c("!")-this._ticksTo1970)/1e4),e=u.getFullYear(),o=u.getMonth()+1,h=u.getDate();break;case"'":l("'")?b():w=!0;break;default:b()}if(f<i.length&&(v=i.substr(f),!/^\s+/.test(v)))throw"Extra/unparsed characters found in date: "+v;if(e===-1?e=(new Date).getFullYear():e<100&&(e+=(new Date).getFullYear()-(new Date).getFullYear()%100+(e<=d?0:-100)),p>-1){o=1,h=p;do{if(a=this._getDaysInMonth(e,o-1),h<=a)break;o++,h-=a}while(1)}if(u=this._daylightSavingAdjust(new Date(e,o-1,h)),u.getFullYear()!==e||u.getMonth()+1!==o||u.getDate()!==h)throw"Invalid date";return u},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*864e9,formatDate:function(n,t,i){if(!t)return"";var u,h=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,c=(i?i.dayNames:null)||this._defaults.dayNames,l=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,a=(i?i.monthNames:null)||this._defaults.monthNames,f=function(t){var i=u+1<n.length&&n.charAt(u+1)===t;return i&&u++,i},e=function(n,t,i){var r=""+t;if(f(n))while(r.length<i)r="0"+r;return r},s=function(n,t,i,r){return f(n)?r[t]:i[t]},r="",o=!1;if(t)for(u=0;u<n.length;u++)if(o)n.charAt(u)!=="'"||f("'")?r+=n.charAt(u):o=!1;else switch(n.charAt(u)){case"d":r+=e("d",t.getDate(),2);break;case"D":r+=s("D",t.getDay(),h,c);break;case"o":r+=e("o",Math.round((+new Date(t.getFullYear(),t.getMonth(),t.getDate())-+new Date(t.getFullYear(),0,0))/864e5),3);break;case"m":r+=e("m",t.getMonth()+1,2);break;case"M":r+=s("M",t.getMonth(),l,a);break;case"y":r+=f("y")?t.getFullYear():(t.getYear()%100<10?"0":"")+t.getYear()%100;break;case"@":r+=t.getTime();break;case"!":r+=t.getTime()*1e4+this._ticksTo1970;break;case"'":f("'")?r+="'":o=!0;break;default:r+=n.charAt(u)}return r},_possibleChars:function(n){for(var i="",r=!1,u=function(i){var r=t+1<n.length&&n.charAt(t+1)===i;return r&&t++,r},t=0;t<n.length;t++)if(r)n.charAt(t)!=="'"||u("'")?i+=n.charAt(t):r=!1;else switch(n.charAt(t)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":u("'")?i+="'":r=!0;break;default:i+=n.charAt(t)}return i},_get:function(n,i){return n.settings[i]!==t?n.settings[i]:this._defaults[i]},_setDateFromField:function(n,t){if(n.input.val()!==n.lastVal){var f=this._get(n,"dateFormat"),r=n.lastVal=n.input?n.input.val():null,u=this._getDefaultDate(n),i=u,e=this._getFormatConfig(n);try{i=this.parseDate(f,r,e)||u}catch(o){r=t?"":r}n.selectedDay=i.getDate(),n.drawMonth=n.selectedMonth=i.getMonth(),n.drawYear=n.selectedYear=i.getFullYear(),n.currentDay=r?i.getDate():0,n.currentMonth=r?i.getMonth():0,n.currentYear=r?i.getFullYear():0,this._adjustInstDate(n)}},_getDefaultDate:function(n){return this._restrictMinMax(n,this._determineDate(n,this._get(n,"defaultDate"),new Date))},_determineDate:function(t,i,r){var f=function(n){var t=new Date;return t.setDate(t.getDate()+n),t},e=function(i){try{return n.datepicker.parseDate(n.datepicker._get(t,"dateFormat"),i,n.datepicker._getFormatConfig(t))}catch(h){}for(var o=(i.toLowerCase().match(/^c/)?n.datepicker._getDate(t):null)||new Date,f=o.getFullYear(),e=o.getMonth(),r=o.getDate(),s=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,u=s.exec(i);u;){switch(u[2]||"d"){case"d":case"D":r+=parseInt(u[1],10);break;case"w":case"W":r+=parseInt(u[1],10)*7;break;case"m":case"M":e+=parseInt(u[1],10),r=Math.min(r,n.datepicker._getDaysInMonth(f,e));break;case"y":case"Y":f+=parseInt(u[1],10),r=Math.min(r,n.datepicker._getDaysInMonth(f,e))}u=s.exec(i)}return new Date(f,e,r)},u=i==null||i===""?r:typeof i=="string"?e(i):typeof i=="number"?isNaN(i)?r:f(i):new Date(i.getTime());return u=u&&u.toString()==="Invalid Date"?r:u,u&&(u.setHours(0),u.setMinutes(0),u.setSeconds(0),u.setMilliseconds(0)),this._daylightSavingAdjust(u)},_daylightSavingAdjust:function(n){return n?(n.setHours(n.getHours()>12?n.getHours()+2:0),n):null},_setDate:function(n,t,i){var u=!t,f=n.selectedMonth,e=n.selectedYear,r=this._restrictMinMax(n,this._determineDate(n,t,new Date));n.selectedDay=n.currentDay=r.getDate(),n.drawMonth=n.selectedMonth=n.currentMonth=r.getMonth(),n.drawYear=n.selectedYear=n.currentYear=r.getFullYear(),f===n.selectedMonth&&e===n.selectedYear||i||this._notifyChange(n),this._adjustInstDate(n),n.input&&n.input.val(u?"":this._formatDate(n))},_getDate:function(n){return!n.currentYear||n.input&&n.input.val()===""?null:this._daylightSavingAdjust(new Date(n.currentYear,n.currentMonth,n.currentDay))},_attachHandlers:function(t){var r=this._get(t,"stepMonths"),i="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){n.datepicker._adjustDate(i,-r,"M")},next:function(){n.datepicker._adjustDate(i,+r,"M")},hide:function(){n.datepicker._hideDatepicker()},today:function(){n.datepicker._gotoToday(i)},selectDay:function(){return n.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return n.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return n.datepicker._selectMonthYear(i,this,"Y"),!1}};n(this).bind(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(n){var b,s,rt,h,ut,k,ft,et,ri,c,ot,ui,fi,ei,oi,st,g,si,ht,nt,f,y,ct,p,lt,l,u,at,vt,yt,pt,tt,wt,i,bt,kt,d,a,it,dt=new Date,gt=this._daylightSavingAdjust(new Date(dt.getFullYear(),dt.getMonth(),dt.getDate())),e=this._get(n,"isRTL"),li=this._get(n,"showButtonPanel"),hi=this._get(n,"hideIfNoPrevNext"),ni=this._get(n,"navigationAsDateFormat"),o=this._getNumberOfMonths(n),ai=this._get(n,"showCurrentAtPos"),ci=this._get(n,"stepMonths"),ti=o[0]!==1||o[1]!==1,ii=this._daylightSavingAdjust(n.currentDay?new Date(n.currentYear,n.currentMonth,n.currentDay):new Date(9999,9,9)),w=this._getMinMaxDate(n,"min"),v=this._getMinMaxDate(n,"max"),t=n.drawMonth-ai,r=n.drawYear;if(t<0&&(t+=12,r--),v)for(b=this._daylightSavingAdjust(new Date(v.getFullYear(),v.getMonth()-o[0]*o[1]+1,v.getDate())),b=w&&b<w?w:b;this._daylightSavingAdjust(new Date(r,t,1))>b;)t--,t<0&&(t=11,r--);for(n.drawMonth=t,n.drawYear=r,s=this._get(n,"prevText"),s=ni?this.formatDate(s,this._daylightSavingAdjust(new Date(r,t-ci,1)),this._getFormatConfig(n)):s,rt=this._canAdjustMonth(n,-1,r,t)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(e?"e":"w")+"'>"+s+"<\/span><\/a>":hi?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(e?"e":"w")+"'>"+s+"<\/span><\/a>",h=this._get(n,"nextText"),h=ni?this.formatDate(h,this._daylightSavingAdjust(new Date(r,t+ci,1)),this._getFormatConfig(n)):h,ut=this._canAdjustMonth(n,1,r,t)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+h+"'><span class='ui-icon ui-icon-circle-triangle-"+(e?"w":"e")+"'>"+h+"<\/span><\/a>":hi?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+h+"'><span class='ui-icon ui-icon-circle-triangle-"+(e?"w":"e")+"'>"+h+"<\/span><\/a>",k=this._get(n,"currentText"),ft=this._get(n,"gotoCurrent")&&n.currentDay?ii:gt,k=ni?this.formatDate(k,ft,this._getFormatConfig(n)):k,et=n.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(n,"closeText")+"<\/button>",ri=li?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(e?et:"")+(this._isInRange(n,ft)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+k+"<\/button>":"")+(e?"":et)+"<\/div>":"",c=parseInt(this._get(n,"firstDay"),10),c=isNaN(c)?0:c,ot=this._get(n,"showWeek"),ui=this._get(n,"dayNames"),fi=this._get(n,"dayNamesMin"),ei=this._get(n,"monthNames"),oi=this._get(n,"monthNamesShort"),st=this._get(n,"beforeShowDay"),g=this._get(n,"showOtherMonths"),si=this._get(n,"selectOtherMonths"),ht=this._getDefaultDate(n),nt="",f,y=0;y<o[0];y++){for(ct="",this.maxRows=4,p=0;p<o[1];p++){if(lt=this._daylightSavingAdjust(new Date(r,t,n.selectedDay)),l=" ui-corner-all",u="",ti){if(u+="<div class='ui-datepicker-group",o[1]>1)switch(p){case 0:u+=" ui-datepicker-group-first",l=" ui-corner-"+(e?"right":"left");break;case o[1]-1:u+=" ui-datepicker-group-last",l=" ui-corner-"+(e?"left":"right");break;default:u+=" ui-datepicker-group-middle",l=""}u+="'>"}for(u+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+l+"'>"+(/all|left/.test(l)&&y===0?e?ut:rt:"")+(/all|right/.test(l)&&y===0?e?rt:ut:"")+this._generateMonthYearHeader(n,t,r,w,v,y>0||p>0,ei,oi)+"<\/div><table class='ui-datepicker-calendar'><thead><tr>",at=ot?"<th class='ui-datepicker-week-col'>"+this._get(n,"weekHeader")+"<\/th>":"",f=0;f<7;f++)vt=(f+c)%7,at+="<th"+((f+c+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+ui[vt]+"'>"+fi[vt]+"<\/span><\/th>";for(u+=at+"<\/tr><\/thead><tbody>",yt=this._getDaysInMonth(r,t),r===n.selectedYear&&t===n.selectedMonth&&(n.selectedDay=Math.min(n.selectedDay,yt)),pt=(this._getFirstDayOfMonth(r,t)-c+7)%7,tt=Math.ceil((pt+yt)/7),wt=ti?this.maxRows>tt?this.maxRows:tt:tt,this.maxRows=wt,i=this._daylightSavingAdjust(new Date(r,t,1-pt)),bt=0;bt<wt;bt++){for(u+="<tr>",kt=ot?"<td class='ui-datepicker-week-col'>"+this._get(n,"calculateWeek")(i)+"<\/td>":"",f=0;f<7;f++)d=st?st.apply(n.input?n.input[0]:null,[i]):[!0,""],a=i.getMonth()!==t,it=a&&!si||!d[0]||w&&i<w||v&&i>v,kt+="<td class='"+((f+c+6)%7>=5?" ui-datepicker-week-end":"")+(a?" ui-datepicker-other-month":"")+(i.getTime()===lt.getTime()&&t===n.selectedMonth&&n._keyEvent||ht.getTime()===i.getTime()&&ht.getTime()===lt.getTime()?" "+this._dayOverClass:"")+(it?" "+this._unselectableClass+" ui-state-disabled":"")+(a&&!g?"":" "+d[1]+(i.getTime()===ii.getTime()?" "+this._currentClass:"")+(i.getTime()===gt.getTime()?" ui-datepicker-today":""))+"'"+((!a||g)&&d[2]?" title='"+d[2].replace(/'/g,"&#39;")+"'":"")+(it?"":" data-handler='selectDay' data-event='click' data-month='"+i.getMonth()+"' data-year='"+i.getFullYear()+"'")+">"+(a&&!g?"&#xa0;":it?"<span class='ui-state-default'>"+i.getDate()+"<\/span>":"<a class='ui-state-default"+(i.getTime()===gt.getTime()?" ui-state-highlight":"")+(i.getTime()===ii.getTime()?" ui-state-active":"")+(a?" ui-priority-secondary":"")+"' href='#'>"+i.getDate()+"<\/a>")+"<\/td>",i.setDate(i.getDate()+1),i=this._daylightSavingAdjust(i);u+=kt+"<\/tr>"}t++,t>11&&(t=0,r++),u+="<\/tbody><\/table>"+(ti?"<\/div>"+(o[0]>0&&p===o[1]-1?"<div class='ui-datepicker-row-break'><\/div>":""):""),ct+=u}nt+=ct}return nt+=ri,n._keyEvent=!1,nt},_generateMonthYearHeader:function(n,t,i,r,u,f,e,o){var k,d,h,v,y,p,s,a,w=this._get(n,"changeMonth"),b=this._get(n,"changeYear"),g=this._get(n,"showMonthAfterYear"),c="<div class='ui-datepicker-title'>",l="";if(f||!w)l+="<span class='ui-datepicker-month'>"+e[t]+"<\/span>";else{for(k=r&&r.getFullYear()===i,d=u&&u.getFullYear()===i,l+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",h=0;h<12;h++)(!k||h>=r.getMonth())&&(!d||h<=u.getMonth())&&(l+="<option value='"+h+"'"+(h===t?" selected='selected'":"")+">"+o[h]+"<\/option>");l+="<\/select>"}if(g||(c+=l+(f||!(w&&b)?"&#xa0;":"")),!n.yearshtml)if(n.yearshtml="",f||!b)c+="<span class='ui-datepicker-year'>"+i+"<\/span>";else{for(v=this._get(n,"yearRange").split(":"),y=(new Date).getFullYear(),p=function(n){var t=n.match(/c[+\-].*/)?i+parseInt(n.substring(1),10):n.match(/[+\-].*/)?y+parseInt(n,10):parseInt(n,10);return isNaN(t)?y:t},s=p(v[0]),a=Math.max(s,p(v[1]||"")),s=r?Math.max(s,r.getFullYear()):s,a=u?Math.min(a,u.getFullYear()):a,n.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";s<=a;s++)n.yearshtml+="<option value='"+s+"'"+(s===i?" selected='selected'":"")+">"+s+"<\/option>";n.yearshtml+="<\/select>",c+=n.yearshtml,n.yearshtml=null}return c+=this._get(n,"yearSuffix"),g&&(c+=(f||!(w&&b)?"&#xa0;":"")+l),c+="<\/div>"},_adjustInstDate:function(n,t,i){var u=n.drawYear+(i==="Y"?t:0),f=n.drawMonth+(i==="M"?t:0),e=Math.min(n.selectedDay,this._getDaysInMonth(u,f))+(i==="D"?t:0),r=this._restrictMinMax(n,this._daylightSavingAdjust(new Date(u,f,e)));n.selectedDay=r.getDate(),n.drawMonth=n.selectedMonth=r.getMonth(),n.drawYear=n.selectedYear=r.getFullYear(),(i==="M"||i==="Y")&&this._notifyChange(n)},_restrictMinMax:function(n,t){var i=this._getMinMaxDate(n,"min"),r=this._getMinMaxDate(n,"max"),u=i&&t<i?i:t;return r&&u>r?r:u},_notifyChange:function(n){var t=this._get(n,"onChangeMonthYear");t&&t.apply(n.input?n.input[0]:null,[n.selectedYear,n.selectedMonth+1,n])},_getNumberOfMonths:function(n){var t=this._get(n,"numberOfMonths");return t==null?[1,1]:typeof t=="number"?[1,t]:t},_getMinMaxDate:function(n,t){return this._determineDate(n,this._get(n,t+"Date"),null)},_getDaysInMonth:function(n,t){return 32-this._daylightSavingAdjust(new Date(n,t,32)).getDate()},_getFirstDayOfMonth:function(n,t){return new Date(n,t,1).getDay()},_canAdjustMonth:function(n,t,i,r){var f=this._getNumberOfMonths(n),u=this._daylightSavingAdjust(new Date(i,r+(t<0?t:f[0]*f[1]),1));return t<0&&u.setDate(this._getDaysInMonth(u.getFullYear(),u.getMonth())),this._isInRange(n,u)},_isInRange:function(n,t){var i,f,e=this._getMinMaxDate(n,"min"),o=this._getMinMaxDate(n,"max"),r=null,u=null,s=this._get(n,"yearRange");return s&&(i=s.split(":"),f=(new Date).getFullYear(),r=parseInt(i[0],10),u=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(r+=f),i[1].match(/[+\-].*/)&&(u+=f)),(!e||t.getTime()>=e.getTime())&&(!o||t.getTime()<=o.getTime())&&(!r||t.getFullYear()>=r)&&(!u||t.getFullYear()<=u)},_getFormatConfig:function(n){var t=this._get(n,"shortYearCutoff");return t=typeof t!="string"?t:(new Date).getFullYear()%100+parseInt(t,10),{shortYearCutoff:t,dayNamesShort:this._get(n,"dayNamesShort"),dayNames:this._get(n,"dayNames"),monthNamesShort:this._get(n,"monthNamesShort"),monthNames:this._get(n,"monthNames")}},_formatDate:function(n,t,i,r){t||(n.currentDay=n.selectedDay,n.currentMonth=n.selectedMonth,n.currentYear=n.selectedYear);var u=t?typeof t=="object"?t:this._daylightSavingAdjust(new Date(r,i,t)):this._daylightSavingAdjust(new Date(n.currentYear,n.currentMonth,n.currentDay));return this.formatDate(this._get(n,"dateFormat"),u,this._getFormatConfig(n))}}),n.fn.datepicker=function(t){if(!this.length)return this;n.datepicker.initialized||(n(document).mousedown(n.datepicker._checkExternalClick),n.datepicker.initialized=!0),n("#"+n.datepicker._mainDivId).length===0&&n("body").append(n.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return typeof t=="string"&&(t==="isDisabled"||t==="getDate"||t==="widget")?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this[0]].concat(i)):t==="option"&&arguments.length===2&&typeof arguments[1]=="string"?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this[0]].concat(i)):this.each(function(){typeof t=="string"?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this].concat(i)):n.datepicker._attachDatepicker(this,t)})},n.datepicker=new f,n.datepicker.initialized=!1,n.datepicker.uuid=+new Date,n.datepicker.version="1.10.3"}(jQuery),function(n){var i={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},r={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};n.widget("ui.dialog",{version:"1.10.3",options:{appendTo:"body",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var i=n(this).css(t).offset().top;i<0&&n(this).css("top",t.top-i)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),this.options.title=this.options.title||this.originalTitle,this._createWrapper(),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&n.fn.draggable&&this._makeDraggable(),this.options.resizable&&n.fn.resizable&&this._makeResizable(),this._isOpen=!1},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?n(t):this.document.find(t||"body").eq(0)},_destroy:function(){var n,t=this.originalPosition;this._destroyOverlay(),this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach(),this.uiDialog.stop(!0,!0).remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),n=t.parent.children().eq(t.index),n.length&&n[0]!==this.element[0]?n.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},disable:n.noop,enable:n.noop,close:function(t){var i=this;this._isOpen&&this._trigger("beforeClose",t)!==!1&&(this._isOpen=!1,this._destroyOverlay(),this.opener.filter(":focusable").focus().length||n(this.document[0].activeElement).blur(),this._hide(this.uiDialog,this.options.hide,function(){i._trigger("close",t)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(n,t){var i=!!this.uiDialog.nextAll(":visible").insertBefore(this.uiDialog).length;return i&&!t&&this._trigger("focus",n),i},open:function(){var t=this;if(this._isOpen){this._moveToTop()&&this._focusTabbable();return}this._isOpen=!0,this.opener=n(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this._show(this.uiDialog,this.options.show,function(){t._focusTabbable(),t._trigger("focus")}),this._trigger("open")},_focusTabbable:function(){var n=this.element.find("[autofocus]");n.length||(n=this.element.find(":tabbable")),n.length||(n=this.uiDialogButtonPane.find(":tabbable")),n.length||(n=this.uiDialogTitlebarClose.filter(":tabbable")),n.length||(n=this.uiDialog),n.eq(0).focus()},_keepFocus:function(t){function i(){var t=this.document[0].activeElement,i=this.uiDialog[0]===t||n.contains(this.uiDialog[0],t);i||this._focusTabbable()}t.preventDefault(),i.call(this),this._delay(i)},_createWrapper:function(){this.uiDialog=n("<div>").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._on(this.uiDialog,{keydown:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===n.ui.keyCode.ESCAPE){t.preventDefault(),this.close(t);return}if(t.keyCode===n.ui.keyCode.TAB){var i=this.uiDialog.find(":tabbable"),r=i.filter(":first"),u=i.filter(":last");t.target!==u[0]&&t.target!==this.uiDialog[0]||t.shiftKey?(t.target===r[0]||t.target===this.uiDialog[0])&&t.shiftKey&&(u.focus(1),t.preventDefault()):(r.focus(1),t.preventDefault())}},mousedown:function(n){this._moveToTop(n)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=n("<div>").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog),this._on(this.uiDialogTitlebar,{mousedown:function(t){n(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}}),this.uiDialogTitlebarClose=n("<button><\/button>").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click:function(n){n.preventDefault(),this.close(n)}}),t=n("<span>").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar),this._title(t),this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(n){this.options.title||n.html("&#160;"),n.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=n("<div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),this.uiButtonSet=n("<div>").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane),this._createButtons()},_createButtons:function(){var i=this,t=this.options.buttons;if(this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),n.isEmptyObject(t)||n.isArray(t)&&!t.length){this.uiDialog.removeClass("ui-dialog-buttons");return}n.each(t,function(t,r){var u,f;r=n.isFunction(r)?{click:r,text:t}:r,r=n.extend({type:"button"},r),u=r.click,r.click=function(){u.apply(i.element[0],arguments)},f={icons:r.icons,text:r.showText},delete r.icons,delete r.showText,n("<button><\/button>",r).button(f).appendTo(i.uiButtonSet)}),this.uiDialog.addClass("ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog)},_makeDraggable:function(){function i(n){return{position:n.position,offset:n.offset}}var t=this,r=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(r,u){n(this).addClass("ui-dialog-dragging"),t._blockFrames(),t._trigger("dragStart",r,i(u))},drag:function(n,r){t._trigger("drag",n,i(r))},stop:function(u,f){r.position=[f.position.left-t.document.scrollLeft(),f.position.top-t.document.scrollTop()],n(this).removeClass("ui-dialog-dragging"),t._unblockFrames(),t._trigger("dragStop",u,i(f))}})},_makeResizable:function(){function r(n){return{originalPosition:n.originalPosition,originalSize:n.originalSize,position:n.position,size:n.size}}var i=this,t=this.options,u=t.resizable,f=this.uiDialog.css("position"),e=typeof u=="string"?u:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:t.maxWidth,maxHeight:t.maxHeight,minWidth:t.minWidth,minHeight:this._minHeight(),handles:e,start:function(t,u){n(this).addClass("ui-dialog-resizing"),i._blockFrames(),i._trigger("resizeStart",t,r(u))},resize:function(n,t){i._trigger("resize",n,r(t))},stop:function(u,f){t.height=n(this).height(),t.width=n(this).width(),n(this).removeClass("ui-dialog-resizing"),i._unblockFrames(),i._trigger("resizeStop",u,r(f))}}).css("position",f)},_minHeight:function(){var n=this.options;return n.height==="auto"?n.minHeight:Math.min(n.minHeight,n.height)},_position:function(){var n=this.uiDialog.is(":visible");n||this.uiDialog.show(),this.uiDialog.position(this.options.position),n||this.uiDialog.hide()},_setOptions:function(t){var e=this,u=!1,f={};n.each(t,function(n,t){e._setOption(n,t),n in i&&(u=!0),n in r&&(f[n]=t)}),u&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",f)},_setOption:function(n,t){var u,r,i=this.uiDialog;(n==="dialogClass"&&i.removeClass(this.options.dialogClass).addClass(t),n!=="disabled")&&(this._super(n,t),n==="appendTo"&&this.uiDialog.appendTo(this._appendTo()),n==="buttons"&&this._createButtons(),n==="closeText"&&this.uiDialogTitlebarClose.button({label:""+t}),n==="draggable"&&(u=i.is(":data(ui-draggable)"),u&&!t&&i.draggable("destroy"),!u&&t&&this._makeDraggable()),n==="position"&&this._position(),n==="resizable"&&(r=i.is(":data(ui-resizable)"),r&&!t&&i.resizable("destroy"),r&&typeof t=="string"&&i.resizable("option","handles",t),r||t===!1||this._makeResizable()),n==="title"&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,i,r,n=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),n.minWidth>n.width&&(n.width=n.minWidth),t=this.uiDialog.css({height:"auto",width:n.width}).outerHeight(),i=Math.max(0,n.minHeight-t),r=typeof n.maxHeight=="number"?Math.max(0,n.maxHeight-t):"none",n.height==="auto"?this.element.css({minHeight:i,maxHeight:r,height:"auto"}):this.element.height(Math.max(0,n.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=n(this);return n("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return n(t.target).closest(".ui-dialog").length?!0:!!n(t.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var t=this,i=this.widgetFullName;n.ui.dialog.overlayInstances||this._delay(function(){n.ui.dialog.overlayInstances&&this.document.bind("focusin.dialog",function(r){t._allowInteraction(r)||(r.preventDefault(),n(".ui-dialog:visible:last .ui-dialog-content").data(i)._focusTabbable())})}),this.overlay=n("<div>").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo()),this._on(this.overlay,{mousedown:"_keepFocus"}),n.ui.dialog.overlayInstances++}},_destroyOverlay:function(){this.options.modal&&this.overlay&&(n.ui.dialog.overlayInstances--,n.ui.dialog.overlayInstances||this.document.unbind("focusin.dialog"),this.overlay.remove(),this.overlay=null)}}),n.ui.dialog.overlayInstances=0,n.uiBackCompat!==!1&&n.widget("ui.dialog",n.ui.dialog,{_position:function(){var t=this.options.position,i=[],r=[0,0],u;t?((typeof t=="string"||typeof t=="object"&&"0"in t)&&(i=t.split?t.split(" "):[t[0],t[1]],i.length===1&&(i[1]=i[0]),n.each(["left","top"],function(n,t){+i[n]===i[n]&&(r[n]=i[n],i[n]=t)}),t={my:i[0]+(r[0]<0?r[0]:"+"+r[0])+" "+i[1]+(r[1]<0?r[1]:"+"+r[1]),at:i.join(" ")}),t=n.extend({},n.ui.dialog.prototype.options.position,t)):t=n.ui.dialog.prototype.options.position,u=this.uiDialog.is(":visible"),u||this.uiDialog.show(),this.uiDialog.position(t),u||this.uiDialog.hide()}})}(jQuery),function(n){var i=/up|down|vertical/,r=/up|left|vertical|horizontal/;n.effects.effect.blind=function(t,u){var f=n(this),c=["position","top","bottom","left","right","height","width"],p=n.effects.setMode(f,t.mode||"hide"),w=t.direction||"up",o=i.test(w),l=o?"height":"width",a=o?"top":"left",b=r.test(w),v={},y=p==="show",e,s,h;f.parent().is(".ui-effects-wrapper")?n.effects.save(f.parent(),c):n.effects.save(f,c),f.show(),e=n.effects.createWrapper(f).css({overflow:"hidden"}),s=e[l](),h=parseFloat(e.css(a))||0,v[l]=y?s:0,b||(f.css(o?"bottom":"right",0).css(o?"top":"left","auto").css({position:"absolute"}),v[a]=y?h:s+h),y&&(e.css(l,0),b||e.css(a,h+s)),e.animate(v,{duration:t.duration,easing:t.easing,queue:!1,complete:function(){p==="hide"&&f.hide(),n.effects.restore(f,c),n.effects.removeWrapper(f),u()}})}}(jQuery),function(n){n.effects.effect.bounce=function(t,i){var r=n(this),v=["position","top","bottom","left","right","height","width"],k=n.effects.setMode(r,t.mode||"effect"),f=k==="hide",y=k==="show",h=t.direction||"up",u=t.distance,p=t.times||5,d=p*2+(y||f?1:0),c=t.duration/d,l=t.easing,e=h==="up"||h==="down"?"top":"left",w=h==="up"||h==="left",b,o,s,a=r.queue(),g=a.length;for((y||f)&&v.push("opacity"),n.effects.save(r,v),r.show(),n.effects.createWrapper(r),u||(u=r[e==="top"?"outerHeight":"outerWidth"]()/3),y&&(s={opacity:1},s[e]=0,r.css("opacity",0).css(e,w?-u*2:u*2).animate(s,c,l)),f&&(u=u/Math.pow(2,p-1)),s={},s[e]=0,b=0;b<p;b++)o={},o[e]=(w?"-=":"+=")+u,r.animate(o,c,l).animate(s,c,l),u=f?u*2:u/2;f&&(o={opacity:0},o[e]=(w?"-=":"+=")+u,r.animate(o,c,l)),r.queue(function(){f&&r.hide(),n.effects.restore(r,v),n.effects.removeWrapper(r),i()}),g>1&&a.splice.apply(a,[1,0].concat(a.splice(g,d+1))),r.dequeue()}}(jQuery),function(n){n.effects.effect.clip=function(t,i){var r=n(this),h=["position","top","bottom","left","right","height","width"],v=n.effects.setMode(r,t.mode||"hide"),f=v==="show",y=t.direction||"vertical",c=y==="vertical",o=c?"height":"width",l=c?"top":"left",s={},a,u,e;n.effects.save(r,h),r.show(),a=n.effects.createWrapper(r).css({overflow:"hidden"}),u=r[0].tagName==="IMG"?a:r,e=u[o](),f&&(u.css(o,0),u.css(l,e/2)),s[o]=f?e:0,s[l]=f?0:e/2,u.animate(s,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){f||r.hide(),n.effects.restore(r,h),n.effects.removeWrapper(r),i()}})}}(jQuery),function(n){n.effects.effect.drop=function(t,i){var r=n(this),h=["position","top","bottom","left","right","opacity","height","width"],c=n.effects.setMode(r,t.mode||"hide"),e=c==="show",u=t.direction||"left",o=u==="up"||u==="down"?"top":"left",s=u==="up"||u==="left"?"pos":"neg",l={opacity:e?1:0},f;n.effects.save(r,h),r.show(),n.effects.createWrapper(r),f=t.distance||r[o==="top"?"outerHeight":"outerWidth"](!0)/2,e&&r.css("opacity",0).css(o,s==="pos"?-f:f),l[o]=(e?s==="pos"?"+=":"-=":s==="pos"?"-=":"+=")+f,r.animate(l,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){c==="hide"&&r.hide(),n.effects.restore(r,h),n.effects.removeWrapper(r),i()}})}}(jQuery),function(n){n.effects.effect.explode=function(t,i){function k(){l.push(this),l.length===o*c&&d()}function d(){r.css({visibility:"visible"}),n(l).remove(),u||r.hide(),i()}for(var o=t.pieces?Math.round(Math.sqrt(t.pieces)):3,c=o,r=n(this),b=n.effects.setMode(r,t.mode||"hide"),u=b==="show",w=r.show().css("visibility","hidden").offset(),s=Math.ceil(r.outerWidth()/c),h=Math.ceil(r.outerHeight()/o),l=[],f,a,v,y,p,e=0;e<o;e++)for(v=w.top+e*h,p=e-(o-1)/2,f=0;f<c;f++)a=w.left+f*s,y=f-(c-1)/2,r.clone().appendTo("body").wrap("<div><\/div>").css({position:"absolute",visibility:"visible",left:-f*s,top:-e*h}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:s,height:h,left:a+(u?y*s:0),top:v+(u?p*h:0),opacity:u?0:1}).animate({left:a+(u?0:y*s),top:v+(u?0:p*h),opacity:u?1:0},t.duration||500,t.easing,k)}}(jQuery),function(n){n.effects.effect.fade=function(t,i){var r=n(this),u=n.effects.setMode(r,t.mode||"toggle");r.animate({opacity:u},{queue:!1,duration:t.duration,easing:t.easing,complete:i})}}(jQuery),function(n){n.effects.effect.fold=function(t,i){var r=n(this),s=["position","top","bottom","left","right","height","width"],h=n.effects.setMode(r,t.mode||"hide"),e=h==="show",c=h==="hide",f=t.size||15,l=/([0-9]+)%/.exec(f),a=!!t.horizFirst,v=e!==a,y=v?["width","height"]:["height","width"],p=t.duration/2,u,o,w={},b={};n.effects.save(r,s),r.show(),u=n.effects.createWrapper(r).css({overflow:"hidden"}),o=v?[u.width(),u.height()]:[u.height(),u.width()],l&&(f=parseInt(l[1],10)/100*o[c?0:1]),e&&u.css(a?{height:0,width:f}:{height:f,width:0}),w[y[0]]=e?o[0]:f,b[y[1]]=e?o[1]:0,u.animate(w,p,t.easing).animate(b,p,t.easing,function(){c&&r.hide(),n.effects.restore(r,s),n.effects.removeWrapper(r),i()})}}(jQuery),function(n){n.effects.effect.highlight=function(t,i){var r=n(this),u=["backgroundImage","backgroundColor","opacity"],f=n.effects.setMode(r,t.mode||"show"),e={backgroundColor:r.css("backgroundColor")};f==="hide"&&(e.opacity=0),n.effects.save(r,u),r.show().css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(e,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){f==="hide"&&r.hide(),n.effects.restore(r,u),i()}})}}(jQuery),function(n){n.effects.effect.pulsate=function(t,i){var r=n(this),e=n.effects.setMode(r,t.mode||"show"),h=e==="show",a=e==="hide",v=h||e==="hide",o=(t.times||5)*2+(v?1:0),c=t.duration/o,u=0,f=r.queue(),l=f.length,s;for((h||!r.is(":visible"))&&(r.css("opacity",0).show(),u=1),s=1;s<o;s++)r.animate({opacity:u},c,t.easing),u=1-u;r.animate({opacity:u},c,t.easing),r.queue(function(){a&&r.hide(),i()}),l>1&&f.splice.apply(f,[1,0].concat(f.splice(l,o+1))),r.dequeue()}}(jQuery),function(n){n.effects.effect.puff=function(t,i){var r=n(this),e=n.effects.setMode(r,t.mode||"hide"),o=e==="hide",s=parseInt(t.percent,10)||150,f=s/100,u={height:r.height(),width:r.width(),outerHeight:r.outerHeight(),outerWidth:r.outerWidth()};n.extend(t,{effect:"scale",queue:!1,fade:!0,mode:e,complete:i,percent:o?s:100,from:o?u:{height:u.height*f,width:u.width*f,outerHeight:u.outerHeight*f,outerWidth:u.outerWidth*f}}),r.effect(t)},n.effects.effect.scale=function(t,i){var u=n(this),r=n.extend(!0,{},t),f=n.effects.setMode(u,t.mode||"effect"),s=parseInt(t.percent,10)||(parseInt(t.percent,10)===0?0:f==="hide"?0:100),h=t.direction||"both",c=t.origin,e={height:u.height(),width:u.width(),outerHeight:u.outerHeight(),outerWidth:u.outerWidth()},o={y:h!=="horizontal"?s/100:1,x:h!=="vertical"?s/100:1};r.effect="size",r.queue=!1,r.complete=i,f!=="effect"&&(r.origin=c||["middle","center"],r.restore=!0),r.from=t.from||(f==="show"?{height:0,width:0,outerHeight:0,outerWidth:0}:e),r.to={height:e.height*o.y,width:e.width*o.x,outerHeight:e.outerHeight*o.y,outerWidth:e.outerWidth*o.x},r.fade&&(f==="show"&&(r.from.opacity=0,r.to.opacity=1),f==="hide"&&(r.from.opacity=1,r.to.opacity=0)),u.effect(r)},n.effects.effect.size=function(t,i){var f,l,u,r=n(this),w=["position","top","bottom","left","right","width","height","overflow","opacity"],k=["position","top","bottom","left","right","overflow","opacity"],a=["width","height","overflow"],v=["fontSize"],e=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],o=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],h=n.effects.setMode(r,t.mode||"effect"),y=t.restore||h!=="effect",c=t.scale||"both",b=t.origin||["middle","center"],d=r.css("position"),s=y?w:k,p={height:0,width:0,outerHeight:0,outerWidth:0};h==="show"&&r.show(),f={height:r.height(),width:r.width(),outerHeight:r.outerHeight(),outerWidth:r.outerWidth()},t.mode==="toggle"&&h==="show"?(r.from=t.to||p,r.to=t.from||f):(r.from=t.from||(h==="show"?p:f),r.to=t.to||(h==="hide"?p:f)),u={from:{y:r.from.height/f.height,x:r.from.width/f.width},to:{y:r.to.height/f.height,x:r.to.width/f.width}},(c==="box"||c==="both")&&(u.from.y!==u.to.y&&(s=s.concat(e),r.from=n.effects.setTransition(r,e,u.from.y,r.from),r.to=n.effects.setTransition(r,e,u.to.y,r.to)),u.from.x!==u.to.x&&(s=s.concat(o),r.from=n.effects.setTransition(r,o,u.from.x,r.from),r.to=n.effects.setTransition(r,o,u.to.x,r.to))),(c==="content"||c==="both")&&u.from.y!==u.to.y&&(s=s.concat(v).concat(a),r.from=n.effects.setTransition(r,v,u.from.y,r.from),r.to=n.effects.setTransition(r,v,u.to.y,r.to)),n.effects.save(r,s),r.show(),n.effects.createWrapper(r),r.css("overflow","hidden").css(r.from),b&&(l=n.effects.getBaseline(b,f),r.from.top=(f.outerHeight-r.outerHeight())*l.y,r.from.left=(f.outerWidth-r.outerWidth())*l.x,r.to.top=(f.outerHeight-r.to.outerHeight)*l.y,r.to.left=(f.outerWidth-r.to.outerWidth)*l.x),r.css(r.from),(c==="content"||c==="both")&&(e=e.concat(["marginTop","marginBottom"]).concat(v),o=o.concat(["marginLeft","marginRight"]),a=w.concat(e).concat(o),r.find("*[width]").each(function(){var i=n(this),r={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()};y&&n.effects.save(i,a),i.from={height:r.height*u.from.y,width:r.width*u.from.x,outerHeight:r.outerHeight*u.from.y,outerWidth:r.outerWidth*u.from.x},i.to={height:r.height*u.to.y,width:r.width*u.to.x,outerHeight:r.height*u.to.y,outerWidth:r.width*u.to.x},u.from.y!==u.to.y&&(i.from=n.effects.setTransition(i,e,u.from.y,i.from),i.to=n.effects.setTransition(i,e,u.to.y,i.to)),u.from.x!==u.to.x&&(i.from=n.effects.setTransition(i,o,u.from.x,i.from),i.to=n.effects.setTransition(i,o,u.to.x,i.to)),i.css(i.from),i.animate(i.to,t.duration,t.easing,function(){y&&n.effects.restore(i,a)})})),r.animate(r.to,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){r.to.opacity===0&&r.css("opacity",r.from.opacity),h==="hide"&&r.hide(),n.effects.restore(r,s),y||(d==="static"?r.css({position:"relative",top:r.to.top,left:r.to.left}):n.each(["top","left"],function(n,t){r.css(t,function(t,i){var f=parseInt(i,10),u=n?r.to.left:r.to.top;return i==="auto"?u+"px":f+u+"px"})})),n.effects.removeWrapper(r),i()}})}}(jQuery),function(n){n.effects.effect.shake=function(t,i){var r=n(this),v=["position","top","bottom","left","right","height","width"],k=n.effects.setMode(r,t.mode||"effect"),f=t.direction||"left",o=t.distance||20,y=t.times||3,p=y*2+1,u=Math.round(t.duration/p),s=f==="up"||f==="down"?"top":"left",h=f==="up"||f==="left",c={},l={},w={},a,e=r.queue(),b=e.length;for(n.effects.save(r,v),r.show(),n.effects.createWrapper(r),c[s]=(h?"-=":"+=")+o,l[s]=(h?"+=":"-=")+o*2,w[s]=(h?"-=":"+=")+o*2,r.animate(c,u,t.easing),a=1;a<y;a++)r.animate(l,u,t.easing).animate(w,u,t.easing);r.animate(l,u,t.easing).animate(c,u/2,t.easing).queue(function(){k==="hide"&&r.hide(),n.effects.restore(r,v),n.effects.removeWrapper(r),i()}),b>1&&e.splice.apply(e,[1,0].concat(e.splice(b,p+1))),r.dequeue()}}(jQuery),function(n){n.effects.effect.slide=function(t,i){var r=n(this),s=["position","top","bottom","left","right","width","height"],h=n.effects.setMode(r,t.mode||"show"),c=h==="show",f=t.direction||"left",e=f==="up"||f==="down"?"top":"left",o=f==="up"||f==="left",u,l={};n.effects.save(r,s),r.show(),u=t.distance||r[e==="top"?"outerHeight":"outerWidth"](!0),n.effects.createWrapper(r).css({overflow:"hidden"}),c&&r.css(e,o?isNaN(u)?"-"+u:-u:u),l[e]=(c?o?"+=":"-=":o?"-=":"+=")+u,r.animate(l,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){h==="hide"&&r.hide(),n.effects.restore(r,s),n.effects.removeWrapper(r),i()}})}}(jQuery),function(n){n.effects.effect.transfer=function(t,i){var u=n(this),r=n(t.to),f=r.css("position")==="fixed",e=n("body"),o=f?e.scrollTop():0,s=f?e.scrollLeft():0,h=r.offset(),l={top:h.top-o,left:h.left-s,height:r.innerHeight(),width:r.innerWidth()},c=u.offset(),a=n("<div class='ui-effects-transfer'><\/div>").appendTo(document.body).addClass(t.className).css({top:c.top-o,left:c.left-s,height:u.innerHeight(),width:u.innerWidth(),position:f?"fixed":"absolute"}).animate(l,t.duration,t.easing,function(){a.remove(),i()})}}(jQuery),function(n){n.widget("ui.menu",{version:"1.10.3",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,n.proxy(function(n){this.options.disabled&&n.preventDefault()},this)),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(n){n.preventDefault()},"click .ui-state-disabled > a":function(n){n.preventDefault()},"click .ui-menu-item:has(a)":function(t){var i=n(t.target).closest(".ui-menu-item");!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.mouseHandled=!0,this.select(t),i.has(".ui-menu").length?this.expand(t):this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.active&&this.active.parents(".ui-menu").length===1&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(t){var i=n(t.currentTarget);i.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(t,i)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(n,t){var i=this.active||this.element.children(".ui-menu-item").eq(0);t||this.focus(n,i)},blur:function(t){this._delay(function(){n.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){n(t.target).closest(".ui-menu").length||this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var t=n(this);t.data("ui-menu-submenu-carat")&&t.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(t){function s(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var i,f,r,e,u,o=!0;switch(t.keyCode){case n.ui.keyCode.PAGE_UP:this.previousPage(t);break;case n.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case n.ui.keyCode.HOME:this._move("first","first",t);break;case n.ui.keyCode.END:this._move("last","last",t);break;case n.ui.keyCode.UP:this.previous(t);break;case n.ui.keyCode.DOWN:this.next(t);break;case n.ui.keyCode.LEFT:this.collapse(t);break;case n.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case n.ui.keyCode.ENTER:case n.ui.keyCode.SPACE:this._activate(t);break;case n.ui.keyCode.ESCAPE:this.collapse(t);break;default:o=!1,f=this.previousFilter||"",r=String.fromCharCode(t.keyCode),e=!1,clearTimeout(this.filterTimer),r===f?e=!0:r=f+r,u=new RegExp("^"+s(r),"i"),i=this.activeMenu.children(".ui-menu-item").filter(function(){return u.test(n(this).children("a").text())}),i=e&&i.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):i,i.length||(r=String.fromCharCode(t.keyCode),u=new RegExp("^"+s(r),"i"),i=this.activeMenu.children(".ui-menu-item").filter(function(){return u.test(n(this).children("a").text())})),i.length?(this.focus(t,i),i.length>1?(this.previousFilter=r,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}o&&t.preventDefault()},_activate:function(n){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(n):this.select(n))},refresh:function(){var t,r=this.options.icons.submenu,i=this.element.find(this.options.menus);i.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=n(this),i=t.prev("a"),u=n("<span>").addClass("ui-menu-icon ui-icon "+r).data("ui-menu-submenu-carat",!0);i.attr("aria-haspopup","true").prepend(u),t.attr("aria-labelledby",i.attr("id"))}),t=i.add(this.element),t.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),t.children(":not(.ui-menu-item)").each(function(){var t=n(this);/[^\-\u2014\u2013\s]/.test(t.text())||t.addClass("ui-widget-content ui-menu-divider")}),t.children(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!n.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(n,t){n==="icons"&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(t.submenu),this._super(n,t)},focus:function(n,t){var i,r;this.blur(n,n&&n.type==="focus"),this._scrollIntoView(t),this.active=t.first(),r=this.active.children("a").addClass("ui-state-focus"),this.options.role&&this.element.attr("aria-activedescendant",r.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),n&&n.type==="keydown"?this._close():this.timer=this._delay(function(){this._close()},this.delay),i=t.children(".ui-menu"),i.length&&/^mouse/.test(n.type)&&this._startOpening(i),this.activeMenu=t.parent(),this._trigger("focus",n,{item:t})},_scrollIntoView:function(t){var e,o,i,r,u,f;this._hasScroll()&&(e=parseFloat(n.css(this.activeMenu[0],"borderTopWidth"))||0,o=parseFloat(n.css(this.activeMenu[0],"paddingTop"))||0,i=t.offset().top-this.activeMenu.offset().top-e-o,r=this.activeMenu.scrollTop(),u=this.activeMenu.height(),f=t.height(),i<0?this.activeMenu.scrollTop(r+i):i+f>u&&this.activeMenu.scrollTop(r+i-u+f))},blur:function(n,t){(t||clearTimeout(this.timer),this.active)&&(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",n,{item:this.active}))},_startOpening:function(n){(clearTimeout(this.timer),n.attr("aria-hidden")==="true")&&(this.timer=this._delay(function(){this._close(),this._open(n)},this.delay))},_open:function(t){var i=n.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(t,i){clearTimeout(this.timer),this.timer=this._delay(function(){var r=i?this.element:n(t&&t.target).closest(this.element.find(".ui-menu"));r.length||(r=this.element),this._close(r),this.blur(t),this.activeMenu=r},this.delay)},_close:function(n){n||(n=this.active?this.active.parent():this.element),n.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(n){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(n,t))},expand:function(n){var t=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(n,t)}))},next:function(n){this._move("next","first",n)},previous:function(n){this._move("prev","last",n)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(n,t,i){var r;this.active&&(r=n==="first"||n==="last"?this.active[n==="first"?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[n+"All"](".ui-menu-item").eq(0)),r&&r.length&&this.active||(r=this.activeMenu.children(".ui-menu-item")[t]()),this.focus(i,r)},nextPage:function(t){var i,r,u;if(!this.active){this.next(t);return}this.isLastItem()||(this._hasScroll()?(r=this.active.offset().top,u=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=n(this),i.offset().top-r-u<0}),this.focus(t,i)):this.focus(t,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]()))},previousPage:function(t){var i,r,u;if(!this.active){this.next(t);return}this.isFirstItem()||(this._hasScroll()?(r=this.active.offset().top,u=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=n(this),i.offset().top-r+u>0}),this.focus(t,i)):this.focus(t,this.activeMenu.children(".ui-menu-item").first()))},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||n(t.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,i)}})}(jQuery),function(n,t){function a(n,t,i){return[parseFloat(n[0])*(l.test(n[0])?t/100:1),parseFloat(n[1])*(l.test(n[1])?i/100:1)]}function u(t,i){return parseInt(n.css(t,i),10)||0}function y(t){var i=t[0];return i.nodeType===9?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:n.isWindow(i)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}n.ui=n.ui||{};var f,r=Math.max,i=Math.abs,e=Math.round,o=/left|center|right/,s=/top|center|bottom/,h=/[\+\-]\d+(\.[\d]+)?%?/,c=/^\w+/,l=/%$/,v=n.fn.position;n.position={scrollbarWidth:function(){if(f!==t)return f;var u,r,i=n("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'><\/div><\/div>"),e=i.children()[0];return n("body").append(i),u=e.offsetWidth,i.css("overflow","scroll"),r=e.offsetWidth,u===r&&(r=i[0].clientWidth),i.remove(),f=u-r},getScrollInfo:function(t){var i=t.isWindow?"":t.element.css("overflow-x"),r=t.isWindow?"":t.element.css("overflow-y"),u=i==="scroll"||i==="auto"&&t.width<t.element[0].scrollWidth,f=r==="scroll"||r==="auto"&&t.height<t.element[0].scrollHeight;return{width:f?n.position.scrollbarWidth():0,height:u?n.position.scrollbarWidth():0}},getWithinInfo:function(t){var i=n(t||window),r=n.isWindow(i[0]);return{element:i,isWindow:r,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:r?i.width():i.outerWidth(),height:r?i.height():i.outerHeight()}}},n.fn.position=function(t){if(!t||!t.of)return v.apply(this,arguments);t=n.extend({},t);var b,f,l,w,p,d,g=n(t.of),tt=n.position.getWithinInfo(t.within),it=n.position.getScrollInfo(tt),k=(t.collision||"flip").split(" "),nt={};return d=y(g),g[0].preventDefault&&(t.at="left top"),f=d.width,l=d.height,w=d.offset,p=n.extend({},w),n.each(["my","at"],function(){var n=(t[this]||"").split(" "),i,r;n.length===1&&(n=o.test(n[0])?n.concat(["center"]):s.test(n[0])?["center"].concat(n):["center","center"]),n[0]=o.test(n[0])?n[0]:"center",n[1]=s.test(n[1])?n[1]:"center",i=h.exec(n[0]),r=h.exec(n[1]),nt[this]=[i?i[0]:0,r?r[0]:0],t[this]=[c.exec(n[0])[0],c.exec(n[1])[0]]}),k.length===1&&(k[1]=k[0]),t.at[0]==="right"?p.left+=f:t.at[0]==="center"&&(p.left+=f/2),t.at[1]==="bottom"?p.top+=l:t.at[1]==="center"&&(p.top+=l/2),b=a(nt.at,f,l),p.left+=b[0],p.top+=b[1],this.each(function(){var y,d,s=n(this),h=s.outerWidth(),c=s.outerHeight(),rt=u(this,"marginLeft"),ut=u(this,"marginTop"),ft=h+rt+u(this,"marginRight")+it.width,et=c+ut+u(this,"marginBottom")+it.height,o=n.extend({},p),v=a(nt.my,s.outerWidth(),s.outerHeight());t.my[0]==="right"?o.left-=h:t.my[0]==="center"&&(o.left-=h/2),t.my[1]==="bottom"?o.top-=c:t.my[1]==="center"&&(o.top-=c/2),o.left+=v[0],o.top+=v[1],n.support.offsetFractions||(o.left=e(o.left),o.top=e(o.top)),y={marginLeft:rt,marginTop:ut},n.each(["left","top"],function(i,r){n.ui.position[k[i]]&&n.ui.position[k[i]][r](o,{targetWidth:f,targetHeight:l,elemWidth:h,elemHeight:c,collisionPosition:y,collisionWidth:ft,collisionHeight:et,offset:[b[0]+v[0],b[1]+v[1]],my:t.my,at:t.at,within:tt,elem:s})}),t.using&&(d=function(n){var e=w.left-o.left,v=e+f-h,a=w.top-o.top,y=a+l-c,u={target:{element:g,left:w.left,top:w.top,width:f,height:l},element:{element:s,left:o.left,top:o.top,width:h,height:c},horizontal:v<0?"left":e>0?"right":"center",vertical:y<0?"top":a>0?"bottom":"middle"};f<h&&i(e+v)<f&&(u.horizontal="center"),l<c&&i(a+y)<l&&(u.vertical="middle"),u.important=r(i(e),i(v))>r(i(a),i(y))?"horizontal":"vertical",t.using.call(this,n,u)}),s.offset(n.extend(o,{using:d}))})},n.ui.position={fit:{left:function(n,t){var e=t.within,u=e.isWindow?e.scrollLeft:e.offset.left,o=e.width,s=n.left-t.collisionPosition.marginLeft,i=u-s,f=s+t.collisionWidth-o-u,h;t.collisionWidth>o?i>0&&f<=0?(h=n.left+i+t.collisionWidth-o-u,n.left+=i-h):n.left=f>0&&i<=0?u:i>f?u+o-t.collisionWidth:u:i>0?n.left+=i:f>0?n.left-=f:n.left=r(n.left-s,n.left)},top:function(n,t){var o=t.within,u=o.isWindow?o.scrollTop:o.offset.top,e=t.within.height,s=n.top-t.collisionPosition.marginTop,i=u-s,f=s+t.collisionHeight-e-u,h;t.collisionHeight>e?i>0&&f<=0?(h=n.top+i+t.collisionHeight-e-u,n.top+=i-h):n.top=f>0&&i<=0?u:i>f?u+e-t.collisionHeight:u:i>0?n.top+=i:f>0?n.top-=f:n.top=r(n.top-s,n.top)}},flip:{left:function(n,t){var r=t.within,y=r.offset.left+r.scrollLeft,c=r.width,o=r.isWindow?r.scrollLeft:r.offset.left,l=n.left-t.collisionPosition.marginLeft,a=l-o,v=l+t.collisionWidth-c-o,u=t.my[0]==="left"?-t.elemWidth:t.my[0]==="right"?t.elemWidth:0,f=t.at[0]==="left"?t.targetWidth:t.at[0]==="right"?-t.targetWidth:0,e=-2*t.offset[0],s,h;a<0?(s=n.left+u+f+e+t.collisionWidth-c-y,(s<0||s<i(a))&&(n.left+=u+f+e)):v>0&&(h=n.left-t.collisionPosition.marginLeft+u+f+e-o,(h>0||i(h)<v)&&(n.left+=u+f+e))},top:function(n,t){var r=t.within,y=r.offset.top+r.scrollTop,a=r.height,o=r.isWindow?r.scrollTop:r.offset.top,v=n.top-t.collisionPosition.marginTop,s=v-o,h=v+t.collisionHeight-a-o,p=t.my[1]==="top",u=p?-t.elemHeight:t.my[1]==="bottom"?t.elemHeight:0,f=t.at[1]==="top"?t.targetHeight:t.at[1]==="bottom"?-t.targetHeight:0,e=-2*t.offset[1],c,l;s<0?(l=n.top+u+f+e+t.collisionHeight-a-y,n.top+u+f+e>s&&(l<0||l<i(s))&&(n.top+=u+f+e)):h>0&&(c=n.top-t.collisionPosition.marginTop+u+f+e-o,n.top+u+f+e>h&&(c>0||i(c)<h)&&(n.top+=u+f+e))}},flipfit:{left:function(){n.ui.position.flip.left.apply(this,arguments),n.ui.position.fit.left.apply(this,arguments)},top:function(){n.ui.position.flip.top.apply(this,arguments),n.ui.position.fit.top.apply(this,arguments)}}},function(){var t,i,r,u,f,e=document.getElementsByTagName("body")[0],o=document.createElement("div");t=document.createElement(e?"div":"body"),r={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},e&&n.extend(r,{position:"absolute",left:"-1000px",top:"-1000px"});for(f in r)t.style[f]=r[f];t.appendChild(o),i=e||document.documentElement,i.insertBefore(t,i.firstChild),o.style.cssText="position: absolute; left: 10.7432222px;",u=n(o).offset().left,n.support.offsetFractions=u>10&&u<11,t.innerHTML="",i.removeChild(t)}()}(jQuery),function(n,t){n.widget("ui.progressbar",{version:"1.10.3",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min}),this.valueDiv=n("<div class='ui-progressbar-value ui-widget-header ui-corner-left'><\/div>").appendTo(this.element),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(n){if(n===t)return this.options.value;this.options.value=this._constrainedValue(n),this._refreshValue()},_constrainedValue:function(n){return n===t&&(n=this.options.value),this.indeterminate=n===!1,typeof n!="number"&&(n=0),this.indeterminate?!1:Math.min(this.options.max,Math.max(this.min,n))},_setOptions:function(n){var t=n.value;delete n.value,this._super(n),this.options.value=this._constrainedValue(t),this._refreshValue()},_setOption:function(n,t){n==="max"&&(t=Math.max(this.min,t)),this._super(n,t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).toggleClass("ui-corner-right",t===this.options.max).width(i.toFixed(0)+"%"),this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=n("<div class='ui-progressbar-overlay'><\/div>").appendTo(this.valueDiv))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==t&&(this.oldValue=t,this._trigger("change")),t===this.options.max&&this._trigger("complete")}})}(jQuery),function(n){var i=5;n.widget("ui.slider",n.ui.mouse,{version:"1.10.3",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var r,i,u=this.options,t=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),e="<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'><\/a>",f=[];for(i=u.values&&u.values.length||1,t.length>i&&(t.slice(i).remove(),t=t.slice(0,i)),r=t.length;r<i;r++)f.push(e);this.handles=t.add(n(f.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each(function(t){n(this).data("ui-slider-handle-index",t)})},_createRange:function(){var t=this.options,i="";t.range?(t.range===!0&&(t.values?t.values.length&&t.values.length!==2?t.values=[t.values[0],t.values[0]]:n.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=n("<div><\/div>").appendTo(this.element),i="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(i+(t.range==="min"||t.range==="max"?" ui-slider-range-"+t.range:""))):this.range=n([])},_setupEvents:function(){var n=this.handles.add(this.range).filter("a");this._off(n),this._on(n,this._handleEvents),this._hoverable(n),this._focusable(n)},_destroy:function(){this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(t){var s,f,r,i,u,h,e,c,o=this,l=this.options;return l.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),s={x:t.pageX,y:t.pageY},f=this._normValueFromMouse(s),r=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var e=Math.abs(f-o.values(t));(r>e||r===e&&(t===o._lastChangedValue||o.values(t)===l.min))&&(r=e,i=n(this),u=t)}),h=this._start(t,u),h===!1)?!1:(this._mouseSliding=!0,this._handleIndex=u,i.addClass("ui-state-active").focus(),e=i.offset(),c=!n(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=c?{left:0,top:0}:{left:t.pageX-e.left-i.width()/2,top:t.pageY-e.top-i.height()/2-(parseInt(i.css("borderTopWidth"),10)||0)-(parseInt(i.css("borderBottomWidth"),10)||0)+(parseInt(i.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,u,f),this._animateOff=!0,!0)},_mouseStart:function(){return!0},_mouseDrag:function(n){var t={x:n.pageX,y:n.pageY},i=this._normValueFromMouse(t);return this._slide(n,this._handleIndex,i),!1},_mouseStop:function(n){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(n,this._handleIndex),this._change(n,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(n){var i,r,t,u,f;return this.orientation==="horizontal"?(i=this.elementSize.width,r=n.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(i=this.elementSize.height,r=n.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),t=r/i,t>1&&(t=1),t<0&&(t=0),this.orientation==="vertical"&&(t=1-t),u=this._valueMax()-this._valueMin(),f=this._valueMin()+t*u,this._trimAlignValue(f)},_start:function(n,t){var i={handle:this.handles[t],value:this.value()};return this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._trigger("start",n,i)},_slide:function(n,t,i){var r,f,u;this.options.values&&this.options.values.length?(r=this.values(t?0:1),this.options.values.length===2&&this.options.range===!0&&(t===0&&i>r||t===1&&i<r)&&(i=r),i!==this.values(t)&&(f=this.values(),f[t]=i,u=this._trigger("slide",n,{handle:this.handles[t],value:i,values:f}),r=this.values(t?0:1),u!==!1&&this.values(t,i,!0))):i!==this.value()&&(u=this._trigger("slide",n,{handle:this.handles[t],value:i}),u!==!1&&this.value(i))},_stop:function(n,t){var i={handle:this.handles[t],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._trigger("stop",n,i)},_change:function(n,t){if(!this._keySliding&&!this._mouseSliding){var i={handle:this.handles[t],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._lastChangedValue=t,this._trigger("change",n,i)}},value:function(n){if(arguments.length){this.options.value=this._trimAlignValue(n),this._refreshValue(),this._change(null,0);return}return this._value()},values:function(t,i){var u,f,r;if(arguments.length>1){this.options.values[t]=this._trimAlignValue(i),this._refreshValue(),this._change(null,t);return}if(arguments.length)if(n.isArray(arguments[0])){for(u=this.options.values,f=arguments[0],r=0;r<u.length;r+=1)u[r]=this._trimAlignValue(f[r]),this._change(null,r);this._refreshValue()}else return this.options.values&&this.options.values.length?this._values(t):this.value();else return this._values()},_setOption:function(t,i){var r,u=0;t==="range"&&this.options.range===!0&&(i==="min"?(this.options.value=this._values(0),this.options.values=null):i==="max"&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),n.isArray(this.options.values)&&(u=this.options.values.length),n.Widget.prototype._setOption.apply(this,arguments);switch(t){case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue();break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),r=0;r<u;r+=1)this._change(null,r);this._animateOff=!1;break;case"min":case"max":this._animateOff=!0,this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var n=this.options.value;return n=this._trimAlignValue(n)},_values:function(n){var r,t,i;if(arguments.length)return r=this.options.values[n],r=this._trimAlignValue(r);if(this.options.values&&this.options.values.length){for(t=this.options.values.slice(),i=0;i<t.length;i+=1)t[i]=this._trimAlignValue(t[i]);return t}return[]},_trimAlignValue:function(n){if(n<=this._valueMin())return this._valueMin();if(n>=this._valueMax())return this._valueMax();var t=this.options.step>0?this.options.step:1,i=(n-this._valueMin())%t,r=n-i;return Math.abs(i)*2>=t&&(r+=i>0?t:-t),parseFloat(r.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var s,t,c,f,h,e=this.options.range,i=this.options,r=this,u=this._animateOff?!1:i.animate,o={};this.options.values&&this.options.values.length?this.handles.each(function(f){t=(r.values(f)-r._valueMin())/(r._valueMax()-r._valueMin())*100,o[r.orientation==="horizontal"?"left":"bottom"]=t+"%",n(this).stop(1,1)[u?"animate":"css"](o,i.animate),r.options.range===!0&&(r.orientation==="horizontal"?(f===0&&r.range.stop(1,1)[u?"animate":"css"]({left:t+"%"},i.animate),f===1&&r.range[u?"animate":"css"]({width:t-s+"%"},{queue:!1,duration:i.animate})):(f===0&&r.range.stop(1,1)[u?"animate":"css"]({bottom:t+"%"},i.animate),f===1&&r.range[u?"animate":"css"]({height:t-s+"%"},{queue:!1,duration:i.animate}))),s=t}):(c=this.value(),f=this._valueMin(),h=this._valueMax(),t=h!==f?(c-f)/(h-f)*100:0,o[this.orientation==="horizontal"?"left":"bottom"]=t+"%",this.handle.stop(1,1)[u?"animate":"css"](o,i.animate),e==="min"&&this.orientation==="horizontal"&&this.range.stop(1,1)[u?"animate":"css"]({width:t+"%"},i.animate),e==="max"&&this.orientation==="horizontal"&&this.range[u?"animate":"css"]({width:100-t+"%"},{queue:!1,duration:i.animate}),e==="min"&&this.orientation==="vertical"&&this.range.stop(1,1)[u?"animate":"css"]({height:t+"%"},i.animate),e==="max"&&this.orientation==="vertical"&&this.range[u?"animate":"css"]({height:100-t+"%"},{queue:!1,duration:i.animate}))},_handleEvents:{keydown:function(t){var o,u,r,f,e=n(t.target).data("ui-slider-handle-index");switch(t.keyCode){case n.ui.keyCode.HOME:case n.ui.keyCode.END:case n.ui.keyCode.PAGE_UP:case n.ui.keyCode.PAGE_DOWN:case n.ui.keyCode.UP:case n.ui.keyCode.RIGHT:case n.ui.keyCode.DOWN:case n.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,n(t.target).addClass("ui-state-active"),o=this._start(t,e),o===!1))return}f=this.options.step,u=this.options.values&&this.options.values.length?r=this.values(e):r=this.value();switch(t.keyCode){case n.ui.keyCode.HOME:r=this._valueMin();break;case n.ui.keyCode.END:r=this._valueMax();break;case n.ui.keyCode.PAGE_UP:r=this._trimAlignValue(u+(this._valueMax()-this._valueMin())/i);break;case n.ui.keyCode.PAGE_DOWN:r=this._trimAlignValue(u-(this._valueMax()-this._valueMin())/i);break;case n.ui.keyCode.UP:case n.ui.keyCode.RIGHT:if(u===this._valueMax())return;r=this._trimAlignValue(u+f);break;case n.ui.keyCode.DOWN:case n.ui.keyCode.LEFT:if(u===this._valueMin())return;r=this._trimAlignValue(u-f)}this._slide(t,e,r)},click:function(n){n.preventDefault()},keyup:function(t){var i=n(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,i),this._change(t,i),n(t.target).removeClass("ui-state-active"))}}})}(jQuery),function(n){function t(n){return function(){var t=this.element.val();n.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}n.widget("ui.spinner",{version:"1.10.3",defaultElement:"<input>",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var t={},i=this.element;return n.each(["min","max","step"],function(n,r){var u=i.attr(r);u!==undefined&&u.length&&(t[r]=u)}),t},_events:{keydown:function(n){this._start(n)&&this._keydown(n)&&n.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(n){if(this.cancelBlur){delete this.cancelBlur;return}this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",n)},mousewheel:function(n,t){if(t){if(!this.spinning&&!this._start(n))return!1;this._spin((t>0?1:-1)*this.options.step,n),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(n)},100),n.preventDefault()}},"mousedown .ui-spinner-button":function(t){function r(){var n=this.element[0]===this.document[0].activeElement;n||(this.element.focus(),this.previous=i,this._delay(function(){this.previous=i}))}var i;(i=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),t.preventDefault(),r.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,r.call(this)}),this._start(t)!==!1)&&this._repeat(null,n(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(n(t.currentTarget).hasClass("ui-state-active")){if(this._start(t)===!1)return!1;this._repeat(null,n(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)}},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var n=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=n.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(n.height()*.5)&&n.height()>0&&n.height(n.height()),this.options.disabled&&this.disable()},_keydown:function(t){var r=this.options,i=n.ui.keyCode;switch(t.keyCode){case i.UP:return this._repeat(null,1,t),!0;case i.DOWN:return this._repeat(null,-1,t),!0;case i.PAGE_UP:return this._repeat(null,r.page,t),!0;case i.PAGE_DOWN:return this._repeat(null,-r.page,t),!0}return!1},_uiSpinnerHtml:function(){return"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'><\/span>"},_buttonHtml:function(){return"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'><span class='ui-icon "+this.options.icons.up+"'>&#9650;<\/span><\/a><a class='ui-spinner-button ui-spinner-down ui-corner-br'><span class='ui-icon "+this.options.icons.down+"'>&#9660;<\/span><\/a>"},_start:function(n){return!this.spinning&&this._trigger("start",n)===!1?!1:(this.counter||(this.counter=1),this.spinning=!0,!0)},_repeat:function(n,t,i){n=n||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,t,i)},n),this._spin(t*this.options.step,i)},_spin:function(n,t){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+n*this._increment(this.counter)),this.spinning&&this._trigger("spin",t,{value:i})===!1||(this._value(i),this.counter++)},_increment:function(t){var i=this.options.incremental;return i?n.isFunction(i)?i(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var n=this._precisionOf(this.options.step);return this.options.min!==null&&(n=Math.max(n,this._precisionOf(this.options.min))),n},_precisionOf:function(n){var t=n.toString(),i=t.indexOf(".");return i===-1?0:t.length-i-1},_adjustValue:function(n){var r,i,t=this.options;return(r=t.min!==null?t.min:0,i=n-r,i=Math.round(i/t.step)*t.step,n=r+i,n=parseFloat(n.toFixed(this._precision())),t.max!==null&&n>t.max)?t.max:t.min!==null&&n<t.min?t.min:n},_stop:function(n){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",n))},_setOption:function(n,t){if(n==="culture"||n==="numberFormat"){var i=this._parse(this.element.val());this.options[n]=t,this.element.val(this._format(i));return}(n==="max"||n==="min"||n==="step")&&typeof t=="string"&&(t=this._parse(t)),n==="icons"&&(this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(t.up),this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(t.down)),this._super(n,t),n==="disabled"&&(t?(this.element.prop("disabled",!0),this.buttons.button("disable")):(this.element.prop("disabled",!1),this.buttons.button("enable")))},_setOptions:t(function(n){this._super(n),this._value(this.element.val())}),_parse:function(n){return typeof n=="string"&&n!==""&&(n=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(n,10,this.options.culture):+n),n===""||isNaN(n)?null:n},_format:function(n){return n===""?"":window.Globalize&&this.options.numberFormat?Globalize.format(n,this.options.numberFormat,this.options.culture):n},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},_value:function(n,t){var i;n!==""&&(i=this._parse(n),i!==null&&(t||(i=this._adjustValue(i)),n=this._format(i))),this.element.val(n),this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:t(function(n){this._stepUp(n)}),_stepUp:function(n){this._start()&&(this._spin((n||1)*this.options.step),this._stop())},stepDown:t(function(n){this._stepDown(n)}),_stepDown:function(n){this._start()&&(this._spin((n||1)*-this.options.step),this._stop())},pageUp:t(function(n){this._stepUp((n||1)*this.options.page)}),pageDown:t(function(n){this._stepDown((n||1)*this.options.page)}),value:function(n){if(!arguments.length)return this._parse(this.element.val());t(this._value).call(this,n)},widget:function(){return this.uiSpinner}})}(jQuery),function(n,t){function f(){return++u}function r(n){return n.hash.length>1&&decodeURIComponent(n.href.replace(i,""))===decodeURIComponent(location.href.replace(i,""))}var u=0,i=/#.*$/;n.widget("ui.tabs",{version:"1.10.3",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var i=this,t=this.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",t.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventNamespace,function(t){n(this).is(".ui-state-disabled")&&t.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){n(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this._processTabs(),t.active=this._initialActive(),n.isArray(t.disabled)&&(t.disabled=n.unique(t.disabled.concat(n.map(this.tabs.filter(".ui-state-disabled"),function(n){return i.tabs.index(n)}))).sort()),this.active=this.options.active!==!1&&this.anchors.length?this._findActive(t.active):n(),this._refresh(),this.active.length&&this.load(t.active)},_initialActive:function(){var t=this.options.active,i=this.options.collapsible,r=location.hash.substring(1);return t===null&&(r&&this.tabs.each(function(i,u){if(n(u).attr("aria-controls")===r)return t=i,!1}),t===null&&(t=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(t===null||t===-1)&&(t=this.tabs.length?0:!1)),t!==!1&&(t=this.tabs.index(this.tabs.eq(t)),t===-1&&(t=i?!1:0)),!i&&t===!1&&this.anchors.length&&(t=0),t},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):n()}},_tabKeydown:function(t){var r=n(this.document[0].activeElement).closest("li"),i=this.tabs.index(r),u=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case n.ui.keyCode.RIGHT:case n.ui.keyCode.DOWN:i++;break;case n.ui.keyCode.UP:case n.ui.keyCode.LEFT:u=!1,i--;break;case n.ui.keyCode.END:i=this.anchors.length-1;break;case n.ui.keyCode.HOME:i=0;break;case n.ui.keyCode.SPACE:t.preventDefault(),clearTimeout(this.activating),this._activate(i);return;case n.ui.keyCode.ENTER:t.preventDefault(),clearTimeout(this.activating),this._activate(i===this.options.active?!1:i);return;default:return}t.preventDefault(),clearTimeout(this.activating),i=this._focusNextTab(i,u),t.ctrlKey||(r.attr("aria-selected","false"),this.tabs.eq(i).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",i)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===n.ui.keyCode.UP&&(t.preventDefault(),this.active.focus())},_handlePageNav:function(t){return t.altKey&&t.keyCode===n.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===n.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,i){function u(){return t>r&&(t=0),t<0&&(t=r),t}for(var r=this.tabs.length-1;n.inArray(u(),this.options.disabled)!==-1;)t=i?t+1:t-1;return t},_focusNextTab:function(n,t){return n=this._findNextTab(n,t),this.tabs.eq(n).focus(),n},_setOption:function(n,t){if(n==="active"){this._activate(t);return}if(n==="disabled"){this._setupDisabled(t);return}this._super(n,t),n==="collapsible"&&(this.element.toggleClass("ui-tabs-collapsible",t),t||this.options.active!==!1||this._activate(0)),n==="event"&&this._setupEvents(t),n==="heightStyle"&&this._setupHeightStyle(t)},_tabId:function(n){return n.attr("aria-controls")||"ui-tabs-"+f()},_sanitizeSelector:function(n){return n?n.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,i=this.tablist.children(":has(a[href])");t.disabled=n.map(i.filter(".ui-state-disabled"),function(n){return i.index(n)}),this._processTabs(),t.active!==!1&&this.anchors.length?this.active.length&&!n.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=n()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=n()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var t=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist"),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return n("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=n(),this.anchors.each(function(i,u){var e,f,s,h=n(u).uniqueId().attr("id"),o=n(u).closest("li"),c=o.attr("aria-controls");r(u)?(e=u.hash,f=t.element.find(t._sanitizeSelector(e))):(s=t._tabId(o),e="#"+s,f=t.element.find(e),f.length||(f=t._createPanel(s),f.insertAfter(t.panels[i-1]||t.tablist)),f.attr("aria-live","polite")),f.length&&(t.panels=t.panels.add(f)),c&&o.data("ui-tabs-aria-controls",c),o.attr({"aria-controls":e.substring(1),"aria-labelledby":h}),f.attr("aria-labelledby",h)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.element.find("ol,ul").eq(0)},_createPanel:function(t){return n("<div>").attr("id",t).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(t){n.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1);for(var i=0,r;r=this.tabs[i];i++)t===!0||n.inArray(i,t)!==-1?n(r).addClass("ui-state-disabled").attr("aria-disabled","true"):n(r).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=t},_setupEvents:function(t){var i={click:function(n){n.preventDefault()}};t&&n.each(t.split(" "),function(n,t){i[t]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,r=this.element.parent();t==="fill"?(i=r.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=n(this),r=t.css("position");r!=="absolute"&&r!=="fixed"&&(i-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=n(this).outerHeight(!0)}),this.panels.each(function(){n(this).height(Math.max(0,i-n(this).innerHeight()+n(this).height()))}).css("overflow","auto")):t==="auto"&&(i=0,this.panels.each(function(){i=Math.max(i,n(this).height("").height())}).height(i))},_eventHandler:function(t){var u=this.options,r=this.active,c=n(t.currentTarget),i=c.closest("li"),f=i[0]===r[0],e=f&&u.collapsible,o=e?n():this._getPanelForTab(i),s=r.length?this._getPanelForTab(r):n(),h={oldTab:r,oldPanel:s,newTab:e?n():i,newPanel:o};(t.preventDefault(),i.hasClass("ui-state-disabled")||i.hasClass("ui-tabs-loading")||this.running||f&&!u.collapsible||this._trigger("beforeActivate",t,h)===!1)||(u.active=e?!1:this.tabs.index(i),this.active=f?n():i,this.xhr&&this.xhr.abort(),s.length||o.length||n.error("jQuery UI Tabs: Mismatching fragment identifier."),o.length&&this.load(this.tabs.index(i),t),this._toggle(t,h))},_toggle:function(t,i){function e(){u.running=!1,u._trigger("activate",t,i)}function o(){i.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),r.length&&u.options.show?u._show(r,u.options.show,e):(r.show(),e())}var u=this,r=i.newPanel,f=i.oldPanel;this.running=!0,f.length&&this.options.hide?this._hide(f,this.options.hide,function(){i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),o()}):(i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),f.hide(),o()),f.attr({"aria-expanded":"false","aria-hidden":"true"}),i.oldTab.attr("aria-selected","false"),r.length&&f.length?i.oldTab.attr("tabIndex",-1):r.length&&this.tabs.filter(function(){return n(this).attr("tabIndex")===0}).attr("tabIndex",-1),r.attr({"aria-expanded":"true","aria-hidden":"false"}),i.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(t){var r,i=this._findActive(t);i[0]!==this.active[0]&&(i.length||(i=this.active),r=i.find(".ui-tabs-anchor")[0],this._eventHandler({target:r,currentTarget:r,preventDefault:n.noop}))},_findActive:function(t){return t===!1?n():this.tabs.eq(t)},_getIndex:function(n){return typeof n=="string"&&(n=this.anchors.index(this.anchors.filter("[href$='"+n+"']"))),n},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){n.data(this,"ui-tabs-destroy")?n(this).remove():n(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var t=n(this),i=t.data("ui-tabs-aria-controls");i?t.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),this.options.heightStyle!=="content"&&this.panels.css("height","")},enable:function(i){var r=this.options.disabled;r!==!1&&(i===t?r=!1:(i=this._getIndex(i),r=n.isArray(r)?n.map(r,function(n){return n!==i?n:null}):n.map(this.tabs,function(n,t){return t!==i?t:null})),this._setupDisabled(r))},disable:function(i){var r=this.options.disabled;if(r!==!0){if(i===t)r=!0;else{if(i=this._getIndex(i),n.inArray(i,r)!==-1)return;r=n.isArray(r)?n.merge([i],r).sort():[i]}this._setupDisabled(r)}},load:function(t,i){t=this._getIndex(t);var f=this,u=this.tabs.eq(t),o=u.find(".ui-tabs-anchor"),e=this._getPanelForTab(u),s={tab:u,panel:e};r(o[0])||(this.xhr=n.ajax(this._ajaxSettings(o,i,s)),this.xhr&&this.xhr.statusText!=="canceled"&&(u.addClass("ui-tabs-loading"),e.attr("aria-busy","true"),this.xhr.success(function(n){setTimeout(function(){e.html(n),f._trigger("load",i,s)},1)}).complete(function(n,t){setTimeout(function(){t==="abort"&&f.panels.stop(!1,!0),u.removeClass("ui-tabs-loading"),e.removeAttr("aria-busy"),n===f.xhr&&delete f.xhr},1)})))},_ajaxSettings:function(t,i,r){var u=this;return{url:t.attr("href"),beforeSend:function(t,f){return u._trigger("beforeLoad",i,n.extend({jqXHR:t,ajaxSettings:f},r))}}},_getPanelForTab:function(t){var i=n(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}})}(jQuery),function(n){function i(t,i){var r=(t.attr("aria-describedby")||"").split(/\s+/);r.push(i),t.data("ui-tooltip-id",i).attr("aria-describedby",n.trim(r.join(" ")))}function r(t){var u=t.data("ui-tooltip-id"),i=(t.attr("aria-describedby")||"").split(/\s+/),r=n.inArray(u,i);r!==-1&&i.splice(r,1),t.removeData("ui-tooltip-id"),i=n.trim(i.join(" ")),i?t.attr("aria-describedby",i):t.removeAttr("aria-describedby")}var t=0;n.widget("ui.tooltip",{version:"1.10.3",options:{content:function(){var t=n(this).attr("title")||"";return n("<a>").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable()},_setOption:function(t,i){var r=this;if(t==="disabled"){this[i?"_disable":"_enable"](),this.options[t]=i;return}this._super(t,i),t==="content"&&n.each(this.tooltips,function(n,t){r._updateContent(t)})},_disable:function(){var t=this;n.each(this.tooltips,function(i,r){var u=n.Event("blur");u.target=u.currentTarget=r[0],t.close(u,!0)}),this.element.find(this.options.items).addBack().each(function(){var t=n(this);t.is("[title]")&&t.data("ui-tooltip-title",t.attr("title")).attr("title","")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var t=n(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))})},open:function(t){var r=this,i=n(t?t.target:this.element).closest(this.options.items);i.length&&!i.data("ui-tooltip-id")&&(i.attr("title")&&i.data("ui-tooltip-title",i.attr("title")),i.data("ui-tooltip-open",!0),t&&t.type==="mouseover"&&i.parents().each(function(){var t=n(this),i;t.data("ui-tooltip-open")&&(i=n.Event("blur"),i.target=i.currentTarget=this,r.close(i,!0)),t.attr("title")&&(t.uniqueId(),r.parents[this.id]={element:this,title:t.attr("title")},t.attr("title",""))}),this._updateContent(i,t))},_updateContent:function(n,t){var i,r=this.options.content,u=this,f=t?t.type:null;if(typeof r=="string")return this._open(t,n,r);i=r.call(n[0],function(i){n.data("ui-tooltip-open")&&u._delay(function(){t&&(t.type=f),this._open(t,n,i)})}),i&&this._open(t,n,i)},_open:function(t,r,u){function s(n){(o.of=n,f.is(":hidden"))||f.position(o)}var f,e,h,o=n.extend({},this.options.position);if(u){if(f=this._find(r),f.length){f.find(".ui-tooltip-content").html(u);return}r.is("[title]")&&(t&&t.type==="mouseover"?r.attr("title",""):r.removeAttr("title")),f=this._tooltip(r),i(r,f.attr("id")),f.find(".ui-tooltip-content").html(u),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:s}),s(t)):f.position(n.extend({of:r},this.options.position)),f.hide(),this._show(f,this.options.show),this.options.show&&this.options.show.delay&&(h=this.delayedShow=setInterval(function(){f.is(":visible")&&(s(o.of),clearInterval(h))},n.fx.interval)),this._trigger("open",t,{tooltip:f}),e={keyup:function(t){if(t.keyCode===n.ui.keyCode.ESCAPE){var i=n.Event(t);i.currentTarget=r[0],this.close(i,!0)}},remove:function(){this._removeTooltip(f)}},t&&t.type!=="mouseover"||(e.mouseleave="close"),t&&t.type!=="focusin"||(e.focusout="close"),this._on(!0,r,e)}},close:function(t){var f=this,i=n(t?t.currentTarget:this.element),u=this._find(i);this.closing||(clearInterval(this.delayedShow),i.data("ui-tooltip-title")&&i.attr("title",i.data("ui-tooltip-title")),r(i),u.stop(!0),this._hide(u,this.options.hide,function(){f._removeTooltip(n(this))}),i.removeData("ui-tooltip-open"),this._off(i,"mouseleave focusout keyup"),i[0]!==this.element[0]&&this._off(i,"remove"),this._off(this.document,"mousemove"),t&&t.type==="mouseleave"&&n.each(this.parents,function(t,i){n(i.element).attr("title",i.title),delete f.parents[t]}),this.closing=!0,this._trigger("close",t,{tooltip:u}),this.closing=!1)},_tooltip:function(i){var u="ui-tooltip-"+t++,r=n("<div>").attr({id:u,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));return n("<div>").addClass("ui-tooltip-content").appendTo(r),r.appendTo(this.document[0].body),this.tooltips[u]=i,r},_find:function(t){var i=t.data("ui-tooltip-id");return i?n("#"+i):n()},_removeTooltip:function(n){n.remove(),delete this.tooltips[n.attr("id")]},_destroy:function(){var t=this;n.each(this.tooltips,function(i,r){var u=n.Event("blur");u.target=u.currentTarget=r[0],t.close(u,!0),n("#"+i).remove(),r.data("ui-tooltip-title")&&(r.attr("title",r.data("ui-tooltip-title")),r.removeData("ui-tooltip-title"))})}})}(jQuery),function(n,t){var r=0,i=Array.prototype.slice,u=n.cleanData;n.cleanData=function(t){for(var i,r=0;null!=(i=t[r]);r++)try{n(i).triggerHandler("remove")}catch(f){}u(t)},n.widget=function(i,r,u){var h,e,f,s,c={},o=i.split(".")[0];i=i.split(".")[1],h=o+"-"+i,u||(u=r,r=n.Widget),n.expr[":"][h.toLowerCase()]=function(t){return!!n.data(t,h)},n[o]=n[o]||{},e=n[o][i],f=n[o][i]=function(n,i){return this._createWidget?(arguments.length&&this._createWidget(n,i),t):new f(n,i)},n.extend(f,e,{version:u.version,_proto:n.extend({},u),_childConstructors:[]}),s=new r,s.options=n.widget.extend({},s.options),n.each(u,function(i,u){return n.isFunction(u)?(c[i]=function(){var n=function(){return r.prototype[i].apply(this,arguments)},t=function(n){return r.prototype[i].apply(this,n)};return function(){var i,r=this._super,f=this._superApply;return this._super=n,this._superApply=t,i=u.apply(this,arguments),this._super=r,this._superApply=f,i}}(),t):(c[i]=u,t)}),f.prototype=n.widget.extend(s,{widgetEventPrefix:e?s.widgetEventPrefix:i},c,{constructor:f,namespace:o,widgetName:i,widgetFullName:h}),e?(n.each(e._childConstructors,function(t,i){var r=i.prototype;n.widget(r.namespace+"."+r.widgetName,f,i._proto)}),delete e._childConstructors):r._childConstructors.push(f),n.widget.bridge(i,f)},n.widget.extend=function(r){for(var u,f,o=i.call(arguments,1),e=0,s=o.length;s>e;e++)for(u in o[e])f=o[e][u],o[e].hasOwnProperty(u)&&f!==t&&(r[u]=n.isPlainObject(f)?n.isPlainObject(r[u])?n.widget.extend({},r[u],f):n.widget.extend({},f):f);return r},n.widget.bridge=function(r,u){var f=u.prototype.widgetFullName||r;n.fn[r]=function(e){var h="string"==typeof e,o=i.call(arguments,1),s=this;return e=!h&&o.length?n.widget.extend.apply(null,[e].concat(o)):e,h?this.each(function(){var i,u=n.data(this,f);return u?n.isFunction(u[e])&&"_"!==e.charAt(0)?(i=u[e].apply(u,o),i!==u&&i!==t?(s=i&&i.jquery?s.pushStack(i.get()):i,!1):t):n.error("no such method '"+e+"' for "+r+" widget instance"):n.error("cannot call methods on "+r+" prior to initialization; attempted to call method '"+e+"'")}):this.each(function(){var t=n.data(this,f);t?t.option(e||{})._init():n.data(this,f,new u(e,this))}),s}},n.Widget=function(){},n.Widget._childConstructors=[],n.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(t,i){i=n(i||this.defaultElement||this)[0],this.element=n(i),this.uuid=r++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=n.widget.extend({},this.options,this._getCreateOptions(),t),this.bindings=n(),this.hoverable=n(),this.focusable=n(),i!==this&&(n.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(n){n.target===i&&this.destroy()}}),this.document=n(i.style?i.ownerDocument:i.document||i),this.window=n(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:n.noop,_getCreateEventData:n.noop,_create:n.noop,_init:n.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(n.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:n.noop,widget:function(){return this.element},option:function(i,r){var u,f,e,o=i;if(0===arguments.length)return n.widget.extend({},this.options);if("string"==typeof i)if(o={},u=i.split("."),i=u.shift(),u.length){for(f=o[i]=n.widget.extend({},this.options[i]),e=0;u.length-1>e;e++)f[u[e]]=f[u[e]]||{},f=f[u[e]];if(i=u.pop(),r===t)return f[i]===t?null:f[i];f[i]=r}else{if(r===t)return this.options[i]===t?null:this.options[i];o[i]=r}return this._setOptions(o),this},_setOptions:function(n){var t;for(t in n)this._setOption(t,n[t]);return this},_setOption:function(n,t){return this.options[n]=t,"disabled"===n&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!t).attr("aria-disabled",t),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(i,r,u){var e,f=this;"boolean"!=typeof i&&(u=r,r=i,i=!1),u?(r=e=n(r),this.bindings=this.bindings.add(r)):(u=r,r=this.element,e=this.widget()),n.each(u,function(u,o){function s(){return i||f.options.disabled!==!0&&!n(this).hasClass("ui-state-disabled")?("string"==typeof o?f[o]:o).apply(f,arguments):t}"string"!=typeof o&&(s.guid=o.guid=o.guid||s.guid||n.guid++);var h=u.match(/^(\w+)\s*(.*)$/),c=h[1]+f.eventNamespace,l=h[2];l?e.delegate(l,c,s):r.bind(c,s)})},_off:function(n,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,n.unbind(t).undelegate(t)},_delay:function(n,t){function r(){return("string"==typeof n?i[n]:n).apply(i,arguments)}var i=this;return setTimeout(r,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){n(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){n(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){n(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){n(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,i,r){var u,f,e=this.options[t];if(r=r||{},i=n.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],f=i.originalEvent)for(u in f)u in i||(i[u]=f[u]);return this.element.trigger(i,r),!(n.isFunction(e)&&e.apply(this.element[0],[i].concat(r))===!1||i.isDefaultPrevented())}},n.each({show:"fadeIn",hide:"fadeOut"},function(t,i){n.Widget.prototype["_"+t]=function(r,u,f){"string"==typeof u&&(u={effect:u});var o,e=u?u===!0||"number"==typeof u?i:u.effect||i:t;u=u||{},"number"==typeof u&&(u={duration:u}),o=!n.isEmptyObject(u),u.complete=f,u.delay&&r.delay(u.delay),o&&n.effects&&n.effects.effect[e]?r[t](u):e!==t&&r[e]?r[e](u.duration,u.easing,f):r.queue(function(i){n(this)[t](),f&&f.call(r[0]),i()})}})}(jQuery),function(n){function u(){this.debug=!0,this._curInst=null,this._disabledInputs=[],this._timepickerShowing=!1,this._inDialog=!1,this._dialogClass="ui-timepicker-dialog",this._mainDivId="ui-timepicker-div",this._inlineClass="ui-timepicker-inline",this._currentClass="ui-timepicker-current",this._dayOverClass="ui-timepicker-days-cell-over",this.regional=[],this.regional[""]={hourText:"Hour",minuteText:"Minute",amPmText:["AM","PM"],closeButtonText:"Done",nowButtonText:"Now",deselectButtonText:"Deselect"},this._defaults={showOn:"focus",button:null,showAnim:"fadeIn",showOptions:{},appendText:"",beforeShow:null,onSelect:null,onClose:null,timeSeparator:":",periodSeparator:" ",showPeriod:!1,showPeriodLabels:!0,showLeadingZero:!0,showMinutesLeadingZero:!0,altField:"",defaultTime:"now",myPosition:"left top",atPosition:"left bottom",onHourShow:null,onMinuteShow:null,hours:{starts:0,ends:23},minutes:{starts:0,ends:55,interval:5,manual:[]},rows:4,showHours:!0,showMinutes:!0,optionalMinutes:!1,showCloseButton:!1,showNowButton:!1,showDeselectButton:!1,maxTime:{hour:null,minute:null},minTime:{hour:null,minute:null}},n.extend(this._defaults,this.regional[""]),this.tpDiv=n('<div id="'+this._mainDivId+'" class="ui-timepicker ui-widget ui-helper-clearfix ui-corner-all " style="display: none"><\/div>')}function r(t,i){n.extend(t,i);for(var r in i)(i[r]==null||i[r]==undefined)&&(t[r]=i[r]);return t}n.extend(n.ui,{timepicker:{version:"0.3.3"}});var t="timepicker",f=+new Date;n.extend(u.prototype,{markerClassName:"hasTimepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetTimepicker:function(){return this.tpDiv},setDefaults:function(n){return r(this._defaults,n||{}),this},_attachTimepicker:function(target,settings){var inlineSettings=null,attrName,attrValue,nodeName,inline,inst;for(attrName in this._defaults)if(attrValue=target.getAttribute("time:"+attrName),attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}nodeName=target.nodeName.toLowerCase(),inline=nodeName=="div"||nodeName=="span",target.id||(this.uuid+=1,target.id="tp"+this.uuid),inst=this._newInst(n(target),inline),inst.settings=n.extend({},settings||{},inlineSettings||{}),nodeName=="input"?(this._connectTimepicker(target,inst),this._setTimeFromField(inst)):inline&&this._inlineTimepicker(target,inst)},_newInst:function(t,i){var r=t[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1");return{id:r,input:t,inline:i,tpDiv:i?n('<div class="'+this._inlineClass+' ui-timepicker ui-widget  ui-helper-clearfix"><\/div>'):this.tpDiv}},_connectTimepicker:function(i,r){var u=n(i);(r.append=n([]),r.trigger=n([]),u.hasClass(this.markerClassName))||(this._attachments(u,r),u.addClass(this.markerClassName).keydown(this._doKeyDown).keyup(this._doKeyUp).bind("setData.timepicker",function(n,t,i){r.settings[t]=i}).bind("getData.timepicker",function(n,t){return this._get(r,t)}),n.data(i,t,r))},_doKeyDown:function(t){var r=n.timepicker._getInst(t.target),i=!0;if(r._keyEvent=!0,n.timepicker._timepickerShowing)switch(t.keyCode){case 9:n.timepicker._hideTimepicker(),i=!1;break;case 13:return n.timepicker._updateSelectedValue(r),n.timepicker._hideTimepicker(),!1;case 27:n.timepicker._hideTimepicker();break;default:i=!1}else t.keyCode==36&&t.ctrlKey?n.timepicker._showTimepicker(this):i=!1;i&&(t.preventDefault(),t.stopPropagation())},_doKeyUp:function(t){var i=n.timepicker._getInst(t.target);n.timepicker._setTimeFromField(i),n.timepicker._updateTimepicker(i)},_attachments:function(t,i){var f=this._get(i,"appendText"),e=this._get(i,"isRTL"),r,u;i.append&&i.append.remove(),f&&(i.append=n('<span class="'+this._appendClass+'">'+f+"<\/span>"),t[e?"before":"after"](i.append)),t.unbind("focus.timepicker",this._showTimepicker),t.unbind("click.timepicker",this._adjustZIndex),i.trigger&&i.trigger.remove(),r=this._get(i,"showOn"),(r=="focus"||r=="both")&&(t.bind("focus.timepicker",this._showTimepicker),t.bind("click.timepicker",this._adjustZIndex)),(r=="button"||r=="both")&&(u=this._get(i,"button"),u==null&&(u=n('<button class="ui-timepicker-trigger" type="button">...<\/button>'),t.after(u)),n(u).bind("click.timepicker",function(){return n.timepicker._timepickerShowing&&n.timepicker._lastInput==t[0]?n.timepicker._hideTimepicker():i.input.is(":disabled")||n.timepicker._showTimepicker(t[0]),!1}))},_inlineTimepicker:function(i,r){var u=n(i);u.hasClass(this.markerClassName)||(u.addClass(this.markerClassName).append(r.tpDiv).bind("setData.timepicker",function(n,t,i){r.settings[t]=i}).bind("getData.timepicker",function(n,t){return this._get(r,t)}),n.data(i,t,r),this._setTimeFromField(r),this._updateTimepicker(r),r.tpDiv.show())},_adjustZIndex:function(t){t=t.target||t;var i=n.timepicker._getInst(t);i.tpDiv.css("zIndex",n.timepicker._getZIndex(t)+1)},_showTimepicker:function(t){var i,o,f,u;if((t=t.target||t,t.nodeName.toLowerCase()!="input"&&(t=n("input",t.parentNode)[0]),!n.timepicker._isDisabledTimepicker(t)&&n.timepicker._lastInput!=t)&&(n.timepicker._hideTimepicker(),i=n.timepicker._getInst(t),n.timepicker._curInst&&n.timepicker._curInst!=i&&n.timepicker._curInst.tpDiv.stop(!0,!0),o=n.timepicker._get(i,"beforeShow"),r(i.settings,o?o.apply(t,[t,i]):{}),i.lastVal=null,n.timepicker._lastInput=t,n.timepicker._setTimeFromField(i),n.timepicker._inDialog&&(t.value=""),n.timepicker._pos||(n.timepicker._pos=n.timepicker._findPos(t),n.timepicker._pos[1]+=t.offsetHeight),f=!1,n(t).parents().each(function(){return f|=n(this).css("position")=="fixed",!f}),u={left:n.timepicker._pos[0],top:n.timepicker._pos[1]},n.timepicker._pos=null,i.tpDiv.css({position:"absolute",display:"block",top:"-1000px"}),n.timepicker._updateTimepicker(i),i.inline||typeof n.ui.position!="object"||(i.tpDiv.position({of:i.input,my:n.timepicker._get(i,"myPosition"),at:n.timepicker._get(i,"atPosition"),collision:"flip"}),u=i.tpDiv.offset(),n.timepicker._pos=[u.top,u.left]),i._hoursClicked=!1,i._minutesClicked=!1,u=n.timepicker._checkOffset(i,u,f),i.tpDiv.css({position:n.timepicker._inDialog&&n.blockUI?"static":f?"fixed":"absolute",display:"none",left:u.left+"px",top:u.top+"px"}),!i.inline)){var e=n.timepicker._get(i,"showAnim"),s=n.timepicker._get(i,"duration"),h=function(){n.timepicker._timepickerShowing=!0;var t=n.timepicker._getBorders(i.tpDiv);i.tpDiv.find("iframe.ui-timepicker-cover").css({left:-t[0],top:-t[1],width:i.tpDiv.outerWidth(),height:i.tpDiv.outerHeight()})};n.timepicker._adjustZIndex(t),n.effects&&n.effects[e]?i.tpDiv.show(e,n.timepicker._get(i,"showOptions"),s,h):i.tpDiv.show(e?s:null,h),e&&s||h(),i.input.is(":visible")&&!i.input.is(":disabled")&&i.input.focus(),n.timepicker._curInst=i}},_getZIndex:function(t){for(var i=n(t),f=0,u,r;i.length&&i[0]!==document;)u=i.css("position"),(u==="absolute"||u==="relative"||u==="fixed")&&(r=parseInt(i.css("zIndex"),10),isNaN(r)||r===0||r>f&&(f=r)),i=i.parent();return f},_refreshTimepicker:function(n){var t=this._getInst(n);t&&this._updateTimepicker(t)},_updateTimepicker:function(n){n.tpDiv.empty().append(this._generateHTML(n)),this._rebindDialogEvents(n)},_rebindDialogEvents:function(t){var i=n.timepicker._getBorders(t.tpDiv),r=this;t.tpDiv.find("iframe.ui-timepicker-cover").css({left:-i[0],top:-i[1],width:t.tpDiv.outerWidth(),height:t.tpDiv.outerHeight()}).end().find(".ui-timepicker-minute-cell").unbind().bind("click",{fromDoubleClick:!1},n.proxy(n.timepicker.selectMinutes,this)).bind("dblclick",{fromDoubleClick:!0},n.proxy(n.timepicker.selectMinutes,this)).end().find(".ui-timepicker-hour-cell").unbind().bind("click",{fromDoubleClick:!1},n.proxy(n.timepicker.selectHours,this)).bind("dblclick",{fromDoubleClick:!0},n.proxy(n.timepicker.selectHours,this)).end().find(".ui-timepicker td a").unbind().bind("mouseout",function(){n(this).removeClass("ui-state-hover"),this.className.indexOf("ui-timepicker-prev")!=-1&&n(this).removeClass("ui-timepicker-prev-hover"),this.className.indexOf("ui-timepicker-next")!=-1&&n(this).removeClass("ui-timepicker-next-hover")}).bind("mouseover",function(){r._isDisabledTimepicker(t.inline?t.tpDiv.parent()[0]:t.input[0])||(n(this).parents(".ui-timepicker-calendar").find("a").removeClass("ui-state-hover"),n(this).addClass("ui-state-hover"),this.className.indexOf("ui-timepicker-prev")!=-1&&n(this).addClass("ui-timepicker-prev-hover"),this.className.indexOf("ui-timepicker-next")!=-1&&n(this).addClass("ui-timepicker-next-hover"))}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end().find(".ui-timepicker-now").bind("click",function(t){n.timepicker.selectNow(t)}).end().find(".ui-timepicker-deselect").bind("click",function(t){n.timepicker.deselectTime(t)}).end().find(".ui-timepicker-close").bind("click",function(){n.timepicker._hideTimepicker()}).end()},_generateHTML:function(n){for(var ct,e,y,t,lt,at="",w=this._get(n,"showPeriod")==!0,a=this._get(n,"showPeriodLabels")==!0,b=this._get(n,"showLeadingZero")==!0,rt=this._get(n,"showHours")==!0,ut=this._get(n,"showMinutes")==!0,k=this._get(n,"amPmText"),h=this._get(n,"rows"),i=0,r=0,o=0,s=0,d=0,p=0,u=Array(),g=this._get(n,"hours"),c=null,f=0,ft=this._get(n,"hourText"),nt=this._get(n,"showCloseButton"),et=this._get(n,"closeButtonText"),tt=this._get(n,"showNowButton"),ot=this._get(n,"nowButtonText"),it=this._get(n,"showDeselectButton"),st=this._get(n,"deselectButtonText"),ht=nt||tt||it,l,v=g.starts;v<=g.ends;v++)u.push(v);if(c=Math.ceil(u.length/h),a){for(f=0;f<u.length;f++)u[f]<12?o++:s++;f=0,i=Math.floor(o/u.length*h),r=Math.floor(s/u.length*h),h!=i+r&&(o&&(!s||!i||r&&o/i>=s/r)?i++:r++),d=Math.min(i,1),p=i+1,c=i==0?Math.ceil(s/r):r==0?Math.ceil(o/i):Math.ceil(Math.max(o/i,s/r))}if(t='<table class="ui-timepicker-table ui-widget-content ui-corner-all"><tr>',rt){for(t+='<td class="ui-timepicker-hours"><div class="ui-timepicker-title ui-widget-header ui-helper-clearfix ui-corner-all">'+ft+'<\/div><table class="ui-timepicker">',e=1;e<=h;e++){for(t+="<tr>",e==d&&a&&(t+='<th rowspan="'+i.toString()+'" class="periods" scope="row">'+k[0]+"<\/th>"),e==p&&a&&(t+='<th rowspan="'+r.toString()+'" class="periods" scope="row">'+k[1]+"<\/th>"),y=1;y<=c;y++)a&&e<p&&u[f]>=12?t+=this._generateHTMLHourCell(n,undefined,w,b):(t+=this._generateHTMLHourCell(n,u[f],w,b),f++);t+="<\/tr>"}t+="<\/table><\/td>"}return ut&&(t+='<td class="ui-timepicker-minutes">',t+=this._generateHTMLMinutes(n),t+="<\/td>"),t+="<\/tr>",ht&&(l='<tr><td colspan="3"><div class="ui-timepicker-buttonpane ui-widget-content">',tt&&(l+='<button type="button" class="ui-timepicker-now ui-state-default ui-corner-all"  data-timepicker-instance-id="#'+n.id.replace(/\\\\/g,"\\")+'" >'+ot+"<\/button>"),it&&(l+='<button type="button" class="ui-timepicker-deselect ui-state-default ui-corner-all"  data-timepicker-instance-id="#'+n.id.replace(/\\\\/g,"\\")+'" >'+st+"<\/button>"),nt&&(l+='<button type="button" class="ui-timepicker-close ui-state-default ui-corner-all"  data-timepicker-instance-id="#'+n.id.replace(/\\\\/g,"\\")+'" >'+et+"<\/button>"),t+=l+"<\/div><\/td><\/tr>"),t+="<\/table>"},_updateMinuteDisplay:function(n){var t=this._generateHTMLMinutes(n);n.tpDiv.find("td.ui-timepicker-minutes").html(t),this._rebindDialogEvents(n)},_generateHTMLMinutes:function(t){var h,o="",a=this._get(t,"rows"),f=Array(),u=this._get(t,"minutes"),v=null,e=0,y=this._get(t,"showMinutesLeadingZero")==!0,c=this._get(t,"onMinuteShow"),p=this._get(t,"minuteText"),s,r,l;for(u.starts||(u.starts=0),u.ends||(u.ends=59),u.manual||(u.manual=[]),r=u.starts;r<=u.ends;r+=u.interval)f.push(r);for(i=0;i<u.manual.length;i++)(s=u.manual[i],typeof s!="number"||s<0||s>59||n.inArray(s,f)>=0)||f.push(s);if(f.sort(function(n,t){return n-t}),v=Math.round(f.length/a+.49),c&&c.apply(t.input?t.input[0]:null,[t.hours,t.minutes])==!1)for(e=0;e<f.length;e+=1)if(r=f[e],c.apply(t.input?t.input[0]:null,[t.hours,r])){t.minutes=r;break}for(o+='<div class="ui-timepicker-title ui-widget-header ui-helper-clearfix ui-corner-all">'+p+'<\/div><table class="ui-timepicker">',e=0,h=1;h<=a;h++){for(o+="<tr>";e<h*v;)r=f[e],l="",r!==undefined&&(l=r<10&&y?"0"+r.toString():r.toString()),o+=this._generateHTMLMinuteCell(t,r,l),e++;o+="<\/tr>"}return o+="<\/table>"},_generateHTMLHourCell:function(n,t,i,r){var u=t;t>12&&i&&(u=t-12),u==0&&i&&(u=12),u<10&&r&&(u="0"+u);var f="",e=!0,o=this._get(n,"onHourShow"),s=this._get(n,"maxTime"),h=this._get(n,"minTime");return t==undefined?f='<td><span class="ui-state-default ui-state-disabled">&nbsp;<\/span><\/td>':(o&&(e=o.apply(n.input?n.input[0]:null,[t])),e&&(!isNaN(parseInt(s.hour))&&t>s.hour&&(e=!1),!isNaN(parseInt(h.hour))&&t<h.hour&&(e=!1)),f=e?'<td class="ui-timepicker-hour-cell" data-timepicker-instance-id="#'+n.id.replace(/\\\\/g,"\\")+'" data-hour="'+t.toString()+'"><a class="ui-state-default '+(t==n.hours?"ui-state-active":"")+'">'+u.toString()+"<\/a><\/td>":'<td><span class="ui-state-default ui-state-disabled '+(t==n.hours?" ui-state-active ":" ")+'">'+u.toString()+"<\/span><\/td>")},_generateHTMLMinuteCell:function(n,t,i){var r="",u=!0,o=n.hours,s=this._get(n,"onMinuteShow"),f=this._get(n,"maxTime"),e=this._get(n,"minTime");return(s&&(u=s.apply(n.input?n.input[0]:null,[n.hours,t])),t==undefined)?r='<td><span class="ui-state-default ui-state-disabled">&nbsp;<\/span><\/td>':(u&&o!==null&&(!isNaN(parseInt(f.hour))&&!isNaN(parseInt(f.minute))&&o>=f.hour&&t>f.minute&&(u=!1),!isNaN(parseInt(e.hour))&&!isNaN(parseInt(e.minute))&&o<=e.hour&&t<e.minute&&(u=!1)),r=u?'<td class="ui-timepicker-minute-cell" data-timepicker-instance-id="#'+n.id.replace(/\\\\/g,"\\")+'" data-minute="'+t.toString()+'" ><a class="ui-state-default '+(t==n.minutes?"ui-state-active":"")+'" >'+i+"<\/a><\/td>":'<td><span class="ui-state-default ui-state-disabled" >'+i+"<\/span><\/td>")},_destroyTimepicker:function(i){var u=n(i),f=n.data(i,t),r;u.hasClass(this.markerClassName)&&(r=i.nodeName.toLowerCase(),n.removeData(i,t),r=="input"?(f.append.remove(),f.trigger.remove(),u.removeClass(this.markerClassName).unbind("focus.timepicker",this._showTimepicker).unbind("click.timepicker",this._adjustZIndex)):(r=="div"||r=="span")&&u.removeClass(this.markerClassName).empty())},_enableTimepicker:function(i){var u=n(i),s=u.attr("id"),e=n.data(i,t),r,o,f;u.hasClass(this.markerClassName)&&(r=i.nodeName.toLowerCase(),r=="input"?(i.disabled=!1,o=this._get(e,"button"),n(o).removeClass("ui-state-disabled").disabled=!1,e.trigger.filter("button").each(function(){this.disabled=!1}).end()):(r=="div"||r=="span")&&(f=u.children("."+this._inlineClass),f.children().removeClass("ui-state-disabled"),f.find("button").each(function(){this.disabled=!1})),this._disabledInputs=n.map(this._disabledInputs,function(n){return n==s?null:n}))},_disableTimepicker:function(i){var u=n(i),e=n.data(i,t),r,o,f;u.hasClass(this.markerClassName)&&(r=i.nodeName.toLowerCase(),r=="input"?(o=this._get(e,"button"),n(o).addClass("ui-state-disabled").disabled=!0,i.disabled=!0,e.trigger.filter("button").each(function(){this.disabled=!0}).end()):(r=="div"||r=="span")&&(f=u.children("."+this._inlineClass),f.children().addClass("ui-state-disabled"),f.find("button").each(function(){this.disabled=!0})),this._disabledInputs=n.map(this._disabledInputs,function(n){return n==i?null:n}),this._disabledInputs[this._disabledInputs.length]=u.attr("id"))},_isDisabledTimepicker:function(n){if(!n)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]==n)return!0;return!1},_checkOffset:function(t,i,r){var u=t.tpDiv.outerWidth(),f=t.tpDiv.outerHeight(),h=t.input?t.input.outerWidth():0,o=t.input?t.input.outerHeight():0,e=document.documentElement.clientWidth+n(document).scrollLeft(),s=document.documentElement.clientHeight+n(document).scrollTop();return i.left-=this._get(t,"isRTL")?u-h:0,i.left-=r&&i.left==t.input.offset().left?n(document).scrollLeft():0,i.top-=r&&i.top==t.input.offset().top+o?n(document).scrollTop():0,i.left-=Math.min(i.left,i.left+u>e&&e>u?Math.abs(i.left+u-e):0),i.top-=Math.min(i.top,i.top+f>s&&s>f?Math.abs(f+o):0),i},_findPos:function(t){for(var r=this._getInst(t),u=this._get(r,"isRTL"),i;t&&(t.type=="hidden"||t.nodeType!=1);)t=t[u?"previousSibling":"nextSibling"];return i=n(t).offset(),[i.left,i.top]},_getBorders:function(n){var t=function(n){return{thin:1,medium:2,thick:3}[n]||n};return[parseFloat(t(n.css("border-left-width"))),parseFloat(t(n.css("border-top-width")))]},_checkExternalClick:function(t){if(n.timepicker._curInst){var i=n(t.target);i[0].id==n.timepicker._mainDivId||i.parents("#"+n.timepicker._mainDivId).length!=0||i.hasClass(n.timepicker.markerClassName)||i.hasClass(n.timepicker._triggerClass)||!n.timepicker._timepickerShowing||n.timepicker._inDialog&&n.blockUI||n.timepicker._hideTimepicker()}},_hideTimepicker:function(i){var r=this._curInst,e;if(r&&(!i||r==n.data(i,t))&&this._timepickerShowing){var u=this._get(r,"showAnim"),o=this._get(r,"duration"),f=function(){n.timepicker._tidyDialog(r),this._curInst=null};n.effects&&n.effects[u]?r.tpDiv.hide(u,n.timepicker._get(r,"showOptions"),o,f):r.tpDiv[u=="slideDown"?"slideUp":u=="fadeIn"?"fadeOut":"hide"](u?o:null,f),u||f(),this._timepickerShowing=!1,this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),n.blockUI&&(n.unblockUI(),n("body").append(this.tpDiv))),this._inDialog=!1,e=this._get(r,"onClose"),e&&e.apply(r.input?r.input[0]:null,[r.input?r.input.val():"",r])}},_tidyDialog:function(n){n.tpDiv.removeClass(this._dialogClass).unbind(".ui-timepicker")},_getInst:function(i){try{return n.data(i,t)}catch(r){throw"Missing instance data for this timepicker";}},_get:function(n,t){return n.settings[t]!==undefined?n.settings[t]:this._defaults[t]},_setTimeFromField:function(t){var r,i,f,u;t.input.val()!=t.lastVal&&(r=this._get(t,"defaultTime"),i=r=="now"?this._getCurrentTimeRounded(t):r,t.inline==!1&&t.input.val()!=""&&(i=t.input.val()),i instanceof Date?(t.hours=i.getHours(),t.minutes=i.getMinutes()):(f=t.lastVal=i,i==""?(t.hours=-1,t.minutes=-1):(u=this.parseTime(t,f),t.hours=u.hours,t.minutes=u.minutes)),n.timepicker._updateTimepicker(t))},_optionTimepicker:function(t,i,u){var f=this._getInst(t),e;if(arguments.length==2&&typeof i=="string")return i=="defaults"?n.extend({},n.timepicker._defaults):f?i=="all"?n.extend({},f.settings):this._get(f,i):null;e=i||{},typeof i=="string"&&(e={},e[i]=u),f&&(r(f.settings,e),this._curInst==f&&(this._hideTimepicker(),this._updateTimepicker(f)),f.inline&&this._updateTimepicker(f))},_setTimeTimepicker:function(n,t){var i=this._getInst(n);i&&(this._setTime(i,t),this._updateTimepicker(i),this._updateAlternate(i,t))},_setTime:function(n,t,i){var r=n.hours,u=n.minutes,t;t instanceof Date?(n.hours=t.getHours(),n.minutes=t.getMinutes()):(t=this.parseTime(n,t),n.hours=t.hours,n.minutes=t.minutes),r==n.hours&&u==n.minutes||i||n.input.trigger("change"),this._updateTimepicker(n),this._updateSelectedValue(n)},_getCurrentTimeRounded:function(n){var t=new Date,r=t.getMinutes(),i=this._get(n,"minutes"),u=Math.round(r/i.interval)*i.interval;return t.setMinutes(u),t},parseTime:function(n,t){var i={},f;if(i.hours=-1,i.minutes=-1,!t)return"";var h=this._get(n,"timeSeparator"),e=this._get(n,"amPmText"),r=this._get(n,"showHours"),o=this._get(n,"showMinutes"),c=this._get(n,"optionalMinutes"),s=this._get(n,"showPeriod")==!0,u=t.indexOf(h);return u!=-1?(i.hours=parseInt(t.substr(0,u),10),i.minutes=parseInt(t.substr(u+1),10)):r&&(!o||c)?i.hours=parseInt(t,10):!r&&o&&(i.minutes=parseInt(t,10)),r&&(f=t.toUpperCase(),i.hours<12&&s&&f.indexOf(e[1].toUpperCase())!=-1&&(i.hours+=12),i.hours==12&&s&&f.indexOf(e[0].toUpperCase())!=-1&&(i.hours=0)),i},selectNow:function(t){var u=n(t.target).attr("data-timepicker-instance-id"),f=n(u),i=this._getInst(f[0]),r=new Date;i.hours=r.getHours(),i.minutes=r.getMinutes(),this._updateSelectedValue(i),this._updateTimepicker(i),this._hideTimepicker()},deselectTime:function(t){var r=n(t.target).attr("data-timepicker-instance-id"),u=n(r),i=this._getInst(u[0]);i.hours=-1,i.minutes=-1,this._updateSelectedValue(i),this._hideTimepicker()},selectHours:function(t){var r=n(t.currentTarget),f=r.attr("data-timepicker-instance-id"),e=parseInt(r.attr("data-hour")),o=t.data.fromDoubleClick,u=n(f),i=this._getInst(u[0]),s=this._get(i,"showMinutes")==!0;if(n.timepicker._isDisabledTimepicker(u.attr("id")))return!1;r.parents(".ui-timepicker-hours:first").find("a").removeClass("ui-state-active"),r.children("a").addClass("ui-state-active"),i.hours=e;var h=this._get(i,"onMinuteShow"),c=this._get(i,"maxTime"),l=this._get(i,"minTime");return(h||c.minute||l.minute)&&this._updateMinuteDisplay(i),this._updateSelectedValue(i),i._hoursClicked=!0,(i._minutesClicked||o||s==!1)&&n.timepicker._hideTimepicker(),!1},selectMinutes:function(t){var r=n(t.currentTarget),f=r.attr("data-timepicker-instance-id"),e=parseInt(r.attr("data-minute")),o=t.data.fromDoubleClick,u=n(f),i=this._getInst(u[0]),s=this._get(i,"showHours")==!0;return n.timepicker._isDisabledTimepicker(u.attr("id"))?!1:(r.parents(".ui-timepicker-minutes:first").find("a").removeClass("ui-state-active"),r.children("a").addClass("ui-state-active"),i.minutes=e,this._updateSelectedValue(i),i._minutesClicked=!0,i._hoursClicked||o||s==!1)?(n.timepicker._hideTimepicker(),!1):!1},_updateSelectedValue:function(n){var t=this._getParsedTime(n),i;return n.input&&(n.input.val(t),n.input.trigger("change")),i=this._get(n,"onSelect"),i&&i.apply(n.input?n.input[0]:null,[t,n]),this._updateAlternate(n,t),t},_getParsedTime:function(n){var e,i;if(n.hours==-1&&n.minutes==-1)return"";(n.hours<n.hours.starts||n.hours>n.hours.ends)&&(n.hours=0),(n.minutes<n.minutes.starts||n.minutes>n.minutes.ends)&&(n.minutes=0);var u="",a=this._get(n,"showPeriod")==!0,v=this._get(n,"showLeadingZero")==!0,o=this._get(n,"showHours")==!0,s=this._get(n,"showMinutes")==!0,h=this._get(n,"optionalMinutes")==!0,c=this._get(n,"amPmText"),l=n.hours?n.hours:0,f=n.minutes?n.minutes:0,t=l?l:0,r="";return t==-1&&(t=0),f==-1&&(f=0),a&&(n.hours==0&&(t=12),n.hours<12?u=c[0]:(u=c[1],t>12&&(t-=12))),e=t.toString(),v&&t<10&&(e="0"+e),i=f.toString(),f<10&&(i="0"+i),o&&(r+=e),o&&s&&(!h||i!=0)&&(r+=this._get(n,"timeSeparator")),s&&(!h||i!=0)&&(r+=i),o&&u.length>0&&(r+=this._get(n,"periodSeparator")+u),r},_updateAlternate:function(t,i){var r=this._get(t,"altField");r&&n(r).each(function(t,r){n(r).val(i)})},_getTimeAsDateTimepicker:function(n){var t=this._getInst(n);return t.hours==-1&&t.minutes==-1?"":((t.hours<t.hours.starts||t.hours>t.hours.ends)&&(t.hours=0),(t.minutes<t.minutes.starts||t.minutes>t.minutes.ends)&&(t.minutes=0),new Date(0,0,0,t.hours,t.minutes,0))},_getTimeTimepicker:function(n){var t=this._getInst(n);return this._getParsedTime(t)},_getHourTimepicker:function(n){var t=this._getInst(n);return t==undefined?-1:t.hours},_getMinuteTimepicker:function(n){var t=this._getInst(n);return t==undefined?-1:t.minutes}}),n.fn.timepicker=function(t){n.timepicker.initialized||(n(document).mousedown(n.timepicker._checkExternalClick),n.timepicker.initialized=!0),n("#"+n.timepicker._mainDivId).length===0&&n("body").append(n.timepicker.tpDiv);var i=Array.prototype.slice.call(arguments,1);return typeof t=="string"&&(t=="getTime"||t=="getTimeAsDate"||t=="getHour"||t=="getMinute")?n.timepicker["_"+t+"Timepicker"].apply(n.timepicker,[this[0]].concat(i)):t=="option"&&arguments.length==2&&typeof arguments[1]=="string"?n.timepicker["_"+t+"Timepicker"].apply(n.timepicker,[this[0]].concat(i)):this.each(function(){typeof t=="string"?n.timepicker["_"+t+"Timepicker"].apply(n.timepicker,[this].concat(i)):n.timepicker._attachTimepicker(this,t)})},n.timepicker=new u,n.timepicker.initialized=!1,n.timepicker.uuid=+new Date,n.timepicker.version="0.3.3",window["TP_jQuery_"+f]=n}(jQuery),function(n){function i(n,t){for(var i=window,r=(n||"").split(".");i&&r.length;)i=i[r.shift()];return typeof i=="function"?i:(t.push(n),Function.constructor.apply(null,t))}function r(n){return n==="GET"||n==="POST"}function e(n,t){r(t)||n.setRequestHeader("X-HTTP-Method-Override",t)}function o(t,i,r){var u;r.indexOf("application/x-javascript")===-1&&(u=(t.getAttribute("data-ajax-mode")||"").toUpperCase(),n(t.getAttribute("data-ajax-update")).each(function(t,r){var f;switch(u){case"BEFORE":f=r.firstChild,n("<div />").html(i).contents().each(function(){r.insertBefore(this,f)});break;case"AFTER":n("<div />").html(i).contents().each(function(){r.appendChild(this)});break;default:n(r).html(i)}}))}function u(t,u){var s,h,f,c;(s=t.getAttribute("data-ajax-confirm"),!s||window.confirm(s))&&(h=n(t.getAttribute("data-ajax-loading")),c=t.getAttribute("data-ajax-loading-duration")||0,n.extend(u,{type:t.getAttribute("data-ajax-method")||undefined,url:t.getAttribute("data-ajax-url")||undefined,beforeSend:function(n){var r;return e(n,f),r=i(t.getAttribute("data-ajax-begin"),["xhr"]).apply(this,arguments),r!==!1&&h.show(c),r},complete:function(){h.hide(c),i(t.getAttribute("data-ajax-complete"),["xhr","status"]).apply(this,arguments)},success:function(n,r,u){o(t,n,u.getResponseHeader("Content-Type")||"text/html"),i(t.getAttribute("data-ajax-success"),["data","status","xhr"]).apply(this,arguments)},error:i(t.getAttribute("data-ajax-failure"),["xhr","status","error"])}),u.data.push({name:"X-Requested-With",value:"XMLHttpRequest"}),f=u.type.toUpperCase(),r(f)||(u.type="POST",u.data.push({name:"X-HTTP-Method-Override",value:f})),n.ajax(u))}function s(t){var i=n(t).data(f);return!i||!i.validate||i.validate()}var t="unobtrusiveAjaxClick",f="unobtrusiveValidation";n("a[data-ajax=true]").on("click",function(n){n.preventDefault(),u(this,{url:this.href,type:"GET",data:[]})});n("form[data-ajax=true] input[type=image]").on("click",function(i){var r=i.target.name,u=n(i.target),f=u.parents("form")[0],e=u.offset();n(f).data(t,[{name:r+".x",value:Math.round(i.pageX-e.left)},{name:r+".y",value:Math.round(i.pageY-e.top)}]),setTimeout(function(){n(f).removeData(t)},0)});n("form[data-ajax=true] :submit").on("click",function(i){var r=i.target.name,u=n(i.target).parents("form")[0];n(u).data(t,r?[{name:r,value:i.target.value}]:[]),setTimeout(function(){n(u).removeData(t)},0)});n("form[data-ajax=true]").on("submit",function(i){var r=n(this).data(t)||[];(i.preventDefault(),s(this))&&u(this,{url:this.action,type:this.method||"GET",data:r.concat(n(this).serializeArray())})})}(jQuery),function(n){n.extend(n.fn,{validate:function(t){if(!this.length){t&&t.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing");return}var i=n.data(this[0],"validator");return i?i:(this.attr("novalidate","novalidate"),i=new n.validator(t,this[0]),n.data(this[0],"validator",i),i.settings.onsubmit&&(this.validateDelegate(":submit","click",function(t){i.settings.submitHandler&&(i.submitButton=t.target),n(t.target).hasClass("cancel")&&(i.cancelSubmit=!0)}),this.submit(function(t){function r(){var r;return i.settings.submitHandler?(i.submitButton&&(r=n("<input type='hidden'/>").attr("name",i.submitButton.name).val(i.submitButton.value).appendTo(i.currentForm)),i.settings.submitHandler.call(i,i.currentForm,t),i.submitButton&&r.remove(),!1):!0}return(i.settings.debug&&t.preventDefault(),i.cancelSubmit)?(i.cancelSubmit=!1,r()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):r():(i.focusInvalid(),!1)})),i)},valid:function(){if(n(this[0]).is("form"))return this.validate().form();var t=!0,i=n(this[0].form).validate();return this.each(function(){t&=i.element(this)}),t},removeAttrs:function(t){var i={},r=this;return n.each(t.split(/\s/),function(n,t){i[t]=r.attr(t),r.removeAttr(t)}),i},rules:function(t,i){var r=this[0],o,u,h;if(t){var e=n.data(r.form,"validator").settings,s=e.rules,f=n.validator.staticRules(r);switch(t){case"add":n.extend(f,n.validator.normalizeRule(i)),s[r.name]=f,i.messages&&(e.messages[r.name]=n.extend(e.messages[r.name],i.messages));break;case"remove":return i?(o={},n.each(i.split(/\s/),function(n,t){o[t]=f[t],delete f[t]}),o):(delete s[r.name],f)}}return u=n.validator.normalizeRules(n.extend({},n.validator.metadataRules(r),n.validator.classRules(r),n.validator.attributeRules(r),n.validator.staticRules(r)),r),u.required&&(h=u.required,delete u.required,u=n.extend({required:h},u)),u}}),n.extend(n.expr[":"],{blank:function(t){return!n.trim(""+t.value)},filled:function(t){return!!n.trim(""+t.value)},unchecked:function(n){return!n.checked}}),n.validator=function(t,i){this.settings=n.extend(!0,{},n.validator.defaults,t),this.currentForm=i,this.init()},n.validator.format=function(t,i){return arguments.length===1?function(){var i=n.makeArray(arguments);return i.unshift(t),n.validator.format.apply(this,i)}:(arguments.length>2&&i.constructor!==Array&&(i=n.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),n.each(i,function(n,i){t=t.replace(new RegExp("\\{"+n+"\\}","g"),i)}),t)},n.extend(n.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:!0,errorContainer:n([]),errorLabelContainer:n([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(n){this.lastActive=n,this.settings.focusCleanup&&!this.blockFocusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,n,this.settings.errorClass,this.settings.validClass),this.addWrapper(this.errorsFor(n)).hide())},onfocusout:function(n){!this.checkable(n)&&(n.name in this.submitted||!this.optional(n))&&this.element(n)},onkeyup:function(n,t){(t.which!==9||this.elementValue(n)!=="")&&(n.name in this.submitted||n===this.lastActive)&&this.element(n)},onclick:function(n){n.name in this.submitted?this.element(n):n.parentNode.name in this.submitted&&this.element(n.parentNode)},highlight:function(t,i,r){t.type==="radio"?this.findByName(t.name).addClass(i).removeClass(r):n(t).addClass(i).removeClass(r)},unhighlight:function(t,i,r){t.type==="radio"?this.findByName(t.name).removeClass(i).addClass(r):n(t).removeClass(i).addClass(r)}},setDefaults:function(t){n.extend(n.validator.defaults,t)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:n.validator.format("Please enter no more than {0} characters."),minlength:n.validator.format("Please enter at least {0} characters."),rangelength:n.validator.format("Please enter a value between {0} and {1} characters long."),range:n.validator.format("Please enter a value between {0} and {1}."),max:n.validator.format("Please enter a value less than or equal to {0}."),min:n.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function r(t){var i=n.data(this[0].form,"validator"),r="on"+t.type.replace(/^validate/,"");i.settings[r]&&i.settings[r].call(i,this[0],t)}var i,t;this.labelContainer=n(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||n(this.currentForm),this.containers=n(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset(),i=this.groups={},n.each(this.settings.groups,function(t,r){n.each(r.split(/\s/),function(n,r){i[r]=t})}),t=this.settings.rules,n.each(t,function(i,r){t[i]=n.validator.normalizeRule(r)}),n(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'] ","focusin focusout keyup",r).validateDelegate("[type='radio'], [type='checkbox'], select, option","click",r),this.settings.invalidHandler&&n(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),n.extend(this.submitted,this.errorMap),this.invalid=n.extend({},this.errorMap),this.valid()||n(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var n=0,t=this.currentElements=this.elements();t[n];n++)this.check(t[n]);return this.valid()},element:function(t){t=this.validationTargetFor(this.clean(t)),this.lastElement=t,this.prepareElement(t),this.currentElements=n(t);var i=this.check(t)!==!1;return i?delete this.invalid[t.name]:this.invalid[t.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),i},showErrors:function(t){if(t){n.extend(this.errorMap,t),this.errorList=[];for(var i in t)this.errorList.push({message:t[i],element:this.findByName(i)[0]});this.successList=n.grep(this.successList,function(n){return!(n.name in t)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){n.fn.resetForm&&n(this.currentForm).resetForm(),this.submitted={},this.lastElement=null,this.prepareForm(),this.hideErrors(),this.elements().removeClass(this.settings.errorClass).removeData("previousValue")},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(n){var t=0,i;for(i in n)t++;return t},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return this.size()===0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{n(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(t){}},findLastActive:function(){var t=this.lastActive;return t&&n.grep(this.errorList,function(n){return n.element.name===t.name}).length===1&&t},elements:function(){var t=this,i={};return n(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){return(!this.name&&t.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.name in i||!t.objectLength(n(this).rules()))?!1:(i[this.name]=!0,!0)})},clean:function(t){return n(t)[0]},errors:function(){var t=this.settings.errorClass.replace(" ",".");return n(this.settings.errorElement+"."+t,this.errorContext)},reset:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=n([]),this.toHide=n([]),this.currentElements=n([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(n){this.reset(),this.toHide=this.errorsFor(n)},elementValue:function(t){var r=n(t).attr("type"),i=n(t).val();return r==="radio"||r==="checkbox"?n('input[name="'+n(t).attr("name")+'"]:checked').val():typeof i=="string"?i.replace(/\r/g,""):i},check:function(t){var r,u;t=this.validationTargetFor(this.clean(t));var f=n(t).rules(),e=!1,o=this.elementValue(t),i;for(r in f){u={method:r,parameters:f[r]};try{if(i=n.validator.methods[r].call(this,o,t,u.parameters),i==="dependency-mismatch"){e=!0;continue}if(e=!1,i==="pending"){this.toHide=this.toHide.not(this.errorsFor(t));return}if(!i)return this.formatAndAdd(t,u),!1}catch(s){this.settings.debug&&window.console&&console.log("exception occured when checking element "+t.id+", check the '"+u.method+"' method",s);throw s;}}if(!e)return this.objectLength(f)&&this.successList.push(t),!0},customMetaMessage:function(t,i){if(n.metadata){var r=this.settings.meta?n(t).metadata()[this.settings.meta]:n(t).metadata();return r&&r.messages&&r.messages[i]}},customDataMessage:function(t,i){return n(t).data("msg-"+i.toLowerCase())||t.attributes&&n(t).attr("data-msg-"+i.toLowerCase())},customMessage:function(n,t){var i=this.settings.messages[n];return i&&(i.constructor===String?i:i[t])},findDefined:function(){for(var n=0;n<arguments.length;n++)if(arguments[n]!==undefined)return arguments[n];return undefined},defaultMessage:function(t,i){return this.findDefined(this.customMessage(t.name,i),this.customDataMessage(t,i),this.customMetaMessage(t,i),!this.settings.ignoreTitle&&t.title||undefined,n.validator.messages[i],"<strong>Warning: No message defined for "+t.name+"<\/strong>")},formatAndAdd:function(t,i){var r=this.defaultMessage(t,i.method),u=/\$?\{(\d+)\}/g;typeof r=="function"?r=r.call(this,i.parameters,t):u.test(r)&&(r=n.validator.format(r.replace(u,"{$1}"),i.parameters)),this.errorList.push({message:r,element:t}),this.errorMap[t.name]=r,this.submitted[t.name]=r},addWrapper:function(n){return this.settings.wrapper&&(n=n.add(n.parent(this.settings.wrapper))),n},defaultShowErrors:function(){for(var i,t,n=0;this.errorList[n];n++)t=this.errorList[n],this.settings.highlight&&this.settings.highlight.call(this,t.element,this.settings.errorClass,this.settings.validClass),this.showLabel(t.element,t.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(n=0;this.successList[n];n++)this.showLabel(this.successList[n]);if(this.settings.unhighlight)for(n=0,i=this.validElements();i[n];n++)this.settings.unhighlight.call(this,i[n],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return n(this.errorList).map(function(){return this.element})},showLabel:function(t,i){var r=this.errorsFor(t);r.length?(r.removeClass(this.settings.validClass).addClass(this.settings.errorClass),r.attr("generated")&&r.html(i)):(r=n("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(t),generated:!0}).addClass(this.settings.errorClass).html(i||""),this.settings.wrapper&&(r=r.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.append(r).length||(this.settings.errorPlacement?this.settings.errorPlacement(r,n(t)):r.insertAfter(t))),!i&&this.settings.success&&(r.text(""),typeof this.settings.success=="string"?r.addClass(this.settings.success):this.settings.success(r,t)),this.toShow=this.toShow.add(r)},errorsFor:function(t){var i=this.idOrName(t);return this.errors().filter(function(){return n(this).attr("for")===i})},idOrName:function(n){return this.groups[n.name]||(this.checkable(n)?n.name:n.id||n.name)},validationTargetFor:function(n){return this.checkable(n)&&(n=this.findByName(n.name).not(this.settings.ignore)[0]),n},checkable:function(n){return/radio|checkbox/i.test(n.type)},findByName:function(t){return n(this.currentForm).find('[name="'+t+'"]')},getLength:function(t,i){switch(i.nodeName.toLowerCase()){case"select":return n("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return t.length},depend:function(n,t){return this.dependTypes[typeof n]?this.dependTypes[typeof n](n,t):!0},dependTypes:{boolean:function(n){return n},string:function(t,i){return!!n(t,i.form).length},"function":function(n,t){return n(t)}},optional:function(t){var i=this.elementValue(t);return!n.validator.methods.required.call(this,i,t)&&"dependency-mismatch"},startRequest:function(n){this.pending[n.name]||(this.pendingRequest++,this.pending[n.name]=!0)},stopRequest:function(t,i){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[t.name],i&&this.pendingRequest===0&&this.formSubmitted&&this.form()?(n(this.currentForm).submit(),this.formSubmitted=!1):!i&&this.pendingRequest===0&&this.formSubmitted&&(n(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(t){return n.data(t,"previousValue")||n.data(t,"previousValue",{old:null,valid:!0,message:this.defaultMessage(t,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(t,i){t.constructor===String?this.classRuleSettings[t]=i:n.extend(this.classRuleSettings,t)},classRules:function(t){var i={},r=n(t).attr("class");return r&&n.each(r.split(" "),function(){this in n.validator.classRuleSettings&&n.extend(i,n.validator.classRuleSettings[this])}),i},attributeRules:function(t){var u={},f=n(t),r,i;for(r in n.validator.methods)r==="required"?(i=f.get(0).getAttribute(r),i===""&&(i=!0),i=!!i):i=f.attr(r),i?u[r]=i:f[0].getAttribute("type")===r&&(u[r]=!0);return u.maxlength&&/-1|2147483647|524288/.test(u.maxlength)&&delete u.maxlength,u},metadataRules:function(t){if(!n.metadata)return{};var i=n.data(t.form,"validator").settings.meta;return i?n(t).metadata()[i]:n(t).metadata()},staticRules:function(t){var i={},r=n.data(t.form,"validator");return r.settings.rules&&(i=n.validator.normalizeRule(r.settings.rules[t.name])||{}),i},normalizeRules:function(t,i){return n.each(t,function(r,u){if(u===!1){delete t[r];return}if(u.param||u.depends){var f=!0;switch(typeof u.depends){case"string":f=!!n(u.depends,i.form).length;break;case"function":f=u.depends.call(i,i)}f?t[r]=u.param!==undefined?u.param:!0:delete t[r]}}),n.each(t,function(r,u){t[r]=n.isFunction(u)?u(i):u}),n.each(["minlength","maxlength","min","max"],function(){t[this]&&(t[this]=Number(t[this]))}),n.each(["rangelength","range"],function(){t[this]&&(t[this]=[Number(t[this][0]),Number(t[this][1])])}),n.validator.autoCreateRanges&&(t.min&&t.max&&(t.range=[t.min,t.max],delete t.min,delete t.max),t.minlength&&t.maxlength&&(t.rangelength=[t.minlength,t.maxlength],delete t.minlength,delete t.maxlength)),t.messages&&delete t.messages,t},normalizeRule:function(t){if(typeof t=="string"){var i={};n.each(t.split(/\s/),function(){i[this]=!0}),t=i}return t},addMethod:function(t,i,r){n.validator.methods[t]=i,n.validator.messages[t]=r!==undefined?r:n.validator.messages[t],i.length<3&&n.validator.addClassRules(t,n.validator.normalizeRule(t))},methods:{required:function(t,i,r){if(!this.depend(r,i))return"dependency-mismatch";if(i.nodeName.toLowerCase()==="select"){var u=n(i).val();return u&&u.length>0}return this.checkable(i)?this.getLength(t,i)>0:n.trim(t).length>0},remote:function(t,i,r){var f,u,e;return this.optional(i)?"dependency-mismatch":(f=this.previousValue(i),this.settings.messages[i.name]||(this.settings.messages[i.name]={}),f.originalMessage=this.settings.messages[i.name].remote,this.settings.messages[i.name].remote=f.message,r=typeof r=="string"&&{url:r}||r,this.pending[i.name])?"pending":f.old===t?f.valid:(f.old=t,u=this,this.startRequest(i),e={},e[i.name]=t,n.ajax(n.extend(!0,{url:r,mode:"abort",port:"validate"+i.name,dataType:"json",data:e,success:function(r){var e,h,s,o;u.settings.messages[i.name].remote=f.originalMessage,e=r===!0||r==="true",e?(h=u.formSubmitted,u.prepareElement(i),u.formSubmitted=h,u.successList.push(i),delete u.invalid[i.name],u.showErrors()):(s={},o=r||u.defaultMessage(i,"remote"),s[i.name]=f.message=n.isFunction(o)?o(t):o,u.invalid[i.name]=!0,u.showErrors(s)),f.valid=e,u.stopRequest(i,e)}},r)),"pending")},minlength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(n.trim(t),i);return this.optional(i)||u>=r},maxlength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(n.trim(t),i);return this.optional(i)||u<=r},rangelength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(n.trim(t),i);return this.optional(i)||u>=r[0]&&u<=r[1]},min:function(n,t,i){return this.optional(t)||n>=i},max:function(n,t,i){return this.optional(t)||n<=i},range:function(n,t,i){return this.optional(t)||n>=i[0]&&n<=i[1]},email:function(n,t){return this.optional(t)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(n)},url:function(n,t){return this.optional(t)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(n)},date:function(n,t){return this.optional(t)||!/Invalid|NaN/.test(new Date(n))},dateISO:function(n,t){return this.optional(t)||/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/.test(n)},number:function(n,t){return this.optional(t)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(n)},digits:function(n,t){return this.optional(t)||/^\d+$/.test(n)},creditcard:function(n,t){var r,e;if(this.optional(t))return"dependency-mismatch";if(/[^0-9 \-]+/.test(n))return!1;var f=0,i=0,u=!1;for(n=n.replace(/\D/g,""),r=n.length-1;r>=0;r--)e=n.charAt(r),i=parseInt(e,10),u&&(i*=2)>9&&(i-=9),f+=i,u=!u;return f%10==0},equalTo:function(t,i,r){var u=n(r);return this.settings.onfocusout&&u.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){n(i).valid()}),t===u.val()}}}),n.format=n.validator.format}(jQuery),function(n){var t={},i;n.ajaxPrefilter?n.ajaxPrefilter(function(n,i,r){var u=n.port;n.mode==="abort"&&(t[u]&&t[u].abort(),t[u]=r)}):(i=n.ajax,n.ajax=function(r){var f=("mode"in r?r:n.ajaxSettings).mode,u=("port"in r?r:n.ajaxSettings).port;return f==="abort"?(t[u]&&t[u].abort(),t[u]=i.apply(this,arguments)):i.apply(this,arguments)})}(jQuery),function(n){jQuery.event.special.focusin||jQuery.event.special.focusout||!document.addEventListener||n.each({focus:"focusin",blur:"focusout"},function(t,i){function r(t){return t=n.event.fix(t),t.type=i,n.event.handle.call(this,t)}n.event.special[i]={setup:function(){this.addEventListener(t,r,!0)},teardown:function(){this.removeEventListener(t,r,!0)},handler:function(t){var r=arguments;return r[0]=n.event.fix(t),r[0].type=i,n.event.handle.apply(this,r)}}}),n.extend(n.fn,{validateDelegate:function(t,i,r){return this.bind(i,function(i){var u=n(i.target);if(u.is(t))return r.apply(u,arguments)})}})}(jQuery),function(n){function i(n,t,i){n.rules[t]=i,n.message&&(n.messages[t]=n.message)}function h(n){return n.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}function f(n){return n.replace(/([!"#$%&'()*+,./:;<=>?@\[\\\]^`{|}~])/g,"\\$1")}function e(n){return n.substr(0,n.lastIndexOf(".")+1)}function o(n,t){return n.indexOf("*.")===0&&(n=n.replace("*.",t)),n}function c(t,i){var r=n(this).find("[data-valmsg-for='"+f(i[0].name)+"']"),u=n.parseJSON(r.attr("data-valmsg-replace"))!==!1;r.removeClass("field-validation-valid").addClass("field-validation-error"),t.data("unobtrusiveContainer",r),u?(r.empty(),t.removeClass("input-validation-error").appendTo(r)):t.hide()}function l(t,i){var u=n(this).find("[data-valmsg-summary=true]"),r=u.find("ul");r&&r.length&&i.errorList.length&&(r.empty(),u.addClass("validation-summary-errors").removeClass("validation-summary-valid"),n.each(i.errorList,function(){n("<li />").html(this.message).appendTo(r)}))}function a(t){var i=t.data("unobtrusiveContainer"),r=n.parseJSON(i.attr("data-valmsg-replace"));i&&(i.addClass("field-validation-valid").removeClass("field-validation-error"),t.removeData("unobtrusiveContainer"),r&&i.empty())}function v(){var i=n(this);i.data("validator").resetForm(),i.find(".validation-summary-errors").addClass("validation-summary-valid").removeClass("validation-summary-errors"),i.find(".field-validation-error").addClass("field-validation-valid").removeClass("field-validation-error").removeData("unobtrusiveContainer").find(">*").removeData("unobtrusiveContainer")}function s(t){var i=n(t),r=i.data(u),f=n.proxy(v,t);return r||(r={options:{errorClass:"input-validation-error",errorElement:"span",errorPlacement:n.proxy(c,t),invalidHandler:n.proxy(l,t),messages:{},rules:{},success:n.proxy(a,t)},attachValidation:function(){i.unbind("reset."+u,f).bind("reset."+u,f).validate(this.options)},validate:function(){return i.validate(),i.valid()}},i.data(u,r)),r}var r=n.validator,t,u="unobtrusiveValidation";r.unobtrusive={adapters:[],parseElement:function(t,i){var u=n(t),f=u.parents("form")[0],r,e,o;f&&(r=s(f),r.options.rules[t.name]=e={},r.options.messages[t.name]=o={},n.each(this.adapters,function(){var i="data-val-"+this.name,r=u.attr(i),s={};r!==undefined&&(i+="-",n.each(this.params,function(){s[this]=u.attr(i+this)}),this.adapt({element:t,form:f,message:r,params:s,rules:e,messages:o}))}),n.extend(e,{__dummy__:!0}),i||r.attachValidation())},parse:function(t){var i=n(t).parents("form").andSelf().add(n(t).find("form")).filter("form");n(t).find(":input[data-val=true]").each(function(){r.unobtrusive.parseElement(this,!0)}),i.each(function(){var n=s(this);n&&n.attachValidation()})}},t=r.unobtrusive.adapters,t.add=function(n,t,i){return i||(i=t,t=[]),this.push({name:n,params:t,adapt:i}),this},t.addBool=function(n,t){return this.add(n,function(r){i(r,t||n,!0)})},t.addMinMax=function(n,t,r,u,f,e){return this.add(n,[f||"min",e||"max"],function(n){var f=n.params.min,e=n.params.max;f&&e?i(n,u,[f,e]):f?i(n,t,f):e&&i(n,r,e)})},t.addSingleVal=function(n,t,r){return this.add(n,[t||"val"],function(u){i(u,r||n,u.params[t])})},r.addMethod("__dummy__",function(){return!0}),r.addMethod("regex",function(n,t,i){var r;return this.optional(t)?!0:(r=new RegExp(i).exec(n),r&&r.index===0&&r[0].length===n.length)}),r.addMethod("nonalphamin",function(n,t,i){var r;return i&&(r=n.match(/\W/g),r=r&&r.length>=i),r}),t.addSingleVal("accept","exts").addSingleVal("regex","pattern"),t.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url"),t.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range"),t.add("equalto",["other"],function(t){var r=e(t.element.name),u=t.params.other,s=o(u,r),h=n(t.form).find(":input[name='"+f(s)+"']")[0];i(t,"equalTo",h)}),t.add("required",function(n){(n.element.tagName.toUpperCase()!=="INPUT"||n.element.type.toUpperCase()!=="CHECKBOX")&&i(n,"required",!0)}),t.add("remote",["url","type","additionalfields"],function(t){var r={url:t.params.url,type:t.params.type||"GET",data:{}},u=e(t.element.name);n.each(h(t.params.additionalfields||t.element.name),function(i,e){var s=o(e,u);r.data[s]=function(){return n(t.form).find(":input[name='"+f(s)+"']").val()}}),i(t,"remote",r)}),t.add("password",["min","nonalphamin","regex"],function(n){n.params.min&&i(n,"minlength",n.params.min),n.params.nonalphamin&&i(n,"nonalphamin",n.params.nonalphamin),n.params.regex&&i(n,"regex",n.params.regex)}),n(function(){r.unobtrusive.parse(document)})}(jQuery),window.Modernizr=function(n,t,i){function l(n){c.cssText=n}function yt(n,t){return l(a.join(n+";")+(t||""))}function h(n,t){return typeof n===t}function d(n,t){return!!~(""+n).indexOf(t)}function ct(n,t){for(var r in n)if(c[n[r]]!==i)return t=="pfx"?n[r]:!0;return!1}function pt(n,t,r){var f,u;for(f in n)if(u=t[n[f]],u!==i)return r===!1?n[f]:h(u,"function")?u.bind(r||t):u;return!1}function e(n,t,i){var r=n.charAt(0).toUpperCase()+n.substr(1),u=(n+" "+y.join(r+" ")+r).split(" ");return h(t,"string")||h(t,"undefined")?ct(u,t):(u=(n+" "+ot.join(r+" ")+r).split(" "),pt(u,t,i))}function bt(){u.input=function(i){for(var r=0,u=i.length;r<u;r++)w[i[r]]=!!(i[r]in f);return w.list&&(w.list=!!(t.createElement("datalist")&&n.HTMLDataListElement)),w}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),u.inputtypes=function(n){for(var e=0,r,u,o,h=n.length;e<h;e++)f.setAttribute("type",u=n[e]),r=f.type!=="text",r&&(f.value=v,f.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(u)&&f.style.WebkitAppearance!==i?(s.appendChild(f),o=t.defaultView,r=o.getComputedStyle&&o.getComputedStyle(f,null).WebkitAppearance!=="textfield"&&f.offsetHeight!==0,s.removeChild(f)):/^(search|tel)$/.test(u)||(/^(url|email)$/.test(u)?r=f.checkValidity&&f.checkValidity()===!1:/^color$/.test(u)?(s.appendChild(f),s.offsetWidth,r=f.value!=v,s.removeChild(f)):r=f.value!=v)),st[n[e]]=!!r;return st}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var lt="2.5.3",u={},at=!0,s=t.documentElement,o="modernizr",ut=t.createElement(o),c=ut.style,f=t.createElement("input"),v=":)",ft={}.toString,a=" -webkit- -moz- -o- -ms- ".split(" "),et="Webkit Moz O ms",y=et.split(" "),ot=et.toLowerCase().split(" "),p={svg:"http://www.w3.org/2000/svg"},r={},st={},w={},nt=[],tt=nt.slice,b,it=function(n,i,r,u){var l,a,c,f=t.createElement("div"),h=t.body,e=h?h:t.createElement("body");if(parseInt(r,10))while(r--)c=t.createElement("div"),c.id=u?u[r]:o+(r+1),f.appendChild(c);return l=["&#173;","<style>",n,"<\/style>"].join(""),f.id=o,e.innerHTML+=l,e.appendChild(f),h||(e.style.background="",s.appendChild(e)),a=i(f,n),h?f.parentNode.removeChild(f):e.parentNode.removeChild(e),!!a},vt=function(t){var i=n.matchMedia||n.msMatchMedia,r;return i?i(t).matches:(it("@media "+t+" { #"+o+" { position: absolute; } }",function(t){r=(n.getComputedStyle?getComputedStyle(t,null):t.currentStyle).position=="absolute"}),r)},ht=function(){function r(r,u){u=u||t.createElement(n[r]||"div"),r="on"+r;var f=r in u;return f||(u.setAttribute||(u=t.createElement("div")),u.setAttribute&&u.removeAttribute&&(u.setAttribute(r,""),f=h(u[r],"function"),h(u[r],"undefined")||(u[r]=i),u.removeAttribute(r))),u=null,f}var n={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return r}(),rt={}.hasOwnProperty,k,wt,g;k=h(rt,"undefined")||h(rt.call,"undefined")?function(n,t){return t in n&&h(n.constructor.prototype[t],"undefined")}:function(n,t){return rt.call(n,t)},Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i,r;if(typeof t!="function")throw new TypeError;return i=tt.call(arguments,1),r=function(){var f,e,u;return this instanceof r?(f=function(){},f.prototype=t.prototype,e=new f,u=t.apply(e,i.concat(tt.call(arguments))),Object(u)===u)?u:e:t.apply(n,i.concat(tt.call(arguments)))},r}),wt=function(i,r){var e=i.join(""),f=r.length;it(e,function(i,r){for(var o=t.styleSheets[t.styleSheets.length-1],s=o?o.cssRules&&o.cssRules[0]?o.cssRules[0].cssText:o.cssText||"":"",h=i.childNodes,e={};f--;)e[h[f].id]=h[f];u.touch="ontouchstart"in n||n.DocumentTouch&&t instanceof DocumentTouch||(e.touch&&e.touch.offsetTop)===9,u.csstransforms3d=(e.csstransforms3d&&e.csstransforms3d.offsetLeft)===9&&e.csstransforms3d.offsetHeight===3,u.generatedcontent=(e.generatedcontent&&e.generatedcontent.offsetHeight)>=1,u.fontface=/src/i.test(s)&&s.indexOf(r.split(" ")[0])===0},f,r)}(['@font-face {font-family:"font";src:url("https://")}',["@media (",a.join("touch-enabled),("),o,")","{#touch{top:9px;position:absolute}}"].join(""),["@media (",a.join("transform-3d),("),o,")","{#csstransforms3d{left:9px;position:absolute;height:3px;}}"].join(""),['#generatedcontent:after{content:"',v,'";visibility:hidden}'].join("")],["fontface","touch","csstransforms3d","generatedcontent"]),r.flexbox=function(){return e("flexOrder")},r["flexbox-legacy"]=function(){return e("boxDirection")},r.canvas=function(){var n=t.createElement("canvas");return!!(n.getContext&&n.getContext("2d"))},r.canvastext=function(){return!!(u.canvas&&h(t.createElement("canvas").getContext("2d").fillText,"function"))},r.webgl=function(){try{var r=t.createElement("canvas"),u;u=!!(n.WebGLRenderingContext&&(r.getContext("experimental-webgl")||r.getContext("webgl"))),r=i}catch(f){u=!1}return u},r.touch=function(){return u.touch},r.geolocation=function(){return!!navigator.geolocation},r.postmessage=function(){return!!n.postMessage},r.websqldatabase=function(){return!!n.openDatabase},r.indexedDB=function(){return!!e("indexedDB",n)},r.hashchange=function(){return ht("hashchange",n)&&(t.documentMode===i||t.documentMode>7)},r.history=function(){return!!(n.history&&history.pushState)},r.draganddrop=function(){var n=t.createElement("div");return"draggable"in n||"ondragstart"in n&&"ondrop"in n},r.websockets=function(){for(var t=-1,i=y.length;++t<i;)if(n[y[t]+"WebSocket"])return!0;return"WebSocket"in n},r.rgba=function(){return l("background-color:rgba(150,255,150,.5)"),d(c.backgroundColor,"rgba")},r.hsla=function(){return l("background-color:hsla(120,40%,100%,.5)"),d(c.backgroundColor,"rgba")||d(c.backgroundColor,"hsla")},r.multiplebgs=function(){return l("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(c.background)},r.backgroundsize=function(){return e("backgroundSize")},r.borderimage=function(){return e("borderImage")},r.borderradius=function(){return e("borderRadius")},r.boxshadow=function(){return e("boxShadow")},r.textshadow=function(){return t.createElement("div").style.textShadow===""},r.opacity=function(){return yt("opacity:.55"),/^0.55$/.test(c.opacity)},r.cssanimations=function(){return e("animationName")},r.csscolumns=function(){return e("columnCount")},r.cssgradients=function(){var n="background-image:",t="gradient(linear,left top,right bottom,from(#9f9),to(white));",i="linear-gradient(left top,#9f9, white);";return l((n+"-webkit- ".split(" ").join(t+n)+a.join(i+n)).slice(0,-n.length)),d(c.backgroundImage,"gradient")},r.cssreflections=function(){return e("boxReflect")},r.csstransforms=function(){return!!e("transform")},r.csstransforms3d=function(){var n=!!e("perspective");return n&&"webkitPerspective"in s.style&&(n=u.csstransforms3d),n},r.csstransitions=function(){return e("transition")},r.fontface=function(){return u.fontface},r.generatedcontent=function(){return u.generatedcontent},r.video=function(){var i=t.createElement("video"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),n.h264=i.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),n.webm=i.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(r){}return n},r.audio=function(){var i=t.createElement("audio"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),n.mp3=i.canPlayType("audio/mpeg;").replace(/^no$/,""),n.wav=i.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),n.m4a=(i.canPlayType("audio/x-m4a;")||i.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(r){}return n},r.localstorage=function(){try{return localStorage.setItem(o,o),localStorage.removeItem(o),!0}catch(n){return!1}},r.sessionstorage=function(){try{return sessionStorage.setItem(o,o),sessionStorage.removeItem(o),!0}catch(n){return!1}},r.webworkers=function(){return!!n.Worker},r.applicationcache=function(){return!!n.applicationCache},r.svg=function(){return!!t.createElementNS&&!!t.createElementNS(p.svg,"svg").createSVGRect},r.inlinesvg=function(){var n=t.createElement("div");return n.innerHTML="<svg/>",(n.firstChild&&n.firstChild.namespaceURI)==p.svg},r.smil=function(){return!!t.createElementNS&&/SVGAnimate/.test(ft.call(t.createElementNS(p.svg,"animate")))},r.svgclippaths=function(){return!!t.createElementNS&&/SVGClipPath/.test(ft.call(t.createElementNS(p.svg,"clipPath")))};for(g in r)k(r,g)&&(b=g.toLowerCase(),u[b]=r[g](),nt.push((u[b]?"":"no-")+b));return u.input||bt(),u.addTest=function(n,t){if(typeof n=="object")for(var r in n)k(n,r)&&u.addTest(r,n[r]);else{if(n=n.toLowerCase(),u[n]!==i)return u;t=typeof t=="function"?t():t,s.className+=" "+(t?"":"no-")+n,u[n]=t}return u},l(""),ut=f=null,function(n,t){function s(n,t){var i=n.createElement("p"),r=n.getElementsByTagName("head")[0]||n.documentElement;return i.innerHTML="x<style>"+t+"<\/style>",r.insertBefore(i.lastChild,r.firstChild)}function h(){var n=i.elements;return typeof n=="string"?n.split(" "):n}function c(n){var t={},u=n.createElement,f=n.createDocumentFragment,r=f();n.createElement=function(n){var f=(t[n]||(t[n]=u(n))).cloneNode();return i.shivMethods&&f.canHaveChildren&&!o.test(n)?r.appendChild(f):f},n.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+h().join().replace(/\w+/g,function(n){return t[n]=u(n),r.createElement(n),'c("'+n+'")'})+");return n}")(i,r)}function e(n){var t;return n.documentShived?n:(i.shivCSS&&!u&&(t=!!s(n,"article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio{display:none}canvas,video{display:inline-block;*display:inline;*zoom:1}[hidden]{display:none}audio[controls]{display:inline-block;*display:inline;*zoom:1}mark{background:#FF0;color:#000}")),f||(t=!c(n)),t&&(n.documentShived=t),n)}var r=n.html5||{},o=/^<|^(?:button|form|map|select|textarea)$/i,u,f,i;(function(){var n=t.createElement("a");n.innerHTML="<xyz><\/xyz>",u="hidden"in n,f=n.childNodes.length==1||function(){try{t.createElement("a")}catch(i){return!0}var n=t.createDocumentFragment();return typeof n.cloneNode=="undefined"||typeof n.createDocumentFragment=="undefined"||typeof n.createElement=="undefined"}()})(),i={elements:r.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:!(r.shivCSS===!1),shivMethods:!(r.shivMethods===!1),type:"default",shivDocument:e},n.html5=i,e(t)}(this,t),u._version=lt,u._prefixes=a,u._domPrefixes=ot,u._cssomPrefixes=y,u.mq=vt,u.hasEvent=ht,u.testProp=function(n){return ct([n])},u.testAllProps=e,u.testStyles=it,u.prefixed=function(n,t,i){return t?e(n,t,i):e(n,"pfx")},s.className=s.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(at?" js "+nt.join(" "):""),u}(this,this.document),function(){"use strict";function n(n){function s(s,h){var rt,ut,p=s==window,l=h&&h.message!==undefined?h.message:undefined,nt,k,d,tt,g,w,b,it,ft,et,at;if(h=n.extend({},n.blockUI.defaults,h||{}),!h.ignoreIfBlocked||!n(s).data("blockUI.isBlocked")){if(h.overlayCSS=n.extend({},n.blockUI.defaults.overlayCSS,h.overlayCSS||{}),rt=n.extend({},n.blockUI.defaults.css,h.css||{}),h.onOverlayClick&&(h.overlayCSS.cursor="pointer"),ut=n.extend({},n.blockUI.defaults.themedCSS,h.themedCSS||{}),l=l===undefined?h.message:l,p&&t&&e(window,{fadeOut:0}),l&&typeof l!="string"&&(l.parentNode||l.jquery)&&(nt=l.jquery?l[0]:l,k={},n(s).data("blockUI.history",k),k.el=nt,k.parent=nt.parentNode,k.display=nt.style.display,k.position=nt.style.position,k.parent&&k.parent.removeChild(nt)),n(s).data("blockUI.onUnblock",h.onUnblock),d=h.baseZ,tt=f||h.forceIframe?n('<iframe class="blockUI" style="z-index:'+d+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+h.iframeSrc+'"><\/iframe>'):n('<div class="blockUI" style="display:none"><\/div>'),g=h.theme?n('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+d+++';display:none"><\/div>'):n('<div class="blockUI blockOverlay" style="z-index:'+d+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"><\/div>'),h.theme&&p?(b='<div class="blockUI '+h.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(d+10)+';display:none;position:fixed">',h.title&&(b+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(h.title||"&nbsp;")+"<\/div>"),b+='<div class="ui-widget-content ui-dialog-content"><\/div>',b+="<\/div>"):h.theme?(b='<div class="blockUI '+h.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(d+10)+';display:none;position:absolute">',h.title&&(b+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(h.title||"&nbsp;")+"<\/div>"),b+='<div class="ui-widget-content ui-dialog-content"><\/div>',b+="<\/div>"):b=p?'<div class="blockUI '+h.blockMsgClass+' blockPage" style="z-index:'+(d+10)+';display:none;position:fixed"><\/div>':'<div class="blockUI '+h.blockMsgClass+' blockElement" style="z-index:'+(d+10)+';display:none;position:absolute"><\/div>',w=n(b),l&&(h.theme?(w.css(ut),w.addClass("ui-widget-content")):w.css(rt)),h.theme||g.css(h.overlayCSS),g.css("position",p?"fixed":"absolute"),(f||h.forceIframe)&&tt.css("opacity",0),it=[tt,g,w],ft=p?n("body"):n(s),n.each(it,function(){this.appendTo(ft)}),h.theme&&h.draggable&&n.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"}),et=v&&(!n.support.boxModel||n("object,embed",p?null:s).length>0),o||et){if(p&&h.allowBodyStretch&&n.support.boxModel&&n("html,body").css("height","100%"),(o||!n.support.boxModel)&&!p)var ot=r(s,"borderTopWidth"),st=r(s,"borderLeftWidth"),ht=ot?"(0 - "+ot+")":0,ct=st?"(0 - "+st+")":0;n.each(it,function(n,t){var i=t[0].style,r,u;i.position="absolute",n<2?(p?i.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+h.quirksmodeOffsetHack+') + "px"'):i.setExpression("height",'this.parentNode.offsetHeight + "px"'),p?i.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):i.setExpression("width",'this.parentNode.offsetWidth + "px"'),ct&&i.setExpression("left",ct),ht&&i.setExpression("top",ht)):h.centerY?(p&&i.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),i.marginTop=0):!h.centerY&&p&&(r=h.css&&h.css.top?parseInt(h.css.top,10):0,u="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+r+') + "px"',i.setExpression("top",u))})}if(l&&(h.theme?w.find(".ui-widget-content").append(l):w.append(l),(l.jquery||l.nodeType)&&n(l).show()),(f||h.forceIframe)&&h.showOverlay&&tt.show(),h.fadeIn){var lt=h.onBlock?h.onBlock:u,vt=h.showOverlay&&!l?lt:u,yt=l?lt:u;h.showOverlay&&g._fadeIn(h.fadeIn,vt),l&&w._fadeIn(h.fadeIn,yt)}else h.showOverlay&&g.show(),l&&w.show(),h.onBlock&&h.onBlock();c(1,s,h),p?(t=w[0],i=n(h.focusableElements,t),h.focusInput&&setTimeout(a,20)):y(w[0],h.centerX,h.centerY),h.timeout&&(at=setTimeout(function(){p?n.unblockUI(h):n(s).unblock(h)},h.timeout),n(s).data("blockUI.timeout",at))}}function e(r,u){var o,s=r==window,e=n(r),l=e.data("blockUI.history"),a=e.data("blockUI.timeout"),f;a&&(clearTimeout(a),e.removeData("blockUI.timeout")),u=n.extend({},n.blockUI.defaults,u||{}),c(0,r,u),u.onUnblock===null&&(u.onUnblock=e.data("blockUI.onUnblock"),e.removeData("blockUI.onUnblock")),f=s?n("body").children().filter(".blockUI").add("body > .blockUI"):e.find(">.blockUI"),u.cursorReset&&(f.length>1&&(f[1].style.cursor=u.cursorReset),f.length>2&&(f[2].style.cursor=u.cursorReset)),s&&(t=i=null),u.fadeOut?(o=f.length,f.stop().fadeOut(u.fadeOut,function(){--o==0&&h(f,l,u,r)})):h(f,l,u,r)}function h(t,i,r,u){var f=n(u);if(!f.data("blockUI.isBlocked")){if(t.each(function(){this.parentNode&&this.parentNode.removeChild(this)}),i&&i.el&&(i.el.style.display=i.display,i.el.style.position=i.position,i.parent&&i.parent.appendChild(i.el),f.removeData("blockUI.history")),f.data("blockUI.static")&&f.css("position","static"),typeof r.onUnblock=="function")r.onUnblock(u,r);var e=n(document.body),o=e.width(),s=e[0].style.width;e.width(o-1).width(o),e[0].style.width=s}}function c(i,r,u){var f=r==window,o=n(r),e;(i||(!f||t)&&(f||o.data("blockUI.isBlocked")))&&(o.data("blockUI.isBlocked",i),f&&u.bindEvents&&(!i||u.showOverlay))&&(e="mousedown mouseup keydown keypress keyup touchstart touchend touchmove",i?n(document).bind(e,u,l):n(document).unbind(e,l))}function l(r){var u,f;if(r.type==="keydown"&&r.keyCode&&r.keyCode==9&&t&&r.data.constrainTabKey){var e=i,s=!r.shiftKey&&r.target===e[e.length-1],o=r.shiftKey&&r.target===e[0];if(s||o)return setTimeout(function(){a(o)},10),!1}return(u=r.data,f=n(r.target),f.hasClass("blockOverlay")&&u.onOverlayClick&&u.onOverlayClick(),f.parents("div."+u.blockMsgClass).length>0)?!0:f.parents().children().filter("div.blockUI").length===0}function a(n){if(i){var t=i[n===!0?i.length-1:0];t&&t.focus()}}function y(n,t,i){var u=n.parentNode,f=n.style,e=(u.offsetWidth-n.offsetWidth)/2-r(u,"borderLeftWidth"),o=(u.offsetHeight-n.offsetHeight)/2-r(u,"borderTopWidth");t&&(f.left=e>0?e+"px":"0"),i&&(f.top=o>0?o+"px":"0")}function r(t,i){return parseInt(n.css(t,i),10)||0}var t,i;n.fn._fadeIn=n.fn.fadeIn;var u=n.noop||function(){},f=/MSIE/.test(navigator.userAgent),o=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),p=document.documentMode||0,v=n.isFunction(document.createElement("div").style.setExpression);n.blockUI=function(n){s(window,n)},n.unblockUI=function(n){e(window,n)},n.growlUI=function(t,i,r,u){var f=n('<div class="growlUI"><\/div>'),e,o;t&&f.append("<h2>"+t+"<\/h2>"),i&&f.append("<h3>"+i+"<\/h3>"),r===undefined&&(r=3e3),e=function(t){t=t||{},n.blockUI({message:f,fadeIn:typeof t.fadeIn!="undefined"?t.fadeIn:700,fadeOut:typeof t.fadeOut!="undefined"?t.fadeOut:1e3,timeout:typeof t.timeout!="undefined"?t.timeout:r,centerY:!1,showOverlay:!1,onUnblock:u,css:n.blockUI.defaults.growlCSS})},e(),o=f.css("opacity"),f.mouseover(function(){e({fadeIn:0,timeout:3e4});var t=n(".blockMsg");t.stop(),t.fadeTo(300,1)}).mouseout(function(){n(".blockMsg").fadeOut(1e3)})},n.fn.block=function(t){if(this[0]===window)return n.blockUI(t),this;var i=n.extend({},n.blockUI.defaults,t||{});return this.each(function(){var t=n(this);i.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){n.css(this,"position")=="static"&&(this.style.position="relative",n(this).data("blockUI.static",!0)),this.style.zoom=1,s(this,t)})},n.fn.unblock=function(t){return this[0]===window?(n.unblockUI(t),this):this.each(function(){e(this,t)})},n.blockUI.version=2.6,n.blockUI.defaults={message:"<h1>Please wait...<\/h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1},t=null,i=[]}typeof define=="function"&&define.amd&&define.amd.jQuery?define(["jquery"],n):n(jQuery)}(),function(n){n.jgrid=n.jgrid||{},n.extend(n.jgrid,{defaults:{recordtext:"View {0} - {1} of {2}",emptyrecords:"No records to view",loadtext:"Loading...",pgtext:"Page {0} of {1}"},search:{caption:"Search...",Find:"Find",Reset:"Reset",odata:[{oper:"eq",text:"equal"},{oper:"ne",text:"not equal"},{oper:"lt",text:"less"},{oper:"le",text:"less or equal"},{oper:"gt",text:"greater"},{oper:"ge",text:"greater or equal"},{oper:"bw",text:"begins with"},{oper:"bn",text:"does not begin with"},{oper:"in",text:"is in"},{oper:"ni",text:"is not in"},{oper:"ew",text:"ends with"},{oper:"en",text:"does not end with"},{oper:"cn",text:"contains"},{oper:"nc",text:"does not contain"}],groupOps:[{op:"AND",text:"all"},{op:"OR",text:"any"}]},edit:{addCaption:"Add Record",editCaption:"Edit Record",bSubmit:"Submit",bCancel:"Cancel",bClose:"Close",saveData:"Data has been changed! Save changes?",bYes:"Yes",bNo:"No",bExit:"Cancel",msg:{required:"Field is required",number:"Please, enter valid number",minValue:"value must be greater than or equal to ",maxValue:"value must be less than or equal to",email:"is not a valid e-mail",integer:"Please, enter valid integer value",date:"Please, enter valid date value",url:"is not a valid URL. Prefix required ('http://' or 'https://')",nodefined:" is not defined!",novalue:" return value is required!",customarray:"Custom function should return array!",customfcheck:"Custom function should be present in case of custom checking!"}},view:{caption:"View Record",bClose:"Close"},del:{caption:"Delete",msg:"Delete selected record(s)?",bSubmit:"Delete",bCancel:"Cancel"},nav:{edittext:"",edittitle:"Edit selected row",addtext:"",addtitle:"Add new row",deltext:"",deltitle:"Delete selected row",searchtext:"",searchtitle:"Find records",refreshtext:"",refreshtitle:"Reload Grid",alertcap:"Warning",alerttext:"Please, select row",viewtext:"",viewtitle:"View selected row"},col:{caption:"Select columns",bSubmit:"Ok",bCancel:"Cancel"},errors:{errcap:"Error",nourl:"No url is set",norecords:"No records to process",model:"Length of colNames <> colModel!"},formatter:{integer:{thousandsSeparator:",",defaultValue:"0"},number:{decimalSeparator:".",thousandsSeparator:",",decimalPlaces:2,defaultValue:"0.00"},currency:{decimalSeparator:".",thousandsSeparator:",",decimalPlaces:2,prefix:"",suffix:"",defaultValue:"0.00"},date:{dayNames:["Sun","Mon","Tue","Wed","Thr","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],AmPm:["am","pm","AM","PM"],S:function(n){return n<11||n>13?["st","nd","rd","th"][Math.min((n-1)%10,3)]:"th"},srcformat:"Y-m-d",newformat:"n/j/Y",parseRe:/[Tt\\\/:_;.,\t\s-]/,masks:{ISO8601Long:"Y-m-d H:i:s",ISO8601Short:"Y-m-d",ShortDate:"n/j/Y",LongDate:"l, F d, Y",FullDateTime:"l, F d, Y g:i:s A",MonthDay:"F d",ShortTime:"g:i A",LongTime:"g:i:s A",SortableDateTime:"Y-m-d\\TH:i:s",UniversalSortableDateTime:"Y-m-d H:i:sO",YearMonth:"F, Y"},reformatAfterEdit:!1},baseLinkUrl:"",showAction:"",target:"",checkbox:{disabled:!0},idName:"id"}})}(jQuery),function(n){"use strict";n.jgrid=n.jgrid||{},n.extend(n.jgrid,{version:"4.5.2",htmlDecode:function(n){return n&&(n==="&nbsp;"||n==="&#160;"||n.length===1&&n.charCodeAt(0)===160)?"":n?String(n).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&quot;/g,'"').replace(/&amp;/g,"&"):n},htmlEncode:function(n){return n?String(n).replace(/&/g,"&amp;").replace(/\"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):n},format:function(t){var i=n.makeArray(arguments).slice(1);return t==null&&(t=""),t.replace(/\{(\d+)\}/g,function(n,t){return i[t]})},msie:navigator.appName==="Microsoft Internet Explorer",msiever:function(){var n=-1,t=navigator.userAgent,i=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");return i.exec(t)!=null&&(n=parseFloat(RegExp.$1)),n},getCellIndex:function(t){var i=n(t);return i.is("tr")?-1:(i=(!i.is("td")&&!i.is("th")?i.closest("td,th"):i)[0],n.jgrid.msie)?n.inArray(i,i.parentNode.cells):i.cellIndex},stripHtml:function(n){n=String(n);var t=/<("[^"]*"|'[^']*'|[^'">])*>/gi;return n?(n=n.replace(t,""),n&&n!=="&nbsp;"&&n!=="&#160;"?n.replace(/\"/g,"'"):""):n},stripPref:function(t,i){var r=n.type(t);return(r==="string"||r==="number")&&(t=String(t),i=t!==""?String(i).replace(String(t),""):i),i},parse:function(jsonString){var js=jsonString;return js.substr(0,9)==="while(1);"&&(js=js.substr(9)),js.substr(0,2)==="/*"&&(js=js.substr(2,js.length-4)),js||(js="{}"),n.jgrid.useJSON===!0&&typeof JSON=="object"&&typeof JSON.parse=="function"?JSON.parse(js):eval("("+js+")")},parseDate:function(t,i,r,u){var rt=/\\.|[dDjlNSwzWFmMntLoYyaABgGhHisueIOPTZcrU]/g,ut=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,ft=/[^-+\dA-Z]/g,et=new RegExp("^/Date\\((([-+])?[0-9]+)(([-+])([0-9]{2})([0-9]{2}))?\\)/$"),c=typeof i=="string"?i.match(et):null,h=function(n,t){for(n=String(n),t=parseInt(t,10)||2;n.length<t;)n="0"+n;return n},f={m:1,d:1,y:1970,h:0,i:0,s:0,u:0},o=0,s,e,nt,tt=function(n,t){return n===0?t===12&&(t=0):t!==12&&(t+=12),t},p,a;if(u===undefined&&(u=n.jgrid.formatter.date),u.parseRe===undefined&&(u.parseRe=/[Tt\\\/:_;.,\t\s-]/),u.masks.hasOwnProperty(t)&&(t=u.masks[t]),i&&i!=null)if(isNaN(+i)||String(t).toLowerCase()!=="u")if(i.constructor===Date)o=i;else if(c!==null)o=new Date(parseInt(c[1],10)),c[3]&&(p=Number(c[5])*60+Number(c[6]),p*=c[4]==="-"?1:-1,p-=o.getTimezoneOffset(),o.setTime(Number(Number(o)+p*6e4)));else{for(i=String(i).replace(/\\T/g,"T").replace(/\\t/,"t").split(u.parseRe),t=t.replace(/\\T/g,"T").replace(/\\t/,"t").split(u.parseRe),e=0,nt=t.length;e<nt;e++)t[e]==="M"&&(s=n.inArray(i[e],u.monthNames),s!==-1&&s<12&&(i[e]=s+1,f.m=i[e])),t[e]==="F"&&(s=n.inArray(i[e],u.monthNames,12),s!==-1&&s>11&&(i[e]=s+1-12,f.m=i[e])),t[e]==="a"&&(s=n.inArray(i[e],u.AmPm),s!==-1&&s<2&&i[e]===u.AmPm[s]&&(i[e]=s,f.h=tt(i[e],f.h))),t[e]==="A"&&(s=n.inArray(i[e],u.AmPm),s!==-1&&s>1&&i[e]===u.AmPm[s]&&(i[e]=s-2,f.h=tt(i[e],f.h))),t[e]==="g"&&(f.h=parseInt(i[e],10)),i[e]!==undefined&&(f[t[e].toLowerCase()]=parseInt(i[e],10));if(f.f&&(f.m=f.f),f.m===0&&f.y===0&&f.d===0)return"&#160;";f.m=parseInt(f.m,10)-1,a=f.y,a>=70&&a<=99?f.y=1900+f.y:a>=0&&a<=69&&(f.y=2e3+f.y),o=new Date(f.y,f.m,f.d,f.h,f.i,f.s,f.u)}else o=new Date(parseFloat(i)*1e3);else o=new Date(f.y,f.m,f.d,f.h,f.i,f.s,f.u);if(r===undefined)return o;u.masks.hasOwnProperty(r)?r=u.masks[r]:r||(r="Y-m-d");var l=o.getHours(),ot=o.getMinutes(),w=o.getDate(),v=o.getMonth()+1,d=o.getTimezoneOffset(),st=o.getSeconds(),ht=o.getMilliseconds(),b=o.getDay(),y=o.getFullYear(),k=(b+6)%7+1,g=(new Date(y,v-1,w)-new Date(y,0,1))/864e5,it={d:h(w),D:u.dayNames[b],j:w,l:u.dayNames[b+7],N:k,S:u.S(w),w:b,z:g,W:k<5?Math.floor((g+k-1)/7)+1:Math.floor((g+k-1)/7)||((new Date(y-1,0,1).getDay()+6)%7<4?53:52),F:u.monthNames[v- -11],m:h(v),M:u.monthNames[v-1],n:v,t:"?",L:"?",o:"?",Y:y,y:String(y).substring(2),a:l<12?u.AmPm[0]:u.AmPm[1],A:l<12?u.AmPm[2]:u.AmPm[3],B:"?",g:l%12||12,G:l,h:h(l%12||12),H:h(l),i:h(ot),s:h(st),u:ht,e:"?",I:"?",O:(d>0?"-":"+")+h(Math.floor(Math.abs(d)/60)*100+Math.abs(d)%60,4),P:"?",T:(String(o).match(ut)||[""]).pop().replace(ft,""),Z:"?",c:"?",r:"?",U:Math.floor(o/1e3)};return r.replace(rt,function(n){return it.hasOwnProperty(n)?it[n]:n.substring(1)})},jqID:function(n){return String(n).replace(/[!"#$%&'()*+,.\/:; <=>?@\[\\\]\^`{|}~]/g,"\\$&")},guid:1,uidPref:"jqg",randId:function(t){return(t||n.jgrid.uidPref)+n.jgrid.guid++},getAccessor:function(n,t){var i,f,r=[],u;if(typeof t=="function")return t(n);if(i=n[t],i===undefined)try{if(typeof t=="string"&&(r=t.split(".")),u=r.length,u)for(i=n;i&&u--;)f=r.shift(),i=i[f]}catch(e){}return i},getXmlData:function(t,i,r){var f,u=typeof i=="string"?i.match(/^(.*)\[(\w+)\]$/):null;return typeof i=="function"?i(t):u&&u[2]?u[1]?n(u[1],t).attr(u[2]):n(t).attr(u[2]):(f=n(i,t),r)?f:f.length>0?n(f).text():undefined},cellWidth:function(){var t=n("<div class='ui-jqgrid' style='left:10000px'><table class='ui-jqgrid-btable' style='width:5px;'><tr class='jqgrow'><td style='width:5px;'><\/td><\/tr><\/table><\/div>"),i=t.appendTo("body").find("td").width();return t.remove(),i!==5},cell_width:!0,ajaxOptions:{},from:function(t){var i=function(t,i){typeof t=="string"&&(t=n.data(t));var r=this,u=t,c=!0,o=!1,f=i,v=/[\$,%]/g,l=null,y=null,p=0,e=!1,a="",s=[],h=!0;if(typeof t=="object"&&t.push)t.length>0&&(h=typeof t[0]!="object"?!1:!0);else throw"data provides is not an array";return this._hasData=function(){return u===null?!1:u.length===0?!1:!0},this._getStr=function(n){var t=[];return o&&t.push("jQuery.trim("),t.push("String("+n+")"),o&&t.push(")"),c||t.push(".toLowerCase()"),t.join("")},this._strComp=function(n){return typeof n=="string"?".toString()":""},this._group=function(n,t){return{field:n.toString(),unique:t,items:[]}},this._toStr=function(t){return o&&(t=n.trim(t)),t=t.toString().replace(/\\/g,"\\\\").replace(/\"/g,'\\"'),c?t:t.toLowerCase()},this._funcLoop=function(t){var i=[];return n.each(u,function(n,r){i.push(t(r))}),i},this._append=function(n){var t;for(f===null?f="":f+=a===""?" && ":a,t=0;t<p;t++)f+="(";e&&(f+="!"),f+="("+n+")",e=!1,a="",p=0},this._setCommand=function(n,t){l=n,y=t},this._resetNegate=function(){e=!1},this._repeatCommand=function(n,t){return l===null?r:n!==null&&t!==null?l(n,t):y===null?l(n):h?l(y,n):l(n)},this._equals=function(n,t){return r._compare(n,t,1)===0},this._compare=function(n,t,i){var r=Object.prototype.toString;return(i===undefined&&(i=1),n===undefined&&(n=null),t===undefined&&(t=null),n===null&&t===null)?0:n===null&&t!==null?1:n!==null&&t===null?-1:r.call(n)==="[object Date]"&&r.call(t)==="[object Date]"?n<t?-i:n>t?i:0:(c||typeof n=="number"||typeof t=="number"||(n=String(n),t=String(t)),n<t)?-i:n>t?i:0},this._performSort=function(){s.length!==0&&(u=r._doSort(u,0))},this._doSort=function(n,t){var h=s[t].by,c=s[t].dir,l=s[t].type,a=s[t].datefmt,f,e,i,u,o;if(t===s.length-1)return r._getOrder(n,h,c,l,a);for(t++,f=r._getGroup(n,h,c,l,a),e=[],i=0;i<f.length;i++)for(o=r._doSort(f[i].items,t),u=0;u<o.length;u++)e.push(o[u]);return e},this._getOrder=function(t,i,u,f,e){var a=[],l=[],w=u==="a"?1:-1,y,o,h,s,p;for(f===undefined&&(f="text"),s=f==="float"||f==="number"||f==="currency"||f==="numeric"?function(n){var t=parseFloat(String(n).replace(v,""));return isNaN(t)?0:t}:f==="int"||f==="integer"?function(n){return n?parseFloat(String(n).replace(v,"")):0}:f==="date"||f==="datetime"?function(t){return n.jgrid.parseDate(e,t).getTime()}:n.isFunction(f)?f:function(t){return t=t?n.trim(String(t)):"",c?t:t.toLowerCase()},n.each(t,function(t,r){o=i!==""?n.jgrid.getAccessor(r,i):r,o===undefined&&(o=""),o=s(o,r),l.push({vSort:o,index:t})}),l.sort(function(n,t){return n=n.vSort,t=t.vSort,r._compare(n,t,w)}),h=0,p=t.length;h<p;)y=l[h].index,a.push(t[y]),h++;return a},this._getGroup=function(t,i,u,f,e){var h=[],o=null,c=null,s;return n.each(r._getOrder(t,i,u,f,e),function(t,u){s=n.jgrid.getAccessor(u,i),s==null&&(s=""),r._equals(c,s)||(c=s,o!==null&&h.push(o),o=r._group(i,s)),o.items.push(u)}),o!==null&&h.push(o),h},this.ignoreCase=function(){return c=!1,r},this.useCase=function(){return c=!0,r},this.trim=function(){return o=!0,r},this.noTrim=function(){return o=!1,r},this.execute=function(){var t=f,i=[];return t===null?r:(n.each(u,function(){eval(t)&&i.push(this)}),u=i,r)},this.data=function(){return u},this.select=function(t){if(r._performSort(),!r._hasData())return[];if(r.execute(),n.isFunction(t)){var i=[];return n.each(u,function(n,r){i.push(t(r))}),i}return u},this.hasMatch=function(){return r._hasData()?(r.execute(),u.length>0):!1},this.andNot=function(n,t,i){return e=!e,r.and(n,t,i)},this.orNot=function(n,t,i){return e=!e,r.or(n,t,i)},this.not=function(n,t,i){return r.andNot(n,t,i)},this.and=function(n,t,i){return(a=" && ",n===undefined)?r:r._repeatCommand(n,t,i)},this.or=function(n,t,i){return(a=" || ",n===undefined)?r:r._repeatCommand(n,t,i)},this.orBegin=function(){return p++,r},this.orEnd=function(){return f!==null&&(f+=")"),r},this.isNot=function(n){return e=!e,r.is(n)},this.is=function(n){return r._append("this."+n),r._resetNegate(),r},this._compareValues=function(t,i,u,f,e){var s,o,c;if(s=h?"jQuery.jgrid.getAccessor(this,'"+i+"')":"this",u===undefined&&(u=null),o=u,c=e.stype===undefined?"text":e.stype,u!==null)switch(c){case"int":case"integer":o=isNaN(Number(o))||o===""?"0":o,s="parseInt("+s+",10)",o="parseInt("+o+",10)";break;case"float":case"number":case"numeric":o=String(o).replace(v,""),o=isNaN(Number(o))||o===""?"0":o,s="parseFloat("+s+")",o="parseFloat("+o+")";break;case"date":case"datetime":o=String(n.jgrid.parseDate(e.newfmt||"Y-m-d",o).getTime()),s='jQuery.jgrid.parseDate("'+e.srcfmt+'",'+s+").getTime()";break;default:s=r._getStr(s),o=r._getStr('"'+r._toStr(o)+'"')}return r._append(s+" "+f+" "+o),r._setCommand(t,i),r._resetNegate(),r},this.equals=function(n,t,i){return r._compareValues(r.equals,n,t,"==",i)},this.notEquals=function(n,t,i){return r._compareValues(r.equals,n,t,"!==",i)},this.isNull=function(n,t,i){return r._compareValues(r.equals,n,null,"===",i)},this.greater=function(n,t,i){return r._compareValues(r.greater,n,t,">",i)},this.less=function(n,t,i){return r._compareValues(r.less,n,t,"<",i)},this.greaterOrEquals=function(n,t,i){return r._compareValues(r.greaterOrEquals,n,t,">=",i)},this.lessOrEquals=function(n,t,i){return r._compareValues(r.lessOrEquals,n,t,"<=",i)},this.startsWith=function(t,i){var f=i==null?t:i,u=o?n.trim(f.toString()).length:f.toString().length;return h?r._append(r._getStr("jQuery.jgrid.getAccessor(this,'"+t+"')")+".substr(0,"+u+") == "+r._getStr('"'+r._toStr(i)+'"')):(u=o?n.trim(i.toString()).length:i.toString().length,r._append(r._getStr("this")+".substr(0,"+u+") == "+r._getStr('"'+r._toStr(t)+'"'))),r._setCommand(r.startsWith,t),r._resetNegate(),r},this.endsWith=function(t,i){var u=i==null?t:i,f=o?n.trim(u.toString()).length:u.toString().length;return h?r._append(r._getStr("jQuery.jgrid.getAccessor(this,'"+t+"')")+".substr("+r._getStr("jQuery.jgrid.getAccessor(this,'"+t+"')")+".length-"+f+","+f+') == "'+r._toStr(i)+'"'):r._append(r._getStr("this")+".substr("+r._getStr("this")+'.length-"'+r._toStr(t)+'".length,"'+r._toStr(t)+'".length) == "'+r._toStr(t)+'"'),r._setCommand(r.endsWith,t),r._resetNegate(),r},this.contains=function(n,t){return h?r._append(r._getStr("jQuery.jgrid.getAccessor(this,'"+n+"')")+'.indexOf("'+r._toStr(t)+'",0) > -1'):r._append(r._getStr("this")+'.indexOf("'+r._toStr(n)+'",0) > -1'),r._setCommand(r.contains,n),r._resetNegate(),r},this.groupBy=function(n,t,i,f){return r._hasData()?r._getGroup(u,n,t,i,f):null},this.orderBy=function(t,i,u,f){return i=i==null?"a":n.trim(i.toString().toLowerCase()),u==null&&(u="text"),f==null&&(f="Y-m-d"),(i==="desc"||i==="descending")&&(i="d"),(i==="asc"||i==="ascending")&&(i="a"),s.push({by:t,dir:i,type:u,datefmt:f}),r},r};return new i(t,null)},getMethod:function(t){return this.getAccessor(n.fn.jqGrid,t)},extend:function(t){n.extend(n.fn.jqGrid,t),this.no_legacy_api||n.fn.extend(t)}}),n.fn.jqGrid=function(t){var i,r;if(typeof t=="string"){if(i=n.jgrid.getMethod(t),!i)throw"jqGrid - No such method: "+t;return r=n.makeArray(arguments).slice(1),i.apply(this,r)}return this.each(function(){var f,s,v,et,b,wi,rt,d,ni,ut,ti,ft,o,l,ii,yt,ki;if(!this.grid){var u=n.extend(!0,{url:"",height:150,page:1,rowNum:20,rowTotal:null,records:0,pager:"",pgbuttons:!0,pginput:!0,colModel:[],rowList:[],colNames:[],sortorder:"asc",sortname:"",datatype:"xml",mtype:"GET",altRows:!1,selarrrow:[],savedRow:[],shrinkToFit:!0,xmlReader:{},jsonReader:{},subGrid:!1,subGridModel:[],reccount:0,lastpage:0,lastsort:0,selrow:null,beforeSelectRow:null,onSelectRow:null,onSortCol:null,ondblClickRow:null,onRightClickRow:null,onPaging:null,onSelectAll:null,onInitGrid:null,loadComplete:null,gridComplete:null,loadError:null,loadBeforeSend:null,afterInsertRow:null,beforeRequest:null,beforeProcessing:null,onHeaderClick:null,viewrecords:!1,loadonce:!1,multiselect:!1,multikey:!1,editurl:null,search:!1,caption:"",hidegrid:!0,hiddengrid:!1,postData:{},userData:{},treeGrid:!1,treeGridModel:"nested",treeReader:{},treeANode:-1,ExpandColumn:null,tree_root_level:0,prmNames:{page:"page",rows:"rows",sort:"sidx",order:"sord",search:"_search",nd:"nd",id:"id",oper:"oper",editoper:"edit",addoper:"add",deloper:"del",subgridid:"id",npage:null,totalrows:"totalrows"},forceFit:!1,gridstate:"visible",cellEdit:!1,cellsubmit:"remote",nv:0,loadui:"enable",toolbar:[!1,""],scroll:!1,multiboxonly:!1,deselectAfterSort:!0,scrollrows:!1,autowidth:!1,scrollOffset:18,cellLayout:5,subGridWidth:20,multiselectWidth:20,gridview:!1,rownumWidth:25,rownumbers:!1,pagerpos:"center",recordpos:"right",footerrow:!1,userDataOnFooter:!1,hoverrows:!0,altclass:"ui-priority-secondary",viewsortcols:[!1,"vertical",!0],resizeclass:"",autoencode:!1,remapColumns:[],ajaxGridOptions:{},direction:"ltr",toppager:!1,headertitles:!1,scrollTimeout:40,data:[],_index:{},grouping:!1,groupingView:{groupField:[],groupOrder:[],groupText:[],groupColumnShow:[],groupSummary:[],showSummaryOnHide:!1,sortitems:[],sortnames:[],summary:[],summaryval:[],plusicon:"ui-icon-circlesmall-plus",minusicon:"ui-icon-circlesmall-minus",displayField:[]},ignoreCase:!1,cmTemplate:{},idPrefix:"",multiSort:!1},n.jgrid.defaults,t||{}),i=this,r={headers:[],cols:[],footers:[],dragStart:function(t,r,f){this.resizing={idx:t,startX:r.clientX,sOL:f[0]},this.hDiv.style.cursor="col-resize",this.curGbox=n("#rs_m"+n.jgrid.jqID(u.id),"#gbox_"+n.jgrid.jqID(u.id)),this.curGbox.css({display:"block",left:f[0],top:f[1],height:f[2]}),n(i).triggerHandler("jqGridResizeStart",[r,t]),n.isFunction(u.resizeStart)&&u.resizeStart.call(i,r,t),document.onselectstart=function(){return!1}},dragMove:function(n){if(this.resizing){var t=n.clientX-this.resizing.startX,i=this.headers[this.resizing.idx],f=u.direction==="ltr"?i.width+t:i.width-t,r,e;f>33&&(this.curGbox.css({left:this.resizing.sOL+t}),u.forceFit===!0?(r=this.headers[this.resizing.idx+u.nv],e=u.direction==="ltr"?r.width-t:r.width+t,e>33&&(i.newWidth=f,r.newWidth=e)):(this.newWidth=u.direction==="ltr"?u.tblwidth+t:u.tblwidth-t,i.newWidth=f))}},dragEnd:function(){if(this.hDiv.style.cursor="default",this.resizing){var t=this.resizing.idx,r=this.headers[t].newWidth||this.headers[t].width;r=parseInt(r,10),this.resizing=!1,n("#rs_m"+n.jgrid.jqID(u.id)).css("display","none"),u.colModel[t].width=r,this.headers[t].width=r,this.headers[t].el.style.width=r+"px",this.cols[t].style.width=r+"px",this.footers.length>0&&(this.footers[t].style.width=r+"px"),u.forceFit===!0?(r=this.headers[t+u.nv].newWidth||this.headers[t+u.nv].width,this.headers[t+u.nv].width=r,this.headers[t+u.nv].el.style.width=r+"px",this.cols[t+u.nv].style.width=r+"px",this.footers.length>0&&(this.footers[t+u.nv].style.width=r+"px"),u.colModel[t+u.nv].width=r):(u.tblwidth=this.newWidth||u.tblwidth,n("table:first",this.bDiv).css("width",u.tblwidth+"px"),n("table:first",this.hDiv).css("width",u.tblwidth+"px"),this.hDiv.scrollLeft=this.bDiv.scrollLeft,u.footerrow&&(n("table:first",this.sDiv).css("width",u.tblwidth+"px"),this.sDiv.scrollLeft=this.bDiv.scrollLeft)),n(i).triggerHandler("jqGridResizeStop",[r,t]),n.isFunction(u.resizeStop)&&u.resizeStop.call(i,r,t)}this.curGbox=null,document.onselectstart=function(){return!0}},populateVisible:function(){var e,t,a,o;if(r.timer&&clearTimeout(r.timer),r.timer=null,e=n(r.bDiv).height(),e){if(t=n("table:first",r.bDiv),t[0].rows.length)try{a=t[0].rows[1],o=a?n(a).outerHeight()||r.prevRowHeight:r.prevRowHeight}catch(p){o=r.prevRowHeight}if(o){r.prevRowHeight=o;var y=u.rowNum,s=r.scrollTop=r.bDiv.scrollTop,h=Math.round(t.position().top)-s,c=h+t.height(),i=o*y,f,l,v;if(c<e&&h<=0&&(u.lastpage===undefined||parseInt((c+s+i-1)/i,10)<=u.lastpage)&&(l=parseInt((e-c+i-1)/i,10),c>=0||l<2||u.scroll===!0?(f=Math.round((c+s)/i)+1,h=-1):h=1),h>0&&(f=parseInt(s/i,10)+1,l=parseInt((s+e)/i,10)+2-f,v=!0),l){if(u.lastpage&&(f>u.lastpage||u.lastpage===1||f===u.page&&f===u.lastpage))return;r.hDiv.loading?r.timer=setTimeout(r.populateVisible,u.scrollTimeout):(u.page=f,v&&(r.selectionPreserver(t[0]),r.emptyRows.call(t[0],!1,!1)),r.populate(l))}}}},scrollGrid:function(n){if(u.scroll){var t=r.bDiv.scrollTop;r.scrollTop===undefined&&(r.scrollTop=0),t!==r.scrollTop&&(r.scrollTop=t,r.timer&&clearTimeout(r.timer),r.timer=setTimeout(r.populateVisible,u.scrollTimeout))}r.hDiv.scrollLeft=r.bDiv.scrollLeft,u.footerrow&&(r.sDiv.scrollLeft=r.bDiv.scrollLeft),n&&n.stopPropagation()},selectionPreserver:function(t){var i=t.p,u=i.selrow,r=i.selarrrow?n.makeArray(i.selarrrow):null,e=t.grid.bDiv.scrollLeft,f=function(){var o;if(i.selrow=null,i.selarrrow=[],i.multiselect&&r&&r.length>0)for(o=0;o<r.length;o++)r[o]!==u&&n(t).jqGrid("setSelection",r[o],!1,null);u&&n(t).jqGrid("setSelection",u,!1,null),t.grid.bDiv.scrollLeft=e,n(t).unbind(".selectionPreserver",f)};n(t).bind("jqGridGridComplete.selectionPreserver",f)}};if(this.tagName.toUpperCase()!=="TABLE"){alert("Element is not a table");return}if(document.documentMode!==undefined&&document.documentMode<=5){alert("Grid can not be used in this ('quirks') mode!");return}if(n(this).empty().attr("tabindex","0"),this.p=u,this.p.useProp=!!n.fn.prop,this.p.colNames.length===0)for(f=0;f<this.p.colModel.length;f++)this.p.colNames[f]=this.p.colModel[f].label||this.p.colModel[f].name;if(this.p.colNames.length!==this.p.colModel.length){alert(n.jgrid.errors.model);return}v=n("<div class='ui-jqgrid-view'><\/div>"),et=n.jgrid.msie,i.p.direction=n.trim(i.p.direction.toLowerCase()),n.inArray(i.p.direction,["ltr","rtl"])===-1&&(i.p.direction="ltr"),s=i.p.direction,n(v).insertBefore(this),n(this).removeClass("scroll").appendTo(v),b=n("<div class='ui-jqgrid ui-widget ui-widget-content ui-corner-all'><\/div>"),n(b).attr({id:"gbox_"+this.id,dir:s}).insertBefore(v),n(v).attr("id","gview_"+this.id).appendTo(b),n("<div class='ui-widget-overlay jqgrid-overlay' id='lui_"+this.id+"'><\/div>").insertBefore(v),n("<div class='loading ui-state-default ui-state-active' id='load_"+this.id+"'>"+this.p.loadtext+"<\/div>").insertBefore(v),n(this).attr({cellspacing:"0",cellpadding:"0",border:"0",role:"grid","aria-multiselectable":!!this.p.multiselect,"aria-labelledby":"gbox_"+this.id});var di=["shiftKey","altKey","ctrlKey"],y=function(n,t){return(n=parseInt(n,10),isNaN(n))?t||0:n},nt=function(t,u,f,e,o,s){var c=i.p.colModel[t],y=c.align,l='style="',v=c.classes,p=c.name,a,h=[];return y&&(l+="text-align:"+y+";"),c.hidden===!0&&(l+="display:none;"),u===0?l+="width: "+r.headers[t].width+"px;":c.cellattr&&n.isFunction(c.cellattr)&&(a=c.cellattr.call(i,o,f,e,c,s),a&&typeof a=="string"&&(a=a.replace(/style/i,"style").replace(/title/i,"title"),a.indexOf("title")>-1&&(c.title=!1),a.indexOf("class")>-1&&(v=undefined),h=a.split(/[^-]style/),h.length===2?(h[1]=n.trim(h[1].replace("=","")),(h[1].indexOf("'")===0||h[1].indexOf('"')===0)&&(h[1]=h[1].substring(1)),l+=h[1].replace(/'/gi,'"')):l+='"')),h.length||(h[0]="",l+='"'),l+=(v!==undefined?' class="'+v+'"':"")+(c.title&&f?' title="'+n.jgrid.stripHtml(f)+'"':""),l+=' aria-describedby="'+i.p.id+"_"+p+'"',l+h[0]},ri=function(t){return t==null||t===""?"&#160;":i.p.autoencode?n.jgrid.htmlEncode(t):String(t)},ui=function(t,r,u,f,e){var o=i.p.colModel[u],s,h;return o.formatter!==undefined?(t=String(i.p.idPrefix)!==""?n.jgrid.stripPref(i.p.idPrefix,t):t,h={rowId:t,colModel:o,gid:i.p.id,pos:u},s=n.isFunction(o.formatter)?o.formatter.call(i,r,h,f,e):n.fmatter?n.fn.fmatter.call(i,o.formatter,r,h,f,e):ri(r)):s=ri(r),s},pt=function(n,t,i,r,u,f){var e,o;return e=ui(n,t,i,u,"add"),o=nt(i,r,e,u,n,f),'<td role="gridcell" '+o+">"+e+"<\/td>"},fi=function(n,t,r,u){var f='<input role="checkbox" type="checkbox" id="jqg_'+i.p.id+"_"+n+'" class="cbox" name="jqg_'+i.p.id+"_"+n+'"'+(u?'checked="checked"':"")+"/>",e=nt(t,r,"",null,n,!0);return'<td role="gridcell" '+e+">"+f+"<\/td>"},ei=function(n,t,i,r){var u=(parseInt(i,10)-1)*parseInt(r,10)+1+t,f=nt(n,t,u,null,t,!0);return'<td role="gridcell" class="ui-state-default jqgrid-rownum" '+f+">"+u+"<\/td>"},oi=function(n){for(var t,u=[],f=0,r=0;r<i.p.colModel.length;r++)t=i.p.colModel[r],t.name!=="cb"&&t.name!=="subgrid"&&t.name!=="rn"&&(u[f]=n==="local"?t.name:n==="xml"||n==="xmlstring"?t.xmlmap||t.name:t.jsonmap||t.name,f++);return u},wt=function(t){var r=i.p.remapColumns;return r&&r.length||(r=n.map(i.p.colModel,function(n,t){return t})),t&&(r=n.map(r,function(n){return n<t?null:n-t})),r},tt=function(t,i){var r;this.p.deepempty?n(this.rows).slice(1).remove():(r=this.rows.length>0?this.rows[0]:null,n(this.firstChild).empty().append(r)),t&&this.p.scroll&&(n(this.grid.bDiv.firstChild).css({height:"auto"}),n(this.grid.bDiv.firstChild.firstChild).css({height:0,display:"none"}),this.grid.bDiv.scrollTop!==0&&(this.grid.bDiv.scrollTop=0)),i===!0&&this.p.treeGrid&&(this.p.data=[],this.p._index={})},bt=function(){for(var f=i.p.data.length,r,e=i.p.rownumbers===!0?1:0,o=i.p.multiselect===!0?1:0,s=i.p.subGrid===!0?1:0,u=i.p.keyIndex===!1||i.p.loadonce===!0?i.p.localReader.id:i.p.colModel[i.p.keyIndex+o+s+e].name,t=0;t<f;t++)r=n.jgrid.getAccessor(i.p.data[t],u),r===undefined&&(r=String(t+1)),i.p._index[r]=t},kt=function(t,r,u,f,e,o){var l="-1",a="",h,c=r?"display:none;":"",v="ui-widget-content jqgrow ui-row-"+i.p.direction+(u?" "+u:"")+(o?" ui-state-highlight":""),s=n(i).triggerHandler("jqGridRowAttr",[f,e,t]);if(typeof s!="object"&&(s=n.isFunction(i.p.rowattr)?i.p.rowattr.call(i,f,e,t):{}),!n.isEmptyObject(s)){s.hasOwnProperty("id")&&(t=s.id,delete s.id),s.hasOwnProperty("tabindex")&&(l=s.tabindex,delete s.tabindex),s.hasOwnProperty("style")&&(c+=s.style,delete s.style),s.hasOwnProperty("class")&&(v+=" "+s["class"],delete s["class"]);try{delete s.role}catch(y){}for(h in s)s.hasOwnProperty(h)&&(a+=" "+h+"="+s[h])}return'<tr role="row" id="'+t+'" tabindex="'+l+'" class="'+v+'"'+(c===""?"":' style="'+c+'"')+a+">"},dt=function(t,r,u,f,e){var ri=new Date,st=i.p.datatype!=="local"&&i.p.loadonce||i.p.datatype==="xmlstring",ft="_id_",s=i.p.xmlReader,ui=i.p.datatype==="local"?"local":"xml",g,dt,lt,gt,ni,ti,ii;if(st&&(i.p.data=[],i.p._index={},i.p.localReader.id=ft),i.p.reccount=0,n.isXMLDoc(t))i.p.treeANode!==-1||i.p.scroll?u=u>1?u:1:(tt.call(i,!1,!0),u=1);else return;var it=n(i),v,et,d=0,b,y=i.p.multiselect===!0?1:0,k=0,at,a=i.p.rownumbers===!0?1:0,p,ot,nt=[],ut,o={},l,c,h=[],si=i.p.altRows===!0?i.p.altclass:"",vt;i.p.subGrid===!0&&(k=1,at=n.jgrid.getMethod("addSubGridCell")),s.repeatitems||(nt=oi(ui)),p=i.p.keyIndex===!1?n.isFunction(s.id)?s.id.call(i,t):s.id:i.p.keyIndex,nt.length>0&&!isNaN(p)&&(i.p.remapColumns&&i.p.remapColumns.length&&(p=n.inArray(p,i.p.remapColumns)),p=nt[p]),ot=String(p).indexOf("[")===-1?nt.length?function(t,i){return n(p,t).text()||i}:function(t,i){return n(s.cell,t).eq(p).text()||i}:function(n,t){return n.getAttribute(p.replace(/[\[\]]/g,""))||t},i.p.userData={},i.p.page=n.jgrid.getXmlData(t,s.page)||i.p.page||0,i.p.lastpage=n.jgrid.getXmlData(t,s.total),i.p.lastpage===undefined&&(i.p.lastpage=1),i.p.records=n.jgrid.getXmlData(t,s.records)||0,n.isFunction(s.userdata)?i.p.userData=s.userdata.call(i,t)||{}:n.jgrid.getXmlData(t,s.userdata,!0).each(function(){i.p.userData[this.getAttribute("name")]=n(this).text()}),g=n.jgrid.getXmlData(t,s.root,!0),g=n.jgrid.getXmlData(g,s.row,!0),g||(g=[]);var rt=g.length,w=0,ht=[],ct=parseInt(i.p.rowNum,10),yt=i.p.scroll?n.jgrid.randId():1,bt;if(rt>0&&i.p.page<=0&&(i.p.page=1),g&&rt)for(e&&(ct*=e+1),dt=n.isFunction(i.p.afterInsertRow),lt=!1,i.p.grouping&&(lt=i.p.groupingView.groupCollapse===!0,gt=n.jgrid.getMethod("groupingPrepare"));w<rt;){if(l=g[w],c=ot(l,yt+w),c=i.p.idPrefix+c,bt=u===0?0:u+1,vt=(bt+w)%2==1?si:"",ni=h.length,h.push(""),a&&h.push(ei(0,w,i.p.page,i.p.rowNum)),y&&h.push(fi(c,a,w,!1)),k&&h.push(at.call(it,y+a,w+u)),s.repeatitems)ut||(ut=wt(y+k+a)),ti=n.jgrid.getXmlData(l,s.cell,!0),n.each(ut,function(n){var t=ti[this];if(!t)return!1;b=t.textContent||t.text,o[i.p.colModel[n+y+k+a].name]=b,h.push(pt(c,b,n+y+k+a,w+u,l,o))});else for(v=0;v<nt.length;v++)b=n.jgrid.getXmlData(l,nt[v]),o[i.p.colModel[v+y+k+a].name]=b,h.push(pt(c,b,v+y+k+a,w+u,l,o));if(h[ni]=kt(c,lt,vt,o,l,!1),h.push("<\/tr>"),i.p.grouping&&(ht=gt.call(it,h,ht,o,w),h=[]),(st||i.p.treeGrid===!0)&&(o[ft]=n.jgrid.stripPref(i.p.idPrefix,c),i.p.data.push(o),i.p._index[o[ft]]=i.p.data.length-1),i.p.gridview===!1&&(n("tbody:first",r).append(h.join("")),it.triggerHandler("jqGridAfterInsertRow",[c,o,l]),dt&&i.p.afterInsertRow.call(i,c,o,l),h=[]),o={},d++,w++,d===ct)break}if(i.p.gridview===!0&&(et=i.p.treeANode>-1?i.p.treeANode:0,i.p.grouping?(it.jqGrid("groupingRender",ht,i.p.colModel.length),ht=null):i.p.treeGrid===!0&&et>0?n(i.rows[et]).after(h.join("")):n("tbody:first",r).append(h.join(""))),i.p.subGrid===!0)try{it.jqGrid("addSubGrid",y+a)}catch(hi){}if(i.p.totaltime=new Date-ri,d>0&&i.p.records===0&&(i.p.records=rt),h=null,i.p.treeGrid===!0)try{it.jqGrid("setTreeNode",et+1,d+et+1)}catch(ci){}if(i.p.treeGrid||i.p.scroll||(i.grid.bDiv.scrollTop=0),i.p.reccount=d,i.p.treeANode=-1,i.p.userDataOnFooter&&it.jqGrid("footerData","set",i.p.userData,!0),st&&(i.p.records=rt,i.p.lastpage=Math.ceil(rt/ct)),f||i.updatepager(!1,!0),st)while(d<rt){if(l=g[d],c=ot(l,d+yt),c=i.p.idPrefix+c,s.repeatitems)ut||(ut=wt(y+k+a)),ii=n.jgrid.getXmlData(l,s.cell,!0),n.each(ut,function(n){var t=ii[this];if(!t)return!1;b=t.textContent||t.text,o[i.p.colModel[n+y+k+a].name]=b});else for(v=0;v<nt.length;v++)b=n.jgrid.getXmlData(l,nt[v]),o[i.p.colModel[v+y+k+a].name]=b;o[ft]=n.jgrid.stripPref(i.p.idPrefix,c),i.p.data.push(o),i.p._index[o[ft]]=i.p.data.length-1,o={},d++}},ot=function(t,r,u,f,e){var ci=new Date,h,rt,lt,ut,ot,hi,st;if(t)i.p.treeANode!==-1||i.p.scroll?u=u>1?u:1:(tt.call(i,!1,!0),u=1);else return;rt="_id_",ut=i.p.datatype!=="local"&&i.p.loadonce||i.p.datatype==="jsonstring",ut&&(i.p.data=[],i.p._index={},i.p.localReader.id=rt),i.p.reccount=0,i.p.datatype==="local"?(h=i.p.localReader,lt="local"):(h=i.p.jsonReader,lt="json");var nt=n(i),b=0,at,y,p,ft=[],s,w=i.p.multiselect?1:0,k=i.p.subGrid===!0?1:0,dt,v=i.p.rownumbers===!0?1:0,gt=wt(w+k+v),vt=oi(lt),g,it,d,c,l={},et,o,a=[],li=i.p.altRows===!0?i.p.altclass:"",ni,yt;i.p.page=n.jgrid.getAccessor(t,h.page)||i.p.page||0,yt=n.jgrid.getAccessor(t,h.total),k&&(dt=n.jgrid.getMethod("addSubGridCell")),i.p.lastpage=yt===undefined?1:yt,i.p.records=n.jgrid.getAccessor(t,h.records)||0,i.p.userData=n.jgrid.getAccessor(t,h.userdata)||{},c=i.p.keyIndex===!1?n.isFunction(h.id)?h.id.call(i,t):h.id:i.p.keyIndex,h.repeatitems||(ft=vt,ft.length>0&&!isNaN(c)&&(i.p.remapColumns&&i.p.remapColumns.length&&(c=n.inArray(c,i.p.remapColumns)),c=ft[c])),d=n.jgrid.getAccessor(t,h.root),d==null&&n.isArray(t)&&(d=t),d||(d=[]),it=d.length,y=0,it>0&&i.p.page<=0&&(i.p.page=1);var bt=parseInt(i.p.rowNum,10),ti=i.p.scroll?n.jgrid.randId():1,ii,ri=!1,ht;e&&(bt*=e+1),i.p.datatype!=="local"||i.p.deselectAfterSort||(ri=!0);var ai=n.isFunction(i.p.afterInsertRow),ct=[],ui=!1,si;for(i.p.grouping&&(ui=i.p.groupingView.groupCollapse===!0,si=n.jgrid.getMethod("groupingPrepare"));y<it;){for(s=d[y],o=n.jgrid.getAccessor(s,c),o===undefined&&(typeof c=="number"&&i.p.colModel[c+w+k+v]!=null&&(o=n.jgrid.getAccessor(s,i.p.colModel[c+w+k+v].name)),o===undefined&&(o=ti+y,ft.length===0&&h.cell&&(ot=n.jgrid.getAccessor(s,h.cell)||s,o=ot!=null&&ot[c]!==undefined?ot[c]:o,ot=null))),o=i.p.idPrefix+o,ii=u===1?0:u,ni=(ii+y)%2==1?li:"",ri&&(ht=i.p.multiselect?n.inArray(o,i.p.selarrrow)!==-1:o===i.p.selrow),hi=a.length,a.push(""),v&&a.push(ei(0,y,i.p.page,i.p.rowNum)),w&&a.push(fi(o,v,y,ht)),k&&a.push(dt.call(nt,w+v,y+u)),g=vt,h.repeatitems&&(h.cell&&(s=n.jgrid.getAccessor(s,h.cell)||s),n.isArray(s)&&(g=gt)),p=0;p<g.length;p++)at=n.jgrid.getAccessor(s,g[p]),l[i.p.colModel[p+w+k+v].name]=at,a.push(pt(o,at,p+w+k+v,y+u,s,l));if(a[hi]=kt(o,ui,ni,l,s,ht),a.push("<\/tr>"),i.p.grouping&&(ct=si.call(nt,a,ct,l,y),a=[]),(ut||i.p.treeGrid===!0)&&(l[rt]=n.jgrid.stripPref(i.p.idPrefix,o),i.p.data.push(l),i.p._index[l[rt]]=i.p.data.length-1),i.p.gridview===!1&&(n("#"+n.jgrid.jqID(i.p.id)+" tbody:first").append(a.join("")),nt.triggerHandler("jqGridAfterInsertRow",[o,l,s]),ai&&i.p.afterInsertRow.call(i,o,l,s),a=[]),l={},b++,y++,b===bt)break}if(i.p.gridview===!0&&(et=i.p.treeANode>-1?i.p.treeANode:0,i.p.grouping?(nt.jqGrid("groupingRender",ct,i.p.colModel.length),ct=null):i.p.treeGrid===!0&&et>0?n(i.rows[et]).after(a.join("")):n("#"+n.jgrid.jqID(i.p.id)+" tbody:first").append(a.join(""))),i.p.subGrid===!0)try{nt.jqGrid("addSubGrid",w+v)}catch(vi){}if(i.p.totaltime=new Date-ci,b>0&&i.p.records===0&&(i.p.records=it),a=null,i.p.treeGrid===!0)try{nt.jqGrid("setTreeNode",et+1,b+et+1)}catch(yi){}if(i.p.treeGrid||i.p.scroll||(i.grid.bDiv.scrollTop=0),i.p.reccount=b,i.p.treeANode=-1,i.p.userDataOnFooter&&nt.jqGrid("footerData","set",i.p.userData,!0),ut&&(i.p.records=it,i.p.lastpage=Math.ceil(it/bt)),f||i.updatepager(!1,!0),ut)while(b<it&&d[b]){if(s=d[b],o=n.jgrid.getAccessor(s,c),o===undefined&&(typeof c=="number"&&i.p.colModel[c+w+k+v]!=null&&(o=n.jgrid.getAccessor(s,i.p.colModel[c+w+k+v].name)),o===undefined&&(o=ti+b,ft.length===0&&h.cell&&(st=n.jgrid.getAccessor(s,h.cell)||s,o=st!=null&&st[c]!==undefined?st[c]:o,st=null))),s){for(o=i.p.idPrefix+o,g=vt,h.repeatitems&&(h.cell&&(s=n.jgrid.getAccessor(s,h.cell)||s),n.isArray(s)&&(g=gt)),p=0;p<g.length;p++)l[i.p.colModel[p+w+k+v].name]=n.jgrid.getAccessor(s,g[p]);l[rt]=n.jgrid.stripPref(i.p.idPrefix,o),i.p.data.push(l),i.p._index[l[rt]]=i.p.data.length-1,l={}}b++}},gi=function(){function nt(n){var f=0,i,e,s,o,u;if(n.groups!=null){for(e=n.groups.length&&n.groupOp.toString().toUpperCase()==="OR",e&&t.orBegin(),i=0;i<n.groups.length;i++){f>0&&e&&t.or();try{nt(n.groups[i])}catch(h){alert(h)}f++}e&&t.orEnd()}if(n.rules!=null)try{for(s=n.rules.length&&n.groupOp.toString().toUpperCase()==="OR",s&&t.orBegin(),i=0;i<n.rules.length;i++)u=n.rules[i],o=n.groupOp.toString().toUpperCase(),v[u.op]&&u.field&&(f>0&&o&&o==="OR"&&(t=t.or()),t=v[u.op](t,o)(u.field,u.data,r[u.field])),f++;s&&t.orEnd()}catch(c){alert(c)}}var f=i.p.multiSort?[]:"",d=[],y=!1,r={},p=[],g=[],c,s,l,a,w,u,v,t,e;if(n.isArray(i.p.data)){if(a=i.p.grouping?i.p.groupingView:!1,n.each(i.p.colModel,function(){var t,e;if(s=this.sorttype||"text",s==="date"||s==="datetime"?(this.formatter&&typeof this.formatter=="string"&&this.formatter==="date"?(c=this.formatoptions&&this.formatoptions.srcformat?this.formatoptions.srcformat:n.jgrid.formatter.date.srcformat,l=this.formatoptions&&this.formatoptions.newformat?this.formatoptions.newformat:n.jgrid.formatter.date.newformat):c=l=this.datefmt||"Y-m-d",r[this.name]={stype:s,srcfmt:c,newfmt:l}):r[this.name]={stype:s,srcfmt:"",newfmt:""},i.p.grouping)for(u=0,w=a.groupField.length;u<w;u++)this.name===a.groupField[u]&&(t=this.name,this.index&&(t=this.index),p[u]=r[t],g[u]=t);i.p.multiSort?this.lso&&(f.push(this.name),e=this.lso.split("-"),d.push(e[e.length-1])):y||this.index!==i.p.sortname&&this.name!==i.p.sortname||(f=this.name,y=!0)}),i.p.treeGrid){n(i).jqGrid("SortTree",f,i.p.sortorder,r[f].stype,r[f].srcfmt);return}if(v={eq:function(n){return n.equals},ne:function(n){return n.notEquals},lt:function(n){return n.less},le:function(n){return n.lessOrEquals},gt:function(n){return n.greater},ge:function(n){return n.greaterOrEquals},cn:function(n){return n.contains},nc:function(n,t){return t==="OR"?n.orNot().contains:n.andNot().contains},bw:function(n){return n.startsWith},bn:function(n,t){return t==="OR"?n.orNot().startsWith:n.andNot().startsWith},en:function(n,t){return t==="OR"?n.orNot().endsWith:n.andNot().endsWith},ew:function(n){return n.endsWith},ni:function(n,t){return t==="OR"?n.orNot().equals:n.andNot().equals},"in":function(n){return n.equals},nu:function(n){return n.isNull},nn:function(n,t){return t==="OR"?n.orNot().isNull:n.andNot().isNull}},t=n.jgrid.from(i.p.data),i.p.ignoreCase&&(t=t.ignoreCase()),i.p.search===!0)if(e=i.p.postData.filters,e)typeof e=="string"&&(e=n.jgrid.parse(e)),nt(e);else try{t=v[i.p.postData.searchOper](t)(i.p.postData.searchField,i.p.postData.searchString,r[i.p.postData.searchField])}catch(rt){}if(i.p.grouping)for(u=0;u<w;u++)t.orderBy(g[u],a.groupOrder[u],p[u].stype,p[u].srcfmt);i.p.multiSort?n.each(f,function(n){t.orderBy(this,d[n],r[this].stype,r[this].srcfmt)}):f&&i.p.sortorder&&y&&(i.p.sortorder.toUpperCase()==="DESC"?t.orderBy(i.p.sortname,"d",r[f].stype,r[f].srcfmt):t.orderBy(i.p.sortname,"a",r[f].stype,r[f].srcfmt));var h=t.select(),b=parseInt(i.p.rowNum,10),tt=h.length,k=parseInt(i.p.page,10),it=Math.ceil(tt/b),o={};return h=h.slice((k-1)*b,k*b),t=null,r=null,o[i.p.localReader.total]=it,o[i.p.localReader.page]=k,o[i.p.localReader.records]=tt,o[i.p.localReader.root]=h,o[i.p.localReader.userdata]=i.p.userData,h=null,o}},nr=function(t,r){var s,w,u,a,h,v,c,o="",k,f=i.p.pager?"_"+n.jgrid.jqID(i.p.pager.substr(1)):"",e=i.p.toppager?"_"+i.p.toppager.substr(1):"",p,l,b,d;u=parseInt(i.p.page,10)-1,u<0&&(u=0),u=u*parseInt(i.p.rowNum,10),h=u+i.p.reccount,i.p.scroll&&(p=n("tbody:first > tr:gt(0)",i.grid.bDiv),u=h-p.length,i.p.reccount=p.length,l=p.outerHeight()||i.grid.prevRowHeight,l&&(b=u*l,d=parseInt(i.p.records,10)*l,n(">div:first",i.grid.bDiv).css({height:d}).children("div:first").css({height:b,display:b?"":"none"}),i.grid.bDiv.scrollTop==0&&i.p.page>1&&(i.grid.bDiv.scrollTop=i.p.rowNum*(i.p.page-1)*l)),i.grid.bDiv.scrollLeft=i.grid.hDiv.scrollLeft),o=i.p.pager||"",o+=i.p.toppager?o?","+i.p.toppager:i.p.toppager:"",o&&(c=n.jgrid.formatter.integer||{},s=y(i.p.page),w=y(i.p.lastpage),n(".selbox",o)[this.p.useProp?"prop":"attr"]("disabled",!1),i.p.pginput===!0&&(n(".ui-pg-input",o).val(i.p.page),k=i.p.toppager?"#sp_1"+f+",#sp_1"+e:"#sp_1"+f,n(k).html(n.fmatter?n.fmatter.util.NumberFormat(i.p.lastpage,c):i.p.lastpage)),i.p.viewrecords&&(i.p.reccount===0?n(".ui-paging-info",o).html(i.p.emptyrecords):(a=u+1,v=i.p.records,n.fmatter&&(a=n.fmatter.util.NumberFormat(a,c),h=n.fmatter.util.NumberFormat(h,c),v=n.fmatter.util.NumberFormat(v,c)),n(".ui-paging-info",o).html(n.jgrid.format(i.p.recordtext,a,h,v)))),i.p.pgbuttons===!0&&(s<=0&&(s=w=0),s===1||s===0?(n("#first"+f+", #prev"+f).addClass("ui-state-disabled").removeClass("ui-state-hover"),i.p.toppager&&n("#first_t"+e+", #prev_t"+e).addClass("ui-state-disabled").removeClass("ui-state-hover")):(n("#first"+f+", #prev"+f).removeClass("ui-state-disabled"),i.p.toppager&&n("#first_t"+e+", #prev_t"+e).removeClass("ui-state-disabled")),s===w||s===0?(n("#next"+f+", #last"+f).addClass("ui-state-disabled").removeClass("ui-state-hover"),i.p.toppager&&n("#next_t"+e+", #last_t"+e).addClass("ui-state-disabled").removeClass("ui-state-hover")):(n("#next"+f+", #last"+f).removeClass("ui-state-disabled"),i.p.toppager&&n("#next_t"+e+", #last_t"+e).removeClass("ui-state-disabled")))),t===!0&&i.p.rownumbers===!0&&n(">td.jqgrid-rownum",i.rows).each(function(t){n(this).html(u+1+t)}),r&&i.p.jqgdnd&&n(i).jqGrid("gridDnD","updateDnD"),n(i).triggerHandler("jqGridGridComplete"),n.isFunction(i.p.gridComplete)&&i.p.gridComplete.call(i),n(i).triggerHandler("jqGridAfterGridComplete")},st=function(){if(i.grid.hDiv.loading=!0,!i.p.hiddengrid)switch(i.p.loadui){case"enable":n("#load_"+n.jgrid.jqID(i.p.id)).show();break;case"block":n("#lui_"+n.jgrid.jqID(i.p.id)).show(),n("#load_"+n.jgrid.jqID(i.p.id)).show()}},k=function(){i.grid.hDiv.loading=!1;switch(i.p.loadui){case"enable":n("#load_"+n.jgrid.jqID(i.p.id)).hide();break;case"block":n("#lui_"+n.jgrid.jqID(i.p.id)).hide(),n("#load_"+n.jgrid.jqID(i.p.id)).hide()}},p=function(t){var v,s,b,y,w,e,h;if(!i.grid.hDiv.loading){var d=i.p.scroll&&t===!1,u={},c,f,r=i.p.prmNames;i.p.page<=0&&(i.p.page=1),r.search!==null&&(u[r.search]=i.p.search),r.nd!==null&&(u[r.nd]=+new Date),r.rows!==null&&(u[r.rows]=i.p.rowNum),r.page!==null&&(u[r.page]=i.p.page),r.sort!==null&&(u[r.sort]=i.p.sortname),r.order!==null&&(u[r.order]=i.p.sortorder),i.p.rowTotal!==null&&r.totalrows!==null&&(u[r.totalrows]=i.p.rowTotal);var l=n.isFunction(i.p.loadComplete),o=l?i.p.loadComplete:null,a=0;if(t=t||1,t>1?r.npage!==null?(u[r.npage]=t,a=t-1,t=1):o=function(n){i.p.page++,i.grid.hDiv.loading=!1,l&&i.p.loadComplete.call(i,n),p(t-1)}:r.npage!==null&&delete i.p.postData[r.npage],i.p.grouping){for(n(i).jqGrid("groupingSetup"),v=i.p.groupingView,b="",s=0;s<v.groupField.length;s++)y=v.groupField[s],n.each(i.p.colModel,function(n,t){t.name===y&&t.index&&(y=t.index)}),b+=y+" "+v.groupOrder[s]+", ";u[r.sort]=b+u[r.sort]}if(n.extend(i.p.postData,u),w=i.p.scroll?i.rows.length-1:1,e=n(i).triggerHandler("jqGridBeforeRequest"),e===!1||e==="stop")return;if(n.isFunction(i.p.datatype)){i.p.datatype.call(i,i.p.postData,"load_"+i.p.id);return}if(n.isFunction(i.p.beforeRequest)&&(e=i.p.beforeRequest.call(i),e===undefined&&(e=!0),e===!1))return;c=i.p.datatype.toLowerCase();switch(c){case"json":case"jsonp":case"xml":case"script":n.ajax(n.extend({url:i.p.url,type:i.p.mtype,dataType:c,data:n.isFunction(i.p.serializeGridData)?i.p.serializeGridData.call(i,i.p.postData):i.p.postData,success:function(r,u,f){if(n.isFunction(i.p.beforeProcessing)&&i.p.beforeProcessing.call(i,r,u,f)===!1){k();return}c==="xml"?dt(r,i.grid.bDiv,w,t>1,a):ot(r,i.grid.bDiv,w,t>1,a),n(i).triggerHandler("jqGridLoadComplete",[r]),o&&o.call(i,r),n(i).triggerHandler("jqGridAfterLoadComplete",[r]),d&&i.grid.populateVisible(),(i.p.loadonce||i.p.treeGrid)&&(i.p.datatype="local"),r=null,t===1&&k()},error:function(r,u,f){n.isFunction(i.p.loadError)&&i.p.loadError.call(i,r,u,f),t===1&&k(),r=null},beforeSend:function(t,r){var u=!0;if(n.isFunction(i.p.loadBeforeSend)&&(u=i.p.loadBeforeSend.call(i,t,r)),u===undefined&&(u=!0),u===!1)return!1;st()}},n.jgrid.ajaxOptions,i.p.ajaxGridOptions));break;case"xmlstring":st(),f=typeof i.p.datastr!="string"?i.p.datastr:n.parseXML(i.p.datastr),dt(f,i.grid.bDiv),n(i).triggerHandler("jqGridLoadComplete",[f]),l&&i.p.loadComplete.call(i,f),n(i).triggerHandler("jqGridAfterLoadComplete",[f]),i.p.datatype="local",i.p.datastr=null,k();break;case"jsonstring":st(),f=typeof i.p.datastr=="string"?n.jgrid.parse(i.p.datastr):i.p.datastr,ot(f,i.grid.bDiv),n(i).triggerHandler("jqGridLoadComplete",[f]),l&&i.p.loadComplete.call(i,f),n(i).triggerHandler("jqGridAfterLoadComplete",[f]),i.p.datatype="local",i.p.datastr=null,k();break;case"local":case"clientside":st(),i.p.datatype="local",h=gi(),ot(h,i.grid.bDiv,w,t>1,a),n(i).triggerHandler("jqGridLoadComplete",[h]),o&&o.call(i,h),n(i).triggerHandler("jqGridAfterLoadComplete",[h]),d&&i.grid.populateVisible(),k()}}},ht=function(t){n("#cb_"+n.jgrid.jqID(i.p.id),i.grid.hDiv)[i.p.useProp?"prop":"attr"]("checked",t);var r=i.p.frozenColumns?i.p.id+"_frozen":"";r&&n("#cb_"+n.jgrid.jqID(i.p.id),i.grid.fhDiv)[i.p.useProp?"prop":"attr"]("checked",t)},si=function(t,r){var v="<td class='ui-pg-button ui-state-disabled' style='width:4px;'><span class='ui-separator'><\/span><\/td>",e="",u="<table cellspacing='0' cellpadding='0' border='0' style='table-layout:auto;' class='ui-pg-table'><tbody><tr>",o="",f,w,b,k,h,d,c,a=function(t){var r;return(n.isFunction(i.p.onPaging)&&(r=i.p.onPaging.call(i,t)),i.p.selrow=null,i.p.multiselect&&(i.p.selarrrow=[],ht(!1)),i.p.savedRow=[],r==="stop")?!1:!0},l;if(t=t.substr(1),r+="_"+t,f="pg_"+t,w=t+"_left",b=t+"_center",k=t+"_right",n("#"+n.jgrid.jqID(t)).append("<div id='"+f+"' class='ui-pager-control' role='group'><table cellspacing='0' cellpadding='0' border='0' class='ui-pg-table' style='width:100%;table-layout:fixed;height:100%;' role='row'><tbody><tr><td id='"+w+"' align='left'><\/td><td id='"+b+"' align='center' style='white-space:pre;'><\/td><td id='"+k+"' align='right'><\/td><\/tr><\/tbody><\/table><\/div>").attr("dir","ltr"),i.p.rowList.length>0){for(o="<td dir='"+s+"'>",o+="<select class='ui-pg-selbox' role='listbox'>",c=0;c<i.p.rowList.length;c++)o+='<option role="option" value="'+i.p.rowList[c]+'"'+(i.p.rowNum===i.p.rowList[c]?' selected="selected"':"")+">"+i.p.rowList[c]+"<\/option>";o+="<\/select><\/td>"}s==="rtl"&&(u+=o),i.p.pginput===!0&&(e="<td dir='"+s+"'>"+n.jgrid.format(i.p.pgtext||"","<input class='ui-pg-input' type='text' size='2' maxlength='7' value='0' role='textbox'/>","<span id='sp_1_"+n.jgrid.jqID(t)+"'><\/span>")+"<\/td>"),i.p.pgbuttons===!0?(l=["first"+r,"prev"+r,"next"+r,"last"+r],s==="rtl"&&l.reverse(),u+="<td id='"+l[0]+"' class='ui-pg-button ui-corner-all'><span class='ui-icon ui-icon-seek-first'><\/span><\/td>",u+="<td id='"+l[1]+"' class='ui-pg-button ui-corner-all'><span class='ui-icon ui-icon-seek-prev'><\/span><\/td>",u+=e!==""?v+e+v:"",u+="<td id='"+l[2]+"' class='ui-pg-button ui-corner-all'><span class='ui-icon ui-icon-seek-next'><\/span><\/td>",u+="<td id='"+l[3]+"' class='ui-pg-button ui-corner-all'><span class='ui-icon ui-icon-seek-end'><\/span><\/td>"):e!==""&&(u+=e),s==="ltr"&&(u+=o),u+="<\/tr><\/tbody><\/table>",i.p.viewrecords===!0&&n("td#"+t+"_"+i.p.recordpos,"#"+f).append("<div dir='"+s+"' style='text-align:"+i.p.recordpos+"' class='ui-paging-info'><\/div>"),n("td#"+t+"_"+i.p.pagerpos,"#"+f).append(u),d=n(".ui-jqgrid").css("font-size")||"11px",n(document.body).append("<div id='testpg' class='ui-jqgrid ui-widget ui-widget-content' style='font-size:"+d+";visibility:hidden;' ><\/div>"),h=n(u).clone().appendTo("#testpg").width(),n("#testpg").remove(),h>0&&(e!==""&&(h+=50),n("td#"+t+"_"+i.p.pagerpos,"#"+f).width(h)),i.p._nvtd=[],i.p._nvtd[0]=h?Math.floor((i.p.width-h)/2):Math.floor(i.p.width/3),i.p._nvtd[1]=0,u=null,n(".ui-pg-selbox","#"+f).bind("change",function(){return a("records")?(i.p.page=Math.round(i.p.rowNum*(i.p.page-1)/this.value-.5)+1,i.p.rowNum=this.value,i.p.pager&&n(".ui-pg-selbox",i.p.pager).val(this.value),i.p.toppager&&n(".ui-pg-selbox",i.p.toppager).val(this.value),p(),!1):!1}),i.p.pgbuttons===!0&&(n(".ui-pg-button","#"+f).hover(function(){n(this).hasClass("ui-state-disabled")?this.style.cursor="default":(n(this).addClass("ui-state-hover"),this.style.cursor="pointer")},function(){n(this).hasClass("ui-state-disabled")||(n(this).removeClass("ui-state-hover"),this.style.cursor="default")}),n("#first"+n.jgrid.jqID(r)+", #prev"+n.jgrid.jqID(r)+", #next"+n.jgrid.jqID(r)+", #last"+n.jgrid.jqID(r)).click(function(){var n=y(i.p.page,1),t=y(i.p.lastpage,1),u=!1,o=!0,s=!0,f=!0,e=!0;return(t===0||t===1?(o=!1,s=!1,f=!1,e=!1):t>1&&n>=1?n===1?(o=!1,s=!1):n===t&&(f=!1,e=!1):t>1&&n===0&&(f=!1,e=!1,n=t-1),!a(this.id))?!1:(this.id==="first"+r&&o&&(i.p.page=1,u=!0),this.id==="prev"+r&&s&&(i.p.page=n-1,u=!0),this.id==="next"+r&&f&&(i.p.page=n+1,u=!0),this.id==="last"+r&&e&&(i.p.page=t,u=!0),u&&p(),!1)})),i.p.pginput===!0&&n("input.ui-pg-input","#"+f).keypress(function(t){var r=t.charCode||t.keyCode||0;return r===13?a("user")?(n(this).val(y(n(this).val(),1)),i.p.page=n(this).val()>0?n(this).val():i.p.page,p(),!1):!1:this})},tr=function(t,r){var o,f="",u=i.p.colModel,h=!1,c,e=i.p.frozenColumns?r:i.grid.headers[t].el,s="";n("span.ui-grid-ico-sort",e).addClass("ui-state-disabled"),n(e).attr("aria-selected","false"),u[t].lso?u[t].lso==="asc"?(u[t].lso+="-desc",s="desc"):u[t].lso==="desc"?(u[t].lso+="-asc",s="asc"):(u[t].lso==="asc-desc"||u[t].lso==="desc-asc")&&(u[t].lso=""):u[t].lso=s=u.firstsortorder||"asc",s?(n("span.s-ico",e).show(),n("span.ui-icon-"+s,e).removeClass("ui-state-disabled"),n(e).attr("aria-selected","true")):i.p.viewsortcols[0]||n("span.s-ico",e).hide(),i.p.sortorder="",n.each(u,function(n){this.lso&&(n>0&&h&&(f+=", "),o=this.lso.split("-"),f+=u[n].index||u[n].name,f+=" "+o[o.length-1],h=!0,i.p.sortorder=o[o.length-1])}),c=f.lastIndexOf(i.p.sortorder),f=f.substring(0,c),i.p.sortname=f},hi=function(t,r,u,f,e){var h,o,s,c;if(i.p.colModel[r].sortable&&!(i.p.savedRow.length>0)){if(u||(i.p.lastsort===r?i.p.sortorder==="asc"?i.p.sortorder="desc":i.p.sortorder==="desc"&&(i.p.sortorder="asc"):i.p.sortorder=i.p.colModel[r].firstsortorder||"asc",i.p.page=1),i.p.multiSort)tr(r,e);else{if(f){if(i.p.lastsort===r&&i.p.sortorder===f&&!u)return;i.p.sortorder=f}o=i.grid.headers[i.p.lastsort].el,s=i.p.frozenColumns?e:i.grid.headers[r].el,n("span.ui-grid-ico-sort",o).addClass("ui-state-disabled"),n(o).attr("aria-selected","false"),i.p.frozenColumns&&(i.grid.fhDiv.find("span.ui-grid-ico-sort").addClass("ui-state-disabled"),i.grid.fhDiv.find("th").attr("aria-selected","false")),n("span.ui-icon-"+i.p.sortorder,s).removeClass("ui-state-disabled"),n(s).attr("aria-selected","true"),i.p.viewsortcols[0]||i.p.lastsort!==r&&(i.p.frozenColumns&&i.grid.fhDiv.find("span.s-ico").hide(),n("span.s-ico",o).hide(),n("span.s-ico",s).show()),t=t.substring(5+i.p.id.length+1),i.p.sortname=i.p.colModel[r].index||t,h=i.p.sortorder}if(n(i).triggerHandler("jqGridSortCol",[t,r,h])==="stop"){i.p.lastsort=r;return}if(n.isFunction(i.p.onSortCol)&&i.p.onSortCol.call(i,t,r,h)==="stop"){i.p.lastsort=r;return}i.p.datatype==="local"?i.p.deselectAfterSort&&n(i).jqGrid("resetSelection"):(i.p.selrow=null,i.p.multiselect&&ht(!1),i.p.selarrrow=[],i.p.savedRow=[]),i.p.scroll&&(c=i.grid.bDiv.scrollLeft,tt.call(i,!0,!1),i.grid.hDiv.scrollLeft=c),i.p.subGrid&&i.p.datatype==="local"&&n("td.sgexpanded","#"+n.jgrid.jqID(i.p.id)).each(function(){n(this).trigger("click")}),p(),i.p.lastsort=r,i.p.sortname!==t&&r&&(i.p.lastsort=r)}},ir=function(){var t=0,u=n.jgrid.cell_width?0:y(i.p.cellLayout,0),f=0,c,h=y(i.p.scrollOffset,0),o,l=!1,a,e=0,s;n.each(i.p.colModel,function(){if(this.hidden===undefined&&(this.hidden=!1),i.p.grouping&&i.p.autowidth){var r=n.inArray(this.name,i.p.groupingView.groupField);r>=0&&i.p.groupingView.groupColumnShow.length>r&&(this.hidden=!i.p.groupingView.groupColumnShow[r])}this.widthOrg=o=y(this.width,0),this.hidden===!1&&(t+=o+u,this.fixed?e+=o+u:f++)}),isNaN(i.p.width)&&(i.p.width=t+(i.p.shrinkToFit===!1&&!isNaN(i.p.height)?h:0)),r.width=i.p.width,i.p.tblwidth=t,i.p.shrinkToFit===!1&&i.p.forceFit===!0&&(i.p.forceFit=!1),i.p.shrinkToFit===!0&&f>0&&(a=r.width-u*f-e,isNaN(i.p.height)||(a-=h,l=!0),t=0,n.each(i.p.colModel,function(n){this.hidden!==!1||this.fixed||(o=Math.round(a*this.width/(i.p.tblwidth-u*f-e)),this.width=o,t+=o,c=n)}),s=0,l?r.width-e-(t+u*f)!==h&&(s=r.width-e-(t+u*f)-h):l||Math.abs(r.width-e-(t+u*f))===1||(s=r.width-e-(t+u*f)),i.p.colModel[c].width+=s,i.p.tblwidth=t+s+u*f+e,i.p.tblwidth>i.p.width&&(i.p.colModel[c].width-=i.p.tblwidth-parseInt(i.p.width,10),i.p.tblwidth=i.p.width))},rr=function(n){for(var u=n,r=n,t=n+1;t<i.p.colModel.length;t++)if(i.p.colModel[t].hidden!==!0){r=t;break}return r-u},ur=function(t){var u=n(i.grid.headers[t].el),r=[u.position().left+u.outerWidth()];return i.p.direction==="rtl"&&(r[0]=i.p.width-r[0]),r[0]-=i.grid.bDiv.scrollLeft,r.push(n(i.grid.hDiv).position().top),r.push(n(i.grid.bDiv).offset().top-n(i.grid.hDiv).offset().top+n(i.grid.bDiv).height()),r},ci=function(t){for(var u=i.grid.headers,f=n.jgrid.getCellIndex(t),r=0;r<u.length;r++)if(t===u[r].el){f=r;break}return f};for(this.p.id=this.id,n.inArray(i.p.multikey,di)===-1&&(i.p.multikey=!1),i.p.keyIndex=!1,f=0;f<i.p.colModel.length;f++)i.p.colModel[f]=n.extend(!0,{},i.p.cmTemplate,i.p.colModel[f].template||{},i.p.colModel[f]),i.p.keyIndex===!1&&i.p.colModel[f].key===!0&&(i.p.keyIndex=f);if(i.p.sortorder=i.p.sortorder.toLowerCase(),n.jgrid.cell_width=n.jgrid.cellWidth(),i.p.grouping===!0&&(i.p.scroll=!1,i.p.rownumbers=!1,i.p.treeGrid=!1,i.p.gridview=!0),this.p.treeGrid===!0){try{n(this).jqGrid("setTreeGrid")}catch(fr){}i.p.datatype!=="local"&&(i.p.localReader={id:"_id_"})}if(this.p.subGrid)try{n(i).jqGrid("setSubGrid")}catch(er){}this.p.multiselect&&(this.p.colNames.unshift("<input role='checkbox' id='cb_"+this.p.id+"' class='cbox' type='checkbox'/>"),this.p.colModel.unshift({name:"cb",width:n.jgrid.cell_width?i.p.multiselectWidth+i.p.cellLayout:i.p.multiselectWidth,sortable:!1,resizable:!1,hidedlg:!0,search:!1,align:"center",fixed:!0})),this.p.rownumbers&&(this.p.colNames.unshift(""),this.p.colModel.unshift({name:"rn",width:i.p.rownumWidth,sortable:!1,resizable:!1,hidedlg:!0,search:!1,align:"center",fixed:!0})),i.p.xmlReader=n.extend(!0,{root:"rows",row:"row",page:"rows>page",total:"rows>total",records:"rows>records",repeatitems:!0,cell:"cell",id:"[id]",userdata:"userdata",subgrid:{root:"rows",row:"row",repeatitems:!0,cell:"cell"}},i.p.xmlReader),i.p.jsonReader=n.extend(!0,{root:"rows",page:"page",total:"total",records:"records",repeatitems:!0,cell:"cell",id:"id",userdata:"userdata",subgrid:{root:"rows",repeatitems:!0,cell:"cell"}},i.p.jsonReader),i.p.localReader=n.extend(!0,{root:"rows",page:"page",total:"total",records:"records",repeatitems:!1,cell:"cell",id:"id",userdata:"userdata",subgrid:{root:"rows",repeatitems:!0,cell:"cell"}},i.p.localReader),i.p.scroll&&(i.p.pgbuttons=!1,i.p.pginput=!1,i.p.rowList=[]),i.p.data.length&&bt();var a="<thead><tr class='ui-jqgrid-labels' role='rowheader'>",li,gt,ct,lt,at,h,e,ai,vt,vi="",yi="",it=[],pi=[],w=[];if(i.p.shrinkToFit===!0&&i.p.forceFit===!0)for(f=i.p.colModel.length-1;f>=0;f--)if(!i.p.colModel[f].hidden){i.p.colModel[f].resizable=!1;break}if(i.p.viewsortcols[1]==="horizontal"&&(vi=" ui-i-asc",yi=" ui-i-desc"),li=et?"class='ui-th-div-ie'":"",vt="<span class='s-ico' style='display:none'><span sort='asc' class='ui-grid-ico-sort ui-icon-asc"+vi+" ui-state-disabled ui-icon ui-icon-triangle-1-n ui-sort-"+s+"'><\/span>",vt+="<span sort='desc' class='ui-grid-ico-sort ui-icon-desc"+yi+" ui-state-disabled ui-icon ui-icon-triangle-1-s ui-sort-"+s+"'><\/span><\/span>",i.p.multiSort)for(it=i.p.sortname.split(","),f=0;f<it.length;f++)w=n.trim(it[f]).split(" "),it[f]=n.trim(w[0]),pi[f]=w[1]?n.trim(w[1]):i.p.sortorder||"asc";for(f=0;f<this.p.colNames.length;f++)wi=i.p.headertitles?' title="'+n.jgrid.stripHtml(i.p.colNames[f])+'"':"",a+="<th id='"+i.p.id+"_"+i.p.colModel[f].name+"' role='columnheader' class='ui-state-default ui-th-column ui-th-"+s+"'"+wi+">",gt=i.p.colModel[f].index||i.p.colModel[f].name,a+="<div id='jqgh_"+i.p.id+"_"+i.p.colModel[f].name+"' "+li+">"+i.p.colNames[f],i.p.colModel[f].width=i.p.colModel[f].width?parseInt(i.p.colModel[f].width,10):150,typeof i.p.colModel[f].title!="boolean"&&(i.p.colModel[f].title=!0),i.p.colModel[f].lso="",gt===i.p.sortname&&(i.p.lastsort=f),i.p.multiSort&&(w=n.inArray(gt,it),w!==-1&&(i.p.colModel[f].lso=pi[w])),a+=vt+"<\/div><\/th>";if(a+="<\/tr><\/thead>",vt=null,n(this).append(a),n("thead tr:first th",this).hover(function(){n(this).addClass("ui-state-hover")},function(){n(this).removeClass("ui-state-hover")}),this.p.multiselect&&(rt=[],n("#cb_"+n.jgrid.jqID(i.p.id),this).bind("click",function(){i.p.selarrrow=[];var t=i.p.frozenColumns===!0?i.p.id+"_frozen":"";this.checked?(n(i.rows).each(function(r){r>0&&(n(this).hasClass("ui-subgrid")||n(this).hasClass("jqgroup")||n(this).hasClass("ui-state-disabled")||(n("#jqg_"+n.jgrid.jqID(i.p.id)+"_"+n.jgrid.jqID(this.id))[i.p.useProp?"prop":"attr"]("checked",!0),n(this).addClass("ui-state-highlight").attr("aria-selected","true"),i.p.selarrrow.push(this.id),i.p.selrow=this.id,t&&(n("#jqg_"+n.jgrid.jqID(i.p.id)+"_"+n.jgrid.jqID(this.id),i.grid.fbDiv)[i.p.useProp?"prop":"attr"]("checked",!0),n("#"+n.jgrid.jqID(this.id),i.grid.fbDiv).addClass("ui-state-highlight"))))}),d=!0,rt=[]):(n(i.rows).each(function(r){r>0&&(n(this).hasClass("ui-subgrid")||n(this).hasClass("ui-state-disabled")||(n("#jqg_"+n.jgrid.jqID(i.p.id)+"_"+n.jgrid.jqID(this.id))[i.p.useProp?"prop":"attr"]("checked",!1),n(this).removeClass("ui-state-highlight").attr("aria-selected","false"),rt.push(this.id),t&&(n("#jqg_"+n.jgrid.jqID(i.p.id)+"_"+n.jgrid.jqID(this.id),i.grid.fbDiv)[i.p.useProp?"prop":"attr"]("checked",!1),n("#"+n.jgrid.jqID(this.id),i.grid.fbDiv).removeClass("ui-state-highlight"))))}),i.p.selrow=null,d=!1),n(i).triggerHandler("jqGridSelectAll",[d?i.p.selarrrow:rt,d]),n.isFunction(i.p.onSelectAll)&&i.p.onSelectAll.call(i,d?i.p.selarrrow:rt,d)})),i.p.autowidth===!0&&(ni=n(b).innerWidth(),i.p.width=ni>0?ni:"nw"),ir(),n(b).css("width",r.width+"px").append("<div class='ui-jqgrid-resize-mark' id='rs_m"+i.p.id+"'>&#160;<\/div>"),n(v).css("width",r.width+"px"),a=n("thead:first",i).get(0),ut="",i.p.footerrow&&(ut+="<table role='grid' style='width:"+i.p.tblwidth+"px' class='ui-jqgrid-ftable' cellspacing='0' cellpadding='0' border='0'><tbody><tr role='row' class='ui-widget-content footrow footrow-"+s+"'>"),ti=n("tr:first",a),ft="<tr class='jqgfirstrow' role='row' style='height:auto'>",i.p.disableClick=!1,n("th",ti).each(function(t){var f,u;ct=i.p.colModel[t].width,i.p.colModel[t].resizable===undefined&&(i.p.colModel[t].resizable=!0),i.p.colModel[t].resizable?(lt=document.createElement("span"),n(lt).html("&#160;").addClass("ui-jqgrid-resize ui-jqgrid-resize-"+s).css("cursor","col-resize"),n(this).addClass(i.p.resizeclass)):lt="",n(this).css("width",ct+"px").prepend(lt),f="",i.p.colModel[t].hidden&&(n(this).css("display","none"),f="display:none;"),ft+="<td role='gridcell' style='height:0px;width:"+ct+"px;"+f+"'><\/td>",r.headers[t]={width:ct,el:this},at=i.p.colModel[t].sortable,typeof at!="boolean"&&(i.p.colModel[t].sortable=!0,at=!0),u=i.p.colModel[t].name,u==="cb"||u==="subgrid"||u==="rn"||i.p.viewsortcols[2]&&n(">div",this).addClass("ui-jqgrid-sortable"),at&&(i.p.multiSort?i.p.viewsortcols[0]?(n("div span.s-ico",this).show(),i.p.colModel[t].lso&&n("div span.ui-icon-"+i.p.colModel[t].lso,this).removeClass("ui-state-disabled")):i.p.colModel[t].lso&&(n("div span.s-ico",this).show(),n("div span.ui-icon-"+i.p.colModel[t].lso,this).removeClass("ui-state-disabled")):i.p.viewsortcols[0]?(n("div span.s-ico",this).show(),t===i.p.lastsort&&n("div span.ui-icon-"+i.p.sortorder,this).removeClass("ui-state-disabled")):t===i.p.lastsort&&(n("div span.s-ico",this).show(),n("div span.ui-icon-"+i.p.sortorder,this).removeClass("ui-state-disabled"))),i.p.footerrow&&(ut+="<td role='gridcell' "+nt(t,0,"",null,"",!1)+">&#160;<\/td>")}).mousedown(function(t){if(n(t.target).closest("th>span.ui-jqgrid-resize").length===1){var u=ci(this);return i.p.forceFit===!0&&(i.p.nv=rr(u)),r.dragStart(u,t,ur(u)),!1}}).click(function(t){var u,e,o,f,r,s;return i.p.disableClick?(i.p.disableClick=!1,!1):(u="th>div.ui-jqgrid-sortable",i.p.viewsortcols[2]||(u="th>div>span>span.ui-grid-ico-sort"),f=n(t.target).closest(u),f.length!==1)?void 0:(i.p.frozenColumns?(s=n(this)[0].id.substring(5),n(i.p.colModel).each(function(n){if(this.name===s)return r=n,!1})):r=ci(this),i.p.viewsortcols[2]||(e=!0,o=f.attr("sort")),r!=null&&hi(n("div",this)[0].id,r,e,o,this),!1)}),i.p.sortable&&n.fn.sortable)try{n(i).jqGrid("sortableColumns",ti)}catch(or){}i.p.footerrow&&(ut+="<\/tr><\/tbody><\/table>"),ft+="<\/tr>",ai=document.createElement("tbody"),this.appendChild(ai),n(this).addClass("ui-jqgrid-btable").append(ft),ft=null;var bi=n("<table class='ui-jqgrid-htable' style='width:"+i.p.tblwidth+"px' role='grid' aria-labelledby='gbox_"+this.id+"' cellspacing='0' cellpadding='0' border='0'><\/table>").append(a),c=i.p.caption&&i.p.hiddengrid===!0?!0:!1,g=n("<div class='ui-jqgrid-hbox"+(s==="rtl"?"-rtl":"")+"'><\/div>");a=null,r.hDiv=document.createElement("div"),n(r.hDiv).css({width:r.width+"px"}).addClass("ui-state-default ui-jqgrid-hdiv").append(g),n(g).append(bi),bi=null,c&&n(r.hDiv).hide(),i.p.pager&&(typeof i.p.pager=="string"?i.p.pager.substr(0,1)!=="#"&&(i.p.pager="#"+i.p.pager):i.p.pager="#"+n(i.p.pager).attr("id"),n(i.p.pager).css({width:r.width+"px"}).addClass("ui-state-default ui-jqgrid-pager ui-corner-bottom").appendTo(b),c&&n(i.p.pager).hide(),si(i.p.pager,"")),i.p.cellEdit===!1&&i.p.hoverrows===!0&&n(i).bind("mouseover",function(t){e=n(t.target).closest("tr.jqgrow"),n(e).attr("class")!=="ui-subgrid"&&n(e).addClass("ui-state-hover")}).bind("mouseout",function(t){e=n(t.target).closest("tr.jqgrow"),n(e).removeClass("ui-state-hover")}),n(i).before(r.hDiv).click(function(t){var r,u,f;if(h=t.target,e=n(h,i.rows).closest("tr.jqgrow"),n(e).length===0||e[0].className.indexOf("ui-state-disabled")>-1||(n(h,i).closest("table.ui-jqgrid-btable").attr("id")||"").replace("_frozen","")!==i.id)return this;if((r=n(h).hasClass("cbox"),u=n(i).triggerHandler("jqGridBeforeSelectRow",[e[0].id,t]),u=u===!1||u==="stop"?!1:!0,u&&n.isFunction(i.p.beforeSelectRow)&&(u=i.p.beforeSelectRow.call(i,e[0].id,t)),h.tagName!=="A"&&(h.tagName!=="INPUT"&&h.tagName!=="TEXTAREA"&&h.tagName!=="OPTION"&&h.tagName!=="SELECT"||r))&&u===!0)if(o=e[0].id,l=n.jgrid.getCellIndex(h),ii=n(h).closest("td,th").html(),n(i).triggerHandler("jqGridCellSelect",[o,l,ii,t]),n.isFunction(i.p.onCellSelect)&&i.p.onCellSelect.call(i,o,l,ii,t),i.p.cellEdit===!0)if(i.p.multiselect&&r)n(i).jqGrid("setSelection",o,!0,t);else{o=e[0].rowIndex;try{n(i).jqGrid("editCell",o,l,!0)}catch(s){}}else i.p.multikey?t[i.p.multikey]?n(i).jqGrid("setSelection",o,!0,t):i.p.multiselect&&r&&(r=n("#jqg_"+n.jgrid.jqID(i.p.id)+"_"+o).is(":checked"),n("#jqg_"+n.jgrid.jqID(i.p.id)+"_"+o)[i.p.useProp?"prop":"attr"]("checked",r)):i.p.multiselect&&i.p.multiboxonly?r?n(i).jqGrid("setSelection",o,!0,t):(f=i.p.frozenColumns?i.p.id+"_frozen":"",n(i.p.selarrrow).each(function(t,r){var u=i.rows.namedItem(r);n(u).removeClass("ui-state-highlight"),n("#jqg_"+n.jgrid.jqID(i.p.id)+"_"+n.jgrid.jqID(r))[i.p.useProp?"prop":"attr"]("checked",!1),f&&(n("#"+n.jgrid.jqID(r),"#"+n.jgrid.jqID(f)).removeClass("ui-state-highlight"),n("#jqg_"+n.jgrid.jqID(i.p.id)+"_"+n.jgrid.jqID(r),"#"+n.jgrid.jqID(f))[i.p.useProp?"prop":"attr"]("checked",!1))}),i.p.selarrrow=[],n(i).jqGrid("setSelection",o,!0,t)):n(i).jqGrid("setSelection",o,!0,t)}).bind("reloadGrid",function(t,r){if(i.p.treeGrid===!0&&(i.p.datatype=i.p.treedatatype),r&&r.current&&i.grid.selectionPreserver(i),i.p.datatype==="local"?(n(i).jqGrid("resetSelection"),i.p.data.length&&bt()):i.p.treeGrid||(i.p.selrow=null,i.p.multiselect&&(i.p.selarrrow=[],ht(!1)),i.p.savedRow=[]),i.p.scroll&&tt.call(i,!0,!1),r&&r.page){var u=r.page;u>i.p.lastpage&&(u=i.p.lastpage),u<1&&(u=1),i.p.page=u,i.grid.bDiv.scrollTop=i.grid.prevRowHeight?(u-1)*i.grid.prevRowHeight*i.p.rowNum:0}return i.grid.prevRowHeight&&i.p.scroll?(delete i.p.lastpage,i.grid.populateVisible()):i.grid.populate(),i.p._inlinenav===!0&&n(i).jqGrid("showAddEditButtons"),!1}).dblclick(function(t){(h=t.target,e=n(h,i.rows).closest("tr.jqgrow"),n(e).length!==0)&&(o=e[0].rowIndex,l=n.jgrid.getCellIndex(h),n(i).triggerHandler("jqGridDblClickRow",[n(e).attr("id"),o,l,t]),n.isFunction(i.p.ondblClickRow)&&i.p.ondblClickRow.call(i,n(e).attr("id"),o,l,t))}).bind("contextmenu",function(t){(h=t.target,e=n(h,i.rows).closest("tr.jqgrow"),n(e).length!==0)&&(i.p.multiselect||n(i).jqGrid("setSelection",e[0].id,!0,t),o=e[0].rowIndex,l=n.jgrid.getCellIndex(h),n(i).triggerHandler("jqGridRightClickRow",[n(e).attr("id"),o,l,t]),n.isFunction(i.p.onRightClickRow)&&i.p.onRightClickRow.call(i,n(e).attr("id"),o,l,t))}),r.bDiv=document.createElement("div"),et&&String(i.p.height).toLowerCase()==="auto"&&(i.p.height="100%"),n(r.bDiv).append(n('<div style="position:relative;'+(et&&n.jgrid.msiever()<8?"height:0.01%;":"")+'"><\/div>').append("<div><\/div>").append(this)).addClass("ui-jqgrid-bdiv").css({height:i.p.height+(isNaN(i.p.height)?"":"px"),width:r.width+"px"}).scroll(r.scrollGrid),n("table:first",r.bDiv).css({width:i.p.tblwidth+"px"}),n.support.tbody||n("tbody",this).length===2&&n("tbody:gt(0)",this).remove(),i.p.multikey&&(n.jgrid.msie?n(r.bDiv).bind("selectstart",function(){return!1}):n(r.bDiv).bind("mousedown",function(){return!1})),c&&n(r.bDiv).hide(),r.cDiv=document.createElement("div"),yt=i.p.hidegrid===!0?n("<a role='link' href='javascript:void(0)'/>").addClass("ui-jqgrid-titlebar-close HeaderButton").hover(function(){yt.addClass("ui-state-hover")},function(){yt.removeClass("ui-state-hover")}).append("<span class='ui-icon ui-icon-circle-triangle-n'><\/span>").css(s==="rtl"?"left":"right","0px"):"",n(r.cDiv).append(yt).append("<span class='ui-jqgrid-title"+(s==="rtl"?"-rtl":"")+"'>"+i.p.caption+"<\/span>").addClass("ui-jqgrid-titlebar ui-widget-header ui-corner-top ui-helper-clearfix"),n(r.cDiv).insertBefore(r.hDiv),i.p.toolbar[0]&&(r.uDiv=document.createElement("div"),i.p.toolbar[1]==="top"?n(r.uDiv).insertBefore(r.hDiv):i.p.toolbar[1]==="bottom"&&n(r.uDiv).insertAfter(r.hDiv),i.p.toolbar[1]==="both"?(r.ubDiv=document.createElement("div"),n(r.uDiv).addClass("ui-userdata ui-state-default").attr("id","t_"+this.id).insertBefore(r.hDiv),n(r.ubDiv).addClass("ui-userdata ui-state-default").attr("id","tb_"+this.id).insertAfter(r.hDiv),c&&n(r.ubDiv).hide()):n(r.uDiv).width(r.width).addClass("ui-userdata ui-state-default").attr("id","t_"+this.id),c&&n(r.uDiv).hide()),i.p.toppager&&(i.p.toppager=n.jgrid.jqID(i.p.id)+"_toppager",r.topDiv=n("<div id='"+i.p.toppager+"'><\/div>")[0],i.p.toppager="#"+i.p.toppager,n(r.topDiv).addClass("ui-state-default ui-jqgrid-toppager").width(r.width).insertBefore(r.hDiv),si(i.p.toppager,"_t")),i.p.footerrow&&(r.sDiv=n("<div class='ui-jqgrid-sdiv'><\/div>")[0],g=n("<div class='ui-jqgrid-hbox"+(s==="rtl"?"-rtl":"")+"'><\/div>"),n(r.sDiv).append(g).width(r.width).insertAfter(r.hDiv),n(g).append(ut),r.footers=n(".ui-jqgrid-ftable",r.sDiv)[0].rows[0].cells,i.p.rownumbers&&(r.footers[0].className="ui-state-default jqgrid-rownum"),c&&n(r.sDiv).hide()),g=null,i.p.caption?(ki=i.p.datatype,i.p.hidegrid===!0&&(n(".ui-jqgrid-titlebar-close",r.cDiv).click(function(t){var e=n.isFunction(i.p.onHeaderClick),u=".ui-jqgrid-bdiv, .ui-jqgrid-hdiv, .ui-jqgrid-pager, .ui-jqgrid-sdiv",f,o=this;return i.p.toolbar[0]===!0&&(i.p.toolbar[1]==="both"&&(u+=", #"+n(r.ubDiv).attr("id")),u+=", #"+n(r.uDiv).attr("id")),f=n(u,"#gview_"+n.jgrid.jqID(i.p.id)).length,i.p.gridstate==="visible"?n(u,"#gbox_"+n.jgrid.jqID(i.p.id)).slideUp("fast",function(){f--,f===0&&(n("span",o).removeClass("ui-icon-circle-triangle-n").addClass("ui-icon-circle-triangle-s"),i.p.gridstate="hidden",n("#gbox_"+n.jgrid.jqID(i.p.id)).hasClass("ui-resizable")&&n(".ui-resizable-handle","#gbox_"+n.jgrid.jqID(i.p.id)).hide(),n(i).triggerHandler("jqGridHeaderClick",[i.p.gridstate,t]),e&&(c||i.p.onHeaderClick.call(i,i.p.gridstate,t)))}):i.p.gridstate==="hidden"&&n(u,"#gbox_"+n.jgrid.jqID(i.p.id)).slideDown("fast",function(){f--,f===0&&(n("span",o).removeClass("ui-icon-circle-triangle-s").addClass("ui-icon-circle-triangle-n"),c&&(i.p.datatype=ki,p(),c=!1),i.p.gridstate="visible",n("#gbox_"+n.jgrid.jqID(i.p.id)).hasClass("ui-resizable")&&n(".ui-resizable-handle","#gbox_"+n.jgrid.jqID(i.p.id)).show(),n(i).triggerHandler("jqGridHeaderClick",[i.p.gridstate,t]),e&&(c||i.p.onHeaderClick.call(i,i.p.gridstate,t)))}),!1}),c&&(i.p.datatype="local",n(".ui-jqgrid-titlebar-close",r.cDiv).trigger("click")))):n(r.cDiv).hide(),n(r.hDiv).after(r.bDiv).mousemove(function(n){if(r.resizing)return r.dragMove(n),!1}),n(".ui-jqgrid-labels",r.hDiv).bind("selectstart",function(){return!1}),n(document).mouseup(function(){return r.resizing?(r.dragEnd(),!1):!0}),i.formatCol=nt,i.sortData=hi,i.updatepager=nr,i.refreshIndex=bt,i.setHeadCheckBox=ht,i.constructTr=kt,i.formatter=function(n,t,i,r,u){return ui(n,t,i,r,u)},n.extend(r,{populate:p,emptyRows:tt}),this.grid=r,i.addXmlData=function(n){dt(n,i.grid.bDiv)},i.addJSONData=function(n){ot(n,i.grid.bDiv)},this.grid.cols=this.rows[0].cells,n(i).triggerHandler("jqGridInitGrid"),n.isFunction(i.p.onInitGrid)&&i.p.onInitGrid.call(i),p(),i.p.hiddengrid=!1}})},n.jgrid.extend({getGridParam:function(n){var t=this[0];if(t&&t.grid)return n?t.p[n]!==undefined?t.p[n]:null:t.p},setGridParam:function(t){return this.each(function(){this.grid&&typeof t=="object"&&n.extend(!0,this.p,t)})},getDataIDs:function(){var r=[],t=0,i,u=0;return this.each(function(){if(i=this.rows.length,i&&i>0)while(t<i)n(this.rows[t]).hasClass("jqgrow")&&(r[u]=this.rows[t].id,u++),t++}),r},setSelection:function(t,i,r){return this.each(function(){function l(t){var f=n(u.grid.bDiv)[0].clientHeight,i=n(u.grid.bDiv)[0].scrollTop,r=n(u.rows[t]).position().top,e=u.rows[t].clientHeight;r+e>=f+i?n(u.grid.bDiv)[0].scrollTop=r-(f+i)+e+i:r<f+i&&r<i&&(n(u.grid.bDiv)[0].scrollTop=r)}var u=this,e,f,h,s,c,o;t!==undefined&&((i=i===!1?!1:!0,f=u.rows.namedItem(String(t)),!f||!f.className||f.className.indexOf("ui-state-disabled")>-1)||(u.p.scrollrows===!0&&(h=u.rows.namedItem(t).rowIndex,h>=0&&l(h)),u.p.frozenColumns===!0&&(o=u.p.id+"_frozen"),u.p.multiselect?(u.setHeadCheckBox(!1),u.p.selrow=f.id,s=n.inArray(u.p.selrow,u.p.selarrrow),s===-1?(f.className!=="ui-subgrid"&&n(f).addClass("ui-state-highlight").attr("aria-selected","true"),e=!0,u.p.selarrrow.push(u.p.selrow)):(f.className!=="ui-subgrid"&&n(f).removeClass("ui-state-highlight").attr("aria-selected","false"),e=!1,u.p.selarrrow.splice(s,1),c=u.p.selarrrow[0],u.p.selrow=c===undefined?null:c),n("#jqg_"+n.jgrid.jqID(u.p.id)+"_"+n.jgrid.jqID(f.id))[u.p.useProp?"prop":"attr"]("checked",e),o&&(s===-1?n("#"+n.jgrid.jqID(t),"#"+n.jgrid.jqID(o)).addClass("ui-state-highlight"):n("#"+n.jgrid.jqID(t),"#"+n.jgrid.jqID(o)).removeClass("ui-state-highlight"),n("#jqg_"+n.jgrid.jqID(u.p.id)+"_"+n.jgrid.jqID(t),"#"+n.jgrid.jqID(o))[u.p.useProp?"prop":"attr"]("checked",e)),i&&(n(u).triggerHandler("jqGridSelectRow",[f.id,e,r]),u.p.onSelectRow&&u.p.onSelectRow.call(u,f.id,e,r))):f.className!=="ui-subgrid"&&(u.p.selrow!==f.id?(n(u.rows.namedItem(u.p.selrow)).removeClass("ui-state-highlight").attr({"aria-selected":"false",tabindex:"-1"}),n(f).addClass("ui-state-highlight").attr({"aria-selected":"true",tabindex:"0"}),o&&(n("#"+n.jgrid.jqID(u.p.selrow),"#"+n.jgrid.jqID(o)).removeClass("ui-state-highlight"),n("#"+n.jgrid.jqID(t),"#"+n.jgrid.jqID(o)).addClass("ui-state-highlight")),e=!0):e=!1,u.p.selrow=f.id,i&&(n(u).triggerHandler("jqGridSelectRow",[f.id,e,r]),u.p.onSelectRow&&u.p.onSelectRow.call(u,f.id,e,r)))))})},resetSelection:function(t){return this.each(function(){var i=this,f,u,r;i.p.frozenColumns===!0&&(r=i.p.id+"_frozen"),t!==undefined?(u=t===i.p.selrow?i.p.selrow:t,n("#"+n.jgrid.jqID(i.p.id)+" tbody:first tr#"+n.jgrid.jqID(u)).removeClass("ui-state-highlight").attr("aria-selected","false"),r&&n("#"+n.jgrid.jqID(u),"#"+n.jgrid.jqID(r)).removeClass("ui-state-highlight"),i.p.multiselect&&(n("#jqg_"+n.jgrid.jqID(i.p.id)+"_"+n.jgrid.jqID(u),"#"+n.jgrid.jqID(i.p.id))[i.p.useProp?"prop":"attr"]("checked",!1),r&&n("#jqg_"+n.jgrid.jqID(i.p.id)+"_"+n.jgrid.jqID(u),"#"+n.jgrid.jqID(r))[i.p.useProp?"prop":"attr"]("checked",!1),i.setHeadCheckBox(!1)),u=null):i.p.multiselect?(n(i.p.selarrrow).each(function(t,u){f=i.rows.namedItem(u),n(f).removeClass("ui-state-highlight").attr("aria-selected","false"),n("#jqg_"+n.jgrid.jqID(i.p.id)+"_"+n.jgrid.jqID(u))[i.p.useProp?"prop":"attr"]("checked",!1),r&&(n("#"+n.jgrid.jqID(u),"#"+n.jgrid.jqID(r)).removeClass("ui-state-highlight"),n("#jqg_"+n.jgrid.jqID(i.p.id)+"_"+n.jgrid.jqID(u),"#"+n.jgrid.jqID(r))[i.p.useProp?"prop":"attr"]("checked",!1))}),i.setHeadCheckBox(!1),i.p.selarrrow=[]):i.p.selrow&&(n("#"+n.jgrid.jqID(i.p.id)+" tbody:first tr#"+n.jgrid.jqID(i.p.selrow)).removeClass("ui-state-highlight").attr("aria-selected","false"),r&&n("#"+n.jgrid.jqID(i.p.selrow),"#"+n.jgrid.jqID(r)).removeClass("ui-state-highlight"),i.p.selrow=null),i.p.cellEdit===!0&&parseInt(i.p.iCol,10)>=0&&parseInt(i.p.iRow,10)>=0&&(n("td:eq("+i.p.iCol+")",i.rows[i.p.iRow]).removeClass("edit-cell ui-state-highlight"),n(i.rows[i.p.iRow]).removeClass("selected-row ui-state-hover")),i.p.savedRow=[]})},getRowData:function(t){var i={},r,u=!1,f,e=0;return this.each(function(){var o=this,s,h;if(t===undefined)u=!0,r=[],f=o.rows.length;else{if(h=o.rows.namedItem(t),!h)return i;f=2}while(e<f)u&&(h=o.rows[e]),n(h).hasClass("jqgrow")&&(n('td[role="gridcell"]',h).each(function(t){if(s=o.p.colModel[t].name,s!=="cb"&&s!=="subgrid"&&s!=="rn")if(o.p.treeGrid===!0&&s===o.p.ExpandColumn)i[s]=n.jgrid.htmlDecode(n("span:first",this).html());else try{i[s]=n.unformat.call(o,this,{rowId:h.id,colModel:o.p.colModel[t]},t)}catch(r){i[s]=n.jgrid.htmlDecode(n(this).html())}}),u&&(r.push(i),i={})),e++}),r||i},delRowData:function(t){var i=!1,r,u;return this.each(function(){var f=this,s,e,o;if(r=f.rows.namedItem(t),!r)return!1;n(r).remove(),f.p.records--,f.p.reccount--,f.updatepager(!0,!1),i=!0,f.p.multiselect&&(u=n.inArray(t,f.p.selarrrow),u!==-1&&f.p.selarrrow.splice(u,1)),f.p.selrow=f.p.multiselect&&f.p.selarrrow.length>0?f.p.selarrrow[f.p.selarrrow.length-1]:null,f.p.datatype==="local"&&(s=n.jgrid.stripPref(f.p.idPrefix,t),e=f.p._index[s],e!==undefined&&(f.p.data.splice(e,1),f.refreshIndex())),f.p.altRows===!0&&i&&(o=f.p.altclass,n(f.rows).each(function(t){t%2==1?n(this).addClass(o):n(this).removeClass(o)}))}),i},setRowData:function(t,i,r){var u,f=!0,e;return this.each(function(){var y,l,a;if(!this.grid)return!1;var o=this,h,s,v=typeof r,c={};if(s=o.rows.namedItem(t),!s)return!1;if(i)try{if(n(this.p.colModel).each(function(r){u=this.name;var f=n.jgrid.getAccessor(i,u);f!==undefined&&(c[u]=this.formatter&&typeof this.formatter=="string"&&this.formatter==="date"?n.unformat.date.call(o,f,this):f,h=o.formatter(t,f,r,i,"edit"),e=this.title?{title:n.jgrid.stripHtml(h)}:{},o.p.treeGrid===!0&&u===o.p.ExpandColumn?n("td[role='gridcell']:eq("+r+") > span:first",s).html(h).attr(e):n("td[role='gridcell']:eq("+r+")",s).html(h).attr(e))}),o.p.datatype==="local"){if(y=n.jgrid.stripPref(o.p.idPrefix,t),l=o.p._index[y],o.p.treeGrid)for(a in o.p.treeReader)o.p.treeReader.hasOwnProperty(a)&&delete c[o.p.treeReader[a]];l!==undefined&&(o.p.data[l]=n.extend(!0,o.p.data[l],c)),c=null}}catch(p){f=!1}f&&(v==="string"?n(s).addClass(r):v==="object"&&n(s).css(r),n(o).triggerHandler("jqGridAfterGridComplete"))}),f},addRowData:function(t,i,r,u){r||(r="last");var d=!1,w,f,h,b,s,e,c,a,l="",v,y,p,o,g,k;return i&&(n.isArray(i)?(v=!0,r="last",y=t):(i=[i],v=!1),this.each(function(){var nt=this,ut=i.length;s=nt.p.rownumbers===!0?1:0,h=nt.p.multiselect===!0?1:0,b=nt.p.subGrid===!0?1:0,v||(t!==undefined?t=String(t):(t=n.jgrid.randId(),nt.p.keyIndex!==!1&&(y=nt.p.colModel[nt.p.keyIndex+h+b+s].name,i[0][y]!==undefined&&(t=i[0][y])))),p=nt.p.altclass;for(var it=0,rt="",tt={},ft=n.isFunction(nt.p.afterInsertRow)?!0:!1;it<ut;){if(o=i[it],f=[],v){try{t=o[y],t===undefined&&(t=n.jgrid.randId())}catch(et){t=n.jgrid.randId()}rt=nt.p.altRows===!0?(nt.rows.length-1)%2==0?p:"":""}for(k=t,t=nt.p.idPrefix+t,s&&(l=nt.formatCol(0,1,"",null,t,!0),f[f.length]='<td role="gridcell" class="ui-state-default jqgrid-rownum" '+l+">0<\/td>"),h&&(a='<input role="checkbox" type="checkbox" id="jqg_'+nt.p.id+"_"+t+'" class="cbox"/>',l=nt.formatCol(s,1,"",null,t,!0),f[f.length]='<td role="gridcell" '+l+">"+a+"<\/td>"),b&&(f[f.length]=n(nt).jqGrid("addSubGridCell",h+s,1)),c=h+b+s;c<nt.p.colModel.length;c++)g=nt.p.colModel[c],w=g.name,tt[w]=o[w],a=nt.formatter(t,n.jgrid.getAccessor(o,w),c,o),l=nt.formatCol(c,1,a,o,t,tt),f[f.length]='<td role="gridcell" '+l+">"+a+"<\/td>";if(f.unshift(nt.constructTr(t,!1,rt,tt,o,!1)),f[f.length]="<\/tr>",nt.rows.length===0)n("table:first",nt.grid.bDiv).append(f.join(""));else switch(r){case"last":n(nt.rows[nt.rows.length-1]).after(f.join("")),e=nt.rows.length-1;break;case"first":n(nt.rows[0]).after(f.join("")),e=1;break;case"after":e=nt.rows.namedItem(u),e&&(n(nt.rows[e.rowIndex+1]).hasClass("ui-subgrid")?n(nt.rows[e.rowIndex+1]).after(f):n(e).after(f.join(""))),e++;break;case"before":e=nt.rows.namedItem(u),e&&(n(e).before(f.join("")),e=e.rowIndex),e--}nt.p.subGrid===!0&&n(nt).jqGrid("addSubGrid",h+s,e),nt.p.records++,nt.p.reccount++,n(nt).triggerHandler("jqGridAfterInsertRow",[t,o,o]),ft&&nt.p.afterInsertRow.call(nt,t,o,o),it++,nt.p.datatype==="local"&&(tt[nt.p.localReader.id]=k,nt.p._index[k]=nt.p.data.length,nt.p.data.push(tt),tt={})}nt.p.altRows!==!0||v||(r==="last"?(nt.rows.length-1)%2==1&&n(nt.rows[nt.rows.length-1]).addClass(p):n(nt.rows).each(function(t){t%2==1?n(this).addClass(p):n(this).removeClass(p)})),nt.updatepager(!0,!0),d=!0})),d},footerData:function(t,i,r){function s(n){var t;for(t in n)if(n.hasOwnProperty(t))return!1;return!0}var u,f=!1,e={},o;return t===undefined&&(t="get"),typeof r!="boolean"&&(r=!0),t=t.toLowerCase(),this.each(function(){var h=this,c;if(!h.grid||!h.p.footerrow||t==="set"&&s(i))return!1;f=!0,n(this.p.colModel).each(function(s){u=this.name,t==="set"?i[u]!==undefined&&(c=r?h.formatter("",i[u],s,i,"edit"):i[u],o=this.title?{title:n.jgrid.stripHtml(c)}:{},n("tr.footrow td:eq("+s+")",h.grid.sDiv).html(c).attr(o),f=!0):t==="get"&&(e[u]=n("tr.footrow td:eq("+s+")",h.grid.sDiv).html())})}),t==="get"?e:f},showHideCol:function(t,i){return this.each(function(){var r=this,o=!1,s=n.jgrid.cell_width?0:r.p.cellLayout,f,u,e;r.grid&&(typeof t=="string"&&(t=[t]),i=i!=="none"?"":"none",u=i===""?!0:!1,e=r.p.groupHeader&&(typeof r.p.groupHeader=="object"||n.isFunction(r.p.groupHeader)),e&&n(r).jqGrid("destroyGroupHeader",!1),n(this.p.colModel).each(function(e){if(n.inArray(this.name,t)!==-1&&this.hidden===u){if(r.p.frozenColumns===!0&&this.frozen===!0)return!0;n("tr",r.grid.hDiv).each(function(){n(this.cells[e]).css("display",i)}),n(r.rows).each(function(){n(this).hasClass("jqgroup")||n(this.cells[e]).css("display",i)}),r.p.footerrow&&n("tr.footrow td:eq("+e+")",r.grid.sDiv).css("display",i),f=parseInt(this.width,10),i==="none"?r.p.tblwidth-=f+s:r.p.tblwidth+=f+s,this.hidden=!u,o=!0,n(r).triggerHandler("jqGridShowHideCol",[u,this.name,e])}}),o===!0&&(r.p.shrinkToFit!==!0||isNaN(r.p.height)||(r.p.tblwidth+=parseInt(r.p.scrollOffset,10)),n(r).jqGrid("setGridWidth",r.p.shrinkToFit===!0?r.p.tblwidth:r.p.width)),e&&n(r).jqGrid("setGroupHeaders",r.p.groupHeader))})},hideCol:function(t){return this.each(function(){n(this).jqGrid("showHideCol",t,"none")})},showCol:function(t){return this.each(function(){n(this).jqGrid("showHideCol",t,"")})},remapColumns:function(t,i,r){function f(i){var r;r=i.length?n.makeArray(i):n.extend({},i),n.each(t,function(n){i[n]=r[this]})}function e(i,r){n(">tr"+(r||""),i).each(function(){var i=this,r=n.makeArray(i.cells);n.each(t,function(){var n=r[this];n&&i.appendChild(n)})})}var u=this.get(0);f(u.p.colModel),f(u.p.colNames),f(u.grid.headers),e(n("thead:first",u.grid.hDiv),r&&":not(.ui-jqgrid-labels)"),i&&e(n("#"+n.jgrid.jqID(u.p.id)+" tbody:first"),".jqgfirstrow, tr.jqgrow, tr.jqfoot"),u.p.footerrow&&e(n("tbody:first",u.grid.sDiv)),u.p.remapColumns&&(u.p.remapColumns.length?f(u.p.remapColumns):u.p.remapColumns=n.makeArray(t)),u.p.lastsort=n.inArray(u.p.lastsort,t),u.p.treeGrid&&(u.p.expColInd=n.inArray(u.p.expColInd,t)),n(u).triggerHandler("jqGridRemapColumns",[t,i,r])},setGridWidth:function(t,i){return this.each(function(){var v,p;if(this.grid){var r=this,u,e=0,o=n.jgrid.cell_width?0:r.p.cellLayout,f,s=0,y=!1,l=r.p.scrollOffset,a,h=0,c;if(typeof i!="boolean"&&(i=r.p.shrinkToFit),!isNaN(t)){if(t=parseInt(t,10),r.grid.width=r.p.width=t,n("#gbox_"+n.jgrid.jqID(r.p.id)).css("width",t+"px"),n("#gview_"+n.jgrid.jqID(r.p.id)).css("width",t+"px"),n(r.grid.bDiv).css("width",t+"px"),n(r.grid.hDiv).css("width",t+"px"),r.p.pager&&n(r.p.pager).css("width",t+"px"),r.p.toppager&&n(r.p.toppager).css("width",t+"px"),r.p.toolbar[0]===!0&&(n(r.grid.uDiv).css("width",t+"px"),r.p.toolbar[1]==="both"&&n(r.grid.ubDiv).css("width",t+"px")),r.p.footerrow&&n(r.grid.sDiv).css("width",t+"px"),i===!1&&r.p.forceFit===!0&&(r.p.forceFit=!1),i===!0){if(n.each(r.p.colModel,function(){this.hidden===!1&&(u=this.widthOrg,e+=u+o,this.fixed?h+=u+o:s++)}),s===0)return;if(r.p.tblwidth=e,a=t-o*s-h,isNaN(r.p.height)||(n(r.grid.bDiv)[0].clientHeight<n(r.grid.bDiv)[0].scrollHeight||r.rows.length===1)&&(y=!0,a-=l),e=0,v=r.grid.cols.length>0,n.each(r.p.colModel,function(n){if(this.hidden===!1&&!this.fixed){if(u=this.widthOrg,u=Math.round(a*u/(r.p.tblwidth-o*s-h)),u<0)return;this.width=u,e+=u,r.grid.headers[n].width=u,r.grid.headers[n].el.style.width=u+"px",r.p.footerrow&&(r.grid.footers[n].style.width=u+"px"),v&&(r.grid.cols[n].style.width=u+"px"),f=n}}),!f)return;c=0,y?t-h-(e+o*s)!==l&&(c=t-h-(e+o*s)-l):Math.abs(t-h-(e+o*s))!==1&&(c=t-h-(e+o*s)),r.p.colModel[f].width+=c,r.p.tblwidth=e+c+o*s+h,r.p.tblwidth>t?(p=r.p.tblwidth-parseInt(t,10),r.p.tblwidth=t,u=r.p.colModel[f].width=r.p.colModel[f].width-p):u=r.p.colModel[f].width,r.grid.headers[f].width=u,r.grid.headers[f].el.style.width=u+"px",v&&(r.grid.cols[f].style.width=u+"px"),r.p.footerrow&&(r.grid.footers[f].style.width=u+"px")}r.p.tblwidth&&(n("table:first",r.grid.bDiv).css("width",r.p.tblwidth+"px"),n("table:first",r.grid.hDiv).css("width",r.p.tblwidth+"px"),r.grid.hDiv.scrollLeft=r.grid.bDiv.scrollLeft,r.p.footerrow&&n("table:first",r.grid.sDiv).css("width",r.p.tblwidth+"px"))}}})},setGridHeight:function(t){return this.each(function(){var i=this,r;i.grid&&(r=n(i.grid.bDiv),r.css({height:t+(isNaN(t)?"":"px")}),i.p.frozenColumns===!0&&n("#"+n.jgrid.jqID(i.p.id)+"_frozen").parent().height(r.height()-16),i.p.height=t,i.p.scroll&&i.grid.populateVisible())})},setCaption:function(t){return this.each(function(){this.p.caption=t,n("span.ui-jqgrid-title, span.ui-jqgrid-title-rtl",this.grid.cDiv).html(t),n(this.grid.cDiv).show()})},setLabel:function(t,i,r,u){return this.each(function(){var e=this,o=-1,f,s;if(e.grid){if(t!==undefined)n(e.p.colModel).each(function(n){if(this.name===t)return o=n,!1});else return;o>=0&&(f=n("tr.ui-jqgrid-labels th:eq("+o+")",e.grid.hDiv),i&&(s=n(".s-ico",f),n("[id^=jqgh_]",f).empty().html(i).append(s),e.p.colNames[o]=i),r&&(typeof r=="string"?n(f).addClass(r):n(f).css(r)),typeof u=="object"&&n(f).attr(u))}})},setCell:function(t,i,r,u,f,e){return this.each(function(){var o=this,s=-1,l,v,a,h,c,y;o.grid&&(isNaN(i)?n(o.p.colModel).each(function(n){if(this.name===i)return s=n,!1}):s=parseInt(i,10),s>=0&&(a=o.rows.namedItem(t),a&&(h=n("td:eq("+s+")",a),(r!==""||e===!0)&&(l=o.formatter(t,r,s,a,"edit"),v=o.p.colModel[s].title?{title:n.jgrid.stripHtml(l)}:{},o.p.treeGrid&&n(".tree-wrap",n(h)).length>0?n("span",n(h)).html(l).attr(v):n(h).html(l).attr(v),o.p.datatype==="local"&&(c=o.p.colModel[s],r=c.formatter&&typeof c.formatter=="string"&&c.formatter==="date"?n.unformat.date.call(o,r,c):r,y=o.p._index[n.jgrid.stripPref(o.p.idPrefix,t)],y!==undefined&&(o.p.data[y][c.name]=r))),typeof u=="string"?n(h).addClass(u):u&&n(h).css(u),typeof f=="object"&&n(h).attr(f))))})},getCell:function(t,i){var r=!1;return this.each(function(){var f=this,u=-1,e;if(f.grid&&(isNaN(i)?n(f.p.colModel).each(function(n){if(this.name===i)return u=n,!1}):u=parseInt(i,10),u>=0&&(e=f.rows.namedItem(t),e)))try{r=n.unformat.call(f,n("td:eq("+u+")",e),{rowId:e.id,colModel:f.p.colModel[u]},u)}catch(o){r=n.jgrid.htmlDecode(n("td:eq("+u+")",e).html())}}),r},getCol:function(t,i,r){var u=[],f,h=0,s,e,o;return i=typeof i!="boolean"?!1:i,r===undefined&&(r=!1),this.each(function(){var c=this,a=-1,v,l;if(c.grid&&(isNaN(t)?n(c.p.colModel).each(function(n){if(this.name===t)return a=n,!1}):a=parseInt(t,10),a>=0&&(v=c.rows.length,l=0,v&&v>0))){while(l<v){if(n(c.rows[l]).hasClass("jqgrow")){try{f=n.unformat.call(c,n(c.rows[l].cells[a]),{rowId:c.rows[l].id,colModel:c.p.colModel[a]},a)}catch(y){f=n.jgrid.htmlDecode(c.rows[l].cells[a].innerHTML)}r?(o=parseFloat(f),h+=o,e===undefined&&(e=s=o),s=Math.min(s,o),e=Math.max(e,o)):i?u.push({id:c.rows[l].id,value:f}):u.push(f)}l++}if(r)switch(r.toLowerCase()){case"sum":u=h;break;case"avg":u=h/v;break;case"count":u=v;break;case"min":u=s;break;case"max":u=e}}}),u},clearGridData:function(t){return this.each(function(){var i=this,r;i.grid&&(typeof t!="boolean"&&(t=!1),i.p.deepempty?n("#"+n.jgrid.jqID(i.p.id)+" tbody:first tr:gt(0)").remove():(r=n("#"+n.jgrid.jqID(i.p.id)+" tbody:first tr:first")[0],n("#"+n.jgrid.jqID(i.p.id)+" tbody:first").empty().append(r)),i.p.footerrow&&t&&n(".ui-jqgrid-ftable td",i.grid.sDiv).html("&#160;"),i.p.selrow=null,i.p.selarrrow=[],i.p.savedRow=[],i.p.records=0,i.p.page=1,i.p.lastpage=0,i.p.reccount=0,i.p.data=[],i.p._index={},i.updatepager(!0,!1))})},getInd:function(n,t){var r=!1,i;return this.each(function(){i=this.rows.namedItem(n),i&&(r=t===!0?i:i.rowIndex)}),r},bindKeys:function(t){var i=n.extend({onEnter:null,onSpace:null,onLeftKey:null,onRightKey:null,scrollingRows:!0},t||{});return this.each(function(){var t=this;n("body").is("[role]")||n("body").attr("role","application"),t.p.scrollrows=i.scrollingRows,n(t).keydown(function(r){var e=n(t).find("tr[tabindex=0]")[0],f,u,o,s=t.p.treeReader.expanded_field;if(e)if(o=t.p._index[n.jgrid.stripPref(t.p.idPrefix,e.id)],r.keyCode===37||r.keyCode===38||r.keyCode===39||r.keyCode===40){if(r.keyCode===38){if(u=e.previousSibling,f="",u)if(n(u).is(":hidden")){while(u)if(u=u.previousSibling,!n(u).is(":hidden")&&n(u).hasClass("jqgrow")){f=u.id;break}}else f=u.id;n(t).jqGrid("setSelection",f,!0,r),r.preventDefault()}if(r.keyCode===40){if(u=e.nextSibling,f="",u)if(n(u).is(":hidden")){while(u)if(u=u.nextSibling,!n(u).is(":hidden")&&n(u).hasClass("jqgrow")){f=u.id;break}}else f=u.id;n(t).jqGrid("setSelection",f,!0,r),r.preventDefault()}r.keyCode===37&&(t.p.treeGrid&&t.p.data[o][s]&&n(e).find("div.treeclick").trigger("click"),n(t).triggerHandler("jqGridKeyLeft",[t.p.selrow]),n.isFunction(i.onLeftKey)&&i.onLeftKey.call(t,t.p.selrow)),r.keyCode===39&&(t.p.treeGrid&&!t.p.data[o][s]&&n(e).find("div.treeclick").trigger("click"),n(t).triggerHandler("jqGridKeyRight",[t.p.selrow]),n.isFunction(i.onRightKey)&&i.onRightKey.call(t,t.p.selrow))}else r.keyCode===13?(n(t).triggerHandler("jqGridKeyEnter",[t.p.selrow]),n.isFunction(i.onEnter)&&i.onEnter.call(t,t.p.selrow)):r.keyCode===32&&(n(t).triggerHandler("jqGridKeySpace",[t.p.selrow]),n.isFunction(i.onSpace)&&i.onSpace.call(t,t.p.selrow))})})},unbindKeys:function(){return this.each(function(){n(this).unbind("keydown")})},getLocalRow:function(t){var r=!1,i;return this.each(function(){t!==undefined&&(i=this.p._index[n.jgrid.stripPref(this.p.idPrefix,t)],i>=0&&(r=this.p.data[i]))}),r}})}(jQuery),function(n){"use strict";n.jgrid.extend({getColProp:function(n){var r={},u=this[0],i,t;if(!u.grid)return!1;for(i=u.p.colModel,t=0;t<i.length;t++)if(i[t].name===n){r=i[t];break}return r},setColProp:function(t,i){return this.each(function(){if(this.grid&&i)for(var u=this.p.colModel,r=0;r<u.length;r++)if(u[r].name===t){n.extend(!0,this.p.colModel[r],i);break}})},sortGrid:function(n,t,i){return this.each(function(){var r=this,f=-1,u,e;if(r.grid){for(n||(n=r.p.sortname),u=0;u<r.p.colModel.length;u++)if(r.p.colModel[u].index===n||r.p.colModel[u].name===n){f=u;break}f!==-1&&(e=r.p.colModel[f].sortable,typeof e!="boolean"&&(e=!0),typeof t!="boolean"&&(t=!1),e&&r.sortData("jqgh_"+r.p.id+"_"+n,f,t,i))}})},clearBeforeUnload:function(){return this.each(function(){var t=this.grid,i,r;for(t.emptyRows.call(this,!0,!0),n(t.hDiv).unbind("mousemove"),n(this).unbind(),t.dragEnd=null,t.dragMove=null,t.dragStart=null,t.emptyRows=null,t.populate=null,t.populateVisible=null,t.scrollGrid=null,t.selectionPreserver=null,t.bDiv=null,t.cDiv=null,t.hDiv=null,t.cols=null,r=t.headers.length,i=0;i<r;i++)t.headers[i].el=null;this.formatCol=null,this.sortData=null,this.updatepager=null,this.refreshIndex=null,this.setHeadCheckBox=null,this.constructTr=null,this.formatter=null,this.addXmlData=null,this.addJSONData=null})},GridDestroy:function(){return this.each(function(){if(this.grid){this.p.pager&&n(this.p.pager).remove();try{n(this).jqGrid("clearBeforeUnload"),n("#gbox_"+n.jgrid.jqID(this.id)).remove()}catch(t){}}})},GridUnload:function(){return this.each(function(){var r,t,i;this.grid&&(r={id:n(this).attr("id"),cl:n(this).attr("class")},this.p.pager&&n(this.p.pager).empty().removeClass("ui-state-default ui-jqgrid-pager corner-bottom"),t=document.createElement("table"),n(t).attr({id:r.id}),t.className=r.cl,i=n.jgrid.jqID(this.id),n(t).removeClass("ui-jqgrid-btable"),n(this.p.pager).parents("#gbox_"+i).length===1?(n(t).insertBefore("#gbox_"+i).show(),n(this.p.pager).insertBefore("#gbox_"+i)):n(t).insertBefore("#gbox_"+i).show(),n(this).jqGrid("clearBeforeUnload"),n("#gbox_"+i).remove())})},setGridState:function(t){return this.each(function(){if(this.grid){var i=this;t==="hidden"?(n(".ui-jqgrid-bdiv, .ui-jqgrid-hdiv","#gview_"+n.jgrid.jqID(i.p.id)).slideUp("fast"),i.p.pager&&n(i.p.pager).slideUp("fast"),i.p.toppager&&n(i.p.toppager).slideUp("fast"),i.p.toolbar[0]===!0&&(i.p.toolbar[1]==="both"&&n(i.grid.ubDiv).slideUp("fast"),n(i.grid.uDiv).slideUp("fast")),i.p.footerrow&&n(".ui-jqgrid-sdiv","#gbox_"+n.jgrid.jqID(i.p.id)).slideUp("fast"),n(".ui-jqgrid-titlebar-close span",i.grid.cDiv).removeClass("ui-icon-circle-triangle-n").addClass("ui-icon-circle-triangle-s"),i.p.gridstate="hidden"):t==="visible"&&(n(".ui-jqgrid-hdiv, .ui-jqgrid-bdiv","#gview_"+n.jgrid.jqID(i.p.id)).slideDown("fast"),i.p.pager&&n(i.p.pager).slideDown("fast"),i.p.toppager&&n(i.p.toppager).slideDown("fast"),i.p.toolbar[0]===!0&&(i.p.toolbar[1]==="both"&&n(i.grid.ubDiv).slideDown("fast"),n(i.grid.uDiv).slideDown("fast")),i.p.footerrow&&n(".ui-jqgrid-sdiv","#gbox_"+n.jgrid.jqID(i.p.id)).slideDown("fast"),n(".ui-jqgrid-titlebar-close span",i.grid.cDiv).removeClass("ui-icon-circle-triangle-s").addClass("ui-icon-circle-triangle-n"),i.p.gridstate="visible")}})},filterToolbar:function(t){return t=n.extend({autosearch:!0,searchOnEnter:!0,beforeSearch:null,afterSearch:null,beforeClear:null,afterClear:null,searchurl:"",stringResult:!1,groupOp:"AND",defaultSearch:"bw",searchOperators:!1,operandTitle:"Click to select search operation.",operands:{eq:"==",ne:"!",lt:"<",le:"<=",gt:">",ge:">=",bw:"^",bn:"!^","in":"=",ni:"!=",ew:"|",en:"!@",cn:"~",nc:"!~",nu:"#",nn:"!#"}},n.jgrid.search,t||{}),this.each(function(){var i=this;if(!this.ftoolbar){var r=function(){var o={},l=0,s,f,a={},u,v,r,h,c,e;n.each(i.p.colModel,function(){var r=n("#gs_"+n.jgrid.jqID(this.name),this.frozen===!0&&i.p.frozenColumns===!0?i.grid.fhDiv:i.grid.hDiv);if(f=this.index||this.name,u=t.searchOperators?r.parent().prev().children("a").attr("soper")||t.defaultSearch:this.searchoptions&&this.searchoptions.sopt?this.searchoptions.sopt[0]:this.stype==="select"?"eq":t.defaultSearch,s=this.stype==="custom"&&n.isFunction(this.searchoptions.custom_value)&&r.length>0&&r[0].nodeName.toUpperCase()==="SPAN"?this.searchoptions.custom_value.call(i,r.children(".customelement:first"),"get"):r.val(),s||u==="nu"||u==="nn")o[f]=s,a[f]=u,l++;else try{delete i.p.postData[f]}catch(e){}}),v=l>0?!0:!1,t.stringResult===!0||i.p.datatype==="local"?(r='{"groupOp":"'+t.groupOp+'","rules":[',h=0,n.each(o,function(n,t){h>0&&(r+=","),r+='{"field":"'+n+'",',r+='"op":"'+a[n]+'",',t+="",r+='"data":"'+t.replace(/\\/g,"\\\\").replace(/\"/g,'\\"')+'"}',h++}),r+="]}",n.extend(i.p.postData,{filters:r}),n.each(["searchField","searchString","searchOper"],function(n,t){i.p.postData.hasOwnProperty(t)&&delete i.p.postData[t]})):n.extend(i.p.postData,o),i.p.searchurl&&(c=i.p.url,n(i).jqGrid("setGridParam",{url:i.p.searchurl})),e=n(i).triggerHandler("jqGridToolbarBeforeSearch")==="stop"?!0:!1,!e&&n.isFunction(t.beforeSearch)&&(e=t.beforeSearch.call(i)),e||n(i).jqGrid("setGridParam",{search:v}).trigger("reloadGrid",[{page:1}]),c&&n(i).jqGrid("setGridParam",{url:c}),n(i).triggerHandler("jqGridToolbarAfterSearch"),n.isFunction(t.afterSearch)&&t.afterSearch.call(i)},e=function(r){var e={},s=0,f,l,u,h,c,o;r=typeof r!="boolean"?!0:r,n.each(i.p.colModel,function(){var t,r=n("#gs_"+n.jgrid.jqID(this.name),this.frozen===!0&&i.p.frozenColumns===!0?i.grid.fhDiv:i.grid.hDiv);this.searchoptions&&this.searchoptions.defaultValue!==undefined&&(t=this.searchoptions.defaultValue),f=this.index||this.name;switch(this.stype){case"select":if(r.find("option").each(function(i){return i===0&&(this.selected=!0),n(this).val()===t?(this.selected=!0,!1):void 0}),t!==undefined)e[f]=t,s++;else try{delete i.p.postData[f]}catch(u){}break;case"text":if(r.val(t),t!==undefined)e[f]=t,s++;else try{delete i.p.postData[f]}catch(o){}break;case"custom":n.isFunction(this.searchoptions.custom_value)&&r.length>0&&r[0].nodeName.toUpperCase()==="SPAN"&&this.searchoptions.custom_value.call(i,r.children(".customelement:first"),"set",t)}}),l=s>0?!0:!1,t.stringResult===!0||i.p.datatype==="local"?(u='{"groupOp":"'+t.groupOp+'","rules":[',h=0,n.each(e,function(n,t){h>0&&(u+=","),u+='{"field":"'+n+'",',u+='"op":"eq",',t+="",u+='"data":"'+t.replace(/\\/g,"\\\\").replace(/\"/g,'\\"')+'"}',h++}),u+="]}",n.extend(i.p.postData,{filters:u}),n.each(["searchField","searchString","searchOper"],function(n,t){i.p.postData.hasOwnProperty(t)&&delete i.p.postData[t]})):n.extend(i.p.postData,e),i.p.searchurl&&(c=i.p.url,n(i).jqGrid("setGridParam",{url:i.p.searchurl})),o=n(i).triggerHandler("jqGridToolbarBeforeClear")==="stop"?!0:!1,!o&&n.isFunction(t.beforeClear)&&(o=t.beforeClear.call(i)),o||r&&n(i).jqGrid("setGridParam",{search:l}).trigger("reloadGrid",[{page:1}]),c&&n(i).jqGrid("setGridParam",{url:c}),n(i).triggerHandler("jqGridToolbarAfterClear"),n.isFunction(t.afterClear)&&t.afterClear()},o=function(){var r=n("tr.ui-search-toolbar",i.grid.hDiv),t=i.p.frozenColumns===!0?n("tr.ui-search-toolbar",i.grid.fhDiv):!1;r.css("display")==="none"?(r.show(),t&&t.show()):(r.hide(),t&&t.hide())},s=function(u,f,e){var l,h;n("#sopt_menu").remove(),f=parseInt(f,10),e=parseInt(e,10)+18;for(var y=n(".ui-jqgrid-view").css("font-size")||"11px",c='<ul id="sopt_menu" class="ui-search-menu" role="menu" tabindex="0" style="font-size:'+y+";left:"+f+"px;top:"+e+'px;">',p=n(u).attr("soper"),a,v=[],s,o=0,w=n(u).attr("colname"),b=i.p.colModel.length;o<b;){if(i.p.colModel[o].name===w)break;o++}for(l=i.p.colModel[o],h=n.extend({},l.searchoptions),h.sopt||(h.sopt=[],h.sopt[0]=l.stype==="select"?"eq":t.defaultSearch),n.each(t.odata,function(){v.push(this.oper)}),o=0;o<h.sopt.length;o++)s=n.inArray(h.sopt[o],v),s!==-1&&(a=p===t.odata[s].oper?"ui-state-highlight":"",c+='<li class="ui-menu-item '+a+'" role="presentation"><a class="ui-corner-all g-menu-item" tabindex="0" role="menuitem" value="'+t.odata[s].oper+'" oper="'+t.operands[t.odata[s].oper]+'"><table cellspacing="0" cellpadding="0" border="0"><tr><td width="25px">'+t.operands[t.odata[s].oper]+"<\/td><td>"+t.odata[s].text+"<\/td><\/tr><\/table><\/a><\/li>");c+="<\/ul>",n("body").append(c),n("#sopt_menu").addClass("ui-menu ui-widget ui-widget-content ui-corner-all"),n("#sopt_menu > li > a").hover(function(){n(this).addClass("ui-state-hover")},function(){n(this).removeClass("ui-state-hover")}).click(function(){var e=n(this).attr("value"),o=n(this).attr("oper"),s;n(i).triggerHandler("jqGridToolbarSelectOper",[e,o,u]),n("#sopt_menu").hide(),n(u).text(o).attr("soper",e),t.autosearch===!0&&(s=n(u).parent().next().children()[0],(n(s).val()||e==="nu"||e==="nn")&&r())})},f=n("<tr class='ui-search-toolbar' role='rowheader'><\/tr>"),u;if(n.each(i.p.colModel,function(){var o=this,e,d,l,rt="",ut="=",y,w,g=n("<th role='columnheader' class='ui-state-default ui-th-column ui-th-"+i.p.direction+"'><\/th>"),h=n("<div style='position:relative;height:100%;padding-right:0.3em;padding-left:0.3em;'><\/div>"),s=n("<table class='ui-search-table' cellspacing='0'><tr><td class='ui-search-oper'><\/td><td class='ui-search-input'><\/td><\/tr><\/table>"),ft,a,nt,tt,c,it,v,b,k,et,p;if(this.hidden===!0&&n(g).css("display","none"),this.search=this.search===!1?!1:!0,this.stype===undefined&&(this.stype="text"),e=n.extend({},this.searchoptions||{}),this.search){if(t.searchOperators){for(y=e.sopt?e.sopt[0]:o.stype==="select"?"eq":t.defaultSearch,w=0;w<t.odata.length;w++)if(t.odata[w].oper===y){ut=t.operands[y]||"";break}ft=e.searchtitle!=null?e.searchtitle:t.operandTitle,rt="<a title='"+ft+"' style='padding-right: 0.5em;' soper='"+y+"' class='soptclass' colname='"+this.name+"'>"+ut+"<\/a>"}n("td:eq(0)",s).append(rt);switch(this.stype){case"select":if(d=this.surl||e.dataUrl,d)l=h,n.ajax(n.extend({url:d,dataType:"html",success:function(u){if(e.buildSelect!==undefined){var f=e.buildSelect(u);f&&(n("td:eq(1)",s).append(f),n(l).append(s))}else n("td:eq(1)",s).append(u),n(l).append(s);e.defaultValue!==undefined&&n("select",l).val(e.defaultValue),n("select",l).attr({name:o.index||o.name,id:"gs_"+o.name}),e.attr&&n("select",l).attr(e.attr),n("select",l).css({width:"100%"}),n.jgrid.bindEv.call(i,n("select",l)[0],e),t.autosearch===!0&&n("select",l).change(function(){return r(),!1}),u=null}},n.jgrid.ajaxOptions,i.p.ajaxSelectOptions||{}));else if(o.searchoptions?(a=o.searchoptions.value===undefined?"":o.searchoptions.value,nt=o.searchoptions.separator===undefined?":":o.searchoptions.separator,tt=o.searchoptions.delimiter===undefined?";":o.searchoptions.delimiter):o.editoptions&&(a=o.editoptions.value===undefined?"":o.editoptions.value,nt=o.editoptions.separator===undefined?":":o.editoptions.separator,tt=o.editoptions.delimiter===undefined?";":o.editoptions.delimiter),a){if(c=document.createElement("select"),c.style.width="100%",n(c).attr({name:o.index||o.name,id:"gs_"+o.name}),typeof a=="string")for(y=a.split(tt),k=0;k<y.length;k++)it=y[k].split(nt),v=document.createElement("option"),v.value=it[0],v.innerHTML=it[1],c.appendChild(v);else if(typeof a=="object")for(b in a)a.hasOwnProperty(b)&&(v=document.createElement("option"),v.value=b,v.innerHTML=a[b],c.appendChild(v));e.defaultValue!==undefined&&n(c).val(e.defaultValue),e.attr&&n(c).attr(e.attr),n.jgrid.bindEv.call(i,c,e),n("td:eq(1)",s).append(c),n(h).append(s),t.autosearch===!0&&n(c).change(function(){return r(),!1})}break;case"text":et=e.defaultValue!==undefined?e.defaultValue:"",n("td:eq(1)",s).append("<input type='text' style='width:100%;padding:0px;' name='"+(o.index||o.name)+"' id='gs_"+o.name+"' value='"+et+"'/>"),n(h).append(s),e.attr&&n("input",h).attr(e.attr),n.jgrid.bindEv.call(i,n("input",h)[0],e),t.autosearch===!0&&(t.searchOnEnter?n("input",h).keypress(function(n){var t=n.charCode||n.keyCode||0;return t===13?(r(),!1):this}):n("input",h).keydown(function(n){var t=n.which;switch(t){case 13:return!1;case 9:case 16:case 37:case 38:case 39:case 40:case 27:break;default:u&&clearTimeout(u),u=setTimeout(function(){r()},500)}}));break;case"custom":n("td:eq(1)",s).append("<span style='width:95%;padding:0px;' name='"+(o.index||o.name)+"' id='gs_"+o.name+"'/>"),n(h).append(s);try{if(n.isFunction(e.custom_element))if(p=e.custom_element.call(i,e.defaultValue!==undefined?e.defaultValue:"",e),p)p=n(p).addClass("customelement"),n(h).find(">span").append(p);else throw"e2";else throw"e1";}catch(ot){ot==="e1"&&n.jgrid.info_dialog(n.jgrid.errors.errcap,"function 'custom_element' "+n.jgrid.edit.msg.nodefined,n.jgrid.edit.bClose),ot==="e2"?n.jgrid.info_dialog(n.jgrid.errors.errcap,"function 'custom_element' "+n.jgrid.edit.msg.novalue,n.jgrid.edit.bClose):n.jgrid.info_dialog(n.jgrid.errors.errcap,typeof ot=="string"?ot:ot.message,n.jgrid.edit.bClose)}}}n(g).append(h),n(f).append(g),t.searchOperators||n("td:eq(0)",s).hide()}),n("table thead",i.grid.hDiv).append(f),t.searchOperators){n(".soptclass").click(function(t){var i=n(this).offset(),r=i.left,u=i.top;s(this,r,u),t.stopPropagation()});n("body").on("click",function(t){t.target.className!=="soptclass"&&n("#sopt_menu").hide()})}this.ftoolbar=!0,this.triggerToolbar=r,this.clearToolbar=e,this.toggleToolbar=o}})},destroyFilterToolbar:function(){return this.each(function(){this.ftoolbar&&(this.triggerToolbar=null,this.clearToolbar=null,this.toggleToolbar=null,this.ftoolbar=!1,n(this.grid.hDiv).find("table thead tr.ui-search-toolbar").remove())})},destroyGroupHeader:function(t){return t===undefined&&(t=!0),this.each(function(){var f=this,e,i,h,u,r,o,s=f.grid,c=n("table.ui-jqgrid-htable thead",s.hDiv),a=f.p.colModel,l;if(s){for(n(this).unbind(".setGroupHeaders"),e=n("<tr>",{role:"rowheader"}).addClass("ui-jqgrid-labels"),u=s.headers,i=0,h=u.length;i<h;i++){l=a[i].hidden?"none":"",r=n(u[i].el).width(u[i].width).css("display",l);try{r.removeAttr("rowSpan")}catch(v){r.attr("rowSpan",1)}e.append(r),o=r.children("span.ui-jqgrid-resize"),o.length>0&&(o[0].style.height=""),r.children("div")[0].style.top=""}n(c).children("tr.ui-jqgrid-labels").remove(),n(c).prepend(e),t===!0&&n(f).jqGrid("setGridParam",{groupHeader:null})}})},setGroupHeaders:function(t){return t=n.extend({useColSpanStyle:!1,groupHeaders:[]},t||{}),this.each(function(){var tt,it;this.p.groupHeader=t;var i=this,r,l,y=0,s,f,e,a,k,u,p,w,d,h,b=i.p.colModel,g=b.length,nt=i.grid.headers,o=n("table.ui-jqgrid-htable",i.grid.hDiv),rt=o.children("thead").children("tr.ui-jqgrid-labels:last").addClass("jqg-second-row-header"),ut=o.children("thead"),v,c=o.find(".jqg-first-row-header");for(c[0]===undefined?c=n("<tr>",{role:"row","aria-hidden":"true"}).addClass("jqg-first-row-header").css("height","auto"):c.empty(),it=function(n,t){for(var r=t.length,i=0;i<r;i++)if(t[i].startColumnName===n)return i;return-1},n(i).prepend(ut),s=n("<tr>",{role:"rowheader"}).addClass("ui-jqgrid-labels jqg-third-row-header"),r=0;r<g;r++)if(e=nt[r].el,a=n(e),l=b[r],k={height:"0px",width:nt[r].width+"px",display:l.hidden?"none":""},n("<th>",{role:"gridcell"}).css(k).addClass("ui-first-th-"+i.p.direction).appendTo(c),e.style.width="",u=it(l.name,t.groupHeaders),u>=0){for(p=t.groupHeaders[u],w=p.numberOfColumns,d=p.titleText,h=0,u=0;u<w&&r+u<g;u++)b[r+u].hidden||h++;f=n("<th>").attr({role:"columnheader"}).addClass("ui-state-default ui-th-column-header ui-th-"+i.p.direction).css({height:"22px","border-top":"0px none"}).html(d),h>0&&f.attr("colspan",String(h)),i.p.headertitles&&f.attr("title",f.text()),h===0&&f.hide(),a.before(f),s.append(e),y=w-1}else y===0?t.useColSpanStyle?a.attr("rowspan","2"):(n("<th>",{role:"columnheader"}).addClass("ui-state-default ui-th-column-header ui-th-"+i.p.direction).css({display:l.hidden?"none":"","border-top":"0px none"}).insertBefore(a),s.append(e)):(s.append(e),y--);v=n(i).children("thead"),v.prepend(c),s.insertAfter(rt),o.append(v),t.useColSpanStyle&&(o.find("span.ui-jqgrid-resize").each(function(){var t=n(this).parent();t.is(":visible")&&(this.style.cssText="height: "+t.height()+"px !important; cursor: col-resize;")}),o.find("div.ui-jqgrid-sortable").each(function(){var t=n(this),i=t.parent();i.is(":visible")&&i.is(":has(span.ui-jqgrid-resize)")&&t.css("top",(i.height()-t.outerHeight())/2+"px")})),tt=v.find("tr.jqg-first-row-header"),n(i).bind("jqGridResizeStop.setGroupHeaders",function(n,t,i){tt.find("th").eq(i).width(t)})})},setFrozenColumns:function(){return this.each(function(){var r,s,u,e,o,h,a;if(this.grid){var t=this,c=t.p.colModel,f=0,v=c.length,i=-1,l=!1;if(t.p.subGrid!==!0&&t.p.treeGrid!==!0&&t.p.cellEdit!==!0&&!t.p.sortable&&!t.p.scroll&&!t.p.grouping){for(t.p.rownumbers&&f++,t.p.multiselect&&f++;f<v;){if(c[f].frozen===!0)l=!0,i=f;else break;f++}i>=0&&l&&(r=t.p.caption?n(t.grid.cDiv).outerHeight():0,s=n(".ui-jqgrid-htable","#gview_"+n.jgrid.jqID(t.p.id)).height(),t.p.toppager&&(r=r+n(t.grid.topDiv).outerHeight()),t.p.toolbar[0]===!0&&t.p.toolbar[1]!=="bottom"&&(r=r+n(t.grid.uDiv).outerHeight()),t.grid.fhDiv=n('<div style="position:absolute;left:0px;top:'+r+"px;height:"+s+'px;" class="frozen-div ui-state-default ui-jqgrid-hdiv"><\/div>'),t.grid.fbDiv=n('<div style="position:absolute;left:0px;top:'+(parseInt(r,10)+parseInt(s,10)+1)+'px;overflow-y:hidden" class="frozen-bdiv ui-jqgrid-bdiv"><\/div>'),n("#gview_"+n.jgrid.jqID(t.p.id)).append(t.grid.fhDiv),u=n(".ui-jqgrid-htable","#gview_"+n.jgrid.jqID(t.p.id)).clone(!0),t.p.groupHeader?(n("tr.jqg-first-row-header, tr.jqg-third-row-header",u).each(function(){n("th:gt("+i+")",this).remove()}),e=-1,o=-1,n("tr.jqg-second-row-header th",u).each(function(){return h=parseInt(n(this).attr("colspan"),10),a=parseInt(n(this).attr("rowspan"),10),a&&(e++,o++),h&&(e=e+h,o++),e===i?!1:void 0}),e!==i&&(o=i),n("tr.jqg-second-row-header",u).each(function(){n("th:gt("+o+")",this).remove()})):n("tr",u).each(function(){n("th:gt("+i+")",this).remove()}),n(u).width(1),n(t.grid.fhDiv).append(u).mousemove(function(n){if(t.grid.resizing)return t.grid.dragMove(n),!1}),n(t).bind("jqGridResizeStop.setFrozenColumns",function(i,r,u){var e=n(".ui-jqgrid-htable",t.grid.fhDiv),f;n("th:eq("+u+")",e).width(r),f=n(".ui-jqgrid-btable",t.grid.fbDiv),n("tr:first td:eq("+u+")",f).width(r)}),n(t).bind("jqGridOnSortCol.setFrozenColumns",function(i,r,u){var f=n("tr.ui-jqgrid-labels:last th:eq("+t.p.lastsort+")",t.grid.fhDiv),e=n("tr.ui-jqgrid-labels:last th:eq("+u+")",t.grid.fhDiv);n("span.ui-grid-ico-sort",f).addClass("ui-state-disabled"),n(f).attr("aria-selected","false"),n("span.ui-icon-"+t.p.sortorder,e).removeClass("ui-state-disabled"),n(e).attr("aria-selected","true"),t.p.viewsortcols[0]||t.p.lastsort!==u&&(n("span.s-ico",f).hide(),n("span.s-ico",e).show())}),n("#gview_"+n.jgrid.jqID(t.p.id)).append(t.grid.fbDiv),n(t.grid.bDiv).scroll(function(){n(t.grid.fbDiv).scrollTop(n(this).scrollTop())}),t.p.hoverrows===!0&&n("#"+n.jgrid.jqID(t.p.id)).unbind("mouseover").unbind("mouseout"),n(t).bind("jqGridAfterGridComplete.setFrozenColumns",function(){n("#"+n.jgrid.jqID(t.p.id)+"_frozen").remove(),n(t.grid.fbDiv).height(n(t.grid.bDiv).height()-16);var r=n("#"+n.jgrid.jqID(t.p.id)).clone(!0);n("tr",r).each(function(){n("td:gt("+i+")",this).remove()}),n(r).width(1).attr("id",t.p.id+"_frozen"),n(t.grid.fbDiv).append(r),t.p.hoverrows===!0&&(n("tr.jqgrow",r).hover(function(){n(this).addClass("ui-state-hover"),n("#"+n.jgrid.jqID(this.id),"#"+n.jgrid.jqID(t.p.id)).addClass("ui-state-hover")},function(){n(this).removeClass("ui-state-hover"),n("#"+n.jgrid.jqID(this.id),"#"+n.jgrid.jqID(t.p.id)).removeClass("ui-state-hover")}),n("tr.jqgrow","#"+n.jgrid.jqID(t.p.id)).hover(function(){n(this).addClass("ui-state-hover"),n("#"+n.jgrid.jqID(this.id),"#"+n.jgrid.jqID(t.p.id)+"_frozen").addClass("ui-state-hover")},function(){n(this).removeClass("ui-state-hover"),n("#"+n.jgrid.jqID(this.id),"#"+n.jgrid.jqID(t.p.id)+"_frozen").removeClass("ui-state-hover")})),r=null}),t.p.frozenColumns=!0)}}})},destroyFrozenColumns:function(){return this.each(function(){var t,i;this.grid&&this.p.frozenColumns===!0&&(t=this,n(t.grid.fhDiv).remove(),n(t.grid.fbDiv).remove(),t.grid.fhDiv=null,t.grid.fbDiv=null,n(this).unbind(".setFrozenColumns"),t.p.hoverrows===!0&&n("#"+n.jgrid.jqID(t.p.id)).bind("mouseover",function(t){i=n(t.target).closest("tr.jqgrow"),n(i).attr("class")!=="ui-subgrid"&&n(i).addClass("ui-state-hover")}).bind("mouseout",function(t){i=n(t.target).closest("tr.jqgrow"),n(i).removeClass("ui-state-hover")}),this.p.frozenColumns=!1)})}})}(jQuery),function(n){n.fn.jqm=function(r){var f={overlay:50,closeoverlay:!0,overlayClass:"jqmOverlay",closeClass:"jqmClose",trigger:".jqModal",ajax:t,ajaxText:"",target:t,modal:t,toTop:t,onShow:t,onHide:t,onLoad:t};return this.each(function(){if(this._jqm)return i[this._jqm].c=n.extend({},i[this._jqm].c,r);u++,this._jqm=u,i[u]={c:n.extend(f,n.jqm.params,r),a:t,w:n(this).addClass("jqmID"+u),s:u},f.trigger&&n(this).jqmAddTrigger(f.trigger)})},n.fn.jqmAddClose=function(n){return h(this,n,"jqmHide")},n.fn.jqmAddTrigger=function(n){return h(this,n,"jqmShow")},n.fn.jqmShow=function(t){return this.each(function(){n.jqm.open(this._jqm,t)})},n.fn.jqmHide=function(t){return this.each(function(){n.jqm.close(this._jqm,t)})},n.jqm={hash:{},open:function(u,f){var o=i[u],h=o.c,y="."+h.closeClass,a=parseInt(o.w.css("z-index")),v,c,l;return(a=a>0?a:3e3,v=n("<div><\/div>").css({height:"100%",width:"100%",position:"fixed",left:0,top:0,"z-index":a-1,opacity:h.overlay/100}),o.a)?t:(o.t=f,o.a=!0,o.w.css("z-index",a),h.modal?(r[0]||setTimeout(function(){s("bind")},1),r.push(u)):h.overlay>0?h.closeoverlay&&o.w.jqmAddClose(v):v=t,o.o=v?v.addClass(h.overlayClass).prependTo("body"):t,h.ajax?(c=h.target||o.w,l=h.ajax,c=typeof c=="string"?n(c,o.w):n(c),l=l.substr(0,1)=="@"?n(f).attr(l.substring(1)):l,c.html(h.ajaxText).load(l,function(){h.onLoad&&h.onLoad.call(this,o),y&&o.w.jqmAddClose(n(y,o.w)),e(o)})):y&&o.w.jqmAddClose(n(y,o.w)),h.toTop&&o.o&&o.w.before('<span id="jqmP'+o.w[0]._jqm+'"><\/span>').insertAfter(o.o),h.onShow?h.onShow(o):o.w.show(),e(o),t)},close:function(u){var f=i[u];if(!f.a)return t;if(f.a=t,r[0]&&(r.pop(),r[0]||s("unbind")),f.c.toTop&&f.o&&n("#jqmP"+f.w[0]._jqm).after(f.w).remove(),f.c.onHide)f.c.onHide(f);else f.w.hide(),f.o&&f.o.remove();return t},params:{}};var u=0,i=n.jqm.hash,r=[],t=!1,e=function(n){o(n)},o=function(t){try{n(":input:visible",t.w)[0].focus()}catch(i){}},s=function(t){n(document)[t]("keypress",f)[t]("keydown",f)[t]("mousedown",f)},f=function(t){var u=i[r[r.length-1]],f=!n(t.target).parents(".jqmID"+u.s)[0];return f&&(n(".jqmID"+u.s).each(function(){var r=n(this),i=r.offset();if(i.top<=t.pageY&&t.pageY<=i.top+r.height()&&i.left<=t.pageX&&t.pageX<=i.left+r.width())return f=!1,!1}),o(u)),!f},h=function(r,u,f){return r.each(function(){var r=this._jqm;n(u).each(function(){this[f]||(this[f]=[],n(this).click(function(){var n,r;for(n in{jqmShow:1,jqmHide:1})for(r in this[n])i[this[n][r]]&&i[this[n][r]].w[n](this);return t})),this[f].push(r)})})}}(jQuery),function(n){n.fn.jqDrag=function(n){return s(this,n,"d")},n.fn.jqResize=function(n,t){return s(this,n,"r",t)},n.jqDnR={dnr:{},e:0,drag:function(n){return t.k=="d"?i.css({left:t.X+n.pageX-t.pX,top:t.Y+n.pageY-t.pY}):(i.css({width:Math.max(n.pageX-t.pX+t.W,0),height:Math.max(n.pageY-t.pY+t.H,0)}),r&&u.css({width:Math.max(n.pageX-r.pX+r.W,0),height:Math.max(n.pageY-r.pY+r.H,0)})),!1},stop:function(){n(document).unbind("mousemove",f.drag).unbind("mouseup",f.stop)}};var f=n.jqDnR,t=f.dnr,i=f.e,u,r,s=function(f,s,h,c){return f.each(function(){s=s?n(s,f):f,s.bind("mousedown",{e:f,k:h},function(f){var h=f.data,s={};if(i=h.e,u=c?n(c):!1,i.css("position")!="relative")try{i.position(s)}catch(l){}if(t={X:s.left||e("left")||0,Y:s.top||e("top")||0,W:e("width")||i[0].scrollWidth||0,H:e("height")||i[0].scrollHeight||0,pX:f.pageX,pY:f.pageY,k:h.k},r=u&&h.k!="d"?{X:s.left||o("left")||0,Y:s.top||o("top")||0,W:u[0].offsetWidth||o("width")||0,H:u[0].offsetHeight||o("height")||0,pX:f.pageX,pY:f.pageY,k:h.k}:!1,n("input.hasDatepicker",i[0])[0])try{n("input.hasDatepicker",i[0]).datepicker("hide")}catch(a){}return n(document).mousemove(n.jqDnR.drag).mouseup(n.jqDnR.stop),!1})})},e=function(n){return parseInt(i.css(n),10)||!1},o=function(n){return parseInt(u.css(n),10)||!1}}(jQuery),xmlJsonClass={xml2json:function(n,t){n.nodeType===9&&(n=n.documentElement);var r=this.removeWhite(n),u=this.toObj(r),i=this.toJson(u,n.nodeName,"\t");return"{\n"+t+(t?i.replace(/\t/g,t):i.replace(/\t|\n/g,""))+"\n}"},json2xml:function(n,t){var r=function(n,t,i){var u="",e,s,h,o,f;if(n instanceof Array)if(n.length===0)u+=i+"<"+t+">__EMPTY_ARRAY_<\/"+t+">\n";else for(e=0,s=n.length;e<s;e+=1)h=i+r(n[e],t,i+"\t")+"\n",u+=h;else if(typeof n=="object"){o=!1,u+=i+"<"+t;for(f in n)n.hasOwnProperty(f)&&(f.charAt(0)==="@"?u+=" "+f.substr(1)+'="'+n[f].toString()+'"':o=!0);if(u+=o?">":"/>",o){for(f in n)n.hasOwnProperty(f)&&(f==="#text"?u+=n[f]:f==="#cdata"?u+="<![CDATA["+n[f]+"]\]>":f.charAt(0)!=="@"&&(u+=r(n[f],f,i+"\t")));u+=(u.charAt(u.length-1)==="\n"?i:"")+"<\/"+t+">"}}else typeof n=="function"?u+=i+"<"+t+"><![CDATA["+n+"]\]><\/"+t+">":(n===undefined&&(n=""),u+=n.toString()==='""'||n.toString().length===0?i+"<"+t+">__EMPTY_STRING_<\/"+t+">":i+"<"+t+">"+n.toString()+"<\/"+t+">");return u},u="",i;for(i in n)n.hasOwnProperty(i)&&(u+=r(n[i],i,""));return t?u.replace(/\t/g,t):u.replace(/\t|\n/g,"")},toObj:function(n){var i={},e=/function/i,r;if(n.nodeType===1){if(n.attributes.length)for(r=0;r<n.attributes.length;r+=1)i["@"+n.attributes[r].nodeName]=(n.attributes[r].nodeValue||"").toString();if(n.firstChild){for(var f=0,u=0,o=!1,t=n.firstChild;t;t=t.nextSibling)t.nodeType===1?o=!0:t.nodeType===3&&t.nodeValue.match(/[^ \f\n\r\t\v]/)?f+=1:t.nodeType===4&&(u+=1);if(o)if(f<2&&u<2)for(this.removeWhite(n),t=n.firstChild;t;t=t.nextSibling)t.nodeType===3?i["#text"]=this.escape(t.nodeValue):t.nodeType===4?e.test(t.nodeValue)?i[t.nodeName]=[i[t.nodeName],t.nodeValue]:i["#cdata"]=this.escape(t.nodeValue):i[t.nodeName]?i[t.nodeName]instanceof Array?i[t.nodeName][i[t.nodeName].length]=this.toObj(t):i[t.nodeName]=[i[t.nodeName],this.toObj(t)]:i[t.nodeName]=this.toObj(t);else n.attributes.length?i["#text"]=this.escape(this.innerXml(n)):i=this.escape(this.innerXml(n));else if(f)n.attributes.length?i["#text"]=this.escape(this.innerXml(n)):(i=this.escape(this.innerXml(n)),i==="__EMPTY_ARRAY_"?i="[]":i==="__EMPTY_STRING_"&&(i=""));else if(u)if(u>1)i=this.escape(this.innerXml(n));else for(t=n.firstChild;t;t=t.nextSibling)if(e.test(n.firstChild.nodeValue)){i=n.firstChild.nodeValue;break}else i["#cdata"]=this.escape(t.nodeValue)}n.attributes.length||n.firstChild||(i=null)}else n.nodeType===9?i=this.toObj(n.documentElement):alert("unhandled node type: "+n.nodeType);return i},toJson:function(n,t,i,r){var l,s,h,o,c;r===undefined&&(r=!0);var u=t?'"'+t+'"':"",f="\t",e="\n";if(r||(f="",e=""),n==="[]")u+=t?":[]":"[]";else if(n instanceof Array){for(h=[],s=0,l=n.length;s<l;s+=1)h[s]=this.toJson(n[s],"",i+f,r);u+=(t?":[":"[")+(h.length>1?e+i+f+h.join(","+e+i+f)+e+i:h.join(""))+"]"}else if(n===null)u+=(t&&":")+"null";else if(typeof n=="object"){o=[];for(c in n)n.hasOwnProperty(c)&&(o[o.length]=this.toJson(n[c],c,i+f,r));u+=(t?":{":"{")+(o.length>1?e+i+f+o.join(","+e+i+f)+e+i:o.join(""))+"}"}else u+=typeof n=="string"?(t&&":")+'"'+n.replace(/\\/g,"\\\\").replace(/\"/g,'\\"')+'"':(t&&":")+n.toString();return u},innerXml:function(n){var i="",r,t;if("innerHTML"in n)i=n.innerHTML;else for(r=function(n){var t="",i,u;if(n.nodeType===1){for(t+="<"+n.nodeName,i=0;i<n.attributes.length;i+=1)t+=" "+n.attributes[i].nodeName+'="'+(n.attributes[i].nodeValue||"").toString()+'"';if(n.firstChild){for(t+=">",u=n.firstChild;u;u=u.nextSibling)t+=r(u);t+="<\/"+n.nodeName+">"}else t+="/>"}else n.nodeType===3?t+=n.nodeValue:n.nodeType===4&&(t+="<![CDATA["+n.nodeValue+"]\]>");return t},t=n.firstChild;t;t=t.nextSibling)i+=r(t);return i},escape:function(n){return n.replace(/[\\]/g,"\\\\").replace(/[\"]/g,'\\"').replace(/[\n]/g,"\\n").replace(/[\r]/g,"\\r")},removeWhite:function(n){var t,i;for(n.normalize(),t=n.firstChild;t;)t.nodeType===3?t.nodeValue.match(/[^ \f\n\r\t\v]/)?t=t.nextSibling:(i=t.nextSibling,n.removeChild(t),t=i):t.nodeType===1?(this.removeWhite(t),t=t.nextSibling):t=t.nextSibling;return n}},function(n){"use strict";n.fmatter={},n.extend(n.fmatter,{isBoolean:function(n){return typeof n=="boolean"},isObject:function(t){return t&&(typeof t=="object"||n.isFunction(t))||!1},isString:function(n){return typeof n=="string"},isNumber:function(n){return typeof n=="number"&&isFinite(n)},isValue:function(n){return this.isObject(n)||this.isString(n)||this.isNumber(n)||this.isBoolean(n)},isEmpty:function(t){return!this.isString(t)&&this.isValue(t)?!1:this.isValue(t)?(t=n.trim(t).replace(/\&nbsp\;/ig,"").replace(/\&#160\;/ig,""),t===""):!0}}),n.fn.fmatter=function(t,i,r,u,f){var e=i;r=n.extend({},n.jgrid.formatter,r);try{e=n.fn.fmatter[t].call(this,i,r,u,f)}catch(o){}return e},n.fmatter.util={NumberFormat:function(t,i){var s,h,l,f,c,e;if(n.fmatter.isNumber(t)||(t*=1),n.fmatter.isNumber(t)){var a=t<0,r=String(t),o=i.decimalSeparator||".",u;if(n.fmatter.isNumber(i.decimalPlaces)&&(s=i.decimalPlaces,h=Math.pow(10,s),r=String(Math.round(t*h)/h),u=r.lastIndexOf("."),s>0))for(u<0?(r+=o,u=r.length-1):o!=="."&&(r=r.replace(".",o));r.length-1-u<s;)r+="0";if(i.thousandsSeparator){for(l=i.thousandsSeparator,u=r.lastIndexOf(o),u=u>-1?u:r.length,f=r.substring(u),c=-1,e=u;e>0;e--)c++,c%3==0&&e!==u&&(!a||e>1)&&(f=l+f),f=r.charAt(e-1)+f;r=f}return r=i.prefix?i.prefix+r:r,r=i.suffix?r+i.suffix:r}return t}},n.fn.fmatter.defaultFormat=function(t,i){return n.fmatter.isValue(t)&&t!==""?t:i.defaultValue||"&#160;"},n.fn.fmatter.email=function(t,i){return n.fmatter.isEmpty(t)?n.fn.fmatter.defaultFormat(t,i):'<a href="mailto:'+t+'">'+t+"<\/a>"},n.fn.fmatter.checkbox=function(t,i){var r=n.extend({},i.checkbox),u,f;return i.colModel!==undefined&&i.colModel.formatoptions!==undefined&&(r=n.extend({},r,i.colModel.formatoptions)),u=r.disabled===!0?'disabled="disabled"':"",(n.fmatter.isEmpty(t)||t===undefined)&&(t=n.fn.fmatter.defaultFormat(t,r)),t=String(t),t=t.toLowerCase(),f=t.search(/(false|f|0|no|n|off|undefined)/i)<0?" checked='checked' ":"",'<input type="checkbox" '+f+' value="'+t+'" offval="no" '+u+"/>"},n.fn.fmatter.link=function(t,i){var r={target:i.target},u="";return(i.colModel!==undefined&&i.colModel.formatoptions!==undefined&&(r=n.extend({},r,i.colModel.formatoptions)),r.target&&(u="target="+r.target),!n.fmatter.isEmpty(t))?"<a "+u+' href="'+t+'">'+t+"<\/a>":n.fn.fmatter.defaultFormat(t,i)},n.fn.fmatter.showlink=function(t,i){var r={baseLinkUrl:i.baseLinkUrl,showAction:i.showAction,addParam:i.addParam||"",target:i.target,idName:i.idName},u="",f;return(i.colModel!==undefined&&i.colModel.formatoptions!==undefined&&(r=n.extend({},r,i.colModel.formatoptions)),r.target&&(u="target="+r.target),f=r.baseLinkUrl+r.showAction+"?"+r.idName+"="+i.rowId+r.addParam,n.fmatter.isString(t)||n.fmatter.isNumber(t))?"<a "+u+' href="'+f+'">'+t+"<\/a>":n.fn.fmatter.defaultFormat(t,i)},n.fn.fmatter.integer=function(t,i){var r=n.extend({},i.integer);return(i.colModel!==undefined&&i.colModel.formatoptions!==undefined&&(r=n.extend({},r,i.colModel.formatoptions)),n.fmatter.isEmpty(t))?r.defaultValue:n.fmatter.util.NumberFormat(t,r)},n.fn.fmatter.number=function(t,i){var r=n.extend({},i.number);return(i.colModel!==undefined&&i.colModel.formatoptions!==undefined&&(r=n.extend({},r,i.colModel.formatoptions)),n.fmatter.isEmpty(t))?r.defaultValue:n.fmatter.util.NumberFormat(t,r)},n.fn.fmatter.currency=function(t,i){var r=n.extend({},i.currency);return(i.colModel!==undefined&&i.colModel.formatoptions!==undefined&&(r=n.extend({},r,i.colModel.formatoptions)),n.fmatter.isEmpty(t))?r.defaultValue:n.fmatter.util.NumberFormat(t,r)},n.fn.fmatter.date=function(t,i,r,u){var f=n.extend({},i.date);return(i.colModel!==undefined&&i.colModel.formatoptions!==undefined&&(f=n.extend({},f,i.colModel.formatoptions)),!f.reformatAfterEdit&&u==="edit")?n.fn.fmatter.defaultFormat(t,i):n.fmatter.isEmpty(t)?n.fn.fmatter.defaultFormat(t,i):n.jgrid.parseDate(f.srcformat,t,f.newformat,f)},n.fn.fmatter.select=function(t,i){var r,f,o,c,s,e,u,l,a,h;if(t=String(t),r=!1,f=[],i.colModel.formatoptions!==undefined?(r=i.colModel.formatoptions.value,o=i.colModel.formatoptions.separator===undefined?":":i.colModel.formatoptions.separator,c=i.colModel.formatoptions.delimiter===undefined?";":i.colModel.formatoptions.delimiter):i.colModel.editoptions!==undefined&&(r=i.colModel.editoptions.value,o=i.colModel.editoptions.separator===undefined?":":i.colModel.editoptions.separator,c=i.colModel.editoptions.delimiter===undefined?";":i.colModel.editoptions.delimiter),r)if(s=i.colModel.editoptions.multiple===!0?!0:!1,e=[],s&&(e=t.split(","),e=n.map(e,function(t){return n.trim(t)})),n.fmatter.isString(r)){for(l=r.split(c),a=0,h=0;h<l.length;h++)if(u=l[h].split(o),u.length>2&&(u[1]=n.map(u,function(n,t){if(t>0)return n}).join(o)),s)n.inArray(u[0],e)>-1&&(f[a]=u[1],a++);else if(n.trim(u[0])===n.trim(t)){f[0]=u[1];break}}else n.fmatter.isObject(r)&&(s?f=n.map(e,function(n){return r[n]}):f[0]=r[t]||"");return t=f.join(", "),t===""?n.fn.fmatter.defaultFormat(t,i):t},n.fn.fmatter.rowactions=function(t){var c=n(this).closest("tr.jqgrow"),f=c.attr("id"),a=n(this).closest("table.ui-jqgrid-btable").attr("id").replace(/_frozen([^_]*)$/,"$1"),r=n("#"+a),o=r[0],e=o.p,s=e.colModel[n.jgrid.getCellIndex(this)],u=s.frozen?n("tr#"+f+" td:eq("+n.jgrid.getCellIndex(this)+") > div",r):n(this).parent(),i={keys:!1,onEdit:null,onSuccess:null,afterSave:null,onError:null,afterRestore:null,extraparam:{},url:null,restoreAfterError:!0,mtype:"POST",delOptions:{},editOptions:{}},v=function(t,r){n.isFunction(i.afterSave)&&i.afterSave.call(o,t,r),u.find("div.ui-inline-edit,div.ui-inline-del").show(),u.find("div.ui-inline-save,div.ui-inline-cancel").hide()},l=function(t){n.isFunction(i.afterRestore)&&i.afterRestore.call(o,t),u.find("div.ui-inline-edit,div.ui-inline-del").show(),u.find("div.ui-inline-save,div.ui-inline-cancel").hide()},h;s.formatoptions!==undefined&&(i=n.extend(i,s.formatoptions)),e.editOptions!==undefined&&(i.editOptions=e.editOptions),e.delOptions!==undefined&&(i.delOptions=e.delOptions),c.hasClass("jqgrid-new-row")&&(i.extraparam[e.prmNames.oper]=e.prmNames.addoper),h={keys:i.keys,oneditfunc:i.onEdit,successfunc:i.onSuccess,url:i.url,extraparam:i.extraparam,aftersavefunc:v,errorfunc:i.onError,afterrestorefunc:l,restoreAfterError:i.restoreAfterError,mtype:i.mtype};switch(t){case"edit":r.jqGrid("editRow",f,h),u.find("div.ui-inline-edit,div.ui-inline-del").hide(),u.find("div.ui-inline-save,div.ui-inline-cancel").show(),r.triggerHandler("jqGridAfterGridComplete");break;case"save":r.jqGrid("saveRow",f,h)&&(u.find("div.ui-inline-edit,div.ui-inline-del").show(),u.find("div.ui-inline-save,div.ui-inline-cancel").hide(),r.triggerHandler("jqGridAfterGridComplete"));break;case"cancel":r.jqGrid("restoreRow",f,l),u.find("div.ui-inline-edit,div.ui-inline-del").show(),u.find("div.ui-inline-save,div.ui-inline-cancel").hide(),r.triggerHandler("jqGridAfterGridComplete");break;case"del":r.jqGrid("delGridRow",f,i.delOptions);break;case"formedit":r.jqGrid("setSelection",f),r.jqGrid("editGridRow",f,i.editOptions)}},n.fn.fmatter.actions=function(t,i){var e={keys:!1,editbutton:!0,delbutton:!0,editformbutton:!1},u=i.rowId,f="",r;return(i.colModel.formatoptions!==undefined&&(e=n.extend(e,i.colModel.formatoptions)),u===undefined||n.fmatter.isEmpty(u))?"":(e.editformbutton?(r="id='jEditButton_"+u+"' onclick=jQuery.fn.fmatter.rowactions.call(this,'formedit'); onmouseover=jQuery(this).addClass('ui-state-hover'); onmouseout=jQuery(this).removeClass('ui-state-hover'); ",f+="<div title='"+n.jgrid.nav.edittitle+"' style='float:left;cursor:pointer;' class='ui-pg-div ui-inline-edit' "+r+"><span class='ui-icon ui-icon-pencil'><\/span><\/div>"):e.editbutton&&(r="id='jEditButton_"+u+"' onclick=jQuery.fn.fmatter.rowactions.call(this,'edit'); onmouseover=jQuery(this).addClass('ui-state-hover'); onmouseout=jQuery(this).removeClass('ui-state-hover') ",f+="<div title='"+n.jgrid.nav.edittitle+"' style='float:left;cursor:pointer;' class='ui-pg-div ui-inline-edit' "+r+"><span class='ui-icon ui-icon-pencil'><\/span><\/div>"),e.delbutton&&(r="id='jDeleteButton_"+u+"' onclick=jQuery.fn.fmatter.rowactions.call(this,'del'); onmouseover=jQuery(this).addClass('ui-state-hover'); onmouseout=jQuery(this).removeClass('ui-state-hover'); ",f+="<div title='"+n.jgrid.nav.deltitle+"' style='float:left;margin-left:5px;' class='ui-pg-div ui-inline-del' "+r+"><span class='ui-icon ui-icon-trash'><\/span><\/div>"),r="id='jSaveButton_"+u+"' onclick=jQuery.fn.fmatter.rowactions.call(this,'save'); onmouseover=jQuery(this).addClass('ui-state-hover'); onmouseout=jQuery(this).removeClass('ui-state-hover'); ",f+="<div title='"+n.jgrid.edit.bSubmit+"' style='float:left;display:none' class='ui-pg-div ui-inline-save' "+r+"><span class='ui-icon ui-icon-disk'><\/span><\/div>",r="id='jCancelButton_"+u+"' onclick=jQuery.fn.fmatter.rowactions.call(this,'cancel'); onmouseover=jQuery(this).addClass('ui-state-hover'); onmouseout=jQuery(this).removeClass('ui-state-hover'); ",f+="<div title='"+n.jgrid.edit.bCancel+"' style='float:left;display:none;margin-left:5px;' class='ui-pg-div ui-inline-cancel' "+r+"><span class='ui-icon ui-icon-cancel'><\/span><\/div>","<div style='margin-left:8px;'>"+f+"<\/div>")},n.unformat=function(t,i,r,u){var e,h=i.colModel.formatter,f=i.colModel.formatoptions||{},o,l=/([\.\*\_\'\(\)\{\}\+\?\\])/g,a=i.colModel.unformat||n.fn.fmatter[h]&&n.fn.fmatter[h].unformat,c,s,v;if(a!==undefined&&n.isFunction(a))e=a.call(this,n(t).text(),i,t);else if(h!==undefined&&n.fmatter.isString(h)){c=n.jgrid.formatter||{};switch(h){case"integer":f=n.extend({},c.integer,f),o=f.thousandsSeparator.replace(l,"\\$1"),s=new RegExp(o,"g"),e=n(t).text().replace(s,"");break;case"number":f=n.extend({},c.number,f),o=f.thousandsSeparator.replace(l,"\\$1"),s=new RegExp(o,"g"),e=n(t).text().replace(s,"").replace(f.decimalSeparator,".");break;case"currency":f=n.extend({},c.currency,f),o=f.thousandsSeparator.replace(l,"\\$1"),s=new RegExp(o,"g"),e=n(t).text(),f.prefix&&f.prefix.length&&(e=e.substr(f.prefix.length)),f.suffix&&f.suffix.length&&(e=e.substr(0,e.length-f.suffix.length)),e=e.replace(s,"").replace(f.decimalSeparator,".");break;case"checkbox":v=i.colModel.editoptions?i.colModel.editoptions.value.split(":"):["Yes","No"],e=n("input",t).is(":checked")?v[0]:v[1];break;case"select":e=n.unformat.select(t,i,r,u);break;case"actions":return"";default:e=n(t).text()}}return e!==undefined?e:u===!0?n(t).text():n.jgrid.htmlDecode(n(t).html())},n.unformat.select=function(t,i,r,u){var c=[],s=n(t).text(),v,y,l;if(u===!0)return s;var e=n.extend({},i.colModel.formatoptions!==undefined?i.colModel.formatoptions:i.colModel.editoptions),p=e.separator===undefined?":":e.separator,w=e.delimiter===undefined?";":e.delimiter;if(e.value){var h=e.value,a=e.multiple===!0?!0:!1,o=[],f;if(a&&(o=s.split(","),o=n.map(o,function(t){return n.trim(t)})),n.fmatter.isString(h)){for(v=h.split(w),y=0,l=0;l<v.length;l++)if(f=v[l].split(p),f.length>2&&(f[1]=n.map(f,function(n,t){if(t>0)return n}).join(p)),a)n.inArray(f[1],o)>-1&&(c[y]=f[0],y++);else if(n.trim(f[1])===n.trim(s)){c[0]=f[0];break}}else(n.fmatter.isObject(h)||n.isArray(h))&&(a||(o[0]=s),c=n.map(o,function(t){var i;return n.each(h,function(n,r){if(r===t)return i=n,!1}),i!==undefined?i:void 0}));return c.join(", ")}return s||""},n.unformat.date=function(t,i){var r=n.jgrid.formatter.date||{};return(i.formatoptions!==undefined&&(r=n.extend({},r,i.formatoptions)),!n.fmatter.isEmpty(t))?n.jgrid.parseDate(r.newformat,t,r.srcformat,r):n.fn.fmatter.defaultFormat(t,i)}}(jQuery),function(n){"use strict";n.extend(n.jgrid,{showModal:function(n){n.w.show()},closeModal:function(n){n.w.hide().attr("aria-hidden","true"),n.o&&n.o.remove()},hideModal:function(t,i){if(i=n.extend({jqm:!0,gb:""},i||{}),i.onClose){var r=i.gb&&typeof i.gb=="string"&&i.gb.substr(0,6)==="#gbox_"?i.onClose.call(n("#"+i.gb.substr(6))[0],t):i.onClose(t);if(typeof r=="boolean"&&!r)return}if(n.fn.jqm&&i.jqm===!0)n(t).attr("aria-hidden","true").jqmHide();else{if(i.gb!=="")try{n(".jqgrid-overlay:first",i.gb).hide()}catch(u){}n(t).hide().attr("aria-hidden","true")}},findPos:function(n){var t=0,i=0;if(n.offsetParent)do t+=n.offsetLeft,i+=n.offsetTop;while(n=n.offsetParent);return[t,i]},createModal:function(t,i,r,u,f,e,o){var s,y,p,h,l,a,c,v,w,b;if(r=n.extend(!0,{},n.jgrid.jqModal||{},r),s=document.createElement("div"),p=this,o=n.extend({},o||{}),y=n(r.gbox).attr("dir")==="rtl"?!0:!1,s.className="ui-widget ui-widget-content ui-corner-all ui-jqdialog",s.id=t.themodal,h=document.createElement("div"),h.className="ui-jqdialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix",h.id=t.modalhead,n(h).append("<span class='ui-jqdialog-title'>"+r.caption+"<\/span>"),l=n("<a href='javascript:void(0)' class='ui-jqdialog-titlebar-close ui-corner-all'><\/a>").hover(function(){l.addClass("ui-state-hover")},function(){l.removeClass("ui-state-hover")}).append("<span class='ui-icon ui-icon-closethick'><\/span>"),n(h).append(l),y?(s.dir="rtl",n(".ui-jqdialog-title",h).css("float","right"),n(".ui-jqdialog-titlebar-close",h).css("left",.3+"em")):(s.dir="ltr",n(".ui-jqdialog-title",h).css("float","left"),n(".ui-jqdialog-titlebar-close",h).css("right",.3+"em")),a=document.createElement("div"),n(a).addClass("ui-jqdialog-content ui-widget-content").attr("id",t.modalcontent),n(a).append(i),s.appendChild(a),n(s).prepend(h),e===!0?n("body").append(s):typeof e=="string"?n(e).append(s):n(s).insertBefore(u),n(s).css(o),r.jqModal===undefined&&(r.jqModal=!0),c={},n.fn.jqm&&r.jqModal===!0?(r.left===0&&r.top===0&&r.overlay&&(v=[],v=n.jgrid.findPos(f),r.left=v[0]+4,r.top=v[1]+4),c.top=r.top+"px",c.left=r.left):(r.left!==0||r.top!==0)&&(c.left=r.left,c.top=r.top+"px"),n("a.ui-jqdialog-titlebar-close",h).click(function(){var i=n("#"+n.jgrid.jqID(t.themodal)).data("onClose")||r.onClose,u=n("#"+n.jgrid.jqID(t.themodal)).data("gbox")||r.gbox;return p.hideModal("#"+n.jgrid.jqID(t.themodal),{gb:u,jqm:r.jqModal,onClose:i}),!1}),r.width!==0&&r.width||(r.width=300),r.height!==0&&r.height||(r.height=200),r.zIndex||(w=n(u).parents("*[role=dialog]").filter(":first").css("z-index"),r.zIndex=w?parseInt(w,10)+2:950),b=0,y&&c.left&&!e&&(b=n(r.gbox).width()-(isNaN(r.width)?0:parseInt(r.width,10))-8,c.left=parseInt(c.left,10)+parseInt(b,10)),c.left&&(c.left+="px"),n(s).css(n.extend({width:isNaN(r.width)?"auto":r.width+"px",height:isNaN(r.height)?"auto":r.height+"px",zIndex:r.zIndex,overflow:"hidden"},c)).attr({tabIndex:"-1",role:"dialog","aria-labelledby":t.modalhead,"aria-hidden":"true"}),r.drag===undefined&&(r.drag=!0),r.resize===undefined&&(r.resize=!0),r.drag)if(n(h).css("cursor","move"),n.fn.jqDrag)n(s).jqDrag(h);else try{n(s).draggable({handle:n("#"+n.jgrid.jqID(h.id))})}catch(k){}if(r.resize)if(n.fn.jqResize)n(s).append("<div class='jqResize ui-resizable-handle ui-resizable-se ui-icon ui-icon-gripsmall-diagonal-se'><\/div>"),n("#"+n.jgrid.jqID(t.themodal)).jqResize(".jqResize",t.scrollelm?"#"+n.jgrid.jqID(t.scrollelm):!1);else try{n(s).resizable({handles:"se, sw",alsoResize:t.scrollelm?"#"+n.jgrid.jqID(t.scrollelm):!1})}catch(d){}r.closeOnEscape===!0&&n(s).keydown(function(i){if(i.which==27){var u=n("#"+n.jgrid.jqID(t.themodal)).data("onClose")||r.onClose;p.hideModal("#"+n.jgrid.jqID(t.themodal),{gb:r.gbox,jqm:r.jqModal,onClose:u})}})},viewModal:function(t,i){if(i=n.extend({toTop:!0,overlay:10,modal:!1,overlayClass:"ui-widget-overlay",onShow:n.jgrid.showModal,onHide:n.jgrid.closeModal,gbox:"",jqm:!0,jqM:!0},i||{}),n.fn.jqm&&i.jqm===!0)i.jqM?n(t).attr("aria-hidden","false").jqm(i).jqmShow():n(t).attr("aria-hidden","false").jqmShow();else{i.gbox!==""&&(n(".jqgrid-overlay:first",i.gbox).show(),n(t).data("gbox",i.gbox)),n(t).show().attr("aria-hidden","false");try{n(":input:visible",t)[0].focus()}catch(r){}}},info_dialog:function(t,i,r,u){var f={width:290,height:"auto",dataheight:"auto",drag:!0,resize:!1,left:250,top:170,zIndex:1e3,jqModal:!0,modal:!1,closeOnEscape:!0,align:"center",buttonalign:"center",buttons:[]},o,c,s,e;if(n.extend(!0,f,n.jgrid.jqModal||{},{caption:"<b>"+t+"<\/b>"},u||{}),o=f.jqModal,c=this,n.fn.jqm&&!o&&(o=!1),s="",f.buttons.length>0)for(e=0;e<f.buttons.length;e++)f.buttons[e].id===undefined&&(f.buttons[e].id="info_button_"+e),s+="<a href='javascript:void(0)' id='"+f.buttons[e].id+"' class='fm-button ui-state-default ui-corner-all'>"+f.buttons[e].text+"<\/a>";var l=isNaN(f.dataheight)?f.dataheight:f.dataheight+"px",a="text-align:"+f.align+";",h="<div id='info_id'>";h+="<div id='infocnt' style='margin:0px;padding-bottom:1em;width:100%;overflow:auto;position:relative;height:"+l+";"+a+"'>"+i+"<\/div>",h+=r?"<div class='ui-widget-content ui-helper-clearfix' style='text-align:"+f.buttonalign+";padding-bottom:0.8em;padding-top:0.5em;background-image: none;border-width: 1px 0 0 0;'><a href='javascript:void(0)' id='closedialog' class='fm-button ui-state-default ui-corner-all'>"+r+"<\/a>"+s+"<\/div>":s!==""?"<div class='ui-widget-content ui-helper-clearfix' style='text-align:"+f.buttonalign+";padding-bottom:0.8em;padding-top:0.5em;background-image: none;border-width: 1px 0 0 0;'>"+s+"<\/div>":"",h+="<\/div>";try{n("#info_dialog").attr("aria-hidden")==="false"&&n.jgrid.hideModal("#info_dialog",{jqm:o}),n("#info_dialog").remove()}catch(v){}n.jgrid.createModal({themodal:"info_dialog",modalhead:"info_head",modalcontent:"info_content",scrollelm:"infocnt"},h,f,"","",!0),s&&n.each(f.buttons,function(t){n("#"+n.jgrid.jqID(this.id),"#info_id").bind("click",function(){return f.buttons[t].onClick.call(n("#info_dialog")),!1})}),n("#closedialog","#info_id").click(function(){return c.hideModal("#info_dialog",{jqm:o,onClose:n("#info_dialog").data("onClose")||f.onClose,gb:n("#info_dialog").data("gbox")||f.gbox}),!1}),n(".fm-button","#info_dialog").hover(function(){n(this).addClass("ui-state-hover")},function(){n(this).removeClass("ui-state-hover")}),n.isFunction(f.beforeOpen)&&f.beforeOpen(),n.jgrid.viewModal("#info_dialog",{onHide:function(n){n.w.hide().remove(),n.o&&n.o.remove()},modal:f.modal,jqm:o}),n.isFunction(f.afterOpen)&&f.afterOpen();try{n("#info_dialog").focus()}catch(y){}},bindEv:function(t,i){var r=this;n.isFunction(i.dataInit)&&i.dataInit.call(r,t),i.dataEvents&&n.each(i.dataEvents,function(){this.data!==undefined?n(t).bind(this.type,this.data,this.fn):n(t).bind(this.type,this.fn)})},createEl:function(t,i,r,u,f){function v(t,i,r){var u=["dataInit","dataEvents","dataUrl","buildSelect","sopt","searchhidden","defaultValue","attr","custom_element","custom_value"];r!==undefined&&n.isArray(r)&&n.merge(u,r),n.each(i,function(i,r){n.inArray(i,u)===-1&&n(t).attr(i,r)}),i.hasOwnProperty("id")||n(t).attr("id",n.jgrid.randId())}var e="",a=this,g,b,h,c,k,p,d,nt,s,o,tt,rt,y,l,it,w;switch(t){case"textarea":e=document.createElement("textarea"),u?i.cols||n(e).css({width:"98%"}):i.cols||(i.cols=20),i.rows||(i.rows=2),(r==="&nbsp;"||r==="&#160;"||r.length===1&&r.charCodeAt(0)===160)&&(r=""),e.value=r,v(e,i),n(e).attr({role:"textbox",multiline:"true"});break;case"checkbox":e=document.createElement("input"),e.type="checkbox",i.value?(b=i.value.split(":"),r===b[0]&&(e.checked=!0,e.defaultChecked=!0),e.value=b[0],n(e).attr("offval",b[1])):(g=r.toLowerCase(),g.search(/(false|f|0|no|n|off|undefined)/i)<0&&g!==""?(e.checked=!0,e.defaultChecked=!0,e.value=r):e.value="on",n(e).attr("offval","off")),v(e,i,["value"]),n(e).attr("role","checkbox");break;case"select":if(e=document.createElement("select"),e.setAttribute("role","select"),c=[],i.multiple===!0?(h=!0,e.multiple="multiple",n(e).attr("aria-multiselectable","true")):h=!1,i.dataUrl!==undefined)k=i.name?String(i.id).substring(0,String(i.id).length-String(i.name).length-1):String(i.id),p=i.postData||f.postData,a.p&&a.p.idPrefix?k=n.jgrid.stripPref(a.p.idPrefix,k):p=undefined,n.ajax(n.extend({url:i.dataUrl,type:"GET",dataType:"html",data:n.isFunction(p)?p.call(a,k,r,String(i.name)):p,context:{elem:e,options:i,vl:r},success:function(t){var i=[],f=this.elem,e=this.vl,r=n.extend({},this.options),o=r.multiple===!0,u=n.isFunction(r.buildSelect)?r.buildSelect.call(a,t):t;typeof u=="string"&&(u=n(n.trim(u)).html()),u&&(n(f).append(u),v(f,r),r.size===undefined&&(r.size=o?3:1),o?(i=e.split(","),i=n.map(i,function(t){return n.trim(t)})):i[0]=n.trim(e),setTimeout(function(){n("option",f).each(function(t){t===0&&f.multiple&&(this.selected=!1),n(this).attr("role","option"),(n.inArray(n.trim(n(this).text()),i)>-1||n.inArray(n.trim(n(this).val()),i)>-1)&&(this.selected="selected")})},0))}},f||{}));else if(i.value){if(i.size===undefined&&(i.size=h?3:1),h&&(c=r.split(","),c=n.map(c,function(t){return n.trim(t)})),typeof i.value=="function"&&(i.value=i.value()),tt=i.separator===undefined?":":i.separator,rt=i.delimiter===undefined?";":i.delimiter,typeof i.value=="string")for(nt=i.value.split(rt),d=0;d<nt.length;d++)s=nt[d].split(tt),s.length>2&&(s[1]=n.map(s,function(n,t){if(t>0)return n}).join(tt)),o=document.createElement("option"),o.setAttribute("role","option"),o.value=s[0],o.innerHTML=s[1],e.appendChild(o),h||n.trim(s[0])!==n.trim(r)&&n.trim(s[1])!==n.trim(r)||(o.selected="selected"),h&&(n.inArray(n.trim(s[1]),c)>-1||n.inArray(n.trim(s[0]),c)>-1)&&(o.selected="selected");else if(typeof i.value=="object"){y=i.value;for(l in y)y.hasOwnProperty(l)&&(o=document.createElement("option"),o.setAttribute("role","option"),o.value=l,o.innerHTML=y[l],e.appendChild(o),h||n.trim(l)!==n.trim(r)&&n.trim(y[l])!==n.trim(r)||(o.selected="selected"),h&&(n.inArray(n.trim(y[l]),c)>-1||n.inArray(n.trim(l),c)>-1)&&(o.selected="selected"))}v(e,i,["value"])}break;case"text":case"password":case"button":it=t==="button"?"button":"textbox",e=document.createElement("input"),e.type=t,e.value=r,v(e,i),t!=="button"&&(u?i.size||n(e).css({width:"98%"}):i.size||(i.size=20)),n(e).attr("role",it);break;case"image":case"file":e=document.createElement("input"),e.type=t,v(e,i);break;case"custom":e=document.createElement("span");try{if(n.isFunction(i.custom_element))if(w=i.custom_element.call(a,r,i),w)w=n(w).addClass("customelement").attr({id:i.id,name:i.name}),n(e).empty().append(w);else throw"e2";else throw"e1";}catch(ut){ut==="e1"&&n.jgrid.info_dialog(n.jgrid.errors.errcap,"function 'custom_element' "+n.jgrid.edit.msg.nodefined,n.jgrid.edit.bClose),ut==="e2"?n.jgrid.info_dialog(n.jgrid.errors.errcap,"function 'custom_element' "+n.jgrid.edit.msg.novalue,n.jgrid.edit.bClose):n.jgrid.info_dialog(n.jgrid.errors.errcap,typeof ut=="string"?ut:ut.message,n.jgrid.edit.bClose)}}return e},checkDate:function(n,t){var a=function(n){return n%4==0&&(n%100!=0||n%400==0)?29:28},i={},h,c,l,s;if(n=n.toLowerCase(),h=n.indexOf("/")!==-1?"/":n.indexOf("-")!==-1?"-":n.indexOf(".")!==-1?".":"/",n=n.split(h),t=t.split(h),t.length!==3)return!1;for(var f=-1,r,e=-1,o=-1,u=0;u<n.length;u++)c=isNaN(t[u])?0:parseInt(t[u],10),i[n[u]]=c,r=n[u],r.indexOf("y")!==-1&&(f=u),r.indexOf("m")!==-1&&(o=u),r.indexOf("d")!==-1&&(e=u);return(r=n[f]==="y"||n[f]==="yyyy"?4:n[f]==="yy"?2:-1,l=[0,31,29,31,30,31,30,31,31,30,31,30,31],f===-1)?!1:(s=i[n[f]].toString(),r===2&&s.length===1&&(r=1),s.length!==r||i[n[f]]===0&&t[f]!=="00")?!1:o===-1?!1:(s=i[n[o]].toString(),s.length<1||i[n[o]]<1||i[n[o]]>12)?!1:e===-1?!1:(s=i[n[e]].toString(),s.length<1||i[n[e]]<1||i[n[e]]>31||i[n[o]]===2&&i[n[e]]>a(i[n[f]])||i[n[e]]>l[i[n[o]]])?!1:!0},isEmpty:function(n){return n.match(/^\s+$/)||n===""?!0:!1},checkTime:function(t){var r=/^(\d{1,2}):(\d{2})([apAP][Mm])?$/,i;if(!n.jgrid.isEmpty(t))if(i=t.match(r),i){if(i[3]){if(i[1]<1||i[1]>12)return!1}else if(i[1]>23)return!1;if(i[2]>59)return!1}else return!1;return!0},checkValues:function(t,i,r,u){var f,s,e,c,y,l=this,o=l.p.colModel,h,a,v;if(r===undefined)if(typeof i=="string"){for(s=0,y=o.length;s<y;s++)if(o[s].name===i){f=o[s].editrules,i=s,o[s].formoptions!=null&&(e=o[s].formoptions.label);break}}else i>=0&&(f=o[i].editrules);else f=r,e=u===undefined?"_":u;if(f){if(e||(e=l.p.colNames!=null?l.p.colNames[i]:o[i].label),f.required===!0&&n.jgrid.isEmpty(t))return[!1,e+": "+n.jgrid.edit.msg.required,""];if(h=f.required===!1?!1:!0,f.number===!0&&!(h===!1&&n.jgrid.isEmpty(t))&&isNaN(t))return[!1,e+": "+n.jgrid.edit.msg.number,""];if(f.minValue!==undefined&&!isNaN(f.minValue)&&parseFloat(t)<parseFloat(f.minValue))return[!1,e+": "+n.jgrid.edit.msg.minValue+" "+f.minValue,""];if(f.maxValue!==undefined&&!isNaN(f.maxValue)&&parseFloat(t)>parseFloat(f.maxValue))return[!1,e+": "+n.jgrid.edit.msg.maxValue+" "+f.maxValue,""];if(f.email===!0&&!(h===!1&&n.jgrid.isEmpty(t))&&(a=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,!a.test(t)))return[!1,e+": "+n.jgrid.edit.msg.email,""];if(f.integer===!0&&!(h===!1&&n.jgrid.isEmpty(t))){if(isNaN(t))return[!1,e+": "+n.jgrid.edit.msg.integer,""];if(t%1!=0||t.indexOf(".")!==-1)return[!1,e+": "+n.jgrid.edit.msg.integer,""]}if(f.date===!0&&!(h===!1&&n.jgrid.isEmpty(t))&&(o[i].formatoptions&&o[i].formatoptions.newformat?(c=o[i].formatoptions.newformat,n.jgrid.formatter.date.masks.hasOwnProperty(c)&&(c=n.jgrid.formatter.date.masks[c])):c=o[i].datefmt||"Y-m-d",!n.jgrid.checkDate(c,t)))return[!1,e+": "+n.jgrid.edit.msg.date+" - "+c,""];if(f.time===!0&&!(h===!1&&n.jgrid.isEmpty(t))&&!n.jgrid.checkTime(t))return[!1,e+": "+n.jgrid.edit.msg.date+" - hh:mm (am/pm)",""];if(f.url===!0&&!(h===!1&&n.jgrid.isEmpty(t))&&(a=/^(((https?)|(ftp)):\/\/([\-\w]+\.)+\w{2,3}(\/[%\-\w]+(\.\w{2,})?)*(([\w\-\.\?\\\/+@&#;`~=%!]*)(\.\w{2,})?)*\/?)/i,!a.test(t)))return[!1,e+": "+n.jgrid.edit.msg.url,""];if(f.custom===!0&&!(h===!1&&n.jgrid.isEmpty(t)))return n.isFunction(f.custom_func)?(v=f.custom_func.call(l,t,e,i),n.isArray(v)?v:[!1,n.jgrid.edit.msg.customarray,""]):[!1,n.jgrid.edit.msg.customfcheck,""]}return[!0,"",""]}})}(jQuery),function(n){"use strict";n.fn.jqFilter=function(t){var r,u,i;if(typeof t=="string"){if(r=n.fn.jqFilter[t],!r)throw"jqFilter - No such method: "+t;return u=n.makeArray(arguments).slice(1),r.apply(this,u)}return i=n.extend(!0,{filter:null,columns:[],onChange:null,afterRedraw:null,checkValues:null,error:!1,errmsg:"",errorcheck:!0,showQuery:!0,sopt:null,ops:[],operands:null,numopts:["eq","ne","lt","le","gt","ge","nu","nn","in","ni"],stropts:["eq","ne","bw","bn","ew","en","cn","nc","nu","nn","in","ni"],strarr:["text","string","blob"],groupOps:[{op:"AND",text:"AND"},{op:"OR",text:"OR"}],groupButton:!0,ruleButtons:!0,direction:"ltr"},n.jgrid.filter,t||{}),this.each(function(){var r,u,t,f,e,o;if(!this.filter&&(this.p=i,(this.p.filter===null||this.p.filter===undefined)&&(this.p.filter={groupOp:this.p.groupOps[0].op,rules:[],groups:[]}),u=this.p.columns.length,f=/msie/i.test(navigator.userAgent)&&!window.opera,this.p.initFilter=n.extend(!0,{},this.p.filter),u)){for(r=0;r<u;r++)t=this.p.columns[r],t.stype?t.inputtype=t.stype:t.inputtype||(t.inputtype="text"),t.sorttype?t.searchtype=t.sorttype:t.searchtype||(t.searchtype="string"),t.hidden===undefined&&(t.hidden=!1),t.label||(t.label=t.name),t.index&&(t.name=t.index),t.hasOwnProperty("searchoptions")||(t.searchoptions={}),t.hasOwnProperty("searchrules")||(t.searchrules={});this.p.showQuery&&n(this).append("<table class='queryresult ui-widget ui-widget-content' style='display:block;max-width:440px;border:0px none;' dir='"+this.p.direction+"'><tbody><tr><td class='query'><\/td><\/tr><\/tbody><\/table>"),e=function(){return n("#"+n.jgrid.jqID(i.id))[0]||null},o=function(t,r){var u=[!0,""],f=e();if(n.isFunction(r.searchrules))u=r.searchrules.call(f,t,r);else if(n.jgrid&&n.jgrid.checkValues)try{u=n.jgrid.checkValues.call(f,t,-1,r.searchrules,r.label)}catch(o){}u&&u.length&&u[0]===!1&&(i.error=!u[0],i.errmsg=u[1])},this.onchange=function(){return this.p.error=!1,this.p.errmsg="",n.isFunction(this.p.onChange)?this.p.onChange.call(this,this.p):!1},this.reDraw=function(){n("table.group:first",this).remove();var t=this.createTableForGroup(i.filter,null);n(this).append(t),n.isFunction(this.p.afterRedraw)&&this.p.afterRedraw.call(this,this.p)},this.createTableForGroup=function(t,r){var f=this,u,e=n("<table class='group ui-widget ui-widget-content' style='border:0px none;'><tbody><\/tbody><\/table>"),a="left",v,o,h,y,k,c,p,s,w,l,d,b;if(this.p.direction==="rtl"&&(a="right",e.attr("dir","rtl")),r===null&&e.append("<tr class='error' style='display:none;'><th colspan='5' class='ui-state-error' align='"+a+"'><\/th><\/tr>"),v=n("<tr><\/tr>"),e.append(v),o=n("<th colspan='5' align='"+a+"'><\/th>"),v.append(o),this.p.ruleButtons===!0){for(h=n("<select class='opsel'><\/select>"),o.append(h),y="",u=0;u<i.groupOps.length;u++)k=t.groupOp===f.p.groupOps[u].op?" selected='selected'":"",y+="<option value='"+f.p.groupOps[u].op+"'"+k+">"+f.p.groupOps[u].text+"<\/option>";h.append(y).bind("change",function(){t.groupOp=n(h).val(),f.onchange()})}if(c="<span><\/span>",this.p.groupButton&&(c=n("<input type='button' value='+ {}' title='Add subgroup' class='add-group'/>"),c.bind("click",function(){return t.groups===undefined&&(t.groups=[]),t.groups.push({groupOp:i.groupOps[0].op,rules:[],groups:[]}),f.reDraw(),f.onchange(),!1})),o.append(c),this.p.ruleButtons===!0&&(p=n("<input type='button' value='+' title='Add rule' class='add-rule ui-add'/>"),p.bind("click",function(){var i;for(t.rules===undefined&&(t.rules=[]),u=0;u<f.p.columns.length;u++){var r=f.p.columns[u].search===undefined?!0:f.p.columns[u].search,e=f.p.columns[u].hidden===!0,o=f.p.columns[u].searchoptions.searchhidden===!0;if(o&&r||r&&!e){s=f.p.columns[u];break}}return i=s.searchoptions.sopt?s.searchoptions.sopt:f.p.sopt?f.p.sopt:n.inArray(s.searchtype,f.p.strarr)!==-1?f.p.stropts:f.p.numopts,t.rules.push({field:s.name,op:i[0],data:""}),f.reDraw(),!1}),o.append(p)),r!==null&&(w=n("<input type='button' value='-' title='Delete group' class='delete-group'/>"),o.append(w),w.bind("click",function(){for(u=0;u<r.groups.length;u++)if(r.groups[u]===t){r.groups.splice(u,1);break}return f.reDraw(),f.onchange(),!1})),t.groups!==undefined)for(u=0;u<t.groups.length;u++)l=n("<tr><\/tr>"),e.append(l),d=n("<td class='first'><\/td>"),l.append(d),b=n("<td colspan='4'><\/td>"),b.append(this.createTableForGroup(t.groups[u],t)),l.append(b);if(t.groupOp===undefined&&(t.groupOp=f.p.groupOps[0].op),t.rules!==undefined)for(u=0;u<t.rules.length;u++)e.append(this.createTableRowForRule(t.rules[u],t));return e},this.createTableRowForRule=function(t,r){var u=this,a=e(),v=n("<tr><\/tr>"),o,h,c,s,w="",b,g,k,l,y,nt,tt,p,d,it,rt,ut;for(v.append("<td class='first'><\/td>"),g=n("<td class='columns'><\/td>"),v.append(g),k=n("<select><\/select>"),y=[],g.append(k),k.bind("change",function(){var i,r,e,v;for(t.field=n(k).val(),c=n(this).parents("tr:first"),o=0;o<u.p.columns.length;o++)if(u.p.columns[o].name===t.field){s=u.p.columns[o];break}if(s){for(s.searchoptions.id=n.jgrid.randId(),f&&s.inputtype==="text"&&(s.searchoptions.size||(s.searchoptions.size=10)),i=n.jgrid.createEl.call(a,s.inputtype,s.searchoptions,"",!0,u.p.ajaxSelectOptions,!0),n(i).addClass("input-elm"),h=s.searchoptions.sopt?s.searchoptions.sopt:u.p.sopt?u.p.sopt:n.inArray(s.searchtype,u.p.strarr)!==-1?u.p.stropts:u.p.numopts,r="",e=0,y=[],n.each(u.p.ops,function(){y.push(this.oper)}),o=0;o<h.length;o++)l=n.inArray(h[o],y),l!==-1&&(e===0&&(t.op=u.p.ops[l].oper),r+="<option value='"+u.p.ops[l].oper+"'>"+u.p.ops[l].text+"<\/option>",e++);n(".selectopts",c).empty().append(r),n(".selectopts",c)[0].selectedIndex=0,n.jgrid.msie&&n.jgrid.msiever()<9&&(v=parseInt(n("select.selectopts",c)[0].offsetWidth,10)+1,n(".selectopts",c).width(v),n(".selectopts",c).css("width","auto")),n(".data",c).empty().append(i),n.jgrid.bindEv.call(a,i,s.searchoptions),n(".input-elm",c).bind("change",function(i){var r=n(this).hasClass("ui-autocomplete-input")?200:0;setTimeout(function(){var r=i.target;t.data=r.nodeName.toUpperCase()==="SPAN"&&s.searchoptions&&n.isFunction(s.searchoptions.custom_value)?s.searchoptions.custom_value.call(a,n(r).children(".customelement:first"),"get"):r.value,u.onchange()},r)}),setTimeout(function(){t.data=n(i).val(),u.onchange()},0)}}),nt=0,o=0;o<u.p.columns.length;o++){var ft=u.p.columns[o].search===undefined?!0:u.p.columns[o].search,et=u.p.columns[o].hidden===!0,ot=u.p.columns[o].searchoptions.searchhidden===!0;(ot&&ft||ft&&!et)&&(b="",t.field===u.p.columns[o].name&&(b=" selected='selected'",nt=o),w+="<option value='"+u.p.columns[o].name+"'"+b+">"+u.p.columns[o].label+"<\/option>")}for(k.append(w),tt=n("<td class='operators'><\/td>"),v.append(tt),s=i.columns[nt],s.searchoptions.id=n.jgrid.randId(),f&&s.inputtype==="text"&&(s.searchoptions.size||(s.searchoptions.size=10)),p=n.jgrid.createEl.call(a,s.inputtype,s.searchoptions,t.data,!0,u.p.ajaxSelectOptions,!0),(t.op==="nu"||t.op==="nn")&&(n(p).attr("readonly","true"),n(p).attr("disabled","true")),d=n("<select class='selectopts'><\/select>"),tt.append(d),d.bind("change",function(){t.op=n(d).val(),c=n(this).parents("tr:first");var i=n(".input-elm",c)[0];t.op==="nu"||t.op==="nn"?(t.data="",i.value="",i.setAttribute("readonly","true"),i.setAttribute("disabled","true")):(i.removeAttribute("readonly"),i.removeAttribute("disabled")),u.onchange()}),h=s.searchoptions.sopt?s.searchoptions.sopt:u.p.sopt?u.p.sopt:n.inArray(s.searchtype,u.p.strarr)!==-1?u.p.stropts:u.p.numopts,w="",n.each(u.p.ops,function(){y.push(this.oper)}),o=0;o<h.length;o++)l=n.inArray(h[o],y),l!==-1&&(b=t.op===u.p.ops[l].oper?" selected='selected'":"",w+="<option value='"+u.p.ops[l].oper+"'"+b+">"+u.p.ops[l].text+"<\/option>");return d.append(w),it=n("<td class='data'><\/td>"),v.append(it),it.append(p),n.jgrid.bindEv.call(a,p,s.searchoptions),n(p).addClass("input-elm").bind("change",function(){t.data=s.inputtype==="custom"?s.searchoptions.custom_value.call(a,n(this).children(".customelement:first"),"get"):n(this).val(),u.onchange()}),rt=n("<td><\/td>"),v.append(rt),this.p.ruleButtons===!0&&(ut=n("<input type='button' value='-' title='Delete rule' class='delete-rule ui-del'/>"),rt.append(ut),ut.bind("click",function(){for(o=0;o<r.rules.length;o++)if(r.rules[o]===t){r.rules.splice(o,1);break}return u.reDraw(),u.onchange(),!1})),v},this.getStringForGroup=function(n){var t="(",i;if(n.groups!==undefined)for(i=0;i<n.groups.length;i++){t.length>1&&(t+=" "+n.groupOp+" ");try{t+=this.getStringForGroup(n.groups[i])}catch(r){alert(r)}}if(n.rules!==undefined)try{for(i=0;i<n.rules.length;i++)t.length>1&&(t+=" "+n.groupOp+" "),t+=this.getStringForRule(n.rules[i])}catch(u){alert(u)}return(t+=")",t==="()")?"":t},this.getStringForRule=function(t){for(var s="",r="",e,h,u,c=["int","integer","float","number","currency"],f=0;f<this.p.ops.length;f++)if(this.p.ops[f].oper===t.op){s=this.p.operands.hasOwnProperty(t.op)?this.p.operands[t.op]:"",r=this.p.ops[f].oper;break}for(f=0;f<this.p.columns.length;f++)if(this.p.columns[f].name===t.field){e=this.p.columns[f];break}return e===undefined?"":(u=t.data,(r==="bw"||r==="bn")&&(u=u+"%"),(r==="ew"||r==="en")&&(u="%"+u),(r==="cn"||r==="nc")&&(u="%"+u+"%"),(r==="in"||r==="ni")&&(u=" ("+u+")"),i.errorcheck&&o(t.data,e),h=n.inArray(e.searchtype,c)!==-1||r==="nn"||r==="nu"?t.field+" "+s+" "+u:t.field+" "+s+' "'+u+'"')},this.resetFilter=function(){this.p.filter=n.extend(!0,{},this.p.initFilter),this.reDraw(),this.onchange()},this.hideError=function(){n("th.ui-state-error",this).html(""),n("tr.error",this).hide()},this.showError=function(){n("th.ui-state-error",this).html(this.p.errmsg),n("tr.error",this).show()},this.toUserFriendlyString=function(){return this.getStringForGroup(i.filter)},this.toString=function(){function i(t){if(n.p.errorcheck){for(var r,i=0;i<n.p.columns.length;i++)if(n.p.columns[i].name===t.field){r=n.p.columns[i];break}r&&o(t.data,r)}return t.op+"(item."+t.field+",'"+t.data+"')"}function t(n){var r="(",u;if(n.groups!==undefined)for(u=0;u<n.groups.length;u++)r.length>1&&(r+=n.groupOp==="OR"?" || ":" && "),r+=t(n.groups[u]);if(n.rules!==undefined)for(u=0;u<n.rules.length;u++)r.length>1&&(r+=n.groupOp==="OR"?" || ":" && "),r+=i(n.rules[u]);return(r+=")",r==="()")?"":r}var n=this;return t(this.p.filter)},this.reDraw(),this.p.showQuery&&this.onchange(),this.filter=!0}})},n.extend(n.fn.jqFilter,{toSQLString:function(){var n="";return this.each(function(){n=this.toUserFriendlyString()}),n},filterData:function(){var n;return this.each(function(){n=this.p.filter}),n},getParameter:function(n){return n!==undefined&&this.p.hasOwnProperty(n)?this.p[n]:this.p},resetFilter:function(){return this.each(function(){this.resetFilter()})},addFilter:function(t){typeof t=="string"&&(t=n.jgrid.parse(t)),this.each(function(){this.p.filter=t,this.reDraw(),this.onchange()})}})}(jQuery),function(n){"use strict";var t={};n.jgrid.extend({searchGrid:function(t){return t=n.extend(!0,{recreateFilter:!1,drag:!0,sField:"searchField",sValue:"searchString",sOper:"searchOper",sFilter:"filters",loadDefaults:!0,beforeShowSearch:null,afterShowSearch:null,onInitializeSearch:null,afterRedraw:null,afterChange:null,closeAfterSearch:!1,closeAfterReset:!1,closeOnEscape:!1,searchOnEnter:!1,multipleSearch:!1,multipleGroup:!1,top:0,left:0,jqModal:!0,modal:!1,resize:!0,width:450,height:"auto",dataheight:"auto",showQuery:!1,errorcheck:!0,sopt:null,stringResult:undefined,onClose:null,onSearch:null,onReset:null,toTop:!0,overlay:30,columns:[],tmplNames:null,tmplFilters:null,tmplLabel:" Template: ",showOnLoad:!1,layer:null,operands:{eq:"=",ne:"<>",lt:"<",le:"<=",gt:">",ge:">=",bw:"LIKE",bn:"NOT LIKE","in":"IN",ni:"NOT IN",ew:"LIKE",en:"NOT LIKE",cn:"LIKE",nc:"NOT LIKE",nu:"IS NULL",nn:"ISNOT NULL"}},n.jgrid.search,t||{}),this.each(function(){function p(f){s=n(i).triggerHandler("jqGridFilterBeforeShow",[f]),s===undefined&&(s=!0),s&&n.isFunction(t.beforeShowSearch)&&(s=t.beforeShowSearch.call(i,f)),s&&(n.jgrid.viewModal("#"+n.jgrid.jqID(u.themodal),{gbox:"#gbox_"+n.jgrid.jqID(r),jqm:t.jqModal,modal:t.modal,overlay:t.overlay,toTop:t.toTop}),n(i).triggerHandler("jqGridFilterAfterShow",[f]),n.isFunction(t.afterShowSearch)&&t.afterShowSearch.call(i,f))}var i=this,v;if(i.grid){var r="fbox_"+i.p.id,s=!0,u={themodal:"searchmod"+r,modalhead:"searchhd"+r,modalcontent:"searchcnt"+r,scrollelm:r},o=i.p.postData[t.sFilter];if(typeof o=="string"&&(o=n.jgrid.parse(o)),t.recreateFilter===!0&&n("#"+n.jgrid.jqID(u.themodal)).remove(),n("#"+n.jgrid.jqID(u.themodal))[0]!==undefined)p(n("#fbox_"+n.jgrid.jqID(+i.p.id)));else{var f=n("<div><div id='"+r+"' class='searchFilter' style='overflow:auto'><\/div><\/div>").insertBefore("#gview_"+n.jgrid.jqID(i.p.id)),w="left",b="";i.p.direction==="rtl"&&(w="right",b=" style='text-align:left'",f.attr("dir","rtl"));var e=n.extend([],i.p.colModel),d="<a href='javascript:void(0)' id='"+r+"_search' class='fm-button ui-state-default ui-corner-all fm-button-icon-right ui-reset'><span class='ui-icon ui-icon-search'><\/span>"+t.Find+"<\/a>",g="<a href='javascript:void(0)' id='"+r+"_reset' class='fm-button ui-state-default ui-corner-all fm-button-icon-left ui-search'><span class='ui-icon ui-icon-arrowreturnthick-1-w'><\/span>"+t.Reset+"<\/a>",y="",h="",a,c=!1,k,l=-1;t.showQuery&&(y="<a href='javascript:void(0)' id='"+r+"_query' class='fm-button ui-state-default ui-corner-all fm-button-icon-left'><span class='ui-icon ui-icon-comment'><\/span>Query<\/a>"),t.columns.length?(e=t.columns,l=0,a=e[0].index||e[0].name):n.each(e,function(n,t){if(t.label||(t.label=i.p.colNames[n]),!c){var r=t.search===undefined?!0:t.search,u=t.hidden===!0,f=t.searchoptions&&t.searchoptions.searchhidden===!0;(f&&r||r&&!u)&&(c=!0,a=t.index||t.name,l=n)}}),(!o&&a||t.multipleSearch===!1)&&(v="eq",l>=0&&e[l].searchoptions&&e[l].searchoptions.sopt?v=e[l].searchoptions.sopt[0]:t.sopt&&t.sopt.length&&(v=t.sopt[0]),o={groupOp:"AND",rules:[{field:a,op:v,data:""}]}),c=!1,t.tmplNames&&t.tmplNames.length&&(c=!0,h=t.tmplLabel,h+="<select class='ui-template'>",h+="<option value='default'>Default<\/option>",n.each(t.tmplNames,function(n,t){h+="<option value='"+n+"'>"+t+"<\/option>"}),h+="<\/select>"),k="<table class='EditTable' style='border:0px none;margin-top:5px' id='"+r+"_2'><tbody><tr><td colspan='2'><hr class='ui-widget-content' style='margin:1px'/><\/td><\/tr><tr><td class='EditButton' style='text-align:"+w+"'>"+g+h+"<\/td><td class='EditButton' "+b+">"+y+d+"<\/td><\/tr><\/tbody><\/table>",r=n.jgrid.jqID(r),n("#"+r).jqFilter({columns:e,filter:t.loadDefaults?o:null,showQuery:t.showQuery,errorcheck:t.errorcheck,sopt:t.sopt,groupButton:t.multipleGroup,ruleButtons:t.multipleSearch,afterRedraw:t.afterRedraw,ops:t.odata,operands:t.operands,ajaxSelectOptions:i.p.ajaxSelectOptions,groupOps:t.groupOps,onChange:function(){this.p.showQuery&&n(".query",this).html(this.toUserFriendlyString()),n.isFunction(t.afterChange)&&t.afterChange.call(i,n("#"+r),t)},direction:i.p.direction,id:i.p.id}),f.append(k),c&&t.tmplFilters&&t.tmplFilters.length&&n(".ui-template",f).bind("change",function(){var i=n(this).val();return i==="default"?n("#"+r).jqFilter("addFilter",o):n("#"+r).jqFilter("addFilter",t.tmplFilters[parseInt(i,10)]),!1}),t.multipleGroup===!0&&(t.multipleSearch=!0),n(i).triggerHandler("jqGridFilterInitialize",[n("#"+r)]),n.isFunction(t.onInitializeSearch)&&t.onInitializeSearch.call(i,n("#"+r)),t.gbox="#gbox_"+r,t.layer?n.jgrid.createModal(u,f,t,"#gview_"+n.jgrid.jqID(i.p.id),n("#gbox_"+n.jgrid.jqID(i.p.id))[0],"#"+n.jgrid.jqID(t.layer),{position:"relative"}):n.jgrid.createModal(u,f,t,"#gview_"+n.jgrid.jqID(i.p.id),n("#gbox_"+n.jgrid.jqID(i.p.id))[0]),(t.searchOnEnter||t.closeOnEscape)&&n("#"+n.jgrid.jqID(u.themodal)).keydown(function(i){var f=n(i.target);return t.searchOnEnter&&i.which===13&&!f.hasClass("add-group")&&!f.hasClass("add-rule")&&!f.hasClass("delete-group")&&!f.hasClass("delete-rule")&&(!f.hasClass("fm-button")||!f.is("[id$=_query]"))?(n("#"+r+"_search").focus().click(),!1):t.closeOnEscape&&i.which===27?(n("#"+n.jgrid.jqID(u.modalhead)).find(".ui-jqdialog-titlebar-close").focus().click(),!1):void 0}),y&&n("#"+r+"_query").bind("click",function(){return n(".queryresult",f).toggle(),!1}),t.stringResult===undefined&&(t.stringResult=t.multipleSearch),n("#"+r+"_search").bind("click",function(){var o=n("#"+r),f={},s,e=o.jqFilter("filterData");if(t.errorcheck&&(o[0].hideError(),t.showQuery||o.jqFilter("toSQLString"),o[0].p.error))return o[0].showError(),!1;if(t.stringResult){try{s=xmlJsonClass.toJson(e,"","",!1)}catch(h){try{s=JSON.stringify(e)}catch(c){}}typeof s=="string"&&(f[t.sFilter]=s,n.each([t.sField,t.sValue,t.sOper],function(){f[this]=""}))}else t.multipleSearch?(f[t.sFilter]=e,n.each([t.sField,t.sValue,t.sOper],function(){f[this]=""})):(f[t.sField]=e.rules[0].field,f[t.sValue]=e.rules[0].data,f[t.sOper]=e.rules[0].op,f[t.sFilter]="");return i.p.search=!0,n.extend(i.p.postData,f),n(i).triggerHandler("jqGridFilterSearch"),n.isFunction(t.onSearch)&&t.onSearch.call(i),n(i).trigger("reloadGrid",[{page:1}]),t.closeAfterSearch&&n.jgrid.hideModal("#"+n.jgrid.jqID(u.themodal),{gb:"#gbox_"+n.jgrid.jqID(i.p.id),jqm:t.jqModal,onClose:t.onClose}),!1}),n("#"+r+"_reset").bind("click",function(){var u={},e=n("#"+r);return i.p.search=!1,t.multipleSearch===!1?u[t.sField]=u[t.sValue]=u[t.sOper]="":u[t.sFilter]="",e[0].resetFilter(),c&&n(".ui-template",f).val("default"),n.extend(i.p.postData,u),n(i).triggerHandler("jqGridFilterReset"),n.isFunction(t.onReset)&&t.onReset.call(i),n(i).trigger("reloadGrid",[{page:1}]),!1}),p(n("#"+r)),n(".fm-button:not(.ui-state-disabled)",f).hover(function(){n(this).addClass("ui-state-hover")},function(){n(this).removeClass("ui-state-hover")})}}})},editGridRow:function(i,r){return r=n.extend(!0,{top:0,left:0,width:300,datawidth:"auto",height:"auto",dataheight:"auto",modal:!1,overlay:30,drag:!0,resize:!0,url:null,mtype:"POST",clearAfterAdd:!0,closeAfterEdit:!1,reloadAfterSubmit:!0,onInitializeForm:null,beforeInitData:null,beforeShowForm:null,afterShowForm:null,beforeSubmit:null,afterSubmit:null,onclickSubmit:null,afterComplete:null,onclickPgButtons:null,afterclickPgButtons:null,editData:{},recreateForm:!1,jqModal:!0,closeOnEscape:!1,addedrow:"first",topinfo:"",bottominfo:"",saveicon:[],closeicon:[],savekey:[!1,13],navkeys:[!1,38,40],checkOnSubmit:!1,checkOnUpdate:!1,_savedData:{},processing:!1,onClose:null,ajaxEditOptions:{},serializeEditData:null,viewPagerButtons:!0,overlayClass:"ui-widget-overlay"},n.jgrid.edit,r||{}),t[n(this)[0].p.id]=r,this.each(function(){function bt(){return n(o+" > tbody > tr > td > .FormElement").each(function(){var i=n(".customelement",this),r,t,e,s;if(i.length)r=i[0],t=n(r).attr("name"),n.each(u.p.colModel,function(){if(this.name===t&&this.editoptions&&n.isFunction(this.editoptions.custom_value)){try{if(f[t]=this.editoptions.custom_value.call(u,n("#"+n.jgrid.jqID(t),o),"get"),f[t]===undefined)throw"e1";}catch(i){i==="e1"?n.jgrid.info_dialog(n.jgrid.errors.errcap,"function 'custom_value' "+n.jgrid.edit.msg.novalue,n.jgrid.edit.bClose):n.jgrid.info_dialog(n.jgrid.errors.errcap,i.message,n.jgrid.edit.bClose)}return!0}});else{switch(n(this).get(0).type){case"checkbox":n(this).is(":checked")?f[this.name]=n(this).val():(e=n(this).attr("offval"),f[this.name]=e);break;case"select-one":f[this.name]=n("option:selected",this).val();break;case"select-multiple":f[this.name]=n(this).val(),f[this.name]=f[this.name]?f[this.name].join(","):"",s=[],n("option:selected",this).each(function(t,i){s[t]=n(i).text()});break;case"password":case"text":case"textarea":case"button":f[this.name]=n(this).val()}u.p.autoencode&&(f[this.name]=n.jgrid.htmlEncode(f[this.name]))}}),!0}function ti(i,r,f,o){for(var h,y,c,a=0,s,b,v,k=[],l=!1,g="<td class='CaptionTD'>&#160;<\/td><td class='DataTD'>&#160;<\/td>",d="",w,p=1;p<=o;p++)d+=g;return i!=="_empty"&&(l=n(r).jqGrid("getInd",i)),n(r.p.colModel).each(function(p){var tt;if(h=this.name,y=this.editrules&&this.editrules.edithidden===!0?!1:this.hidden===!0?!0:!1,b=y?"style='display:none'":"",h!=="cb"&&h!=="subgrid"&&this.editable===!0&&h!=="rn"){if(l===!1)s="";else if(h===r.p.ExpandColumn&&r.p.treeGrid===!0)s=n("td[role='gridcell']:eq("+p+")",r.rows[l]).text();else{try{s=n.unformat.call(r,n("td[role='gridcell']:eq("+p+")",r.rows[l]),{rowId:i,colModel:this},p)}catch(rt){s=this.edittype&&this.edittype==="textarea"?n("td[role='gridcell']:eq("+p+")",r.rows[l]).text():n("td[role='gridcell']:eq("+p+")",r.rows[l]).html()}s&&s!=="&nbsp;"&&s!=="&#160;"&&(s.length!==1||s.charCodeAt(0)!==160)||(s="")}var w=n.extend({},this.editoptions||{},{id:h,name:h}),g=n.extend({},{elmprefix:"",elmsuffix:"",rowabove:!1,rowcontent:""},this.formoptions||{}),nt=parseInt(g.rowpos,10)||a+1,it=parseInt((parseInt(g.colpos,10)||1)*2,10);i==="_empty"&&w.defaultValue&&(s=n.isFunction(w.defaultValue)?w.defaultValue.call(u):w.defaultValue),this.edittype||(this.edittype="text"),u.p.autoencode&&(s=n.jgrid.htmlDecode(s)),v=n.jgrid.createEl.call(u,this.edittype,w,s,!1,n.extend({},n.jgrid.ajaxOptions,r.p.ajaxSelectOptions||{})),(t[u.p.id].checkOnSubmit||t[u.p.id].checkOnUpdate)&&(t[u.p.id]._savedData[h]=s),n(v).addClass("FormElement"),n.inArray(this.edittype,["text","textarea","password","select"])>-1&&n(v).addClass("ui-widget-content ui-corner-all"),c=n(f).find("tr[rowpos="+nt+"]"),g.rowabove&&(tt=n("<tr><td class='contentinfo' colspan='"+o*2+"'>"+g.rowcontent+"<\/td><\/tr>"),n(f).append(tt),tt[0].rp=nt),c.length===0&&(c=n("<tr "+b+" rowpos='"+nt+"'><\/tr>").addClass("FormData").attr("id","tr_"+h),n(c).append(d),n(f).append(c),c[0].rp=nt),n("td:eq("+(it-2)+")",c[0]).html(g.label===undefined?r.p.colNames[p]:g.label),n("td:eq("+(it-1)+")",c[0]).append(g.elmprefix).append(v).append(g.elmsuffix),n.isFunction(w.custom_value)&&i!=="_empty"&&w.custom_value.call(u,n("#"+h,"#"+e),"set",s),n.jgrid.bindEv.call(u,v,w),k[a]=p,a++}}),a>0&&(w=n("<tr class='FormData' style='display:none'><td class='CaptionTD'><\/td><td colspan='"+(o*2-1)+"' class='DataTD'><input class='FormElement' id='id_g' type='text' name='"+r.p.id+"_id' value='"+i+"'/><\/td><\/tr>"),w[0].rp=a+999,n(f).append(w),(t[u.p.id].checkOnSubmit||t[u.p.id].checkOnUpdate)&&(t[u.p.id]._savedData[r.p.id+"_id"]=i)),k}function nt(i,r,f){var s,p=0,e,h,a,l,v,c,y;if((t[u.p.id].checkOnSubmit||t[u.p.id].checkOnUpdate)&&(t[u.p.id]._savedData={},t[u.p.id]._savedData[r.p.id+"_id"]=i),c=r.p.colModel,i==="_empty"){n(c).each(function(){s=this.name,a=n.extend({},this.editoptions||{}),h=n("#"+n.jgrid.jqID(s),"#"+f),h&&h.length&&h[0]!==null&&(l="",a.defaultValue?(l=n.isFunction(a.defaultValue)?a.defaultValue.call(u):a.defaultValue,h[0].type==="checkbox"?(v=l.toLowerCase(),v.search(/(false|f|0|no|n|off|undefined)/i)<0&&v!==""?(h[0].checked=!0,h[0].defaultChecked=!0,h[0].value=l):(h[0].checked=!1,h[0].defaultChecked=!1)):h.val(l)):h[0].type==="checkbox"?(h[0].checked=!1,h[0].defaultChecked=!1,l=n(h).attr("offval")):h[0].type&&h[0].type.substr(0,6)==="select"?h[0].selectedIndex=0:h.val(l),(t[u.p.id].checkOnSubmit===!0||t[u.p.id].checkOnUpdate)&&(t[u.p.id]._savedData[s]=l))}),n("#id_g","#"+f).val(i);return}(y=n(r).jqGrid("getInd",i,!0),y)&&(n('td[role="gridcell"]',y).each(function(o){var h,l;if(s=c[o].name,s!=="cb"&&s!=="subgrid"&&s!=="rn"&&c[o].editable===!0){if(s===r.p.ExpandColumn&&r.p.treeGrid===!0)e=n(this).text();else try{e=n.unformat.call(r,n(this),{rowId:i,colModel:c[o]},o)}catch(a){e=c[o].edittype==="textarea"?n(this).text():n(this).html()}u.p.autoencode&&(e=n.jgrid.htmlDecode(e)),(t[u.p.id].checkOnSubmit===!0||t[u.p.id].checkOnUpdate)&&(t[u.p.id]._savedData[s]=e),s=n.jgrid.jqID(s);switch(c[o].edittype){case"password":case"text":case"button":case"image":case"textarea":(e==="&nbsp;"||e==="&#160;"||e.length===1&&e.charCodeAt(0)===160)&&(e=""),n("#"+s,"#"+f).val(e);break;case"select":h=e.split(","),h=n.map(h,function(t){return n.trim(t)}),n("#"+s+" option","#"+f).each(function(){this.selected=c[o].editoptions.multiple||n.trim(e)!==n.trim(n(this).text())&&h[0]!==n.trim(n(this).text())&&h[0]!==n.trim(n(this).val())?c[o].editoptions.multiple?n.inArray(n.trim(n(this).text()),h)>-1||n.inArray(n.trim(n(this).val()),h)>-1?!0:!1:!1:!0});break;case"checkbox":e=String(e),c[o].editoptions&&c[o].editoptions.value?(l=c[o].editoptions.value.split(":"),l[0]===e?n("#"+s,"#"+f)[u.p.useProp?"prop":"attr"]({checked:!0,defaultChecked:!0}):n("#"+s,"#"+f)[u.p.useProp?"prop":"attr"]({checked:!1,defaultChecked:!1})):(e=e.toLowerCase(),e.search(/(false|f|0|no|n|off|undefined)/i)<0&&e!==""?(n("#"+s,"#"+f)[u.p.useProp?"prop":"attr"]("checked",!0),n("#"+s,"#"+f)[u.p.useProp?"prop":"attr"]("defaultChecked",!0)):(n("#"+s,"#"+f)[u.p.useProp?"prop":"attr"]("checked",!1),n("#"+s,"#"+f)[u.p.useProp?"prop":"attr"]("defaultChecked",!1)));break;case"custom":try{if(c[o].editoptions&&n.isFunction(c[o].editoptions.custom_value))c[o].editoptions.custom_value.call(u,n("#"+s,"#"+f),"set",e);else throw"e1";}catch(v){v==="e1"?n.jgrid.info_dialog(n.jgrid.errors.errcap,"function 'custom_value' "+n.jgrid.edit.msg.nodefined,n.jgrid.edit.bClose):n.jgrid.info_dialog(n.jgrid.errors.errcap,v.message,n.jgrid.edit.bClose)}}p++}}),p>0&&n("#id_g",o).val(i))}function ii(){n.each(u.p.colModel,function(n,t){t.editoptions&&t.editoptions.NullIfEmpty===!0&&f.hasOwnProperty(t.name)&&f[t.name]===""&&(f[t.name]="null")})}function tt(){var b,i=[!0,"",""],k={},a=u.p.prmNames,l,y,d,tt,g,v=n(u).triggerHandler("jqGridAddEditBeforeCheckValues",[n("#"+e),h]),rt,it,p,w;v&&typeof v=="object"&&(f=v),n.isFunction(t[u.p.id].beforeCheckValues)&&(v=t[u.p.id].beforeCheckValues.call(u,f,n("#"+e),h),v&&typeof v=="object"&&(f=v));for(d in f)if(f.hasOwnProperty(d)&&(i=n.jgrid.checkValues.call(u,f[d],d),i[0]===!1))break;if(ii(),i[0]&&(k=n(u).triggerHandler("jqGridAddEditClickSubmit",[t[u.p.id],f,h]),k===undefined&&n.isFunction(t[u.p.id].onclickSubmit)&&(k=t[u.p.id].onclickSubmit.call(u,t[u.p.id],f,h)||{}),i=n(u).triggerHandler("jqGridAddEditBeforeSubmit",[f,n("#"+e),h]),i===undefined&&(i=[!0,"",""]),i[0]&&n.isFunction(t[u.p.id].beforeSubmit)&&(i=t[u.p.id].beforeSubmit.call(u,f,n("#"+e),h))),i[0]&&!t[u.p.id].processing){if(t[u.p.id].processing=!0,n("#sData",o+"_2").addClass("ui-state-active"),y=a.oper,l=a.id,f[y]=n.trim(f[u.p.id+"_id"])==="_empty"?a.addoper:a.editoper,f[y]!==a.addoper?f[l]=f[u.p.id+"_id"]:f[l]===undefined&&(f[l]=f[u.p.id+"_id"]),delete f[u.p.id+"_id"],f=n.extend(f,t[u.p.id].editData,k),u.p.treeGrid===!0){f[y]===a.addoper&&(tt=n(u).jqGrid("getGridParam","selrow"),rt=u.p.treeGridModel==="adjacency"?u.p.treeReader.parent_id_field:"parent_id",f[rt]=tt);for(g in u.p.treeReader)if(u.p.treeReader.hasOwnProperty(g)&&(it=u.p.treeReader[g],f.hasOwnProperty(it))){if(f[y]===a.addoper&&g==="parent_id_field")continue;delete f[it]}}f[l]=n.jgrid.stripPref(u.p.idPrefix,f[l]),p=n.extend({url:t[u.p.id].url||n(u).jqGrid("getGridParam","editurl"),type:t[u.p.id].mtype,data:n.isFunction(t[u.p.id].serializeEditData)?t[u.p.id].serializeEditData.call(u,f):f,complete:function(v,p){var w;if(f[l]=u.p.idPrefix+f[l],v.status>=300&&v.status!==304?(i[0]=!1,i[1]=n(u).triggerHandler("jqGridAddEditErrorTextFormat",[v,h]),i[1]=n.isFunction(t[u.p.id].errorTextFormat)?t[u.p.id].errorTextFormat.call(u,v,h):p+" Status: '"+v.statusText+"'. Error code: "+v.status):(i=n(u).triggerHandler("jqGridAddEditAfterSubmit",[v,f,h]),i===undefined&&(i=[!0,"",""]),i[0]&&n.isFunction(t[u.p.id].afterSubmit)&&(i=t[u.p.id].afterSubmit.call(u,v,f,h))),i[0]===!1)n("#FormError>td",o).html(i[1]),n("#FormError",o).show();else if(u.p.autoencode&&n.each(f,function(t,i){f[t]=n.jgrid.htmlDecode(i)}),f[y]===a.addoper?(i[2]||(i[2]=n.jgrid.randId()),f[l]=i[2],t[u.p.id].reloadAfterSubmit?n(u).trigger("reloadGrid"):u.p.treeGrid===!0?n(u).jqGrid("addChildNode",i[2],tt,f):n(u).jqGrid("addRowData",i[2],f,r.addedrow),t[u.p.id].closeAfterAdd?(u.p.treeGrid!==!0&&n(u).jqGrid("setSelection",i[2]),n.jgrid.hideModal("#"+n.jgrid.jqID(s.themodal),{gb:"#gbox_"+n.jgrid.jqID(c),jqm:r.jqModal,onClose:t[u.p.id].onClose})):t[u.p.id].clearAfterAdd&&nt("_empty",u,e)):(t[u.p.id].reloadAfterSubmit?(n(u).trigger("reloadGrid"),t[u.p.id].closeAfterEdit||setTimeout(function(){n(u).jqGrid("setSelection",f[l])},1e3)):u.p.treeGrid===!0?n(u).jqGrid("setTreeRow",f[l],f):n(u).jqGrid("setRowData",f[l],f),t[u.p.id].closeAfterEdit&&n.jgrid.hideModal("#"+n.jgrid.jqID(s.themodal),{gb:"#gbox_"+n.jgrid.jqID(c),jqm:r.jqModal,onClose:t[u.p.id].onClose})),n.isFunction(t[u.p.id].afterComplete)&&(b=v,setTimeout(function(){n(u).triggerHandler("jqGridAddEditAfterComplete",[b,f,n("#"+e),h]),t[u.p.id].afterComplete.call(u,b,f,n("#"+e),h),b=null},500)),(t[u.p.id].checkOnSubmit||t[u.p.id].checkOnUpdate)&&(n("#"+e).data("disabled",!1),t[u.p.id]._savedData[u.p.id+"_id"]!=="_empty"))for(w in t[u.p.id]._savedData)t[u.p.id]._savedData.hasOwnProperty(w)&&f[w]&&(t[u.p.id]._savedData[w]=f[w]);t[u.p.id].processing=!1,n("#sData",o+"_2").removeClass("ui-state-active");try{n(":input:visible","#"+e)[0].focus()}catch(k){}}},n.jgrid.ajaxOptions,t[u.p.id].ajaxEditOptions),p.url||t[u.p.id].useDataProxy||(n.isFunction(u.p.dataProxy)?t[u.p.id].useDataProxy=!0:(i[0]=!1,i[1]+=" "+n.jgrid.errors.nourl)),i[0]&&(t[u.p.id].useDataProxy?(w=u.p.dataProxy.call(u,p,"set_"+u.p.id),w===undefined&&(w=[!0,""]),w[0]===!1?(i[0]=!1,i[1]=w[1]||"Error deleting the selected row!"):(p.data.oper===a.addoper&&t[u.p.id].closeAfterAdd&&n.jgrid.hideModal("#"+n.jgrid.jqID(s.themodal),{gb:"#gbox_"+n.jgrid.jqID(c),jqm:r.jqModal,onClose:t[u.p.id].onClose}),p.data.oper===a.editoper&&t[u.p.id].closeAfterEdit&&n.jgrid.hideModal("#"+n.jgrid.jqID(s.themodal),{gb:"#gbox_"+n.jgrid.jqID(c),jqm:r.jqModal,onClose:t[u.p.id].onClose}))):n.ajax(p))}i[0]===!1&&(n("#FormError>td",o).html(i[1]),n("#FormError",o).show())}function kt(n,t){var r=!1,i;for(i in n)if(n.hasOwnProperty(i)&&n[i]!=t[i]){r=!0;break}return r}function a(){var i=!0;return n("#FormError",o).hide(),t[u.p.id].checkOnUpdate&&(f={},bt(),d=kt(f,t[u.p.id]._savedData),d&&(n("#"+e).data("disabled",!0),n(".confirm","#"+s.themodal).show(),i=!1)),i}function dt(){var t;if(i!=="_empty"&&u.p.savedRow!==undefined&&u.p.savedRow.length>0&&n.isFunction(n.fn.jqGrid.restoreRow))for(t=0;t<u.p.savedRow.length;t++)if(u.p.savedRow[t].id==i){n(u).jqGrid("restoreRow",i);break}}function ht(t,i){var r=i[1].length-1;t===0?n("#pData",o+"_2").addClass("ui-state-disabled"):i[1][t-1]!==undefined&&n("#"+n.jgrid.jqID(i[1][t-1])).hasClass("ui-state-disabled")?n("#pData",o+"_2").addClass("ui-state-disabled"):n("#pData",o+"_2").removeClass("ui-state-disabled"),t===r?n("#nData",o+"_2").addClass("ui-state-disabled"):i[1][t+1]!==undefined&&n("#"+n.jgrid.jqID(i[1][t+1])).hasClass("ui-state-disabled")?n("#nData",o+"_2").addClass("ui-state-disabled"):n("#nData",o+"_2").removeClass("ui-state-disabled")}function ct(){var t=n(u).jqGrid("getDataIDs"),i=n("#id_g",o).val(),r=n.inArray(i,t);return[r,t]}var u=this,g,y,ft,vt,yt,et,pt;if(u.grid&&i){var c=u.p.id,e="FrmGrid_"+c,ot="TblGrid_"+c,o="#"+n.jgrid.jqID(ot),s={themodal:"editmod"+c,modalhead:"edithd"+c,modalcontent:"editcnt"+c,scrollelm:e},w=n.isFunction(t[u.p.id].beforeShowForm)?t[u.p.id].beforeShowForm:!1,b=n.isFunction(t[u.p.id].afterShowForm)?t[u.p.id].afterShowForm:!1,k=n.isFunction(t[u.p.id].beforeInitData)?t[u.p.id].beforeInitData:!1,wt=n.isFunction(t[u.p.id].onInitializeForm)?t[u.p.id].onInitializeForm:!1,l=!0,p=1,st=0,f,d,h;if(e=n.jgrid.jqID(e),i==="new"?(i="_empty",h="add",r.caption=t[u.p.id].addCaption):(r.caption=t[u.p.id].editCaption,h="edit"),r.recreateForm===!0&&n("#"+n.jgrid.jqID(s.themodal))[0]!==undefined&&n("#"+n.jgrid.jqID(s.themodal)).remove(),g=!0,r.checkOnUpdate&&r.jqModal&&!r.modal&&(g=!1),n("#"+n.jgrid.jqID(s.themodal))[0]!==undefined){if(l=n(u).triggerHandler("jqGridAddEditBeforeInitData",[n("#"+n.jgrid.jqID(e)),h]),l===undefined&&(l=!0),l&&k&&(l=k.call(u,n("#"+e),h)),l===!1)return;dt(),n(".ui-jqdialog-title","#"+n.jgrid.jqID(s.modalhead)).html(r.caption),n("#FormError",o).hide(),t[u.p.id].topinfo?(n(".topinfo",o).html(t[u.p.id].topinfo),n(".tinfo",o).show()):n(".tinfo",o).hide(),t[u.p.id].bottominfo?(n(".bottominfo",o+"_2").html(t[u.p.id].bottominfo),n(".binfo",o+"_2").show()):n(".binfo",o+"_2").hide(),nt(i,u,e),i!=="_empty"&&t[u.p.id].viewPagerButtons?n("#pData, #nData",o+"_2").show():n("#pData, #nData",o+"_2").hide(),t[u.p.id].processing===!0&&(t[u.p.id].processing=!1,n("#sData",o+"_2").removeClass("ui-state-active")),n("#"+e).data("disabled")===!0&&(n(".confirm","#"+n.jgrid.jqID(s.themodal)).hide(),n("#"+e).data("disabled",!1)),n(u).triggerHandler("jqGridAddEditBeforeShowForm",[n("#"+e),h]),w&&w.call(u,n("#"+e),h),n("#"+n.jgrid.jqID(s.themodal)).data("onClose",t[u.p.id].onClose),n.jgrid.viewModal("#"+n.jgrid.jqID(s.themodal),{gbox:"#gbox_"+n.jgrid.jqID(c),jqm:r.jqModal,jqM:!1,overlay:r.overlay,modal:r.modal,overlayClass:r.overlayClass}),g||n("."+n.jgrid.jqID(r.overlayClass)).click(function(){return a()?(n.jgrid.hideModal("#"+n.jgrid.jqID(s.themodal),{gb:"#gbox_"+n.jgrid.jqID(c),jqm:r.jqModal,onClose:t[u.p.id].onClose}),!1):!1}),n(u).triggerHandler("jqGridAddEditAfterShowForm",[n("#"+e),h]),b&&b.call(u,n("#"+e),h)}else{var ri=isNaN(r.dataheight)?r.dataheight:r.dataheight+"px",ui=isNaN(r.datawidth)?r.datawidth:r.datawidth+"px",gt=n("<form name='FormPost' id='"+e+"' class='FormGrid' onSubmit='return false;' style='width:"+ui+";overflow:auto;position:relative;height:"+ri+";'><\/form>").data("disabled",!1),v=n("<table id='"+ot+"' class='EditTable' cellspacing='0' cellpadding='0' border='0'><tbody><\/tbody><\/table>");if(l=n(u).triggerHandler("jqGridAddEditBeforeInitData",[n("#"+e),h]),l===undefined&&(l=!0),l&&k&&(l=k.call(u,n("#"+e,h))),l===!1)return;dt(),n(u.p.colModel).each(function(){var n=this.formoptions;p=Math.max(p,n?n.colpos||0:0),st=Math.max(st,n?n.rowpos||0:0)}),n(gt).append(v),y=n("<tr id='FormError' style='display:none'><td class='ui-state-error' colspan='"+p*2+"'><\/td><\/tr>"),y[0].rp=0,n(v).append(y),y=n("<tr style='display:none' class='tinfo'><td class='topinfo' colspan='"+p*2+"'>"+t[u.p.id].topinfo+"<\/td><\/tr>"),y[0].rp=0,n(v).append(y);var it=u.p.direction==="rtl"?!0:!1,fi=it?"nData":"pData",ei=it?"pData":"nData";ti(i,u,v,p);var ni="<a href='javascript:void(0)' id='"+fi+"' class='fm-button ui-state-default ui-corner-left'><span class='ui-icon ui-icon-triangle-1-w'><\/span><\/a>",rt="<a href='javascript:void(0)' id='"+ei+"' class='fm-button ui-state-default ui-corner-right'><span class='ui-icon ui-icon-triangle-1-e'><\/span><\/a>",lt="<a href='javascript:void(0)' id='sData' class='fm-button ui-state-default ui-corner-all'>"+r.bSubmit+"<\/a>",at="<a href='javascript:void(0)' id='cData' class='fm-button ui-state-default ui-corner-all'>"+r.bCancel+"<\/a>",ut="<table border='0' cellspacing='0' cellpadding='0' class='EditTable' id='"+ot+"_2'><tbody><tr><td colspan='2'><hr class='ui-widget-content' style='margin:1px'/><\/td><\/tr><tr id='Act_Buttons'><td class='navButton'>"+(it?rt+ni:ni+rt)+"<\/td><td class='EditButton'>"+lt+at+"<\/td><\/tr>";ut+="<tr style='display:none' class='binfo'><td class='bottominfo' colspan='2'>"+t[u.p.id].bottominfo+"<\/td><\/tr>",ut+="<\/tbody><\/table>",st>0&&(ft=[],n.each(n(v)[0].rows,function(n,t){ft[n]=t}),ft.sort(function(n,t){return n.rp>t.rp?1:n.rp<t.rp?-1:0}),n.each(ft,function(t,i){n("tbody",v).append(i)})),r.gbox="#gbox_"+n.jgrid.jqID(c),vt=!1,r.closeOnEscape===!0&&(r.closeOnEscape=!1,vt=!0),yt=n("<div><\/div>").append(gt).append(ut),n.jgrid.createModal(s,yt,r,"#gview_"+n.jgrid.jqID(u.p.id),n("#gbox_"+n.jgrid.jqID(u.p.id))[0]),it&&(n("#pData, #nData",o+"_2").css("float","right"),n(".EditButton",o+"_2").css("text-align","left")),t[u.p.id].topinfo&&n(".tinfo",o).show(),t[u.p.id].bottominfo&&n(".binfo",o+"_2").show(),yt=null,ut=null,n("#"+n.jgrid.jqID(s.themodal)).keydown(function(i){var f=i.target;if(n("#"+e).data("disabled")===!0)return!1;if(t[u.p.id].savekey[0]===!0&&i.which===t[u.p.id].savekey[1]&&f.tagName!=="TEXTAREA")return n("#sData",o+"_2").trigger("click"),!1;if(i.which===27)return a()?(vt&&n.jgrid.hideModal("#"+n.jgrid.jqID(s.themodal),{gb:r.gbox,jqm:r.jqModal,onClose:t[u.p.id].onClose}),!1):!1;if(t[u.p.id].navkeys[0]===!0){if(n("#id_g",o).val()==="_empty")return!0;if(i.which===t[u.p.id].navkeys[1])return n("#pData",o+"_2").trigger("click"),!1;if(i.which===t[u.p.id].navkeys[2])return n("#nData",o+"_2").trigger("click"),!1}}),r.checkOnUpdate&&(n("a.ui-jqdialog-titlebar-close span","#"+n.jgrid.jqID(s.themodal)).removeClass("jqmClose"),n("a.ui-jqdialog-titlebar-close","#"+n.jgrid.jqID(s.themodal)).unbind("click").click(function(){return a()?(n.jgrid.hideModal("#"+n.jgrid.jqID(s.themodal),{gb:"#gbox_"+n.jgrid.jqID(c),jqm:r.jqModal,onClose:t[u.p.id].onClose}),!1):!1})),r.saveicon=n.extend([!0,"left","ui-icon-disk"],r.saveicon),r.closeicon=n.extend([!0,"left","ui-icon-close"],r.closeicon),r.saveicon[0]===!0&&n("#sData",o+"_2").addClass(r.saveicon[1]==="right"?"fm-button-icon-right":"fm-button-icon-left").append("<span class='ui-icon "+r.saveicon[2]+"'><\/span>"),r.closeicon[0]===!0&&n("#cData",o+"_2").addClass(r.closeicon[1]==="right"?"fm-button-icon-right":"fm-button-icon-left").append("<span class='ui-icon "+r.closeicon[2]+"'><\/span>"),(t[u.p.id].checkOnSubmit||t[u.p.id].checkOnUpdate)&&(lt="<a href='javascript:void(0)' id='sNew' class='fm-button ui-state-default ui-corner-all' style='z-index:1002'>"+r.bYes+"<\/a>",rt="<a href='javascript:void(0)' id='nNew' class='fm-button ui-state-default ui-corner-all' style='z-index:1002'>"+r.bNo+"<\/a>",at="<a href='javascript:void(0)' id='cNew' class='fm-button ui-state-default ui-corner-all' style='z-index:1002'>"+r.bExit+"<\/a>",et=r.zIndex||999,et++,n("<div class='"+r.overlayClass+" jqgrid-overlay confirm' style='z-index:"+et+";display:none;'>&#160;<\/div><div class='confirm ui-widget-content ui-jqconfirm' style='z-index:"+(et+1)+"'>"+r.saveData+"<br/><br/>"+lt+rt+at+"<\/div>").insertAfter("#"+e),n("#sNew","#"+n.jgrid.jqID(s.themodal)).click(function(){return tt(),n("#"+e).data("disabled",!1),n(".confirm","#"+n.jgrid.jqID(s.themodal)).hide(),!1}),n("#nNew","#"+n.jgrid.jqID(s.themodal)).click(function(){return n(".confirm","#"+n.jgrid.jqID(s.themodal)).hide(),n("#"+e).data("disabled",!1),setTimeout(function(){n(":input:visible","#"+e)[0].focus()},0),!1}),n("#cNew","#"+n.jgrid.jqID(s.themodal)).click(function(){return n(".confirm","#"+n.jgrid.jqID(s.themodal)).hide(),n("#"+e).data("disabled",!1),n.jgrid.hideModal("#"+n.jgrid.jqID(s.themodal),{gb:"#gbox_"+n.jgrid.jqID(c),jqm:r.jqModal,onClose:t[u.p.id].onClose}),!1})),n(u).triggerHandler("jqGridAddEditInitializeForm",[n("#"+e),h]),wt&&wt.call(u,n("#"+e),h),i!=="_empty"&&t[u.p.id].viewPagerButtons?n("#pData,#nData",o+"_2").show():n("#pData,#nData",o+"_2").hide(),n(u).triggerHandler("jqGridAddEditBeforeShowForm",[n("#"+e),h]),w&&w.call(u,n("#"+e),h),n("#"+n.jgrid.jqID(s.themodal)).data("onClose",t[u.p.id].onClose),n.jgrid.viewModal("#"+n.jgrid.jqID(s.themodal),{gbox:"#gbox_"+n.jgrid.jqID(c),jqm:r.jqModal,overlay:r.overlay,modal:r.modal,overlayClass:r.overlayClass}),g||n("."+n.jgrid.jqID(r.overlayClass)).click(function(){return a()?(n.jgrid.hideModal("#"+n.jgrid.jqID(s.themodal),{gb:"#gbox_"+n.jgrid.jqID(c),jqm:r.jqModal,onClose:t[u.p.id].onClose}),!1):!1}),n(u).triggerHandler("jqGridAddEditAfterShowForm",[n("#"+e),h]),b&&b.call(u,n("#"+e),h),n(".fm-button","#"+n.jgrid.jqID(s.themodal)).hover(function(){n(this).addClass("ui-state-hover")},function(){n(this).removeClass("ui-state-hover")}),n("#sData",o+"_2").click(function(){return f={},n("#FormError",o).hide(),bt(),f[u.p.id+"_id"]==="_empty"?tt():r.checkOnSubmit===!0?(d=kt(f,t[u.p.id]._savedData),d?(n("#"+e).data("disabled",!0),n(".confirm","#"+n.jgrid.jqID(s.themodal)).show()):tt()):tt(),!1}),n("#cData",o+"_2").click(function(){return a()?(n.jgrid.hideModal("#"+n.jgrid.jqID(s.themodal),{gb:"#gbox_"+n.jgrid.jqID(c),jqm:r.jqModal,onClose:t[u.p.id].onClose}),!1):!1}),n("#nData",o+"_2").click(function(){var t,i;if(!a())return!1;if(n("#FormError",o).hide(),t=ct(),t[0]=parseInt(t[0],10),t[0]!==-1&&t[1][t[0]+1]){if((n(u).triggerHandler("jqGridAddEditClickPgButtons",["next",n("#"+e),t[1][t[0]]]),n.isFunction(r.onclickPgButtons)&&(i=r.onclickPgButtons.call(u,"next",n("#"+e),t[1][t[0]]),i!==undefined&&i===!1))||n("#"+n.jgrid.jqID(t[1][t[0]+1])).hasClass("ui-state-disabled"))return!1;nt(t[1][t[0]+1],u,e),n(u).jqGrid("setSelection",t[1][t[0]+1]),n(u).triggerHandler("jqGridAddEditAfterClickPgButtons",["next",n("#"+e),t[1][t[0]]]),n.isFunction(r.afterclickPgButtons)&&r.afterclickPgButtons.call(u,"next",n("#"+e),t[1][t[0]+1]),ht(t[0]+1,t)}return!1}),n("#pData",o+"_2").click(function(){var t,i;if(!a())return!1;if(n("#FormError",o).hide(),t=ct(),t[0]!==-1&&t[1][t[0]-1]){if((n(u).triggerHandler("jqGridAddEditClickPgButtons",["prev",n("#"+e),t[1][t[0]]]),n.isFunction(r.onclickPgButtons)&&(i=r.onclickPgButtons.call(u,"prev",n("#"+e),t[1][t[0]]),i!==undefined&&i===!1))||n("#"+n.jgrid.jqID(t[1][t[0]-1])).hasClass("ui-state-disabled"))return!1;nt(t[1][t[0]-1],u,e),n(u).jqGrid("setSelection",t[1][t[0]-1]),n(u).triggerHandler("jqGridAddEditAfterClickPgButtons",["prev",n("#"+e),t[1][t[0]]]),n.isFunction(r.afterclickPgButtons)&&r.afterclickPgButtons.call(u,"prev",n("#"+e),t[1][t[0]-1]),ht(t[0]-1,t)}return!1})}pt=ct(),ht(pt[0],pt)}})},viewGridRow:function(i,r){return r=n.extend(!0,{top:0,left:0,width:0,datawidth:"auto",height:"auto",dataheight:"auto",modal:!1,overlay:30,drag:!0,resize:!0,jqModal:!0,closeOnEscape:!1,labelswidth:"30%",closeicon:[],navkeys:[!1,38,40],onClose:null,beforeShowForm:null,beforeInitData:null,viewPagerButtons:!0,recreateForm:!1},n.jgrid.view,r||{}),t[n(this)[0].p.id]=r,this.each(function(){function l(){(t[u.p.id].closeOnEscape===!0||t[u.p.id].navkeys[0]===!0)&&setTimeout(function(){n(".ui-jqdialog-titlebar-close","#"+n.jgrid.jqID(o.modalhead)).focus()},0)}function et(t,i,u,f){for(var o,s,e,h=0,c,k,d=[],l=!1,tt="<td class='CaptionTD form-view-label ui-widget-content' width='"+r.labelswidth+"'>&#160;<\/td><td class='DataTD form-view-data ui-helper-reset ui-widget-content'>&#160;<\/td>",g="",it="<td class='CaptionTD form-view-label ui-widget-content'>&#160;<\/td><td class='DataTD form-view-data ui-widget-content'>&#160;<\/td>",rt=["integer","number","currency"],a=0,v=0,p,w,nt,b,y=1;y<=f;y++)g+=y===1?tt:it;return n(i.p.colModel).each(function(){s=this.editrules&&this.editrules.edithidden===!0?!1:this.hidden===!0?!0:!1,s||this.align!=="right"||(this.formatter&&n.inArray(this.formatter,rt)!==-1?a=Math.max(a,parseInt(this.width,10)):v=Math.max(v,parseInt(this.width,10)))}),p=a!==0?a:v!==0?v:0,l=n(i).jqGrid("getInd",t),n(i.p.colModel).each(function(t){var y;if(o=this.name,w=!1,s=this.editrules&&this.editrules.edithidden===!0?!1:this.hidden===!0?!0:!1,k=s?"style='display:none'":"",nt=typeof this.viewable!="boolean"?!0:this.viewable,o!=="cb"&&o!=="subgrid"&&o!=="rn"&&nt){c=l===!1?"":o===i.p.ExpandColumn&&i.p.treeGrid===!0?n("td:eq("+t+")",i.rows[l]).text():n("td:eq("+t+")",i.rows[l]).html(),w=this.align==="right"&&p!==0?!0:!1;var r=n.extend({},{rowabove:!1,rowcontent:""},this.formoptions||{}),a=parseInt(r.rowpos,10)||h+1,v=parseInt((parseInt(r.colpos,10)||1)*2,10);r.rowabove&&(y=n("<tr><td class='contentinfo' colspan='"+f*2+"'>"+r.rowcontent+"<\/td><\/tr>"),n(u).append(y),y[0].rp=a),e=n(u).find("tr[rowpos="+a+"]"),e.length===0&&(e=n("<tr "+k+" rowpos='"+a+"'><\/tr>").addClass("FormData").attr("id","trv_"+o),n(e).append(g),n(u).append(e),e[0].rp=a),n("td:eq("+(v-2)+")",e[0]).html("<b>"+(r.label===undefined?i.p.colNames[t]:r.label)+"<\/b>"),n("td:eq("+(v-1)+")",e[0]).append("<span>"+c+"<\/span>").attr("id","v_"+o),w&&n("td:eq("+(v-1)+") span",e[0]).css({"text-align":"right",width:p+"px"}),d[h]=t,h++}}),h>0&&(b=n("<tr class='FormData' style='display:none'><td class='CaptionTD'><\/td><td colspan='"+(f*2-1)+"' class='DataTD'><input class='FormElement' id='id_g' type='text' name='id' value='"+t+"'/><\/td><\/tr>"),b[0].rp=h+99,n(u).append(b)),d}function b(t,i){var r,u,s=0,e,o;(o=n(i).jqGrid("getInd",t,!0),o)&&(n("td",o).each(function(t){r=i.p.colModel[t].name,u=i.p.colModel[t].editrules&&i.p.colModel[t].editrules.edithidden===!0?!1:i.p.colModel[t].hidden===!0?!0:!1,r!=="cb"&&r!=="subgrid"&&r!=="rn"&&(e=r===i.p.ExpandColumn&&i.p.treeGrid===!0?n(this).text():n(this).html(),r=n.jgrid.jqID("v_"+r),n("#"+r+" span","#"+f).html(e),u&&n("#"+r,"#"+f).parents("tr:first").hide(),s++)}),s>0&&n("#id_g","#"+f).val(t))}function k(t,i){var r=i[1].length-1;t===0?n("#pData","#"+f+"_2").addClass("ui-state-disabled"):i[1][t-1]!==undefined&&n("#"+n.jgrid.jqID(i[1][t-1])).hasClass("ui-state-disabled")?n("#pData",f+"_2").addClass("ui-state-disabled"):n("#pData","#"+f+"_2").removeClass("ui-state-disabled"),t===r?n("#nData","#"+f+"_2").addClass("ui-state-disabled"):i[1][t+1]!==undefined&&n("#"+n.jgrid.jqID(i[1][t+1])).hasClass("ui-state-disabled")?n("#nData",f+"_2").addClass("ui-state-disabled"):n("#nData","#"+f+"_2").removeClass("ui-state-disabled")}function d(){var t=n(u).jqGrid("getDataIDs"),i=n("#id_g","#"+f).val(),r=n.inArray(i,t);return[r,t]}var u=this,y,g,nt;if(u.grid&&i){var e=u.p.id,s="ViewGrid_"+n.jgrid.jqID(e),f="ViewTbl_"+n.jgrid.jqID(e),ut="ViewGrid_"+e,ft="ViewTbl_"+e,o={themodal:"viewmod"+e,modalhead:"viewhd"+e,modalcontent:"viewcnt"+e,scrollelm:s},c=n.isFunction(t[u.p.id].beforeInitData)?t[u.p.id].beforeInitData:!1,h=!0,p=1,w=0;if(r.recreateForm===!0&&n("#"+n.jgrid.jqID(o.themodal))[0]!==undefined&&n("#"+n.jgrid.jqID(o.themodal)).remove(),n("#"+n.jgrid.jqID(o.themodal))[0]!==undefined){if(c&&(h=c.call(u,n("#"+s)),h===undefined&&(h=!0)),h===!1)return;n(".ui-jqdialog-title","#"+n.jgrid.jqID(o.modalhead)).html(r.caption),n("#FormError","#"+f).hide(),b(i,u),n.isFunction(t[u.p.id].beforeShowForm)&&t[u.p.id].beforeShowForm.call(u,n("#"+s)),n.jgrid.viewModal("#"+n.jgrid.jqID(o.themodal),{gbox:"#gbox_"+n.jgrid.jqID(e),jqm:r.jqModal,jqM:!1,overlay:r.overlay,modal:r.modal}),l()}else{var ot=isNaN(r.dataheight)?r.dataheight:r.dataheight+"px",st=isNaN(r.datawidth)?r.datawidth:r.datawidth+"px",tt=n("<form name='FormPost' id='"+ut+"' class='FormGrid' style='width:"+st+";overflow:auto;position:relative;height:"+ot+";'><\/form>"),a=n("<table id='"+ft+"' class='EditTable' cellspacing='1' cellpadding='2' border='0' style='table-layout:fixed'><tbody><\/tbody><\/table>");if(c&&(h=c.call(u,n("#"+s)),h===undefined&&(h=!0)),h===!1)return;n(u.p.colModel).each(function(){var n=this.formoptions;p=Math.max(p,n?n.colpos||0:0),w=Math.max(w,n?n.rowpos||0:0)}),n(tt).append(a),et(i,u,a,p);var v=u.p.direction==="rtl"?!0:!1,ht=v?"nData":"pData",ct=v?"pData":"nData",it="<a href='javascript:void(0)' id='"+ht+"' class='fm-button ui-state-default ui-corner-left'><span class='ui-icon ui-icon-triangle-1-w'><\/span><\/a>",rt="<a href='javascript:void(0)' id='"+ct+"' class='fm-button ui-state-default ui-corner-right'><span class='ui-icon ui-icon-triangle-1-e'><\/span><\/a>",lt="<a href='javascript:void(0)' id='cData' class='fm-button ui-state-default ui-corner-all'>"+r.bClose+"<\/a>";w>0&&(y=[],n.each(n(a)[0].rows,function(n,t){y[n]=t}),y.sort(function(n,t){return n.rp>t.rp?1:n.rp<t.rp?-1:0}),n.each(y,function(t,i){n("tbody",a).append(i)})),r.gbox="#gbox_"+n.jgrid.jqID(e),g=n("<div><\/div>").append(tt).append("<table border='0' class='EditTable' id='"+f+"_2'><tbody><tr id='Act_Buttons'><td class='navButton' width='"+r.labelswidth+"'>"+(v?rt+it:it+rt)+"<\/td><td class='EditButton'>"+lt+"<\/td><\/tr><\/tbody><\/table>"),n.jgrid.createModal(o,g,r,"#gview_"+n.jgrid.jqID(u.p.id),n("#gview_"+n.jgrid.jqID(u.p.id))[0]),v&&(n("#pData, #nData","#"+f+"_2").css("float","right"),n(".EditButton","#"+f+"_2").css("text-align","left")),r.viewPagerButtons||n("#pData, #nData","#"+f+"_2").hide(),g=null,n("#"+o.themodal).keydown(function(i){if(i.which===27)return t[u.p.id].closeOnEscape&&n.jgrid.hideModal("#"+n.jgrid.jqID(o.themodal),{gb:r.gbox,jqm:r.jqModal,onClose:r.onClose}),!1;if(r.navkeys[0]===!0){if(i.which===r.navkeys[1])return n("#pData","#"+f+"_2").trigger("click"),!1;if(i.which===r.navkeys[2])return n("#nData","#"+f+"_2").trigger("click"),!1}}),r.closeicon=n.extend([!0,"left","ui-icon-close"],r.closeicon),r.closeicon[0]===!0&&n("#cData","#"+f+"_2").addClass(r.closeicon[1]==="right"?"fm-button-icon-right":"fm-button-icon-left").append("<span class='ui-icon "+r.closeicon[2]+"'><\/span>"),n.isFunction(r.beforeShowForm)&&r.beforeShowForm.call(u,n("#"+s)),n.jgrid.viewModal("#"+n.jgrid.jqID(o.themodal),{gbox:"#gbox_"+n.jgrid.jqID(e),jqm:r.jqModal,overlay:r.overlay,modal:r.modal}),n(".fm-button:not(.ui-state-disabled)","#"+f+"_2").hover(function(){n(this).addClass("ui-state-hover")},function(){n(this).removeClass("ui-state-hover")}),l(),n("#cData","#"+f+"_2").click(function(){return n.jgrid.hideModal("#"+n.jgrid.jqID(o.themodal),{gb:"#gbox_"+n.jgrid.jqID(e),jqm:r.jqModal,onClose:r.onClose}),!1}),n("#nData","#"+f+"_2").click(function(){n("#FormError","#"+f).hide();var t=d();return t[0]=parseInt(t[0],10),t[0]!==-1&&t[1][t[0]+1]&&(n.isFunction(r.onclickPgButtons)&&r.onclickPgButtons.call(u,"next",n("#"+s),t[1][t[0]]),b(t[1][t[0]+1],u),n(u).jqGrid("setSelection",t[1][t[0]+1]),n.isFunction(r.afterclickPgButtons)&&r.afterclickPgButtons.call(u,"next",n("#"+s),t[1][t[0]+1]),k(t[0]+1,t)),l(),!1}),n("#pData","#"+f+"_2").click(function(){n("#FormError","#"+f).hide();var t=d();return t[0]!==-1&&t[1][t[0]-1]&&(n.isFunction(r.onclickPgButtons)&&r.onclickPgButtons.call(u,"prev",n("#"+s),t[1][t[0]]),b(t[1][t[0]-1],u),n(u).jqGrid("setSelection",t[1][t[0]-1]),n.isFunction(r.afterclickPgButtons)&&r.afterclickPgButtons.call(u,"prev",n("#"+s),t[1][t[0]-1]),k(t[0]-1,t)),l(),!1})}nt=d(),k(nt[0],nt)}})},delGridRow:function(i,r){return r=n.extend(!0,{top:0,left:0,width:240,height:"auto",dataheight:"auto",modal:!1,overlay:30,drag:!0,resize:!0,url:"",mtype:"POST",reloadAfterSubmit:!0,beforeShowForm:null,beforeInitData:null,afterShowForm:null,beforeSubmit:null,onclickSubmit:null,afterSubmit:null,jqModal:!0,closeOnEscape:!1,delData:{},delicon:[],cancelicon:[],onClose:null,ajaxDelOptions:{},processing:!1,serializeDelData:null,useDataProxy:!1},n.jgrid.del,r||{}),t[n(this)[0].p.id]=r,this.each(function(){var u=this,k,d;if(u.grid&&i){var y=n.isFunction(t[u.p.id].beforeShowForm),p=n.isFunction(t[u.p.id].afterShowForm),l=n.isFunction(t[u.p.id].beforeInitData)?t[u.p.id].beforeInitData:!1,e=u.p.id,v={},o=!0,f="DelTbl_"+n.jgrid.jqID(e),c,w,a,b,g="DelTbl_"+e,s={themodal:"delmod"+e,modalhead:"delhd"+e,modalcontent:"delcnt"+e,scrollelm:f};if(n.isArray(i)&&(i=i.join()),n("#"+n.jgrid.jqID(s.themodal))[0]!==undefined){if(l&&(o=l.call(u,n("#"+f)),o===undefined&&(o=!0)),o===!1)return;n("#DelData>td","#"+f).text(i),n("#DelError","#"+f).hide(),t[u.p.id].processing===!0&&(t[u.p.id].processing=!1,n("#dData","#"+f).removeClass("ui-state-active")),y&&t[u.p.id].beforeShowForm.call(u,n("#"+f)),n.jgrid.viewModal("#"+n.jgrid.jqID(s.themodal),{gbox:"#gbox_"+n.jgrid.jqID(e),jqm:t[u.p.id].jqModal,jqM:!1,overlay:t[u.p.id].overlay,modal:t[u.p.id].modal}),p&&t[u.p.id].afterShowForm.call(u,n("#"+f))}else{var nt=isNaN(t[u.p.id].dataheight)?t[u.p.id].dataheight:t[u.p.id].dataheight+"px",tt=isNaN(r.datawidth)?r.datawidth:r.datawidth+"px",h="<div id='"+g+"' class='formdata' style='width:"+tt+";overflow:auto;position:relative;height:"+nt+";'>";if(h+="<table class='DelTable'><tbody>",h+="<tr id='DelError' style='display:none'><td class='ui-state-error'><\/td><\/tr>",h+="<tr id='DelData' style='display:none'><td >"+i+"<\/td><\/tr>",h+='<tr><td class="delmsg" style="white-space:pre;">'+t[u.p.id].msg+"<\/td><\/tr><tr><td >&#160;<\/td><\/tr>",h+="<\/tbody><\/table><\/div>",k="<a href='javascript:void(0)' id='dData' class='fm-button ui-state-default ui-corner-all'>"+r.bSubmit+"<\/a>",d="<a href='javascript:void(0)' id='eData' class='fm-button ui-state-default ui-corner-all'>"+r.bCancel+"<\/a>",h+="<table cellspacing='0' cellpadding='0' border='0' class='EditTable' id='"+f+"_2'><tbody><tr><td><hr class='ui-widget-content' style='margin:1px'/><\/td><\/tr><tr><td class='DelButton EditButton'>"+k+"&#160;"+d+"<\/td><\/tr><\/tbody><\/table>",r.gbox="#gbox_"+n.jgrid.jqID(e),n.jgrid.createModal(s,h,r,"#gview_"+n.jgrid.jqID(u.p.id),n("#gview_"+n.jgrid.jqID(u.p.id))[0]),l&&(o=l.call(u,n("#"+f)),o===undefined&&(o=!0)),o===!1)return;n(".fm-button","#"+f+"_2").hover(function(){n(this).addClass("ui-state-hover")},function(){n(this).removeClass("ui-state-hover")}),r.delicon=n.extend([!0,"left","ui-icon-scissors"],t[u.p.id].delicon),r.cancelicon=n.extend([!0,"left","ui-icon-cancel"],t[u.p.id].cancelicon),r.delicon[0]===!0&&n("#dData","#"+f+"_2").addClass(r.delicon[1]==="right"?"fm-button-icon-right":"fm-button-icon-left").append("<span class='ui-icon "+r.delicon[2]+"'><\/span>"),r.cancelicon[0]===!0&&n("#eData","#"+f+"_2").addClass(r.cancelicon[1]==="right"?"fm-button-icon-right":"fm-button-icon-left").append("<span class='ui-icon "+r.cancelicon[2]+"'><\/span>"),n("#dData","#"+f+"_2").click(function(){var i=[!0,""],l,o=n("#DelData>td","#"+f).text(),y,h;if(v={},n.isFunction(t[u.p.id].onclickSubmit)&&(v=t[u.p.id].onclickSubmit.call(u,t[u.p.id],o)||{}),n.isFunction(t[u.p.id].beforeSubmit)&&(i=t[u.p.id].beforeSubmit.call(u,o)),i[0]&&!t[u.p.id].processing){if(t[u.p.id].processing=!0,a=u.p.prmNames,c=n.extend({},t[u.p.id].delData,v),b=a.oper,c[b]=a.deloper,w=a.id,o=String(o).split(","),!o.length)return!1;for(l in o)o.hasOwnProperty(l)&&(o[l]=n.jgrid.stripPref(u.p.idPrefix,o[l]));c[w]=o.join(),n(this).addClass("ui-state-active"),y=n.extend({url:t[u.p.id].url||n(u).jqGrid("getGridParam","editurl"),type:t[u.p.id].mtype,data:n.isFunction(t[u.p.id].serializeDelData)?t[u.p.id].serializeDelData.call(u,c):c,complete:function(h,l){var a;if(h.status>=300&&h.status!==304?(i[0]=!1,i[1]=n.isFunction(t[u.p.id].errorTextFormat)?t[u.p.id].errorTextFormat.call(u,h):l+" Status: '"+h.statusText+"'. Error code: "+h.status):n.isFunction(t[u.p.id].afterSubmit)&&(i=t[u.p.id].afterSubmit.call(u,h,c)),i[0]===!1)n("#DelError>td","#"+f).html(i[1]),n("#DelError","#"+f).show();else{if(t[u.p.id].reloadAfterSubmit&&u.p.datatype!=="local")n(u).trigger("reloadGrid");else{if(u.p.treeGrid===!0)try{n(u).jqGrid("delTreeNode",u.p.idPrefix+o[0])}catch(v){}else for(a=0;a<o.length;a++)n(u).jqGrid("delRowData",u.p.idPrefix+o[a]);u.p.selrow=null,u.p.selarrrow=[]}n.isFunction(t[u.p.id].afterComplete)&&setTimeout(function(){t[u.p.id].afterComplete.call(u,h,o)},500)}t[u.p.id].processing=!1,n("#dData","#"+f+"_2").removeClass("ui-state-active"),i[0]&&n.jgrid.hideModal("#"+n.jgrid.jqID(s.themodal),{gb:"#gbox_"+n.jgrid.jqID(e),jqm:r.jqModal,onClose:t[u.p.id].onClose})}},n.jgrid.ajaxOptions,t[u.p.id].ajaxDelOptions),y.url||t[u.p.id].useDataProxy||(n.isFunction(u.p.dataProxy)?t[u.p.id].useDataProxy=!0:(i[0]=!1,i[1]+=" "+n.jgrid.errors.nourl)),i[0]&&(t[u.p.id].useDataProxy?(h=u.p.dataProxy.call(u,y,"del_"+u.p.id),h===undefined&&(h=[!0,""]),h[0]===!1?(i[0]=!1,i[1]=h[1]||"Error deleting the selected row!"):n.jgrid.hideModal("#"+n.jgrid.jqID(s.themodal),{gb:"#gbox_"+n.jgrid.jqID(e),jqm:r.jqModal,onClose:t[u.p.id].onClose})):n.ajax(y))}return i[0]===!1&&(n("#DelError>td","#"+f).html(i[1]),n("#DelError","#"+f).show()),!1}),n("#eData","#"+f+"_2").click(function(){return n.jgrid.hideModal("#"+n.jgrid.jqID(s.themodal),{gb:"#gbox_"+n.jgrid.jqID(e),jqm:t[u.p.id].jqModal,onClose:t[u.p.id].onClose}),!1}),y&&t[u.p.id].beforeShowForm.call(u,n("#"+f)),n.jgrid.viewModal("#"+n.jgrid.jqID(s.themodal),{gbox:"#gbox_"+n.jgrid.jqID(e),jqm:t[u.p.id].jqModal,overlay:t[u.p.id].overlay,modal:t[u.p.id].modal}),p&&t[u.p.id].afterShowForm.call(u,n("#"+f))}t[u.p.id].closeOnEscape===!0&&setTimeout(function(){n(".ui-jqdialog-titlebar-close","#"+n.jgrid.jqID(s.modalhead)).focus()},0)}})},navGrid:function(t,i,r,u,f,e,o){return i=n.extend({edit:!0,editicon:"ui-icon-pencil",add:!0,addicon:"ui-icon-plus",del:!0,delicon:"ui-icon-trash",search:!0,searchicon:"ui-icon-search",refresh:!0,refreshicon:"ui-icon-refresh",refreshstate:"firstpage",view:!1,viewicon:"ui-icon-document",position:"left",closeOnEscape:!0,beforeRefresh:null,afterRefresh:null,cloneToTop:!1,alertwidth:200,alertheight:"auto",alerttop:null,alertleft:null,alertzIndex:null},n.jgrid.nav,i||{}),this.each(function(){var v,s,y,k,h,c,g,a,l;if(!this.nav&&(v={themodal:"alertmod_"+this.p.id,modalhead:"alerthd_"+this.p.id,modalcontent:"alertcnt_"+this.p.id},s=this,s.grid&&typeof t=="string")){n("#"+v.themodal)[0]===undefined&&(i.alerttop||i.alertleft||(window.innerWidth!==undefined?(i.alertleft=window.innerWidth,i.alerttop=window.innerHeight):document.documentElement!==undefined&&document.documentElement.clientWidth!==undefined&&document.documentElement.clientWidth!==0?(i.alertleft=document.documentElement.clientWidth,i.alerttop=document.documentElement.clientHeight):(i.alertleft=1024,i.alerttop=768),i.alertleft=i.alertleft/2-parseInt(i.alertwidth,10)/2,i.alerttop=i.alerttop/2-25),n.jgrid.createModal(v,"<div>"+i.alerttext+"<\/div><span tabindex='0'><span tabindex='-1' id='jqg_alrt'><\/span><\/span>",{gbox:"#gbox_"+n.jgrid.jqID(s.p.id),jqModal:!0,drag:!0,resize:!0,caption:i.alertcap,top:i.alerttop,left:i.alertleft,width:i.alertwidth,height:i.alertheight,closeOnEscape:i.closeOnEscape,zIndex:i.alertzIndex},"#gview_"+n.jgrid.jqID(s.p.id),n("#gbox_"+n.jgrid.jqID(s.p.id))[0],!0));var d=1,b,p=function(){n(this).hasClass("ui-state-disabled")||n(this).addClass("ui-state-hover")},w=function(){n(this).removeClass("ui-state-hover")};for(i.cloneToTop&&s.p.toppager&&(d=2),b=0;b<d;b++)c=n("<table cellspacing='0' cellpadding='0' border='0' class='ui-pg-table navtable' style='float:left;table-layout:auto;'><tbody><tr><\/tr><\/tbody><\/table>"),g="<td class='ui-pg-button ui-state-disabled' style='width:4px;'><span class='ui-separator'><\/span><\/td>",b===0?(a=t,l=s.p.id,a===s.p.toppager&&(l+="_top",d=1)):(a=s.p.toppager,l=s.p.id+"_top"),s.p.direction==="rtl"&&n(c).attr("dir","rtl").css("float","right"),i.add&&(u=u||{},h=n("<td class='ui-pg-button ui-corner-all'><\/td>"),n(h).append("<div class='ui-pg-div'><span class='ui-icon "+i.addicon+"'><\/span>"+i.addtext+"<\/div>"),n("tr",c).append(h),n(h,c).attr({title:i.addtitle||"",id:u.id||"add_"+l}).click(function(){return n(this).hasClass("ui-state-disabled")||(n.isFunction(i.addfunc)?i.addfunc.call(s):n(s).jqGrid("editGridRow","new",u)),!1}).hover(p,w),h=null),i.edit&&(h=n("<td class='ui-pg-button ui-corner-all'><\/td>"),r=r||{},n(h).append("<div class='ui-pg-div'><span class='ui-icon "+i.editicon+"'><\/span>"+i.edittext+"<\/div>"),n("tr",c).append(h),n(h,c).attr({title:i.edittitle||"",id:r.id||"edit_"+l}).click(function(){if(!n(this).hasClass("ui-state-disabled")){var t=s.p.selrow;t?n.isFunction(i.editfunc)?i.editfunc.call(s,t):n(s).jqGrid("editGridRow",t,r):(n.jgrid.viewModal("#"+v.themodal,{gbox:"#gbox_"+n.jgrid.jqID(s.p.id),jqm:!0}),n("#jqg_alrt").focus())}return!1}).hover(p,w),h=null),i.view&&(h=n("<td class='ui-pg-button ui-corner-all'><\/td>"),o=o||{},n(h).append("<div class='ui-pg-div'><span class='ui-icon "+i.viewicon+"'><\/span>"+i.viewtext+"<\/div>"),n("tr",c).append(h),n(h,c).attr({title:i.viewtitle||"",id:o.id||"view_"+l}).click(function(){if(!n(this).hasClass("ui-state-disabled")){var t=s.p.selrow;t?n.isFunction(i.viewfunc)?i.viewfunc.call(s,t):n(s).jqGrid("viewGridRow",t,o):(n.jgrid.viewModal("#"+v.themodal,{gbox:"#gbox_"+n.jgrid.jqID(s.p.id),jqm:!0}),n("#jqg_alrt").focus())}return!1}).hover(p,w),h=null),i.del&&(h=n("<td class='ui-pg-button ui-corner-all'><\/td>"),f=f||{},n(h).append("<div class='ui-pg-div'><span class='ui-icon "+i.delicon+"'><\/span>"+i.deltext+"<\/div>"),n("tr",c).append(h),n(h,c).attr({title:i.deltitle||"",id:f.id||"del_"+l}).click(function(){if(!n(this).hasClass("ui-state-disabled")){var t;s.p.multiselect?(t=s.p.selarrrow,t.length===0&&(t=null)):t=s.p.selrow,t?n.isFunction(i.delfunc)?i.delfunc.call(s,t):n(s).jqGrid("delGridRow",t,f):(n.jgrid.viewModal("#"+v.themodal,{gbox:"#gbox_"+n.jgrid.jqID(s.p.id),jqm:!0}),n("#jqg_alrt").focus())}return!1}).hover(p,w),h=null),(i.add||i.edit||i.del||i.view)&&n("tr",c).append(g),i.search&&(h=n("<td class='ui-pg-button ui-corner-all'><\/td>"),e=e||{},n(h).append("<div class='ui-pg-div'><span class='ui-icon "+i.searchicon+"'><\/span>"+i.searchtext+"<\/div>"),n("tr",c).append(h),n(h,c).attr({title:i.searchtitle||"",id:e.id||"search_"+l}).click(function(){return n(this).hasClass("ui-state-disabled")||(n.isFunction(i.searchfunc)?i.searchfunc.call(s,e):n(s).jqGrid("searchGrid",e)),!1}).hover(p,w),e.showOnLoad&&e.showOnLoad===!0&&n(h,c).click(),h=null),i.refresh&&(h=n("<td class='ui-pg-button ui-corner-all'><\/td>"),n(h).append("<div class='ui-pg-div'><span class='ui-icon "+i.refreshicon+"'><\/span>"+i.refreshtext+"<\/div>"),n("tr",c).append(h),n(h,c).attr({title:i.refreshtitle||"",id:"refresh_"+l}).click(function(){if(!n(this).hasClass("ui-state-disabled")){n.isFunction(i.beforeRefresh)&&i.beforeRefresh.call(s),s.p.search=!1;try{var t=s.p.id;s.p.postData.filters="";try{n("#fbox_"+n.jgrid.jqID(t)).jqFilter("resetFilter")}catch(r){}n.isFunction(s.clearToolbar)&&s.clearToolbar.call(s,!1)}catch(u){}switch(i.refreshstate){case"firstpage":n(s).trigger("reloadGrid",[{page:1}]);break;case"current":n(s).trigger("reloadGrid",[{current:!0}])}n.isFunction(i.afterRefresh)&&i.afterRefresh.call(s)}return!1}).hover(p,w),h=null),k=n(".ui-jqgrid").css("font-size")||"11px",n("body").append("<div id='testpg2' class='ui-jqgrid ui-widget ui-widget-content' style='font-size:"+k+";visibility:hidden;' ><\/div>"),y=n(c).clone().appendTo("#testpg2").width(),n("#testpg2").remove(),n(a+"_"+i.position,a).append(c),s.p._nvtd&&(y>s.p._nvtd[0]&&(n(a+"_"+i.position,a).width(y),s.p._nvtd[0]=y),s.p._nvtd[1]=y),k=null,y=null,c=null,this.nav=!0}})},navButtonAdd:function(t,i){return i=n.extend({caption:"newButton",title:"",buttonicon:"ui-icon-newwin",onClickButton:null,position:"last",cursor:"pointer"},i||{}),this.each(function(){var r,f,u;if(this.grid&&(typeof t=="string"&&t.indexOf("#")!==0&&(t="#"+n.jgrid.jqID(t)),r=n(".navtable",t)[0],f=this,r)){if(i.id&&n("#"+n.jgrid.jqID(i.id),r)[0]!==undefined)return;u=n("<td><\/td>"),i.buttonicon.toString().toUpperCase()==="NONE"?n(u).addClass("ui-pg-button ui-corner-all").append("<div class='ui-pg-div'>"+i.caption+"<\/div>"):n(u).addClass("ui-pg-button ui-corner-all").append("<div class='ui-pg-div'><span class='ui-icon "+i.buttonicon+"'><\/span>"+i.caption+"<\/div>"),i.id&&n(u).attr("id",i.id),i.position==="first"?r.rows[0].cells.length===0?n("tr",r).append(u):n("tr td:eq(0)",r).before(u):n("tr",r).append(u),n(u,r).attr("title",i.title||"").click(function(t){return n(this).hasClass("ui-state-disabled")||n.isFunction(i.onClickButton)&&i.onClickButton.call(f,t),!1}).hover(function(){n(this).hasClass("ui-state-disabled")||n(this).addClass("ui-state-hover")},function(){n(this).removeClass("ui-state-hover")})}})},navSeparatorAdd:function(t,i){return i=n.extend({sepclass:"ui-separator",sepcontent:"",position:"last"},i||{}),this.each(function(){var r,u;this.grid&&(typeof t=="string"&&t.indexOf("#")!==0&&(t="#"+n.jgrid.jqID(t)),r=n(".navtable",t)[0],r&&(u="<td class='ui-pg-button ui-state-disabled' style='width:4px;'><span class='"+i.sepclass+"'><\/span>"+i.sepcontent+"<\/td>",i.position==="first"?r.rows[0].cells.length===0?n("tr",r).append(u):n("tr td:eq(0)",r).before(u):n("tr",r).append(u)))})},GridToForm:function(t,i){return this.each(function(){var f=this,r,u;if(f.grid&&(u=n(f).jqGrid("getRowData",t),u))for(r in u)u.hasOwnProperty(r)&&(n("[name="+n.jgrid.jqID(r)+"]",i).is("input:radio")||n("[name="+n.jgrid.jqID(r)+"]",i).is("input:checkbox")?n("[name="+n.jgrid.jqID(r)+"]",i).each(function(){n(this).val()==u[r]?n(this)[f.p.useProp?"prop":"attr"]("checked",!0):n(this)[f.p.useProp?"prop":"attr"]("checked",!1)}):n("[name="+n.jgrid.jqID(r)+"]",i).val(u[r]))})},FormToGrid:function(t,i,r,u){return this.each(function(){var e=this,o,f;e.grid&&(r||(r="set"),u||(u="first"),o=n(i).serializeArray(),f={},n.each(o,function(n,t){f[t.name]=t.value}),r==="add"?n(e).jqGrid("addRowData",t,f,u):r==="set"&&n(e).jqGrid("setRowData",t,f))})}})}(jQuery),function(n){"use strict";n.jgrid.inlineEdit=n.jgrid.inlineEdit||{},n.jgrid.extend({editRow:function(t,i,r,u,f,e,o,s,h){var c={},l=n.makeArray(arguments).slice(1);return n.type(l[0])==="object"?c=l[0]:(i!==undefined&&(c.keys=i),n.isFunction(r)&&(c.oneditfunc=r),n.isFunction(u)&&(c.successfunc=u),f!==undefined&&(c.url=f),e!==undefined&&(c.extraparam=e),n.isFunction(o)&&(c.aftersavefunc=o),n.isFunction(s)&&(c.errorfunc=s),n.isFunction(h)&&(c.afterrestorefunc=h)),c=n.extend(!0,{keys:!1,oneditfunc:null,successfunc:null,url:null,extraparam:{},aftersavefunc:null,errorfunc:null,afterrestorefunc:null,restoreAfterError:!0,mtype:"POST"},n.jgrid.inlineEdit,c),this.each(function(){var i=this,f,u,h,l=0,o=null,s={},e,r;i.grid&&(e=n(i).jqGrid("getInd",t,!0),e!==!1)&&(h=n(e).attr("editable")||"0",h!=="0"||n(e).hasClass("not-editable-row")||(r=i.p.colModel,n('td[role="gridcell"]',e).each(function(e){var c,a,h;if(f=r[e].name,c=i.p.treeGrid===!0&&f===i.p.ExpandColumn,c)u=n("span:first",this).html();else try{u=n.unformat.call(i,this,{rowId:t,colModel:r[e]},e)}catch(v){u=r[e].edittype&&r[e].edittype==="textarea"?n(this).text():n(this).html()}f!=="cb"&&f!=="subgrid"&&f!=="rn"&&(i.p.autoencode&&(u=n.jgrid.htmlDecode(u)),s[f]=u,r[e].editable===!0&&(o===null&&(o=e),c?n("span:first",this).html(""):n(this).html(""),a=n.extend({},r[e].editoptions||{},{id:t+"_"+f,name:f}),r[e].edittype||(r[e].edittype="text"),(u==="&nbsp;"||u==="&#160;"||u.length===1&&u.charCodeAt(0)===160)&&(u=""),h=n.jgrid.createEl.call(i,r[e].edittype,a,u,!0,n.extend({},n.jgrid.ajaxOptions,i.p.ajaxSelectOptions||{})),n(h).addClass("editable"),c?n("span:first",this).append(h):n(this).append(h),n.jgrid.bindEv.call(i,h,a),r[e].edittype==="select"&&r[e].editoptions!==undefined&&r[e].editoptions.multiple===!0&&r[e].editoptions.dataUrl===undefined&&n.jgrid.msie&&n(h).width(n(h).width()),l++))}),l>0&&(s.id=t,i.p.savedRow.push(s),n(e).attr("editable","1"),n("td:eq("+o+") input",e).focus(),c.keys===!0&&n(e).bind("keydown",function(r){if(r.keyCode===27){if(n(i).jqGrid("restoreRow",t,c.afterrestorefunc),i.p._inlinenav)try{n(i).jqGrid("showAddEditButtons")}catch(f){}return!1}if(r.keyCode===13){var u=r.target;if(u.tagName==="TEXTAREA")return!0;if(n(i).jqGrid("saveRow",t,c)&&i.p._inlinenav)try{n(i).jqGrid("showAddEditButtons")}catch(e){}return!1}}),n(i).triggerHandler("jqGridInlineEditRow",[t,c]),n.isFunction(c.oneditfunc)&&c.oneditfunc.call(i,t))))})},saveRow:function(t,i,r,u,f,e,o){var st=n.makeArray(arguments).slice(1),c={},a,rt,ut,y,nt,tt,it,ft,et,g,ot;n.type(st[0])==="object"?c=st[0]:(n.isFunction(i)&&(c.successfunc=i),r!==undefined&&(c.url=r),u!==undefined&&(c.extraparam=u),n.isFunction(f)&&(c.aftersavefunc=f),n.isFunction(e)&&(c.errorfunc=e),n.isFunction(o)&&(c.afterrestorefunc=o)),c=n.extend(!0,{successfunc:null,url:null,extraparam:{},aftersavefunc:null,errorfunc:null,afterrestorefunc:null,restoreAfterError:!0,mtype:"POST"},n.jgrid.inlineEdit,c);var b=!1,s=this[0],l,h={},d={},p={},ht,k,w,v;if(!s.grid||(v=n(s).jqGrid("getInd",t,!0),v===!1))return b;if(ht=n(v).attr("editable"),c.url=c.url||s.p.editurl,ht==="1"){if(n('td[role="gridcell"]',v).each(function(t){var i,u,r;if(a=s.p.colModel[t],l=a.name,l!=="cb"&&l!=="subgrid"&&a.editable===!0&&l!=="rn"&&!n(this).hasClass("not-editable-cell")){switch(a.edittype){case"checkbox":i=["Yes","No"],a.editoptions&&(i=a.editoptions.value.split(":")),h[l]=n("input",this).is(":checked")?i[0]:i[1];break;case"text":case"password":case"textarea":case"button":h[l]=n("input, textarea",this).val();break;case"select":a.editoptions.multiple?(u=n("select",this),r=[],h[l]=n(u).val(),h[l]=h[l]?h[l].join(","):"",n("select option:selected",this).each(function(t,i){r[t]=n(i).text()}),d[l]=r.join(",")):(h[l]=n("select option:selected",this).val(),d[l]=n("select option:selected",this).text()),a.formatter&&a.formatter==="select"&&(d={});break;case"custom":try{if(a.editoptions&&n.isFunction(a.editoptions.custom_value)){if(h[l]=a.editoptions.custom_value.call(s,n(".customelement",this),"get"),h[l]===undefined)throw"e2";}else throw"e1";}catch(f){f==="e1"&&n.jgrid.info_dialog(n.jgrid.errors.errcap,"function 'custom_value' "+n.jgrid.edit.msg.nodefined,n.jgrid.edit.bClose),f==="e2"?n.jgrid.info_dialog(n.jgrid.errors.errcap,"function 'custom_value' "+n.jgrid.edit.msg.novalue,n.jgrid.edit.bClose):n.jgrid.info_dialog(n.jgrid.errors.errcap,f.message,n.jgrid.edit.bClose)}}if(w=n.jgrid.checkValues.call(s,h[l],t),w[0]===!1)return w[1]=h[l]+" "+w[1],!1;s.p.autoencode&&(h[l]=n.jgrid.htmlEncode(h[l])),c.url!=="clientArray"&&a.editoptions&&a.editoptions.NullIfEmpty===!0&&h[l]===""&&(p[l]="null")}}),w[0]===!1){try{rt=s.rows.namedItem(t),ut=n.jgrid.findPos(rt),n.jgrid.info_dialog(n.jgrid.errors.errcap,w[1],n.jgrid.edit.bClose,{left:ut[0],top:ut[1]+n(rt).outerHeight()})}catch(ct){alert(w[1])}return b}if(nt=s.p.prmNames,tt=t,y=s.p.keyIndex===!1?nt.id:s.p.colModel[s.p.keyIndex+(s.p.rownumbers===!0?1:0)+(s.p.multiselect===!0?1:0)+(s.p.subGrid===!0?1:0)].name,h&&(h[nt.oper]=nt.editoper,h[y]===undefined||h[y]===""?h[y]=t:v.id!==s.p.idPrefix+h[y]&&(it=n.jgrid.stripPref(s.p.idPrefix,t),s.p._index[it]!==undefined&&(s.p._index[h[y]]=s.p._index[it],delete s.p._index[it]),t=s.p.idPrefix+h[y],n(v).attr("id",t),s.p.selrow===tt&&(s.p.selrow=t),n.isArray(s.p.selarrrow)&&(ft=n.inArray(tt,s.p.selarrrow),ft>=0&&(s.p.selarrrow[ft]=t)),s.p.multiselect&&(et="jqg_"+s.p.id+"_"+t,n("input.cbox",v).attr("id",et).attr("name",et))),s.p.inlineData===undefined&&(s.p.inlineData={}),h=n.extend({},h,s.p.inlineData,c.extraparam)),c.url==="clientArray"){for(h=n.extend({},h,d),s.p.autoencode&&n.each(h,function(t,i){h[t]=n.jgrid.htmlDecode(i)}),ot=n(s).jqGrid("setRowData",t,h),n(v).attr("editable","0"),g=0;g<s.p.savedRow.length;g++)if(String(s.p.savedRow[g].id)===String(tt)){k=g;break}k>=0&&s.p.savedRow.splice(k,1),n(s).triggerHandler("jqGridInlineAfterSaveRow",[t,ot,h,c]),n.isFunction(c.aftersavefunc)&&c.aftersavefunc.call(s,t,ot,c),b=!0,n(v).removeClass("jqgrid-new-row").unbind("keydown")}else n("#lui_"+n.jgrid.jqID(s.p.id)).show(),p=n.extend({},h,p),p[y]=n.jgrid.stripPref(s.p.idPrefix,p[y]),n.ajax(n.extend({url:c.url,data:n.isFunction(s.p.serializeRowData)?s.p.serializeRowData.call(s,p):p,type:c.mtype,async:!1,complete:function(i,r){if(n("#lui_"+n.jgrid.jqID(s.p.id)).hide(),r==="success"){var e=!0,u,f;if(u=n(s).triggerHandler("jqGridInlineSuccessSaveRow",[i,t,c]),n.isArray(u)||(u=[!0,h]),u[0]&&n.isFunction(c.successfunc)&&(u=c.successfunc.call(s,i)),n.isArray(u)?(e=u[0],h=u[1]||h):e=u,e===!0){for(s.p.autoencode&&n.each(h,function(t,i){h[t]=n.jgrid.htmlDecode(i)}),h=n.extend({},h,d),n(s).jqGrid("setRowData",t,h),n(v).attr("editable","0"),f=0;f<s.p.savedRow.length;f++)if(String(s.p.savedRow[f].id)===String(t)){k=f;break}k>=0&&s.p.savedRow.splice(k,1),n(s).triggerHandler("jqGridInlineAfterSaveRow",[t,i,h,c]),n.isFunction(c.aftersavefunc)&&c.aftersavefunc.call(s,t,i),b=!0,n(v).removeClass("jqgrid-new-row").unbind("keydown")}else n(s).triggerHandler("jqGridInlineErrorSaveRow",[t,i,r,null,c]),n.isFunction(c.errorfunc)&&c.errorfunc.call(s,t,i,r,null),c.restoreAfterError===!0&&n(s).jqGrid("restoreRow",t,c.afterrestorefunc)}},error:function(i,r,u){if(n("#lui_"+n.jgrid.jqID(s.p.id)).hide(),n(s).triggerHandler("jqGridInlineErrorSaveRow",[t,i,r,u,c]),n.isFunction(c.errorfunc))c.errorfunc.call(s,t,i,r,u);else{var f=i.responseText||i.statusText;try{n.jgrid.info_dialog(n.jgrid.errors.errcap,'<div class="ui-state-error">'+f+"<\/div>",n.jgrid.edit.bClose,{buttonalign:"right"})}catch(e){alert(f)}}c.restoreAfterError===!0&&n(s).jqGrid("restoreRow",t,c.afterrestorefunc)}},n.jgrid.ajaxOptions,s.p.ajaxRowOptions||{}))}return b},restoreRow:function(t,i){var u=n.makeArray(arguments).slice(1),r={};return n.type(u[0])==="object"?r=u[0]:n.isFunction(i)&&(r.afterrestorefunc=i),r=n.extend(!0,{},n.jgrid.inlineEdit,r),this.each(function(){var i=this,u,e,o={},f;if(i.grid&&(e=n(i).jqGrid("getInd",t,!0),e!==!1)){for(f=0;f<i.p.savedRow.length;f++)if(String(i.p.savedRow[f].id)===String(t)){u=f;break}if(u>=0){if(n.isFunction(n.fn.datepicker))try{n("input.hasDatepicker","#"+n.jgrid.jqID(e.id)).datepicker("hide")}catch(s){}n.each(i.p.colModel,function(){this.editable===!0&&i.p.savedRow[u].hasOwnProperty(this.name)&&(o[this.name]=i.p.savedRow[u][this.name])}),n(i).jqGrid("setRowData",t,o),n(e).attr("editable","0").unbind("keydown"),i.p.savedRow.splice(u,1),n("#"+n.jgrid.jqID(t),"#"+n.jgrid.jqID(i.p.id)).hasClass("jqgrid-new-row")&&setTimeout(function(){n(i).jqGrid("delRowData",t),n(i).jqGrid("showAddEditButtons")},0)}n(i).triggerHandler("jqGridInlineAfterRestoreRow",[t]),n.isFunction(r.afterrestorefunc)&&r.afterrestorefunc.call(i,t)}})},addRow:function(t){return t=n.extend(!0,{rowID:null,initdata:{},position:"first",useDefValues:!0,useFormatter:!1,addRowParams:{extraparam:{}}},t||{}),this.each(function(){var i,r,u;this.grid&&(i=this,t.rowID=n.isFunction(t.rowID)?t.rowID.call(i,t):t.rowID!=null?t.rowID:n.jgrid.randId(),t.useDefValues===!0&&n(i.p.colModel).each(function(){if(this.editoptions&&this.editoptions.defaultValue){var r=this.editoptions.defaultValue,u=n.isFunction(r)?r.call(i):r;t.initdata[this.name]=u}}),n(i).jqGrid("addRowData",t.rowID,t.initdata,t.position),t.rowID=i.p.idPrefix+t.rowID,n("#"+n.jgrid.jqID(t.rowID),"#"+n.jgrid.jqID(i.p.id)).addClass("jqgrid-new-row"),t.useFormatter?n("#"+n.jgrid.jqID(t.rowID)+" .ui-inline-edit","#"+n.jgrid.jqID(i.p.id)).click():(r=i.p.prmNames,u=r.oper,t.addRowParams.extraparam[u]=r.addoper,n(i).jqGrid("editRow",t.rowID,t.addRowParams),n(i).jqGrid("setSelection",t.rowID)))})},inlineNav:function(t,i){return i=n.extend(!0,{edit:!0,editicon:"ui-icon-pencil",add:!0,addicon:"ui-icon-plus",save:!0,saveicon:"ui-icon-disk",cancel:!0,cancelicon:"ui-icon-cancel",addParams:{addRowParams:{extraparam:{}}},editParams:{},restoreAfterSelect:!0},n.jgrid.nav,i||{}),this.each(function(){var r,s,u,o,e,h,f;if(this.grid){if(r=this,u=n.jgrid.jqID(r.p.id),r.p._inlinenav=!0,i.addParams.useFormatter===!0)for(o=r.p.colModel,e=0;e<o.length;e++)if(o[e].formatter&&o[e].formatter==="actions"){o[e].formatoptions&&(h={keys:!1,onEdit:null,onSuccess:null,afterSave:null,onError:null,afterRestore:null,extraparam:{},url:null},f=n.extend(h,o[e].formatoptions),i.addParams.addRowParams={keys:f.keys,oneditfunc:f.onEdit,successfunc:f.onSuccess,url:f.url,extraparam:f.extraparam,aftersavefunc:f.afterSave,errorfunc:f.onError,afterrestorefunc:f.afterRestore});break}i.add&&n(r).jqGrid("navButtonAdd",t,{caption:i.addtext,title:i.addtitle,buttonicon:i.addicon,id:r.p.id+"_iladd",onClickButton:function(){n(r).jqGrid("addRow",i.addParams),i.addParams.useFormatter||(n("#"+u+"_ilsave").removeClass("ui-state-disabled"),n("#"+u+"_ilcancel").removeClass("ui-state-disabled"),n("#"+u+"_iladd").addClass("ui-state-disabled"),n("#"+u+"_iledit").addClass("ui-state-disabled"))}}),i.edit&&n(r).jqGrid("navButtonAdd",t,{caption:i.edittext,title:i.edittitle,buttonicon:i.editicon,id:r.p.id+"_iledit",onClickButton:function(){var t=n(r).jqGrid("getGridParam","selrow");t?(n(r).jqGrid("editRow",t,i.editParams),n("#"+u+"_ilsave").removeClass("ui-state-disabled"),n("#"+u+"_ilcancel").removeClass("ui-state-disabled"),n("#"+u+"_iladd").addClass("ui-state-disabled"),n("#"+u+"_iledit").addClass("ui-state-disabled")):(n.jgrid.viewModal("#alertmod",{gbox:"#gbox_"+u,jqm:!0}),n("#jqg_alrt").focus())}}),i.save&&(n(r).jqGrid("navButtonAdd",t,{caption:i.savetext||"",title:i.savetitle||"Save row",buttonicon:i.saveicon,id:r.p.id+"_ilsave",onClickButton:function(){var t=r.p.savedRow[0].id;if(t){var f=r.p.prmNames,o=f.oper,e={};n("#"+n.jgrid.jqID(t),"#"+u).hasClass("jqgrid-new-row")?(i.addParams.addRowParams.extraparam[o]=f.addoper,e=i.addParams.addRowParams):(i.editParams.extraparam||(i.editParams.extraparam={}),i.editParams.extraparam[o]=f.editoper,e=i.editParams),n(r).jqGrid("saveRow",t,e)&&n(r).jqGrid("showAddEditButtons")}else n.jgrid.viewModal("#alertmod",{gbox:"#gbox_"+u,jqm:!0}),n("#jqg_alrt").focus()}}),n("#"+u+"_ilsave").addClass("ui-state-disabled")),i.cancel&&(n(r).jqGrid("navButtonAdd",t,{caption:i.canceltext||"",title:i.canceltitle||"Cancel row editing",buttonicon:i.cancelicon,id:r.p.id+"_ilcancel",onClickButton:function(){var t=r.p.savedRow[0].id,f={};t?(f=n("#"+n.jgrid.jqID(t),"#"+u).hasClass("jqgrid-new-row")?i.addParams.addRowParams:i.editParams,n(r).jqGrid("restoreRow",t,f),n(r).jqGrid("showAddEditButtons")):(n.jgrid.viewModal("#alertmod",{gbox:"#gbox_"+u,jqm:!0}),n("#jqg_alrt").focus())}}),n("#"+u+"_ilcancel").addClass("ui-state-disabled")),i.restoreAfterSelect===!0&&(s=n.isFunction(r.p.beforeSelectRow)?r.p.beforeSelectRow:!1,r.p.beforeSelectRow=function(t,u){var f=!0;return r.p.savedRow.length>0&&r.p._inlinenav===!0&&t!==r.p.selrow&&r.p.selrow!==null&&(r.p.selrow===i.addParams.rowID?n(r).jqGrid("delRowData",r.p.selrow):n(r).jqGrid("restoreRow",r.p.selrow,i.editParams),n(r).jqGrid("showAddEditButtons")),s&&(f=s.call(r,t,u)),f})}})},showAddEditButtons:function(){return this.each(function(){if(this.grid){var t=n.jgrid.jqID(this.p.id);n("#"+t+"_ilsave").addClass("ui-state-disabled"),n("#"+t+"_ilcancel").addClass("ui-state-disabled"),n("#"+t+"_iladd").removeClass("ui-state-disabled"),n("#"+t+"_iledit").removeClass("ui-state-disabled")}})}})}(jQuery),function(n){"use strict";n.jgrid.extend({editCell:function(t,i,r){return this.each(function(){var u=this,e,f,o,s,c,l,h;if(u.grid&&u.p.cellEdit===!0){if(i=parseInt(i,10),u.p.selrow=u.rows[t].id,u.p.knv||n(u).jqGrid("GridNav"),u.p.savedRow.length>0){if(r===!0&&t==u.p.iRow&&i==u.p.iCol)return;n(u).jqGrid("saveCell",u.p.savedRow[0].id,u.p.savedRow[0].ic)}else window.setTimeout(function(){n("#"+n.jgrid.jqID(u.p.knv)).attr("tabindex","-1").focus()},0);if(s=u.p.colModel[i],e=s.name,e!=="subgrid"&&e!=="cb"&&e!=="rn"){if(o=n("td:eq("+i+")",u.rows[t]),s.editable!==!0||r!==!0||o.hasClass("not-editable-cell"))parseInt(u.p.iCol,10)>=0&&parseInt(u.p.iRow,10)>=0&&(n("td:eq("+u.p.iCol+")",u.rows[u.p.iRow]).removeClass("edit-cell ui-state-highlight"),n(u.rows[u.p.iRow]).removeClass("selected-row ui-state-hover")),o.addClass("edit-cell ui-state-highlight"),n(u.rows[t]).addClass("selected-row ui-state-hover"),f=o.html().replace(/\&#160\;/ig,""),n(u).triggerHandler("jqGridSelectCell",[u.rows[t].id,e,f,t,i]),n.isFunction(u.p.onSelectCell)&&u.p.onSelectCell.call(u,u.rows[t].id,e,f,t,i);else{parseInt(u.p.iCol,10)>=0&&parseInt(u.p.iRow,10)>=0&&(n("td:eq("+u.p.iCol+")",u.rows[u.p.iRow]).removeClass("edit-cell ui-state-highlight"),n(u.rows[u.p.iRow]).removeClass("selected-row ui-state-hover")),n(o).addClass("edit-cell ui-state-highlight"),n(u.rows[t]).addClass("selected-row ui-state-hover");try{f=n.unformat.call(u,o,{rowId:u.rows[t].id,colModel:s},i)}catch(a){f=s.edittype&&s.edittype==="textarea"?n(o).text():n(o).html()}u.p.autoencode&&(f=n.jgrid.htmlDecode(f)),s.edittype||(s.edittype="text"),u.p.savedRow.push({id:t,ic:i,name:e,v:f}),(f==="&nbsp;"||f==="&#160;"||f.length===1&&f.charCodeAt(0)===160)&&(f=""),n.isFunction(u.p.formatCell)&&(c=u.p.formatCell.call(u,u.rows[t].id,e,f,t,i),c!==undefined&&(f=c)),l=n.extend({},s.editoptions||{},{id:t+"_"+e,name:e}),h=n.jgrid.createEl.call(u,s.edittype,l,f,!0,n.extend({},n.jgrid.ajaxOptions,u.p.ajaxSelectOptions||{})),n(u).triggerHandler("jqGridBeforeEditCell",[u.rows[t].id,e,f,t,i]),n.isFunction(u.p.beforeEditCell)&&u.p.beforeEditCell.call(u,u.rows[t].id,e,f,t,i),n(o).html("").append(h).attr("tabindex","0"),n.jgrid.bindEv.call(u,h,l),window.setTimeout(function(){n(h).focus()},0),n("input, select, textarea",o).bind("keydown",function(r){if(r.keyCode===27&&(n("input.hasDatepicker",o).length>0?n(".ui-datepicker").is(":hidden")?n(u).jqGrid("restoreCell",t,i):n("input.hasDatepicker",o).datepicker("hide"):n(u).jqGrid("restoreCell",t,i)),r.keyCode===13)return n(u).jqGrid("saveCell",t,i),!1;if(r.keyCode===9){if(u.grid.hDiv.loading)return!1;r.shiftKey?n(u).jqGrid("prevCell",t,i):n(u).jqGrid("nextCell",t,i)}r.stopPropagation()}),n(u).triggerHandler("jqGridAfterEditCell",[u.rows[t].id,e,f,t,i]),n.isFunction(u.p.afterEditCell)&&u.p.afterEditCell.call(u,u.rows[t].id,e,f,t,i)}u.p.iCol=i,u.p.iRow=t}}})},saveCell:function(t,i){return this.each(function(){var r=this,a,b,k,v,y,p,d,l,o,g,nt,w;if(r.grid&&r.p.cellEdit===!0){if(a=r.p.savedRow.length>=1?0:null,a!==null){var h=n("td:eq("+i+")",r.rows[t]),u,e,s=r.p.colModel[i],f=s.name,c=n.jgrid.jqID(f);switch(s.edittype){case"select":s.editoptions.multiple?(b=n("#"+t+"_"+c,r.rows[t]),k=[],u=n(b).val(),u?u.join(","):u="",n("option:selected",b).each(function(t,i){k[t]=n(i).text()}),e=k.join(",")):(u=n("#"+t+"_"+c+" option:selected",r.rows[t]).val(),e=n("#"+t+"_"+c+" option:selected",r.rows[t]).text()),s.formatter&&(e=u);break;case"checkbox":v=["Yes","No"],s.editoptions&&(v=s.editoptions.value.split(":")),u=n("#"+t+"_"+c,r.rows[t]).is(":checked")?v[0]:v[1],e=u;break;case"password":case"text":case"textarea":case"button":u=n("#"+t+"_"+c,r.rows[t]).val(),e=u;break;case"custom":try{if(s.editoptions&&n.isFunction(s.editoptions.custom_value))if(u=s.editoptions.custom_value.call(r,n(".customelement",h),"get"),u===undefined)throw"e2";else e=u;else throw"e1";}catch(tt){tt==="e1"&&n.jgrid.info_dialog(n.jgrid.errors.errcap,"function 'custom_value' "+n.jgrid.edit.msg.nodefined,n.jgrid.edit.bClose),tt==="e2"?n.jgrid.info_dialog(n.jgrid.errors.errcap,"function 'custom_value' "+n.jgrid.edit.msg.novalue,n.jgrid.edit.bClose):n.jgrid.info_dialog(n.jgrid.errors.errcap,tt.message,n.jgrid.edit.bClose)}}if(e!==r.p.savedRow[a].v)if(y=n(r).triggerHandler("jqGridBeforeSaveCell",[r.rows[t].id,f,u,t,i]),y&&(u=y,e=y),n.isFunction(r.p.beforeSaveCell)&&(p=r.p.beforeSaveCell.call(r,r.rows[t].id,f,u,t,i),p&&(u=p,e=p)),d=n.jgrid.checkValues.call(r,u,i),d[0]===!0){if(l=n(r).triggerHandler("jqGridBeforeSubmitCell",[r.rows[t].id,f,u,t,i])||{},n.isFunction(r.p.beforeSubmitCell)&&(l=r.p.beforeSubmitCell.call(r,r.rows[t].id,f,u,t,i),l||(l={})),n("input.hasDatepicker",h).length>0&&n("input.hasDatepicker",h).datepicker("hide"),r.p.cellsubmit==="remote")if(r.p.cellurl)o={},r.p.autoencode&&(u=n.jgrid.htmlEncode(u)),o[f]=u,w=r.p.prmNames,g=w.id,nt=w.oper,o[g]=n.jgrid.stripPref(r.p.idPrefix,r.rows[t].id),o[nt]=w.editoper,o=n.extend(l,o),n("#lui_"+n.jgrid.jqID(r.p.id)).show(),r.grid.hDiv.loading=!0,n.ajax(n.extend({url:r.p.cellurl,data:n.isFunction(r.p.serializeCellData)?r.p.serializeCellData.call(r,o):o,type:"POST",complete:function(s,c){if(n("#lui_"+r.p.id).hide(),r.grid.hDiv.loading=!1,c==="success"){var l=n(r).triggerHandler("jqGridAfterSubmitCell",[r,s,o.id,f,u,t,i])||[!0,""];l[0]===!0&&n.isFunction(r.p.afterSubmitCell)&&(l=r.p.afterSubmitCell.call(r,s,o.id,f,u,t,i)),l[0]===!0?(n(h).empty(),n(r).jqGrid("setCell",r.rows[t].id,i,e,!1,!1,!0),n(h).addClass("dirty-cell"),n(r.rows[t]).addClass("edited"),n(r).triggerHandler("jqGridAfterSaveCell",[r.rows[t].id,f,u,t,i]),n.isFunction(r.p.afterSaveCell)&&r.p.afterSaveCell.call(r,r.rows[t].id,f,u,t,i),r.p.savedRow.splice(0,1)):(n.jgrid.info_dialog(n.jgrid.errors.errcap,l[1],n.jgrid.edit.bClose),n(r).jqGrid("restoreCell",t,i))}},error:function(u,f,e){n("#lui_"+n.jgrid.jqID(r.p.id)).hide(),r.grid.hDiv.loading=!1,n(r).triggerHandler("jqGridErrorCell",[u,f,e]),n.isFunction(r.p.errorCell)?(r.p.errorCell.call(r,u,f,e),n(r).jqGrid("restoreCell",t,i)):(n.jgrid.info_dialog(n.jgrid.errors.errcap,u.status+" : "+u.statusText+"<br/>"+f,n.jgrid.edit.bClose),n(r).jqGrid("restoreCell",t,i))}},n.jgrid.ajaxOptions,r.p.ajaxCellOptions||{}));else try{n.jgrid.info_dialog(n.jgrid.errors.errcap,n.jgrid.errors.nourl,n.jgrid.edit.bClose),n(r).jqGrid("restoreCell",t,i)}catch(tt){}r.p.cellsubmit==="clientArray"&&(n(h).empty(),n(r).jqGrid("setCell",r.rows[t].id,i,e,!1,!1,!0),n(h).addClass("dirty-cell"),n(r.rows[t]).addClass("edited"),n(r).triggerHandler("jqGridAfterSaveCell",[r.rows[t].id,f,u,t,i]),n.isFunction(r.p.afterSaveCell)&&r.p.afterSaveCell.call(r,r.rows[t].id,f,u,t,i),r.p.savedRow.splice(0,1))}else try{window.setTimeout(function(){n.jgrid.info_dialog(n.jgrid.errors.errcap,u+" "+d[1],n.jgrid.edit.bClose)},100),n(r).jqGrid("restoreCell",t,i)}catch(tt){}else n(r).jqGrid("restoreCell",t,i)}window.setTimeout(function(){n("#"+n.jgrid.jqID(r.p.knv)).attr("tabindex","-1").focus()},0)}})},restoreCell:function(t,i){return this.each(function(){var r=this,u,f;if(r.grid&&r.p.cellEdit===!0){if(u=r.p.savedRow.length>=1?0:null,u!==null){if(f=n("td:eq("+i+")",r.rows[t]),n.isFunction(n.fn.datepicker))try{n("input.hasDatepicker",f).datepicker("hide")}catch(e){}n(f).empty().attr("tabindex","-1"),n(r).jqGrid("setCell",r.rows[t].id,i,r.p.savedRow[u].v,!1,!1,!0),n(r).triggerHandler("jqGridAfterRestoreCell",[r.rows[t].id,r.p.savedRow[u].v,t,i]),n.isFunction(r.p.afterRestoreCell)&&r.p.afterRestoreCell.call(r,r.rows[t].id,r.p.savedRow[u].v,t,i),r.p.savedRow.splice(0,1)}window.setTimeout(function(){n("#"+r.p.knv).attr("tabindex","-1").focus()},0)}})},nextCell:function(t,i){return this.each(function(){var r=this,f=!1,u;if(r.grid&&r.p.cellEdit===!0){for(u=i+1;u<r.p.colModel.length;u++)if(r.p.colModel[u].editable===!0){f=u;break}f!==!1?n(r).jqGrid("editCell",t,f,!0):r.p.savedRow.length>0&&n(r).jqGrid("saveCell",t,i)}})},prevCell:function(t,i){return this.each(function(){var r=this,f=!1,u;if(r.grid&&r.p.cellEdit===!0){for(u=i-1;u>=0;u--)if(r.p.colModel[u].editable===!0){f=u;break}f!==!1?n(r).jqGrid("editCell",t,f,!0):r.p.savedRow.length>0&&n(r).jqGrid("saveCell",t,i)}})},GridNav:function(){return this.each(function(){function u(i,r,u){if(u.substr(0,1)==="v"){var e=n(t.grid.bDiv)[0].clientHeight,o=n(t.grid.bDiv)[0].scrollTop,s=t.rows[i].offsetTop+t.rows[i].clientHeight,h=t.rows[i].offsetTop;u==="vd"&&s>=e&&(n(t.grid.bDiv)[0].scrollTop=n(t.grid.bDiv)[0].scrollTop+t.rows[i].clientHeight),u==="vu"&&h<o&&(n(t.grid.bDiv)[0].scrollTop=n(t.grid.bDiv)[0].scrollTop-t.rows[i].clientHeight)}if(u==="h"){var c=n(t.grid.bDiv)[0].clientWidth,f=n(t.grid.bDiv)[0].scrollLeft,l=t.rows[i].cells[r].offsetLeft+t.rows[i].cells[r].clientWidth,a=t.rows[i].cells[r].offsetLeft;l>=c+parseInt(f,10)?n(t.grid.bDiv)[0].scrollLeft=n(t.grid.bDiv)[0].scrollLeft+t.rows[i].cells[r].clientWidth:a<f&&(n(t.grid.bDiv)[0].scrollLeft=n(t.grid.bDiv)[0].scrollLeft-t.rows[i].cells[r].clientWidth)}}function e(n,i){var u,r;if(i==="lft")for(u=n+1,r=n;r>=0;r--)if(t.p.colModel[r].hidden!==!0){u=r;break}if(i==="rgt")for(u=n-1,r=n;r<t.p.colModel.length;r++)if(t.p.colModel[r].hidden!==!0){u=r;break}return u}var t=this,f,i,r;t.grid&&t.p.cellEdit===!0&&(t.p.knv=t.p.id+"_kn",f=n("<div style='position:fixed;top:0px;width:1px;height:1px;' tabindex='0'><div tabindex='-1' style='width:1px;height:1px;' id='"+t.p.knv+"'><\/div><\/div>"),n(f).insertBefore(t.grid.cDiv),n("#"+t.p.knv).focus().keydown(function(f){r=f.keyCode,t.p.direction==="rtl"&&(r===37?r=39:r===39&&(r=37));switch(r){case 38:t.p.iRow-1>0&&(u(t.p.iRow-1,t.p.iCol,"vu"),n(t).jqGrid("editCell",t.p.iRow-1,t.p.iCol,!1));break;case 40:t.p.iRow+1<=t.rows.length-1&&(u(t.p.iRow+1,t.p.iCol,"vd"),n(t).jqGrid("editCell",t.p.iRow+1,t.p.iCol,!1));break;case 37:t.p.iCol-1>=0&&(i=e(t.p.iCol-1,"lft"),u(t.p.iRow,i,"h"),n(t).jqGrid("editCell",t.p.iRow,i,!1));break;case 39:t.p.iCol+1<=t.p.colModel.length-1&&(i=e(t.p.iCol+1,"rgt"),u(t.p.iRow,i,"h"),n(t).jqGrid("editCell",t.p.iRow,i,!1));break;case 13:parseInt(t.p.iCol,10)>=0&&parseInt(t.p.iRow,10)>=0&&n(t).jqGrid("editCell",t.p.iRow,t.p.iCol,!0);break;default:return!0}return!1}))})},getChangedCells:function(t){var i=[];return t||(t="all"),this.each(function(){var r=this,u;r.grid&&r.p.cellEdit===!0&&n(r.rows).each(function(f){var e={};n(this).hasClass("edited")&&(n("td",this).each(function(i){if(u=r.p.colModel[i].name,u!=="cb"&&u!=="subgrid")if(t==="dirty"){if(n(this).hasClass("dirty-cell"))try{e[u]=n.unformat.call(r,this,{rowId:r.rows[f].id,colModel:r.p.colModel[i]},i)}catch(o){e[u]=n.jgrid.htmlDecode(n(this).html())}}else try{e[u]=n.unformat.call(r,this,{rowId:r.rows[f].id,colModel:r.p.colModel[i]},i)}catch(o){e[u]=n.jgrid.htmlDecode(n(this).html())}}),e.id=this.id,i.push(e))})}),i}})}(jQuery),function(n){"use strict";n.jgrid.extend({setSubGrid:function(){return this.each(function(){var t=this,i,r,u={plusicon:"ui-icon-plus",minusicon:"ui-icon-minus",openicon:"ui-icon-carat-1-sw",expandOnLoad:!1,delayOnLoad:50,selectOnExpand:!1,reloadOnExpand:!0};if(t.p.subGridOptions=n.extend(u,t.p.subGridOptions||{}),t.p.colNames.unshift(""),t.p.colModel.unshift({name:"subgrid",width:n.jgrid.cell_width?t.p.subGridWidth+t.p.cellLayout:t.p.subGridWidth,sortable:!1,resizable:!1,hidedlg:!0,search:!1,fixed:!0}),i=t.p.subGridModel,i[0])for(i[0].align=n.extend([],i[0].align||[]),r=0;r<i[0].name.length;r++)i[0].align[r]=i[0].align[r]||"left"})},addSubGridCell:function(n,t){var i="",r,u;return this.each(function(){i=this.formatCol(n,t),u=this.p.id,r=this.p.subGridOptions.plusicon}),'<td role="gridcell" aria-describedby="'+u+'_subgrid" class="ui-sgcollapsed sgcollapsed" '+i+"><a href='javascript:void(0);'><span class='ui-icon "+r+"'><\/span><\/a><\/td>"},addSubGrid:function(t,i){return this.each(function(){var r=this,c,s;if(r.grid){var h=function(t,i,u){var f=n("<td align='"+r.p.subGridModel[0].align[u]+"'><\/td>").html(i);n(t).append(f)},l=function(t,i){for(var o,e,s=n("<table cellspacing='0' cellpadding='0' border='0'><tbody><\/tbody><\/table>"),f=n("<tr><\/tr>"),c,u=0;u<r.p.subGridModel[0].name.length;u++)o=n("<th class='ui-state-default ui-th-subgrid ui-th-column ui-th-"+r.p.direction+"'><\/th>"),n(o).html(r.p.subGridModel[0].name[u]),n(o).width(r.p.subGridModel[0].width[u]),n(f).append(o);return n(s).append(f),t&&(e=r.p.xmlReader.subgrid,n(e.root+" "+e.row,t).each(function(){if(f=n("<tr class='ui-widget-content ui-subtblcell'><\/tr>"),e.repeatitems===!0)n(e.cell,this).each(function(t){h(f,n(this).text()||"&#160;",t)});else{var t=r.p.subGridModel[0].mapping||r.p.subGridModel[0].name;if(t)for(u=0;u<t.length;u++)h(f,n(t[u],this).text()||"&#160;",u)}n(s).append(f)})),c=n("table:first",r.grid.bDiv).attr("id")+"_",n("#"+n.jgrid.jqID(c+i)).append(s),r.grid.hDiv.loading=!1,n("#load_"+n.jgrid.jqID(r.p.id)).hide(),!1},a=function(t,i){for(var c,l,e,s,u,v=n("<table cellspacing='0' cellpadding='0' border='0'><tbody><\/tbody><\/table>"),o=n("<tr><\/tr>"),a,y,f=0;f<r.p.subGridModel[0].name.length;f++)c=n("<th class='ui-state-default ui-th-subgrid ui-th-column ui-th-"+r.p.direction+"'><\/th>"),n(c).html(r.p.subGridModel[0].name[f]),n(c).width(r.p.subGridModel[0].width[f]),n(o).append(c);if(n(v).append(o),t&&(s=r.p.jsonReader.subgrid,l=n.jgrid.getAccessor(t,s.root),l!==undefined))for(f=0;f<l.length;f++){if(e=l[f],o=n("<tr class='ui-widget-content ui-subtblcell'><\/tr>"),s.repeatitems===!0)for(s.cell&&(e=e[s.cell]),u=0;u<e.length;u++)h(o,e[u]||"&#160;",u);else if(a=r.p.subGridModel[0].mapping||r.p.subGridModel[0].name,a.length)for(u=0;u<a.length;u++)h(o,e[a[u]]||"&#160;",u);n(v).append(o)}return y=n("table:first",r.grid.bDiv).attr("id")+"_",n("#"+n.jgrid.jqID(y+i)).append(v),r.grid.hDiv.loading=!1,n("#load_"+n.jgrid.jqID(r.p.id)).hide(),!1},p=function(t){var f,i,u,e;if(f=n(t).attr("id"),i={nd_:+new Date},i[r.p.prmNames.subgridid]=f,!r.p.subGridModel[0])return!1;if(r.p.subGridModel[0].params)for(e=0;e<r.p.subGridModel[0].params.length;e++)for(u=0;u<r.p.colModel.length;u++)r.p.colModel[u].name===r.p.subGridModel[0].params[e]&&(i[r.p.colModel[u].name]=n("td:eq("+u+")",t).text().replace(/\&#160\;/ig,""));if(!r.grid.hDiv.loading){r.grid.hDiv.loading=!0,n("#load_"+n.jgrid.jqID(r.p.id)).show(),r.p.subgridtype||(r.p.subgridtype=r.p.datatype),n.isFunction(r.p.subgridtype)?r.p.subgridtype.call(r,i):r.p.subgridtype=r.p.subgridtype.toLowerCase();switch(r.p.subgridtype){case"xml":case"json":n.ajax(n.extend({type:r.p.mtype,url:r.p.subGridUrl,dataType:r.p.subgridtype,data:n.isFunction(r.p.serializeSubGridData)?r.p.serializeSubGridData.call(r,i):i,complete:function(t){r.p.subgridtype==="xml"?l(t.responseXML,f):a(n.jgrid.parse(t.responseText),f),t=null}},n.jgrid.ajaxOptions,r.p.ajaxSubgridOptions||{}))}}return!1},u,e,v,y=0,f,o;for(n.each(r.p.colModel,function(){(this.hidden===!0||this.name==="rn"||this.name==="cb")&&y++}),c=r.rows.length,s=1,i!==undefined&&i>0&&(s=i,c=i+1);s<c;)n(r.rows[s]).hasClass("jqgrow")&&n(r.rows[s].cells[t]).bind("click",function(){var i=n(this).parent("tr")[0];if(o=i.nextSibling,n(this).hasClass("sgcollapsed")){if(e=r.p.id,u=i.id,r.p.subGridOptions.reloadOnExpand!==!0&&(r.p.subGridOptions.reloadOnExpand!==!1||n(o).hasClass("ui-subgrid")))n(o).show();else{if(v=t>=1?"<td colspan='"+t+"'>&#160;<\/td>":"",f=n(r).triggerHandler("jqGridSubGridBeforeExpand",[e+"_"+u,u]),f=f===!1||f==="stop"?!1:!0,f&&n.isFunction(r.p.subGridBeforeExpand)&&(f=r.p.subGridBeforeExpand.call(r,e+"_"+u,u)),f===!1)return!1;n(i).after("<tr role='row' class='ui-subgrid'>"+v+"<td class='ui-widget-content subgrid-cell'><span class='ui-icon "+r.p.subGridOptions.openicon+"'><\/span><\/td><td colspan='"+parseInt(r.p.colNames.length-1-y,10)+"' class='ui-widget-content subgrid-data'><div id="+e+"_"+u+" class='tablediv'><\/div><\/td><\/tr>"),n(r).triggerHandler("jqGridSubGridRowExpanded",[e+"_"+u,u]),n.isFunction(r.p.subGridRowExpanded)?r.p.subGridRowExpanded.call(r,e+"_"+u,u):p(i)}n(this).html("<a href='javascript:void(0);'><span class='ui-icon "+r.p.subGridOptions.minusicon+"'><\/span><\/a>").removeClass("sgcollapsed").addClass("sgexpanded"),r.p.subGridOptions.selectOnExpand&&n(r).jqGrid("setSelection",u)}else if(n(this).hasClass("sgexpanded")){if(f=n(r).triggerHandler("jqGridSubGridRowColapsed",[e+"_"+u,u]),f=f===!1||f==="stop"?!1:!0,f&&n.isFunction(r.p.subGridRowColapsed)&&(u=i.id,f=r.p.subGridRowColapsed.call(r,e+"_"+u,u)),f===!1)return!1;r.p.subGridOptions.reloadOnExpand===!0?n(o).remove(".ui-subgrid"):n(o).hasClass("ui-subgrid")&&n(o).hide(),n(this).html("<a href='javascript:void(0);'><span class='ui-icon "+r.p.subGridOptions.plusicon+"'><\/span><\/a>").removeClass("sgexpanded").addClass("sgcollapsed")}return!1}),s++;r.p.subGridOptions.expandOnLoad===!0&&n(r.rows).filter(".jqgrow").each(function(t,i){n(i.cells[0]).click()}),r.subGridXml=function(n,t){l(n,t)},r.subGridJson=function(n,t){a(n,t)}}})},expandSubGridRow:function(t){return this.each(function(){var u=this,i,r;(u.grid||t)&&u.p.subGrid===!0&&(i=n(this).jqGrid("getInd",t,!0),i&&(r=n("td.sgcollapsed",i)[0],r&&n(r).trigger("click")))})},collapseSubGridRow:function(t){return this.each(function(){var u=this,i,r;(u.grid||t)&&u.p.subGrid===!0&&(i=n(this).jqGrid("getInd",t,!0),i&&(r=n("td.sgexpanded",i)[0],r&&n(r).trigger("click")))})},toggleSubGridRow:function(t){return this.each(function(){var u=this,r,i;(u.grid||t)&&u.p.subGrid===!0&&(r=n(this).jqGrid("getInd",t,!0),r&&(i=n("td.sgcollapsed",r)[0],i?n(i).trigger("click"):(i=n("td.sgexpanded",r)[0],i&&n(i).trigger("click"))))})}})}(jQuery),function(n){"use strict";n.jgrid.extend({setTreeNode:function(t,i){return this.each(function(){var r=this,k,d,g,c;if(r.grid&&r.p.treeGrid)for(var l=r.p.expColInd,e=r.p.treeReader.expanded_field,f=r.p.treeReader.leaf_field,nt=r.p.treeReader.level_field,a=r.p.treeReader.icon_field,o=r.p.treeReader.loaded,w,b,h,v,y,s,u,p;t<i;)k=n.jgrid.stripPref(r.p.idPrefix,r.rows[t].id),d=r.p._index[k],u=r.p.data[d],r.p.treeGridModel==="nested"&&(u[f]||(w=parseInt(u[r.p.treeReader.left_field],10),b=parseInt(u[r.p.treeReader.right_field],10),u[f]=b===w+1?"true":"false",r.rows[t].cells[r.p._treeleafpos].innerHTML=u[f])),h=parseInt(u[nt],10),r.p.tree_root_level===0?(v=h+1,y=h):(v=h,y=h-1),s="<div class='tree-wrap tree-wrap-"+r.p.direction+"' style='width:"+v*18+"px;'>",s+="<div style='"+(r.p.direction==="rtl"?"right:":"left:")+y*18+"px;' class='ui-icon ",u[o]!==undefined&&(u[o]=u[o]==="true"||u[o]===!0?!0:!1),u[f]==="true"||u[f]===!0?(s+=(u[a]!==undefined&&u[a]!==""?u[a]:r.p.treeIcons.leaf)+" tree-leaf treeclick",u[f]=!0,p="leaf"):(u[f]=!1,p=""),u[e]=(u[e]==="true"||u[e]===!0?!0:!1)&&(u[o]||u[o]===undefined),s+=u[e]===!1?u[f]===!0?"'":r.p.treeIcons.plus+" tree-plus treeclick'":u[f]===!0?"'":r.p.treeIcons.minus+" tree-minus treeclick'",s+="><\/div><\/div>",n(r.rows[t].cells[l]).wrapInner("<span class='cell-wrapper"+p+"'><\/span>").prepend(s),h!==parseInt(r.p.tree_root_level,10)&&(c=n(r).jqGrid("getNodeParent",u),g=c&&c.hasOwnProperty(e)?c[e]:!0,g||n(r.rows[t]).css("display","none")),n(r.rows[t].cells[l]).find("div.treeclick").bind("click",function(t){var u=t.target||t.srcElement,o=n.jgrid.stripPref(r.p.idPrefix,n(u,r.rows).closest("tr.jqgrow")[0].id),i=r.p._index[o];return r.p.data[i][f]||(r.p.data[i][e]?(n(r).jqGrid("collapseRow",r.p.data[i]),n(r).jqGrid("collapseNode",r.p.data[i])):(n(r).jqGrid("expandRow",r.p.data[i]),n(r).jqGrid("expandNode",r.p.data[i]))),!1}),r.p.ExpandColClick===!0&&n(r.rows[t].cells[l]).find("span.cell-wrapper").css("cursor","pointer").bind("click",function(t){var o=t.target||t.srcElement,u=n.jgrid.stripPref(r.p.idPrefix,n(o,r.rows).closest("tr.jqgrow")[0].id),i=r.p._index[u];return r.p.data[i][f]||(r.p.data[i][e]?(n(r).jqGrid("collapseRow",r.p.data[i]),n(r).jqGrid("collapseNode",r.p.data[i])):(n(r).jqGrid("expandRow",r.p.data[i]),n(r).jqGrid("expandNode",r.p.data[i]))),n(r).jqGrid("setSelection",u),!1}),t++})},setTreeGrid:function(){return this.each(function(){var t=this,i=0,e,o=!1,r,u,f,s=[];if(t.p.treeGrid){t.p.treedatatype||n.extend(t.p,{treedatatype:t.p.datatype}),t.p.subGrid=!1,t.p.altRows=!1,t.p.pgbuttons=!1,t.p.pginput=!1,t.p.gridview=!0,t.p.rowTotal===null&&(t.p.rowNum=1e4),t.p.multiselect=!1,t.p.rowList=[],t.p.expColInd=0,e="ui-icon-triangle-1-"+(t.p.direction==="rtl"?"w":"e"),t.p.treeIcons=n.extend({plus:e,minus:"ui-icon-triangle-1-s",leaf:"ui-icon-radio-off"},t.p.treeIcons||{}),t.p.treeGridModel==="nested"?t.p.treeReader=n.extend({level_field:"level",left_field:"lft",right_field:"rgt",leaf_field:"isLeaf",expanded_field:"expanded",loaded:"loaded",icon_field:"icon"},t.p.treeReader):t.p.treeGridModel==="adjacency"&&(t.p.treeReader=n.extend({level_field:"level",parent_id_field:"parent",leaf_field:"isLeaf",expanded_field:"expanded",loaded:"loaded",icon_field:"icon"},t.p.treeReader));for(u in t.p.colModel)if(t.p.colModel.hasOwnProperty(u)){r=t.p.colModel[u].name,r!==t.p.ExpandColumn||o||(o=!0,t.p.expColInd=i),i++;for(f in t.p.treeReader)t.p.treeReader.hasOwnProperty(f)&&t.p.treeReader[f]===r&&s.push(r)}n.each(t.p.treeReader,function(r,u){u&&n.inArray(u,s)===-1&&(r==="leaf_field"&&(t.p._treeleafpos=i),i++,t.p.colNames.push(u),t.p.colModel.push({name:u,width:1,hidden:!0,sortable:!1,resizable:!1,hidedlg:!0,editable:!0,search:!1}))})}})},expandRow:function(t){this.each(function(){var i=this;if(i.grid&&i.p.treeGrid){var r=n(i).jqGrid("getNodeChildren",t),u=i.p.treeReader.expanded_field,f=i.rows;n(r).each(function(){var t=i.p.idPrefix+n.jgrid.getAccessor(this,i.p.localReader.id);n(f.namedItem(t)).css("display",""),this[u]&&n(i).jqGrid("expandRow",this)})}})},collapseRow:function(t){this.each(function(){var i=this;if(i.grid&&i.p.treeGrid){var r=n(i).jqGrid("getNodeChildren",t),u=i.p.treeReader.expanded_field,f=i.rows;n(r).each(function(){var t=i.p.idPrefix+n.jgrid.getAccessor(this,i.p.localReader.id);n(f.namedItem(t)).css("display","none"),this[u]&&n(i).jqGrid("collapseRow",this)})}})},getRootNodes:function(){var t=[];return this.each(function(){var i=this,u,r;if(i.grid&&i.p.treeGrid)switch(i.p.treeGridModel){case"nested":u=i.p.treeReader.level_field,n(i.p.data).each(function(){parseInt(this[u],10)===parseInt(i.p.tree_root_level,10)&&t.push(this)});break;case"adjacency":r=i.p.treeReader.parent_id_field,n(i.p.data).each(function(){(this[r]===null||String(this[r]).toLowerCase()==="null")&&t.push(this)})}}),t},getNodeDepth:function(t){var i=null;return this.each(function(){var r,u;if(this.grid&&this.p.treeGrid){r=this;switch(r.p.treeGridModel){case"nested":u=r.p.treeReader.level_field,i=parseInt(t[u],10)-parseInt(r.p.tree_root_level,10);break;case"adjacency":i=n(r).jqGrid("getNodeAncestors",t).length}}}),i},getNodeParent:function(t){var i=null;return this.each(function(){var r=this,o,s;if(r.grid&&r.p.treeGrid)switch(r.p.treeGridModel){case"nested":var u=r.p.treeReader.left_field,f=r.p.treeReader.right_field,e=r.p.treeReader.level_field,h=parseInt(t[u],10),c=parseInt(t[f],10),l=parseInt(t[e],10);n(this.p.data).each(function(){if(parseInt(this[e],10)===l-1&&parseInt(this[u],10)<h&&parseInt(this[f],10)>c)return i=this,!1});break;case"adjacency":o=r.p.treeReader.parent_id_field,s=r.p.localReader.id,n(this.p.data).each(function(){if(this[s]===n.jgrid.stripPref(r.p.idPrefix,t[o]))return i=this,!1})}}),i},getNodeChildren:function(t){var i=[];return this.each(function(){var r=this,o,s;if(r.grid&&r.p.treeGrid)switch(r.p.treeGridModel){case"nested":var u=r.p.treeReader.left_field,f=r.p.treeReader.right_field,e=r.p.treeReader.level_field,h=parseInt(t[u],10),c=parseInt(t[f],10),l=parseInt(t[e],10);n(this.p.data).each(function(){parseInt(this[e],10)===l+1&&parseInt(this[u],10)>h&&parseInt(this[f],10)<c&&i.push(this)});break;case"adjacency":o=r.p.treeReader.parent_id_field,s=r.p.localReader.id,n(this.p.data).each(function(){this[o]==n.jgrid.stripPref(r.p.idPrefix,t[s])&&i.push(this)})}}),i},getFullTreeNode:function(t){var i=[];return this.each(function(){var r=this,f,o,s;if(r.grid&&r.p.treeGrid)switch(r.p.treeGridModel){case"nested":var u=r.p.treeReader.left_field,h=r.p.treeReader.right_field,e=r.p.treeReader.level_field,c=parseInt(t[u],10),l=parseInt(t[h],10),a=parseInt(t[e],10);n(this.p.data).each(function(){parseInt(this[e],10)>=a&&parseInt(this[u],10)>=c&&parseInt(this[u],10)<=l&&i.push(this)});break;case"adjacency":t&&(i.push(t),o=r.p.treeReader.parent_id_field,s=r.p.localReader.id,n(this.p.data).each(function(t){for(f=i.length,t=0;t<f;t++)if(n.jgrid.stripPref(r.p.idPrefix,i[t][s])===this[o]){i.push(this);break}}))}}),i},getNodeAncestors:function(t){var i=[];return this.each(function(){if(this.grid&&this.p.treeGrid)for(var r=n(this).jqGrid("getNodeParent",t);r;)i.push(r),r=n(this).jqGrid("getNodeParent",r)}),i},isVisibleNode:function(t){var i=!0;return this.each(function(){var r=this,u,f;r.grid&&r.p.treeGrid&&(u=n(r).jqGrid("getNodeAncestors",t),f=r.p.treeReader.expanded_field,n(u).each(function(){return i=i&&this[f],i?void 0:!1}))}),i},isNodeLoaded:function(t){var i;return this.each(function(){var r=this,u;r.grid&&r.p.treeGrid&&(u=r.p.treeReader.leaf_field,i=t!==undefined?t.loaded!==undefined?t.loaded:t[u]||n(r).jqGrid("getNodeChildren",t).length>0?!0:!1:!1)}),i},expandNode:function(t){return this.each(function(){if(this.grid&&this.p.treeGrid){var r=this.p.treeReader.expanded_field,e=this.p.treeReader.parent_id_field,o=this.p.treeReader.loaded,f=this.p.treeReader.level_field,s=this.p.treeReader.left_field,h=this.p.treeReader.right_field;if(!t[r]){var i=n.jgrid.getAccessor(t,this.p.localReader.id),u=n("#"+this.p.idPrefix+n.jgrid.jqID(i),this.grid.bDiv)[0],c=this.p._index[i];n(this).jqGrid("isNodeLoaded",this.p.data[c])?(t[r]=!0,n("div.treeclick",u).removeClass(this.p.treeIcons.plus+" tree-plus").addClass(this.p.treeIcons.minus+" tree-minus")):this.grid.hDiv.loading||(t[r]=!0,n("div.treeclick",u).removeClass(this.p.treeIcons.plus+" tree-plus").addClass(this.p.treeIcons.minus+" tree-minus"),this.p.treeANode=u.rowIndex,this.p.datatype=this.p.treedatatype,this.p.treeGridModel==="nested"?n(this).jqGrid("setGridParam",{postData:{nodeid:i,n_left:t[s],n_right:t[h],n_level:t[f]}}):n(this).jqGrid("setGridParam",{postData:{nodeid:i,parentid:t[e],n_level:t[f]}}),n(this).trigger("reloadGrid"),t[o]=!0,this.p.treeGridModel==="nested"?n(this).jqGrid("setGridParam",{postData:{nodeid:"",n_left:"",n_right:"",n_level:""}}):n(this).jqGrid("setGridParam",{postData:{nodeid:"",parentid:"",n_level:""}}))}}})},collapseNode:function(t){return this.each(function(){var i,r,u;this.grid&&this.p.treeGrid&&(i=this.p.treeReader.expanded_field,t[i]&&(t[i]=!1,r=n.jgrid.getAccessor(t,this.p.localReader.id),u=n("#"+this.p.idPrefix+n.jgrid.jqID(r),this.grid.bDiv)[0],n("div.treeclick",u).removeClass(this.p.treeIcons.minus+" tree-minus").addClass(this.p.treeIcons.plus+" tree-plus")))})},SortTree:function(t,i,r,u){return this.each(function(){if(this.grid&&this.p.treeGrid){var f,l,h,e=[],c=this,o,s,a=n(this).jqGrid("getRootNodes");for(o=n.jgrid.from(a),o.orderBy(t,i,r,u),s=o.select(),f=0,l=s.length;f<l;f++)h=s[f],e.push(h),n(this).jqGrid("collectChildrenSortTree",e,h,t,i,r,u);n.each(e,function(t){var i=n.jgrid.getAccessor(this,c.p.localReader.id);n("#"+n.jgrid.jqID(c.p.id)+" tbody tr:eq("+t+")").after(n("tr#"+n.jgrid.jqID(i),c.grid.bDiv))}),o=null,s=null,e=null}})},collectChildrenSortTree:function(t,i,r,u,f,e){return this.each(function(){if(this.grid&&this.p.treeGrid){var o,l,s,a,h,c;for(a=n(this).jqGrid("getNodeChildren",i),h=n.jgrid.from(a),h.orderBy(r,u,f,e),c=h.select(),o=0,l=c.length;o<l;o++)s=c[o],t.push(s),n(this).jqGrid("collectChildrenSortTree",t,s,r,u,f,e)}})},setTreeRow:function(t,i){var r=!1;return this.each(function(){var u=this;u.grid&&u.p.treeGrid&&(r=n(u).jqGrid("setRowData",t,i))}),r},delTreeNode:function(t){return this.each(function(){var i=this,a=i.p.localReader.id,e,o=i.p.treeReader.left_field,s=i.p.treeReader.right_field,h,l,r,u,f,c;if(i.grid&&i.p.treeGrid&&(f=i.p._index[t],f!==undefined)){if(h=parseInt(i.p.data[f][s],10),l=h-parseInt(i.p.data[f][o],10)+1,c=n(i).jqGrid("getFullTreeNode",i.p.data[f]),c.length>0)for(e=0;e<c.length;e++)n(i).jqGrid("delRowData",c[e][a]);if(i.p.treeGridModel==="nested"){if(r=n.jgrid.from(i.p.data).greater(o,h,{stype:"integer"}).select(),r.length)for(u in r)r.hasOwnProperty(u)&&(r[u][o]=parseInt(r[u][o],10)-l);if(r=n.jgrid.from(i.p.data).greater(s,h,{stype:"integer"}).select(),r.length)for(u in r)r.hasOwnProperty(u)&&(r[u][s]=parseInt(r[u][s],10)-l)}}})},addChildNode:function(t,i,r,u){var f=this[0],rt,w,b,e,o;if(r){var v=f.p.treeReader.expanded_field,y=f.p.treeReader.leaf_field,ut=f.p.treeReader.level_field,et=f.p.treeReader.parent_id_field,a=f.p.treeReader.left_field,s=f.p.treeReader.right_field,k=f.p.treeReader.loaded,d,g,c,nt,h,ft,tt=0,p=i,it,l;if(u===undefined&&(u=!1),t===undefined||t===null){if(h=f.p.data.length-1,h>=0)while(h>=0)tt=Math.max(tt,parseInt(f.p.data[h][f.p.localReader.id],10)),h--;t=tt+1}if(rt=n(f).jqGrid("getInd",i),it=!1,i===undefined||i===null||i===""?(i=null,p=null,d="last",nt=f.p.tree_root_level,h=f.p.data.length+1):(d="after",g=f.p._index[i],c=f.p.data[g],i=c[f.p.localReader.id],nt=parseInt(c[ut],10)+1,w=n(f).jqGrid("getFullTreeNode",c),w.length?(h=w[w.length-1][f.p.localReader.id],p=h,h=n(f).jqGrid("getInd",p)+1):h=n(f).jqGrid("getInd",i)+1,c[y]&&(it=!0,c[v]=!0,n(f.rows[rt]).find("span.cell-wrapperleaf").removeClass("cell-wrapperleaf").addClass("cell-wrapper").end().find("div.tree-leaf").removeClass(f.p.treeIcons.leaf+" tree-leaf").addClass(f.p.treeIcons.minus+" tree-minus"),f.p.data[g][y]=!1,c[k]=!0)),ft=h+1,r[v]===undefined&&(r[v]=!1),r[k]===undefined&&(r[k]=!1),r[ut]=nt,r[y]===undefined&&(r[y]=!0),f.p.treeGridModel==="adjacency"&&(r[et]=i),f.p.treeGridModel==="nested")if(i!==null){if(l=parseInt(c[s],10),b=n.jgrid.from(f.p.data),b=b.greaterOrEquals(s,l,{stype:"integer"}),e=b.select(),e.length)for(o in e)e.hasOwnProperty(o)&&(e[o][a]=e[o][a]>l?parseInt(e[o][a],10)+2:e[o][a],e[o][s]=e[o][s]>=l?parseInt(e[o][s],10)+2:e[o][s]);r[a]=l,r[s]=l+1}else{if(l=parseInt(n(f).jqGrid("getCol",s,!1,"max"),10),e=n.jgrid.from(f.p.data).greater(a,l,{stype:"integer"}).select(),e.length)for(o in e)e.hasOwnProperty(o)&&(e[o][a]=parseInt(e[o][a],10)+2);if(e=n.jgrid.from(f.p.data).greater(s,l,{stype:"integer"}).select(),e.length)for(o in e)e.hasOwnProperty(o)&&(e[o][s]=parseInt(e[o][s],10)+2);r[a]=l+1,r[s]=l+2}(i===null||n(f).jqGrid("isNodeLoaded",c)||it)&&(n(f).jqGrid("addRowData",t,r,d,p),n(f).jqGrid("setTreeNode",h,ft)),c&&!c[v]&&u&&n(f.rows[rt]).find("div.treeclick").click()}}})}(jQuery),function(n){"use strict";n.extend(n.jgrid,{template:function(t){var r=n.makeArray(arguments).slice(1),i,u=r.length;return t==null&&(t=""),t.replace(/\{([\w\-]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?\}/g,function(t,f){if(!isNaN(parseInt(f,10)))return r[parseInt(f,10)];for(i=0;i<u;i++)if(n.isArray(r[i]))for(var e=r[i],o=e.length;o--;)if(f===e[o].nm)return e[o].v})}}),n.jgrid.extend({groupingSetup:function(){return this.each(function(){var u=this,i,r,e,f=u.p.colModel,t=u.p.groupingView;if(t!==null&&(typeof t=="object"||n.isFunction(t)))if(t.groupField.length){for(t.visibiltyOnNextGrouping===undefined&&(t.visibiltyOnNextGrouping=[]),t.lastvalues=[],t.groups=[],t.counters=[],i=0;i<t.groupField.length;i++)t.groupOrder[i]||(t.groupOrder[i]="asc"),t.groupText[i]||(t.groupText[i]="{0}"),typeof t.groupColumnShow[i]!="boolean"&&(t.groupColumnShow[i]=!0),typeof t.groupSummary[i]!="boolean"&&(t.groupSummary[i]=!1),t.groupColumnShow[i]===!0?(t.visibiltyOnNextGrouping[i]=!0,n(u).jqGrid("showCol",t.groupField[i])):(t.visibiltyOnNextGrouping[i]=n("#"+n.jgrid.jqID(u.p.id+"_"+t.groupField[i])).is(":visible"),n(u).jqGrid("hideCol",t.groupField[i]));for(t.summary=[],r=0,e=f.length;r<e;r++)f[r].summaryType&&t.summary.push({nm:f[r].name,st:f[r].summaryType,v:"",sr:f[r].summaryRound,srt:f[r].summaryRoundType||"round"})}else u.p.grouping=!1;else u.p.grouping=!1})},groupingPrepare:function(t,i,r,u){return this.each(function(){for(var f=this.p.groupingView,s=this,v=f.groupField.length,c,o,l,h,a=0,e=0;e<v;e++)c=f.groupField[e],l=f.displayField[e],o=r[c],h=l==null?null:r[l],h==null&&(h=o),o!==undefined&&(u===0?(f.groups.push({idx:e,dataIndex:c,value:o,displayValue:h,startRow:u,cnt:1,summary:[]}),f.lastvalues[e]=o,f.counters[e]={cnt:1,pos:f.groups.length-1,summary:n.extend(!0,[],f.summary)},n.each(f.counters[e].summary,function(){this.v=n.isFunction(this.st)?this.st.call(s,this.v,this.nm,r):n(s).jqGrid("groupingCalculations.handler",this.st,this.v,this.nm,this.sr,this.srt,r)}),f.groups[f.counters[e].pos].summary=f.counters[e].summary):typeof o=="object"||(n.isArray(f.isInTheSameGroup)&&n.isFunction(f.isInTheSameGroup[e])?f.isInTheSameGroup[e].call(s,f.lastvalues[e],o,e,f):f.lastvalues[e]===o)?a===1?(f.groups.push({idx:e,dataIndex:c,value:o,displayValue:h,startRow:u,cnt:1,summary:[]}),f.lastvalues[e]=o,f.counters[e]={cnt:1,pos:f.groups.length-1,summary:n.extend(!0,[],f.summary)},n.each(f.counters[e].summary,function(){this.v=n.isFunction(this.st)?this.st.call(s,this.v,this.nm,r):n(s).jqGrid("groupingCalculations.handler",this.st,this.v,this.nm,this.sr,this.srt,r)}),f.groups[f.counters[e].pos].summary=f.counters[e].summary):(f.counters[e].cnt+=1,f.groups[f.counters[e].pos].cnt=f.counters[e].cnt,n.each(f.counters[e].summary,function(){this.v=n.isFunction(this.st)?this.st.call(s,this.v,this.nm,r):n(s).jqGrid("groupingCalculations.handler",this.st,this.v,this.nm,this.sr,this.srt,r)}),f.groups[f.counters[e].pos].summary=f.counters[e].summary):(f.groups.push({idx:e,dataIndex:c,value:o,displayValue:h,startRow:u,cnt:1,summary:[]}),f.lastvalues[e]=o,a=1,f.counters[e]={cnt:1,pos:f.groups.length-1,summary:n.extend(!0,[],f.summary)},n.each(f.counters[e].summary,function(){this.v=n.isFunction(this.st)?this.st.call(s,this.v,this.nm,r):n(s).jqGrid("groupingCalculations.handler",this.st,this.v,this.nm,this.sr,this.srt,r)}),f.groups[f.counters[e].pos].summary=f.counters[e].summary));i.push(t)}),i},groupingToggle:function(t){return this.each(function(){var r=this,c=r.p.groupingView,f=t.split("_"),u,l=parseInt(f[f.length-2],10),p;f.splice(f.length-2,2);var e=f.join("_"),o=c.minusicon,s=c.plusicon,y=n("#"+n.jgrid.jqID(t)),i=y.length?y[0].nextSibling:null,a=n("#"+n.jgrid.jqID(t)+" span.tree-wrap-"+r.p.direction),v=!1,h;if(a.hasClass(o)){if(c.showSummaryOnHide){if(i)while(i){if(n(i).hasClass("jqfoot")&&(p=parseInt(n(i).attr("jqfootlevel"),10),p<=l))break;n(i).hide(),i=i.nextSibling}}else if(i)while(i){if(u=i.className.indexOf(e),u!==-1&&parseInt(i.className.substring(u+e.length+1),10)<=l)break;n(i).hide(),i=i.nextSibling}a.removeClass(o).addClass(s),v=!0}else{if(i)while(i){if(u=i.className.indexOf(e),u!==-1&&parseInt(i.className.substring(u+e.length+1),10)<=l)break;n(i).show(),h=n(i).find("span.tree-wrap-"+r.p.direction),h&&n(h).hasClass(s)&&n(h).removeClass(s).addClass(o),i=i.nextSibling}a.removeClass(s).addClass(o)}n(r).triggerHandler("jqGridGroupingClickGroup",[t,v]),n.isFunction(r.p.onClickGroup)&&r.p.onClickGroup.call(r,t,v)}),!1},groupingRender:function(t,i){return this.each(function(){function p(n,t,i){var u=!1,r,f;if(t===0)u=i[n];else if(f=i[n].idx,f===0)u=i[n];else for(r=n;r>=0;r--)if(i[r].idx===f-t){u=i[r];break}return u}var u=this,r=u.p.groupingView,f="",a="",o,s,v=r.groupCollapse?r.plusicon:r.minusicon,h,c=[],y=r.groupField.length,e,l;v+=" tree-wrap-"+u.p.direction,n.each(u.p.colModel,function(n,t){for(var i=0;i<y;i++)if(r.groupField[i]===t.name){c[i]=n;break}}),e=0,l=n.makeArray(r.groupSummary),l.reverse(),n.each(r.groups,function(w,b){var ot,nt,k,tt,d,st,g,it,ft,et;e++,s=u.p.id+"ghead_"+b.idx,o=s+"_"+w,a="<span style='cursor:pointer;' class='ui-icon "+v+"' onclick=\"jQuery('#"+n.jgrid.jqID(u.p.id)+"').jqGrid('groupingToggle','"+o+"');return false;\"><\/span>";try{n.isArray(r.formatDisplayField)&&n.isFunction(r.formatDisplayField[b.idx])&&(b.displayValue=r.formatDisplayField[b.idx].call(u,b.displayValue,b.value,u.p.colModel[c[b.idx]],b.idx,r)),h=u.formatter(o,b.displayValue,c[b.idx],b.value)}catch(lt){h=b.displayValue}if(f+='<tr id="'+o+'" role="row" class= "ui-widget-content jqgroup ui-row-'+u.p.direction+" "+s+'"><td style="padding-left:'+b.idx*12+'px;" colspan="'+i+'">'+a+n.jgrid.template(r.groupText[b.idx],h,b.cnt,b.summary)+"<\/td><\/tr>",ot=y-1===b.idx,ot){for(nt=r.groups[w+1],st=nt!==undefined?r.groups[w+1].startRow:t.length,tt=b.startRow;tt<st;tt++)f+=t[tt].join("");if(nt!==undefined){for(g=0;g<r.groupField.length;g++)if(nt.dataIndex===r.groupField[g])break;e=r.groupField.length-g}for(d=0;d<e;d++)if(l[d]){it="",r.groupCollapse&&!r.showSummaryOnHide&&(it=' style="display:none;"'),f+="<tr"+it+' jqfootlevel="'+(b.idx-d)+'" role="row" class="ui-widget-content jqfoot ui-row-'+u.p.direction+'">';var ht=p(w,d,r.groups),rt=u.p.colModel,ut,ct=ht.cnt;for(k=0;k<i;k++)ft="<td "+u.formatCol(k,1,"")+">&#160;<\/td>",et="{0}",n.each(ht.summary,function(){if(this.nm===rt[k].name){rt[k].summaryTpl&&(et=rt[k].summaryTpl),typeof this.st=="string"&&this.st.toLowerCase()==="avg"&&this.v&&ct>0&&(this.v=this.v/ct);try{ut=u.formatter("",this.v,k,this)}catch(t){ut=this.v}return ft="<td "+u.formatCol(k,1,"")+">"+n.jgrid.format(et,ut)+"<\/td>",!1}}),f+=ft;f+="<\/tr>"}e=g}}),n("#"+n.jgrid.jqID(u.p.id)+" tbody:first").append(f),f=null})},groupingGroupBy:function(t,i){return this.each(function(){var f=this,u,r;for(typeof t=="string"&&(t=[t]),u=f.p.groupingView,f.p.grouping=!0,u.visibiltyOnNextGrouping===undefined&&(u.visibiltyOnNextGrouping=[]),r=0;r<u.groupField.length;r++)!u.groupColumnShow[r]&&u.visibiltyOnNextGrouping[r]&&n(f).jqGrid("showCol",u.groupField[r]);for(r=0;r<t.length;r++)u.visibiltyOnNextGrouping[r]=n("#"+n.jgrid.jqID(f.p.id)+"_"+n.jgrid.jqID(t[r])).is(":visible");f.p.groupingView=n.extend(f.p.groupingView,i||{}),u.groupField=t,n(f).trigger("reloadGrid")})},groupingRemove:function(t){return this.each(function(){var i=this,r,u;if(t===undefined&&(t=!0),i.p.grouping=!1,t===!0){for(r=i.p.groupingView,u=0;u<r.groupField.length;u++)!r.groupColumnShow[u]&&r.visibiltyOnNextGrouping[u]&&n(i).jqGrid("showCol",r.groupField);n("tr.jqgroup, tr.jqfoot","#"+n.jgrid.jqID(i.p.id)+" tbody:first").remove(),n("tr.jqgrow:hidden","#"+n.jgrid.jqID(i.p.id)+" tbody:first").show()}else n(i).trigger("reloadGrid")})},groupingCalculations:{handler:function(n,t,i,r,u,f){var o={sum:function(){return parseFloat(t||0)+parseFloat(f[i]||0)},min:function(){return t===""?parseFloat(f[i]||0):Math.min(parseFloat(t),parseFloat(f[i]||0))},max:function(){return t===""?parseFloat(f[i]||0):Math.max(parseFloat(t),parseFloat(f[i]||0))},count:function(){return(t===""&&(t=0),f.hasOwnProperty(i))?t+1:0},avg:function(){return o.sum()}},e,s;if(!o[n])throw"jqGrid Grouping No such method: "+n;return e=o[n](),r!=null&&(u==="fixed"?e=e.toFixed(r):(s=Math.pow(10,r),e=Math.round(e*s)/s)),e}}})}(jQuery),function(n){"use strict";n.jgrid.extend({jqGridImport:function(t){return t=n.extend({imptype:"xml",impstring:"",impurl:"",mtype:"GET",impData:{},xmlGrid:{config:"roots>grid",data:"roots>rows"},jsonGrid:{config:"grid",data:"data"},ajaxOptions:{}},t||{}),this.each(function(){var i=this,u=function(t,r){var s=n(r.xmlGrid.config,t)[0],h=n(r.xmlGrid.data,t)[0],u,f,e,o;if(xmlJsonClass.xml2json&&n.jgrid.parse){u=xmlJsonClass.xml2json(s," "),u=n.jgrid.parse(u);for(e in u)u.hasOwnProperty(e)&&(f=u[e]);h?(o=u.grid.datatype,u.grid.datatype="xmlstring",u.grid.datastr=t,n(i).jqGrid(f).jqGrid("setGridParam",{datatype:o})):n(i).jqGrid(f),u=null,f=null}else alert("xml2json or parse are not present")},f=function(t,r){var f,e,u,o,s;t&&typeof t=="string"&&(f=!1,n.jgrid.useJSON&&(n.jgrid.useJSON=!1,f=!0),e=n.jgrid.parse(t),f&&(n.jgrid.useJSON=!0),u=e[r.jsonGrid.config],o=e[r.jsonGrid.data],o?(s=u.datatype,u.datatype="jsonstring",u.datastr=o,n(i).jqGrid(u).jqGrid("setGridParam",{datatype:s})):n(i).jqGrid(u))},r;switch(t.imptype){case"xml":n.ajax(n.extend({url:t.impurl,type:t.mtype,data:t.impData,dataType:"xml",complete:function(r,f){f==="success"&&(u(r.responseXML,t),n(i).triggerHandler("jqGridImportComplete",[r,t]),n.isFunction(t.importComplete)&&t.importComplete(r)),r=null}},t.ajaxOptions));break;case"xmlstring":t.impstring&&typeof t.impstring=="string"&&(r=n.parseXML(t.impstring),r&&(u(r,t),n(i).triggerHandler("jqGridImportComplete",[r,t]),n.isFunction(t.importComplete)&&t.importComplete(r),t.impstring=null),r=null);break;case"json":n.ajax(n.extend({url:t.impurl,type:t.mtype,data:t.impData,dataType:"json",complete:function(r){try{f(r.responseText,t),n(i).triggerHandler("jqGridImportComplete",[r,t]),n.isFunction(t.importComplete)&&t.importComplete(r)}catch(u){}r=null}},t.ajaxOptions));break;case"jsonstring":t.impstring&&typeof t.impstring=="string"&&(f(t.impstring,t),n(i).triggerHandler("jqGridImportComplete",[t.impstring,t]),n.isFunction(t.importComplete)&&t.importComplete(t.impstring),t.impstring=null)}})},jqGridExport:function(t){t=n.extend({exptype:"xmlstring",root:"grid",ident:"\t"},t||{});var i=null;return this.each(function(){if(this.grid){var u,r=n.extend(!0,{},n(this).jqGrid("getGridParam"));if(r.rownumbers&&(r.colNames.splice(0,1),r.colModel.splice(0,1)),r.multiselect&&(r.colNames.splice(0,1),r.colModel.splice(0,1)),r.subGrid&&(r.colNames.splice(0,1),r.colModel.splice(0,1)),r.knv=null,r.treeGrid)for(u in r.treeReader)r.treeReader.hasOwnProperty(u)&&(r.colNames.splice(r.colNames.length-1),r.colModel.splice(r.colModel.length-1));switch(t.exptype){case"xmlstring":i="<"+t.root+">"+xmlJsonClass.json2xml(r,t.ident)+"<\/"+t.root+">";break;case"jsonstring":i="{"+xmlJsonClass.toJson(r,t.root,t.ident,!1)+"}",r.postData.filters!==undefined&&(i=i.replace(/filters":"/,'filters":'),i=i.replace(/}]}"/,"}]}"))}}}),i},excelExport:function(t){return t=n.extend({exptype:"remote",url:null,oper:"oper",tag:"excel",exportOptions:{}},t||{}),this.each(function(){var i,r,u;this.grid&&t.exptype==="remote"&&(r=n.extend({},this.p.postData),r[t.oper]=t.tag,u=jQuery.param(r),i=t.url.indexOf("?")!==-1?t.url+"&"+u:t.url+"?"+u,window.location=i)})}})}(jQuery),function(n){"use strict";if(n.jgrid.msie&&n.jgrid.msiever()===8&&(n.expr[":"].hidden=function(n){return n.offsetWidth===0||n.offsetHeight===0||n.style.display==="none"}),n.jgrid._multiselect=!1,n.ui&&n.ui.multiselect){if(n.ui.multiselect.prototype._setSelected){var t=n.ui.multiselect.prototype._setSelected;n.ui.multiselect.prototype._setSelected=function(i,r){var f=t.call(this,i,r),u;return r&&this.selectedList&&(u=this.element,this.selectedList.find("li").each(function(){n(this).data("optionLink")&&n(this).data("optionLink").remove().appendTo(u)})),f}}n.ui.multiselect.prototype.destroy&&(n.ui.multiselect.prototype.destroy=function(){this.element.show(),this.container.remove(),n.Widget===undefined?n.widget.prototype.destroy.apply(this,arguments):n.Widget.prototype.destroy.apply(this,arguments)}),n.jgrid._multiselect=!0}n.jgrid.extend({sortableColumns:function(t){return this.each(function(){function f(){i.p.disableClick=!0}var i=this,u=n.jgrid.jqID(i.p.id),r={tolerance:"pointer",axis:"x",scrollSensitivity:"1",items:">th:not(:has(#jqgh_"+u+"_cb,#jqgh_"+u+"_rn,#jqgh_"+u+"_subgrid),:hidden)",placeholder:{element:function(t){return n(document.createElement(t[0].nodeName)).addClass(t[0].className+" ui-sortable-placeholder ui-state-highlight").removeClass("ui-sortable-helper")[0]},update:function(n,t){t.height(n.currentItem.innerHeight()-parseInt(n.currentItem.css("paddingTop")||0,10)-parseInt(n.currentItem.css("paddingBottom")||0,10)),t.width(n.currentItem.innerWidth()-parseInt(n.currentItem.css("paddingLeft")||0,10)-parseInt(n.currentItem.css("paddingRight")||0,10))}},update:function(t,r){var e=n(r.item).parent(),o=n(">th",e),s=i.p.colModel,f={},h=i.p.id+"_",u;n.each(s,function(n){f[this.name]=n}),u=[],o.each(function(){var t=n(">div",this).get(0).id.replace(/^jqgh_/,"").replace(h,"");f.hasOwnProperty(t)&&u.push(f[t])}),n(i).jqGrid("remapColumns",u,!0,!0),n.isFunction(i.p.sortable.update)&&i.p.sortable.update(u),setTimeout(function(){i.p.disableClick=!1},50)}},e;i.p.sortable.options?n.extend(r,i.p.sortable.options):n.isFunction(i.p.sortable)&&(i.p.sortable={update:i.p.sortable}),r.start?(e=r.start,r.start=function(n,t){f(),e.call(this,n,t)}):r.start=f,i.p.sortable.exclude&&(r.items+=":not("+i.p.sortable.exclude+")"),t.sortable(r).data("sortable").floating=!0})},columnChooser:function(t){function c(n,t,i){if(t>=0){var r=n.slice(),u=r.splice(t,Math.max(n.length-t,t));return t>n.length&&(t=n.length),r[t]=i,r.concat(u)}}function e(t,i){t&&(typeof t=="string"?n.fn[t]&&n.fn[t].apply(i,n.makeArray(arguments).slice(2)):n.isFunction(t)&&t.apply(i,n.makeArray(arguments).slice(2)))}var i=this,u,r,s,h;if(!n("#colchooser_"+n.jgrid.jqID(i[0].p.id)).length){if(u=n('<div id="colchooser_'+i[0].p.id+'" style="position:relative;overflow:hidden"><div><select multiple="multiple"><\/select><\/div><\/div>'),r=n("select",u),t=n.extend({width:420,height:240,classname:null,done:function(n){n&&i.jqGrid("remapColumns",n,!0)},msel:"multiselect",dlog:"dialog",dialog_opts:{minWidth:470},dlog_opts:function(t){var i={};return i[t.bSubmit]=function(){t.apply_perm(),t.cleanup(!1)},i[t.bCancel]=function(){t.cleanup(!0)},n.extend(!0,{buttons:i,close:function(){t.cleanup(!0)},modal:t.modal||!1,resizable:t.resizable||!0,width:t.width+20},t.dialog_opts||{})},apply_perm:function(){n("option",r).each(function(){this.selected?i.jqGrid("showCol",f[this.value].name):i.jqGrid("hideCol",f[this.value].name)});var u=[];n("option:selected",r).each(function(){u.push(parseInt(this.value,10))}),n.each(u,function(){delete o[f[parseInt(this,10)].name]}),n.each(o,function(){var n=parseInt(this,10);u=c(u,n,n)}),t.done&&t.done.call(i,u)},cleanup:function(n){e(t.dlog,u,"destroy"),e(t.msel,r,"destroy"),u.remove(),n&&t.done&&t.done.call(i)},msel_opts:{}},n.jgrid.col,t||{}),n.ui&&n.ui.multiselect&&t.msel==="multiselect"){if(!n.jgrid._multiselect){alert("Multiselect plugin loaded after jqGrid. Please load the plugin before the jqGrid!");return}t.msel_opts=n.extend(n.ui.multiselect.defaults,t.msel_opts)}t.caption&&u.attr("title",t.caption),t.classname&&(u.addClass(t.classname),r.addClass(t.classname)),t.width&&(n(">div",u).css({width:t.width,margin:"0 auto"}),r.css("width",t.width)),t.height&&(n(">div",u).css("height",t.height),r.css("height",t.height-10));var f=i.jqGrid("getGridParam","colModel"),l=i.jqGrid("getGridParam","colNames"),o={},a=[];r.empty(),n.each(f,function(t){if(o[this.name]=t,this.hidedlg){this.hidden||a.push(t);return}r.append("<option value='"+t+"' "+(this.hidden?"":"selected='selected'")+">"+n.jgrid.stripHtml(l[t])+"<\/option>")}),s=n.isFunction(t.dlog_opts)?t.dlog_opts.call(i,t):t.dlog_opts,e(t.dlog,u,s),h=n.isFunction(t.msel_opts)?t.msel_opts.call(i,t):t.msel_opts,e(t.msel,r,h)}},sortableRows:function(t){return this.each(function(){var i=this;i.grid&&(i.p.treeGrid||n.fn.sortable&&(t=n.extend({cursor:"move",axis:"y",items:".jqgrow"},t||{}),t.start&&n.isFunction(t.start)?(t._start_=t.start,delete t.start):t._start_=!1,t.update&&n.isFunction(t.update)?(t._update_=t.update,delete t.update):t._update_=!1,t.start=function(r,u){if(n(u.item).css("border-width","0px"),n("td",u.item).each(function(n){this.style.width=i.grid.cols[n].style.width}),i.p.subGrid){var f=n(u.item).attr("id");try{n(i).jqGrid("collapseSubGridRow",f)}catch(e){}}t._start_&&t._start_.apply(this,[r,u])},t.update=function(r,u){n(u.item).css("border-width",""),i.p.rownumbers===!0&&n("td.jqgrid-rownum",i.rows).each(function(t){n(this).html(t+1+(parseInt(i.p.page,10)-1)*parseInt(i.p.rowNum,10))}),t._update_&&t._update_.apply(this,[r,u])},n("tbody:first",i).sortable(t),n("tbody:first",i).disableSelection()))})},gridDnD:function(t){return this.each(function(){function f(){var t=n.data(i,"dnd");n("tr.jqgrow:not(.ui-draggable)",i).draggable(n.isFunction(t.drag)?t.drag.call(n(i),t):t.drag)}var i=this,r,u,e;if(i.grid&&!i.p.treeGrid&&n.fn.draggable&&n.fn.droppable){if(e="<table id='jqgrid_dnd' class='ui-jqgrid-dnd'><\/table>",n("#jqgrid_dnd")[0]===undefined&&n("body").append(e),typeof t=="string"&&t==="updateDnD"&&i.p.jqgdnd===!0){f();return}if(t=n.extend({drag:function(t){return n.extend({start:function(r,u){var f,e;if(i.p.subGrid){e=n(u.helper).attr("id");try{n(i).jqGrid("collapseSubGridRow",e)}catch(o){}}for(f=0;f<n.data(i,"dnd").connectWith.length;f++)n(n.data(i,"dnd").connectWith[f]).jqGrid("getGridParam","reccount")===0&&n(n.data(i,"dnd").connectWith[f]).jqGrid("addRowData","jqg_empty_row",{});u.helper.addClass("ui-state-highlight"),n("td",u.helper).each(function(n){this.style.width=i.grid.headers[n].width+"px"}),t.onstart&&n.isFunction(t.onstart)&&t.onstart.call(n(i),r,u)},stop:function(r,u){var f,e;for(u.helper.dropped&&!t.dragcopy&&(e=n(u.helper).attr("id"),e===undefined&&(e=n(this).attr("id")),n(i).jqGrid("delRowData",e)),f=0;f<n.data(i,"dnd").connectWith.length;f++)n(n.data(i,"dnd").connectWith[f]).jqGrid("delRowData","jqg_empty_row");t.onstop&&n.isFunction(t.onstop)&&t.onstop.call(n(i),r,u)}},t.drag_opts||{})},drop:function(t){return n.extend({accept:function(t){var i,r;return n(t).hasClass("jqgrow")?(i=n(t).closest("table.ui-jqgrid-btable"),i.length>0&&n.data(i[0],"dnd")!==undefined)?(r=n.data(i[0],"dnd").connectWith,n.inArray("#"+n.jgrid.jqID(this.id),r)!==-1?!0:!1):!1:t},drop:function(r,u){var l,f,o,s;if(n(u.draggable).hasClass("jqgrow")){if(l=n(u.draggable).attr("id"),f=u.draggable.parent().parent().jqGrid("getRowData",l),!t.dropbyname){var c=0,a={},e,h,v=n("#"+n.jgrid.jqID(this.id)).jqGrid("getGridParam","colModel");try{for(h in f)f.hasOwnProperty(h)&&(e=v[c].name,e==="cb"||e==="rn"||e==="subgrid"||f.hasOwnProperty(h)&&v[c]&&(a[e]=f[h]),c++);f=a}catch(y){}}u.helper.dropped=!0,t.beforedrop&&n.isFunction(t.beforedrop)&&(o=t.beforedrop.call(this,r,u,f,n("#"+n.jgrid.jqID(i.p.id)),n(this)),o!==undefined&&o!==null&&typeof o=="object"&&(f=o)),u.helper.dropped&&(t.autoid&&(n.isFunction(t.autoid)?s=t.autoid.call(this,f):(s=Math.ceil(Math.random()*1e3),s=t.autoidprefix+s)),n("#"+n.jgrid.jqID(this.id)).jqGrid("addRowData",s,f,t.droppos)),t.ondrop&&n.isFunction(t.ondrop)&&t.ondrop.call(this,r,u,f)}}},t.drop_opts||{})},onstart:null,onstop:null,beforedrop:null,ondrop:null,drop_opts:{activeClass:"ui-state-active",hoverClass:"ui-state-hover"},drag_opts:{revert:"invalid",helper:"clone",cursor:"move",appendTo:"#jqgrid_dnd",zIndex:5e3},dragcopy:!1,dropbyname:!1,droppos:"first",autoid:!0,autoidprefix:"dnd_"},t||{}),t.connectWith)for(t.connectWith=t.connectWith.split(","),t.connectWith=n.map(t.connectWith,function(t){return n.trim(t)}),n.data(i,"dnd",t),i.p.reccount===0||i.p.jqgdnd||f(),i.p.jqgdnd=!0,r=0;r<t.connectWith.length;r++)u=t.connectWith[r],n(u).droppable(n.isFunction(t.drop)?t.drop.call(n(i),t):t.drop)}})},gridResize:function(t){return this.each(function(){var $t=this,gID=n.jgrid.jqID($t.p.id),optstest;$t.grid&&n.fn.resizable&&(t=n.extend({},t||{}),t.alsoResize?(t._alsoResize_=t.alsoResize,delete t.alsoResize):t._alsoResize_=!1,t.stop&&n.isFunction(t.stop)?(t._stop_=t.stop,delete t.stop):t._stop_=!1,t.stop=function(i,r){n($t).jqGrid("setGridParam",{height:n("#gview_"+gID+" .ui-jqgrid-bdiv").height()}),n($t).jqGrid("setGridWidth",r.size.width,t.shrinkToFit),t._stop_&&t._stop_.call($t,i,r)},t._alsoResize_?(optstest="{'#gview_"+gID+" .ui-jqgrid-bdiv':true,'"+t._alsoResize_+"':true}",t.alsoResize=eval("("+optstest+")")):t.alsoResize=n(".ui-jqgrid-bdiv","#gview_"+gID),delete t._alsoResize_,n("#gbox_"+gID).resizable(t))})}})}(jQuery),$(document).ready(function(){$.blockUI.defaults.growlCSS.opacity=.9,$.blockUI.defaults.growlCSS.width="100%",$.blockUI.defaults.growlCSS.top="0px",$.blockUI.defaults.growlCSS.left="0%",$.blockUI.defaults.growlCSS.right="0%",$.blockUI.defaults.growlCSS.backgroundColor="transparent",$.blockUI.defaults.timeout=12e5,setupForm(),$(setMainContentHeight),$(window).resize(setMainContentHeight)}),function(n){n.fn.hoverIntent=function(t,i,r){var u={interval:100,sensitivity:7,timeout:0};u=typeof t=="object"?n.extend(u,t):n.isFunction(i)?n.extend(u,{over:t,out:i,selector:r}):n.extend(u,{over:t,out:t,selector:i});var f,e,o,s,h=function(n){f=n.pageX,e=n.pageY},c=function(t,i){if(i.hoverIntent_t=clearTimeout(i.hoverIntent_t),Math.abs(o-f)+Math.abs(s-e)<u.sensitivity)return n(i).off("mousemove.hoverIntent",h),i.hoverIntent_s=1,u.over.apply(i,[t]);o=f,s=e,i.hoverIntent_t=setTimeout(function(){c(t,i)},u.interval)},a=function(n,t){return t.hoverIntent_t=clearTimeout(t.hoverIntent_t),t.hoverIntent_s=0,u.out.apply(t,[n])},l=function(t){var r=jQuery.extend({},t),i=this;if(i.hoverIntent_t&&(i.hoverIntent_t=clearTimeout(i.hoverIntent_t)),t.type=="mouseenter"){o=r.pageX,s=r.pageY;n(i).on("mousemove.hoverIntent",h);i.hoverIntent_s!=1&&(i.hoverIntent_t=setTimeout(function(){c(r,i)},u.interval))}else n(i).off("mousemove.hoverIntent",h),i.hoverIntent_s==1&&(i.hoverIntent_t=setTimeout(function(){a(r,i)},u.timeout))};return this.on({"mouseenter.hoverIntent":l,"mouseleave.hoverIntent":l},u.selector)}}(jQuery);var displayPleaseWait=!1,COMPILED=!0,goog=goog||{};goog.global=this,goog.isDef=function(n){return void 0!==n},goog.exportPath_=function(n,t,i){n=n.split("."),i=i||goog.global,n[0]in i||!i.execScript||i.execScript("var "+n[0]);for(var r;n.length&&(r=n.shift());)!n.length&&goog.isDef(t)?i[r]=t:i=i[r]?i[r]:i[r]={}},goog.define=function(n,t){var i=t;COMPILED||(goog.global.CLOSURE_UNCOMPILED_DEFINES&&Object.prototype.hasOwnProperty.call(goog.global.CLOSURE_UNCOMPILED_DEFINES,n)?i=goog.global.CLOSURE_UNCOMPILED_DEFINES[n]:goog.global.CLOSURE_DEFINES&&Object.prototype.hasOwnProperty.call(goog.global.CLOSURE_DEFINES,n)&&(i=goog.global.CLOSURE_DEFINES[n])),goog.exportPath_(n,i)},goog.DEBUG=!0,goog.LOCALE="en",goog.TRUSTED_SITE=!0,goog.STRICT_MODE_COMPATIBLE=!1,goog.DISALLOW_TEST_ONLY_CODE=COMPILED&&!goog.DEBUG,goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1,goog.provide=function(n){if(!COMPILED&&goog.isProvided_(n))throw Error('Namespace "'+n+'" already declared.');goog.constructNamespace_(n)},goog.constructNamespace_=function(n,t){if(!COMPILED){delete goog.implicitNamespaces_[n];for(var i=n;(i=i.substring(0,i.lastIndexOf(".")))&&!goog.getObjectByName(i);)goog.implicitNamespaces_[i]=!0}goog.exportPath_(n,t)},goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/,goog.module=function(n){if(!goog.isString(n)||!n||-1==n.search(goog.VALID_MODULE_RE_))throw Error("Invalid module identifier");if(!goog.isInModuleLoader_())throw Error("Module "+n+" has been loaded incorrectly.");if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");if(goog.moduleLoaderState_.moduleName=n,!COMPILED){if(goog.isProvided_(n))throw Error('Namespace "'+n+'" already declared.');delete goog.implicitNamespaces_[n]}},goog.module.get=function(n){return goog.module.getInternal_(n)},goog.module.getInternal_=function(n){if(!COMPILED)return goog.isProvided_(n)?n in goog.loadedModules_?goog.loadedModules_[n]:goog.getObjectByName(n):null},goog.moduleLoaderState_=null,goog.isInModuleLoader_=function(){return null!=goog.moduleLoaderState_},goog.module.declareLegacyNamespace=function(){if(!COMPILED&&!goog.isInModuleLoader_())throw Error("goog.module.declareLegacyNamespace must be called from within a goog.module");if(!COMPILED&&!goog.moduleLoaderState_.moduleName)throw Error("goog.module must be called prior to goog.module.declareLegacyNamespace.");goog.moduleLoaderState_.declareLegacyNamespace=!0},goog.setTestOnly=function(n){if(goog.DISALLOW_TEST_ONLY_CODE)throw n=n||"",Error("Importing test-only code into non-debug environment"+(n?": "+n:"."));},goog.forwardDeclare=function(){},COMPILED||(goog.isProvided_=function(n){return n in goog.loadedModules_||!goog.implicitNamespaces_[n]&&goog.isDefAndNotNull(goog.getObjectByName(n))},goog.implicitNamespaces_={"goog.module":!0}),goog.getObjectByName=function(n,t){for(var u=n.split("."),i=t||goog.global,r;r=u.shift();)if(goog.isDefAndNotNull(i[r]))i=i[r];else return null;return i},goog.globalize=function(n,t){var r=t||goog.global,i;for(i in n)r[i]=n[i]},goog.addDependency=function(n,t,i,r){var e,u,f;if(goog.DEPENDENCIES_ENABLED){for(n=n.replace(/\\/g,"/"),u=goog.dependencies_,f=0;e=t[f];f++)u.nameToPath[e]=n,u.pathIsModule[n]=!!r;for(r=0;t=i[r];r++)n in u.requires||(u.requires[n]={}),u.requires[n][t]=!0}},goog.ENABLE_DEBUG_LOADER=!0,goog.logToConsole_=function(n){goog.global.console&&goog.global.console.error(n)},goog.require=function(n){if(!COMPILED){if(goog.ENABLE_DEBUG_LOADER&&goog.IS_OLD_IE_&&goog.maybeProcessDeferredDep_(n),goog.isProvided_(n))return goog.isInModuleLoader_()?goog.module.getInternal_(n):null;if(goog.ENABLE_DEBUG_LOADER){var t=goog.getPathFromDeps_(n);if(t)return goog.writeScripts_(t),null}n="goog.require could not find: "+n,goog.logToConsole_(n);throw Error(n);}},goog.basePath="",goog.nullFunction=function(){},goog.abstractMethod=function(){throw Error("unimplemented abstract method");},goog.addSingletonGetter=function(n){n.getInstance=function(){return n.instance_?n.instance_:(goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=n),n.instance_=new n)}},goog.instantiatedSingletons_=[],goog.LOAD_MODULE_USING_EVAL=!0,goog.SEAL_MODULE_EXPORTS=goog.DEBUG,goog.loadedModules_={},goog.DEPENDENCIES_ENABLED=!COMPILED&&goog.ENABLE_DEBUG_LOADER,goog.DEPENDENCIES_ENABLED&&(goog.dependencies_={pathIsModule:{},nameToPath:{},requires:{},visited:{},written:{},deferred:{}},goog.inHtmlDocument_=function(){var n=goog.global.document;return null!=n&&"write"in n},goog.findBasePath_=function(){var r,n;if(goog.isDef(goog.global.CLOSURE_BASE_PATH))goog.basePath=goog.global.CLOSURE_BASE_PATH;else if(goog.inHtmlDocument_())for(r=goog.global.document.getElementsByTagName("SCRIPT"),n=r.length-1;0<=n;--n){var t=r[n].src,i=t.lastIndexOf("?"),i=-1==i?t.length:i;if("base.js"==t.substr(i-7,7)){goog.basePath=t.substr(0,i-7);break}}},goog.importScript_=function(n,t){(goog.global.CLOSURE_IMPORT_SCRIPT||goog.writeScriptTag_)(n,t)&&(goog.dependencies_.written[n]=!0)},goog.IS_OLD_IE_=!(goog.global.atob||!goog.global.document||!goog.global.document.all),goog.importModule_=function(n){goog.importScript_("",'goog.retrieveAndExecModule_("'+n+'");')&&(goog.dependencies_.written[n]=!0)},goog.queuedModules_=[],goog.wrapModule_=function(n,t){return goog.LOAD_MODULE_USING_EVAL&&goog.isDef(goog.global.JSON)?"goog.loadModule("+goog.global.JSON.stringify(t+"\n//# sourceURL="+n+"\n")+");":'goog.loadModule(function(exports) {"use strict";'+t+"\n;return exports});\n//# sourceURL="+n+"\n"},goog.loadQueuedModules_=function(){var t=goog.queuedModules_.length,i,n;if(0<t)for(i=goog.queuedModules_,goog.queuedModules_=[],n=0;n<t;n++)goog.maybeProcessDeferredPath_(i[n])},goog.maybeProcessDeferredDep_=function(n){goog.isDeferredModule_(n)&&goog.allDepsAreAvailable_(n)&&(n=goog.getPathFromDeps_(n),goog.maybeProcessDeferredPath_(goog.basePath+n))},goog.isDeferredModule_=function(n){return(n=goog.getPathFromDeps_(n))&&goog.dependencies_.pathIsModule[n]?goog.basePath+n in goog.dependencies_.deferred:!1},goog.allDepsAreAvailable_=function(n){if((n=goog.getPathFromDeps_(n))&&n in goog.dependencies_.requires)for(var t in goog.dependencies_.requires[n])if(!goog.isProvided_(t)&&!goog.isDeferredModule_(t))return!1;return!0},goog.maybeProcessDeferredPath_=function(n){if(n in goog.dependencies_.deferred){var t=goog.dependencies_.deferred[n];delete goog.dependencies_.deferred[n],goog.globalEval(t)}},goog.loadModuleFromUrl=function(n){goog.retrieveAndExecModule_(n)},goog.loadModule=function(n){var r=goog.moduleLoaderState_,i,t;try{if(goog.moduleLoaderState_={moduleName:void 0,declareLegacyNamespace:!1},goog.isFunction(n))i=n.call(goog.global,{});else if(goog.isString(n))i=goog.loadModuleFromSource_.call(goog.global,n);else throw Error("Invalid module definition");if(t=goog.moduleLoaderState_.moduleName,!goog.isString(t)||!t)throw Error('Invalid module name "'+t+'"');goog.moduleLoaderState_.declareLegacyNamespace?goog.constructNamespace_(t,i):goog.SEAL_MODULE_EXPORTS&&Object.seal&&Object.seal(i),goog.loadedModules_[t]=i}finally{goog.moduleLoaderState_=r}},goog.loadModuleFromSource_=function(a){return eval(a),{}},goog.writeScriptSrcNode_=function(n){goog.global.document.write('<script type="text/javascript" src="'+n+'"><\/script>')},goog.appendScriptSrcNode_=function(n){var i=goog.global.document,t=i.createElement("script");t.type="text/javascript",t.src=n,t.defer=!1,t.async=!1,i.head.appendChild(t)},goog.writeScriptTag_=function(n,t){var i,r;if(goog.inHtmlDocument_()){if(i=goog.global.document,!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING&&"complete"==i.readyState){if(/\bdeps.js$/.test(n))return!1;throw Error('Cannot write "'+n+'" after document load');}return r=goog.IS_OLD_IE_,void 0===t?r?(r=" onreadystatechange='goog.onScriptLoad_(this, "+ ++goog.lastNonModuleScriptIndex_+")' ",i.write('<script type="text/javascript" src="'+n+'"'+r+"><\/script>")):goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING?goog.appendScriptSrcNode_(n):goog.writeScriptSrcNode_(n):i.write('<script type="text/javascript">'+t+"<\/script>"),!0}return!1},goog.lastNonModuleScriptIndex_=0,goog.onScriptLoad_=function(n,t){return"complete"==n.readyState&&goog.lastNonModuleScriptIndex_==t&&goog.loadQueuedModules_(),!0},goog.writeScripts_=function(n){function f(n){if(!(n in t.written||n in t.visited)){if(t.visited[n]=!0,n in t.requires)for(var i in t.requires[n])if(!goog.isProvided_(i))if(i in t.nameToPath)f(t.nameToPath[i]);else throw Error("Undefined nameToPath for "+i);n in e||(e[n]=!0,r.push(n))}}var r=[],e={},t=goog.dependencies_,i,u;for(f(n),n=0;n<r.length;n++)i=r[n],goog.dependencies_.written[i]=!0;for(u=goog.moduleLoaderState_,goog.moduleLoaderState_=null,n=0;n<r.length;n++)if(i=r[n])t.pathIsModule[i]?goog.importModule_(goog.basePath+i):goog.importScript_(goog.basePath+i);else throw goog.moduleLoaderState_=u,Error("Undefined script input");goog.moduleLoaderState_=u},goog.getPathFromDeps_=function(n){return n in goog.dependencies_.nameToPath?goog.dependencies_.nameToPath[n]:null},goog.findBasePath_(),goog.global.CLOSURE_NO_DEPS||goog.importScript_(goog.basePath+"deps.js")),goog.normalizePath_=function(n){n=n.split("/");for(var t=0;t<n.length;)"."==n[t]?n.splice(t,1):t&&".."==n[t]&&n[t-1]&&".."!=n[t-1]?n.splice(--t,2):t++;return n.join("/")},goog.loadFileSync_=function(n){if(goog.global.CLOSURE_LOAD_FILE_SYNC)return goog.global.CLOSURE_LOAD_FILE_SYNC(n);var t=new goog.global.XMLHttpRequest;return t.open("get",n,!1),t.send(),t.responseText},goog.retrieveAndExecModule_=function(n){var i,r,t;if(!COMPILED)if(i=n,n=goog.normalizePath_(n),r=goog.global.CLOSURE_IMPORT_SCRIPT||goog.writeScriptTag_,t=goog.loadFileSync_(n),null!=t)t=goog.wrapModule_(n,t),goog.IS_OLD_IE_?(goog.dependencies_.deferred[i]=t,goog.queuedModules_.push(i)):r(n,t);else throw Error("load of "+n+"failed");},goog.typeOf=function(n){var t=typeof n,i;if("object"==t)if(n){if(n instanceof Array)return"array";if(n instanceof Object)return t;if(i=Object.prototype.toString.call(n),"[object Window]"==i)return"object";if("[object Array]"==i||"number"==typeof n.length&&"undefined"!=typeof n.splice&&"undefined"!=typeof n.propertyIsEnumerable&&!n.propertyIsEnumerable("splice"))return"array";if("[object Function]"==i||"undefined"!=typeof n.call&&"undefined"!=typeof n.propertyIsEnumerable&&!n.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==t&&"undefined"==typeof n.call)return"object";return t},goog.isNull=function(n){return null===n},goog.isDefAndNotNull=function(n){return null!=n},goog.isArray=function(n){return"array"==goog.typeOf(n)},goog.isArrayLike=function(n){var t=goog.typeOf(n);return"array"==t||"object"==t&&"number"==typeof n.length},goog.isDateLike=function(n){return goog.isObject(n)&&"function"==typeof n.getFullYear},goog.isString=function(n){return"string"==typeof n},goog.isBoolean=function(n){return"boolean"==typeof n},goog.isNumber=function(n){return"number"==typeof n},goog.isFunction=function(n){return"function"==goog.typeOf(n)},goog.isObject=function(n){var t=typeof n;return"object"==t&&null!=n||"function"==t},goog.getUid=function(n){return n[goog.UID_PROPERTY_]||(n[goog.UID_PROPERTY_]=++goog.uidCounter_)},goog.hasUid=function(n){return!!n[goog.UID_PROPERTY_]},goog.removeUid=function(n){"removeAttribute"in n&&n.removeAttribute(goog.UID_PROPERTY_);try{delete n[goog.UID_PROPERTY_]}catch(t){}},goog.UID_PROPERTY_="closure_uid_"+(1e9*Math.random()>>>0),goog.uidCounter_=0,goog.getHashCode=goog.getUid,goog.removeHashCode=goog.removeUid,goog.cloneObject=function(n){var t=goog.typeOf(n),i;if("object"==t||"array"==t){if(n.clone)return n.clone();t="array"==t?[]:{};for(i in n)t[i]=goog.cloneObject(n[i]);return t}return n},goog.bindNative_=function(n){return n.call.apply(n.bind,arguments)},goog.bindJs_=function(n,t){if(!n)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var i=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(i,r),n.apply(t,i)}}return function(){return n.apply(t,arguments)}},goog.bind=function(){return goog.bind=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?goog.bindNative_:goog.bindJs_,goog.bind.apply(null,arguments)},goog.partial=function(n){var i=Array.prototype.slice.call(arguments,1);return function(){var t=i.slice();return t.push.apply(t,arguments),n.apply(this,t)}},goog.mixin=function(n,t){for(var i in t)n[i]=t[i]},goog.now=goog.TRUSTED_SITE&&Date.now||function(){return+new Date},goog.globalEval=function(n){if(goog.global.execScript)goog.global.execScript(n,"JavaScript");else if(goog.global.eval){if(null==goog.evalWorksForGlobals_)if(goog.global.eval("var _evalTest_ = 1;"),"undefined"!=typeof goog.global._evalTest_){try{delete goog.global._evalTest_}catch(r){}goog.evalWorksForGlobals_=!0}else goog.evalWorksForGlobals_=!1;if(goog.evalWorksForGlobals_)goog.global.eval(n);else{var i=goog.global.document,t=i.createElement("SCRIPT");t.type="text/javascript",t.defer=!1,t.appendChild(i.createTextNode(n)),i.body.appendChild(t),i.body.removeChild(t)}}else throw Error("goog.globalEval not available");},goog.evalWorksForGlobals_=null,goog.getCssName=function(n,t){var r=function(n){return goog.cssNameMapping_[n]||n},i=function(n){n=n.split("-");for(var i=[],t=0;t<n.length;t++)i.push(r(n[t]));return i.join("-")},i=goog.cssNameMapping_?"BY_WHOLE"==goog.cssNameMappingStyle_?r:i:function(n){return n};return t?n+"-"+i(t):i(n)},goog.setCssNameMapping=function(n,t){goog.cssNameMapping_=n,goog.cssNameMappingStyle_=t},!COMPILED&&goog.global.CLOSURE_CSS_NAME_MAPPING&&(goog.cssNameMapping_=goog.global.CLOSURE_CSS_NAME_MAPPING),goog.getMsg=function(n,t){return t&&(n=n.replace(/\{\$([^}]+)}/g,function(n,i){return null!=t&&i in t?t[i]:n})),n},goog.getMsgWithFallback=function(n){return n},goog.exportSymbol=function(n,t,i){goog.exportPath_(n,t,i)},goog.exportProperty=function(n,t,i){n[t]=i},goog.inherits=function(n,t){function i(){}i.prototype=t.prototype,n.superClass_=t.prototype,n.prototype=new i,n.prototype.constructor=n,n.base=function(n,i){for(var f=Array(arguments.length-2),u=2;u<arguments.length;u++)f[u-2]=arguments[u];return t.prototype[i].apply(n,f)}},goog.base=function(n,t){var e=arguments.callee.caller,u,r,f;if(goog.STRICT_MODE_COMPATIBLE||goog.DEBUG&&!e)throw Error("arguments.caller not defined.  goog.base() cannot be used with strict mode code. See http://www.ecma-international.org/ecma-262/5.1/#sec-C");if(e.superClass_){for(u=Array(arguments.length-1),r=1;r<arguments.length;r++)u[r-1]=arguments[r];return e.superClass_.constructor.apply(n,u)}for(u=Array(arguments.length-2),r=2;r<arguments.length;r++)u[r-2]=arguments[r];for(r=!1,f=n.constructor;f;f=f.superClass_&&f.superClass_.constructor)if(f.prototype[t]===e)r=!0;else if(r)return f.prototype[t].apply(n,u);if(n[t]===e)return n.constructor.prototype[t].apply(n,u);throw Error("goog.base called from a method of one name to a method of a different name");},goog.scope=function(n){n.call(goog.global)},COMPILED||(goog.global.COMPILED=COMPILED),goog.defineClass=function(n,t){var i=t.constructor,r=t.statics;return i&&i!=Object.prototype.constructor||(i=function(){throw Error("cannot instantiate an interface (no constructor defined).");}),i=goog.defineClass.createSealingConstructor_(i,n),n&&goog.inherits(i,n),delete t.constructor,delete t.statics,goog.defineClass.applyProperties_(i.prototype,t),null!=r&&(r instanceof Function?r(i):goog.defineClass.applyProperties_(i,r)),i},goog.defineClass.SEAL_CLASS_INSTANCES=goog.DEBUG,goog.defineClass.createSealingConstructor_=function(n,t){if(goog.defineClass.SEAL_CLASS_INSTANCES&&Object.seal instanceof Function){if(t&&t.prototype&&t.prototype[goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_])return n;var i=function(){var t=n.apply(this,arguments)||this;return t[goog.UID_PROPERTY_]=t[goog.UID_PROPERTY_],this.constructor===i&&Object.seal(t),t};return i}return n},goog.defineClass.OBJECT_PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),goog.defineClass.applyProperties_=function(n,t){var i,r;for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);for(r=0;r<goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length;r++)i=goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[r],Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},goog.tagUnsealableClass=function(n){!COMPILED&&goog.defineClass.SEAL_CLASS_INSTANCES&&(n.prototype[goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_]=!0)},goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_="goog_defineClass_legacy_unsealable",goog.string={},goog.string.StringBuffer=function(n){null!=n&&this.append.apply(this,arguments)},goog.string.StringBuffer.prototype.buffer_="",goog.string.StringBuffer.prototype.set=function(n){this.buffer_=""+n},goog.string.StringBuffer.prototype.append=function(n,t){if(this.buffer_+=n,null!=t)for(var r=1;r<arguments.length;r++)this.buffer_+=arguments[r];return this},goog.string.StringBuffer.prototype.clear=function(){this.buffer_=""},goog.string.StringBuffer.prototype.getLength=function(){return this.buffer_.length},goog.string.StringBuffer.prototype.toString=function(){return this.buffer_},goog.debug={},goog.debug.Error=function(n){if(Error.captureStackTrace)Error.captureStackTrace(this,goog.debug.Error);else{var t=Error().stack;t&&(this.stack=t)}n&&(this.message=String(n)),this.reportErrorToServer=!0},goog.inherits(goog.debug.Error,Error),goog.debug.Error.prototype.name="CustomError",goog.dom={},goog.dom.NodeType={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12},goog.string.DETECT_DOUBLE_ESCAPING=!1,goog.string.FORCE_NON_DOM_HTML_UNESCAPING=!1,goog.string.Unicode={NBSP:" "},goog.string.startsWith=function(n,t){return 0==n.lastIndexOf(t,0)},goog.string.endsWith=function(n,t){var i=n.length-t.length;return 0<=i&&n.indexOf(t,i)==i},goog.string.caseInsensitiveStartsWith=function(n,t){return 0==goog.string.caseInsensitiveCompare(t,n.substr(0,t.length))},goog.string.caseInsensitiveEndsWith=function(n,t){return 0==goog.string.caseInsensitiveCompare(t,n.substr(n.length-t.length,t.length))},goog.string.caseInsensitiveEquals=function(n,t){return n.toLowerCase()==t.toLowerCase()},goog.string.subs=function(n){for(var i=n.split("%s"),r="",u=Array.prototype.slice.call(arguments,1);u.length&&1<i.length;)r+=i.shift()+u.shift();return r+i.join("%s")},goog.string.collapseWhitespace=function(n){return n.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},goog.string.isEmptyOrWhitespace=function(n){return/^[\s\xa0]*$/.test(n)},goog.string.isEmptyString=function(n){return 0==n.length},goog.string.isEmpty=goog.string.isEmptyOrWhitespace,goog.string.isEmptyOrWhitespaceSafe=function(n){return goog.string.isEmptyOrWhitespace(goog.string.makeSafe(n))},goog.string.isEmptySafe=goog.string.isEmptyOrWhitespaceSafe,goog.string.isBreakingWhitespace=function(n){return!/[^\t\n\r ]/.test(n)},goog.string.isAlpha=function(n){return!/[^a-zA-Z]/.test(n)},goog.string.isNumeric=function(n){return!/[^0-9]/.test(n)},goog.string.isAlphaNumeric=function(n){return!/[^a-zA-Z0-9]/.test(n)},goog.string.isSpace=function(n){return" "==n},goog.string.isUnicodeChar=function(n){return 1==n.length&&" "<=n&&"~">=n||""<=n&&"�">=n},goog.string.stripNewlines=function(n){return n.replace(/(\r\n|\r|\n)+/g," ")},goog.string.canonicalizeNewlines=function(n){return n.replace(/(\r\n|\r|\n)/g,"\n")},goog.string.normalizeWhitespace=function(n){return n.replace(/\xa0|\s/g," ")},goog.string.normalizeSpaces=function(n){return n.replace(/\xa0|[ \t]+/g," ")},goog.string.collapseBreakingSpaces=function(n){return n.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")},goog.string.trim=goog.TRUSTED_SITE&&String.prototype.trim?function(n){return n.trim()}:function(n){return n.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},goog.string.trimLeft=function(n){return n.replace(/^[\s\xa0]+/,"")},goog.string.trimRight=function(n){return n.replace(/[\s\xa0]+$/,"")},goog.string.caseInsensitiveCompare=function(n,t){var i=String(n).toLowerCase(),r=String(t).toLowerCase();return i<r?-1:i==r?0:1},goog.string.numberAwareCompare_=function(n,t,i){var e;if(n==t)return 0;if(!n)return-1;if(!t)return 1;for(var r=n.toLowerCase().match(i),u=t.toLowerCase().match(i),o=Math.min(r.length,u.length),f=0;f<o;f++)if(i=r[f],e=u[f],i!=e)return n=parseInt(i,10),!isNaN(n)&&(t=parseInt(e,10),!isNaN(t)&&n-t)?n-t:i<e?-1:1;return r.length!=u.length?r.length-u.length:n<t?-1:1},goog.string.intAwareCompare=function(n,t){return goog.string.numberAwareCompare_(n,t,/\d+|\D+/g)},goog.string.floatAwareCompare=function(n,t){return goog.string.numberAwareCompare_(n,t,/\d+|\.\d+|\D+/g)},goog.string.numerateCompare=goog.string.floatAwareCompare,goog.string.urlEncode=function(n){return encodeURIComponent(String(n))},goog.string.urlDecode=function(n){return decodeURIComponent(n.replace(/\+/g," "))},goog.string.newLineToBr=function(n,t){return n.replace(/(\r\n|\r|\n)/g,t?"<br />":"<br>")},goog.string.htmlEscape=function(n,t){if(t)n=n.replace(goog.string.AMP_RE_,"&amp;").replace(goog.string.LT_RE_,"&lt;").replace(goog.string.GT_RE_,"&gt;").replace(goog.string.QUOT_RE_,"&quot;").replace(goog.string.SINGLE_QUOTE_RE_,"&#39;").replace(goog.string.NULL_RE_,"&#0;"),goog.string.DETECT_DOUBLE_ESCAPING&&(n=n.replace(goog.string.E_RE_,"&#101;"));else{if(!goog.string.ALL_RE_.test(n))return n;-1!=n.indexOf("&")&&(n=n.replace(goog.string.AMP_RE_,"&amp;")),-1!=n.indexOf("<")&&(n=n.replace(goog.string.LT_RE_,"&lt;")),-1!=n.indexOf(">")&&(n=n.replace(goog.string.GT_RE_,"&gt;")),-1!=n.indexOf('"')&&(n=n.replace(goog.string.QUOT_RE_,"&quot;")),-1!=n.indexOf("'")&&(n=n.replace(goog.string.SINGLE_QUOTE_RE_,"&#39;")),-1!=n.indexOf("\x00")&&(n=n.replace(goog.string.NULL_RE_,"&#0;")),goog.string.DETECT_DOUBLE_ESCAPING&&-1!=n.indexOf("e")&&(n=n.replace(goog.string.E_RE_,"&#101;"))}return n},goog.string.AMP_RE_=/&/g,goog.string.LT_RE_=/</g,goog.string.GT_RE_=/>/g,goog.string.QUOT_RE_=/"/g,goog.string.SINGLE_QUOTE_RE_=/'/g,goog.string.NULL_RE_=/\x00/g,goog.string.E_RE_=/e/g,goog.string.ALL_RE_=goog.string.DETECT_DOUBLE_ESCAPING?/[\x00&<>"'e]/:/[\x00&<>"']/,goog.string.unescapeEntities=function(n){return goog.string.contains(n,"&")?!goog.string.FORCE_NON_DOM_HTML_UNESCAPING&&"document"in goog.global?goog.string.unescapeEntitiesUsingDom_(n):goog.string.unescapePureXmlEntities_(n):n},goog.string.unescapeEntitiesWithDocument=function(n,t){return goog.string.contains(n,"&")?goog.string.unescapeEntitiesUsingDom_(n,t):n},goog.string.unescapeEntitiesUsingDom_=function(n,t){var r={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},i;return i=t?t.createElement("div"):goog.global.document.createElement("div"),n.replace(goog.string.HTML_ENTITY_PATTERN_,function(n,t){var u=r[n],f;return u?u:("#"==t.charAt(0)&&(f=Number("0"+t.substr(1)),isNaN(f)||(u=String.fromCharCode(f))),u||(i.innerHTML=n+" ",u=i.firstChild.nodeValue.slice(0,-1)),r[n]=u)})},goog.string.unescapePureXmlEntities_=function(n){return n.replace(/&([^;]+);/g,function(n,t){switch(t){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';default:if("#"==t.charAt(0)){var i=Number("0"+t.substr(1));if(!isNaN(i))return String.fromCharCode(i)}return n}})},goog.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g,goog.string.whitespaceEscape=function(n,t){return goog.string.newLineToBr(n.replace(/  /g," &#160;"),t)},goog.string.preserveSpaces=function(n){return n.replace(/(^|[\n ]) /g,"$1"+goog.string.Unicode.NBSP)},goog.string.stripQuotes=function(n,t){for(var u,r=t.length,i=0;i<r;i++)if(u=1==r?t:t.charAt(i),n.charAt(0)==u&&n.charAt(n.length-1)==u)return n.substring(1,n.length-1);return n},goog.string.truncate=function(n,t,i){return i&&(n=goog.string.unescapeEntities(n)),n.length>t&&(n=n.substring(0,t-3)+"..."),i&&(n=goog.string.htmlEscape(n)),n},goog.string.truncateMiddle=function(n,t,i,r){if(i&&(n=goog.string.unescapeEntities(n)),r&&n.length>t){r>t&&(r=t);var u=n.length-r;n=n.substring(0,t-r)+"..."+n.substring(u)}else n.length>t&&(r=Math.floor(t/2),u=n.length-r,n=n.substring(0,r+t%2)+"..."+n.substring(u));return i&&(n=goog.string.htmlEscape(n)),n},goog.string.specialEscapeChars_={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0b":"\\x0B",'"':'\\"',"\\":"\\\\"},goog.string.jsEscapeCache_={"'":"\\'"},goog.string.quote=function(n){var r,t,i,u;if(n=String(n),n.quote)return n.quote();for(r=['"'],t=0;t<n.length;t++)i=n.charAt(t),u=i.charCodeAt(0),r[t+1]=goog.string.specialEscapeChars_[i]||(31<u&&127>u?i:goog.string.escapeChar(i));return r.push('"'),r.join("")},goog.string.escapeString=function(n){for(var i=[],t=0;t<n.length;t++)i[t]=goog.string.escapeChar(n.charAt(t));return i.join("")},goog.string.escapeChar=function(n){if(n in goog.string.jsEscapeCache_)return goog.string.jsEscapeCache_[n];if(n in goog.string.specialEscapeChars_)return goog.string.jsEscapeCache_[n]=goog.string.specialEscapeChars_[n];var t=n,i=n.charCodeAt(0);return 31<i&&127>i?t=n:(256>i?(t="\\x",16>i||256<i)&&(t+="0"):(t="\\u",4096>i&&(t+="0")),t+=i.toString(16).toUpperCase()),goog.string.jsEscapeCache_[n]=t},goog.string.contains=function(n,t){return-1!=n.indexOf(t)},goog.string.caseInsensitiveContains=function(n,t){return goog.string.contains(n.toLowerCase(),t.toLowerCase())},goog.string.countOf=function(n,t){return n&&t?n.split(t).length-1:0},goog.string.removeAt=function(n,t,i){var r=n;return 0<=t&&t<n.length&&0<i&&(r=n.substr(0,t)+n.substr(t+i,n.length-t-i)),r},goog.string.remove=function(n,t){var i=new RegExp(goog.string.regExpEscape(t),"");return n.replace(i,"")},goog.string.removeAll=function(n,t){var i=new RegExp(goog.string.regExpEscape(t),"g");return n.replace(i,"")},goog.string.regExpEscape=function(n){return String(n).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},goog.string.repeat=String.prototype.repeat?function(n,t){return n.repeat(t)}:function(n,t){return Array(t+1).join(n)},goog.string.padNumber=function(n,t,i){return n=goog.isDef(i)?n.toFixed(i):String(n),i=n.indexOf("."),-1==i&&(i=n.length),goog.string.repeat("0",Math.max(0,t-i))+n},goog.string.makeSafe=function(n){return null==n?"":String(n)},goog.string.buildString=function(){return Array.prototype.join.call(arguments,"")},goog.string.getRandomString=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^goog.now()).toString(36)},goog.string.compareVersions=function(n,t){for(var i,r,f=0,e=goog.string.trim(String(n)).split("."),o=goog.string.trim(String(t)).split("."),s=Math.max(e.length,o.length),u=0;0==f&&u<s;u++){var h=e[u]||"",c=o[u]||"",l=RegExp("(\\d*)(\\D*)","g"),a=RegExp("(\\d*)(\\D*)","g");do{if(i=l.exec(h)||["","",""],r=a.exec(c)||["","",""],0==i[0].length&&0==r[0].length)break;var f=0==i[1].length?0:parseInt(i[1],10),v=0==r[1].length?0:parseInt(r[1],10),f=goog.string.compareElements_(f,v)||goog.string.compareElements_(0==i[2].length,0==r[2].length)||goog.string.compareElements_(i[2],r[2])}while(0==f)}return f},goog.string.compareElements_=function(n,t){return n<t?-1:n>t?1:0},goog.string.hashCode=function(n){for(var t=0,i=0;i<n.length;++i)t=31*t+n.charCodeAt(i)>>>0;return t},goog.string.uniqueStringCounter_=2147483648*Math.random()|0,goog.string.createUniqueString=function(){return"goog_"+goog.string.uniqueStringCounter_++},goog.string.toNumber=function(n){var t=Number(n);return 0==t&&goog.string.isEmptyOrWhitespace(n)?NaN:t},goog.string.isLowerCamelCase=function(n){return/^[a-z]+([A-Z][a-z]*)*$/.test(n)},goog.string.isUpperCamelCase=function(n){return/^([A-Z][a-z]*)+$/.test(n)},goog.string.toCamelCase=function(n){return String(n).replace(/\-([a-z])/g,function(n,t){return t.toUpperCase()})},goog.string.toSelectorCase=function(n){return String(n).replace(/([A-Z])/g,"-$1").toLowerCase()},goog.string.toTitleCase=function(n,t){var i=goog.isString(t)?goog.string.regExpEscape(t):"\\s";return n.replace(new RegExp("(^"+(i?"|["+i+"]+":"")+")([a-z])","g"),function(n,t,i){return t+i.toUpperCase()})},goog.string.capitalize=function(n){return String(n.charAt(0)).toUpperCase()+String(n.substr(1)).toLowerCase()},goog.string.parseInt=function(n){return isFinite(n)&&(n=String(n)),goog.isString(n)?/^\s*-?0x/i.test(n)?parseInt(n,16):parseInt(n,10):NaN},goog.string.splitLimit=function(n,t,i){n=n.split(t);for(var r=[];0<i&&n.length;)r.push(n.shift()),i--;return n.length&&r.push(n.join(t)),r},goog.string.editDistance=function(n,t){var u=[],f=[],r,i;if(n==t)return 0;if(!n.length||!t.length)return Math.max(n.length,t.length);for(r=0;r<t.length+1;r++)u[r]=r;for(r=0;r<n.length;r++){for(f[0]=r+1,i=0;i<t.length;i++)f[i+1]=Math.min(f[i]+1,u[i+1]+1,u[i]+(n[r]!=t[i]));for(i=0;i<u.length;i++)u[i]=f[i]}return f[t.length]},goog.asserts={},goog.asserts.ENABLE_ASSERTS=goog.DEBUG,goog.asserts.AssertionError=function(n,t){t.unshift(n),goog.debug.Error.call(this,goog.string.subs.apply(null,t)),t.shift(),this.messagePattern=n},goog.inherits(goog.asserts.AssertionError,goog.debug.Error),goog.asserts.AssertionError.prototype.name="AssertionError",goog.asserts.DEFAULT_ERROR_HANDLER=function(n){throw n;},goog.asserts.errorHandler_=goog.asserts.DEFAULT_ERROR_HANDLER,goog.asserts.doAssertFailure_=function(n,t,i,r){var u="Assertion failed",f;i?(u=u+(": "+i),f=r):n&&(u+=": "+n,f=t),n=new goog.asserts.AssertionError(""+u,f||[]),goog.asserts.errorHandler_(n)},goog.asserts.setErrorHandler=function(n){goog.asserts.ENABLE_ASSERTS&&(goog.asserts.errorHandler_=n)},goog.asserts.assert=function(n,t){return goog.asserts.ENABLE_ASSERTS&&!n&&goog.asserts.doAssertFailure_("",null,t,Array.prototype.slice.call(arguments,2)),n},goog.asserts.fail=function(n){goog.asserts.ENABLE_ASSERTS&&goog.asserts.errorHandler_(new goog.asserts.AssertionError("Failure"+(n?": "+n:""),Array.prototype.slice.call(arguments,1)))},goog.asserts.assertNumber=function(n,t){return goog.asserts.ENABLE_ASSERTS&&!goog.isNumber(n)&&goog.asserts.doAssertFailure_("Expected number but got %s: %s.",[goog.typeOf(n),n],t,Array.prototype.slice.call(arguments,2)),n},goog.asserts.assertString=function(n,t){return goog.asserts.ENABLE_ASSERTS&&!goog.isString(n)&&goog.asserts.doAssertFailure_("Expected string but got %s: %s.",[goog.typeOf(n),n],t,Array.prototype.slice.call(arguments,2)),n},goog.asserts.assertFunction=function(n,t){return goog.asserts.ENABLE_ASSERTS&&!goog.isFunction(n)&&goog.asserts.doAssertFailure_("Expected function but got %s: %s.",[goog.typeOf(n),n],t,Array.prototype.slice.call(arguments,2)),n},goog.asserts.assertObject=function(n,t){return goog.asserts.ENABLE_ASSERTS&&!goog.isObject(n)&&goog.asserts.doAssertFailure_("Expected object but got %s: %s.",[goog.typeOf(n),n],t,Array.prototype.slice.call(arguments,2)),n},goog.asserts.assertArray=function(n,t){return goog.asserts.ENABLE_ASSERTS&&!goog.isArray(n)&&goog.asserts.doAssertFailure_("Expected array but got %s: %s.",[goog.typeOf(n),n],t,Array.prototype.slice.call(arguments,2)),n},goog.asserts.assertBoolean=function(n,t){return goog.asserts.ENABLE_ASSERTS&&!goog.isBoolean(n)&&goog.asserts.doAssertFailure_("Expected boolean but got %s: %s.",[goog.typeOf(n),n],t,Array.prototype.slice.call(arguments,2)),n},goog.asserts.assertElement=function(n,t){return!goog.asserts.ENABLE_ASSERTS||goog.isObject(n)&&n.nodeType==goog.dom.NodeType.ELEMENT||goog.asserts.doAssertFailure_("Expected Element but got %s: %s.",[goog.typeOf(n),n],t,Array.prototype.slice.call(arguments,2)),n},goog.asserts.assertInstanceof=function(n,t,i){return!goog.asserts.ENABLE_ASSERTS||n instanceof t||goog.asserts.doAssertFailure_("Expected instanceof %s but got %s.",[goog.asserts.getType_(t),goog.asserts.getType_(n)],i,Array.prototype.slice.call(arguments,3)),n},goog.asserts.assertObjectPrototypeIsIntact=function(){for(var n in Object.prototype)goog.asserts.fail(n+" should not be enumerable in Object.prototype.")},goog.asserts.getType_=function(n){return n instanceof Function?n.displayName||n.name||"unknown type name":n instanceof Object?n.constructor.displayName||n.constructor.name||Object.prototype.toString.call(n):null===n?"null":typeof n},goog.array={},goog.NATIVE_ARRAY_PROTOTYPES=goog.TRUSTED_SITE,goog.array.ASSUME_NATIVE_FUNCTIONS=!1,goog.array.peek=function(n){return n[n.length-1]},goog.array.last=goog.array.peek,goog.array.ARRAY_PROTOTYPE_=Array.prototype,goog.array.indexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.indexOf)?function(n,t,i){return goog.asserts.assert(null!=n.length),goog.array.ARRAY_PROTOTYPE_.indexOf.call(n,t,i)}:function(n,t,i){if(i=null==i?0:0>i?Math.max(0,n.length+i):i,goog.isString(n))return goog.isString(t)&&1==t.length?n.indexOf(t,i):-1;for(;i<n.length;i++)if(i in n&&n[i]===t)return i;return-1},goog.array.lastIndexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.lastIndexOf)?function(n,t,i){return goog.asserts.assert(null!=n.length),goog.array.ARRAY_PROTOTYPE_.lastIndexOf.call(n,t,null==i?n.length-1:i)}:function(n,t,i){if(i=null==i?n.length-1:i,0>i&&(i=Math.max(0,n.length+i)),goog.isString(n))return goog.isString(t)&&1==t.length?n.lastIndexOf(t,i):-1;for(;0<=i;i--)if(i in n&&n[i]===t)return i;return-1},goog.array.forEach=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.forEach)?function(n,t,i){goog.asserts.assert(null!=n.length),goog.array.ARRAY_PROTOTYPE_.forEach.call(n,t,i)}:function(n,t,i){for(var f=n.length,u=goog.isString(n)?n.split(""):n,r=0;r<f;r++)r in u&&t.call(i,u[r],r,n)},goog.array.forEachRight=function(n,t,i){for(var r=n.length,u=goog.isString(n)?n.split(""):n,r=r-1;0<=r;--r)r in u&&t.call(i,u[r],r,n)},goog.array.filter=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.filter)?function(n,t,i){return goog.asserts.assert(null!=n.length),goog.array.ARRAY_PROTOTYPE_.filter.call(n,t,i)}:function(n,t,i){for(var u,o=n.length,f=[],s=0,e=goog.isString(n)?n.split(""):n,r=0;r<o;r++)r in e&&(u=e[r],t.call(i,u,r,n)&&(f[s++]=u));return f},goog.array.map=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.map)?function(n,t,i){return goog.asserts.assert(null!=n.length),goog.array.ARRAY_PROTOTYPE_.map.call(n,t,i)}:function(n,t,i){for(var u=n.length,f=Array(u),e=goog.isString(n)?n.split(""):n,r=0;r<u;r++)r in e&&(f[r]=t.call(i,e[r],r,n));return f},goog.array.reduce=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.reduce)?function(n,t,i,r){return goog.asserts.assert(null!=n.length),r&&(t=goog.bind(t,r)),goog.array.ARRAY_PROTOTYPE_.reduce.call(n,t,i)}:function(n,t,i,r){var u=i;return goog.array.forEach(n,function(i,f){u=t.call(r,u,i,f,n)}),u},goog.array.reduceRight=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.reduceRight)?function(n,t,i,r){return goog.asserts.assert(null!=n.length),r&&(t=goog.bind(t,r)),goog.array.ARRAY_PROTOTYPE_.reduceRight.call(n,t,i)}:function(n,t,i,r){var u=i;return goog.array.forEachRight(n,function(i,f){u=t.call(r,u,i,f,n)}),u},goog.array.some=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.some)?function(n,t,i){return goog.asserts.assert(null!=n.length),goog.array.ARRAY_PROTOTYPE_.some.call(n,t,i)}:function(n,t,i){for(var f=n.length,u=goog.isString(n)?n.split(""):n,r=0;r<f;r++)if(r in u&&t.call(i,u[r],r,n))return!0;return!1},goog.array.every=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.every)?function(n,t,i){return goog.asserts.assert(null!=n.length),goog.array.ARRAY_PROTOTYPE_.every.call(n,t,i)}:function(n,t,i){for(var f=n.length,u=goog.isString(n)?n.split(""):n,r=0;r<f;r++)if(r in u&&!t.call(i,u[r],r,n))return!1;return!0},goog.array.count=function(n,t,i){var r=0;return goog.array.forEach(n,function(n,u,f){t.call(i,n,u,f)&&++r},i),r},goog.array.find=function(n,t,i){return t=goog.array.findIndex(n,t,i),0>t?null:goog.isString(n)?n.charAt(t):n[t]},goog.array.findIndex=function(n,t,i){for(var f=n.length,u=goog.isString(n)?n.split(""):n,r=0;r<f;r++)if(r in u&&t.call(i,u[r],r,n))return r;return-1},goog.array.findRight=function(n,t,i){return t=goog.array.findIndexRight(n,t,i),0>t?null:goog.isString(n)?n.charAt(t):n[t]},goog.array.findIndexRight=function(n,t,i){for(var r=n.length,u=goog.isString(n)?n.split(""):n,r=r-1;0<=r;r--)if(r in u&&t.call(i,u[r],r,n))return r;return-1},goog.array.contains=function(n,t){return 0<=goog.array.indexOf(n,t)},goog.array.isEmpty=function(n){return 0==n.length},goog.array.clear=function(n){if(!goog.isArray(n))for(var t=n.length-1;0<=t;t--)delete n[t];n.length=0},goog.array.insert=function(n,t){goog.array.contains(n,t)||n.push(t)},goog.array.insertAt=function(n,t,i){goog.array.splice(n,i,0,t)},goog.array.insertArrayAt=function(n,t,i){goog.partial(goog.array.splice,n,i,0).apply(null,t)},goog.array.insertBefore=function(n,t,i){var r;2==arguments.length||0>(r=goog.array.indexOf(n,i))?n.push(t):goog.array.insertAt(n,t,r)},goog.array.remove=function(n,t){var i=goog.array.indexOf(n,t),r;return(r=0<=i)&&goog.array.removeAt(n,i),r},goog.array.removeAt=function(n,t){return goog.asserts.assert(null!=n.length),1==goog.array.ARRAY_PROTOTYPE_.splice.call(n,t,1).length},goog.array.removeIf=function(n,t,i){return t=goog.array.findIndex(n,t,i),0<=t?(goog.array.removeAt(n,t),!0):!1},goog.array.removeAllIf=function(n,t,i){var r=0;return goog.array.forEachRight(n,function(u,f){t.call(i,u,f,n)&&goog.array.removeAt(n,f)&&r++}),r},goog.array.concat=function(){return goog.array.ARRAY_PROTOTYPE_.concat.apply(goog.array.ARRAY_PROTOTYPE_,arguments)},goog.array.join=function(){return goog.array.ARRAY_PROTOTYPE_.concat.apply(goog.array.ARRAY_PROTOTYPE_,arguments)},goog.array.toArray=function(n){var i=n.length,r,t;if(0<i){for(r=Array(i),t=0;t<i;t++)r[t]=n[t];return r}return[]},goog.array.clone=goog.array.toArray,goog.array.extend=function(n){for(var i,f,e,r,u=1;u<arguments.length;u++)if(i=arguments[u],goog.isArrayLike(i))for(f=n.length||0,e=i.length||0,n.length=f+e,r=0;r<e;r++)n[f+r]=i[r];else n.push(i)},goog.array.splice=function(n){return goog.asserts.assert(null!=n.length),goog.array.ARRAY_PROTOTYPE_.splice.apply(n,goog.array.slice(arguments,1))},goog.array.slice=function(n,t,i){return goog.asserts.assert(null!=n.length),2>=arguments.length?goog.array.ARRAY_PROTOTYPE_.slice.call(n,t):goog.array.ARRAY_PROTOTYPE_.slice.call(n,t,i)},goog.array.removeDuplicates=function(n,t,i){var r,u,f;t=t||n,r=function(n){return goog.isObject(n)?"o"+goog.getUid(n):(typeof n).charAt(0)+n},i=i||r;for(var r={},e=0,o=0;o<n.length;)u=n[o++],f=i(u),Object.prototype.hasOwnProperty.call(r,f)||(r[f]=!0,t[e++]=u);t.length=e},goog.array.binarySearch=function(n,t,i){return goog.array.binarySearch_(n,i||goog.array.defaultCompare,!1,t)},goog.array.binarySelect=function(n,t,i){return goog.array.binarySearch_(n,t,!0,void 0,i)},goog.array.binarySearch_=function(n,t,i,r,u){for(var h,e,s,f=0,o=n.length;f<o;)e=f+o>>1,s=i?t.call(u,n[e],e,n):t(r,n[e]),0<s?f=e+1:(o=e,h=!s);return h?f:~f},goog.array.sort=function(n,t){n.sort(t||goog.array.defaultCompare)},goog.array.stableSort=function(n,t){for(var r,i=0;i<n.length;i++)n[i]={index:i,value:n[i]};for(r=t||goog.array.defaultCompare,goog.array.sort(n,function(n,t){return r(n.value,t.value)||n.index-t.index}),i=0;i<n.length;i++)n[i]=n[i].value},goog.array.sortByKey=function(n,t,i){var r=i||goog.array.defaultCompare;goog.array.sort(n,function(n,i){return r(t(n),t(i))})},goog.array.sortObjectsByKey=function(n,t,i){goog.array.sortByKey(n,function(n){return n[t]},i)},goog.array.isSorted=function(n,t,i){var r,u;for(t=t||goog.array.defaultCompare,r=1;r<n.length;r++)if(u=t(n[r-1],n[r]),0<u||0==u&&i)return!1;return!0},goog.array.equals=function(n,t,i){var u,r;if(!goog.isArrayLike(n)||!goog.isArrayLike(t)||n.length!=t.length)return!1;for(u=n.length,i=i||goog.array.defaultCompareEquality,r=0;r<u;r++)if(!i(n[r],t[r]))return!1;return!0},goog.array.compare3=function(n,t,i){var f,r,u;for(i=i||goog.array.defaultCompare,f=Math.min(n.length,t.length),r=0;r<f;r++)if(u=i(n[r],t[r]),0!=u)return u;return goog.array.defaultCompare(n.length,t.length)},goog.array.defaultCompare=function(n,t){return n>t?1:n<t?-1:0},goog.array.inverseDefaultCompare=function(n,t){return-goog.array.defaultCompare(n,t)},goog.array.defaultCompareEquality=function(n,t){return n===t},goog.array.binaryInsert=function(n,t,i){return i=goog.array.binarySearch(n,t,i),0>i?(goog.array.insertAt(n,t,-(i+1)),!0):!1},goog.array.binaryRemove=function(n,t,i){return t=goog.array.binarySearch(n,t,i),0<=t?goog.array.removeAt(n,t):!1},goog.array.bucket=function(n,t,i){for(var e,f,u={},r=0;r<n.length;r++)e=n[r],f=t.call(i,e,r,n),goog.isDef(f)&&(u[f]||(u[f]=[])).push(e);return u},goog.array.toObject=function(n,t,i){var r={};return goog.array.forEach(n,function(u,f){r[t.call(i,u,f,n)]=u}),r},goog.array.range=function(n,t,i){var f=[],r=0,u=n;if(i=i||1,void 0!==t&&(r=n,u=t),0>i*(u-r))return[];if(0<i)for(n=r;n<u;n+=i)f.push(n);else for(n=r;n>u;n+=i)f.push(n);return f},goog.array.repeat=function(n,t){for(var r=[],i=0;i<t;i++)r[i]=n;return r},goog.array.flatten=function(){for(var t,i,r=[],u=0;u<arguments.length;u++)if(t=arguments[u],goog.isArray(t))for(i=0;i<t.length;i+=8192)for(var f=goog.array.slice(t,i,i+8192),f=goog.array.flatten.apply(null,f),e=0;e<f.length;e++)r.push(f[e]);else r.push(t);return r},goog.array.rotate=function(n,t){return goog.asserts.assert(null!=n.length),n.length&&(t%=n.length,0<t?goog.array.ARRAY_PROTOTYPE_.unshift.apply(n,n.splice(-t,t)):0>t&&goog.array.ARRAY_PROTOTYPE_.push.apply(n,n.splice(0,-t))),n},goog.array.moveItem=function(n,t,i){goog.asserts.assert(0<=t&&t<n.length),goog.asserts.assert(0<=i&&i<n.length),t=goog.array.ARRAY_PROTOTYPE_.splice.call(n,t,1),goog.array.ARRAY_PROTOTYPE_.splice.call(n,i,0,t[0])},goog.array.zip=function(){var u,i;if(!arguments.length)return[];for(var f=[],r=arguments[0].length,t=1;t<arguments.length;t++)arguments[t].length<r&&(r=arguments[t].length);for(t=0;t<r;t++){for(u=[],i=0;i<arguments.length;i++)u.push(arguments[i][t]);f.push(u)}return f},goog.array.shuffle=function(n,t){for(var r,f,u=t||Math.random,i=n.length-1;0<i;i--)r=Math.floor(u()*(i+1)),f=n[i],n[i]=n[r],n[r]=f},goog.array.copyByIndex=function(n,t){var i=[];return goog.array.forEach(t,function(t){i.push(n[t])}),i},goog.proto2={},goog.proto2.FieldDescriptor=function(n,t,i){this.parent_=n,goog.asserts.assert(goog.string.isNumeric(t)),this.tag_=t,this.name_=i.name,this.isPacked_=!!i.packed,this.isRepeated_=!!i.repeated,this.isRequired_=!!i.required,this.fieldType_=i.fieldType,this.nativeType_=i.type,this.deserializationConversionPermitted_=!1;switch(this.fieldType_){case goog.proto2.FieldDescriptor.FieldType.INT64:case goog.proto2.FieldDescriptor.FieldType.UINT64:case goog.proto2.FieldDescriptor.FieldType.FIXED64:case goog.proto2.FieldDescriptor.FieldType.SFIXED64:case goog.proto2.FieldDescriptor.FieldType.SINT64:case goog.proto2.FieldDescriptor.FieldType.FLOAT:case goog.proto2.FieldDescriptor.FieldType.DOUBLE:this.deserializationConversionPermitted_=!0}this.defaultValue_=i.defaultValue},goog.proto2.FieldDescriptor.FieldType={DOUBLE:1,FLOAT:2,INT64:3,UINT64:4,INT32:5,FIXED64:6,FIXED32:7,BOOL:8,STRING:9,GROUP:10,MESSAGE:11,BYTES:12,UINT32:13,ENUM:14,SFIXED32:15,SFIXED64:16,SINT32:17,SINT64:18},goog.proto2.FieldDescriptor.prototype.getTag=function(){return this.tag_},goog.proto2.FieldDescriptor.prototype.getContainingType=function(){return this.parent_.prototype.getDescriptor()},goog.proto2.FieldDescriptor.prototype.getName=function(){return this.name_},goog.proto2.FieldDescriptor.prototype.getDefaultValue=function(){if(void 0===this.defaultValue_){var n=this.nativeType_;if(n===Boolean)this.defaultValue_=!1;else if(n===Number)this.defaultValue_=0;else if(n===String)this.defaultValue_=this.deserializationConversionPermitted_?"0":"";else return new n}return this.defaultValue_},goog.proto2.FieldDescriptor.prototype.getFieldType=function(){return this.fieldType_},goog.proto2.FieldDescriptor.prototype.getNativeType=function(){return this.nativeType_},goog.proto2.FieldDescriptor.prototype.deserializationConversionPermitted=function(){return this.deserializationConversionPermitted_},goog.proto2.FieldDescriptor.prototype.getFieldMessageType=function(){return this.nativeType_.prototype.getDescriptor()},goog.proto2.FieldDescriptor.prototype.isCompositeType=function(){return this.fieldType_==goog.proto2.FieldDescriptor.FieldType.MESSAGE||this.fieldType_==goog.proto2.FieldDescriptor.FieldType.GROUP},goog.proto2.FieldDescriptor.prototype.isPacked=function(){return this.isPacked_},goog.proto2.FieldDescriptor.prototype.isRepeated=function(){return this.isRepeated_},goog.proto2.FieldDescriptor.prototype.isRequired=function(){return this.isRequired_},goog.proto2.FieldDescriptor.prototype.isOptional=function(){return!this.isRepeated_&&!this.isRequired_},goog.object={},goog.object.forEach=function(n,t,i){for(var r in n)t.call(i,n[r],r,n)},goog.object.filter=function(n,t,i){var u={},r;for(r in n)t.call(i,n[r],r,n)&&(u[r]=n[r]);return u},goog.object.map=function(n,t,i){var u={},r;for(r in n)u[r]=t.call(i,n[r],r,n);return u},goog.object.some=function(n,t,i){for(var r in n)if(t.call(i,n[r],r,n))return!0;return!1},goog.object.every=function(n,t,i){for(var r in n)if(!t.call(i,n[r],r,n))return!1;return!0},goog.object.getCount=function(n){var t=0,i;for(i in n)t++;return t},goog.object.getAnyKey=function(n){for(var t in n)return t},goog.object.getAnyValue=function(n){for(var t in n)return n[t]},goog.object.contains=function(n,t){return goog.object.containsValue(n,t)},goog.object.getValues=function(n){var t=[],r=0,i;for(i in n)t[r++]=n[i];return t},goog.object.getKeys=function(n){var t=[],r=0,i;for(i in n)t[r++]=i;return t},goog.object.getValueByKeys=function(n,t){for(var i=goog.isArrayLike(t),r=i?t:arguments,i=i?0:1;i<r.length&&(n=n[r[i]],goog.isDef(n));i++);return n},goog.object.containsKey=function(n,t){return null!==n&&t in n},goog.object.containsValue=function(n,t){for(var i in n)if(n[i]==t)return!0;return!1},goog.object.findKey=function(n,t,i){for(var r in n)if(t.call(i,n[r],r,n))return r},goog.object.findValue=function(n,t,i){return(t=goog.object.findKey(n,t,i))&&n[t]},goog.object.isEmpty=function(n){for(var t in n)return!1;return!0},goog.object.clear=function(n){for(var t in n)delete n[t]},goog.object.remove=function(n,t){var i;return(i=t in n)&&delete n[t],i},goog.object.add=function(n,t,i){if(null!==n&&t in n)throw Error('The object already contains the key "'+t+'"');goog.object.set(n,t,i)},goog.object.get=function(n,t,i){return null!==n&&t in n?n[t]:i},goog.object.set=function(n,t,i){n[t]=i},goog.object.setIfUndefined=function(n,t,i){return t in n?n[t]:n[t]=i},goog.object.setWithReturnValueIfNotSet=function(n,t,i){return t in n?n[t]:(i=i(),n[t]=i)},goog.object.equals=function(n,t){for(var i in n)if(!(i in t)||n[i]!==t[i])return!1;for(i in t)if(!(i in n))return!1;return!0},goog.object.clone=function(n){var i={},t;for(t in n)i[t]=n[t];return i},goog.object.unsafeClone=function(n){var t=goog.typeOf(n),i;if("object"==t||"array"==t){if(goog.isFunction(n.clone))return n.clone();t="array"==t?[]:{};for(i in n)t[i]=goog.object.unsafeClone(n[i]);return t}return n},goog.object.transpose=function(n){var i={},t;for(t in n)i[n[t]]=t;return i},goog.object.PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),goog.object.extend=function(n){for(var i,r,f,u=1;u<arguments.length;u++){r=arguments[u];for(i in r)n[i]=r[i];for(f=0;f<goog.object.PROTOTYPE_FIELDS_.length;f++)i=goog.object.PROTOTYPE_FIELDS_[f],Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])}},goog.object.create=function(){var i=arguments.length,r,t;if(1==i&&goog.isArray(arguments[0]))return goog.object.create.apply(null,arguments[0]);if(i%2)throw Error("Uneven number of arguments");for(r={},t=0;t<i;t+=2)r[arguments[t]]=arguments[t+1];return r},goog.object.createSet=function(){var r=arguments.length,i,t;if(1==r&&goog.isArray(arguments[0]))return goog.object.createSet.apply(null,arguments[0]);for(i={},t=0;t<r;t++)i[arguments[t]]=!0;return i},goog.object.createImmutableView=function(n){var t=n;return Object.isFrozen&&!Object.isFrozen(n)&&(t=Object.create(n),Object.freeze(t)),t},goog.object.isImmutableView=function(n){return!!Object.isFrozen&&Object.isFrozen(n)},goog.proto2.Descriptor=function(n,t,i){for(this.messageType_=n,this.name_=t.name||null,this.fullName_=t.fullName||null,this.containingType_=t.containingType,this.fields_={},n=0;n<i.length;n++)t=i[n],this.fields_[t.getTag()]=t},goog.proto2.Descriptor.prototype.getName=function(){return this.name_},goog.proto2.Descriptor.prototype.getFullName=function(){return this.fullName_},goog.proto2.Descriptor.prototype.getContainingType=function(){return this.containingType_?this.containingType_.getDescriptor():null},goog.proto2.Descriptor.prototype.getFields=function(){var n=goog.object.getValues(this.fields_);return goog.array.sort(n,function(n,t){return n.getTag()-t.getTag()}),n},goog.proto2.Descriptor.prototype.getFieldsMap=function(){return this.fields_},goog.proto2.Descriptor.prototype.findFieldByName=function(n){return goog.object.findValue(this.fields_,function(t){return t.getName()==n})||null},goog.proto2.Descriptor.prototype.findFieldByTag=function(n){return goog.asserts.assert(goog.string.isNumeric(n)),this.fields_[parseInt(n,10)]||null},goog.proto2.Descriptor.prototype.createMessageInstance=function(){return new this.messageType_},goog.proto2.Message=function(){this.values_={},this.fields_=this.getDescriptor().getFieldsMap(),this.deserializedFields_=this.lazyDeserializer_=null},goog.proto2.Message.FieldType={DOUBLE:1,FLOAT:2,INT64:3,UINT64:4,INT32:5,FIXED64:6,FIXED32:7,BOOL:8,STRING:9,GROUP:10,MESSAGE:11,BYTES:12,UINT32:13,ENUM:14,SFIXED32:15,SFIXED64:16,SINT32:17,SINT64:18},goog.proto2.Message.prototype.initializeForLazyDeserializer=function(n,t){this.lazyDeserializer_=n,this.values_=t,this.deserializedFields_={}},goog.proto2.Message.prototype.setUnknown=function(n,t){goog.asserts.assert(!this.fields_[n],"Field is not unknown in this message"),goog.asserts.assert(1<=n,"Tag is not valid"),goog.asserts.assert(null!==t,"Value cannot be null"),this.values_[n]=t,this.deserializedFields_&&delete this.deserializedFields_[n]},goog.proto2.Message.prototype.forEachUnknown=function(n,t){var u=t||this,i,r;for(i in this.values_)r=Number(i),this.fields_[r]||n.call(u,r,this.values_[i])},goog.proto2.Message.prototype.has=function(n){return goog.asserts.assert(n.getContainingType()==this.getDescriptor(),"The current message does not contain the given field"),this.has$Value(n.getTag())},goog.proto2.Message.prototype.arrayOf=function(n){return goog.asserts.assert(n.getContainingType()==this.getDescriptor(),"The current message does not contain the given field"),this.array$Values(n.getTag())},goog.proto2.Message.prototype.countOf=function(n){return goog.asserts.assert(n.getContainingType()==this.getDescriptor(),"The current message does not contain the given field"),this.count$Values(n.getTag())},goog.proto2.Message.prototype.get=function(n,t){return goog.asserts.assert(n.getContainingType()==this.getDescriptor(),"The current message does not contain the given field"),this.get$Value(n.getTag(),t)},goog.proto2.Message.prototype.getOrDefault=function(n,t){return goog.asserts.assert(n.getContainingType()==this.getDescriptor(),"The current message does not contain the given field"),this.get$ValueOrDefault(n.getTag(),t)},goog.proto2.Message.prototype.set=function(n,t){goog.asserts.assert(n.getContainingType()==this.getDescriptor(),"The current message does not contain the given field"),this.set$Value(n.getTag(),t)},goog.proto2.Message.prototype.add=function(n,t){goog.asserts.assert(n.getContainingType()==this.getDescriptor(),"The current message does not contain the given field"),this.add$Value(n.getTag(),t)},goog.proto2.Message.prototype.clear=function(n){goog.asserts.assert(n.getContainingType()==this.getDescriptor(),"The current message does not contain the given field"),this.clear$Field(n.getTag())},goog.proto2.Message.prototype.equals=function(n){var f,u,i,t,e,o;if(!n||this.constructor!=n.constructor)return!1;for(f=this.getDescriptor().getFields(),u=0;u<f.length;u++){if(i=f[u],t=i.getTag(),this.has$Value(t)!=n.has$Value(t))return!1;if(this.has$Value(t)){var s=i.isCompositeType(),r=this.getValueForTag_(t),t=n.getValueForTag_(t);if(i.isRepeated()){if(r.length!=t.length)return!1;for(i=0;i<r.length;i++)if(e=r[i],o=t[i],s?!e.equals(o):e!=o)return!1}else if(s?!r.equals(t):r!=t)return!1}}return!0},goog.proto2.Message.prototype.copyFrom=function(n){goog.asserts.assert(this.constructor==n.constructor,"The source message must have the same type."),this!=n&&(this.values_={},this.deserializedFields_&&(this.deserializedFields_={}),this.mergeFrom(n))},goog.proto2.Message.prototype.mergeFrom=function(n){var e,f,i,r,t,u;for(goog.asserts.assert(this.constructor==n.constructor,"The source message must have the same type."),e=this.getDescriptor().getFields(),f=0;f<e.length;f++)if(t=e[f],i=t.getTag(),n.has$Value(i))if(this.deserializedFields_&&delete this.deserializedFields_[t.getTag()],r=t.isCompositeType(),t.isRepeated())for(t=n.array$Values(i),u=0;u<t.length;u++)this.add$Value(i,r?t[u].clone():t[u]);else t=n.getValueForTag_(i),r?(r=this.getValueForTag_(i))?r.mergeFrom(t):this.set$Value(i,t.clone()):this.set$Value(i,t)},goog.proto2.Message.prototype.clone=function(){var n=new this.constructor;return n.copyFrom(this),n},goog.proto2.Message.prototype.initDefaults=function(n){for(var u=this.getDescriptor().getFields(),r=0;r<u.length;r++){var t=u[r],i=t.getTag(),f=t.isCompositeType();if(this.has$Value(i)||t.isRepeated()||(f?this.values_[i]=new(t.getNativeType()):n&&(this.values_[i]=t.getDefaultValue())),f)if(t.isRepeated())for(t=this.array$Values(i),i=0;i<t.length;i++)t[i].initDefaults(n);else this.get$Value(i).initDefaults(n)}},goog.proto2.Message.prototype.has$Value=function(n){return null!=this.values_[n]},goog.proto2.Message.prototype.getValueForTag_=function(n){var t=this.values_[n];return goog.isDefAndNotNull(t)?this.lazyDeserializer_?n in this.deserializedFields_?this.deserializedFields_[n]:(t=this.lazyDeserializer_.deserializeField(this,this.fields_[n],t),this.deserializedFields_[n]=t):t:null},goog.proto2.Message.prototype.get$Value=function(n,t){var r=this.getValueForTag_(n),i;return this.fields_[n].isRepeated()?(i=t||0,goog.asserts.assert(0<=i&&i<r.length,"Given index %s is out of bounds.  Repeated field length: %s",i,r.length),r[i]):r},goog.proto2.Message.prototype.get$ValueOrDefault=function(n,t){return this.has$Value(n)?this.get$Value(n,t):this.fields_[n].getDefaultValue()},goog.proto2.Message.prototype.array$Values=function(n){return this.getValueForTag_(n)||[]},goog.proto2.Message.prototype.count$Values=function(n){return this.fields_[n].isRepeated()?this.has$Value(n)?this.values_[n].length:0:this.has$Value(n)?1:0},goog.proto2.Message.prototype.set$Value=function(n,t){goog.asserts.ENABLE_ASSERTS&&this.checkFieldType_(this.fields_[n],t),this.values_[n]=t,this.deserializedFields_&&(this.deserializedFields_[n]=t)},goog.proto2.Message.prototype.add$Value=function(n,t){goog.asserts.ENABLE_ASSERTS&&this.checkFieldType_(this.fields_[n],t),this.values_[n]||(this.values_[n]=[]),this.values_[n].push(t),this.deserializedFields_&&delete this.deserializedFields_[n]},goog.proto2.Message.prototype.checkFieldType_=function(n,t){n.getFieldType()==goog.proto2.FieldDescriptor.FieldType.ENUM?goog.asserts.assertNumber(t):goog.asserts.assert(t.constructor==n.getNativeType())},goog.proto2.Message.prototype.clear$Field=function(n){delete this.values_[n],this.deserializedFields_&&delete this.deserializedFields_[n]},goog.proto2.Message.createDescriptor=function(n,t){var r=[],u=t[0],i;for(i in t)0!=i&&r.push(new goog.proto2.FieldDescriptor(n,i,t[i]));return new goog.proto2.Descriptor(n,u,r)},goog.proto2.Serializer=function(){},goog.proto2.Serializer.DECODE_SYMBOLIC_ENUMS=!1,goog.proto2.Serializer.prototype.getSerializedValue=function(n,t){return n.isCompositeType()?this.serialize(t):goog.isNumber(t)&&!isFinite(t)?t.toString():t},goog.proto2.Serializer.prototype.deserialize=function(n,t){var i=n.createMessageInstance();return this.deserializeTo(i,t),goog.asserts.assert(i instanceof goog.proto2.Message),i},goog.proto2.Serializer.prototype.getDeserializedValue=function(n,t){if(n.isCompositeType())return t instanceof goog.proto2.Message?t:this.deserialize(n.getFieldMessageType(),t);if(n.getFieldType()==goog.proto2.FieldDescriptor.FieldType.ENUM){if(goog.proto2.Serializer.DECODE_SYMBOLIC_ENUMS&&goog.isString(t)){var i=n.getNativeType();if(i.hasOwnProperty(t))return i[t]}return t}if(!n.deserializationConversionPermitted())return t;if(i=n.getNativeType(),i===String){if(goog.isNumber(t))return String(t)}else if(i===Number&&goog.isString(t)&&("Infinity"===t||"-Infinity"===t||"NaN"===t||/^-?[0-9]+$/.test(t)))return Number(t);return t},goog.proto2.LazyDeserializer=function(){},goog.inherits(goog.proto2.LazyDeserializer,goog.proto2.Serializer),goog.proto2.LazyDeserializer.prototype.deserialize=function(n,t){var i=n.createMessageInstance();return i.initializeForLazyDeserializer(this,t),goog.asserts.assert(i instanceof goog.proto2.Message),i},goog.proto2.LazyDeserializer.prototype.deserializeTo=function(){throw Error("Unimplemented");},goog.proto2.PbLiteSerializer=function(){},goog.inherits(goog.proto2.PbLiteSerializer,goog.proto2.LazyDeserializer),goog.proto2.PbLiteSerializer.prototype.zeroIndexing_=!1,goog.proto2.PbLiteSerializer.prototype.setZeroIndexed=function(n){this.zeroIndexing_=n},goog.proto2.PbLiteSerializer.prototype.serialize=function(n){for(var t,i,u,e=n.getDescriptor().getFields(),r=[],o=this.zeroIndexing_,f=0;f<e.length;f++)if(t=e[f],n.has(t))if(i=t.getTag(),i=o?i-1:i,t.isRepeated())for(r[i]=[],u=0;u<n.countOf(t);u++)r[i][u]=this.getSerializedValue(t,n.get(t,u));else r[i]=this.getSerializedValue(t,n.get(t));return n.forEachUnknown(function(n,t){r[o?n-1:n]=t}),r},goog.proto2.PbLiteSerializer.prototype.deserializeField=function(n,t,i){if(null==i)return i;if(t.isRepeated()){n=[],goog.asserts.assert(goog.isArray(i),"Value must be array: %s",i);for(var r=0;r<i.length;r++)n[r]=this.getDeserializedValue(t,i[r]);return n}return this.getDeserializedValue(t,i)},goog.proto2.PbLiteSerializer.prototype.getSerializedValue=function(n,t){return n.getFieldType()==goog.proto2.FieldDescriptor.FieldType.BOOL?t?1:0:goog.proto2.Serializer.prototype.getSerializedValue.apply(this,arguments)},goog.proto2.PbLiteSerializer.prototype.getDeserializedValue=function(n,t){return n.getFieldType()==goog.proto2.FieldDescriptor.FieldType.BOOL?(goog.asserts.assert(goog.isNumber(t)||goog.isBoolean(t),"Value is expected to be a number or boolean"),!!t):goog.proto2.Serializer.prototype.getDeserializedValue.apply(this,arguments)},goog.proto2.PbLiteSerializer.prototype.deserialize=function(n,t){var i=t,r;if(this.zeroIndexing_){i=[];for(r in t)i[parseInt(r,10)+1]=t[r]}return goog.proto2.PbLiteSerializer.superClass_.deserialize.call(this,n,i)},goog.labs={},goog.labs.userAgent={},goog.labs.userAgent.util={},goog.labs.userAgent.util.getNativeUserAgentString_=function(){var n=goog.labs.userAgent.util.getNavigator_();return n&&(n=n.userAgent)?n:""},goog.labs.userAgent.util.getNavigator_=function(){return goog.global.navigator},goog.labs.userAgent.util.userAgent_=goog.labs.userAgent.util.getNativeUserAgentString_(),goog.labs.userAgent.util.setUserAgent=function(n){goog.labs.userAgent.util.userAgent_=n||goog.labs.userAgent.util.getNativeUserAgentString_()},goog.labs.userAgent.util.getUserAgent=function(){return goog.labs.userAgent.util.userAgent_},goog.labs.userAgent.util.matchUserAgent=function(n){var t=goog.labs.userAgent.util.getUserAgent();return goog.string.contains(t,n)},goog.labs.userAgent.util.matchUserAgentIgnoreCase=function(n){var t=goog.labs.userAgent.util.getUserAgent();return goog.string.caseInsensitiveContains(t,n)},goog.labs.userAgent.util.extractVersionTuples=function(n){for(var r=RegExp("(\\w[\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g"),i=[],t;t=r.exec(n);)i.push([t[1],t[2],t[3]||void 0]);return i},goog.labs.userAgent.browser={},goog.labs.userAgent.browser.matchOpera_=function(){return goog.labs.userAgent.util.matchUserAgent("Opera")||goog.labs.userAgent.util.matchUserAgent("OPR")},goog.labs.userAgent.browser.matchIE_=function(){return goog.labs.userAgent.util.matchUserAgent("Trident")||goog.labs.userAgent.util.matchUserAgent("MSIE")},goog.labs.userAgent.browser.matchEdge_=function(){return goog.labs.userAgent.util.matchUserAgent("Edge")},goog.labs.userAgent.browser.matchFirefox_=function(){return goog.labs.userAgent.util.matchUserAgent("Firefox")},goog.labs.userAgent.browser.matchSafari_=function(){return goog.labs.userAgent.util.matchUserAgent("Safari")&&!(goog.labs.userAgent.browser.matchChrome_()||goog.labs.userAgent.browser.matchCoast_()||goog.labs.userAgent.browser.matchOpera_()||goog.labs.userAgent.browser.matchEdge_()||goog.labs.userAgent.browser.isSilk()||goog.labs.userAgent.util.matchUserAgent("Android"))},goog.labs.userAgent.browser.matchCoast_=function(){return goog.labs.userAgent.util.matchUserAgent("Coast")},goog.labs.userAgent.browser.matchIosWebview_=function(){return(goog.labs.userAgent.util.matchUserAgent("iPad")||goog.labs.userAgent.util.matchUserAgent("iPhone"))&&!goog.labs.userAgent.browser.matchSafari_()&&!goog.labs.userAgent.browser.matchChrome_()&&!goog.labs.userAgent.browser.matchCoast_()&&goog.labs.userAgent.util.matchUserAgent("AppleWebKit")},goog.labs.userAgent.browser.matchChrome_=function(){return(goog.labs.userAgent.util.matchUserAgent("Chrome")||goog.labs.userAgent.util.matchUserAgent("CriOS"))&&!goog.labs.userAgent.browser.matchOpera_()&&!goog.labs.userAgent.browser.matchEdge_()},goog.labs.userAgent.browser.matchAndroidBrowser_=function(){return goog.labs.userAgent.util.matchUserAgent("Android")&&!(goog.labs.userAgent.browser.isChrome()||goog.labs.userAgent.browser.isFirefox()||goog.labs.userAgent.browser.isOpera()||goog.labs.userAgent.browser.isSilk())},goog.labs.userAgent.browser.isOpera=goog.labs.userAgent.browser.matchOpera_,goog.labs.userAgent.browser.isIE=goog.labs.userAgent.browser.matchIE_,goog.labs.userAgent.browser.isEdge=goog.labs.userAgent.browser.matchEdge_,goog.labs.userAgent.browser.isFirefox=goog.labs.userAgent.browser.matchFirefox_,goog.labs.userAgent.browser.isSafari=goog.labs.userAgent.browser.matchSafari_,goog.labs.userAgent.browser.isCoast=goog.labs.userAgent.browser.matchCoast_,goog.labs.userAgent.browser.isIosWebview=goog.labs.userAgent.browser.matchIosWebview_,goog.labs.userAgent.browser.isChrome=goog.labs.userAgent.browser.matchChrome_,goog.labs.userAgent.browser.isAndroidBrowser=goog.labs.userAgent.browser.matchAndroidBrowser_,goog.labs.userAgent.browser.isSilk=function(){return goog.labs.userAgent.util.matchUserAgent("Silk")},goog.labs.userAgent.browser.getVersion=function(){function i(n){return n=goog.array.find(n,r),t[n]||""}var n=goog.labs.userAgent.util.getUserAgent(),t,r;return goog.labs.userAgent.browser.isIE()?goog.labs.userAgent.browser.getIEVersion_(n):(n=goog.labs.userAgent.util.extractVersionTuples(n),t={},goog.array.forEach(n,function(n){t[n[0]]=n[1]}),r=goog.partial(goog.object.containsKey,t),goog.labs.userAgent.browser.isOpera()?i(["Version","Opera","OPR"]):goog.labs.userAgent.browser.isEdge()?i(["Edge"]):goog.labs.userAgent.browser.isChrome()?i(["Chrome","CriOS"]):(n=n[2])&&n[1]||"")},goog.labs.userAgent.browser.isVersionOrHigher=function(n){return 0<=goog.string.compareVersions(goog.labs.userAgent.browser.getVersion(),n)},goog.labs.userAgent.browser.getIEVersion_=function(n){var t=/rv: *([\d\.]*)/.exec(n),i;if(t&&t[1])return t[1];if(t="",i=/MSIE +([\d\.]+)/.exec(n),i&&i[1])if(n=/Trident\/(\d.\d)/.exec(n),"7.0"==i[1])if(n&&n[1])switch(n[1]){case"4.0":t="8.0";break;case"5.0":t="9.0";break;case"6.0":t="10.0";break;case"7.0":t="11.0"}else t="7.0";else t=i[1];return t},goog.labs.userAgent.engine={},goog.labs.userAgent.engine.isPresto=function(){return goog.labs.userAgent.util.matchUserAgent("Presto")},goog.labs.userAgent.engine.isTrident=function(){return goog.labs.userAgent.util.matchUserAgent("Trident")||goog.labs.userAgent.util.matchUserAgent("MSIE")},goog.labs.userAgent.engine.isEdge=function(){return goog.labs.userAgent.util.matchUserAgent("Edge")},goog.labs.userAgent.engine.isWebKit=function(){return goog.labs.userAgent.util.matchUserAgentIgnoreCase("WebKit")&&!goog.labs.userAgent.engine.isEdge()},goog.labs.userAgent.engine.isGecko=function(){return goog.labs.userAgent.util.matchUserAgent("Gecko")&&!goog.labs.userAgent.engine.isWebKit()&&!goog.labs.userAgent.engine.isTrident()&&!goog.labs.userAgent.engine.isEdge()},goog.labs.userAgent.engine.getVersion=function(){var n=goog.labs.userAgent.util.getUserAgent(),t,i;if(n){if(n=goog.labs.userAgent.util.extractVersionTuples(n),t=goog.labs.userAgent.engine.getEngineTuple_(n),t)return"Gecko"==t[0]?goog.labs.userAgent.engine.getVersionForKey_(n,"Firefox"):t[1];if(n=n[0],n&&(i=n[2])&&(i=/Trident\/([^\s;]+)/.exec(i)))return i[1]}return""},goog.labs.userAgent.engine.getEngineTuple_=function(n){var t,i;if(!goog.labs.userAgent.engine.isEdge())return n[1];for(t=0;t<n.length;t++)if(i=n[t],"Edge"==i[0])return i},goog.labs.userAgent.engine.isVersionOrHigher=function(n){return 0<=goog.string.compareVersions(goog.labs.userAgent.engine.getVersion(),n)},goog.labs.userAgent.engine.getVersionForKey_=function(n,t){var i=goog.array.find(n,function(n){return t==n[0]});return i&&i[1]||""},goog.labs.userAgent.platform={},goog.labs.userAgent.platform.isAndroid=function(){return goog.labs.userAgent.util.matchUserAgent("Android")},goog.labs.userAgent.platform.isIpod=function(){return goog.labs.userAgent.util.matchUserAgent("iPod")},goog.labs.userAgent.platform.isIphone=function(){return goog.labs.userAgent.util.matchUserAgent("iPhone")&&!goog.labs.userAgent.util.matchUserAgent("iPod")&&!goog.labs.userAgent.util.matchUserAgent("iPad")},goog.labs.userAgent.platform.isIpad=function(){return goog.labs.userAgent.util.matchUserAgent("iPad")},goog.labs.userAgent.platform.isIos=function(){return goog.labs.userAgent.platform.isIphone()||goog.labs.userAgent.platform.isIpad()||goog.labs.userAgent.platform.isIpod()},goog.labs.userAgent.platform.isMacintosh=function(){return goog.labs.userAgent.util.matchUserAgent("Macintosh")},goog.labs.userAgent.platform.isLinux=function(){return goog.labs.userAgent.util.matchUserAgent("Linux")},goog.labs.userAgent.platform.isWindows=function(){return goog.labs.userAgent.util.matchUserAgent("Windows")},goog.labs.userAgent.platform.isChromeOS=function(){return goog.labs.userAgent.util.matchUserAgent("CrOS")},goog.labs.userAgent.platform.getVersion=function(){var t=goog.labs.userAgent.util.getUserAgent(),n="";return goog.labs.userAgent.platform.isWindows()?(n=/Windows (?:NT|Phone) ([0-9.]+)/,n=(t=n.exec(t))?t[1]:"0.0"):goog.labs.userAgent.platform.isIos()?(n=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,n=(t=n.exec(t))&&t[1].replace(/_/g,".")):goog.labs.userAgent.platform.isMacintosh()?(n=/Mac OS X ([0-9_.]+)/,n=(t=n.exec(t))?t[1].replace(/_/g,"."):"10"):goog.labs.userAgent.platform.isAndroid()?(n=/Android\s+([^\);]+)(\)|;)/,n=(t=n.exec(t))&&t[1]):goog.labs.userAgent.platform.isChromeOS()&&(n=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,n=(t=n.exec(t))&&t[1]),n||""},goog.labs.userAgent.platform.isVersionOrHigher=function(n){return 0<=goog.string.compareVersions(goog.labs.userAgent.platform.getVersion(),n)},goog.userAgent={},goog.userAgent.ASSUME_IE=!1,goog.userAgent.ASSUME_EDGE=!1,goog.userAgent.ASSUME_GECKO=!1,goog.userAgent.ASSUME_WEBKIT=!1,goog.userAgent.ASSUME_MOBILE_WEBKIT=!1,goog.userAgent.ASSUME_OPERA=!1,goog.userAgent.ASSUME_ANY_VERSION=!1,goog.userAgent.BROWSER_KNOWN_=goog.userAgent.ASSUME_IE||goog.userAgent.ASSUME_EDGE||goog.userAgent.ASSUME_GECKO||goog.userAgent.ASSUME_MOBILE_WEBKIT||goog.userAgent.ASSUME_WEBKIT||goog.userAgent.ASSUME_OPERA,goog.userAgent.getUserAgentString=function(){return goog.labs.userAgent.util.getUserAgent()},goog.userAgent.getNavigator=function(){return goog.global.navigator||null},goog.userAgent.OPERA=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_OPERA:goog.labs.userAgent.browser.isOpera(),goog.userAgent.IE=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_IE:goog.labs.userAgent.browser.isIE(),goog.userAgent.EDGE=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_EDGE:goog.labs.userAgent.engine.isEdge(),goog.userAgent.EDGE_OR_IE=goog.userAgent.EDGE||goog.userAgent.IE,goog.userAgent.GECKO=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_GECKO:goog.labs.userAgent.engine.isGecko(),goog.userAgent.WEBKIT=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_WEBKIT||goog.userAgent.ASSUME_MOBILE_WEBKIT:goog.labs.userAgent.engine.isWebKit(),goog.userAgent.isMobile_=function(){return goog.userAgent.WEBKIT&&goog.labs.userAgent.util.matchUserAgent("Mobile")},goog.userAgent.MOBILE=goog.userAgent.ASSUME_MOBILE_WEBKIT||goog.userAgent.isMobile_(),goog.userAgent.SAFARI=goog.userAgent.WEBKIT,goog.userAgent.determinePlatform_=function(){var n=goog.userAgent.getNavigator();return n&&n.platform||""},goog.userAgent.PLATFORM=goog.userAgent.determinePlatform_(),goog.userAgent.ASSUME_MAC=!1,goog.userAgent.ASSUME_WINDOWS=!1,goog.userAgent.ASSUME_LINUX=!1,goog.userAgent.ASSUME_X11=!1,goog.userAgent.ASSUME_ANDROID=!1,goog.userAgent.ASSUME_IPHONE=!1,goog.userAgent.ASSUME_IPAD=!1,goog.userAgent.PLATFORM_KNOWN_=goog.userAgent.ASSUME_MAC||goog.userAgent.ASSUME_WINDOWS||goog.userAgent.ASSUME_LINUX||goog.userAgent.ASSUME_X11||goog.userAgent.ASSUME_ANDROID||goog.userAgent.ASSUME_IPHONE||goog.userAgent.ASSUME_IPAD,goog.userAgent.MAC=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_MAC:goog.labs.userAgent.platform.isMacintosh(),goog.userAgent.WINDOWS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_WINDOWS:goog.labs.userAgent.platform.isWindows(),goog.userAgent.isLegacyLinux_=function(){return goog.labs.userAgent.platform.isLinux()||goog.labs.userAgent.platform.isChromeOS()},goog.userAgent.LINUX=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_LINUX:goog.userAgent.isLegacyLinux_(),goog.userAgent.isX11_=function(){var n=goog.userAgent.getNavigator();return!!n&&goog.string.contains(n.appVersion||"","X11")},goog.userAgent.X11=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_X11:goog.userAgent.isX11_(),goog.userAgent.ANDROID=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_ANDROID:goog.labs.userAgent.platform.isAndroid(),goog.userAgent.IPHONE=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPHONE:goog.labs.userAgent.platform.isIphone(),goog.userAgent.IPAD=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPAD:goog.labs.userAgent.platform.isIpad(),goog.userAgent.operaVersion_=function(){var n=goog.global.opera.version;try{return n()}catch(t){return n}},goog.userAgent.determineVersion_=function(){if(goog.userAgent.OPERA&&goog.global.opera)return goog.userAgent.operaVersion_();var t="",n=goog.userAgent.getVersionRegexResult_();return n&&(t=n?n[1]:""),goog.userAgent.IE&&(n=goog.userAgent.getDocumentMode_(),n>parseFloat(t))?String(n):t},goog.userAgent.getVersionRegexResult_=function(){var n=goog.userAgent.getUserAgentString();return goog.userAgent.GECKO?/rv\:([^\);]+)(\)|;)/.exec(n):goog.userAgent.EDGE?/Edge\/([\d\.]+)/.exec(n):goog.userAgent.IE?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(n):goog.userAgent.WEBKIT?/WebKit\/(\S+)/.exec(n):void 0},goog.userAgent.getDocumentMode_=function(){var n=goog.global.document;if(n)return n.documentMode},goog.userAgent.VERSION=goog.userAgent.determineVersion_(),goog.userAgent.compare=function(n,t){return goog.string.compareVersions(n,t)},goog.userAgent.isVersionOrHigherCache_={},goog.userAgent.isVersionOrHigher=function(n){return goog.userAgent.ASSUME_ANY_VERSION||goog.userAgent.isVersionOrHigherCache_[n]||(goog.userAgent.isVersionOrHigherCache_[n]=0<=goog.string.compareVersions(goog.userAgent.VERSION,n))},goog.userAgent.isVersion=goog.userAgent.isVersionOrHigher,goog.userAgent.isDocumentModeOrHigher=function(n){return goog.userAgent.DOCUMENT_MODE>=n},goog.userAgent.isDocumentMode=goog.userAgent.isDocumentModeOrHigher,goog.userAgent.DOCUMENT_MODE=function(){var n=goog.global.document,t=goog.userAgent.getDocumentMode_();if(n&&goog.userAgent.IE)return t||("CSS1Compat"==n.compatMode?parseInt(goog.userAgent.VERSION,10):5)}(),goog.dom.BrowserFeature={CAN_ADD_NAME_OR_TYPE_ATTRIBUTES:!goog.userAgent.IE||goog.userAgent.isDocumentModeOrHigher(9),CAN_USE_CHILDREN_ATTRIBUTE:!goog.userAgent.GECKO&&!goog.userAgent.IE||goog.userAgent.IE&&goog.userAgent.isDocumentModeOrHigher(9)||goog.userAgent.GECKO&&goog.userAgent.isVersionOrHigher("1.9.1"),CAN_USE_INNER_TEXT:goog.userAgent.IE&&!goog.userAgent.isVersionOrHigher("9"),CAN_USE_PARENT_ELEMENT_PROPERTY:goog.userAgent.IE||goog.userAgent.OPERA||goog.userAgent.WEBKIT,INNER_HTML_NEEDS_SCOPED_ELEMENT:goog.userAgent.IE,LEGACY_IE_RANGES:goog.userAgent.IE&&!goog.userAgent.isDocumentModeOrHigher(9)},goog.dom.TagName={A:"A",ABBR:"ABBR",ACRONYM:"ACRONYM",ADDRESS:"ADDRESS",APPLET:"APPLET",AREA:"AREA",ARTICLE:"ARTICLE",ASIDE:"ASIDE",AUDIO:"AUDIO",B:"B",BASE:"BASE",BASEFONT:"BASEFONT",BDI:"BDI",BDO:"BDO",BIG:"BIG",BLOCKQUOTE:"BLOCKQUOTE",BODY:"BODY",BR:"BR",BUTTON:"BUTTON",CANVAS:"CANVAS",CAPTION:"CAPTION",CENTER:"CENTER",CITE:"CITE",CODE:"CODE",COL:"COL",COLGROUP:"COLGROUP",COMMAND:"COMMAND",DATA:"DATA",DATALIST:"DATALIST",DD:"DD",DEL:"DEL",DETAILS:"DETAILS",DFN:"DFN",DIALOG:"DIALOG",DIR:"DIR",DIV:"DIV",DL:"DL",DT:"DT",EM:"EM",EMBED:"EMBED",FIELDSET:"FIELDSET",FIGCAPTION:"FIGCAPTION",FIGURE:"FIGURE",FONT:"FONT",FOOTER:"FOOTER",FORM:"FORM",FRAME:"FRAME",FRAMESET:"FRAMESET",H1:"H1",H2:"H2",H3:"H3",H4:"H4",H5:"H5",H6:"H6",HEAD:"HEAD",HEADER:"HEADER",HGROUP:"HGROUP",HR:"HR",HTML:"HTML",I:"I",IFRAME:"IFRAME",IMG:"IMG",INPUT:"INPUT",INS:"INS",ISINDEX:"ISINDEX",KBD:"KBD",KEYGEN:"KEYGEN",LABEL:"LABEL",LEGEND:"LEGEND",LI:"LI",LINK:"LINK",MAP:"MAP",MARK:"MARK",MATH:"MATH",MENU:"MENU",META:"META",METER:"METER",NAV:"NAV",NOFRAMES:"NOFRAMES",NOSCRIPT:"NOSCRIPT",OBJECT:"OBJECT",OL:"OL",OPTGROUP:"OPTGROUP",OPTION:"OPTION",OUTPUT:"OUTPUT",P:"P",PARAM:"PARAM",PRE:"PRE",PROGRESS:"PROGRESS",Q:"Q",RP:"RP",RT:"RT",RUBY:"RUBY",S:"S",SAMP:"SAMP",SCRIPT:"SCRIPT",SECTION:"SECTION",SELECT:"SELECT",SMALL:"SMALL",SOURCE:"SOURCE",SPAN:"SPAN",STRIKE:"STRIKE",STRONG:"STRONG",STYLE:"STYLE",SUB:"SUB",SUMMARY:"SUMMARY",SUP:"SUP",SVG:"SVG",TABLE:"TABLE",TBODY:"TBODY",TD:"TD",TEMPLATE:"TEMPLATE",TEXTAREA:"TEXTAREA",TFOOT:"TFOOT",TH:"TH",THEAD:"THEAD",TIME:"TIME",TITLE:"TITLE",TR:"TR",TRACK:"TRACK",TT:"TT",U:"U",UL:"UL",VAR:"VAR",VIDEO:"VIDEO",WBR:"WBR"},goog.dom.tags={},goog.dom.tags.VOID_TAGS_={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},goog.dom.tags.isVoidTag=function(n){return!0===goog.dom.tags.VOID_TAGS_[n]},goog.string.TypedString=function(){},goog.string.Const=function(){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_="",this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=goog.string.Const.TYPE_MARKER_},goog.string.Const.prototype.implementsGoogStringTypedString=!0,goog.string.Const.prototype.getTypedStringValue=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_},goog.string.Const.prototype.toString=function(){return"Const{"+this.stringConstValueWithSecurityContract__googStringSecurityPrivate_+"}"},goog.string.Const.unwrap=function(n){return n instanceof goog.string.Const&&n.constructor===goog.string.Const&&n.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===goog.string.Const.TYPE_MARKER_?n.stringConstValueWithSecurityContract__googStringSecurityPrivate_:(goog.asserts.fail("expected object of type Const, got '"+n+"'"),"type_error:Const")},goog.string.Const.from=function(n){return goog.string.Const.create__googStringSecurityPrivate_(n)},goog.string.Const.TYPE_MARKER_={},goog.string.Const.create__googStringSecurityPrivate_=function(n){var t=new goog.string.Const;return t.stringConstValueWithSecurityContract__googStringSecurityPrivate_=n,t},goog.html={},goog.html.SafeStyle=function(){this.privateDoNotAccessOrElseSafeStyleWrappedValue_="",this.SAFE_STYLE_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeStyle.prototype.implementsGoogStringTypedString=!0,goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeStyle.fromConstant=function(n){return(n=goog.string.Const.unwrap(n),0===n.length)?goog.html.SafeStyle.EMPTY:(goog.html.SafeStyle.checkStyle_(n),goog.asserts.assert(goog.string.endsWith(n,";"),"Last character of style string is not ';': "+n),goog.asserts.assert(goog.string.contains(n,":"),"Style string must contain at least one ':', to specify a \"name: value\" pair: "+n),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(n))},goog.html.SafeStyle.checkStyle_=function(n){goog.asserts.assert(!/[<>]/.test(n),"Forbidden characters in style string: "+n)},goog.html.SafeStyle.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_},goog.DEBUG&&(goog.html.SafeStyle.prototype.toString=function(){return"SafeStyle{"+this.privateDoNotAccessOrElseSafeStyleWrappedValue_+"}"}),goog.html.SafeStyle.unwrap=function(n){return n instanceof goog.html.SafeStyle&&n.constructor===goog.html.SafeStyle&&n.SAFE_STYLE_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?n.privateDoNotAccessOrElseSafeStyleWrappedValue_:(goog.asserts.fail("expected object of type SafeStyle, got '"+n+"'"),"type_error:SafeStyle")},goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse=function(n){return(new goog.html.SafeStyle).initSecurityPrivateDoNotAccessOrElse_(n)},goog.html.SafeStyle.prototype.initSecurityPrivateDoNotAccessOrElse_=function(n){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_=n,this},goog.html.SafeStyle.EMPTY=goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(""),goog.html.SafeStyle.INNOCUOUS_STRING="zClosurez",goog.html.SafeStyle.create=function(n){var r="",i,t;for(i in n){if(!/^[-_a-zA-Z0-9]+$/.test(i))throw Error("Name allows only [-_a-zA-Z0-9], got: "+i);t=n[i],null!=t&&(t instanceof goog.string.Const?(t=goog.string.Const.unwrap(t),goog.asserts.assert(!/[{;}]/.test(t),"Value does not allow [{;}].")):goog.html.SafeStyle.VALUE_RE_.test(t)?goog.html.SafeStyle.hasBalancedQuotes_(t)||(goog.asserts.fail("String value requires balanced quotes, got: "+t),t=goog.html.SafeStyle.INNOCUOUS_STRING):(goog.asserts.fail("String value allows only [-,.\"'%_!# a-zA-Z0-9], got: "+t),t=goog.html.SafeStyle.INNOCUOUS_STRING),r+=i+":"+t+";")}return r?(goog.html.SafeStyle.checkStyle_(r),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(r)):goog.html.SafeStyle.EMPTY},goog.html.SafeStyle.hasBalancedQuotes_=function(n){for(var u,t=!0,i=!0,r=0;r<n.length;r++)u=n.charAt(r),"'"==u&&i?t=!t:'"'==u&&t&&(i=!i);return t&&i},goog.html.SafeStyle.VALUE_RE_=/^[-,."'%_!# a-zA-Z0-9]+$/,goog.html.SafeStyle.concat=function(){var t="",i=function(n){goog.isArray(n)?goog.array.forEach(n,i):t+=goog.html.SafeStyle.unwrap(n)};return goog.array.forEach(arguments,i),t?goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(t):goog.html.SafeStyle.EMPTY},goog.html.SafeStyleSheet=function(){this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_="",this.SAFE_SCRIPT_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeStyleSheet.prototype.implementsGoogStringTypedString=!0,goog.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeStyleSheet.concat=function(){var t="",i=function(n){goog.isArray(n)?goog.array.forEach(n,i):t+=goog.html.SafeStyleSheet.unwrap(n)};return goog.array.forEach(arguments,i),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(t)},goog.html.SafeStyleSheet.fromConstant=function(n){return(n=goog.string.Const.unwrap(n),0===n.length)?goog.html.SafeStyleSheet.EMPTY:(goog.asserts.assert(!goog.string.contains(n,"<"),"Forbidden '<' character in style sheet string: "+n),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(n))},goog.html.SafeStyleSheet.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_},goog.DEBUG&&(goog.html.SafeStyleSheet.prototype.toString=function(){return"SafeStyleSheet{"+this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_+"}"}),goog.html.SafeStyleSheet.unwrap=function(n){return n instanceof goog.html.SafeStyleSheet&&n.constructor===goog.html.SafeStyleSheet&&n.SAFE_SCRIPT_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?n.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_:(goog.asserts.fail("expected object of type SafeStyleSheet, got '"+n+"'"),"type_error:SafeStyleSheet")},goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse=function(n){return(new goog.html.SafeStyleSheet).initSecurityPrivateDoNotAccessOrElse_(n)},goog.html.SafeStyleSheet.prototype.initSecurityPrivateDoNotAccessOrElse_=function(n){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_=n,this},goog.html.SafeStyleSheet.EMPTY=goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(""),goog.fs={},goog.fs.url={},goog.fs.url.createObjectUrl=function(n){return goog.fs.url.getUrlObject_().createObjectURL(n)},goog.fs.url.revokeObjectUrl=function(n){goog.fs.url.getUrlObject_().revokeObjectURL(n)},goog.fs.url.getUrlObject_=function(){var n=goog.fs.url.findUrlObject_();if(null!=n)return n;throw Error("This browser doesn't seem to support blob URLs");},goog.fs.url.findUrlObject_=function(){return goog.isDef(goog.global.URL)&&goog.isDef(goog.global.URL.createObjectURL)?goog.global.URL:goog.isDef(goog.global.webkitURL)&&goog.isDef(goog.global.webkitURL.createObjectURL)?goog.global.webkitURL:goog.isDef(goog.global.createObjectURL)?goog.global:null},goog.fs.url.browserSupportsObjectUrls=function(){return null!=goog.fs.url.findUrlObject_()},goog.i18n={},goog.i18n.bidi={},goog.i18n.bidi.FORCE_RTL=!1,goog.i18n.bidi.IS_RTL=goog.i18n.bidi.FORCE_RTL||("ar"==goog.LOCALE.substring(0,2).toLowerCase()||"fa"==goog.LOCALE.substring(0,2).toLowerCase()||"he"==goog.LOCALE.substring(0,2).toLowerCase()||"iw"==goog.LOCALE.substring(0,2).toLowerCase()||"ps"==goog.LOCALE.substring(0,2).toLowerCase()||"sd"==goog.LOCALE.substring(0,2).toLowerCase()||"ug"==goog.LOCALE.substring(0,2).toLowerCase()||"ur"==goog.LOCALE.substring(0,2).toLowerCase()||"yi"==goog.LOCALE.substring(0,2).toLowerCase())&&(2==goog.LOCALE.length||"-"==goog.LOCALE.substring(2,3)||"_"==goog.LOCALE.substring(2,3))||3<=goog.LOCALE.length&&"ckb"==goog.LOCALE.substring(0,3).toLowerCase()&&(3==goog.LOCALE.length||"-"==goog.LOCALE.substring(3,4)||"_"==goog.LOCALE.substring(3,4)),goog.i18n.bidi.Format={LRE:"‪",RLE:"‫",PDF:"‬",LRM:"‎",RLM:"‏"},goog.i18n.bidi.Dir={LTR:1,RTL:-1,NEUTRAL:0},goog.i18n.bidi.RIGHT="right",goog.i18n.bidi.LEFT="left",goog.i18n.bidi.I18N_RIGHT=goog.i18n.bidi.IS_RTL?goog.i18n.bidi.LEFT:goog.i18n.bidi.RIGHT,goog.i18n.bidi.I18N_LEFT=goog.i18n.bidi.IS_RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT,goog.i18n.bidi.toDir=function(n,t){return"number"==typeof n?0<n?goog.i18n.bidi.Dir.LTR:0>n?goog.i18n.bidi.Dir.RTL:t?null:goog.i18n.bidi.Dir.NEUTRAL:null==n?null:n?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR},goog.i18n.bidi.ltrChars_="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",goog.i18n.bidi.rtlChars_="֑-ۯۺ-߿‏יִ-﷿ﹰ-ﻼ",goog.i18n.bidi.htmlSkipReg_=/<[^>]*>|&[^;]+;/g,goog.i18n.bidi.stripHtmlIfNeeded_=function(n,t){return t?n.replace(goog.i18n.bidi.htmlSkipReg_,""):n},goog.i18n.bidi.rtlCharReg_=new RegExp("["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.ltrCharReg_=new RegExp("["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.hasAnyRtl=function(n,t){return goog.i18n.bidi.rtlCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(n,t))},goog.i18n.bidi.hasRtlChar=goog.i18n.bidi.hasAnyRtl,goog.i18n.bidi.hasAnyLtr=function(n,t){return goog.i18n.bidi.ltrCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(n,t))},goog.i18n.bidi.ltrRe_=new RegExp("^["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.rtlRe_=new RegExp("^["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.isRtlChar=function(n){return goog.i18n.bidi.rtlRe_.test(n)},goog.i18n.bidi.isLtrChar=function(n){return goog.i18n.bidi.ltrRe_.test(n)},goog.i18n.bidi.isNeutralChar=function(n){return!goog.i18n.bidi.isLtrChar(n)&&!goog.i18n.bidi.isRtlChar(n)},goog.i18n.bidi.ltrDirCheckRe_=new RegExp("^[^"+goog.i18n.bidi.rtlChars_+"]*["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.rtlDirCheckRe_=new RegExp("^[^"+goog.i18n.bidi.ltrChars_+"]*["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.startsWithRtl=function(n,t){return goog.i18n.bidi.rtlDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(n,t))},goog.i18n.bidi.isRtlText=goog.i18n.bidi.startsWithRtl,goog.i18n.bidi.startsWithLtr=function(n,t){return goog.i18n.bidi.ltrDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(n,t))},goog.i18n.bidi.isLtrText=goog.i18n.bidi.startsWithLtr,goog.i18n.bidi.isRequiredLtrRe_=/^http:\/\/.*/,goog.i18n.bidi.isNeutralText=function(n,t){return n=goog.i18n.bidi.stripHtmlIfNeeded_(n,t),goog.i18n.bidi.isRequiredLtrRe_.test(n)||!goog.i18n.bidi.hasAnyLtr(n)&&!goog.i18n.bidi.hasAnyRtl(n)},goog.i18n.bidi.ltrExitDirCheckRe_=new RegExp("["+goog.i18n.bidi.ltrChars_+"][^"+goog.i18n.bidi.rtlChars_+"]*$"),goog.i18n.bidi.rtlExitDirCheckRe_=new RegExp("["+goog.i18n.bidi.rtlChars_+"][^"+goog.i18n.bidi.ltrChars_+"]*$"),goog.i18n.bidi.endsWithLtr=function(n,t){return goog.i18n.bidi.ltrExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(n,t))},goog.i18n.bidi.isLtrExitText=goog.i18n.bidi.endsWithLtr,goog.i18n.bidi.endsWithRtl=function(n,t){return goog.i18n.bidi.rtlExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(n,t))},goog.i18n.bidi.isRtlExitText=goog.i18n.bidi.endsWithRtl,goog.i18n.bidi.rtlLocalesRe_=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,goog.i18n.bidi.isRtlLanguage=function(n){return goog.i18n.bidi.rtlLocalesRe_.test(n)},goog.i18n.bidi.bracketGuardHtmlRe_=/(\(.*?\)+)|(\[.*?\]+)|(\{.*?\}+)|(&lt;.*?(&gt;)+)/g,goog.i18n.bidi.bracketGuardTextRe_=/(\(.*?\)+)|(\[.*?\]+)|(\{.*?\}+)|(<.*?>+)/g,goog.i18n.bidi.guardBracketInHtml=function(n,t){return(void 0===t?goog.i18n.bidi.hasAnyRtl(n):t)?n.replace(goog.i18n.bidi.bracketGuardHtmlRe_,"<span dir=rtl>$&<\/span>"):n.replace(goog.i18n.bidi.bracketGuardHtmlRe_,"<span dir=ltr>$&<\/span>")},goog.i18n.bidi.guardBracketInText=function(n,t){var i=(void 0===t?goog.i18n.bidi.hasAnyRtl(n):t)?goog.i18n.bidi.Format.RLM:goog.i18n.bidi.Format.LRM;return n.replace(goog.i18n.bidi.bracketGuardTextRe_,i+"$&"+i)},goog.i18n.bidi.enforceRtlInHtml=function(n){return"<"==n.charAt(0)?n.replace(/<\w+/,"$& dir=rtl"):"\n<span dir=rtl>"+n+"<\/span>"},goog.i18n.bidi.enforceRtlInText=function(n){return goog.i18n.bidi.Format.RLE+n+goog.i18n.bidi.Format.PDF},goog.i18n.bidi.enforceLtrInHtml=function(n){return"<"==n.charAt(0)?n.replace(/<\w+/,"$& dir=ltr"):"\n<span dir=ltr>"+n+"<\/span>"},goog.i18n.bidi.enforceLtrInText=function(n){return goog.i18n.bidi.Format.LRE+n+goog.i18n.bidi.Format.PDF},goog.i18n.bidi.dimensionsRe_=/:\s*([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)/g,goog.i18n.bidi.leftRe_=/left/gi,goog.i18n.bidi.rightRe_=/right/gi,goog.i18n.bidi.tempRe_=/%%%%/g,goog.i18n.bidi.mirrorCSS=function(n){return n.replace(goog.i18n.bidi.dimensionsRe_,":$1 $4 $3 $2").replace(goog.i18n.bidi.leftRe_,"%%%%").replace(goog.i18n.bidi.rightRe_,goog.i18n.bidi.LEFT).replace(goog.i18n.bidi.tempRe_,goog.i18n.bidi.RIGHT)},goog.i18n.bidi.doubleQuoteSubstituteRe_=/([\u0591-\u05f2])"/g,goog.i18n.bidi.singleQuoteSubstituteRe_=/([\u0591-\u05f2])'/g,goog.i18n.bidi.normalizeHebrewQuote=function(n){return n.replace(goog.i18n.bidi.doubleQuoteSubstituteRe_,"$1״").replace(goog.i18n.bidi.singleQuoteSubstituteRe_,"$1׳")},goog.i18n.bidi.wordSeparatorRe_=/\s+/,goog.i18n.bidi.hasNumeralsRe_=/[\d\u06f0-\u06f9]/,goog.i18n.bidi.rtlDetectionThreshold_=.4,goog.i18n.bidi.estimateDirection=function(n,t){for(var i,e=0,r=0,u=!1,o=goog.i18n.bidi.stripHtmlIfNeeded_(n,t).split(goog.i18n.bidi.wordSeparatorRe_),f=0;f<o.length;f++)i=o[f],goog.i18n.bidi.startsWithRtl(i)?(e++,r++):goog.i18n.bidi.isRequiredLtrRe_.test(i)?u=!0:goog.i18n.bidi.hasAnyLtr(i)?r++:goog.i18n.bidi.hasNumeralsRe_.test(i)&&(u=!0);return 0==r?u?goog.i18n.bidi.Dir.LTR:goog.i18n.bidi.Dir.NEUTRAL:e/r>goog.i18n.bidi.rtlDetectionThreshold_?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR},goog.i18n.bidi.detectRtlDirectionality=function(n,t){return goog.i18n.bidi.estimateDirection(n,t)==goog.i18n.bidi.Dir.RTL},goog.i18n.bidi.setElementDirAndAlign=function(n,t){n&&(t=goog.i18n.bidi.toDir(t))&&(n.style.textAlign=t==goog.i18n.bidi.Dir.RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT,n.dir=t==goog.i18n.bidi.Dir.RTL?"rtl":"ltr")},goog.i18n.bidi.setElementDirByTextDirectionality=function(n,t){switch(goog.i18n.bidi.estimateDirection(t)){case goog.i18n.bidi.Dir.LTR:n.dir="ltr";break;case goog.i18n.bidi.Dir.RTL:n.dir="rtl";break;default:n.removeAttribute("dir")}},goog.i18n.bidi.DirectionalString=function(){},goog.html.SafeUrl=function(){this.privateDoNotAccessOrElseSafeHtmlWrappedValue_="",this.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeUrl.INNOCUOUS_STRING="about:invalid#zClosurez",goog.html.SafeUrl.prototype.implementsGoogStringTypedString=!0,goog.html.SafeUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_},goog.html.SafeUrl.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.SafeUrl.prototype.getDirection=function(){return goog.i18n.bidi.Dir.LTR},goog.DEBUG&&(goog.html.SafeUrl.prototype.toString=function(){return"SafeUrl{"+this.privateDoNotAccessOrElseSafeHtmlWrappedValue_+"}"}),goog.html.SafeUrl.unwrap=function(n){return n instanceof goog.html.SafeUrl&&n.constructor===goog.html.SafeUrl&&n.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?n.privateDoNotAccessOrElseSafeHtmlWrappedValue_:(goog.asserts.fail("expected object of type SafeUrl, got '"+n+"'"),"type_error:SafeUrl")},goog.html.SafeUrl.fromConstant=function(n){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(n))},goog.html.SAFE_MIME_TYPE_PATTERN_=/^(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm))$/i,goog.html.SafeUrl.fromBlob=function(n){return n=goog.html.SAFE_MIME_TYPE_PATTERN_.test(n.type)?goog.fs.url.createObjectUrl(n):goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(n)},goog.html.DATA_URL_PATTERN_=/^data:([^;,]*);base64,[a-z0-9+\/]+=*$/i,goog.html.SafeUrl.fromDataUrl=function(n){var t=n.match(goog.html.DATA_URL_PATTERN_),t=t&&goog.html.SAFE_MIME_TYPE_PATTERN_.test(t[1]);return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t?n:goog.html.SafeUrl.INNOCUOUS_STRING)},goog.html.SAFE_URL_PATTERN_=/^(?:(?:https?|mailto|ftp):|[^&:/?#]*(?:[/?#]|$))/i,goog.html.SafeUrl.sanitize=function(n){return n instanceof goog.html.SafeUrl?n:(n=n.implementsGoogStringTypedString?n.getTypedStringValue():String(n),goog.html.SAFE_URL_PATTERN_.test(n)||(n=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(n))},goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse=function(n){var t=new goog.html.SafeUrl;return t.privateDoNotAccessOrElseSafeHtmlWrappedValue_=n,t},goog.html.TrustedResourceUrl=function(){this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_="",this.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.TrustedResourceUrl.prototype.implementsGoogStringTypedString=!0,goog.html.TrustedResourceUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_},goog.html.TrustedResourceUrl.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.TrustedResourceUrl.prototype.getDirection=function(){return goog.i18n.bidi.Dir.LTR},goog.DEBUG&&(goog.html.TrustedResourceUrl.prototype.toString=function(){return"TrustedResourceUrl{"+this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_+"}"}),goog.html.TrustedResourceUrl.unwrap=function(n){return n instanceof goog.html.TrustedResourceUrl&&n.constructor===goog.html.TrustedResourceUrl&&n.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?n.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_:(goog.asserts.fail("expected object of type TrustedResourceUrl, got '"+n+"'"),"type_error:TrustedResourceUrl")},goog.html.TrustedResourceUrl.fromConstant=function(n){return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(n))},goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse=function(n){var t=new goog.html.TrustedResourceUrl;return t.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_=n,t},goog.html.SafeHtml=function(){this.privateDoNotAccessOrElseSafeHtmlWrappedValue_="",this.SAFE_HTML_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_,this.dir_=null},goog.html.SafeHtml.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.SafeHtml.prototype.getDirection=function(){return this.dir_},goog.html.SafeHtml.prototype.implementsGoogStringTypedString=!0,goog.html.SafeHtml.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_},goog.DEBUG&&(goog.html.SafeHtml.prototype.toString=function(){return"SafeHtml{"+this.privateDoNotAccessOrElseSafeHtmlWrappedValue_+"}"}),goog.html.SafeHtml.unwrap=function(n){return n instanceof goog.html.SafeHtml&&n.constructor===goog.html.SafeHtml&&n.SAFE_HTML_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?n.privateDoNotAccessOrElseSafeHtmlWrappedValue_:(goog.asserts.fail("expected object of type SafeHtml, got '"+n+"'"),"type_error:SafeHtml")},goog.html.SafeHtml.htmlEscape=function(n){if(n instanceof goog.html.SafeHtml)return n;var t=null;return n.implementsGoogI18nBidiDirectionalString&&(t=n.getDirection()),n=n.implementsGoogStringTypedString?n.getTypedStringValue():String(n),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.htmlEscape(n),t)},goog.html.SafeHtml.htmlEscapePreservingNewlines=function(n){return n instanceof goog.html.SafeHtml?n:(n=goog.html.SafeHtml.htmlEscape(n),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.newLineToBr(goog.html.SafeHtml.unwrap(n)),n.getDirection()))},goog.html.SafeHtml.htmlEscapePreservingNewlinesAndSpaces=function(n){return n instanceof goog.html.SafeHtml?n:(n=goog.html.SafeHtml.htmlEscape(n),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.whitespaceEscape(goog.html.SafeHtml.unwrap(n)),n.getDirection()))},goog.html.SafeHtml.from=goog.html.SafeHtml.htmlEscape,goog.html.SafeHtml.VALID_NAMES_IN_TAG_=/^[a-zA-Z0-9-]+$/,goog.html.SafeHtml.URL_ATTRIBUTES_={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_=goog.object.createSet(goog.dom.TagName.EMBED,goog.dom.TagName.IFRAME,goog.dom.TagName.LINK,goog.dom.TagName.OBJECT,goog.dom.TagName.SCRIPT,goog.dom.TagName.STYLE,goog.dom.TagName.TEMPLATE),goog.html.SafeHtml.create=function(n,t,i){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(n))throw Error("Invalid tag name <"+n+">.");if(n.toUpperCase()in goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_)throw Error("Tag name <"+n+"> is not allowed for SafeHtml.");return goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse(n,t,i)},goog.html.SafeHtml.createIframe=function(n,t,i,r){var u={};return u.src=n||null,u.srcdoc=t||null,n=goog.html.SafeHtml.combineAttributes(u,{sandbox:""},i),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",n,r)},goog.html.SafeHtml.createStyle=function(n,t){var u=goog.html.SafeHtml.combineAttributes({type:"text/css"},{},t),i="",r;for(n=goog.array.concat(n),r=0;r<n.length;r++)i+=goog.html.SafeStyleSheet.unwrap(n[r]);return i=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(i,goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("style",u,i)},goog.html.SafeHtml.getAttrNameAndValue_=function(n,t,i){if(i instanceof goog.string.Const)i=goog.string.Const.unwrap(i);else if("style"==t.toLowerCase())i=goog.html.SafeHtml.getStyleValue_(i);else{if(/^on/i.test(t))throw Error('Attribute "'+t+'" requires goog.string.Const value, "'+i+'" given.');if(t.toLowerCase()in goog.html.SafeHtml.URL_ATTRIBUTES_)if(i instanceof goog.html.TrustedResourceUrl)i=goog.html.TrustedResourceUrl.unwrap(i);else if(i instanceof goog.html.SafeUrl)i=goog.html.SafeUrl.unwrap(i);else if(goog.isString(i))i=goog.html.SafeUrl.sanitize(i).getTypedStringValue();else throw Error('Attribute "'+t+'" on tag "'+n+'" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+i+'" given.');}return i.implementsGoogStringTypedString&&(i=i.getTypedStringValue()),goog.asserts.assert(goog.isString(i)||goog.isNumber(i),"String or number value expected, got "+typeof i+" with value: "+i),t+'="'+goog.string.htmlEscape(String(i))+'"'},goog.html.SafeHtml.getStyleValue_=function(n){if(!goog.isObject(n))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof n+" given: "+n);return n instanceof goog.html.SafeStyle||(n=goog.html.SafeStyle.create(n)),goog.html.SafeStyle.unwrap(n)},goog.html.SafeHtml.createWithDir=function(n,t,i,r){return t=goog.html.SafeHtml.create(t,i,r),t.dir_=n,t},goog.html.SafeHtml.concat=function(){var t=goog.i18n.bidi.Dir.NEUTRAL,i="",r=function(n){goog.isArray(n)?goog.array.forEach(n,r):(n=goog.html.SafeHtml.htmlEscape(n),i+=goog.html.SafeHtml.unwrap(n),n=n.getDirection(),t==goog.i18n.bidi.Dir.NEUTRAL?t=n:n!=goog.i18n.bidi.Dir.NEUTRAL&&t!=n&&(t=null))};return goog.array.forEach(arguments,r),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(i,t)},goog.html.SafeHtml.concatWithDir=function(n){var i=goog.html.SafeHtml.concat(goog.array.slice(arguments,1));return i.dir_=n,i},goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse=function(n,t){return(new goog.html.SafeHtml).initSecurityPrivateDoNotAccessOrElse_(n,t)},goog.html.SafeHtml.prototype.initSecurityPrivateDoNotAccessOrElse_=function(n,t){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_=n,this.dir_=t,this},goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse=function(n,t,i){var r=null,f="<"+n,u,e;if(t)for(u in t){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(u))throw Error('Invalid attribute name "'+u+'".');e=t[u],goog.isDefAndNotNull(e)&&(f+=" "+goog.html.SafeHtml.getAttrNameAndValue_(n,u,e))}return goog.isDefAndNotNull(i)?goog.isArray(i)||(i=[i]):i=[],goog.dom.tags.isVoidTag(n.toLowerCase())?(goog.asserts.assert(!i.length,"Void tag <"+n+"> does not allow content."),f+=">"):(r=goog.html.SafeHtml.concat(i),f+=">"+goog.html.SafeHtml.unwrap(r)+"<\/"+n+">",r=r.getDirection()),(n=t&&t.dir)&&(r=/^(ltr|rtl|auto)$/i.test(n)?goog.i18n.bidi.Dir.NEUTRAL:null),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(f,r)},goog.html.SafeHtml.combineAttributes=function(n,t,i){var u={},r,f;for(r in n)goog.asserts.assert(r.toLowerCase()==r,"Must be lower case"),u[r]=n[r];for(r in t)goog.asserts.assert(r.toLowerCase()==r,"Must be lower case"),u[r]=t[r];for(r in i){if(f=r.toLowerCase(),f in n)throw Error('Cannot override "'+f+'" attribute, got "'+r+'" with value "'+i[r]+'"');f in t&&delete u[f],u[r]=i[r]}return u},goog.html.SafeHtml.DOCTYPE_HTML=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<!DOCTYPE html>",goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.EMPTY=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("",goog.i18n.bidi.Dir.NEUTRAL),goog.dom.safe={},goog.dom.safe.InsertAdjacentHtmlPosition={AFTERBEGIN:"afterbegin",AFTEREND:"afterend",BEFOREBEGIN:"beforebegin",BEFOREEND:"beforeend"},goog.dom.safe.insertAdjacentHtml=function(n,t,i){n.insertAdjacentHTML(t,goog.html.SafeHtml.unwrap(i))},goog.dom.safe.setInnerHtml=function(n,t){n.innerHTML=goog.html.SafeHtml.unwrap(t)},goog.dom.safe.setOuterHtml=function(n,t){n.outerHTML=goog.html.SafeHtml.unwrap(t)},goog.dom.safe.documentWrite=function(n,t){n.write(goog.html.SafeHtml.unwrap(t))},goog.dom.safe.setAnchorHref=function(n,t){var i;i=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitize(t),n.href=goog.html.SafeUrl.unwrap(i)},goog.dom.safe.setEmbedSrc=function(n,t){n.src=goog.html.TrustedResourceUrl.unwrap(t)},goog.dom.safe.setFrameSrc=function(n,t){n.src=goog.html.TrustedResourceUrl.unwrap(t)},goog.dom.safe.setIframeSrc=function(n,t){n.src=goog.html.TrustedResourceUrl.unwrap(t)},goog.dom.safe.setLinkHrefAndRel=function(n,t,i){n.rel=i,goog.string.caseInsensitiveContains(i,"stylesheet")?(goog.asserts.assert(t instanceof goog.html.TrustedResourceUrl,'URL must be TrustedResourceUrl because "rel" contains "stylesheet"'),n.href=goog.html.TrustedResourceUrl.unwrap(t)):n.href=t instanceof goog.html.TrustedResourceUrl?goog.html.TrustedResourceUrl.unwrap(t):t instanceof goog.html.SafeUrl?goog.html.SafeUrl.unwrap(t):goog.html.SafeUrl.sanitize(t).getTypedStringValue()},goog.dom.safe.setObjectData=function(n,t){n.data=goog.html.TrustedResourceUrl.unwrap(t)},goog.dom.safe.setScriptSrc=function(n,t){n.src=goog.html.TrustedResourceUrl.unwrap(t)},goog.dom.safe.setLocationHref=function(n,t){var i;i=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitize(t),n.href=goog.html.SafeUrl.unwrap(i)},goog.dom.safe.openInWindow=function(n,t,i,r,u){return n=n instanceof goog.html.SafeUrl?n:goog.html.SafeUrl.sanitize(n),(t||window).open(goog.html.SafeUrl.unwrap(n),i?goog.string.Const.unwrap(i):"",r,u)},goog.math={},goog.math.randomInt=function(n){return Math.floor(Math.random()*n)},goog.math.uniformRandom=function(n,t){return n+Math.random()*(t-n)},goog.math.clamp=function(n,t,i){return Math.min(Math.max(n,t),i)},goog.math.modulo=function(n,t){var i=n%t;return 0>i*t?i+t:i},goog.math.lerp=function(n,t,i){return n+i*(t-n)},goog.math.nearlyEquals=function(n,t,i){return Math.abs(n-t)<=(i||1e-6)},goog.math.standardAngle=function(n){return goog.math.modulo(n,360)},goog.math.standardAngleInRadians=function(n){return goog.math.modulo(n,2*Math.PI)},goog.math.toRadians=function(n){return n*Math.PI/180},goog.math.toDegrees=function(n){return 180*n/Math.PI},goog.math.angleDx=function(n,t){return t*Math.cos(goog.math.toRadians(n))},goog.math.angleDy=function(n,t){return t*Math.sin(goog.math.toRadians(n))},goog.math.angle=function(n,t,i,r){return goog.math.standardAngle(goog.math.toDegrees(Math.atan2(r-t,i-n)))},goog.math.angleDifference=function(n,t){var i=goog.math.standardAngle(t)-goog.math.standardAngle(n);return 180<i?i-=360:-180>=i&&(i=360+i),i},goog.math.sign=Math.sign||function(n){return 0<n?1:0>n?-1:n},goog.math.longestCommonSubsequence=function(n,t,i,r){var f;i=i||function(n,t){return n==t},r=r||function(t){return n[t]};for(var o=n.length,s=t.length,e=[],u=0;u<o+1;u++)e[u]=[],e[u][0]=0;for(f=0;f<s+1;f++)e[0][f]=0;for(u=1;u<=o;u++)for(f=1;f<=s;f++)e[u][f]=i(n[u-1],t[f-1])?e[u-1][f-1]+1:Math.max(e[u-1][f],e[u][f-1]);for(var h=[],u=o,f=s;0<u&&0<f;)i(n[u-1],t[f-1])?(h.unshift(r(u-1,f-1)),u--,f--):e[u-1][f]>e[u][f-1]?u--:f--;return h},goog.math.sum=function(){return goog.array.reduce(arguments,function(n,t){return n+t},0)},goog.math.average=function(){return goog.math.sum.apply(null,arguments)/arguments.length},goog.math.sampleVariance=function(){var t=arguments.length,i;return 2>t?0:(i=goog.math.average.apply(null,arguments),goog.math.sum.apply(null,goog.array.map(arguments,function(n){return Math.pow(n-i,2)}))/(t-1))},goog.math.standardDeviation=function(){return Math.sqrt(goog.math.sampleVariance.apply(null,arguments))},goog.math.isInt=function(n){return isFinite(n)&&0==n%1},goog.math.isFiniteNumber=function(n){return isFinite(n)&&!isNaN(n)},goog.math.isNegativeZero=function(n){return 0==n&&0>1/n},goog.math.log10Floor=function(n){if(0<n){var t=Math.round(Math.log(n)*Math.LOG10E);return t-(parseFloat("1e"+t)>n?1:0)}return 0==n?-Infinity:NaN},goog.math.safeFloor=function(n,t){return goog.asserts.assert(!goog.isDef(t)||0<t),Math.floor(n+(t||2e-15))},goog.math.safeCeil=function(n,t){return goog.asserts.assert(!goog.isDef(t)||0<t),Math.ceil(n-(t||2e-15))},goog.math.Coordinate=function(n,t){this.x=goog.isDef(n)?n:0,this.y=goog.isDef(t)?t:0},goog.math.Coordinate.prototype.clone=function(){return new goog.math.Coordinate(this.x,this.y)},goog.DEBUG&&(goog.math.Coordinate.prototype.toString=function(){return"("+this.x+", "+this.y+")"}),goog.math.Coordinate.equals=function(n,t){return n==t?!0:n&&t?n.x==t.x&&n.y==t.y:!1},goog.math.Coordinate.distance=function(n,t){var i=n.x-t.x,r=n.y-t.y;return Math.sqrt(i*i+r*r)},goog.math.Coordinate.magnitude=function(n){return Math.sqrt(n.x*n.x+n.y*n.y)},goog.math.Coordinate.azimuth=function(n){return goog.math.angle(0,0,n.x,n.y)},goog.math.Coordinate.squaredDistance=function(n,t){var i=n.x-t.x,r=n.y-t.y;return i*i+r*r},goog.math.Coordinate.difference=function(n,t){return new goog.math.Coordinate(n.x-t.x,n.y-t.y)},goog.math.Coordinate.sum=function(n,t){return new goog.math.Coordinate(n.x+t.x,n.y+t.y)},goog.math.Coordinate.prototype.ceil=function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},goog.math.Coordinate.prototype.floor=function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},goog.math.Coordinate.prototype.round=function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},goog.math.Coordinate.prototype.translate=function(n,t){return n instanceof goog.math.Coordinate?(this.x+=n.x,this.y+=n.y):(this.x+=n,goog.isNumber(t)&&(this.y+=t)),this},goog.math.Coordinate.prototype.scale=function(n,t){var i=goog.isNumber(t)?t:n;return this.x*=n,this.y*=i,this},goog.math.Coordinate.prototype.rotateRadians=function(n,t){var i=t||new goog.math.Coordinate(0,0),r=this.x,u=this.y,f=Math.cos(n),e=Math.sin(n);this.x=(r-i.x)*f-(u-i.y)*e+i.x,this.y=(r-i.x)*e+(u-i.y)*f+i.y},goog.math.Coordinate.prototype.rotateDegrees=function(n,t){this.rotateRadians(goog.math.toRadians(n),t)},goog.math.Size=function(n,t){this.width=n,this.height=t},goog.math.Size.equals=function(n,t){return n==t?!0:n&&t?n.width==t.width&&n.height==t.height:!1},goog.math.Size.prototype.clone=function(){return new goog.math.Size(this.width,this.height)},goog.DEBUG&&(goog.math.Size.prototype.toString=function(){return"("+this.width+" x "+this.height+")"}),goog.math.Size.prototype.getLongest=function(){return Math.max(this.width,this.height)},goog.math.Size.prototype.getShortest=function(){return Math.min(this.width,this.height)},goog.math.Size.prototype.area=function(){return this.width*this.height},goog.math.Size.prototype.perimeter=function(){return 2*(this.width+this.height)},goog.math.Size.prototype.aspectRatio=function(){return this.width/this.height},goog.math.Size.prototype.isEmpty=function(){return!this.area()},goog.math.Size.prototype.ceil=function(){return this.width=Math.ceil(this.width),this.height=Math.ceil(this.height),this},goog.math.Size.prototype.fitsInside=function(n){return this.width<=n.width&&this.height<=n.height},goog.math.Size.prototype.floor=function(){return this.width=Math.floor(this.width),this.height=Math.floor(this.height),this},goog.math.Size.prototype.round=function(){return this.width=Math.round(this.width),this.height=Math.round(this.height),this},goog.math.Size.prototype.scale=function(n,t){var i=goog.isNumber(t)?t:n;return this.width*=n,this.height*=i,this},goog.math.Size.prototype.scaleToCover=function(n){return n=this.aspectRatio()<=n.aspectRatio()?n.width/this.width:n.height/this.height,this.scale(n)},goog.math.Size.prototype.scaleToFit=function(n){return n=this.aspectRatio()>n.aspectRatio()?n.width/this.width:n.height/this.height,this.scale(n)},goog.dom.ASSUME_QUIRKS_MODE=!1,goog.dom.ASSUME_STANDARDS_MODE=!1,goog.dom.COMPAT_MODE_KNOWN_=goog.dom.ASSUME_QUIRKS_MODE||goog.dom.ASSUME_STANDARDS_MODE,goog.dom.getDomHelper=function(n){return n?new goog.dom.DomHelper(goog.dom.getOwnerDocument(n)):goog.dom.defaultDomHelper_||(goog.dom.defaultDomHelper_=new goog.dom.DomHelper)},goog.dom.getDocument=function(){return document},goog.dom.getElement=function(n){return goog.dom.getElementHelper_(document,n)},goog.dom.getElementHelper_=function(n,t){return goog.isString(t)?n.getElementById(t):t},goog.dom.getRequiredElement=function(n){return goog.dom.getRequiredElementHelper_(document,n)},goog.dom.getRequiredElementHelper_=function(n,t){goog.asserts.assertString(t);var i=goog.dom.getElementHelper_(n,t);return i=goog.asserts.assertElement(i,"No element found with id: "+t)},goog.dom.$=goog.dom.getElement,goog.dom.getElementsByTagNameAndClass=function(n,t,i){return goog.dom.getElementsByTagNameAndClass_(document,n,t,i)},goog.dom.getElementsByClass=function(n,t){var i=t||document;return goog.dom.canUseQuerySelector_(i)?i.querySelectorAll("."+n):goog.dom.getElementsByTagNameAndClass_(document,"*",n,t)},goog.dom.getElementByClass=function(n,t){var i=t||document,r=null;return(r=i.getElementsByClassName?i.getElementsByClassName(n)[0]:goog.dom.canUseQuerySelector_(i)?i.querySelector("."+n):goog.dom.getElementsByTagNameAndClass_(document,"*",n,t)[0])||null},goog.dom.getRequiredElementByClass=function(n,t){var i=goog.dom.getElementByClass(n,t);return goog.asserts.assert(i,"No element found with className: "+n)},goog.dom.canUseQuerySelector_=function(n){return!(!n.querySelectorAll||!n.querySelector)},goog.dom.getElementsByTagNameAndClass_=function(n,t,i,r){if(n=r||n,t=t&&"*"!=t?t.toUpperCase():"",goog.dom.canUseQuerySelector_(n)&&(t||i))return n.querySelectorAll(t+(i?"."+i:""));if(i&&n.getElementsByClassName){if(n=n.getElementsByClassName(i),t){r={};for(var f=0,e=0,u;u=n[e];e++)t==u.nodeName&&(r[f++]=u);return r.length=f,r}return n}if(n=n.getElementsByTagName(t||"*"),i){for(r={},e=f=0;u=n[e];e++)t=u.className,"function"==typeof t.split&&goog.array.contains(t.split(/\s+/),i)&&(r[f++]=u);return r.length=f,r}return n},goog.dom.$$=goog.dom.getElementsByTagNameAndClass,goog.dom.setProperties=function(n,t){goog.object.forEach(t,function(t,i){"style"==i?n.style.cssText=t:"class"==i?n.className=t:"for"==i?n.htmlFor=t:goog.dom.DIRECT_ATTRIBUTE_MAP_.hasOwnProperty(i)?n.setAttribute(goog.dom.DIRECT_ATTRIBUTE_MAP_[i],t):goog.string.startsWith(i,"aria-")||goog.string.startsWith(i,"data-")?n.setAttribute(i,t):n[i]=t})},goog.dom.DIRECT_ATTRIBUTE_MAP_={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"},goog.dom.getViewportSize=function(n){return goog.dom.getViewportSize_(n||window)},goog.dom.getViewportSize_=function(n){return n=n.document,n=goog.dom.isCss1CompatMode_(n)?n.documentElement:n.body,new goog.math.Size(n.clientWidth,n.clientHeight)},goog.dom.getDocumentHeight=function(){return goog.dom.getDocumentHeight_(window)},goog.dom.getDocumentHeight_=function(n){var t=n.document,r=0,i,u;if(t){if(r=t.body,i=t.documentElement,!i||!r)return 0;n=goog.dom.getViewportSize_(n).height,goog.dom.isCss1CompatMode_(t)&&i.scrollHeight?r=i.scrollHeight!=n?i.scrollHeight:i.offsetHeight:(t=i.scrollHeight,u=i.offsetHeight,i.clientHeight!=u&&(t=r.scrollHeight,u=r.offsetHeight),r=t>n?t>u?t:u:t<u?t:u)}return r},goog.dom.getPageScroll=function(n){return goog.dom.getDomHelper((n||goog.global||window).document).getDocumentScroll()},goog.dom.getDocumentScroll=function(){return goog.dom.getDocumentScroll_(document)},goog.dom.getDocumentScroll_=function(n){var t=goog.dom.getDocumentScrollElement_(n);return n=goog.dom.getWindow_(n),goog.userAgent.IE&&goog.userAgent.isVersionOrHigher("10")&&n.pageYOffset!=t.scrollTop?new goog.math.Coordinate(t.scrollLeft,t.scrollTop):new goog.math.Coordinate(n.pageXOffset||t.scrollLeft,n.pageYOffset||t.scrollTop)},goog.dom.getDocumentScrollElement=function(){return goog.dom.getDocumentScrollElement_(document)},goog.dom.getDocumentScrollElement_=function(n){return n.scrollingElement?n.scrollingElement:!goog.userAgent.WEBKIT&&goog.dom.isCss1CompatMode_(n)?n.documentElement:n.body||n.documentElement},goog.dom.getWindow=function(n){return n?goog.dom.getWindow_(n):window},goog.dom.getWindow_=function(n){return n.parentWindow||n.defaultView},goog.dom.createDom=function(){return goog.dom.createDom_(document,arguments)},goog.dom.createDom_=function(n,t){var r=t[0],i=t[1],u;return!goog.dom.BrowserFeature.CAN_ADD_NAME_OR_TYPE_ATTRIBUTES&&i&&(i.name||i.type)&&(r=["<",r],i.name&&r.push(' name="',goog.string.htmlEscape(i.name),'"'),i.type&&(r.push(' type="',goog.string.htmlEscape(i.type),'"'),u={},goog.object.extend(u,i),delete u.type,i=u),r.push(">"),r=r.join("")),r=n.createElement(r),i&&(goog.isString(i)?r.className=i:goog.isArray(i)?r.className=i.join(" "):goog.dom.setProperties(r,i)),2<t.length&&goog.dom.append_(n,r,t,2),r},goog.dom.append_=function(n,t,i,r){function f(i){i&&t.appendChild(goog.isString(i)?n.createTextNode(i):i)}for(;r<i.length;r++){var u=i[r];goog.isArrayLike(u)&&!goog.dom.isNodeLike(u)?goog.array.forEach(goog.dom.isNodeList(u)?goog.array.toArray(u):u,f):f(u)}},goog.dom.$dom=goog.dom.createDom,goog.dom.createElement=function(n){return document.createElement(n)},goog.dom.createTextNode=function(n){return document.createTextNode(String(n))},goog.dom.createTable=function(n,t,i){return goog.dom.createTable_(document,n,t,!!i)},goog.dom.createTable_=function(n,t,i,r){for(var u,f,e,o=n.createElement(goog.dom.TagName.TABLE),h=o.appendChild(n.createElement(goog.dom.TagName.TBODY)),s=0;s<t;s++){for(u=n.createElement(goog.dom.TagName.TR),f=0;f<i;f++)e=n.createElement(goog.dom.TagName.TD),r&&goog.dom.setTextContent(e,goog.string.Unicode.NBSP),u.appendChild(e);h.appendChild(u)}return o},goog.dom.safeHtmlToNode=function(n){return goog.dom.safeHtmlToNode_(document,n)},goog.dom.safeHtmlToNode_=function(n,t){var i=n.createElement(goog.dom.TagName.DIV);return goog.dom.BrowserFeature.INNER_HTML_NEEDS_SCOPED_ELEMENT?(goog.dom.safe.setInnerHtml(i,goog.html.SafeHtml.concat(goog.html.SafeHtml.create("br"),t)),i.removeChild(i.firstChild)):goog.dom.safe.setInnerHtml(i,t),goog.dom.childrenToNode_(n,i)},goog.dom.htmlToDocumentFragment=function(n){return goog.dom.htmlToDocumentFragment_(document,n)},goog.dom.htmlToDocumentFragment_=function(n,t){var i=n.createElement(goog.dom.TagName.DIV);return goog.dom.BrowserFeature.INNER_HTML_NEEDS_SCOPED_ELEMENT?(i.innerHTML="<br>"+t,i.removeChild(i.firstChild)):i.innerHTML=t,goog.dom.childrenToNode_(n,i)},goog.dom.childrenToNode_=function(n,t){if(1==t.childNodes.length)return t.removeChild(t.firstChild);for(var i=n.createDocumentFragment();t.firstChild;)i.appendChild(t.firstChild);return i},goog.dom.isCss1CompatMode=function(){return goog.dom.isCss1CompatMode_(document)},goog.dom.isCss1CompatMode_=function(n){return goog.dom.COMPAT_MODE_KNOWN_?goog.dom.ASSUME_STANDARDS_MODE:"CSS1Compat"==n.compatMode},goog.dom.canHaveChildren=function(n){if(n.nodeType!=goog.dom.NodeType.ELEMENT)return!1;switch(n.tagName){case goog.dom.TagName.APPLET:case goog.dom.TagName.AREA:case goog.dom.TagName.BASE:case goog.dom.TagName.BR:case goog.dom.TagName.COL:case goog.dom.TagName.COMMAND:case goog.dom.TagName.EMBED:case goog.dom.TagName.FRAME:case goog.dom.TagName.HR:case goog.dom.TagName.IMG:case goog.dom.TagName.INPUT:case goog.dom.TagName.IFRAME:case goog.dom.TagName.ISINDEX:case goog.dom.TagName.KEYGEN:case goog.dom.TagName.LINK:case goog.dom.TagName.NOFRAMES:case goog.dom.TagName.NOSCRIPT:case goog.dom.TagName.META:case goog.dom.TagName.OBJECT:case goog.dom.TagName.PARAM:case goog.dom.TagName.SCRIPT:case goog.dom.TagName.SOURCE:case goog.dom.TagName.STYLE:case goog.dom.TagName.TRACK:case goog.dom.TagName.WBR:return!1}return!0},goog.dom.appendChild=function(n,t){n.appendChild(t)},goog.dom.append=function(n){goog.dom.append_(goog.dom.getOwnerDocument(n),n,arguments,1)},goog.dom.removeChildren=function(n){for(var t;t=n.firstChild;)n.removeChild(t)},goog.dom.insertSiblingBefore=function(n,t){t.parentNode&&t.parentNode.insertBefore(n,t)},goog.dom.insertSiblingAfter=function(n,t){t.parentNode&&t.parentNode.insertBefore(n,t.nextSibling)},goog.dom.insertChildAt=function(n,t,i){n.insertBefore(t,n.childNodes[i]||null)},goog.dom.removeNode=function(n){return n&&n.parentNode?n.parentNode.removeChild(n):null},goog.dom.replaceNode=function(n,t){var i=t.parentNode;i&&i.replaceChild(n,t)},goog.dom.flattenElement=function(n){var i,t=n.parentNode;if(t&&t.nodeType!=goog.dom.NodeType.DOCUMENT_FRAGMENT){if(n.removeNode)return n.removeNode(!1);for(;i=n.firstChild;)t.insertBefore(i,n);return goog.dom.removeNode(n)}},goog.dom.getChildren=function(n){return goog.dom.BrowserFeature.CAN_USE_CHILDREN_ATTRIBUTE&&void 0!=n.children?n.children:goog.array.filter(n.childNodes,function(n){return n.nodeType==goog.dom.NodeType.ELEMENT})},goog.dom.getFirstElementChild=function(n){return goog.isDef(n.firstElementChild)?n.firstElementChild:goog.dom.getNextElementNode_(n.firstChild,!0)},goog.dom.getLastElementChild=function(n){return goog.isDef(n.lastElementChild)?n.lastElementChild:goog.dom.getNextElementNode_(n.lastChild,!1)},goog.dom.getNextElementSibling=function(n){return goog.isDef(n.nextElementSibling)?n.nextElementSibling:goog.dom.getNextElementNode_(n.nextSibling,!0)},goog.dom.getPreviousElementSibling=function(n){return goog.isDef(n.previousElementSibling)?n.previousElementSibling:goog.dom.getNextElementNode_(n.previousSibling,!1)},goog.dom.getNextElementNode_=function(n,t){for(;n&&n.nodeType!=goog.dom.NodeType.ELEMENT;)n=t?n.nextSibling:n.previousSibling;return n},goog.dom.getNextNode=function(n){if(!n)return null;if(n.firstChild)return n.firstChild;for(;n&&!n.nextSibling;)n=n.parentNode;return n?n.nextSibling:null},goog.dom.getPreviousNode=function(n){if(!n)return null;if(!n.previousSibling)return n.parentNode;for(n=n.previousSibling;n&&n.lastChild;)n=n.lastChild;return n},goog.dom.isNodeLike=function(n){return goog.isObject(n)&&0<n.nodeType},goog.dom.isElement=function(n){return goog.isObject(n)&&n.nodeType==goog.dom.NodeType.ELEMENT},goog.dom.isWindow=function(n){return goog.isObject(n)&&n.window==n},goog.dom.getParentElement=function(n){var t;return goog.dom.BrowserFeature.CAN_USE_PARENT_ELEMENT_PROPERTY&&!(goog.userAgent.IE&&goog.userAgent.isVersionOrHigher("9")&&!goog.userAgent.isVersionOrHigher("10")&&goog.global.SVGElement&&n instanceof goog.global.SVGElement)&&(t=n.parentElement)?t:(t=n.parentNode,goog.dom.isElement(t)?t:null)},goog.dom.contains=function(n,t){if(n.contains&&t.nodeType==goog.dom.NodeType.ELEMENT)return n==t||n.contains(t);if("undefined"!=typeof n.compareDocumentPosition)return n==t||Boolean(n.compareDocumentPosition(t)&16);for(;t&&n!=t;)t=t.parentNode;return t==n},goog.dom.compareNodeOrder=function(n,t){var r,i,u,f;if(n==t)return 0;if(n.compareDocumentPosition)return n.compareDocumentPosition(t)&2?1:-1;if(goog.userAgent.IE&&!goog.userAgent.isDocumentModeOrHigher(9)){if(n.nodeType==goog.dom.NodeType.DOCUMENT)return-1;if(t.nodeType==goog.dom.NodeType.DOCUMENT)return 1}return"sourceIndex"in n||n.parentNode&&"sourceIndex"in n.parentNode?(r=n.nodeType==goog.dom.NodeType.ELEMENT,i=t.nodeType==goog.dom.NodeType.ELEMENT,r&&i)?n.sourceIndex-t.sourceIndex:(u=n.parentNode,f=t.parentNode,u==f?goog.dom.compareSiblingOrder_(n,t):!r&&goog.dom.contains(u,t)?-1*goog.dom.compareParentsDescendantNodeIe_(n,t):!i&&goog.dom.contains(f,n)?goog.dom.compareParentsDescendantNodeIe_(t,n):(r?n.sourceIndex:u.sourceIndex)-(i?t.sourceIndex:f.sourceIndex)):(i=goog.dom.getOwnerDocument(n),r=i.createRange(),r.selectNode(n),r.collapse(!0),i=i.createRange(),i.selectNode(t),i.collapse(!0),r.compareBoundaryPoints(goog.global.Range.START_TO_END,i))},goog.dom.compareParentsDescendantNodeIe_=function(n,t){var r=n.parentNode,i;if(r==t)return-1;for(i=t;i.parentNode!=r;)i=i.parentNode;return goog.dom.compareSiblingOrder_(i,n)},goog.dom.compareSiblingOrder_=function(n,t){for(var i=t;i=i.previousSibling;)if(i==n)return-1;return 1},goog.dom.findCommonAncestor=function(){var t,u=arguments.length,f,e,i,r,o;if(!u)return null;if(1==u)return arguments[0];for(f=[],e=Infinity,t=0;t<u;t++){for(i=[],r=arguments[t];r;)i.unshift(r),r=r.parentNode;f.push(i),e=Math.min(e,i.length)}for(i=null,t=0;t<e;t++){for(r=f[0][t],o=1;o<u;o++)if(r!=f[o][t])return i;i=r}return i},goog.dom.getOwnerDocument=function(n){return goog.asserts.assert(n,"Node cannot be null or undefined."),n.nodeType==goog.dom.NodeType.DOCUMENT?n:n.ownerDocument||n.document},goog.dom.getFrameContentDocument=function(n){return n.contentDocument||n.contentWindow.document},goog.dom.getFrameContentWindow=function(n){return n.contentWindow||goog.dom.getWindow(goog.dom.getFrameContentDocument(n))},goog.dom.setTextContent=function(n,t){if(goog.asserts.assert(null!=n,"goog.dom.setTextContent expects a non-null value for node"),"textContent"in n)n.textContent=t;else if(n.nodeType==goog.dom.NodeType.TEXT)n.data=t;else if(n.firstChild&&n.firstChild.nodeType==goog.dom.NodeType.TEXT){for(;n.lastChild!=n.firstChild;)n.removeChild(n.lastChild);n.firstChild.data=t}else{goog.dom.removeChildren(n);var i=goog.dom.getOwnerDocument(n);n.appendChild(i.createTextNode(String(t)))}},goog.dom.getOuterHtml=function(n){if("outerHTML"in n)return n.outerHTML;var t=goog.dom.getOwnerDocument(n).createElement(goog.dom.TagName.DIV);return t.appendChild(n.cloneNode(!0)),t.innerHTML},goog.dom.findNode=function(n,t){var i=[];if(goog.dom.findNodes_(n,t,i,!0))return i[0]},goog.dom.findNodes=function(n,t){var i=[];return goog.dom.findNodes_(n,t,i,!1),i},goog.dom.findNodes_=function(n,t,i,r){if(null!=n)for(n=n.firstChild;n;){if(t(n)&&(i.push(n),r)||goog.dom.findNodes_(n,t,i,r))return!0;n=n.nextSibling}return!1},goog.dom.TAGS_TO_IGNORE_={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},goog.dom.PREDEFINED_TAG_VALUES_={IMG:" ",BR:"\n"},goog.dom.isFocusableTabIndex=function(n){return goog.dom.hasSpecifiedTabIndex_(n)&&goog.dom.isTabIndexFocusable_(n)},goog.dom.setFocusableTabIndex=function(n,t){t?n.tabIndex=0:(n.tabIndex=-1,n.removeAttribute("tabIndex"))},goog.dom.isFocusable=function(n){var t;return(t=goog.dom.nativelySupportsFocus_(n)?!n.disabled&&(!goog.dom.hasSpecifiedTabIndex_(n)||goog.dom.isTabIndexFocusable_(n)):goog.dom.isFocusableTabIndex(n))&&goog.userAgent.IE?goog.dom.hasNonZeroBoundingRect_(n):t},goog.dom.hasSpecifiedTabIndex_=function(n){return n=n.getAttributeNode("tabindex"),goog.isDefAndNotNull(n)&&n.specified},goog.dom.isTabIndexFocusable_=function(n){return n=n.tabIndex,goog.isNumber(n)&&0<=n&&32768>n},goog.dom.nativelySupportsFocus_=function(n){return n.tagName==goog.dom.TagName.A||n.tagName==goog.dom.TagName.INPUT||n.tagName==goog.dom.TagName.TEXTAREA||n.tagName==goog.dom.TagName.SELECT||n.tagName==goog.dom.TagName.BUTTON},goog.dom.hasNonZeroBoundingRect_=function(n){return n=goog.isFunction(n.getBoundingClientRect)?n.getBoundingClientRect():{height:n.offsetHeight,width:n.offsetWidth},goog.isDefAndNotNull(n)&&0<n.height&&0<n.width},goog.dom.getTextContent=function(n){if(goog.dom.BrowserFeature.CAN_USE_INNER_TEXT&&"innerText"in n)n=goog.string.canonicalizeNewlines(n.innerText);else{var t=[];goog.dom.getTextContent_(n,t,!0),n=t.join("")}return n=n.replace(/ \xAD /g," ").replace(/\xAD/g,""),n=n.replace(/\u200B/g,""),goog.dom.BrowserFeature.CAN_USE_INNER_TEXT||(n=n.replace(/ +/g," "))," "!=n&&(n=n.replace(/^\s*/,"")),n},goog.dom.getRawTextContent=function(n){var t=[];return goog.dom.getTextContent_(n,t,!1),t.join("")},goog.dom.getTextContent_=function(n,t,i){if(!(n.nodeName in goog.dom.TAGS_TO_IGNORE_))if(n.nodeType==goog.dom.NodeType.TEXT)i?t.push(String(n.nodeValue).replace(/(\r\n|\r|\n)/g,"")):t.push(n.nodeValue);else if(n.nodeName in goog.dom.PREDEFINED_TAG_VALUES_)t.push(goog.dom.PREDEFINED_TAG_VALUES_[n.nodeName]);else for(n=n.firstChild;n;)goog.dom.getTextContent_(n,t,i),n=n.nextSibling},goog.dom.getNodeTextLength=function(n){return goog.dom.getTextContent(n).length},goog.dom.getNodeTextOffset=function(n,t){for(var i,u=t||goog.dom.getOwnerDocument(n).body,r=[];n&&n!=u;){for(i=n;i=i.previousSibling;)r.unshift(goog.dom.getTextContent(i));n=n.parentNode}return goog.string.trimLeft(r.join("")).replace(/ +/g," ").length},goog.dom.getNodeAtOffset=function(n,t,i){var r,u,f;for(n=[n],f=0,r=null;0<n.length&&f<t;)if(r=n.pop(),!(r.nodeName in goog.dom.TAGS_TO_IGNORE_))if(r.nodeType==goog.dom.NodeType.TEXT)u=r.nodeValue.replace(/(\r\n|\r|\n)/g,"").replace(/ +/g," "),f=f+u.length;else if(r.nodeName in goog.dom.PREDEFINED_TAG_VALUES_)f+=goog.dom.PREDEFINED_TAG_VALUES_[r.nodeName].length;else for(u=r.childNodes.length-1;0<=u;u--)n.push(r.childNodes[u]);return goog.isObject(i)&&(i.remainder=r?r.nodeValue.length+t-f-1:0,i.node=r),r},goog.dom.isNodeList=function(n){if(n&&"number"==typeof n.length){if(goog.isObject(n))return"function"==typeof n.item||"string"==typeof n.item;if(goog.isFunction(n))return"function"==typeof n.item}return!1},goog.dom.getAncestorByTagNameAndClass=function(n,t,i,r){if(!t&&!i)return null;var u=t?t.toUpperCase():null;return goog.dom.getAncestor(n,function(n){return(!u||n.nodeName==u)&&(!i||goog.isString(n.className)&&goog.array.contains(n.className.split(/\s+/),i))},!0,r)},goog.dom.getAncestorByClass=function(n,t,i){return goog.dom.getAncestorByTagNameAndClass(n,null,t,i)},goog.dom.getAncestor=function(n,t,i,r){i||(n=n.parentNode),i=null==r;for(var u=0;n&&(i||u<=r);){if(goog.asserts.assert("parentNode"!=n.name),t(n))return n;n=n.parentNode,u++}return null},goog.dom.getActiveElement=function(n){try{return n&&n.activeElement}catch(t){}return null},goog.dom.getPixelRatio=function(){var n=goog.dom.getWindow();return goog.isDef(n.devicePixelRatio)?n.devicePixelRatio:n.matchMedia?goog.dom.matchesPixelRatio_(.75)||goog.dom.matchesPixelRatio_(1.5)||goog.dom.matchesPixelRatio_(2)||goog.dom.matchesPixelRatio_(3)||1:1},goog.dom.matchesPixelRatio_=function(n){return goog.dom.getWindow().matchMedia("(-webkit-min-device-pixel-ratio: "+n+"),(min--moz-device-pixel-ratio: "+n+"),(min-resolution: "+n+"dppx)").matches?n:0},goog.dom.DomHelper=function(n){this.document_=n||goog.global.document||document},goog.dom.DomHelper.prototype.getDomHelper=goog.dom.getDomHelper,goog.dom.DomHelper.prototype.setDocument=function(n){this.document_=n},goog.dom.DomHelper.prototype.getDocument=function(){return this.document_},goog.dom.DomHelper.prototype.getElement=function(n){return goog.dom.getElementHelper_(this.document_,n)},goog.dom.DomHelper.prototype.getRequiredElement=function(n){return goog.dom.getRequiredElementHelper_(this.document_,n)},goog.dom.DomHelper.prototype.$=goog.dom.DomHelper.prototype.getElement,goog.dom.DomHelper.prototype.getElementsByTagNameAndClass=function(n,t,i){return goog.dom.getElementsByTagNameAndClass_(this.document_,n,t,i)},goog.dom.DomHelper.prototype.getElementsByClass=function(n,t){return goog.dom.getElementsByClass(n,t||this.document_)},goog.dom.DomHelper.prototype.getElementByClass=function(n,t){return goog.dom.getElementByClass(n,t||this.document_)},goog.dom.DomHelper.prototype.getRequiredElementByClass=function(n,t){return goog.dom.getRequiredElementByClass(n,t||this.document_)},goog.dom.DomHelper.prototype.$$=goog.dom.DomHelper.prototype.getElementsByTagNameAndClass,goog.dom.DomHelper.prototype.setProperties=goog.dom.setProperties,goog.dom.DomHelper.prototype.getViewportSize=function(n){return goog.dom.getViewportSize(n||this.getWindow())},goog.dom.DomHelper.prototype.getDocumentHeight=function(){return goog.dom.getDocumentHeight_(this.getWindow())},goog.dom.DomHelper.prototype.createDom=function(){return goog.dom.createDom_(this.document_,arguments)},goog.dom.DomHelper.prototype.$dom=goog.dom.DomHelper.prototype.createDom,goog.dom.DomHelper.prototype.createElement=function(n){return this.document_.createElement(n)},goog.dom.DomHelper.prototype.createTextNode=function(n){return this.document_.createTextNode(String(n))},goog.dom.DomHelper.prototype.createTable=function(n,t,i){return goog.dom.createTable_(this.document_,n,t,!!i)},goog.dom.DomHelper.prototype.safeHtmlToNode=function(n){return goog.dom.safeHtmlToNode_(this.document_,n)},goog.dom.DomHelper.prototype.htmlToDocumentFragment=function(n){return goog.dom.htmlToDocumentFragment_(this.document_,n)},goog.dom.DomHelper.prototype.isCss1CompatMode=function(){return goog.dom.isCss1CompatMode_(this.document_)},goog.dom.DomHelper.prototype.getWindow=function(){return goog.dom.getWindow_(this.document_)},goog.dom.DomHelper.prototype.getDocumentScrollElement=function(){return goog.dom.getDocumentScrollElement_(this.document_)},goog.dom.DomHelper.prototype.getDocumentScroll=function(){return goog.dom.getDocumentScroll_(this.document_)},goog.dom.DomHelper.prototype.getActiveElement=function(n){return goog.dom.getActiveElement(n||this.document_)},goog.dom.DomHelper.prototype.appendChild=goog.dom.appendChild,goog.dom.DomHelper.prototype.append=goog.dom.append,goog.dom.DomHelper.prototype.canHaveChildren=goog.dom.canHaveChildren,goog.dom.DomHelper.prototype.removeChildren=goog.dom.removeChildren,goog.dom.DomHelper.prototype.insertSiblingBefore=goog.dom.insertSiblingBefore,goog.dom.DomHelper.prototype.insertSiblingAfter=goog.dom.insertSiblingAfter,goog.dom.DomHelper.prototype.insertChildAt=goog.dom.insertChildAt,goog.dom.DomHelper.prototype.removeNode=goog.dom.removeNode,goog.dom.DomHelper.prototype.replaceNode=goog.dom.replaceNode,goog.dom.DomHelper.prototype.flattenElement=goog.dom.flattenElement,goog.dom.DomHelper.prototype.getChildren=goog.dom.getChildren,goog.dom.DomHelper.prototype.getFirstElementChild=goog.dom.getFirstElementChild,goog.dom.DomHelper.prototype.getLastElementChild=goog.dom.getLastElementChild,goog.dom.DomHelper.prototype.getNextElementSibling=goog.dom.getNextElementSibling,goog.dom.DomHelper.prototype.getPreviousElementSibling=goog.dom.getPreviousElementSibling,goog.dom.DomHelper.prototype.getNextNode=goog.dom.getNextNode,goog.dom.DomHelper.prototype.getPreviousNode=goog.dom.getPreviousNode,goog.dom.DomHelper.prototype.isNodeLike=goog.dom.isNodeLike,goog.dom.DomHelper.prototype.isElement=goog.dom.isElement,goog.dom.DomHelper.prototype.isWindow=goog.dom.isWindow,goog.dom.DomHelper.prototype.getParentElement=goog.dom.getParentElement,goog.dom.DomHelper.prototype.contains=goog.dom.contains,goog.dom.DomHelper.prototype.compareNodeOrder=goog.dom.compareNodeOrder,goog.dom.DomHelper.prototype.findCommonAncestor=goog.dom.findCommonAncestor,goog.dom.DomHelper.prototype.getOwnerDocument=goog.dom.getOwnerDocument,goog.dom.DomHelper.prototype.getFrameContentDocument=goog.dom.getFrameContentDocument,goog.dom.DomHelper.prototype.getFrameContentWindow=goog.dom.getFrameContentWindow,goog.dom.DomHelper.prototype.setTextContent=goog.dom.setTextContent,goog.dom.DomHelper.prototype.getOuterHtml=goog.dom.getOuterHtml,goog.dom.DomHelper.prototype.findNode=goog.dom.findNode,goog.dom.DomHelper.prototype.findNodes=goog.dom.findNodes,goog.dom.DomHelper.prototype.isFocusableTabIndex=goog.dom.isFocusableTabIndex,goog.dom.DomHelper.prototype.setFocusableTabIndex=goog.dom.setFocusableTabIndex,goog.dom.DomHelper.prototype.isFocusable=goog.dom.isFocusable,goog.dom.DomHelper.prototype.getTextContent=goog.dom.getTextContent,goog.dom.DomHelper.prototype.getNodeTextLength=goog.dom.getNodeTextLength,goog.dom.DomHelper.prototype.getNodeTextOffset=goog.dom.getNodeTextOffset,goog.dom.DomHelper.prototype.getNodeAtOffset=goog.dom.getNodeAtOffset,goog.dom.DomHelper.prototype.isNodeList=goog.dom.isNodeList,goog.dom.DomHelper.prototype.getAncestorByTagNameAndClass=goog.dom.getAncestorByTagNameAndClass,goog.dom.DomHelper.prototype.getAncestorByClass=goog.dom.getAncestorByClass,goog.dom.DomHelper.prototype.getAncestor=goog.dom.getAncestor,goog.json={},goog.json.USE_NATIVE_JSON=!1,goog.json.isValid=function(n){return/^\s*$/.test(n)?!1:/^[\],:{}\s\u2028\u2029]*$/.test(n.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))},goog.json.parse=goog.json.USE_NATIVE_JSON?goog.global.JSON.parse:function(a){if(a=String(a),goog.json.isValid(a))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);},goog.json.unsafeParse=goog.json.USE_NATIVE_JSON?goog.global.JSON.parse:function(a){return eval("("+a+")")},goog.json.serialize=goog.json.USE_NATIVE_JSON?goog.global.JSON.stringify:function(n,t){return new goog.json.Serializer(t).serialize(n)},goog.json.Serializer=function(n){this.replacer_=n},goog.json.Serializer.prototype.serialize=function(n){var t=[];return this.serializeInternal(n,t),t.join("")},goog.json.Serializer.prototype.serializeInternal=function(n,t){if(null==n)t.push("null");else{if("object"==typeof n){if(goog.isArray(n)){this.serializeArray(n,t);return}if(n instanceof String||n instanceof Number||n instanceof Boolean)n=n.valueOf();else{this.serializeObject_(n,t);return}}switch(typeof n){case"string":this.serializeString_(n,t);break;case"number":this.serializeNumber_(n,t);break;case"boolean":t.push(n);break;case"function":t.push("null");break;default:throw Error("Unknown type: "+typeof n);}}},goog.json.Serializer.charToJsonCharCache_={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0b":"\\u000b"},goog.json.Serializer.charsToReplace_=/\uffff/.test("￿")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g,goog.json.Serializer.prototype.serializeString_=function(n,t){t.push('"',n.replace(goog.json.Serializer.charsToReplace_,function(n){var t=goog.json.Serializer.charToJsonCharCache_[n];return t||(t="\\u"+(n.charCodeAt(0)|65536).toString(16).substr(1),goog.json.Serializer.charToJsonCharCache_[n]=t),t}),'"')},goog.json.Serializer.prototype.serializeNumber_=function(n,t){t.push(isFinite(n)&&!isNaN(n)?n:"null")},goog.json.Serializer.prototype.serializeArray=function(n,t){var u=n.length,i,r;for(t.push("["),i="",r=0;r<u;r++)t.push(i),i=n[r],this.serializeInternal(this.replacer_?this.replacer_.call(n,String(r),i):i,t),i=",";t.push("]")},goog.json.Serializer.prototype.serializeObject_=function(n,t){var u,i,r;t.push("{"),u="";for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r=n[i],"function"!=typeof r&&(t.push(u),this.serializeString_(i,t),t.push(":"),this.serializeInternal(this.replacer_?this.replacer_.call(n,i,r):r,t),u=","));t.push("}")},goog.proto2.ObjectSerializer=function(n){this.keyOption_=n},goog.inherits(goog.proto2.ObjectSerializer,goog.proto2.Serializer),goog.proto2.ObjectSerializer.KeyOption={TAG:0,NAME:1},goog.proto2.ObjectSerializer.prototype.serialize=function(n){for(var t,i,f,e=n.getDescriptor().getFields(),r={},u=0;u<e.length;u++)if(t=e[u],i=this.keyOption_==goog.proto2.ObjectSerializer.KeyOption.NAME?t.getName():t.getTag(),n.has(t))if(t.isRepeated())for(f=[],r[i]=f,i=0;i<n.countOf(t);i++)f.push(this.getSerializedValue(t,n.get(t,i)));else r[i]=this.getSerializedValue(t,n.get(t));return n.forEachUnknown(function(n,t){r[n]=t}),r},goog.proto2.ObjectSerializer.prototype.getDeserializedValue=function(n,t){return n.getFieldType()==goog.proto2.FieldDescriptor.FieldType.BOOL&&goog.isNumber(t)?Boolean(t):goog.proto2.ObjectSerializer.superClass_.getDeserializedValue.call(this,n,t)},goog.proto2.ObjectSerializer.prototype.deserializeTo=function(n,t){var e=n.getDescriptor(),f,i,r,u;for(f in t)if(r=t[f],u=goog.string.isNumeric(f),u?i=e.findFieldByTag(f):(goog.asserts.assert(this.keyOption_==goog.proto2.ObjectSerializer.KeyOption.NAME),i=e.findFieldByName(f)),i)if(i.isRepeated())for(goog.asserts.assert(goog.isArray(r)),u=0;u<r.length;u++)n.add(i,this.getDeserializedValue(i,r[u]));else goog.asserts.assert(!goog.isArray(r)),n.set(i,this.getDeserializedValue(i,r));else u?n.setUnknown(Number(f),r):goog.asserts.fail("Failed to find field: "+i)},i18n={phonenumbers:{}},i18n.phonenumbers.RegionCode={UN001:"001",AD:"AD",AE:"AE",AO:"AO",AQ:"AQ",AR:"AR",AU:"AU",BB:"BB",BR:"BR",BS:"BS",BY:"BY",CA:"CA",CH:"CH",CN:"CN",CS:"CS",CX:"CX",DE:"DE",GB:"GB",HU:"HU",IT:"IT",JP:"JP",KR:"KR",MX:"MX",NZ:"NZ",PL:"PL",RE:"RE",SE:"SE",SG:"SG",US:"US",YT:"YT",ZW:"ZW",ZZ:"ZZ"},i18n.phonenumbers.NumberFormat=function(){goog.proto2.Message.call(this)},goog.inherits(i18n.phonenumbers.NumberFormat,goog.proto2.Message),i18n.phonenumbers.NumberFormat.prototype.getPattern=function(){return this.get$Value(1)},i18n.phonenumbers.NumberFormat.prototype.getPatternOrDefault=function(){return this.get$ValueOrDefault(1)},i18n.phonenumbers.NumberFormat.prototype.setPattern=function(n){this.set$Value(1,n)},i18n.phonenumbers.NumberFormat.prototype.hasPattern=function(){return this.has$Value(1)},i18n.phonenumbers.NumberFormat.prototype.patternCount=function(){return this.count$Values(1)},i18n.phonenumbers.NumberFormat.prototype.clearPattern=function(){this.clear$Field(1)},i18n.phonenumbers.NumberFormat.prototype.getFormat=function(){return this.get$Value(2)},i18n.phonenumbers.NumberFormat.prototype.getFormatOrDefault=function(){return this.get$ValueOrDefault(2)},i18n.phonenumbers.NumberFormat.prototype.setFormat=function(n){this.set$Value(2,n)},i18n.phonenumbers.NumberFormat.prototype.hasFormat=function(){return this.has$Value(2)},i18n.phonenumbers.NumberFormat.prototype.formatCount=function(){return this.count$Values(2)},i18n.phonenumbers.NumberFormat.prototype.clearFormat=function(){this.clear$Field(2)},i18n.phonenumbers.NumberFormat.prototype.getLeadingDigitsPattern=function(n){return this.get$Value(3,n)},i18n.phonenumbers.NumberFormat.prototype.getLeadingDigitsPatternOrDefault=function(n){return this.get$ValueOrDefault(3,n)},i18n.phonenumbers.NumberFormat.prototype.addLeadingDigitsPattern=function(n){this.add$Value(3,n)},i18n.phonenumbers.NumberFormat.prototype.leadingDigitsPatternArray=function(){return this.array$Values(3)},i18n.phonenumbers.NumberFormat.prototype.hasLeadingDigitsPattern=function(){return this.has$Value(3)},i18n.phonenumbers.NumberFormat.prototype.leadingDigitsPatternCount=function(){return this.count$Values(3)},i18n.phonenumbers.NumberFormat.prototype.clearLeadingDigitsPattern=function(){this.clear$Field(3)},i18n.phonenumbers.NumberFormat.prototype.getNationalPrefixFormattingRule=function(){return this.get$Value(4)},i18n.phonenumbers.NumberFormat.prototype.getNationalPrefixFormattingRuleOrDefault=function(){return this.get$ValueOrDefault(4)},i18n.phonenumbers.NumberFormat.prototype.setNationalPrefixFormattingRule=function(n){this.set$Value(4,n)},i18n.phonenumbers.NumberFormat.prototype.hasNationalPrefixFormattingRule=function(){return this.has$Value(4)},i18n.phonenumbers.NumberFormat.prototype.nationalPrefixFormattingRuleCount=function(){return this.count$Values(4)},i18n.phonenumbers.NumberFormat.prototype.clearNationalPrefixFormattingRule=function(){this.clear$Field(4)},i18n.phonenumbers.NumberFormat.prototype.getNationalPrefixOptionalWhenFormatting=function(){return this.get$Value(6)},i18n.phonenumbers.NumberFormat.prototype.getNationalPrefixOptionalWhenFormattingOrDefault=function(){return this.get$ValueOrDefault(6)},i18n.phonenumbers.NumberFormat.prototype.setNationalPrefixOptionalWhenFormatting=function(n){this.set$Value(6,n)},i18n.phonenumbers.NumberFormat.prototype.hasNationalPrefixOptionalWhenFormatting=function(){return this.has$Value(6)},i18n.phonenumbers.NumberFormat.prototype.nationalPrefixOptionalWhenFormattingCount=function(){return this.count$Values(6)},i18n.phonenumbers.NumberFormat.prototype.clearNationalPrefixOptionalWhenFormatting=function(){this.clear$Field(6)},i18n.phonenumbers.NumberFormat.prototype.getDomesticCarrierCodeFormattingRule=function(){return this.get$Value(5)},i18n.phonenumbers.NumberFormat.prototype.getDomesticCarrierCodeFormattingRuleOrDefault=function(){return this.get$ValueOrDefault(5)},i18n.phonenumbers.NumberFormat.prototype.setDomesticCarrierCodeFormattingRule=function(n){this.set$Value(5,n)},i18n.phonenumbers.NumberFormat.prototype.hasDomesticCarrierCodeFormattingRule=function(){return this.has$Value(5)},i18n.phonenumbers.NumberFormat.prototype.domesticCarrierCodeFormattingRuleCount=function(){return this.count$Values(5)},i18n.phonenumbers.NumberFormat.prototype.clearDomesticCarrierCodeFormattingRule=function(){this.clear$Field(5)},i18n.phonenumbers.PhoneNumberDesc=function(){goog.proto2.Message.call(this)},goog.inherits(i18n.phonenumbers.PhoneNumberDesc,goog.proto2.Message),i18n.phonenumbers.PhoneNumberDesc.prototype.getNationalNumberPattern=function(){return this.get$Value(2)},i18n.phonenumbers.PhoneNumberDesc.prototype.getNationalNumberPatternOrDefault=function(){return this.get$ValueOrDefault(2)},i18n.phonenumbers.PhoneNumberDesc.prototype.setNationalNumberPattern=function(n){this.set$Value(2,n)},i18n.phonenumbers.PhoneNumberDesc.prototype.hasNationalNumberPattern=function(){return this.has$Value(2)},i18n.phonenumbers.PhoneNumberDesc.prototype.nationalNumberPatternCount=function(){return this.count$Values(2)},i18n.phonenumbers.PhoneNumberDesc.prototype.clearNationalNumberPattern=function(){this.clear$Field(2)},i18n.phonenumbers.PhoneNumberDesc.prototype.getPossibleNumberPattern=function(){return this.get$Value(3)},i18n.phonenumbers.PhoneNumberDesc.prototype.getPossibleNumberPatternOrDefault=function(){return this.get$ValueOrDefault(3)},i18n.phonenumbers.PhoneNumberDesc.prototype.setPossibleNumberPattern=function(n){this.set$Value(3,n)},i18n.phonenumbers.PhoneNumberDesc.prototype.hasPossibleNumberPattern=function(){return this.has$Value(3)},i18n.phonenumbers.PhoneNumberDesc.prototype.possibleNumberPatternCount=function(){return this.count$Values(3)},i18n.phonenumbers.PhoneNumberDesc.prototype.clearPossibleNumberPattern=function(){this.clear$Field(3)},i18n.phonenumbers.PhoneNumberDesc.prototype.getExampleNumber=function(){return this.get$Value(6)},i18n.phonenumbers.PhoneNumberDesc.prototype.getExampleNumberOrDefault=function(){return this.get$ValueOrDefault(6)},i18n.phonenumbers.PhoneNumberDesc.prototype.setExampleNumber=function(n){this.set$Value(6,n)},i18n.phonenumbers.PhoneNumberDesc.prototype.hasExampleNumber=function(){return this.has$Value(6)},i18n.phonenumbers.PhoneNumberDesc.prototype.exampleNumberCount=function(){return this.count$Values(6)},i18n.phonenumbers.PhoneNumberDesc.prototype.clearExampleNumber=function(){this.clear$Field(6)},i18n.phonenumbers.PhoneNumberDesc.prototype.getNationalNumberMatcherData=function(){return this.get$Value(7)},i18n.phonenumbers.PhoneNumberDesc.prototype.getNationalNumberMatcherDataOrDefault=function(){return this.get$ValueOrDefault(7)},i18n.phonenumbers.PhoneNumberDesc.prototype.setNationalNumberMatcherData=function(n){this.set$Value(7,n)},i18n.phonenumbers.PhoneNumberDesc.prototype.hasNationalNumberMatcherData=function(){return this.has$Value(7)},i18n.phonenumbers.PhoneNumberDesc.prototype.nationalNumberMatcherDataCount=function(){return this.count$Values(7)},i18n.phonenumbers.PhoneNumberDesc.prototype.clearNationalNumberMatcherData=function(){this.clear$Field(7)},i18n.phonenumbers.PhoneNumberDesc.prototype.getPossibleNumberMatcherData=function(){return this.get$Value(8)},i18n.phonenumbers.PhoneNumberDesc.prototype.getPossibleNumberMatcherDataOrDefault=function(){return this.get$ValueOrDefault(8)},i18n.phonenumbers.PhoneNumberDesc.prototype.setPossibleNumberMatcherData=function(n){this.set$Value(8,n)},i18n.phonenumbers.PhoneNumberDesc.prototype.hasPossibleNumberMatcherData=function(){return this.has$Value(8)},i18n.phonenumbers.PhoneNumberDesc.prototype.possibleNumberMatcherDataCount=function(){return this.count$Values(8)},i18n.phonenumbers.PhoneNumberDesc.prototype.clearPossibleNumberMatcherData=function(){this.clear$Field(8)},i18n.phonenumbers.PhoneMetadata=function(){goog.proto2.Message.call(this)},goog.inherits(i18n.phonenumbers.PhoneMetadata,goog.proto2.Message),i18n.phonenumbers.PhoneMetadata.prototype.getGeneralDesc=function(){return this.get$Value(1)},i18n.phonenumbers.PhoneMetadata.prototype.getGeneralDescOrDefault=function(){return this.get$ValueOrDefault(1)},i18n.phonenumbers.PhoneMetadata.prototype.setGeneralDesc=function(n){this.set$Value(1,n)},i18n.phonenumbers.PhoneMetadata.prototype.hasGeneralDesc=function(){return this.has$Value(1)},i18n.phonenumbers.PhoneMetadata.prototype.generalDescCount=function(){return this.count$Values(1)},i18n.phonenumbers.PhoneMetadata.prototype.clearGeneralDesc=function(){this.clear$Field(1)},i18n.phonenumbers.PhoneMetadata.prototype.getFixedLine=function(){return this.get$Value(2)},i18n.phonenumbers.PhoneMetadata.prototype.getFixedLineOrDefault=function(){return this.get$ValueOrDefault(2)},i18n.phonenumbers.PhoneMetadata.prototype.setFixedLine=function(n){this.set$Value(2,n)},i18n.phonenumbers.PhoneMetadata.prototype.hasFixedLine=function(){return this.has$Value(2)},i18n.phonenumbers.PhoneMetadata.prototype.fixedLineCount=function(){return this.count$Values(2)},i18n.phonenumbers.PhoneMetadata.prototype.clearFixedLine=function(){this.clear$Field(2)},i18n.phonenumbers.PhoneMetadata.prototype.getMobile=function(){return this.get$Value(3)},i18n.phonenumbers.PhoneMetadata.prototype.getMobileOrDefault=function(){return this.get$ValueOrDefault(3)},i18n.phonenumbers.PhoneMetadata.prototype.setMobile=function(n){this.set$Value(3,n)},i18n.phonenumbers.PhoneMetadata.prototype.hasMobile=function(){return this.has$Value(3)},i18n.phonenumbers.PhoneMetadata.prototype.mobileCount=function(){return this.count$Values(3)},i18n.phonenumbers.PhoneMetadata.prototype.clearMobile=function(){this.clear$Field(3)},i18n.phonenumbers.PhoneMetadata.prototype.getTollFree=function(){return this.get$Value(4)},i18n.phonenumbers.PhoneMetadata.prototype.getTollFreeOrDefault=function(){return this.get$ValueOrDefault(4)},i18n.phonenumbers.PhoneMetadata.prototype.setTollFree=function(n){this.set$Value(4,n)},i18n.phonenumbers.PhoneMetadata.prototype.hasTollFree=function(){return this.has$Value(4)},i18n.phonenumbers.PhoneMetadata.prototype.tollFreeCount=function(){return this.count$Values(4)},i18n.phonenumbers.PhoneMetadata.prototype.clearTollFree=function(){this.clear$Field(4)},i18n.phonenumbers.PhoneMetadata.prototype.getPremiumRate=function(){return this.get$Value(5)},i18n.phonenumbers.PhoneMetadata.prototype.getPremiumRateOrDefault=function(){return this.get$ValueOrDefault(5)},i18n.phonenumbers.PhoneMetadata.prototype.setPremiumRate=function(n){this.set$Value(5,n)},i18n.phonenumbers.PhoneMetadata.prototype.hasPremiumRate=function(){return this.has$Value(5)},i18n.phonenumbers.PhoneMetadata.prototype.premiumRateCount=function(){return this.count$Values(5)},i18n.phonenumbers.PhoneMetadata.prototype.clearPremiumRate=function(){this.clear$Field(5)},i18n.phonenumbers.PhoneMetadata.prototype.getSharedCost=function(){return this.get$Value(6)},i18n.phonenumbers.PhoneMetadata.prototype.getSharedCostOrDefault=function(){return this.get$ValueOrDefault(6)},i18n.phonenumbers.PhoneMetadata.prototype.setSharedCost=function(n){this.set$Value(6,n)},i18n.phonenumbers.PhoneMetadata.prototype.hasSharedCost=function(){return this.has$Value(6)},i18n.phonenumbers.PhoneMetadata.prototype.sharedCostCount=function(){return this.count$Values(6)},i18n.phonenumbers.PhoneMetadata.prototype.clearSharedCost=function(){this.clear$Field(6)},i18n.phonenumbers.PhoneMetadata.prototype.getPersonalNumber=function(){return this.get$Value(7)},i18n.phonenumbers.PhoneMetadata.prototype.getPersonalNumberOrDefault=function(){return this.get$ValueOrDefault(7)},i18n.phonenumbers.PhoneMetadata.prototype.setPersonalNumber=function(n){this.set$Value(7,n)},i18n.phonenumbers.PhoneMetadata.prototype.hasPersonalNumber=function(){return this.has$Value(7)},i18n.phonenumbers.PhoneMetadata.prototype.personalNumberCount=function(){return this.count$Values(7)},i18n.phonenumbers.PhoneMetadata.prototype.clearPersonalNumber=function(){this.clear$Field(7)},i18n.phonenumbers.PhoneMetadata.prototype.getVoip=function(){return this.get$Value(8)},i18n.phonenumbers.PhoneMetadata.prototype.getVoipOrDefault=function(){return this.get$ValueOrDefault(8)},i18n.phonenumbers.PhoneMetadata.prototype.setVoip=function(n){this.set$Value(8,n)},i18n.phonenumbers.PhoneMetadata.prototype.hasVoip=function(){return this.has$Value(8)},i18n.phonenumbers.PhoneMetadata.prototype.voipCount=function(){return this.count$Values(8)},i18n.phonenumbers.PhoneMetadata.prototype.clearVoip=function(){this.clear$Field(8)},i18n.phonenumbers.PhoneMetadata.prototype.getPager=function(){return this.get$Value(21)},i18n.phonenumbers.PhoneMetadata.prototype.getPagerOrDefault=function(){return this.get$ValueOrDefault(21)},i18n.phonenumbers.PhoneMetadata.prototype.setPager=function(n){this.set$Value(21,n)},i18n.phonenumbers.PhoneMetadata.prototype.hasPager=function(){return this.has$Value(21)},i18n.phonenumbers.PhoneMetadata.prototype.pagerCount=function(){return this.count$Values(21)},i18n.phonenumbers.PhoneMetadata.prototype.clearPager=function(){this.clear$Field(21)},i18n.phonenumbers.PhoneMetadata.prototype.getUan=function(){return this.get$Value(25)},i18n.phonenumbers.PhoneMetadata.prototype.getUanOrDefault=function(){return this.get$ValueOrDefault(25)},i18n.phonenumbers.PhoneMetadata.prototype.setUan=function(n){this.set$Value(25,n)},i18n.phonenumbers.PhoneMetadata.prototype.hasUan=function(){return this.has$Value(25)},i18n.phonenumbers.PhoneMetadata.prototype.uanCount=function(){return this.count$Values(25)},i18n.phonenumbers.PhoneMetadata.prototype.clearUan=function(){this.clear$Field(25)},i18n.phonenumbers.PhoneMetadata.prototype.getEmergency=function(){return this.get$Value(27)},i18n.phonenumbers.PhoneMetadata.prototype.getEmergencyOrDefault=function(){return this.get$ValueOrDefault(27)},i18n.phonenumbers.PhoneMetadata.prototype.setEmergency=function(n){this.set$Value(27,n)},i18n.phonenumbers.PhoneMetadata.prototype.hasEmergency=function(){return this.has$Value(27)},i18n.phonenumbers.PhoneMetadata.prototype.emergencyCount=function(){return this.count$Values(27)},i18n.phonenumbers.PhoneMetadata.prototype.clearEmergency=function(){this.clear$Field(27)},i18n.phonenumbers.PhoneMetadata.prototype.getVoicemail=function(){return this.get$Value(28)},i18n.phonenumbers.PhoneMetadata.prototype.getVoicemailOrDefault=function(){return this.get$ValueOrDefault(28)},i18n.phonenumbers.PhoneMetadata.prototype.setVoicemail=function(n){this.set$Value(28,n)},i18n.phonenumbers.PhoneMetadata.prototype.hasVoicemail=function(){return this.has$Value(28)},i18n.phonenumbers.PhoneMetadata.prototype.voicemailCount=function(){return this.count$Values(28)},i18n.phonenumbers.PhoneMetadata.prototype.clearVoicemail=function(){this.clear$Field(28)},i18n.phonenumbers.PhoneMetadata.prototype.getNoInternationalDialling=function(){return this.get$Value(24)},i18n.phonenumbers.PhoneMetadata.prototype.getNoInternationalDiallingOrDefault=function(){return this.get$ValueOrDefault(24)},i18n.phonenumbers.PhoneMetadata.prototype.setNoInternationalDialling=function(n){this.set$Value(24,n)},i18n.phonenumbers.PhoneMetadata.prototype.hasNoInternationalDialling=function(){return this.has$Value(24)},i18n.phonenumbers.PhoneMetadata.prototype.noInternationalDiallingCount=function(){return this.count$Values(24)},i18n.phonenumbers.PhoneMetadata.prototype.clearNoInternationalDialling=function(){this.clear$Field(24)},i18n.phonenumbers.PhoneMetadata.prototype.getId=function(){return this.get$Value(9)},i18n.phonenumbers.PhoneMetadata.prototype.getIdOrDefault=function(){return this.get$ValueOrDefault(9)},i18n.phonenumbers.PhoneMetadata.prototype.setId=function(n){this.set$Value(9,n)},i18n.phonenumbers.PhoneMetadata.prototype.hasId=function(){return this.has$Value(9)},i18n.phonenumbers.PhoneMetadata.prototype.idCount=function(){return this.count$Values(9)},i18n.phonenumbers.PhoneMetadata.prototype.clearId=function(){this.clear$Field(9)},i18n.phonenumbers.PhoneMetadata.prototype.getCountryCode=function(){return this.get$Value(10)},i18n.phonenumbers.PhoneMetadata.prototype.getCountryCodeOrDefault=function(){return this.get$ValueOrDefault(10)},i18n.phonenumbers.PhoneMetadata.prototype.setCountryCode=function(n){this.set$Value(10,n)},i18n.phonenumbers.PhoneMetadata.prototype.hasCountryCode=function(){return this.has$Value(10)},i18n.phonenumbers.PhoneMetadata.prototype.countryCodeCount=function(){return this.count$Values(10)},i18n.phonenumbers.PhoneMetadata.prototype.clearCountryCode=function(){this.clear$Field(10)},i18n.phonenumbers.PhoneMetadata.prototype.getInternationalPrefix=function(){return this.get$Value(11)},i18n.phonenumbers.PhoneMetadata.prototype.getInternationalPrefixOrDefault=function(){return this.get$ValueOrDefault(11)},i18n.phonenumbers.PhoneMetadata.prototype.setInternationalPrefix=function(n){this.set$Value(11,n)},i18n.phonenumbers.PhoneMetadata.prototype.hasInternationalPrefix=function(){return this.has$Value(11)},i18n.phonenumbers.PhoneMetadata.prototype.internationalPrefixCount=function(){return this.count$Values(11)},i18n.phonenumbers.PhoneMetadata.prototype.clearInternationalPrefix=function(){this.clear$Field(11)},i18n.phonenumbers.PhoneMetadata.prototype.getPreferredInternationalPrefix=function(){return this.get$Value(17)},i18n.phonenumbers.PhoneMetadata.prototype.getPreferredInternationalPrefixOrDefault=function(){return this.get$ValueOrDefault(17)},i18n.phonenumbers.PhoneMetadata.prototype.setPreferredInternationalPrefix=function(n){this.set$Value(17,n)},i18n.phonenumbers.PhoneMetadata.prototype.hasPreferredInternationalPrefix=function(){return this.has$Value(17)},i18n.phonenumbers.PhoneMetadata.prototype.preferredInternationalPrefixCount=function(){return this.count$Values(17)},i18n.phonenumbers.PhoneMetadata.prototype.clearPreferredInternationalPrefix=function(){this.clear$Field(17)},i18n.phonenumbers.PhoneMetadata.prototype.getNationalPrefix=function(){return this.get$Value(12)},i18n.phonenumbers.PhoneMetadata.prototype.getNationalPrefixOrDefault=function(){return this.get$ValueOrDefault(12)},i18n.phonenumbers.PhoneMetadata.prototype.setNationalPrefix=function(n){this.set$Value(12,n)},i18n.phonenumbers.PhoneMetadata.prototype.hasNationalPrefix=function(){return this.has$Value(12)},i18n.phonenumbers.PhoneMetadata.prototype.nationalPrefixCount=function(){return this.count$Values(12)},i18n.phonenumbers.PhoneMetadata.prototype.clearNationalPrefix=function(){this.clear$Field(12)},i18n.phonenumbers.PhoneMetadata.prototype.getPreferredExtnPrefix=function(){return this.get$Value(13)},i18n.phonenumbers.PhoneMetadata.prototype.getPreferredExtnPrefixOrDefault=function(){return this.get$ValueOrDefault(13)},i18n.phonenumbers.PhoneMetadata.prototype.setPreferredExtnPrefix=function(n){this.set$Value(13,n)},i18n.phonenumbers.PhoneMetadata.prototype.hasPreferredExtnPrefix=function(){return this.has$Value(13)},i18n.phonenumbers.PhoneMetadata.prototype.preferredExtnPrefixCount=function(){return this.count$Values(13)},i18n.phonenumbers.PhoneMetadata.prototype.clearPreferredExtnPrefix=function(){this.clear$Field(13)},i18n.phonenumbers.PhoneMetadata.prototype.getNationalPrefixForParsing=function(){return this.get$Value(15)},i18n.phonenumbers.PhoneMetadata.prototype.getNationalPrefixForParsingOrDefault=function(){return this.get$ValueOrDefault(15)},i18n.phonenumbers.PhoneMetadata.prototype.setNationalPrefixForParsing=function(n){this.set$Value(15,n)},i18n.phonenumbers.PhoneMetadata.prototype.hasNationalPrefixForParsing=function(){return this.has$Value(15)},i18n.phonenumbers.PhoneMetadata.prototype.nationalPrefixForParsingCount=function(){return this.count$Values(15)},i18n.phonenumbers.PhoneMetadata.prototype.clearNationalPrefixForParsing=function(){this.clear$Field(15)},i18n.phonenumbers.PhoneMetadata.prototype.getNationalPrefixTransformRule=function(){return this.get$Value(16)},i18n.phonenumbers.PhoneMetadata.prototype.getNationalPrefixTransformRuleOrDefault=function(){return this.get$ValueOrDefault(16)},i18n.phonenumbers.PhoneMetadata.prototype.setNationalPrefixTransformRule=function(n){this.set$Value(16,n)},i18n.phonenumbers.PhoneMetadata.prototype.hasNationalPrefixTransformRule=function(){return this.has$Value(16)},i18n.phonenumbers.PhoneMetadata.prototype.nationalPrefixTransformRuleCount=function(){return this.count$Values(16)},i18n.phonenumbers.PhoneMetadata.prototype.clearNationalPrefixTransformRule=function(){this.clear$Field(16)},i18n.phonenumbers.PhoneMetadata.prototype.getSameMobileAndFixedLinePattern=function(){return this.get$Value(18)},i18n.phonenumbers.PhoneMetadata.prototype.getSameMobileAndFixedLinePatternOrDefault=function(){return this.get$ValueOrDefault(18)},i18n.phonenumbers.PhoneMetadata.prototype.setSameMobileAndFixedLinePattern=function(n){this.set$Value(18,n)},i18n.phonenumbers.PhoneMetadata.prototype.hasSameMobileAndFixedLinePattern=function(){return this.has$Value(18)},i18n.phonenumbers.PhoneMetadata.prototype.sameMobileAndFixedLinePatternCount=function(){return this.count$Values(18)},i18n.phonenumbers.PhoneMetadata.prototype.clearSameMobileAndFixedLinePattern=function(){this.clear$Field(18)},i18n.phonenumbers.PhoneMetadata.prototype.getNumberFormat=function(n){return this.get$Value(19,n)},i18n.phonenumbers.PhoneMetadata.prototype.getNumberFormatOrDefault=function(n){return this.get$ValueOrDefault(19,n)},i18n.phonenumbers.PhoneMetadata.prototype.addNumberFormat=function(n){this.add$Value(19,n)},i18n.phonenumbers.PhoneMetadata.prototype.numberFormatArray=function(){return this.array$Values(19)},i18n.phonenumbers.PhoneMetadata.prototype.hasNumberFormat=function(){return this.has$Value(19)},i18n.phonenumbers.PhoneMetadata.prototype.numberFormatCount=function(){return this.count$Values(19)},i18n.phonenumbers.PhoneMetadata.prototype.clearNumberFormat=function(){this.clear$Field(19)},i18n.phonenumbers.PhoneMetadata.prototype.getIntlNumberFormat=function(n){return this.get$Value(20,n)},i18n.phonenumbers.PhoneMetadata.prototype.getIntlNumberFormatOrDefault=function(n){return this.get$ValueOrDefault(20,n)},i18n.phonenumbers.PhoneMetadata.prototype.addIntlNumberFormat=function(n){this.add$Value(20,n)},i18n.phonenumbers.PhoneMetadata.prototype.intlNumberFormatArray=function(){return this.array$Values(20)},i18n.phonenumbers.PhoneMetadata.prototype.hasIntlNumberFormat=function(){return this.has$Value(20)},i18n.phonenumbers.PhoneMetadata.prototype.intlNumberFormatCount=function(){return this.count$Values(20)},i18n.phonenumbers.PhoneMetadata.prototype.clearIntlNumberFormat=function(){this.clear$Field(20)},i18n.phonenumbers.PhoneMetadata.prototype.getMainCountryForCode=function(){return this.get$Value(22)},i18n.phonenumbers.PhoneMetadata.prototype.getMainCountryForCodeOrDefault=function(){return this.get$ValueOrDefault(22)},i18n.phonenumbers.PhoneMetadata.prototype.setMainCountryForCode=function(n){this.set$Value(22,n)},i18n.phonenumbers.PhoneMetadata.prototype.hasMainCountryForCode=function(){return this.has$Value(22)},i18n.phonenumbers.PhoneMetadata.prototype.mainCountryForCodeCount=function(){return this.count$Values(22)},i18n.phonenumbers.PhoneMetadata.prototype.clearMainCountryForCode=function(){this.clear$Field(22)},i18n.phonenumbers.PhoneMetadata.prototype.getLeadingDigits=function(){return this.get$Value(23)},i18n.phonenumbers.PhoneMetadata.prototype.getLeadingDigitsOrDefault=function(){return this.get$ValueOrDefault(23)},i18n.phonenumbers.PhoneMetadata.prototype.setLeadingDigits=function(n){this.set$Value(23,n)},i18n.phonenumbers.PhoneMetadata.prototype.hasLeadingDigits=function(){return this.has$Value(23)},i18n.phonenumbers.PhoneMetadata.prototype.leadingDigitsCount=function(){return this.count$Values(23)},i18n.phonenumbers.PhoneMetadata.prototype.clearLeadingDigits=function(){this.clear$Field(23)},i18n.phonenumbers.PhoneMetadata.prototype.getLeadingZeroPossible=function(){return this.get$Value(26)},i18n.phonenumbers.PhoneMetadata.prototype.getLeadingZeroPossibleOrDefault=function(){return this.get$ValueOrDefault(26)},i18n.phonenumbers.PhoneMetadata.prototype.setLeadingZeroPossible=function(n){this.set$Value(26,n)},i18n.phonenumbers.PhoneMetadata.prototype.hasLeadingZeroPossible=function(){return this.has$Value(26)},i18n.phonenumbers.PhoneMetadata.prototype.leadingZeroPossibleCount=function(){return this.count$Values(26)},i18n.phonenumbers.PhoneMetadata.prototype.clearLeadingZeroPossible=function(){this.clear$Field(26)},i18n.phonenumbers.PhoneMetadataCollection=function(){goog.proto2.Message.call(this)},goog.inherits(i18n.phonenumbers.PhoneMetadataCollection,goog.proto2.Message),i18n.phonenumbers.PhoneMetadataCollection.prototype.getMetadata=function(n){return this.get$Value(1,n)},i18n.phonenumbers.PhoneMetadataCollection.prototype.getMetadataOrDefault=function(n){return this.get$ValueOrDefault(1,n)},i18n.phonenumbers.PhoneMetadataCollection.prototype.addMetadata=function(n){this.add$Value(1,n)},i18n.phonenumbers.PhoneMetadataCollection.prototype.metadataArray=function(){return this.array$Values(1)},i18n.phonenumbers.PhoneMetadataCollection.prototype.hasMetadata=function(){return this.has$Value(1)},i18n.phonenumbers.PhoneMetadataCollection.prototype.metadataCount=function(){return this.count$Values(1)},i18n.phonenumbers.PhoneMetadataCollection.prototype.clearMetadata=function(){this.clear$Field(1)},i18n.phonenumbers.NumberFormat.prototype.getDescriptor=function(){return i18n.phonenumbers.NumberFormat.descriptor_||(i18n.phonenumbers.NumberFormat.descriptor_=goog.proto2.Message.createDescriptor(i18n.phonenumbers.NumberFormat,{0:{name:"NumberFormat",fullName:"i18n.phonenumbers.NumberFormat"},1:{name:"pattern",required:!0,fieldType:goog.proto2.Message.FieldType.STRING,type:String},2:{name:"format",required:!0,fieldType:goog.proto2.Message.FieldType.STRING,type:String},3:{name:"leading_digits_pattern",repeated:!0,fieldType:goog.proto2.Message.FieldType.STRING,type:String},4:{name:"national_prefix_formatting_rule",fieldType:goog.proto2.Message.FieldType.STRING,type:String},6:{name:"national_prefix_optional_when_formatting",fieldType:goog.proto2.Message.FieldType.BOOL,type:Boolean},5:{name:"domestic_carrier_code_formatting_rule",fieldType:goog.proto2.Message.FieldType.STRING,type:String}})),i18n.phonenumbers.NumberFormat.descriptor_},i18n.phonenumbers.NumberFormat.ctor=i18n.phonenumbers.NumberFormat,i18n.phonenumbers.NumberFormat.ctor.getDescriptor=i18n.phonenumbers.NumberFormat.prototype.getDescriptor,i18n.phonenumbers.PhoneNumberDesc.prototype.getDescriptor=function(){return i18n.phonenumbers.PhoneNumberDesc.descriptor_||(i18n.phonenumbers.PhoneNumberDesc.descriptor_=goog.proto2.Message.createDescriptor(i18n.phonenumbers.PhoneNumberDesc,{0:{name:"PhoneNumberDesc",fullName:"i18n.phonenumbers.PhoneNumberDesc"},2:{name:"national_number_pattern",fieldType:goog.proto2.Message.FieldType.STRING,type:String},3:{name:"possible_number_pattern",fieldType:goog.proto2.Message.FieldType.STRING,type:String},6:{name:"example_number",fieldType:goog.proto2.Message.FieldType.STRING,type:String},7:{name:"national_number_matcher_data",fieldType:goog.proto2.Message.FieldType.BYTES,type:String},8:{name:"possible_number_matcher_data",fieldType:goog.proto2.Message.FieldType.BYTES,type:String}})),i18n.phonenumbers.PhoneNumberDesc.descriptor_},i18n.phonenumbers.PhoneNumberDesc.ctor=i18n.phonenumbers.PhoneNumberDesc,i18n.phonenumbers.PhoneNumberDesc.ctor.getDescriptor=i18n.phonenumbers.PhoneNumberDesc.prototype.getDescriptor,i18n.phonenumbers.PhoneMetadata.prototype.getDescriptor=function(){return i18n.phonenumbers.PhoneMetadata.descriptor_||(i18n.phonenumbers.PhoneMetadata.descriptor_=goog.proto2.Message.createDescriptor(i18n.phonenumbers.PhoneMetadata,{0:{name:"PhoneMetadata",fullName:"i18n.phonenumbers.PhoneMetadata"},1:{name:"general_desc",fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.PhoneNumberDesc},2:{name:"fixed_line",fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.PhoneNumberDesc},3:{name:"mobile",fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.PhoneNumberDesc},4:{name:"toll_free",fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.PhoneNumberDesc},5:{name:"premium_rate",fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.PhoneNumberDesc},6:{name:"shared_cost",fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.PhoneNumberDesc},7:{name:"personal_number",fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.PhoneNumberDesc},8:{name:"voip",fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.PhoneNumberDesc},21:{name:"pager",fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.PhoneNumberDesc},25:{name:"uan",fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.PhoneNumberDesc},27:{name:"emergency",fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.PhoneNumberDesc},28:{name:"voicemail",fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.PhoneNumberDesc},24:{name:"no_international_dialling",fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.PhoneNumberDesc},9:{name:"id",required:!0,fieldType:goog.proto2.Message.FieldType.STRING,type:String},10:{name:"country_code",fieldType:goog.proto2.Message.FieldType.INT32,type:Number},11:{name:"international_prefix",fieldType:goog.proto2.Message.FieldType.STRING,type:String},17:{name:"preferred_international_prefix",fieldType:goog.proto2.Message.FieldType.STRING,type:String},12:{name:"national_prefix",fieldType:goog.proto2.Message.FieldType.STRING,type:String},13:{name:"preferred_extn_prefix",fieldType:goog.proto2.Message.FieldType.STRING,type:String},15:{name:"national_prefix_for_parsing",fieldType:goog.proto2.Message.FieldType.STRING,type:String},16:{name:"national_prefix_transform_rule",fieldType:goog.proto2.Message.FieldType.STRING,type:String},18:{name:"same_mobile_and_fixed_line_pattern",fieldType:goog.proto2.Message.FieldType.BOOL,defaultValue:!1,type:Boolean},19:{name:"number_format",repeated:!0,fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.NumberFormat},20:{name:"intl_number_format",repeated:!0,fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.NumberFormat},22:{name:"main_country_for_code",fieldType:goog.proto2.Message.FieldType.BOOL,defaultValue:!1,type:Boolean},23:{name:"leading_digits",fieldType:goog.proto2.Message.FieldType.STRING,type:String},26:{name:"leading_zero_possible",fieldType:goog.proto2.Message.FieldType.BOOL,defaultValue:!1,type:Boolean}})),i18n.phonenumbers.PhoneMetadata.descriptor_},i18n.phonenumbers.PhoneMetadata.ctor=i18n.phonenumbers.PhoneMetadata,i18n.phonenumbers.PhoneMetadata.ctor.getDescriptor=i18n.phonenumbers.PhoneMetadata.prototype.getDescriptor,i18n.phonenumbers.PhoneMetadataCollection.prototype.getDescriptor=function(){return i18n.phonenumbers.PhoneMetadataCollection.descriptor_||(i18n.phonenumbers.PhoneMetadataCollection.descriptor_=goog.proto2.Message.createDescriptor(i18n.phonenumbers.PhoneMetadataCollection,{0:{name:"PhoneMetadataCollection",fullName:"i18n.phonenumbers.PhoneMetadataCollection"},1:{name:"metadata",repeated:!0,fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.PhoneMetadata}})),i18n.phonenumbers.PhoneMetadataCollection.descriptor_},i18n.phonenumbers.PhoneMetadataCollection.ctor=i18n.phonenumbers.PhoneMetadataCollection,i18n.phonenumbers.PhoneMetadataCollection.ctor.getDescriptor=i18n.phonenumbers.PhoneMetadataCollection.prototype.getDescriptor,i18n.phonenumbers.metadata={},i18n.phonenumbers.metadata.countryCodeToRegionCodeMap={1:"US AG AI AS BB BM BS CA DM DO GD GU JM KN KY LC MP MS PR SX TC TT VC VG VI".split(" "),7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],800:["001"],808:["001"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],870:["001"],878:["001"],880:["BD"],881:["001"],882:["001"],883:["001"],886:["TW"],888:["001"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],979:["001"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},i18n.phonenumbers.metadata.countryToMetadata={AC:[,[,,"[46]\\d{4}|[01589]\\d{5}","\\d{5,6}"],[,,"6[2-467]\\d{3}","\\d{5}",,,"62889"],[,,"4\\d{4}","\\d{5}",,,"40123"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"AC",247,"00",,,,,,,,,,[,,"NA","NA"],,,[,,"NA","NA"],[,,"[01589]\\d{5}","\\d{6}",,,"542011"],,,[,,"NA","NA"]],AD:[,[,,"(?:[346-9]|180)\\d{5}","\\d{6,8}"],[,,"[78]\\d{5}","\\d{6}",,,"712345"],[,,"[346]\\d{5}","\\d{6}",,,"312345"],[,,"180[02]\\d{4}","\\d{8}",,,"18001234"],[,,"9\\d{5}","\\d{6}",,,"912345"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"AD",376,"00",,,,,,,,[[,"(\\d{3})(\\d{3})","$1 $2",["[346-9]"],"","",0],[,"(180[02])(\\d{4})","$1 $2",["1"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],AE:[,[,,"[2-79]\\d{7,8}|800\\d{2,9}","\\d{5,12}"],[,,"[2-4679][2-8]\\d{6}","\\d{7,8}",,,"22345678"],[,,"5[0256]\\d{7}","\\d{9}",,,"501234567"],[,,"400\\d{6}|800\\d{2,9}","\\d{5,12}",,,"800123456"],[,,"900[02]\\d{5}","\\d{9}",,,"900234567"],[,,"700[05]\\d{5}","\\d{9}",,,"700012345"],[,,"NA","NA"],[,,"NA","NA"],"AE",971,"00","0",,,"0",,,,[[,"([2-4679])(\\d{3})(\\d{4})","$1 $2 $3",["[2-4679][2-8]"],"0$1","",0],[,"(5[0256])(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1","",0],[,"([479]00)(\\d)(\\d{5})","$1 $2 $3",["[479]0"],"$1","",0],[,"([68]00)(\\d{2,9})","$1 $2",["60|8"],"$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"600[25]\\d{5}","\\d{9}",,,"600212345"],,,[,,"NA","NA"]],AF:[,[,,"[2-7]\\d{8}","\\d{7,9}"],[,,"(?:[25][0-8]|[34][0-4]|6[0-5])[2-9]\\d{6}","\\d{7,9}",,,"234567890"],[,,"7(?:[014-9]\\d{7}|2[89]\\d{6})","\\d{9}",,,"701234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"AF",93,"00","0",,,"0",,,,[[,"([2-7]\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],AG:[,[,,"[2589]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"268(?:4(?:6[0-38]|84)|56[0-2])\\d{4}","\\d{7}(?:\\d{3})?",,,"2684601234"],[,,"268(?:464|7(?:2[0-9]|64|7[0-689]|8[02-68]))\\d{4}","\\d{10}",,,"2684641234"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002123456"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002123456"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"26848[01]\\d{4}","\\d{10}",,,"2684801234"],"AG",1,"011","1",,,"1",,,,,,[,,"26840[69]\\d{4}","\\d{10}",,,"2684061234"],,"268",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],AI:[,[,,"[2589]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"2644(?:6[12]|9[78])\\d{4}","\\d{7}(?:\\d{3})?",,,"2644612345"],[,,"264(?:235|476|5(?:3[6-9]|8[1-4])|7(?:29|72))\\d{4}","\\d{10}",,,"2642351234"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002123456"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002123456"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"AI",1,"011","1",,,"1",,,,,,[,,"NA","NA"],,"264",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],AL:[,[,,"[2-57]\\d{7}|6\\d{8}|8\\d{5,7}|9\\d{5}","\\d{5,9}"],[,,"(?:2(?:[168][1-9]|[247]\\d|9[1-7])|3(?:1[1-3]|[2-6]\\d|[79][1-8]|8[1-9])|4\\d{2}|5(?:1[1-4]|[2-578]\\d|6[1-5]|9[1-7])|8(?:[19][1-5]|[2-6]\\d|[78][1-7]))\\d{5}","\\d{5,8}",,,"22345678"],[,,"6[6-9]\\d{7}","\\d{9}",,,"661234567"],[,,"800\\d{4}","\\d{7}",,,"8001234"],[,,"900\\d{3}","\\d{6}",,,"900123"],[,,"808\\d{3}","\\d{6}",,,"808123"],[,,"700\\d{5}","\\d{8}",,,"70012345"],[,,"NA","NA"],"AL",355,"00","0",,,"0",,,,[[,"(4)(\\d{3})(\\d{4})","$1 $2 $3",["4[0-6]"],"0$1","",0],[,"(6[6-9])(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4[7-9]"],"0$1","",0],[,"(\\d{3})(\\d{3,5})","$1 $2",["[235][16-9]|8[016-9]|[79]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],AM:[,[,,"[1-9]\\d{7}","\\d{5,8}"],[,,"(?:1[01]\\d|2(?:2[2-46]|3[1-8]|4[2-69]|5[2-7]|6[1-9]|8[1-7])|3[12]2|47\\d)\\d{5}","\\d{5,8}",,,"10123456"],[,,"(?:4[139]|55|77|9[1-9])\\d{6}","\\d{8}",,,"77123456"],[,,"800\\d{5}","\\d{8}",,,"80012345"],[,,"90[016]\\d{5}","\\d{8}",,,"90012345"],[,,"80[1-4]\\d{5}","\\d{8}",,,"80112345"],[,,"NA","NA"],[,,"60[2-6]\\d{5}","\\d{8}",,,"60271234"],"AM",374,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)","",0],[,"(\\d{2})(\\d{6})","$1 $2",["4[139]|[5-7]|9[1-9]"],"0$1","",0],[,"(\\d{3})(\\d{5})","$1 $2",["[23]"],"(0$1)","",0],[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8|90"],"0 $1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],AO:[,[,,"[29]\\d{8}","\\d{9}"],[,,"2\\d(?:[26-9]\\d|\\d[26-9])\\d{5}","\\d{9}",,,"222123456"],[,,"9[1-49]\\d{7}","\\d{9}",,,"923123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"AO",244,"00",,,,,,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],AR:[,[,,"11\\d{8}|[2368]\\d{9}|9\\d{10}","\\d{6,11}"],[,,"11\\d{8}|(?:2(?:2(?:[013]\\d|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[067]\\d)|4(?:7[3-8]|9\\d)|6(?:[01346]\\d|2[24-6]|5[15-8])|80\\d|9(?:[0124789]\\d|3[1-6]|5[234]|6[2-46]))|3(?:3(?:2[79]|6\\d|8[2578])|4(?:[78]\\d|0[0124-9]|[1-35]\\d|4[24-7]|6[02-9]|9[123678])|5(?:[138]\\d|2[1245]|4[1-9]|6[2-4]|7[1-6])|6[24]\\d|7(?:[0469]\\d|1[1568]|2[013-9]|3[145]|5[14-8]|7[2-57]|8[0-24-9])|8(?:[013578]\\d|2[15-7]|4[13-6]|6[1-357-9]|9[124]))|670\\d)\\d{6}","\\d{6,10}",,,"1123456789"],[,,"675\\d{7}|9(?:11[2-9]\\d{7}|(?:2(?:2[013]|3[067]|49|6[01346]|80|9[147-9])|3(?:36|4[12358]|5[138]|6[24]|7[069]|8[013578]))[2-9]\\d{6}|\\d{4}[2-9]\\d{5})","\\d{6,11}",,,"91123456789"],[,,"800\\d{7}","\\d{10}",,,"8001234567"],[,,"60[04579]\\d{7}","\\d{10}",,,"6001234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"AR",54,"00","0",,,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))?15)?","9$1",,,[[,"([68]\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1","",0],[,"(\\d{2})(\\d{4})","$1-$2",["[2-9]"],"$1","",0],[,"(\\d{3})(\\d{4})","$1-$2",["[2-9]"],"$1","",0],[,"(\\d{4})(\\d{4})","$1-$2",["[2-9]"],"$1","",0],[,"(9)(11)(\\d{4})(\\d{4})","$2 15-$3-$4",["911"],"0$1","",0],[,"(9)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9(?:2[234689]|3[3-8])","9(?:2(?:2[013]|3[067]|49|6[01346]|80|9[147-9])|3(?:36|4[1-358]|5[138]|6[24]|7[069]|8[013578]))","9(?:2(?:2(?:0[013-9]|[13])|3(?:0[013-9]|[67])|49|6(?:[0136]|4[0-59])|8|9(?:[19]|44|7[013-9]|8[14]))|3(?:36|4(?:[12]|3[456]|[58]4)|5(?:1|3[0-24-689]|8[46])|6|7[069]|8(?:[01]|34|[578][45])))","9(?:2(?:2(?:0[013-9]|[13])|3(?:0[013-9]|[67])|49|6(?:[0136]|4[0-59])|8|9(?:[19]|44|7[013-9]|8[14]))|3(?:36|4(?:[12]|3(?:4|5[014]|6[1239])|[58]4)|5(?:1|3[0-24-689]|8[46])|6|7[069]|8(?:[01]|34|[578][45])))"],"0$1","",0],[,"(9)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9[23]"],"0$1","",0],[,"(11)(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1","",1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["2(?:2[013]|3[067]|49|6[01346]|80|9[147-9])|3(?:36|4[1-358]|5[138]|6[24]|7[069]|8[013578])","2(?:2(?:0[013-9]|[13])|3(?:0[013-9]|[67])|49|6(?:[0136]|4[0-59])|8|9(?:[19]|44|7[013-9]|8[14]))|3(?:36|4(?:[12]|3[456]|[58]4)|5(?:1|3[0-24-689]|8[46])|6|7[069]|8(?:[01]|34|[578][45]))","2(?:2(?:0[013-9]|[13])|3(?:0[013-9]|[67])|49|6(?:[0136]|4[0-59])|8|9(?:[19]|44|7[013-9]|8[14]))|3(?:36|4(?:[12]|3(?:4|5[014]|6[1239])|[58]4)|5(?:1|3[0-24-689]|8[46])|6|7[069]|8(?:[01]|34|[578][45]))"],"0$1","",1],[,"(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["[23]"],"0$1","",1],[,"(\\d{3})","$1",["1[012]|911"],"$1","",0]],[[,"([68]\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1","",0],[,"(9)(11)(\\d{4})(\\d{4})","$1 $2 $3-$4",["911"]],[,"(9)(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3-$4",["9(?:2[234689]|3[3-8])","9(?:2(?:2[013]|3[067]|49|6[01346]|80|9[147-9])|3(?:36|4[1-358]|5[138]|6[24]|7[069]|8[013578]))","9(?:2(?:2(?:0[013-9]|[13])|3(?:0[013-9]|[67])|49|6(?:[0136]|4[0-59])|8|9(?:[19]|44|7[013-9]|8[14]))|3(?:36|4(?:[12]|3[456]|[58]4)|5(?:1|3[0-24-689]|8[46])|6|7[069]|8(?:[01]|34|[578][45])))","9(?:2(?:2(?:0[013-9]|[13])|3(?:0[013-9]|[67])|49|6(?:[0136]|4[0-59])|8|9(?:[19]|44|7[013-9]|8[14]))|3(?:36|4(?:[12]|3(?:4|5[014]|6[1239])|[58]4)|5(?:1|3[0-24-689]|8[46])|6|7[069]|8(?:[01]|34|[578][45])))"]],[,"(9)(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3-$4",["9[23]"]],[,"(11)(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1","",1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["2(?:2[013]|3[067]|49|6[01346]|80|9[147-9])|3(?:36|4[1-358]|5[138]|6[24]|7[069]|8[013578])","2(?:2(?:0[013-9]|[13])|3(?:0[013-9]|[67])|49|6(?:[0136]|4[0-59])|8|9(?:[19]|44|7[013-9]|8[14]))|3(?:36|4(?:[12]|3[456]|[58]4)|5(?:1|3[0-24-689]|8[46])|6|7[069]|8(?:[01]|34|[578][45]))","2(?:2(?:0[013-9]|[13])|3(?:0[013-9]|[67])|49|6(?:[0136]|4[0-59])|8|9(?:[19]|44|7[013-9]|8[14]))|3(?:36|4(?:[12]|3(?:4|5[014]|6[1239])|[58]4)|5(?:1|3[0-24-689]|8[46])|6|7[069]|8(?:[01]|34|[578][45]))"],"0$1","",1],[,"(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["[23]"],"0$1","",1]],[,,"NA","NA"],,,[,,"810\\d{7}","\\d{10}",,,"8101234567"],[,,"810\\d{7}","\\d{10}",,,"8101234567"],,,[,,"NA","NA"]],AS:[,[,,"[5689]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"6846(?:22|33|44|55|77|88|9[19])\\d{4}","\\d{7}(?:\\d{3})?",,,"6846221234"],[,,"684(?:2(?:5[2468]|72)|7(?:3[13]|70))\\d{4}","\\d{10}",,,"6847331234"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002123456"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002123456"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"AS",1,"011","1",,,"1",,,,,,[,,"NA","NA"],,"684",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],AT:[,[,,"[1-9]\\d{3,12}","\\d{3,13}"],[,,"1\\d{3,12}|(?:2(?:1[467]|2[13-8]|5[2357]|6[1-46-8]|7[1-8]|8[124-7]|9[1458])|3(?:1[1-8]|3[23568]|4[5-7]|5[1378]|6[1-38]|8[3-68])|4(?:2[1-8]|35|63|7[1368]|8[2457])|5(?:12|2[1-8]|3[357]|4[147]|5[12578]|6[37])|6(?:13|2[1-47]|4[1-35-8]|5[468]|62)|7(?:2[1-8]|3[25]|4[13478]|5[68]|6[16-8]|7[1-6]|9[45]))\\d{3,10}","\\d{3,13}",,,"1234567890"],[,,"6(?:44|5[0-3579]|6[013-9]|[7-9]\\d)\\d{4,10}","\\d{7,13}",,,"644123456"],[,,"80[02]\\d{6,10}","\\d{9,13}",,,"800123456"],[,,"(?:711|9(?:0[01]|3[019]))\\d{6,10}","\\d{9,13}",,,"900123456"],[,,"8(?:10|2[018])\\d{6,10}","\\d{9,13}",,,"810123456"],[,,"NA","NA"],[,,"780\\d{6,10}","\\d{9,13}",,,"780123456"],"AT",43,"00","0",,,"0",,,,[[,"(1)(\\d{3,12})","$1 $2",["1"],"0$1","",0],[,"(5\\d)(\\d{3,5})","$1 $2",["5[079]"],"0$1","",0],[,"(5\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["5[079]"],"0$1","",0],[,"(5\\d)(\\d{4})(\\d{4,7})","$1 $2 $3",["5[079]"],"0$1","",0],[,"(\\d{3})(\\d{3,10})","$1 $2",["316|46|51|732|6(?:44|5[0-3579]|[6-9])|7(?:1|[28]0)|[89]"],"0$1","",0],[,"(\\d{4})(\\d{3,9})","$1 $2",["2|3(?:1[1-578]|[3-8])|4[2378]|5[2-6]|6(?:[12]|4[1-35-9]|5[468])|7(?:2[1-8]|35|4[1-8]|[5-79])"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"5(?:(?:0[1-9]|17)\\d{2,10}|[79]\\d{3,11})|720\\d{6,10}","\\d{5,13}",,,"50123"],,,[,,"NA","NA"]],AU:[,[,,"[1-578]\\d{5,9}","\\d{6,10}"],[,,"[237]\\d{8}|8(?:[68]\\d{3}|7[0-69]\\d{2}|9(?:[02-9]\\d{2}|1(?:[0-57-9]\\d|6[0135-9])))\\d{4}","\\d{8,9}",,,"212345678"],[,,"14(?:5\\d|71)\\d{5}|4(?:[0-2]\\d|3[0-57-9]|4[47-9]|5[0-25-9]|6[6-9]|7[03-9]|8[147-9]|9[017-9])\\d{6}","\\d{9}",,,"412345678"],[,,"180(?:0\\d{3}|2)\\d{3}","\\d{7,10}",,,"1800123456"],[,,"190[0126]\\d{6}","\\d{10}",,,"1900123456"],[,,"13(?:00\\d{2})?\\d{4}","\\d{6,10}",,,"1300123456"],[,,"500\\d{6}","\\d{9}",,,"500123456"],[,,"550\\d{6}","\\d{9}",,,"550123456"],"AU",61,"(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]","0",,,"0",,"0011",,[[,"([2378])(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)","",0],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[45]|14"],"0$1","",0],[,"(16)(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1","",0],[,"(1[389]\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[38]0|90)","1(?:[38]00|90)"],"$1","",0],[,"(180)(2\\d{3})","$1 $2",["180","1802"],"$1","",0],[,"(19\\d)(\\d{3})","$1 $2",["19[13]"],"$1","",0],[,"(19\\d{2})(\\d{4})","$1 $2",["19[67]"],"$1","",0],[,"(13)(\\d{2})(\\d{2})","$1 $2 $3",["13[1-9]"],"$1","",0]],,[,,"16\\d{3,7}","\\d{5,9}",,,"1612345"],1,,[,,"1(?:3(?:\\d{4}|00\\d{6})|80(?:0\\d{6}|2\\d{3}))","\\d{6,10}",,,"1300123456"],[,,"NA","NA"],,,[,,"NA","NA"]],AW:[,[,,"[25-9]\\d{6}","\\d{7}"],[,,"5(?:2\\d|8[1-9])\\d{4}","\\d{7}",,,"5212345"],[,,"(?:5(?:6\\d|9[2-478])|6(?:[039]0|22|4[01]|6[0-2])|7[34]\\d|9(?:6[45]|9[4-8]))\\d{4}","\\d{7}",,,"5601234"],[,,"800\\d{4}","\\d{7}",,,"8001234"],[,,"900\\d{4}","\\d{7}",,,"9001234"],[,,"NA","NA"],[,,"NA","NA"],[,,"28\\d{5}|501\\d{4}","\\d{7}",,,"5011234"],"AW",297,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],AX:[,[,,"[135]\\d{5,9}|[27]\\d{4,9}|4\\d{5,10}|6\\d{7,8}|8\\d{6,9}","\\d{5,12}"],[,,"18[1-8]\\d{3,9}","\\d{6,12}",,,"1812345678"],[,,"4\\d{5,10}|50\\d{4,8}","\\d{6,11}",,,"412345678"],[,,"800\\d{4,7}","\\d{7,10}",,,"8001234567"],[,,"[67]00\\d{5,6}","\\d{8,9}",,,"600123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"AX",358,"00|99[049]","0",,,"0",,,,,,[,,"NA","NA"],,,[,,"[13]00\\d{3,7}|2(?:0(?:0\\d{3,7}|2[023]\\d{1,6}|9[89]\\d{1,6}))|60(?:[12]\\d{5,6}|6\\d{7})|7(?:1\\d{7}|3\\d{8}|5[03-9]\\d{2,7})","\\d{5,10}",,,"100123"],[,,"[13]0\\d{4,8}|2(?:0(?:[016-8]\\d{3,7}|[2-59]\\d{2,7})|9\\d{4,8})|60(?:[12]\\d{5,6}|6\\d{7})|7(?:1\\d{7}|3\\d{8}|5[03-9]\\d{2,7})","\\d{5,10}",,,"10112345"],,,[,,"NA","NA"]],AZ:[,[,,"[1-9]\\d{8}","\\d{7,9}"],[,,"(?:1[28]\\d|2(?:02|1[24]|2[2-4]|33|[45]2|6[23])|365)\\d{6}","\\d{7,9}",,,"123123456"],[,,"(?:4[04]|5[015]|60|7[07])\\d{7}","\\d{9}",,,"401234567"],[,,"88\\d{7}","\\d{9}",,,"881234567"],[,,"900200\\d{3}","\\d{9}",,,"900200123"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"AZ",994,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["(?:1[28]|2(?:[45]2|[0-36])|365)"],"(0$1)","",0],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[4-8]"],"0$1","",0],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],BA:[,[,,"[3-9]\\d{7,8}","\\d{6,9}"],[,,"(?:[35]\\d|49)\\d{6}","\\d{6,8}",,,"30123456"],[,,"6(?:03|44|71|[1-356])\\d{6}","\\d{8,9}",,,"61123456"],[,,"8[08]\\d{6}","\\d{8}",,,"80123456"],[,,"9[0246]\\d{6}","\\d{8}",,,"90123456"],[,,"8[12]\\d{6}","\\d{8}",,,"82123456"],[,,"NA","NA"],[,,"NA","NA"],"BA",387,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]"],"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-356]|[7-9]"],"0$1","",0],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6[047]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"70[23]\\d{5}","\\d{8}",,,"70223456"],,,[,,"NA","NA"]],BB:[,[,,"[2589]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"246[2-9]\\d{6}","\\d{7}(?:\\d{3})?",,,"2462345678"],[,,"246(?:(?:2[346]|45|82)\\d|25[0-46])\\d{4}","\\d{10}",,,"2462501234"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002123456"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002123456"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"BB",1,"011","1",,,"1",,,,,,[,,"NA","NA"],,"246",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],BD:[,[,,"[2-79]\\d{5,9}|1\\d{9}|8[0-7]\\d{4,8}","\\d{6,10}"],[,,"2(?:7(?:1[0-267]|2[0-289]|3[0-29]|[46][01]|5[1-3]|7[017]|91)|8(?:0[125]|[139][1-6]|2[0157-9]|6[1-35]|7[1-5]|8[1-8])|9(?:0[0-2]|1[0-4]|2[568]|3[3-6]|5[5-7]|6[0167]|7[15]|8[0146-8]))\\d{4}|3(?:12?[5-7]\\d{2}|0(?:2(?:[025-79]\\d|[348]\\d{1,2})|3(?:[2-4]\\d|[56]\\d?))|2(?:1\\d{2}|2(?:[12]\\d|[35]\\d{1,2}|4\\d?))|3(?:1\\d{2}|2(?:[2356]\\d|4\\d{1,2}))|4(?:1\\d{2}|2(?:2\\d{1,2}|[47]|5\\d{2}))|5(?:1\\d{2}|29)|[67]1\\d{2}|8(?:1\\d{2}|2(?:2\\d{2}|3|4\\d)))\\d{3}|4(?:0(?:2(?:[09]\\d|7)|33\\d{2})|1\\d{3}|2(?:1\\d{2}|2(?:[25]\\d?|[348]\\d|[67]\\d{1,2}))|3(?:1\\d{2}(?:\\d{2})?|2(?:[045]\\d|[236-9]\\d{1,2})|32\\d{2})|4(?:[18]\\d{2}|2(?:[2-46]\\d{2}|3)|5[25]\\d{2})|5(?:1\\d{2}|2(?:3\\d|5))|6(?:[18]\\d{2}|2(?:3(?:\\d{2})?|[46]\\d{1,2}|5\\d{2}|7\\d)|5(?:3\\d?|4\\d|[57]\\d{1,2}|6\\d{2}|8))|71\\d{2}|8(?:[18]\\d{2}|23\\d{2}|54\\d{2})|9(?:[18]\\d{2}|2[2-5]\\d{2}|53\\d{1,2}))\\d{3}|5(?:02[03489]\\d{2}|1\\d{2}|2(?:1\\d{2}|2(?:2(?:\\d{2})?|[457]\\d{2}))|3(?:1\\d{2}|2(?:[37](?:\\d{2})?|[569]\\d{2}))|4(?:1\\d{2}|2[46]\\d{2})|5(?:1\\d{2}|26\\d{1,2})|6(?:[18]\\d{2}|2|53\\d{2})|7(?:1|24)\\d{2}|8(?:1|26)\\d{2}|91\\d{2})\\d{3}|6(?:0(?:1\\d{2}|2(?:3\\d{2}|4\\d{1,2}))|2(?:2[2-5]\\d{2}|5(?:[3-5]\\d{2}|7)|8\\d{2})|3(?:1|2[3478])\\d{2}|4(?:1|2[34])\\d{2}|5(?:1|2[47])\\d{2}|6(?:[18]\\d{2}|6(?:2(?:2\\d|[34]\\d{2})|5(?:[24]\\d{2}|3\\d|5\\d{1,2})))|72[2-5]\\d{2}|8(?:1\\d{2}|2[2-5]\\d{2})|9(?:1\\d{2}|2[2-6]\\d{2}))\\d{3}|7(?:(?:02|[3-589]1|6[12]|72[24])\\d{2}|21\\d{3}|32)\\d{3}|8(?:(?:4[12]|[5-7]2|1\\d?)|(?:0|3[12]|[5-7]1|217)\\d)\\d{4}|9(?:[35]1|(?:[024]2|81)\\d|(?:1|[24]1)\\d{2})\\d{3}","\\d{6,9}",,,"27111234"],[,,"(?:1[13-9]\\d|(?:3[78]|44)[02-9]|6(?:44|6[02-9]))\\d{7}","\\d{10}",,,"1812345678"],[,,"80[03]\\d{7}","\\d{10}",,,"8001234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"96(?:0[49]|1[0-4]|6[69])\\d{6}","\\d{10}",,,"9604123456"],"BD",880,"00[12]?","0",,,"0",,"00",,[[,"(2)(\\d{7})","$1-$2",["2"],"0$1","",0],[,"(\\d{2})(\\d{4,6})","$1-$2",["[3-79]1"],"0$1","",0],[,"(\\d{4})(\\d{3,6})","$1-$2",["1|3(?:0|[2-58]2)|4(?:0|[25]2|3[23]|[4689][25])|5(?:[02-578]2|6[25])|6(?:[0347-9]2|[26][25])|7[02-9]2|8(?:[023][23]|[4-7]2)|9(?:[02][23]|[458]2|6[016])"],"0$1","",0],[,"(\\d{3})(\\d{3,7})","$1-$2",["[3-79][2-9]|8"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],BE:[,[,,"[1-9]\\d{7,8}","\\d{8,9}"],[,,"(?:1[0-69]|[23][2-8]|4[23]|5\\d|6[013-57-9]|71|8[1-79]|9[2-4])\\d{6}|80[2-8]\\d{5}","\\d{8}",,,"12345678"],[,,"4(?:6[0135-8]|[79]\\d|8[3-9])\\d{6}","\\d{9}",,,"470123456"],[,,"800\\d{5}","\\d{8}",,,"80012345"],[,,"(?:70[2-467]|90[0-79])\\d{5}","\\d{8}",,,"90123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"BE",32,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4[6-9]"],"0$1","",0],[,"(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[23]|4[23]|9[2-4]"],"0$1","",0],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[156]|7[018]|8(?:0[1-9]|[1-79])"],"0$1","",0],[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"78\\d{6}","\\d{8}",,,"78123456"],,,[,,"NA","NA"]],BF:[,[,,"[267]\\d{7}","\\d{8}"],[,,"2(?:0(?:49|5[23]|9[016-9])|4(?:4[569]|5[4-6]|7[0179])|5(?:[34]\\d|50))\\d{4}","\\d{8}",,,"20491234"],[,,"6(?:[0-689]\\d|7[0-5])\\d{5}|7\\d{7}","\\d{8}",,,"70123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"BF",226,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],BG:[,[,,"[23567]\\d{5,7}|[489]\\d{6,8}","\\d{5,9}"],[,,"2(?:[0-8]\\d{5,6}|9\\d{4,6})|(?:[36]\\d|5[1-9]|8[1-6]|9[1-7])\\d{5,6}|(?:4(?:[124-7]\\d|3[1-6])|7(?:0[1-9]|[1-9]\\d))\\d{4,5}","\\d{5,8}",,,"2123456"],[,,"(?:8[7-9]\\d|9(?:8\\d|99))\\d{6}|4(?:3[0789]|8\\d)\\d{5}","\\d{8,9}",,,"48123456"],[,,"800\\d{5}","\\d{8}",,,"80012345"],[,,"90\\d{6}","\\d{8}",,,"90123456"],[,,"NA","NA"],[,,"700\\d{5}","\\d{5,9}",,,"70012345"],[,,"NA","NA"],"BG",359,"00","0",,,"0",,,,[[,"(2)(\\d{5})","$1 $2",["29"],"0$1","",0],[,"(2)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1","",0],[,"(\\d{3})(\\d{4})","$1 $2",["43[124-7]|70[1-9]"],"0$1","",0],[,"(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[124-7]|70[1-9]"],"0$1","",0],[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[78]00"],"0$1","",0],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["999"],"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["48|8[7-9]|9[08]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],BH:[,[,,"[136-9]\\d{7}","\\d{8}"],[,,"(?:1(?:3[1356]|6[0156]|7\\d)\\d|6(?:1[16]\\d|500|6(?:0\\d|3[12]|44|7[7-9])|9[69][69])|7(?:1(?:11|78)|7\\d{2}))\\d{4}","\\d{8}",,,"17001234"],[,,"(?:3(?:[1-4679]\\d|5[013569]|8[0-47-9])\\d|6(?:3(?:00|33|6[16])|6(?:[69]\\d|3[03-9]|7[0-6])))\\d{4}","\\d{8}",,,"36001234"],[,,"80\\d{6}","\\d{8}",,,"80123456"],[,,"(?:87|9[014578])\\d{6}","\\d{8}",,,"90123456"],[,,"84\\d{6}","\\d{8}",,,"84123456"],[,,"NA","NA"],[,,"NA","NA"],"BH",973,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],BI:[,[,,"[267]\\d{7}","\\d{8}"],[,,"22(?:2[0-7]|[3-5]0)\\d{4}","\\d{8}",,,"22201234"],[,,"(?:[26]9|7[14-9])\\d{6}","\\d{8}",,,"79561234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"BI",257,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],BJ:[,[,,"[2689]\\d{7}|7\\d{3}","\\d{4,8}"],[,,"2(?:02|1[037]|2[45]|3[68])\\d{5}","\\d{8}",,,"20211234"],[,,"(?:6[146-8]|9[03-9])\\d{6}","\\d{8}",,,"90011234"],[,,"7[3-5]\\d{2}","\\d{4}",,,"7312"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"857[58]\\d{4}","\\d{8}",,,"85751234"],"BJ",229,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"81\\d{6}","\\d{8}",,,"81123456"],,,[,,"NA","NA"]],BL:[,[,,"[56]\\d{8}","\\d{9}"],[,,"590(?:2[7-9]|5[12]|87)\\d{4}","\\d{9}",,,"590271234"],[,,"690(?:0[0-7]|[1-9]\\d)\\d{4}","\\d{9}",,,"690301234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"BL",590,"00","0",,,"0",,,,,,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],BM:[,[,,"[4589]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"441(?:2(?:02|23|61|[3479]\\d)|[46]\\d{2}|5(?:4\\d|60|89)|824)\\d{4}","\\d{7}(?:\\d{3})?",,,"4412345678"],[,,"441(?:[37]\\d|5[0-39])\\d{5}","\\d{10}",,,"4413701234"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002123456"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002123456"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"BM",1,"011","1",,,"1",,,,,,[,,"NA","NA"],,"441",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],BN:[,[,,"[2-578]\\d{6}","\\d{7}"],[,,"2(?:[013-9]\\d|2[0-7])\\d{4}|[3-5]\\d{6}","\\d{7}",,,"2345678"],[,,"22[89]\\d{4}|[78]\\d{6}","\\d{7}",,,"7123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"BN",673,"00",,,,,,,,[[,"([2-578]\\d{2})(\\d{4})","$1 $2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],BO:[,[,,"[23467]\\d{7}","\\d{7,8}"],[,,"(?:2(?:2\\d{2}|5(?:11|[258]\\d|9[67])|6(?:12|2\\d|9[34])|8(?:2[34]|39|62))|3(?:3\\d{2}|4(?:6\\d|8[24])|8(?:25|42|5[257]|86|9[25])|9(?:2\\d|3[234]|4[248]|5[24]|6[2-6]|7\\d))|4(?:4\\d{2}|6(?:11|[24689]\\d|72)))\\d{4}","\\d{7,8}",,,"22123456"],[,,"[67]\\d{7}","\\d{8}",,,"71234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"BO",591,"00(1\\d)?","0",,,"0(1\\d)?",,,,[[,"([234])(\\d{7})","$1 $2",["[234]"],"","0$CC $1",0],[,"([67]\\d{7})","$1",["[67]"],"","0$CC $1",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],BQ:[,[,,"[347]\\d{6}","\\d{7}"],[,,"(?:318[023]|416[023]|7(?:1[578]|50)\\d)\\d{3}","\\d{7}",,,"7151234"],[,,"(?:318[14-68]|416[15-9]|7(?:0[01]|7[07]|[89]\\d)\\d)\\d{3}","\\d{7}",,,"3181234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"BQ",599,"00",,,,,,,,,,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],BR:[,[,,"[1-46-9]\\d{7,10}|5\\d{8,9}","\\d{8,11}"],[,,"1[1-9][2-5]\\d{7}|(?:[4689][1-9]|2[12478]|3[1-578]|5[1-5]|7[13-579])[2-5]\\d{7}","\\d{8,11}",,,"1123456789"],[,,"(?:1[1-9]|2[12478]|[89][1-9])(?:7|9\\d)\\d{7}|(?:3[1-578]|7[13-579])9?[6-9]\\d{7}|(?:[46][1-9]|5[1-5])[6-9]\\d{7}","\\d{10,11}",,,"11961234567"],[,,"800\\d{6,7}","\\d{8,11}",,,"800123456"],[,,"[359]00\\d{6,7}","\\d{8,11}",,,"300123456"],[,,"[34]00\\d{5}","\\d{8}",,,"40041234"],[,,"NA","NA"],[,,"NA","NA"],"BR",55,"00(?:1[45]|2[135]|31|4[13])","0",,,"0(?:(1[245]|2[135]|31|4[13])(\\d{10,11}))?","$2",,,[[,"(\\d{4})(\\d{4})","$1-$2",["[2-9](?:[1-9]|0[1-9])"],"$1","",0],[,"(\\d{5})(\\d{4})","$1-$2",["9(?:[1-9]|0[1-9])"],"$1","",0],[,"(\\d{3,5})","$1",["1[125689]"],"$1","",0],[,"(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["(?:[189][1-9]|2[12478]|3[1-578]|7[13-579])9"],"($1)","0 $CC ($1)",0],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["[1-9][1-9]"],"($1)","0 $CC ($1)",0],[,"([34]00\\d)(\\d{4})","$1-$2",["[34]00"],"","",0],[,"([3589]00)(\\d{2,3})(\\d{4})","$1 $2 $3",["[3589]00"],"0$1","",0]],[[,"(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["(?:[189][1-9]|2[12478]|3[1-578]|7[13-579])9"],"($1)","0 $CC ($1)",0],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["[1-9][1-9]"],"($1)","0 $CC ($1)",0],[,"([34]00\\d)(\\d{4})","$1-$2",["[34]00"],"","",0],[,"([3589]00)(\\d{2,3})(\\d{4})","$1 $2 $3",["[3589]00"],"0$1","",0]],[,,"NA","NA"],,,[,,"[34]00\\d{5}","\\d{8}",,,"40041234"],[,,"NA","NA"],,,[,,"NA","NA"]],BS:[,[,,"[2589]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"242(?:3(?:02|[236][1-9]|4[0-24-9]|5[0-68]|7[3467]|8[0-4]|9[2-467])|461|502|6(?:0[1-3]|12|7[67]|8[78]|9[89])|7(?:02|88))\\d{4}","\\d{7}(?:\\d{3})?",,,"2423456789"],[,,"242(?:3(?:5[79]|[79]5)|4(?:[2-4][1-9]|5[1-8]|6[2-8]|7\\d|81)|5(?:2[45]|3[35]|44|5[1-9]|65|77)|6[34]6|727)\\d{4}","\\d{10}",,,"2423591234"],[,,"242300\\d{4}|8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002123456"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002123456"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"BS",1,"011","1",,,"1",,,,,,[,,"NA","NA"],,"242",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],BT:[,[,,"[1-8]\\d{6,7}","\\d{6,8}"],[,,"(?:2[3-6]|[34][5-7]|5[236]|6[2-46]|7[246]|8[2-4])\\d{5}","\\d{6,7}",,,"2345678"],[,,"[17]7\\d{6}","\\d{8}",,,"17123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"BT",975,"00",,,,,,,,[[,"([17]7)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1|77"],"","",0],[,"([2-8])(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],BW:[,[,,"[2-79]\\d{6,7}","\\d{7,8}"],[,,"(?:2(?:4[0-48]|6[0-24]|9[0578])|3(?:1[0235-9]|55|6\\d|7[01]|9[0-57])|4(?:6[03]|7[1267]|9[0-5])|5(?:3[0389]|4[0489]|7[1-47]|88|9[0-49])|6(?:2[1-35]|5[149]|8[067]))\\d{4}","\\d{7}",,,"2401234"],[,,"7(?:[1-6]\\d|7[014-8])\\d{5}","\\d{8}",,,"71123456"],[,,"NA","NA"],[,,"90\\d{5}","\\d{7}",,,"9012345"],[,,"NA","NA"],[,,"NA","NA"],[,,"79[12][01]\\d{4}","\\d{8}",,,"79101234"],"BW",267,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-6]"],"","",0],[,"(7\\d)(\\d{3})(\\d{3})","$1 $2 $3",["7"],"","",0],[,"(90)(\\d{5})","$1 $2",["9"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],BY:[,[,,"[1-4]\\d{8}|800\\d{3,7}|[89]\\d{9,10}","\\d{6,11}"],[,,"(?:1(?:5(?:1[1-5]|[24]\\d|6[2-4]|9[1-7])|6(?:[235]\\d|4[1-7])|7\\d{2})|2(?:1(?:[246]\\d|3[0-35-9]|5[1-9])|2(?:[235]\\d|4[0-8])|3(?:[26]\\d|3[02-79]|4[024-7]|5[03-7])))\\d{5}","\\d{6,11}",,,"152450911"],[,,"(?:2(?:5[5679]|9[1-9])|33\\d|44\\d)\\d{6}","\\d{9}",,,"294911911"],[,,"8(?:0[13]|20\\d)\\d{7}|800\\d{3,7}","\\d{6,11}",,,"8011234567"],[,,"(?:810|902)\\d{7}","\\d{10}",,,"9021234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"249\\d{6}","\\d{9}",,,"249123456"],"BY",375,"810","8",,,"8?0?",,"8~10",,[[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["17[0-3589]|2[4-9]|[34]","17(?:[02358]|1[0-2]|9[0189])|2[4-9]|[34]"],"8 0$1","",0],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:5[24]|6[235]|7[467])|2(?:1[246]|2[25]|3[26])","1(?:5[24]|6(?:2|3[04-9]|5[0346-9])|7(?:[46]|7[37-9]))|2(?:1[246]|2[25]|3[26])"],"8 0$1","",0],[,"(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1","",0],[,"([89]\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8[01]|9"],"8 $1","",0],[,"(82\\d)(\\d{4})(\\d{4})","$1 $2 $3",["82"],"8 $1","",0],[,"(800)(\\d{3})","$1 $2",["800"],"8 $1","",0],[,"(800)(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1","",0]],,[,,"NA","NA"],,,[,,"8(?:[013]|[12]0)\\d{8}|800\\d{3,7}|902\\d{7}","\\d{6,11}",,,"82012345678"],[,,"NA","NA"],,,[,,"NA","NA"]],BZ:[,[,,"[2-8]\\d{6}|0\\d{10}","\\d{7}(?:\\d{4})?"],[,,"[234578][02]\\d{5}","\\d{7}",,,"2221234"],[,,"6[0-367]\\d{5}","\\d{7}",,,"6221234"],[,,"0800\\d{7}","\\d{11}",,,"08001234123"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"BZ",501,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1-$2",["[2-8]"],"","",0],[,"(0)(800)(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],1,,[,,"NA","NA"]],CA:[,[,,"[2-9]\\d{9}|3\\d{6}","\\d{7}(?:\\d{3})?"],[,,"(?:2(?:04|[23]6|[48]9|50)|3(?:06|43|65)|4(?:03|1[68]|3[178]|50)|5(?:06|1[49]|48|79|8[17])|6(?:0[04]|13|22|39|47)|7(?:0[59]|78|8[02])|8(?:[06]7|19|73)|90[25])[2-9]\\d{6}|310\\d{4}","\\d{7}(?:\\d{3})?",,,"2042345678"],[,,"(?:2(?:04|[23]6|[48]9|50)|3(?:06|43|65)|4(?:03|1[68]|3[178]|50)|5(?:06|1[49]|48|79|8[17])|6(?:0[04]|13|22|39|47)|7(?:0[59]|78|8[02])|8(?:[06]7|19|73)|90[25])[2-9]\\d{6}","\\d{7}(?:\\d{3})?",,,"2042345678"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}|310\\d{4}","\\d{7}(?:\\d{3})?",,,"8002123456"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002123456"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"CA",1,"011","1",,,"1",,,,,,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],CC:[,[,,"[1458]\\d{5,9}","\\d{6,10}"],[,,"89162\\d{4}","\\d{8,9}",,,"891621234"],[,,"14(?:5\\d|71)\\d{5}|4(?:[0-2]\\d|3[0-57-9]|4[47-9]|5[0-25-9]|6[6-9]|7[03-9]|8[17-9]|9[017-9])\\d{6}","\\d{9}",,,"412345678"],[,,"1(?:80(?:0\\d{2})?|3(?:00\\d{2})?)\\d{4}","\\d{6,10}",,,"1800123456"],[,,"190[0126]\\d{6}","\\d{10}",,,"1900123456"],[,,"NA","NA"],[,,"500\\d{6}","\\d{9}",,,"500123456"],[,,"550\\d{6}","\\d{9}",,,"550123456"],"CC",61,"(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]","0",,,"0",,"0011",,,,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],CD:[,[,,"[2-6]\\d{6}|[18]\\d{6,8}|9\\d{8}","\\d{7,9}"],[,,"1(?:2\\d{7}|\\d{6})|[2-6]\\d{6}","\\d{7,9}",,,"1234567"],[,,"8(?:[0-2459]\\d{2}|8)\\d{5}|9[7-9]\\d{7}","\\d{7,9}",,,"991234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"CD",243,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["12"],"0$1","",0],[,"([89]\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8[0-2459]|9"],"0$1","",0],[,"(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1","",0],[,"(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],CF:[,[,,"[278]\\d{7}","\\d{8}"],[,,"2[12]\\d{6}","\\d{8}",,,"21612345"],[,,"7[0257]\\d{6}","\\d{8}",,,"70012345"],[,,"NA","NA"],[,,"8776\\d{4}","\\d{8}",,,"87761234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"CF",236,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],CG:[,[,,"[028]\\d{8}","\\d{9}"],[,,"222[1-589]\\d{5}","\\d{9}",,,"222123456"],[,,"0[14-6]\\d{7}","\\d{9}",,,"061234567"],[,,"NA","NA"],[,,"800\\d{6}","\\d{9}",,,"800123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"CG",242,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"],"","",0],[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],1,,[,,"NA","NA"]],CH:[,[,,"[2-9]\\d{8}|860\\d{9}","\\d{9}(?:\\d{3})?"],[,,"(?:2[12467]|3[1-4]|4[134]|5[256]|6[12]|[7-9]1)\\d{7}","\\d{9}",,,"212345678"],[,,"7[5-9]\\d{7}","\\d{9}",,,"781234567"],[,,"800\\d{6}","\\d{9}",,,"800123456"],[,,"90[016]\\d{6}","\\d{9}",,,"900123456"],[,,"84[0248]\\d{6}","\\d{9}",,,"840123456"],[,,"878\\d{6}","\\d{9}",,,"878123456"],[,,"NA","NA"],"CH",41,"00","0",,,"0",,,,[[,"([2-9]\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]|[89]1"],"0$1","",0],[,"([89]\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1","",0],[,"(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["860"],"0$1","",0]],,[,,"74[0248]\\d{6}","\\d{9}",,,"740123456"],,,[,,"NA","NA"],[,,"5[18]\\d{7}","\\d{9}",,,"581234567"],,,[,,"860\\d{9}","\\d{12}",,,"860123456789"]],CI:[,[,,"[02-7]\\d{7}","\\d{8}"],[,,"(?:2(?:0[023]|1[02357]|[23][045]|4[03-5])|3(?:0[06]|1[069]|[2-4][07]|5[09]|6[08]))\\d{5}","\\d{8}",,,"21234567"],[,,"(?:0[1-9]|4\\d|5[4-9]|6[015-79]|7[578])\\d{6}","\\d{8}",,,"01234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"CI",225,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],1,,[,,"NA","NA"]],CK:[,[,,"[2-57]\\d{4}","\\d{5}"],[,,"(?:2\\d|3[13-7]|4[1-5])\\d{3}","\\d{5}",,,"21234"],[,,"(?:5[0-68]|7\\d)\\d{3}","\\d{5}",,,"71234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"CK",682,"00",,,,,,,,[[,"(\\d{2})(\\d{3})","$1 $2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],CL:[,[,,"(?:[2-9]|600|123)\\d{7,8}","\\d{7,11}"],[,,"2(?:2\\d{7}|3(?:20|22)\\d{5}|1962\\d{4})|(?:3[2-5]|[47][1-35]|5[1-3578]|6[13-57])\\d{7}","\\d{7,9}",,,"221234567"],[,,"9[4-9]\\d{7}","\\d{8,9}",,,"961234567"],[,,"800\\d{6}|1230\\d{7}","\\d{9,11}",,,"800123456"],[,,"NA","NA"],[,,"600\\d{7,8}","\\d{10,11}",,,"6001234567"],[,,"NA","NA"],[,,"44\\d{7}","\\d{9}",,,"441234567"],"CL",56,"(?:0|1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))0","0",,,"0|(1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))",,,,[[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[23]"],"($1)","$CC ($1)",0],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[357]|4[1-35]|6[13-57]"],"($1)","$CC ($1)",0],[,"(9)(\\d{4})(\\d{4})","$1 $2 $3",["9"],"0$1","",0],[,"(44)(\\d{3})(\\d{4})","$1 $2 $3",["44"],"0$1","",0],[,"([68]00)(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"],"$1","",0],[,"(600)(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"],"$1","",0],[,"(1230)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"$1","",0],[,"(\\d{5})(\\d{4})","$1 $2",["219"],"($1)","$CC ($1)",0],[,"(\\d{4,5})","$1",["[1-9]"],"$1","",0]],[[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[23]"],"($1)","$CC ($1)",0],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[357]|4[1-35]|6[13-57]"],"($1)","$CC ($1)",0],[,"(9)(\\d{4})(\\d{4})","$1 $2 $3",["9"],"0$1","",0],[,"(44)(\\d{3})(\\d{4})","$1 $2 $3",["44"],"0$1","",0],[,"([68]00)(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"],"$1","",0],[,"(600)(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"],"$1","",0],[,"(1230)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"$1","",0],[,"(\\d{5})(\\d{4})","$1 $2",["219"],"($1)","$CC ($1)",0]],[,,"NA","NA"],,,[,,"600\\d{7,8}","\\d{10,11}",,,"6001234567"],[,,"NA","NA"],,,[,,"NA","NA"]],CM:[,[,,"[2368]\\d{7,8}","\\d{8,9}"],[,,"2(?:22|33|4[23])\\d{6}","\\d{9}",,,"222123456"],[,,"6[5-9]\\d{7}","\\d{9}",,,"671234567"],[,,"800\\d{5}","\\d{8}",,,"80012345"],[,,"88\\d{6}","\\d{8}",,,"88012345"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"CM",237,"00",,,,,,,,[[,"([26])(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]"],"","",0],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[23]|88"],"","",0],[,"(800)(\\d{2})(\\d{3})","$1 $2 $3",["80"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],CN:[,[,,"[1-7]\\d{6,11}|8[0-357-9]\\d{6,9}|9\\d{7,10}","\\d{4,12}"],[,,"21(?:100\\d{2}|95\\d{3,4}|\\d{8,10})|(?:10|2[02-57-9]|3(?:11|7[179])|4(?:[15]1|3[12])|5(?:1\\d|2[37]|3[12]|51|7[13-79]|9[15])|7(?:31|5[457]|6[09]|91)|8(?:[57]1|98))(?:100\\d{2}|95\\d{3,4}|\\d{8})|(?:3(?:1[02-9]|35|49|5\\d|7[02-68]|9[1-68])|4(?:1[02-9]|2[179]|3[3-9]|5[2-9]|6[4789]|7\\d|8[23])|5(?:3[03-9]|4[36]|5[02-9]|6[1-46]|7[028]|80|9[2-46-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[17]\\d|2[248]|3[04-9]|4[3-6]|5[0-3689]|6[2368]|9[02-9])|8(?:1[236-8]|2[5-7]|3\\d|5[4-9]|7[02-9]|8[3678]|9[1-7])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100\\d{2}|95\\d{3,4}|\\d{7})|80(?:29|6[03578]|7[018]|81)\\d{4}","\\d{4,12}",,,"1012345678"],[,,"1(?:[38]\\d|4[57]|5[0-35-9]|7[06-8])\\d{8}","\\d{11}",,,"13123456789"],[,,"(?:10)?800\\d{7}","\\d{10,12}",,,"8001234567"],[,,"16[08]\\d{5}","\\d{8}",,,"16812345"],[,,"400\\d{7}|950\\d{7,8}|(?:10|2[0-57-9]|3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[4789]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[3678]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))96\\d{3,4}","\\d{7,11}",,,"4001234567"],[,,"NA","NA"],[,,"NA","NA"],"CN",86,"(1(?:[129]\\d{3}|79\\d{2}))?00","0",,,"(1(?:[129]\\d{3}|79\\d{2}))|0",,"00",,[[,"(80\\d{2})(\\d{4})","$1 $2",["80[2678]"],"0$1","$CC $1",1],[,"([48]00)(\\d{3})(\\d{4})","$1 $2 $3",["[48]00"],"","",0],[,"(\\d{5,6})","$1",["100|95"],"","",0],[,"(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2\\d)[19]","(?:10|2\\d)(?:10|9[56])","(?:10|2\\d)(?:100|9[56])"],"0$1","$CC $1",0],[,"(\\d{3})(\\d{5,6})","$1 $2",["[3-9]","[3-9]\\d{2}[19]","[3-9]\\d{2}(?:10|9[56])"],"0$1","$CC $1",0],[,"(\\d{3,4})(\\d{4})","$1 $2",["[2-9]"],"","",0],[,"(21)(\\d{4})(\\d{4,6})","$1 $2 $3",["21"],"0$1","$CC $1",1],[,"([12]\\d)(\\d{4})(\\d{4})","$1 $2 $3",["10[1-9]|2[02-9]","10[1-9]|2[02-9]","10(?:[1-79]|8(?:[1-9]|0[1-9]))|2[02-9]"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["3(?:11|7[179])|4(?:[15]1|3[12])|5(?:1|2[37]|3[12]|51|7[13-79]|9[15])|7(?:31|5[457]|6[09]|91)|8(?:[57]1|98)"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:1[02-9]|35|49|5|7[02-68]|9[1-68])|4(?:1[02-9]|2[179]|[35][2-9]|6[4789]|7\\d|8[23])|5(?:3[03-9]|4[36]|5[02-9]|6[1-46]|7[028]|80|9[2-46-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[04-9]|4[3-6]|6[2368])|8(?:1[236-8]|2[5-7]|3|5[4-9]|7[02-9]|8[3678]|9[1-7])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-578]"],"","$CC $1",0],[,"(10800)(\\d{3})(\\d{4})","$1 $2 $3",["108","1080","10800"],"","",0],[,"(\\d{3})(\\d{7,8})","$1 $2",["950"],"","",0]],[[,"(80\\d{2})(\\d{4})","$1 $2",["80[2678]"],"0$1","$CC $1",1],[,"([48]00)(\\d{3})(\\d{4})","$1 $2 $3",["[48]00"],"","",0],[,"(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2\\d)[19]","(?:10|2\\d)(?:10|9[56])","(?:10|2\\d)(?:100|9[56])"],"0$1","$CC $1",0],[,"(\\d{3})(\\d{5,6})","$1 $2",["[3-9]","[3-9]\\d{2}[19]","[3-9]\\d{2}(?:10|9[56])"],"0$1","$CC $1",0],[,"(21)(\\d{4})(\\d{4,6})","$1 $2 $3",["21"],"0$1","$CC $1",1],[,"([12]\\d)(\\d{4})(\\d{4})","$1 $2 $3",["10[1-9]|2[02-9]","10[1-9]|2[02-9]","10(?:[1-79]|8(?:[1-9]|0[1-9]))|2[02-9]"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["3(?:11|7[179])|4(?:[15]1|3[12])|5(?:1|2[37]|3[12]|51|7[13-79]|9[15])|7(?:31|5[457]|6[09]|91)|8(?:[57]1|98)"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:1[02-9]|35|49|5|7[02-68]|9[1-68])|4(?:1[02-9]|2[179]|[35][2-9]|6[4789]|7\\d|8[23])|5(?:3[03-9]|4[36]|5[02-9]|6[1-46]|7[028]|80|9[2-46-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[04-9]|4[3-6]|6[2368])|8(?:1[236-8]|2[5-7]|3|5[4-9]|7[02-9]|8[3678]|9[1-7])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-578]"],"","$CC $1",0],[,"(10800)(\\d{3})(\\d{4})","$1 $2 $3",["108","1080","10800"],"","",0],[,"(\\d{3})(\\d{7,8})","$1 $2",["950"],"","",0]],[,,"NA","NA"],,,[,,"(?:4|(?:10)?8)00\\d{7}|950\\d{7,8}","\\d{10,12}",,,"4001234567"],[,,"NA","NA"],,,[,,"NA","NA"]],CO:[,[,,"(?:[13]\\d{0,3}|[24-8])\\d{7}","\\d{7,11}"],[,,"[124-8][2-9]\\d{6}","\\d{8}",,,"12345678"],[,,"3(?:0[0-5]|1\\d|2[0-2]|5[01])\\d{7}","\\d{10}",,,"3211234567"],[,,"1800\\d{7}","\\d{11}",,,"18001234567"],[,,"19(?:0[01]|4[78])\\d{7}","\\d{11}",,,"19001234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"CO",57,"00(?:4(?:[14]4|56)|[579])","0",,,"0([3579]|4(?:44|56))?",,,,[[,"(\\d)(\\d{7})","$1 $2",["1(?:8[2-9]|9[0-3]|[2-7])|[24-8]","1(?:8[2-9]|9(?:09|[1-3])|[2-7])|[24-8]"],"($1)","0$CC $1",0],[,"(\\d{3})(\\d{7})","$1 $2",["3"],"","0$CC $1",0],[,"(1)(\\d{3})(\\d{7})","$1-$2-$3",["1(?:80|9[04])","1(?:800|9(?:0[01]|4[78]))"],"0$1","",0]],[[,"(\\d)(\\d{7})","$1 $2",["1(?:8[2-9]|9[0-3]|[2-7])|[24-8]","1(?:8[2-9]|9(?:09|[1-3])|[2-7])|[24-8]"],"($1)","0$CC $1",0],[,"(\\d{3})(\\d{7})","$1 $2",["3"],"","0$CC $1",0],[,"(1)(\\d{3})(\\d{7})","$1 $2 $3",["1(?:80|9[04])","1(?:800|9(?:0[01]|4[78]))"]]],[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],CR:[,[,,"[24-9]\\d{7,9}","\\d{8,10}"],[,,"2[0-24-7]\\d{6}","\\d{8}",,,"22123456"],[,,"5(?:0[01]|7[0-3])\\d{5}|6(?:[0-2]\\d|30)\\d{5}|7[0-3]\\d{6}|8[3-9]\\d{6}","\\d{8}",,,"83123456"],[,,"800\\d{7}","\\d{10}",,,"8001234567"],[,,"90[059]\\d{7}","\\d{10}",,,"9001234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"210[0-6]\\d{4}|4\\d{7}|5100\\d{4}","\\d{8}",,,"40001234"],"CR",506,"00",,,,"(19(?:0[012468]|1[09]|20|66|77|99))",,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[24-7]|8[3-9]"],"","$CC $1",0],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]0"],"","$CC $1",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],CU:[,[,,"[2-57]\\d{5,7}","\\d{4,8}"],[,,"2[1-4]\\d{5,6}|3(?:1\\d{6}|[23]\\d{4,6})|4(?:[125]\\d{5,6}|[36]\\d{6}|[78]\\d{4,6})|7\\d{6,7}","\\d{4,8}",,,"71234567"],[,,"5\\d{7}","\\d{8}",,,"51234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"CU",53,"119","0",,,"0",,,,[[,"(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)","",0],[,"(\\d{2})(\\d{4,6})","$1 $2",["[2-4]"],"(0$1)","",0],[,"(\\d)(\\d{7})","$1 $2",["5"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],CV:[,[,,"[259]\\d{6}","\\d{7}"],[,,"2(?:2[1-7]|3[0-8]|4[12]|5[1256]|6\\d|7[1-3]|8[1-5])\\d{4}","\\d{7}",,,"2211234"],[,,"(?:9\\d|59)\\d{5}","\\d{7}",,,"9911234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"CV",238,"0",,,,,,,,[[,"(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],CW:[,[,,"[169]\\d{6,7}","\\d{7,8}"],[,,"9(?:[48]\\d{2}|50\\d|7(?:2[0-24]|[34]\\d|6[35-7]|77|8[7-9]))\\d{4}","\\d{7,8}",,,"94151234"],[,,"9(?:5(?:[1246]\\d|3[01])|6(?:[16-9]\\d|3[01]))\\d{4}","\\d{7,8}",,,"95181234"],[,,"NA","NA"],[,,"NA","NA"],[,,"(?:10|69)\\d{5}","\\d{7}",,,"1011234"],[,,"NA","NA"],[,,"NA","NA"],"CW",599,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[13-7]"],"","",0],[,"(9)(\\d{3})(\\d{4})","$1 $2 $3",["9"],"","",0]],,[,,"955\\d{5}","\\d{7,8}",,,"95581234"],1,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],CX:[,[,,"[1458]\\d{5,9}","\\d{6,10}"],[,,"89164\\d{4}","\\d{8,9}",,,"891641234"],[,,"14(?:5\\d|71)\\d{5}|4(?:[0-2]\\d|3[0-57-9]|4[47-9]|5[0-25-9]|6[6-9]|7[03-9]|8[17-9]|9[017-9])\\d{6}","\\d{9}",,,"412345678"],[,,"1(?:80(?:0\\d{2})?|3(?:00\\d{2})?)\\d{4}","\\d{6,10}",,,"1800123456"],[,,"190[0126]\\d{6}","\\d{10}",,,"1900123456"],[,,"NA","NA"],[,,"500\\d{6}","\\d{9}",,,"500123456"],[,,"550\\d{6}","\\d{9}",,,"550123456"],"CX",61,"(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]","0",,,"0",,"0011",,,,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],CY:[,[,,"[257-9]\\d{7}","\\d{8}"],[,,"2[2-6]\\d{6}","\\d{8}",,,"22345678"],[,,"9[5-79]\\d{6}","\\d{8}",,,"96123456"],[,,"800\\d{5}","\\d{8}",,,"80001234"],[,,"90[09]\\d{5}","\\d{8}",,,"90012345"],[,,"80[1-9]\\d{5}","\\d{8}",,,"80112345"],[,,"700\\d{5}","\\d{8}",,,"70012345"],[,,"NA","NA"],"CY",357,"00",,,,,,,,[[,"(\\d{2})(\\d{6})","$1 $2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"(?:50|77)\\d{6}","\\d{8}",,,"77123456"],,,[,,"NA","NA"]],CZ:[,[,,"[2-8]\\d{8}|9\\d{8,11}","\\d{9,12}"],[,,"2\\d{8}|(?:3[1257-9]|4[16-9]|5[13-9])\\d{7}","\\d{9,12}",,,"212345678"],[,,"(?:60[1-8]|7(?:0[2-5]|[2379]\\d))\\d{6}","\\d{9,12}",,,"601123456"],[,,"800\\d{6}","\\d{9,12}",,,"800123456"],[,,"9(?:0[05689]|76)\\d{6}","\\d{9,12}",,,"900123456"],[,,"8[134]\\d{7}","\\d{9,12}",,,"811234567"],[,,"70[01]\\d{6}","\\d{9,12}",,,"700123456"],[,,"9[17]0\\d{6}","\\d{9,12}",,,"910123456"],"CZ",420,"00",,,,,,,,[[,"([2-9]\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"],"","",0],[,"(96\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["96"],"","",0],[,"(9\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9[36]"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"9(?:5\\d|7[234])\\d{6}","\\d{9,12}",,,"972123456"],,,[,,"9(?:3\\d{9}|6\\d{7,10})","\\d{9,12}",,,"93123456789"]],DE:[,[,,"[1-35-9]\\d{3,14}|4(?:[0-8]\\d{4,12}|9(?:[0-37]\\d|4(?:[1-35-8]|4\\d?)|5\\d{1,2}|6[1-8]\\d?)\\d{2,8})","\\d{2,15}"],[,,"[246]\\d{5,13}|3(?:0\\d{3,13}|2\\d{9}|[3-9]\\d{4,13})|5(?:0[2-8]|[1256]\\d|[38][0-8]|4\\d{0,2}|[79][0-7])\\d{3,11}|7(?:0[2-8]|[1-9]\\d)\\d{3,10}|8(?:0[2-9]|[1-9]\\d)\\d{3,10}|9(?:0[6-9]\\d{3,10}|1\\d{4,12}|[2-9]\\d{4,11})","\\d{2,15}",,,"30123456"],[,,"1(?:5[0-25-9]\\d{8}|6[023]\\d{7,8}|7(?:[0-57-9]\\d?|6\\d)\\d{7})","\\d{10,11}",,,"15123456789"],[,,"800\\d{7,12}","\\d{10,15}",,,"8001234567890"],[,,"137[7-9]\\d{6}|900(?:[135]\\d{6}|9\\d{7})","\\d{10,11}",,,"9001234567"],[,,"1(?:3(?:7[1-6]\\d{6}|8\\d{4})|80\\d{5,11})","\\d{7,14}",,,"18012345"],[,,"700\\d{8}","\\d{11}",,,"70012345678"],[,,"NA","NA"],"DE",49,"00","0",,,"0",,,,[[,"(1\\d{2})(\\d{7,8})","$1 $2",["1[67]"],"0$1","",0],[,"(15\\d{3})(\\d{6})","$1 $2",["15[0568]"],"0$1","",0],[,"(1\\d{3})(\\d{7})","$1 $2",["15"],"0$1","",0],[,"(\\d{2})(\\d{3,11})","$1 $2",["3[02]|40|[68]9"],"0$1","",0],[,"(\\d{3})(\\d{3,11})","$1 $2",["2(?:\\d1|0[2389]|1[24]|28|34)|3(?:[3-9][15]|40)|[4-8][1-9]1|9(?:06|[1-9]1)"],"0$1","",0],[,"(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|[7-9](?:\\d[1-9]|[1-9]\\d)|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])","[24-6]|[7-9](?:\\d[1-9]|[1-9]\\d)|3(?:3(?:0[1-467]|2[127-9]|3[124578]|[46][1246]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|3[1357]|4[13578]|6[1246]|7[1356]|9[1346])|5(?:0[14]|2[1-3589]|3[1357]|4[1246]|6[1-4]|7[1346]|8[13568]|9[1246])|6(?:0[356]|2[1-489]|3[124-6]|4[1347]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|3[1357]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|4[1347]|6[0135-9]|7[1467]|8[136])|9(?:0[12479]|2[1358]|3[1357]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))"],"0$1","",0],[,"(3\\d{4})(\\d{1,10})","$1 $2",["3"],"0$1","",0],[,"(800)(\\d{7,12})","$1 $2",["800"],"0$1","",0],[,"(177)(99)(\\d{7,8})","$1 $2 $3",["177","1779","17799"],"0$1","",0],[,"(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["(?:18|90)0|137","1(?:37|80)|900[1359]"],"0$1","",0],[,"(1\\d{2})(\\d{5,11})","$1 $2",["181"],"0$1","",0],[,"(18\\d{3})(\\d{6})","$1 $2",["185","1850","18500"],"0$1","",0],[,"(18\\d{2})(\\d{7})","$1 $2",["18[68]"],"0$1","",0],[,"(18\\d)(\\d{8})","$1 $2",["18[2-579]"],"0$1","",0],[,"(700)(\\d{4})(\\d{4})","$1 $2 $3",["700"],"0$1","",0],[,"(138)(\\d{4})","$1 $2",["138"],"0$1","",0]],,[,,"16(?:4\\d{1,10}|[89]\\d{1,11})","\\d{4,14}",,,"16412345"],,,[,,"NA","NA"],[,,"18(?:1\\d{5,11}|[2-9]\\d{8})","\\d{8,14}",,,"18500123456"],,,[,,"17799\\d{7,8}","\\d{12,13}",,,"177991234567"]],DJ:[,[,,"[27]\\d{7}","\\d{8}"],[,,"2(?:1[2-5]|7[45])\\d{5}","\\d{8}",,,"21360003"],[,,"77[6-8]\\d{5}","\\d{8}",,,"77831001"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"DJ",253,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],DK:[,[,,"[2-9]\\d{7}","\\d{8}"],[,,"(?:[2-7]\\d|8[126-9]|9[1-36-9])\\d{6}","\\d{8}",,,"32123456"],[,,"(?:[2-7]\\d|8[126-9]|9[1-36-9])\\d{6}","\\d{8}",,,"20123456"],[,,"80\\d{6}","\\d{8}",,,"80123456"],[,,"90\\d{6}","\\d{8}",,,"90123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"DK",45,"00",,,,,,,1,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],DM:[,[,,"[57-9]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"767(?:2(?:55|66)|4(?:2[01]|4[0-25-9])|50[0-4]|70[1-3])\\d{4}","\\d{7}(?:\\d{3})?",,,"7674201234"],[,,"767(?:2(?:[234689]5|7[5-7])|31[5-7]|61[2-7])\\d{4}","\\d{10}",,,"7672251234"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002123456"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002123456"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"DM",1,"011","1",,,"1",,,,,,[,,"NA","NA"],,"767",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],DO:[,[,,"[589]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"8(?:[04]9[2-9]\\d{6}|29(?:2(?:[0-59]\\d|6[04-9]|7[0-27]|8[0237-9])|3(?:[0-35-9]\\d|4[7-9])|[45]\\d{2}|6(?:[0-27-9]\\d|[3-5][1-9]|6[0135-8])|7(?:0[013-9]|[1-37]\\d|4[1-35689]|5[1-4689]|6[1-57-9]|8[1-79]|9[1-8])|8(?:0[146-9]|1[0-48]|[248]\\d|3[1-79]|5[01589]|6[013-68]|7[124-8]|9[0-8])|9(?:[0-24]\\d|3[02-46-9]|5[0-79]|60|7[0169]|8[57-9]|9[02-9]))\\d{4})","\\d{7}(?:\\d{3})?",,,"8092345678"],[,,"8[024]9[2-9]\\d{6}","\\d{7}(?:\\d{3})?",,,"8092345678"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002123456"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002123456"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"DO",1,"011","1",,,"1",,,,,,[,,"NA","NA"],,"8[024]9",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],DZ:[,[,,"(?:[1-4]|[5-9]\\d)\\d{7}","\\d{8,9}"],[,,"(?:1\\d|2[013-79]|3[0-8]|4[0135689])\\d{6}|9619\\d{5}","\\d{8,9}",,,"12345678"],[,,"(?:5[4-6]|7[7-9])\\d{7}|6(?:[569]\\d|7[0-6])\\d{6}","\\d{9}",,,"551234567"],[,,"800\\d{6}","\\d{9}",,,"800123456"],[,,"80[3-689]1\\d{5}","\\d{9}",,,"808123456"],[,,"80[12]1\\d{5}","\\d{9}",,,"801123456"],[,,"NA","NA"],[,,"98[23]\\d{6}","\\d{9}",,,"983123456"],"DZ",213,"00","0",,,"0",,,,[[,"([1-4]\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1","",0],[,"([5-8]\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1","",0],[,"(9\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],EC:[,[,,"1\\d{9,10}|[2-8]\\d{7}|9\\d{8}","\\d{7,11}"],[,,"[2-7][2-7]\\d{6}","\\d{7,8}",,,"22123456"],[,,"9(?:39|[45][89]|[67][7-9]|[89]\\d)\\d{6}","\\d{9}",,,"991234567"],[,,"1800\\d{6,7}","\\d{10,11}",,,"18001234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"[2-7]890\\d{4}","\\d{8}",,,"28901234"],"EC",593,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[247]|[356][2-8]"],"(0$1)","",0],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1","",0],[,"(1800)(\\d{3})(\\d{3,4})","$1 $2 $3",["1"],"$1","",0]],[[,"(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[247]|[356][2-8]"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1","",0],[,"(1800)(\\d{3})(\\d{3,4})","$1 $2 $3",["1"],"$1","",0]],[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],EE:[,[,,"1\\d{3,4}|[3-9]\\d{6,7}|800\\d{6,7}","\\d{4,10}"],[,,"(?:3[23589]|4[3-8]|6\\d|7[1-9]|88)\\d{5}","\\d{7}",,,"3212345"],[,,"(?:5\\d|8[1-5])\\d{6}|5(?:[02]\\d{2}|1(?:[0-8]\\d|95)|5[0-478]\\d|64[0-4]|65[1-589])\\d{3}","\\d{7,8}",,,"51234567"],[,,"800(?:0\\d{3}|1\\d|[2-9])\\d{3}","\\d{7,10}",,,"80012345"],[,,"(?:40\\d{2}|900)\\d{4}","\\d{7,8}",,,"9001234"],[,,"NA","NA"],[,,"70[0-2]\\d{5}","\\d{8}",,,"70012345"],[,,"NA","NA"],"EE",372,"00",,,,,,,,[[,"([3-79]\\d{2})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]"],"","",0],[,"(70)(\\d{2})(\\d{4})","$1 $2 $3",["70"],"","",0],[,"(8000)(\\d{3})(\\d{3})","$1 $2 $3",["800","8000"],"","",0],[,"([458]\\d{3})(\\d{3,4})","$1 $2",["40|5|8(?:00|[1-5])","40|5|8(?:00[1-9]|[1-5])"],"","",0]],,[,,"NA","NA"],,,[,,"1\\d{3,4}|800[2-9]\\d{3}","\\d{4,7}",,,"8002123"],[,,"1(?:2[01245]|3[0-6]|4[1-489]|5[0-59]|6[1-46-9]|7[0-27-9]|8[189]|9[012])\\d{1,2}","\\d{4,5}",,,"12123"],,,[,,"NA","NA"]],EG:[,[,,"1\\d{4,9}|[2456]\\d{8}|3\\d{7}|[89]\\d{8,9}","\\d{5,10}"],[,,"(?:1(?:3[23]\\d|5(?:[23]|9\\d))|2[2-4]\\d{2}|3\\d{2}|4(?:0[2-5]|[578][23]|64)\\d|5(?:0[2-7]|[57][23])\\d|6[24-689]3\\d|8(?:2[2-57]|4[26]|6[237]|8[2-4])\\d|9(?:2[27]|3[24]|52|6[2356]|7[2-4])\\d)\\d{5}|1[69]\\d{3}","\\d{5,9}",,,"234567890"],[,,"1(?:0[0-269]|1[0-245]|2[0-278])\\d{7}","\\d{10}",,,"1001234567"],[,,"800\\d{7}","\\d{10}",,,"8001234567"],[,,"900\\d{7}","\\d{10}",,,"9001234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"EG",20,"00","0",,,"0",,,,[[,"(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1","",0],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1[012]|[89]00"],"0$1","",0],[,"(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|[89][2-9]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],EH:[,[,,"[5689]\\d{8}","\\d{9}"],[,,"528[89]\\d{5}","\\d{9}",,,"528812345"],[,,"6(?:0[0-8]|[12-79]\\d|8[017])\\d{6}","\\d{9}",,,"650123456"],[,,"80\\d{7}","\\d{9}",,,"801234567"],[,,"89\\d{7}","\\d{9}",,,"891234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"EH",212,"00","0",,,"0",,,,,,[,,"NA","NA"],,"528[89]",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],ER:[,[,,"[178]\\d{6}","\\d{6,7}"],[,,"1(?:1[12568]|20|40|55|6[146])\\d{4}|8\\d{6}","\\d{6,7}",,,"8370362"],[,,"17[1-3]\\d{4}|7\\d{6}","\\d{7}",,,"7123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"ER",291,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",,"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],ES:[,[,,"[5-9]\\d{8}","\\d{9}"],[,,"8(?:[13]0|[28][0-8]|[47][1-9]|5[01346-9]|6[0457-9])\\d{6}|9(?:[1238][0-8]\\d{6}|4[1-9]\\d{6}|5\\d{7}|6(?:[0-8]\\d{6}|9(?:0(?:[0-57-9]\\d{4}|6(?:0[0-8]|1[1-9]|[2-9]\\d)\\d{2})|[1-9]\\d{5}))|7(?:[124-9]\\d{2}|3(?:[0-8]\\d|9[1-9]))\\d{4})","\\d{9}",,,"810123456"],[,,"(?:6\\d{6}|7[1-4]\\d{5}|9(?:6906(?:09|10)|7390\\d{2}))\\d{2}","\\d{9}",,,"612345678"],[,,"[89]00\\d{6}","\\d{9}",,,"800123456"],[,,"80[367]\\d{6}","\\d{9}",,,"803123456"],[,,"90[12]\\d{6}","\\d{9}",,,"901123456"],[,,"70\\d{7}","\\d{9}",,,"701234567"],[,,"NA","NA"],"ES",34,"00",,,,,,,,[[,"([89]00)(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"],"","",0],[,"([5-9]\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[568]|[79][0-8]"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"51\\d{7}","\\d{9}",,,"511234567"],,,[,,"NA","NA"]],ET:[,[,,"[1-59]\\d{8}","\\d{7,9}"],[,,"(?:11(?:1(?:1[124]|2[2-57]|3[1-5]|5[5-8]|8[6-8])|2(?:13|3[6-8]|5[89]|7[05-9]|8[2-6])|3(?:2[01]|3[0-289]|4[1289]|7[1-4]|87)|4(?:1[69]|3[2-49]|4[0-3]|6[5-8])|5(?:1[57]|44|5[0-4])|6(?:18|2[69]|4[5-7]|5[1-5]|6[0-59]|8[015-8]))|2(?:2(?:11[1-9]|22[0-7]|33\\d|44[1467]|66[1-68])|5(?:11[124-6]|33[2-8]|44[1467]|55[14]|66[1-3679]|77[124-79]|880))|3(?:3(?:11[0-46-8]|22[0-6]|33[0134689]|44[04]|55[0-6]|66[01467])|4(?:44[0-8]|55[0-69]|66[0-3]|77[1-5]))|4(?:6(?:22[0-24-7]|33[1-5]|44[13-69]|55[14-689]|660|88[1-4])|7(?:11[1-9]|22[1-9]|33[13-7]|44[13-6]|55[1-689]))|5(?:7(?:227|55[05]|(?:66|77)[14-8])|8(?:11[149]|22[013-79]|33[0-68]|44[013-8]|550|66[1-5]|77\\d)))\\d{4}","\\d{7,9}",,,"111112345"],[,,"9(?:[1-3]\\d|5[89])\\d{6}","\\d{9}",,,"911234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"ET",251,"00","0",,,"0",,,,[[,"([1-59]\\d)(\\d{3})(\\d{4})","$1 $2 $3",,"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],FI:[,[,,"1\\d{4,11}|[2-9]\\d{4,10}","\\d{5,12}"],[,,"1(?:[3569][1-8]\\d{3,9}|[47]\\d{5,10})|2[1-8]\\d{3,9}|3(?:[1-8]\\d{3,9}|9\\d{4,8})|[5689][1-8]\\d{3,9}","\\d{5,12}",,,"1312345678"],[,,"4\\d{5,10}|50\\d{4,8}","\\d{6,11}",,,"412345678"],[,,"800\\d{4,7}","\\d{7,10}",,,"8001234567"],[,,"[67]00\\d{5,6}","\\d{8,9}",,,"600123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"FI",358,"00|99[049]","0",,,"0",,,,[[,"(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]00|[6-8]0)"],"0$1","",0],[,"(\\d{2})(\\d{4,10})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1","",0],[,"(\\d)(\\d{4,11})","$1 $2",["[25689][1-8]|3"],"0$1","",0]],,[,,"NA","NA"],1,,[,,"[13]00\\d{3,7}|2(?:0(?:0\\d{3,7}|2[023]\\d{1,6}|9[89]\\d{1,6}))|60(?:[12]\\d{5,6}|6\\d{7})|7(?:1\\d{7}|3\\d{8}|5[03-9]\\d{2,7})","\\d{5,10}",,,"100123"],[,,"[13]0\\d{4,8}|2(?:0(?:[016-8]\\d{3,7}|[2-59]\\d{2,7})|9\\d{4,8})|60(?:[12]\\d{5,6}|6\\d{7})|7(?:1\\d{7}|3\\d{8}|5[03-9]\\d{2,7})","\\d{5,10}",,,"10112345"],,,[,,"NA","NA"]],FJ:[,[,,"[36-9]\\d{6}|0\\d{10}","\\d{7}(?:\\d{4})?"],[,,"(?:3[0-5]|6[25-7]|8[58])\\d{5}","\\d{7}",,,"3212345"],[,,"(?:7[0-8]|8[034679]|9\\d)\\d{5}","\\d{7}",,,"7012345"],[,,"0800\\d{7}","\\d{11}",,,"08001234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"FJ",679,"0(?:0|52)",,,,,,"00",,[[,"(\\d{3})(\\d{4})","$1 $2",["[36-9]"],"","",0],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],1,,[,,"NA","NA"]],FK:[,[,,"[2-7]\\d{4}","\\d{5}"],[,,"[2-47]\\d{4}","\\d{5}",,,"31234"],[,,"[56]\\d{4}","\\d{5}",,,"51234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"FK",500,"00",,,,,,,,,,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],FM:[,[,,"[39]\\d{6}","\\d{7}"],[,,"3[2357]0[1-9]\\d{3}|9[2-6]\\d{5}","\\d{7}",,,"3201234"],[,,"3[2357]0[1-9]\\d{3}|9[2-7]\\d{5}","\\d{7}",,,"3501234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"FM",691,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],FO:[,[,,"[2-9]\\d{5}","\\d{6}"],[,,"(?:20|[3-4]\\d|8[19])\\d{4}","\\d{6}",,,"201234"],[,,"(?:2[1-9]|5\\d|7[1-79])\\d{4}","\\d{6}",,,"211234"],[,,"80[257-9]\\d{3}","\\d{6}",,,"802123"],[,,"90(?:[1345][15-7]|2[125-7]|99)\\d{2}","\\d{6}",,,"901123"],[,,"NA","NA"],[,,"NA","NA"],[,,"(?:6[0-36]|88)\\d{4}","\\d{6}",,,"601234"],"FO",298,"00",,,,"(10(?:01|[12]0|88))",,,,[[,"(\\d{6})","$1",,"","$CC $1",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],FR:[,[,,"[1-9]\\d{8}","\\d{9}"],[,,"[1-5]\\d{8}","\\d{9}",,,"123456789"],[,,"6\\d{8}|7(?:00\\d{6}|[3-9]\\d{7})","\\d{9}",,,"612345678"],[,,"80\\d{7}","\\d{9}",,,"801234567"],[,,"89[1-37-9]\\d{6}","\\d{9}",,,"891123456"],[,,"8(?:1[019]|2[0156]|84|90)\\d{6}","\\d{9}",,,"810123456"],[,,"NA","NA"],[,,"9\\d{8}","\\d{9}",,,"912345678"],"FR",33,"00","0",,,"0",,,,[[,"([1-79])(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1","",0],[,"(1\\d{2})(\\d{3})","$1 $2",["11"],"$1","",0],[,"(8\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1","",0]],[[,"([1-79])(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1","",0],[,"(8\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1","",0]],[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],GA:[,[,,"0?\\d{7}","\\d{7,8}"],[,,"01\\d{6}","\\d{8}",,,"01441234"],[,,"0?[2-7]\\d{6}","\\d{7,8}",,,"06031234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"GA",241,"00",,,,,,,,[[,"(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1","",0],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],1,,[,,"NA","NA"]],GB:[,[,,"\\d{7,10}","\\d{4,10}"],[,,"2(?:0[01378]|3[0189]|4[017]|8[0-46-9]|9[012])\\d{7}|1(?:(?:1(?:3[0-48]|[46][0-4]|5[012789]|7[0-49]|8[01349])|21[0-7]|31[0-8]|[459]1\\d|61[0-46-9]))\\d{6}|1(?:2(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-4789]|7[013-9]|9\\d)|3(?:0\\d|[25][02-9]|3[02-579]|[468][0-46-9]|7[1235679]|9[24578])|4(?:0[03-9]|[28][02-5789]|[37]\\d|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1235-9]|2[024-9]|3[015689]|4[02-9]|5[03-9]|6\\d|7[0-35-9]|8[0-468]|9[0-5789])|6(?:0[034689]|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0124578])|7(?:0[0246-9]|2\\d|3[023678]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-5789]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|2[02-689]|3[1-5789]|4[2-9]|5[0-579]|6[234789]|7[0124578]|8\\d|9[2-57]))\\d{6}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-4789]|8[345])))|3(?:638[2-5]|647[23]|8(?:47[04-9]|64[015789]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[123]))|5(?:24(?:3[2-79]|6\\d)|276\\d|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[567]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|955[0-4])|7(?:26(?:6[13-9]|7[0-7])|442\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|84(?:3[2-58]))|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}|176888[234678]\\d{2}|16977[23]\\d{3}","\\d{4,10}",,,"1212345678"],[,,"7(?:[1-4]\\d\\d|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[04-9]\\d|1[02-9]|2[0-35-9]|3[0-689]))\\d{6}","\\d{10}",,,"7400123456"],[,,"80(?:0(?:1111|\\d{6,7})|8\\d{7})|500\\d{6}","\\d{7}(?:\\d{2,3})?",,,"8001234567"],[,,"(?:87[123]|9(?:[01]\\d|8[2349]))\\d{7}","\\d{10}",,,"9012345678"],[,,"8(?:4(?:5464\\d|[2-5]\\d{7})|70\\d{7})","\\d{7}(?:\\d{3})?",,,"8431234567"],[,,"70\\d{8}","\\d{10}",,,"7012345678"],[,,"56\\d{8}","\\d{10}",,,"5612345678"],"GB",44,"00","0"," x",,"0",,,,[[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2|5[56]|7(?:0|6[013-9])","2|5[56]|7(?:0|6(?:[013-9]|2[0-35-9]))"],"0$1","",0],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:1|\\d1)|3|9[018]"],"0$1","",0],[,"(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:387|5(?:24|39)|697|768|946)","1(?:3873|5(?:242|39[456])|697[347]|768[347]|9467)"],"0$1","",0],[,"(1\\d{3})(\\d{5,6})","$1 $2",["1"],"0$1","",0],[,"(7\\d{3})(\\d{6})","$1 $2",["7(?:[1-5789]|62)","7(?:[1-5789]|624)"],"0$1","",0],[,"(800)(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1","",0],[,"(845)(46)(4\\d)","$1 $2 $3",["845","8454","84546","845464"],"0$1","",0],[,"(8\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8(?:4[2-5]|7[0-3])"],"0$1","",0],[,"(80\\d)(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1","",0],[,"([58]00)(\\d{6})","$1 $2",["[58]00"],"0$1","",0]],,[,,"76(?:0[012]|2[356]|4[0134]|5[49]|6[0-369]|77|81|9[39])\\d{6}","\\d{10}",,,"7640123456"],1,,[,,"NA","NA"],[,,"(?:3[0347]|55)\\d{8}","\\d{10}",,,"5512345678"],,,[,,"NA","NA"]],GD:[,[,,"[4589]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"473(?:2(?:3[0-2]|69)|3(?:2[89]|86)|4(?:[06]8|3[5-9]|4[0-49]|5[5-79]|68|73|90)|63[68]|7(?:58|84)|800|938)\\d{4}","\\d{7}(?:\\d{3})?",,,"4732691234"],[,,"473(?:4(?:0[2-79]|1[04-9]|20|58)|5(?:2[01]|3[3-8])|901)\\d{4}","\\d{10}",,,"4734031234"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002123456"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002123456"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"GD",1,"011","1",,,"1",,,,,,[,,"NA","NA"],,"473",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],GE:[,[,,"[34578]\\d{8}","\\d{6,9}"],[,,"(?:3(?:[256]\\d|4[124-9]|7[0-4])|4(?:1\\d|2[2-7]|3[1-79]|4[2-8]|7[239]|9[1-7]))\\d{6}","\\d{6,9}",,,"322123456"],[,,"5(?:14|5[01578]|68|7[0147-9]|9[0-35-9])\\d{6}","\\d{9}",,,"555123456"],[,,"800\\d{6}","\\d{9}",,,"800123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"706\\d{6}","\\d{9}",,,"706123456"],"GE",995,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1","",0],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1","",0],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5"],"$1","",0]],,[,,"NA","NA"],,,[,,"706\\d{6}","\\d{9}",,,"706123456"],[,,"NA","NA"],,,[,,"NA","NA"]],GF:[,[,,"[56]\\d{8}","\\d{9}"],[,,"594(?:10|2[012457-9]|3[0-57-9]|4[3-9]|5[7-9]|6[0-3]|9[014])\\d{4}","\\d{9}",,,"594101234"],[,,"694(?:[04][0-7]|1[0-5]|3[018]|[29]\\d)\\d{4}","\\d{9}",,,"694201234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"GF",594,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",,"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],GG:[,[,,"[135789]\\d{6,9}","\\d{6,10}"],[,,"1481\\d{6}","\\d{6,10}",,,"1481456789"],[,,"7(?:781|839|911)\\d{6}","\\d{10}",,,"7781123456"],[,,"80(?:0(?:1111|\\d{6,7})|8\\d{7})|500\\d{6}","\\d{7}(?:\\d{2,3})?",,,"8001234567"],[,,"(?:87[123]|9(?:[01]\\d|8[0-3]))\\d{7}","\\d{10}",,,"9012345678"],[,,"8(?:4(?:5464\\d|[2-5]\\d{7})|70\\d{7})","\\d{7}(?:\\d{3})?",,,"8431234567"],[,,"70\\d{8}","\\d{10}",,,"7012345678"],[,,"56\\d{8}","\\d{10}",,,"5612345678"],"GG",44,"00","0"," x",,"0",,,,,,[,,"76(?:0[012]|2[356]|4[0134]|5[49]|6[0-369]|77|81|9[39])\\d{6}","\\d{10}",,,"7640123456"],,,[,,"NA","NA"],[,,"(?:3[0347]|55)\\d{8}","\\d{10}",,,"5512345678"],,,[,,"NA","NA"]],GH:[,[,,"[235]\\d{8}|8\\d{7}","\\d{7,9}"],[,,"3(?:0[237]\\d|[167](?:2[0-6]|7\\d)|2(?:2[0-5]|7\\d)|3(?:2[0-3]|7\\d)|4(?:2[013-9]|3[01]|7\\d)|5(?:2[0-7]|7\\d)|8(?:2[0-2]|7\\d)|9(?:20|7\\d))\\d{5}","\\d{7,9}",,,"302345678"],[,,"(?:2[034678]\\d|5(?:[047]\\d|5[3-6]|6[01]))\\d{6}","\\d{9}",,,"231234567"],[,,"800\\d{5}","\\d{8}",,,"80012345"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"GH",233,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1","",0],[,"(\\d{3})(\\d{5})","$1 $2",["8"],"0$1","",0]],,[,,"NA","NA"],,,[,,"800\\d{5}","\\d{8}",,,"80012345"],[,,"NA","NA"],,,[,,"NA","NA"]],GI:[,[,,"[2568]\\d{7}","\\d{8}"],[,,"2(?:00\\d|1(?:6[24-7]|9\\d)|2(?:00|2[2457]))\\d{4}","\\d{8}",,,"20012345"],[,,"(?:5[46-8]|62)\\d{6}","\\d{8}",,,"57123456"],[,,"80\\d{6}","\\d{8}",,,"80123456"],[,,"8[1-689]\\d{6}","\\d{8}",,,"88123456"],[,,"87\\d{6}","\\d{8}",,,"87123456"],[,,"NA","NA"],[,,"NA","NA"],"GI",350,"00",,,,,,,,[[,"(\\d{3})(\\d{5})","$1 $2",["2"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],GL:[,[,,"[1-689]\\d{5}","\\d{6}"],[,,"(?:19|3[1-6]|6[14689]|8[14-79]|9\\d)\\d{4}","\\d{6}",,,"321000"],[,,"[245][2-9]\\d{4}","\\d{6}",,,"221234"],[,,"80\\d{4}","\\d{6}",,,"801234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"3[89]\\d{4}","\\d{6}",,,"381234"],"GL",299,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],GM:[,[,,"[2-9]\\d{6}","\\d{7}"],[,,"(?:4(?:[23]\\d{2}|4(?:1[024679]|[6-9]\\d))|5(?:54[0-7]|6(?:[67]\\d)|7(?:1[04]|2[035]|3[58]|48))|8\\d{3})\\d{3}","\\d{7}",,,"5661234"],[,,"(?:2[0-6]|[3679]\\d)\\d{5}","\\d{7}",,,"3012345"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"GM",220,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],GN:[,[,,"[367]\\d{7,8}","\\d{8,9}"],[,,"30(?:24|3[12]|4[1-35-7]|5[13]|6[189]|[78]1|9[1478])\\d{4}","\\d{8}",,,"30241234"],[,,"6[02356]\\d{7}","\\d{9}",,,"601123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"722\\d{6}","\\d{9}",,,"722123456"],"GN",224,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"],"","",0],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],GP:[,[,,"[56]\\d{8}","\\d{9}"],[,,"590(?:0[13468]|1[012]|2[0-68]|3[28]|4[0-8]|5[579]|6[0189]|70|8[0-689]|9\\d)\\d{4}","\\d{9}",,,"590201234"],[,,"690(?:0[0-7]|[1-9]\\d)\\d{4}","\\d{9}",,,"690301234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"GP",590,"00","0",,,"0",,,,[[,"([56]90)(\\d{2})(\\d{4})","$1 $2-$3",,"0$1","",0]],,[,,"NA","NA"],1,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],GQ:[,[,,"[23589]\\d{8}","\\d{9}"],[,,"3(?:3(?:3\\d[7-9]|[0-24-9]\\d[46])|5\\d{2}[7-9])\\d{4}","\\d{9}",,,"333091234"],[,,"(?:222|551)\\d{6}","\\d{9}",,,"222123456"],[,,"80\\d[1-9]\\d{5}","\\d{9}",,,"800123456"],[,,"90\\d[1-9]\\d{5}","\\d{9}",,,"900123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"GQ",240,"00",,,,,,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"],"","",0],[,"(\\d{3})(\\d{6})","$1 $2",["[89]"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],GR:[,[,,"[26-9]\\d{9}","\\d{10}"],[,,"2(?:1\\d{2}|2(?:2[1-46-9]|3[1-8]|4[1-7]|5[1-4]|6[1-8]|7[1-5]|[89][1-9])|3(?:1\\d|2[1-57]|[35][1-3]|4[13]|7[1-7]|8[124-6]|9[1-79])|4(?:1\\d|2[1-8]|3[1-4]|4[13-5]|6[1-578]|9[1-5])|5(?:1\\d|[29][1-4]|3[1-5]|4[124]|5[1-6])|6(?:1\\d|3[1245]|4[1-7]|5[13-9]|[269][1-6]|7[14]|8[1-5])|7(?:1\\d|2[1-5]|3[1-6]|4[1-7]|5[1-57]|6[135]|9[125-7])|8(?:1\\d|2[1-5]|[34][1-4]|9[1-57]))\\d{6}","\\d{10}",,,"2123456789"],[,,"69\\d{8}","\\d{10}",,,"6912345678"],[,,"800\\d{7}","\\d{10}",,,"8001234567"],[,,"90[19]\\d{7}","\\d{10}",,,"9091234567"],[,,"8(?:0[16]|12|25)\\d{7}","\\d{10}",,,"8011234567"],[,,"70\\d{8}","\\d{10}",,,"7012345678"],[,,"NA","NA"],"GR",30,"00",,,,,,,,[[,"([27]\\d)(\\d{4})(\\d{4})","$1 $2 $3",["21|7"],"","",0],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["2[2-9]1|[689]"],"","",0],[,"(2\\d{3})(\\d{6})","$1 $2",["2[2-9][02-9]"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],GT:[,[,,"[2-7]\\d{7}|1[89]\\d{9}","\\d{8}(?:\\d{3})?"],[,,"[267][2-9]\\d{6}","\\d{8}",,,"22456789"],[,,"[345]\\d{7}","\\d{8}",,,"51234567"],[,,"18[01]\\d{8}","\\d{11}",,,"18001112222"],[,,"19\\d{9}","\\d{11}",,,"19001112222"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"GT",502,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[2-7]"],"","",0],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],GU:[,[,,"[5689]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"671(?:3(?:00|3[39]|4[349]|55|6[26])|4(?:56|7[1-9]|8[236-9])|5(?:55|6[2-5]|88)|6(?:3[2-578]|4[24-9]|5[34]|78|8[5-9])|7(?:[079]7|2[0167]|3[45]|8[789])|8(?:[2-5789]8|6[48])|9(?:2[29]|6[79]|7[179]|8[789]|9[78]))\\d{4}","\\d{7}(?:\\d{3})?",,,"6713001234"],[,,"671(?:3(?:00|3[39]|4[349]|55|6[26])|4(?:56|7[1-9]|8[236-9])|5(?:55|6[2-5]|88)|6(?:3[2-578]|4[24-9]|5[34]|78|8[5-9])|7(?:[079]7|2[0167]|3[45]|8[789])|8(?:[2-5789]8|6[48])|9(?:2[29]|6[79]|7[179]|8[789]|9[78]))\\d{4}","\\d{7}(?:\\d{3})?",,,"6713001234"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002123456"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002123456"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"GU",1,"011","1",,,"1",,,1,,,[,,"NA","NA"],,"671",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],GW:[,[,,"[3-79]\\d{6}","\\d{7}"],[,,"3(?:2[0125]|3[1245]|4[12]|5[1-4]|70|9[1-467])\\d{4}","\\d{7}",,,"3201234"],[,,"(?:[5-7]\\d|9[012])\\d{5}","\\d{7}",,,"5012345"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"40\\d{5}","\\d{7}",,,"4012345"],"GW",245,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],GY:[,[,,"[2-4679]\\d{6}","\\d{7}"],[,,"(?:2(?:1[6-9]|2[0-35-9]|3[1-4]|5[3-9]|6\\d|7[0-24-79])|3(?:2[25-9]|3\\d)|4(?:4[0-24]|5[56])|77[1-57])\\d{4}","\\d{7}",,,"2201234"],[,,"6\\d{6}","\\d{7}",,,"6091234"],[,,"(?:289|862)\\d{4}","\\d{7}",,,"2891234"],[,,"9008\\d{3}","\\d{7}",,,"9008123"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"GY",592,"001",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],HK:[,[,,"[235-7]\\d{7}|8\\d{7,8}|9\\d{4,10}","\\d{5,11}"],[,,"(?:[23]\\d|58)\\d{6}","\\d{8}",,,"21234567"],[,,"(?:5[1-79]\\d|6\\d{2}|8[4-79]\\d|9(?:0[1-9]|[1-8]\\d))\\d{5}","\\d{8}",,,"51234567"],[,,"800\\d{6}","\\d{9}",,,"800123456"],[,,"900(?:[0-24-9]\\d{7}|3\\d{1,4})","\\d{5,11}",,,"90012345678"],[,,"NA","NA"],[,,"8[1-3]\\d{6}","\\d{8}",,,"81123456"],[,,"NA","NA"],"HK",852,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[235-7]|[89](?:0[1-9]|[1-9])"],"","",0],[,"(800)(\\d{3})(\\d{3})","$1 $2 $3",["800"],"","",0],[,"(900)(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["900"],"","",0],[,"(900)(\\d{2,5})","$1 $2",["900"],"","",0]],,[,,"7\\d{7}","\\d{8}",,,"71234567"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],HN:[,[,,"[237-9]\\d{7}","\\d{8}"],[,,"2(?:2(?:0[019]|1[1-36]|[23]\\d|4[056]|5[57]|7[01389]|8[0146-9]|9[012])|4(?:2[3-59]|3[13-689]|4[0-68]|5[1-35])|5(?:4[3-5]|5\\d|6[56]|74)|6(?:[056]\\d|34|4[0-378]|[78][0-8]|9[01])|7(?:6[46-9]|7[02-9]|8[34])|8(?:79|8[0-35789]|9[1-57-9]))\\d{4}","\\d{8}",,,"22123456"],[,,"[37-9]\\d{7}","\\d{8}",,,"91234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"HN",504,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1-$2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],HR:[,[,,"[1-7]\\d{5,8}|[89]\\d{6,11}","\\d{6,12}"],[,,"1\\d{7}|(?:2[0-3]|3[1-5]|4[02-47-9]|5[1-3])\\d{6,7}","\\d{6,9}",,,"12345678"],[,,"9(?:[1-9]\\d{6,10}|01\\d{6,9})","\\d{8,12}",,,"912345678"],[,,"80[01]\\d{4,7}","\\d{7,10}",,,"8001234567"],[,,"6(?:[01459]\\d{4,7})","\\d{6,9}",,,"611234"],[,,"NA","NA"],[,,"7[45]\\d{4,7}","\\d{6,9}",,,"741234567"],[,,"NA","NA"],"HR",385,"00","0",,,"0",,,,[[,"(1)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1","",0],[,"(6[09])(\\d{4})(\\d{3})","$1 $2 $3",["6[09]"],"0$1","",0],[,"([67]2)(\\d{3})(\\d{3,4})","$1 $2 $3",["[67]2"],"0$1","",0],[,"([2-5]\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-5]"],"0$1","",0],[,"(9\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1","",0],[,"(9\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9"],"0$1","",0],[,"(9\\d)(\\d{3,4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"],"0$1","",0],[,"(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[0145]|7"],"0$1","",0],[,"(\\d{2})(\\d{3,4})(\\d{3})","$1 $2 $3",["6[0145]|7"],"0$1","",0],[,"(80[01])(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1","",0],[,"(80[01])(\\d{3,4})(\\d{3})","$1 $2 $3",["8"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"[76]2\\d{6,7}","\\d{8,9}",,,"62123456"],,,[,,"NA","NA"]],HT:[,[,,"[2-489]\\d{7}","\\d{8}"],[,,"2(?:[248]\\d|5[1-5]|94)\\d{5}","\\d{8}",,,"22453300"],[,,"(?:3[1-9]\\d|4\\d{2}|9(?:8[0-35]|9[5-9]))\\d{5}","\\d{8}",,,"34101234"],[,,"8\\d{7}","\\d{8}",,,"80012345"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"98[89]\\d{5}","\\d{8}",,,"98901234"],"HT",509,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],HU:[,[,,"[1-9]\\d{7,8}","\\d{6,9}"],[,,"(?:1\\d|2(?:1\\d|[2-9])|3(?:[2-7]|8\\d)|4[24-9]|5[2-79]|6[23689]|7(?:1\\d|[2-9])|8[2-57-9]|9[2-69])\\d{6}","\\d{6,9}",,,"12345678"],[,,"(?:[257]0|3[01])\\d{7}","\\d{9}",,,"201234567"],[,,"80\\d{6}","\\d{8}",,,"80123456"],[,,"9[01]\\d{6}","\\d{8}",,,"90123456"],[,,"40\\d{6}","\\d{8}",,,"40123456"],[,,"NA","NA"],[,,"NA","NA"],"HU",36,"00","06",,,"06",,,,[[,"(1)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"($1)","",0],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"($1)","",0]],,[,,"NA","NA"],,,[,,"[48]0\\d{6}","\\d{8}",,,"80123456"],[,,"NA","NA"],,,[,,"NA","NA"]],ID:[,[,,"[1-9]\\d{6,10}","\\d{5,11}"],[,,"2(?:1(?:14\\d{3}|[0-8]\\d{6,7}|500\\d{3}|9\\d{6})|2\\d{6,8}|4\\d{7,8})|(?:2(?:[35][1-4]|6[0-8]|7[1-6]|8\\d|9[1-8])|3(?:1|[25][1-8]|3[1-68]|4[1-3]|6[1-3568]|7[0-469]|8\\d)|4(?:0[1-589]|1[01347-9]|2[0-36-8]|3[0-24-68]|43|5[1-378]|6[1-5]|7[134]|8[1245])|5(?:1[1-35-9]|2[25-8]|3[124-9]|4[1-3589]|5[1-46]|6[1-8])|6(?:19?|[25]\\d|3[1-69]|4[1-6])|7(?:02|[125][1-9]|[36]\\d|4[1-8]|7[0-36-9])|9(?:0[12]|1[013-8]|2[0-479]|5[125-8]|6[23679]|7[159]|8[01346]))\\d{5,8}","\\d{5,11}",,,"612345678"],[,,"(?:2(?:1(?:3[145]|4[01]|5[1-469]|60|8[0359]|9\\d)|2(?:88|9[1256])|3[1-4]9|4(?:36|91)|5(?:1[349]|[2-4]9)|6[0-7]9|7(?:[1-36]9|4[39])|8[1-5]9|9[1-48]9)|3(?:19[1-3]|2[12]9|3[13]9|4(?:1[69]|39)|5[14]9|6(?:1[69]|2[89])|709)|4[13]19|5(?:1(?:19|8[39])|4[129]9|6[12]9)|6(?:19[12]|2(?:[23]9|77))|7(?:1[13]9|2[15]9|419|5(?:1[89]|29)|6[15]9|7[178]9))\\d{5,6}|8[1-35-9]\\d{7,9}","\\d{9,11}",,,"812345678"],[,,"177\\d{6,8}|800\\d{5,7}","\\d{8,11}",,,"8001234567"],[,,"809\\d{7}","\\d{10}",,,"8091234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"ID",62,"0(?:0[1789]|10(?:00|1[67]))","0",,,"0",,,,[[,"(\\d{2})(\\d{5,8})","$1 $2",["2[124]|[36]1"],"(0$1)","",0],[,"(\\d{3})(\\d{5,8})","$1 $2",["[4579]|2[035-9]|[36][02-9]"],"(0$1)","",0],[,"(8\\d{2})(\\d{3,4})(\\d{3,4})","$1-$2-$3",["8[1-35-9]"],"0$1","",0],[,"(177)(\\d{6,8})","$1 $2",["1"],"0$1","",0],[,"(800)(\\d{5,7})","$1 $2",["800"],"0$1","",0],[,"(80\\d)(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80[79]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"8071\\d{6}","\\d{10}",,,"8071123456"],[,,"8071\\d{6}","\\d{10}",,,"8071123456"],,,[,,"NA","NA"]],IE:[,[,,"[124-9]\\d{6,9}","\\d{5,10}"],[,,"1\\d{7,8}|2(?:1\\d{6,7}|3\\d{7}|[24-9]\\d{5})|4(?:0[24]\\d{5}|[1-469]\\d{7}|5\\d{6}|7\\d{5}|8[0-46-9]\\d{7})|5(?:0[45]\\d{5}|1\\d{6}|[23679]\\d{7}|8\\d{5})|6(?:1\\d{6}|[237-9]\\d{5}|[4-6]\\d{7})|7[14]\\d{7}|9(?:1\\d{6}|[04]\\d{7}|[35-9]\\d{5})","\\d{5,10}",,,"2212345"],[,,"8(?:22\\d{6}|[35-9]\\d{7})","\\d{9}",,,"850123456"],[,,"1800\\d{6}","\\d{10}",,,"1800123456"],[,,"15(?:1[2-8]|[2-8]0|9[089])\\d{6}","\\d{10}",,,"1520123456"],[,,"18[59]0\\d{6}","\\d{10}",,,"1850123456"],[,,"700\\d{6}","\\d{9}",,,"700123456"],[,,"76\\d{7}","\\d{9}",,,"761234567"],"IE",353,"00","0",,,"0",,,,[[,"(1)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)","",0],[,"(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)","",0],[,"(\\d{3})(\\d{5})","$1 $2",["40[24]|50[45]"],"(0$1)","",0],[,"(48)(\\d{4})(\\d{4})","$1 $2 $3",["48"],"(0$1)","",0],[,"(818)(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)","",0],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[24-69]|7[14]"],"(0$1)","",0],[,"([78]\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["76|8[35-9]"],"0$1","",0],[,"(700)(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1","",0],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:8[059]|5)","1(?:8[059]0|5)"],"$1","",0]],,[,,"NA","NA"],,,[,,"18[59]0\\d{6}","\\d{10}",,,"1850123456"],[,,"818\\d{6}","\\d{9}",,,"818123456"],,,[,,"8[35-9]\\d{8}","\\d{10}",,,"8501234567"]],IL:[,[,,"[17]\\d{6,9}|[2-589]\\d{3}(?:\\d{3,6})?|6\\d{3}","\\d{4,10}"],[,,"[2-489]\\d{7}","\\d{7,8}",,,"21234567"],[,,"5(?:[02-47-9]\\d{2}|5(?:01|2[23]|3[34]|4[45]|5[5689]|6[67]|7[0178]|[89][6-9])|6[2-9]\\d)\\d{5}","\\d{9}",,,"501234567"],[,,"1(?:80[019]\\d{3}|255)\\d{3}","\\d{7,10}",,,"1800123456"],[,,"1(?:212|(?:9(?:0[01]|19)|200)\\d{2})\\d{4}","\\d{8,10}",,,"1919123456"],[,,"1700\\d{6}","\\d{10}",,,"1700123456"],[,,"NA","NA"],[,,"7(?:18\\d|2[23]\\d|3[237]\\d|47\\d|6(?:5\\d|8[0168])|7\\d{2}|8(?:2\\d|33|55|77|81)|99\\d)\\d{5}","\\d{9}",,,"771234567"],"IL",972,"0(?:0|1[2-9])","0",,,"0",,,,[[,"([2-489])(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1","",0],[,"([57]\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1","",0],[,"(1)([7-9]\\d{2})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"],"$1","",0],[,"(1255)(\\d{3})","$1-$2",["125"],"$1","",0],[,"(1200)(\\d{3})(\\d{3})","$1-$2-$3",["120"],"$1","",0],[,"(1212)(\\d{2})(\\d{2})","$1-$2-$3",["121"],"$1","",0],[,"(1599)(\\d{6})","$1-$2",["15"],"$1","",0],[,"(\\d{4})","*$1",["[2-689]"],"$1","",0]],,[,,"NA","NA"],,,[,,"1700\\d{6}|[2-689]\\d{3}","\\d{4,10}",,,"1700123456"],[,,"[2-689]\\d{3}|1599\\d{6}","\\d{4}(?:\\d{6})?",,,"1599123456"],,,[,,"NA","NA"]],IM:[,[,,"[135789]\\d{6,9}","\\d{6,10}"],[,,"1624\\d{6}","\\d{6,10}",,,"1624456789"],[,,"7[569]24\\d{6}","\\d{10}",,,"7924123456"],[,,"808162\\d{4}","\\d{10}",,,"8081624567"],[,,"(?:872299|90[0167]624)\\d{4}","\\d{10}",,,"9016247890"],[,,"8(?:4(?:40[49]06|5624\\d)|70624\\d)\\d{3}","\\d{10}",,,"8456247890"],[,,"70\\d{8}","\\d{10}",,,"7012345678"],[,,"56\\d{8}","\\d{10}",,,"5612345678"],"IM",44,"00","0"," x",,"0",,,,,,[,,"NA","NA"],,,[,,"NA","NA"],[,,"3(?:08162\\d|3\\d{5}|4(?:40[49]06|5624\\d)|7(?:0624\\d|2299\\d))\\d{3}|55\\d{8}","\\d{10}",,,"5512345678"],,,[,,"NA","NA"]],IN:[,[,,"1\\d{7,12}|[2-9]\\d{9,10}","\\d{6,13}"],[,,"(?:11|2[02]|33|4[04]|79)[2-7]\\d{7}|80[2-467]\\d{7}|(?:1(?:2[0-249]|3[0-25]|4[145]|[59][14]|6[014]|7[1257]|8[01346])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|[36][25]|22|4[28]|5[12]|[78]1|9[15])|6(?:12|[2345]1|57|6[13]|7[14]|80)|7(?:12|2[14]|3[134]|4[47]|5[15]|[67]1|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91))[2-7]\\d{6}|(?:(?:1(?:2[35-8]|3[346-9]|4[236-9]|[59][0235-9]|6[235-9]|7[34689]|8[257-9])|2(?:1[134689]|3[24-8]|4[2-8]|5[25689]|6[2-4679]|7[13-79]|8[2-479]|9[235-9])|3(?:01|1[79]|2[1-5]|4[25-8]|5[125689]|6[235-7]|7[157-9]|8[2-467])|4(?:1[14578]|2[5689]|3[2-467]|5[4-7]|6[35]|73|8[2689]|9[2389])|5(?:[16][146-9]|2[14-8]|3[1346]|4[14-69]|5[46]|7[2-4]|8[2-8]|9[246])|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|[57][2-689]|6[24-578]|8[1-6])|8(?:1[1357-9]|2[235-8]|3[03-57-9]|4[0-24-9]|5\\d|6[2457-9]|7[1-6]|8[1256]|9[2-4]))\\d|7(?:(?:1[013-9]|2[0235-9]|3[2679]|4[1-35689]|5[2-46-9]|[67][02-9]|9\\d)\\d|8(?:2[0-6]|[013-8]\\d)))[2-7]\\d{5}","\\d{6,10}",,,"1123456789"],[,,"(?:7(?:0\\d{2}|2(?:[0235679]\\d|[14][017-9]|8[0-59]|9[389])|3(?:[058]\\d|10|7[3679]|9[689])|4(?:0[1-9]|1[015-9]|[29][89]|39|8[389])|5(?:[034678]\\d|2[03-9]|5[017-9]|9[7-9])|6(?:0[0-47]|1[0-257-9]|2[0-4]|3[19]|5[4589]|[6-9]\\d)|7(?:0[2-9]|[1-79]\\d|8[1-9])|8[0-79]\\d)|8(?:0(?:[01589]\\d|6[67])|1(?:[02-57-9]\\d|1[0135-9])|2(?:[236-9]\\d|5[1-9])|3(?:[0357-9]\\d|4[1-9])|[45]\\d{2}|6[02457-9]\\d|7(?:07|[1-69]\\d)|8(?:[0-26-9]\\d|44|5[2-9])|9(?:[035-9]\\d|2[2-9]|4[0-8]))|9\\d{3})\\d{6}","\\d{10}",,,"9123456789"],[,,"1(?:600\\d{6}|80(?:0\\d{4,9}|3\\d{9}))","\\d{8,13}",,,"1800123456"],[,,"186[12]\\d{9}","\\d{13}",,,"1861123456789"],[,,"1860\\d{7}","\\d{11}",,,"18603451234"],[,,"NA","NA"],[,,"NA","NA"],"IN",91,"00","0",,,"0",,,,[[,"(\\d{5})(\\d{5})","$1 $2",["7(?:[0257]|3[0157-9]|4[0-389]|6[0-35-9]|8[0-79])|8(?:0[015689]|1[0-57-9]|2[2356-9]|3[0-57-9]|[45]|6[02457-9]|7[01-69]|8[0-24-9]|9[02-9])|9","7(?:0|2(?:[0235679]|[14][017-9]|8[0-59]|9[389])|3(?:[058]|10|7[3679]|9[689])|4(?:0[1-9]|1[015-9]|[29][89]|39|8[389])|5(?:[034678]|2[03-9]|5[017-9]|9[7-9])|6(?:0[0-47]|1[0-257-9]|2[0-4]|3[19]|5[4589]|[6-9])|7(?:0[2-9]|[1-79]|8[1-9])|8[0-79])|8(?:0(?:[01589]|6[67])|1(?:[02-57-9]|1[0135-9])|2(?:[236-9]|5[1-9])|3(?:[0357-9]|4[1-9])|[45]|6[02457-9]|7(?:07|[1-69])|8(?:[0-26-9]|44|5[2-9])|9(?:[035-9]|2[2-9]|4[0-8]))|9"],"0$1","",1],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79|80[2-46]"],"0$1","",1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[569][14]|7[1257]|8[1346]|[68][1-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|[36][25]|22|4[28]|5[12]|[78]1|9[15])|6(?:12|[2345]1|57|6[13]|7[14]|80)"],"0$1","",1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7(?:12|2[14]|3[134]|4[47]|5[15]|[67]1|88)","7(?:12|2[14]|3[134]|4[47]|5(?:1|5[2-6])|[67]1|88)"],"0$1","",1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)"],"0$1","",1],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[23579]|[468][1-9])|[2-8]"],"0$1","",1],[,"(1600)(\\d{2})(\\d{4})","$1 $2 $3",["160","1600"],"$1","",1],[,"(1800)(\\d{4,5})","$1 $2",["180","1800"],"$1","",1],[,"(18[06]0)(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[06]0"],"$1","",1],[,"(140)(\\d{3})(\\d{4})","$1 $2 $3",["140"],"$1","",1],[,"(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18[06]","18(?:0[03]|6[12])"],"$1","",1]],,[,,"NA","NA"],,,[,,"1(?:600\\d{6}|8(?:0(?:0\\d{4,9}|3\\d{9})|6(?:0\\d{7}|[12]\\d{9})))","\\d{8,13}",,,"1800123456"],[,,"140\\d{7}","\\d{10}",,,"1409305260"],,,[,,"NA","NA"]],IO:[,[,,"3\\d{6}","\\d{7}"],[,,"37\\d{5}","\\d{7}",,,"3709100"],[,,"38\\d{5}","\\d{7}",,,"3801234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"IO",246,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],IQ:[,[,,"[1-7]\\d{7,9}","\\d{6,10}"],[,,"1\\d{7}|(?:2[13-5]|3[02367]|4[023]|5[03]|6[026])\\d{6,7}","\\d{6,9}",,,"12345678"],[,,"7[3-9]\\d{8}","\\d{10}",,,"7912345678"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"IQ",964,"00","0",,,"0",,,,[[,"(1)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1","",0],[,"([2-6]\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1","",0],[,"(7\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],IR:[,[,,"[1-8]\\d{9}|9(?:[0-4]\\d{8}|9\\d{2,8})","\\d{4,10}"],[,,"(?:1[137]|2[13-68]|3[1458]|4[145]|5[146-8]|6[146]|7[1467]|8[13467])\\d{8}","\\d{10}",,,"2123456789"],[,,"9(?:0[1-3]|[13]\\d|2[0-2]|90)\\d{7}","\\d{10}",,,"9123456789"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"(?:[2-6]0\\d|993)\\d{7}","\\d{10}",,,"9932123456"],"IR",98,"00","0",,,"0",,,,[[,"(21)(\\d{3,5})","$1 $2",["21"],"0$1","",0],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1","",0],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1","",0],[,"(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["9"],"0$1","",0],[,"(\\d{3})(\\d{3})","$1 $2",["9"],"0$1","",0]],,[,,"943\\d{7}","\\d{10}",,,"9432123456"],,,[,,"NA","NA"],[,,"9990\\d{0,6}","\\d{4,10}",,,"9990123456"],,,[,,"NA","NA"]],IS:[,[,,"[4-9]\\d{6}|38\\d{7}","\\d{7,9}"],[,,"(?:4(?:1[0-24-6]|2[0-7]|[37][0-8]|4[0-245]|5[0-3568]|6\\d|8[0-36-8])|5(?:05|[156]\\d|2[02578]|3[013-7]|4[03-7]|7[0-2578]|8[0-35-9]|9[013-689])|87[23])\\d{4}","\\d{7}",,,"4101234"],[,,"38[589]\\d{6}|(?:6(?:1[1-8]|3[089]|4[0167]|5[019]|[67][0-69]|9\\d)|7(?:5[057]|7\\d|8[0-36-8])|8(?:2[0-5]|3[0-4]|[469]\\d|5[1-9]))\\d{4}","\\d{7,9}",,,"6111234"],[,,"800\\d{4}","\\d{7}",,,"8001234"],[,,"90\\d{5}","\\d{7}",,,"9011234"],[,,"NA","NA"],[,,"NA","NA"],[,,"49\\d{5}","\\d{7}",,,"4921234"],"IS",354,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[4-9]"],"","",0],[,"(3\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["3"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"(?:6(?:2[0-8]|49|8\\d)|87[0189]|95[48])\\d{4}","\\d{7}",,,"6201234"]],IT:[,[,,"[01589]\\d{5,10}|3(?:[12457-9]\\d{8}|[36]\\d{7,9})","\\d{6,11}"],[,,"0(?:[26]\\d{4,9}|(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2346]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[34578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7})","\\d{6,11}",,,"0212345678"],[,,"3(?:[12457-9]\\d{8}|6\\d{7,8}|3\\d{7,9})","\\d{9,11}",,,"3123456789"],[,,"80(?:0\\d{6}|3\\d{3})","\\d{6,9}",,,"800123456"],[,,"0878\\d{5}|1(?:44|6[346])\\d{6}|89(?:2\\d{3}|4(?:[0-4]\\d{2}|[5-9]\\d{4})|5(?:[0-4]\\d{2}|[5-9]\\d{6})|9\\d{6})","\\d{6,10}",,,"899123456"],[,,"84(?:[08]\\d{6}|[17]\\d{3})","\\d{6,9}",,,"848123456"],[,,"1(?:78\\d|99)\\d{6}","\\d{9,10}",,,"1781234567"],[,,"55\\d{8}","\\d{10}",,,"5512345678"],"IT",39,"00",,,,,,,,[[,"(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|55"],"","",0],[,"(0[26])(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"],"","",0],[,"(0[26])(\\d{4,6})","$1 $2",["0[26]"],"","",0],[,"(0\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]"],"","",0],[,"(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[245])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|[45][0-4]))"],"","",0],[,"(0\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["0[13-57-9][2-46-8]"],"","",0],[,"(0\\d{3})(\\d{2,6})","$1 $2",["0[13-57-9][2-46-8]"],"","",0],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13]|8(?:00|4[08]|9[59])","[13]|8(?:00|4[08]|9(?:5[5-9]|9))"],"","",0],[,"(\\d{4})(\\d{4})","$1 $2",["894","894[5-9]"],"","",0],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["3"],"","",0]],,[,,"NA","NA"],1,,[,,"848\\d{6}","\\d{9}",,,"848123456"],[,,"NA","NA"],1,,[,,"NA","NA"]],JE:[,[,,"[135789]\\d{6,9}","\\d{6,10}"],[,,"1534\\d{6}","\\d{6,10}",,,"1534456789"],[,,"7(?:509|7(?:00|97)|829|937)\\d{6}","\\d{10}",,,"7797123456"],[,,"80(?:07(?:35|81)|8901)\\d{4}","\\d{10}",,,"8007354567"],[,,"(?:871206|90(?:066[59]|1810|71(?:07|55)))\\d{4}","\\d{10}",,,"9018105678"],[,,"8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|70002)\\d{4}","\\d{10}",,,"8447034567"],[,,"701511\\d{4}","\\d{10}",,,"7015115678"],[,,"56\\d{8}","\\d{10}",,,"5612345678"],"JE",44,"00","0"," x",,"0",,,,,,[,,"76(?:0[012]|2[356]|4[0134]|5[49]|6[0-369]|77|81|9[39])\\d{6}","\\d{10}",,,"7640123456"],,,[,,"NA","NA"],[,,"3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))\\d{4}|55\\d{8}","\\d{10}",,,"5512345678"],,,[,,"NA","NA"]],JM:[,[,,"[589]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"876(?:5(?:0[12]|1[0-468]|2[35]|63)|6(?:0[1-3579]|1[027-9]|[23]\\d|40|5[06]|6[2-589]|7[05]|8[04]|9[4-9])|7(?:0[2-689]|[1-6]\\d|8[056]|9[45])|9(?:0[1-8]|1[02378]|[2-8]\\d|9[2-468]))\\d{4}","\\d{7}(?:\\d{3})?",,,"8765123456"],[,,"876(?:2[16-9]\\d|[348]\\d{2}|5(?:0[3-9]|27|6[0-24-9]|[3-578]\\d)|7(?:0[07]|7\\d|8[1-47-9]|9[0-36-9])|9(?:[01]9|9[0579]))\\d{4}","\\d{10}",,,"8762101234"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002123456"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002123456"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"JM",1,"011","1",,,"1",,,,,,[,,"NA","NA"],,"876",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],JO:[,[,,"[235-9]\\d{7,8}","\\d{8,9}"],[,,"(?:2(?:6(?:2[0-35-9]|3[0-57-8]|4[24-7]|5[0-24-8]|[6-8][023]|9[0-3])|7(?:0[1-79]|10|2[014-7]|3[0-689]|4[019]|5[0-3578]))|32(?:0[1-69]|1[1-35-7]|2[024-7]|3\\d|4[0-3]|[57][023]|6[03])|53(?:0[0-3]|[13][023]|2[0-59]|49|5[0-35-9]|6[15]|7[45]|8[1-6]|9[0-36-9])|6(?:2[50]0|3(?:00|33)|4(?:0[0125]|1[2-7]|2[0569]|[38][07-9]|4[025689]|6[0-589]|7\\d|9[0-2])|5(?:[01][056]|2[034]|3[0-57-9]|4[17-8]|5[0-69]|6[0-35-9]|7[1-379]|8[0-68]|9[02-39]))|87(?:[02]0|7[08]|90))\\d{4}","\\d{8}",,,"62001234"],[,,"7(?:55|7[025-9]|8[015-9]|9[0-25-9])\\d{6}","\\d{9}",,,"790123456"],[,,"80\\d{6}","\\d{8}",,,"80012345"],[,,"900\\d{5}","\\d{8}",,,"90012345"],[,,"85\\d{6}","\\d{8}",,,"85012345"],[,,"70\\d{7}","\\d{9}",,,"700123456"],[,,"NA","NA"],"JO",962,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)","",0],[,"(7)(\\d{4})(\\d{4})","$1 $2 $3",["7[457-9]"],"0$1","",0],[,"(\\d{3})(\\d{5,6})","$1 $2",["70|8[0158]|9"],"0$1","",0]],,[,,"74(?:66|77)\\d{5}","\\d{9}",,,"746612345"],,,[,,"NA","NA"],[,,"8(?:10|8\\d)\\d{5}","\\d{8}",,,"88101234"],,,[,,"NA","NA"]],JP:[,[,,"[1-9]\\d{8,9}|00(?:[36]\\d{7,14}|7\\d{5,7}|8\\d{7})","\\d{8,17}"],[,,"(?:1(?:1[235-8]|2[3-6]|3[3-9]|4[2-6]|[58][2-8]|6[2-7]|7[2-9]|9[1-9])|2[2-9]\\d|[36][1-9]\\d|4(?:6[02-8]|[2-578]\\d|9[2-59])|5(?:6[1-9]|7[2-8]|[2-589]\\d)|7(?:3[4-9]|4[02-9]|[25-9]\\d)|8(?:3[2-9]|4[5-9]|5[1-9]|8[03-9]|[2679]\\d)|9(?:[679][1-9]|[2-58]\\d))\\d{6}","\\d{9}",,,"312345678"],[,,"[7-9]0[1-9]\\d{7}","\\d{10}",,,"9012345678"],[,,"120\\d{6}|800\\d{7}|00(?:37\\d{6,13}|66\\d{6,13}|777(?:[01]\\d{2}|5\\d{3}|8\\d{4})|882[1245]\\d{4})","\\d{8,17}",,,"120123456"],[,,"990\\d{6}","\\d{9}",,,"990123456"],[,,"NA","NA"],[,,"60\\d{7}","\\d{9}",,,"601234567"],[,,"50[1-9]\\d{7}","\\d{10}",,,"5012345678"],"JP",81,"010","0",,,"0",,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1","",0],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1","",0],[,"(\\d{4})(\\d{4})","$1-$2",["0077"],"$1","",0],[,"(\\d{4})(\\d{2})(\\d{3,4})","$1-$2-$3",["0077"],"$1","",0],[,"(\\d{4})(\\d{2})(\\d{4})","$1-$2-$3",["0088"],"$1","",0],[,"(\\d{4})(\\d{3})(\\d{3,4})","$1-$2-$3",["00(?:37|66)"],"$1","",0],[,"(\\d{4})(\\d{4})(\\d{4,5})","$1-$2-$3",["00(?:37|66)"],"$1","",0],[,"(\\d{4})(\\d{5})(\\d{5,6})","$1-$2-$3",["00(?:37|66)"],"$1","",0],[,"(\\d{4})(\\d{6})(\\d{6,7})","$1-$2-$3",["00(?:37|66)"],"$1","",0],[,"(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[2579]0|80[1-9]"],"0$1","",0],[,"(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|5(?:76|97)|499|746|8(?:3[89]|63|47|51)|9(?:49|80|9[16])","1(?:267|3(?:7[247]|9[278])|4(?:5[67]|66)|5(?:47|58|64|8[67])|6(?:3[245]|48|5[4-68]))|5(?:76|97)9|499[2468]|7468|8(?:3(?:8[78]|96)|636|477|51[24])|9(?:496|802|9(?:1[23]|69))","1(?:267|3(?:7[247]|9[278])|4(?:5[67]|66)|5(?:47|58|64|8[67])|6(?:3[245]|48|5[4-68]))|5(?:769|979[2-69])|499[2468]|7468|8(?:3(?:8[78]|96[2457-9])|636[2-57-9]|477|51[24])|9(?:496|802|9(?:1[23]|69))"],"0$1","",0],[,"(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["1(?:2[3-6]|3[3-9]|4[2-6]|5[2-8]|[68][2-7]|7[2-689]|9[1-578])|2(?:2[03-689]|3[3-58]|4[0-468]|5[04-8]|6[013-8]|7[06-9]|8[02-57-9]|9[13])|4(?:2[28]|3[689]|6[035-7]|7[05689]|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9[4-9])|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9[014-9])|8(?:2[49]|3[3-8]|4[5-8]|5[2-9]|6[35-9]|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9[3-7])","1(?:2[3-6]|3[3-9]|4[2-6]|5(?:[236-8]|[45][2-69])|[68][2-7]|7[2-689]|9[1-578])|2(?:2(?:[04-689]|3[23])|3[3-58]|4[0-468]|5(?:5[78]|7[2-4]|[0468][2-9])|6(?:[0135-8]|4[2-5])|7(?:[0679]|8[2-7])|8(?:[024578]|3[25-9]|9[6-9])|9(?:11|3[2-4]))|4(?:2(?:2[2-9]|8[237-9])|3[689]|6[035-7]|7(?:[059][2-8]|[68])|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9(?:[89][2-8]|[4-7]))|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9(?:[017-9]|4[6-8]|5[2-478]|6[2-589]))|8(?:2(?:4[4-8]|9[2-8])|3(?:7[2-6]|[3-6][2-9]|8[2-5])|4[5-8]|5[2-9]|6(?:[37]|5[4-7]|6[2-9]|8[2-8]|9[236-9])|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9(?:3[34]|[4-7]))","1(?:2[3-6]|3[3-9]|4[2-6]|5(?:[236-8]|[45][2-69])|[68][2-7]|7[2-689]|9[1-578])|2(?:2(?:[04-689]|3[23])|3[3-58]|4[0-468]|5(?:5[78]|7[2-4]|[0468][2-9])|6(?:[0135-8]|4[2-5])|7(?:[0679]|8[2-7])|8(?:[024578]|3[25-9]|9[6-9])|9(?:11|3[2-4]))|4(?:2(?:2[2-9]|8[237-9])|3[689]|6[035-7]|7(?:[059][2-8]|[68])|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9(?:[89][2-8]|[4-7]))|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9(?:[017-9]|4[6-8]|5[2-478]|6[2-589]))|8(?:2(?:4[4-8]|9(?:[3578]|20|4[04-9]|6[56]))|3(?:7(?:[2-5]|6[0-59])|[3-6][2-9]|8[2-5])|4[5-8]|5[2-9]|6(?:[37]|5(?:[467]|5[014-9])|6(?:[2-8]|9[02-69])|8[2-8]|9(?:[236-8]|9[23]))|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9(?:3(?:3[02-9]|4[0-24689])|4[2-69]|[5-7]))","1(?:2[3-6]|3[3-9]|4[2-6]|5(?:[236-8]|[45][2-69])|[68][2-7]|7[2-689]|9[1-578])|2(?:2(?:[04-689]|3[23])|3[3-58]|4[0-468]|5(?:5[78]|7[2-4]|[0468][2-9])|6(?:[0135-8]|4[2-5])|7(?:[0679]|8[2-7])|8(?:[024578]|3[25-9]|9[6-9])|9(?:11|3[2-4]))|4(?:2(?:2[2-9]|8[237-9])|3[689]|6[035-7]|7(?:[059][2-8]|[68])|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9(?:[89][2-8]|[4-7]))|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9(?:[017-9]|4[6-8]|5[2-478]|6[2-589]))|8(?:2(?:4[4-8]|9(?:[3578]|20|4[04-9]|6(?:5[25]|60)))|3(?:7(?:[2-5]|6[0-59])|[3-6][2-9]|8[2-5])|4[5-8]|5[2-9]|6(?:[37]|5(?:[467]|5[014-9])|6(?:[2-8]|9[02-69])|8[2-8]|9(?:[236-8]|9[23]))|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9(?:3(?:3[02-9]|4[0-24689])|4[2-69]|[5-7]))"],"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1|2(?:2[37]|5[5-9]|64|78|8[39]|91)|4(?:2[2689]|64|7[347])|5(?:[2-589]|39)|60|8(?:[46-9]|3[279]|2[124589])|9(?:[235-8]|93)","1|2(?:2[37]|5(?:[57]|[68]0|9[19])|64|78|8[39]|917)|4(?:2(?:[68]|20|9[178])|64|7[347])|5(?:[2-589]|39[67])|60|8(?:[46-9]|3[279]|2[124589])|9(?:[235-8]|93[34])","1|2(?:2[37]|5(?:[57]|[68]0|9(?:17|99))|64|78|8[39]|917)|4(?:2(?:[68]|20|9[178])|64|7[347])|5(?:[2-589]|39[67])|60|8(?:[46-9]|3[279]|2[124589])|9(?:[235-8]|93(?:31|4))"],"0$1","",0],[,"(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["2(?:9[14-79]|74|[34]7|[56]9)|82|993"],"0$1","",0],[,"(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]"],"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[2479][1-9]"],"0$1","",0]],[[,"(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1","",0],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1","",0],[,"(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[2579]0|80[1-9]"],"0$1","",0],[,"(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|5(?:76|97)|499|746|8(?:3[89]|63|47|51)|9(?:49|80|9[16])","1(?:267|3(?:7[247]|9[278])|4(?:5[67]|66)|5(?:47|58|64|8[67])|6(?:3[245]|48|5[4-68]))|5(?:76|97)9|499[2468]|7468|8(?:3(?:8[78]|96)|636|477|51[24])|9(?:496|802|9(?:1[23]|69))","1(?:267|3(?:7[247]|9[278])|4(?:5[67]|66)|5(?:47|58|64|8[67])|6(?:3[245]|48|5[4-68]))|5(?:769|979[2-69])|499[2468]|7468|8(?:3(?:8[78]|96[2457-9])|636[2-57-9]|477|51[24])|9(?:496|802|9(?:1[23]|69))"],"0$1","",0],[,"(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["1(?:2[3-6]|3[3-9]|4[2-6]|5[2-8]|[68][2-7]|7[2-689]|9[1-578])|2(?:2[03-689]|3[3-58]|4[0-468]|5[04-8]|6[013-8]|7[06-9]|8[02-57-9]|9[13])|4(?:2[28]|3[689]|6[035-7]|7[05689]|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9[4-9])|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9[014-9])|8(?:2[49]|3[3-8]|4[5-8]|5[2-9]|6[35-9]|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9[3-7])","1(?:2[3-6]|3[3-9]|4[2-6]|5(?:[236-8]|[45][2-69])|[68][2-7]|7[2-689]|9[1-578])|2(?:2(?:[04-689]|3[23])|3[3-58]|4[0-468]|5(?:5[78]|7[2-4]|[0468][2-9])|6(?:[0135-8]|4[2-5])|7(?:[0679]|8[2-7])|8(?:[024578]|3[25-9]|9[6-9])|9(?:11|3[2-4]))|4(?:2(?:2[2-9]|8[237-9])|3[689]|6[035-7]|7(?:[059][2-8]|[68])|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9(?:[89][2-8]|[4-7]))|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9(?:[017-9]|4[6-8]|5[2-478]|6[2-589]))|8(?:2(?:4[4-8]|9[2-8])|3(?:7[2-6]|[3-6][2-9]|8[2-5])|4[5-8]|5[2-9]|6(?:[37]|5[4-7]|6[2-9]|8[2-8]|9[236-9])|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9(?:3[34]|[4-7]))","1(?:2[3-6]|3[3-9]|4[2-6]|5(?:[236-8]|[45][2-69])|[68][2-7]|7[2-689]|9[1-578])|2(?:2(?:[04-689]|3[23])|3[3-58]|4[0-468]|5(?:5[78]|7[2-4]|[0468][2-9])|6(?:[0135-8]|4[2-5])|7(?:[0679]|8[2-7])|8(?:[024578]|3[25-9]|9[6-9])|9(?:11|3[2-4]))|4(?:2(?:2[2-9]|8[237-9])|3[689]|6[035-7]|7(?:[059][2-8]|[68])|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9(?:[89][2-8]|[4-7]))|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9(?:[017-9]|4[6-8]|5[2-478]|6[2-589]))|8(?:2(?:4[4-8]|9(?:[3578]|20|4[04-9]|6[56]))|3(?:7(?:[2-5]|6[0-59])|[3-6][2-9]|8[2-5])|4[5-8]|5[2-9]|6(?:[37]|5(?:[467]|5[014-9])|6(?:[2-8]|9[02-69])|8[2-8]|9(?:[236-8]|9[23]))|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9(?:3(?:3[02-9]|4[0-24689])|4[2-69]|[5-7]))","1(?:2[3-6]|3[3-9]|4[2-6]|5(?:[236-8]|[45][2-69])|[68][2-7]|7[2-689]|9[1-578])|2(?:2(?:[04-689]|3[23])|3[3-58]|4[0-468]|5(?:5[78]|7[2-4]|[0468][2-9])|6(?:[0135-8]|4[2-5])|7(?:[0679]|8[2-7])|8(?:[024578]|3[25-9]|9[6-9])|9(?:11|3[2-4]))|4(?:2(?:2[2-9]|8[237-9])|3[689]|6[035-7]|7(?:[059][2-8]|[68])|80|9[3-5])|5(?:3[1-36-9]|4[4578]|5[013-8]|6[1-9]|7[2-8]|8[14-7]|9(?:[89][2-8]|[4-7]))|7(?:2[15]|3[5-9]|4[02-9]|6[135-8]|7[0-4689]|9(?:[017-9]|4[6-8]|5[2-478]|6[2-589]))|8(?:2(?:4[4-8]|9(?:[3578]|20|4[04-9]|6(?:5[25]|60)))|3(?:7(?:[2-5]|6[0-59])|[3-6][2-9]|8[2-5])|4[5-8]|5[2-9]|6(?:[37]|5(?:[467]|5[014-9])|6(?:[2-8]|9[02-69])|8[2-8]|9(?:[236-8]|9[23]))|7[579]|8[03-579]|9[2-8])|9(?:[23]0|4[02-46-9]|5[024-79]|6[4-9]|7[2-47-9]|8[02-7]|9(?:3(?:3[02-9]|4[0-24689])|4[2-69]|[5-7]))"],"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1|2(?:2[37]|5[5-9]|64|78|8[39]|91)|4(?:2[2689]|64|7[347])|5(?:[2-589]|39)|60|8(?:[46-9]|3[279]|2[124589])|9(?:[235-8]|93)","1|2(?:2[37]|5(?:[57]|[68]0|9[19])|64|78|8[39]|917)|4(?:2(?:[68]|20|9[178])|64|7[347])|5(?:[2-589]|39[67])|60|8(?:[46-9]|3[279]|2[124589])|9(?:[235-8]|93[34])","1|2(?:2[37]|5(?:[57]|[68]0|9(?:17|99))|64|78|8[39]|917)|4(?:2(?:[68]|20|9[178])|64|7[347])|5(?:[2-589]|39[67])|60|8(?:[46-9]|3[279]|2[124589])|9(?:[235-8]|93(?:31|4))"],"0$1","",0],[,"(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["2(?:9[14-79]|74|[34]7|[56]9)|82|993"],"0$1","",0],[,"(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]"],"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[2479][1-9]"],"0$1","",0]],[,,"20\\d{8}","\\d{10}",,,"2012345678"],,,[,,"00(?:37\\d{6,13}|66\\d{6,13}|777(?:[01]\\d{2}|5\\d{3}|8\\d{4})|882[1245]\\d{4})","\\d{8,17}",,,"00777012"],[,,"570\\d{6}","\\d{9}",,,"570123456"],1,,[,,"NA","NA"]],KE:[,[,,"20\\d{6,7}|[4-9]\\d{6,9}","\\d{7,10}"],[,,"20\\d{6,7}|4(?:[0136]\\d{7}|[245]\\d{5,7})|5(?:[08]\\d{7}|[1-79]\\d{5,7})|6(?:[01457-9]\\d{5,7}|[26]\\d{7})","\\d{7,9}",,,"202012345"],[,,"7(?:[0-36]\\d|5[0-6]|7[0-5]|8[0-25-9]|9[0-4])\\d{6}","\\d{9}",,,"712123456"],[,,"800[24-8]\\d{5,6}","\\d{9,10}",,,"800223456"],[,,"900[02-9]\\d{5}","\\d{9}",,,"900223456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"KE",254,"000","0",,,"0",,,,[[,"(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1","",0],[,"(\\d{3})(\\d{6})","$1 $2",["7"],"0$1","",0],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],KG:[,[,,"[235-8]\\d{8,9}","\\d{5,10}"],[,,"(?:3(?:1(?:[256]\\d|3[1-9]|47)|2(?:22|3[0-479]|6[0-7])|4(?:22|5[6-9]|6\\d)|5(?:22|3[4-7]|59|6\\d)|6(?:22|5[35-7]|6\\d)|7(?:22|3[468]|4[1-9]|59|[67]\\d)|9(?:22|4[1-8]|6\\d))|6(?:09|12|2[2-4])\\d)\\d{5}","\\d{5,10}",,,"312123456"],[,,"(?:20[0-35]|5[124-7]\\d|7[07]\\d)\\d{6}","\\d{9}",,,"700123456"],[,,"800\\d{6,7}","\\d{9,10}",,,"800123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"KG",996,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[25-7]|31[25]"],"0$1","",0],[,"(\\d{4})(\\d{5})","$1 $2",["3(?:1[36]|[2-9])"],"0$1","",0],[,"(\\d{3})(\\d{3})(\\d)(\\d{3})","$1 $2 $3 $4",["8"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],KH:[,[,,"[1-9]\\d{7,9}","\\d{6,10}"],[,,"(?:2[3-6]|3[2-6]|4[2-4]|[5-7][2-5])(?:[237-9]|4[56]|5\\d|6\\d?)\\d{5}|23(?:4[234]|8\\d{2})\\d{4}","\\d{6,9}",,,"23756789"],[,,"(?:1(?:[013-9]|2\\d?)|3[18]\\d|6[016-9]|7(?:[07-9]|[16]\\d)|8(?:[013-79]|8\\d)|9(?:6\\d|7\\d?|[0-589]))\\d{6}","\\d{8,9}",,,"91234567"],[,,"1800(?:1\\d|2[019])\\d{4}","\\d{10}",,,"1800123456"],[,,"1900(?:1\\d|2[09])\\d{4}","\\d{10}",,,"1900123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"KH",855,"00[14-9]","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["1\\d[1-9]|[2-9]"],"0$1","",0],[,"(1[89]00)(\\d{3})(\\d{3})","$1 $2 $3",["1[89]0"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],KI:[,[,,"[2458]\\d{4}|3\\d{4,7}|7\\d{7}","\\d{5,8}"],[,,"(?:[24]\\d|3[1-9]|50|8[0-5])\\d{3}","\\d{5}",,,"31234"],[,,"7(?:[24]\\d|3[1-9]|8[0-5])\\d{5}","\\d{8}",,,"72012345"],[,,"NA","NA"],[,,"3001\\d{4}","\\d{5,8}",,,"30010000"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"KI",686,"00",,,,"0",,,,,,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],KM:[,[,,"[379]\\d{6}","\\d{7}"],[,,"7(?:6[0-37-9]|7[0-57-9])\\d{4}","\\d{7}",,,"7712345"],[,,"3[234]\\d{5}","\\d{7}",,,"3212345"],[,,"NA","NA"],[,,"(?:39[01]|9[01]0)\\d{4}","\\d{7}",,,"9001234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"KM",269,"00",,,,,,,,[[,"(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],KN:[,[,,"[589]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"869(?:2(?:29|36)|302|4(?:6[015-9]|70))\\d{4}","\\d{7}(?:\\d{3})?",,,"8692361234"],[,,"869(?:5(?:5[6-8]|6[5-7])|66\\d|76[02-6])\\d{4}","\\d{10}",,,"8697652917"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002123456"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002123456"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"KN",1,"011","1",,,"1",,,,,,[,,"NA","NA"],,"869",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],KP:[,[,,"1\\d{9}|[28]\\d{7}","\\d{6,8}|\\d{10}"],[,,"2\\d{7}|85\\d{6}","\\d{6,8}",,,"21234567"],[,,"19[123]\\d{7}","\\d{10}",,,"1921234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"KP",850,"00|99","0",,,"0",,,,[[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1","",0],[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1","",0]],,[,,"NA","NA"],,,[,,"2(?:[0-24-9]\\d{2}|3(?:[0-79]\\d|8[02-9]))\\d{4}","\\d{8}",,,"23821234"],[,,"NA","NA"],,,[,,"NA","NA"]],KR:[,[,,"[1-7]\\d{3,9}|8\\d{8}","\\d{4,10}"],[,,"(?:2|3[1-3]|[46][1-4]|5[1-5])(?:1\\d{2,3}|[1-9]\\d{6,7})","\\d{4,10}",,,"22123456"],[,,"1[0-26-9]\\d{7,8}","\\d{9,10}",,,"1000000000"],[,,"80\\d{7}","\\d{9}",,,"801234567"],[,,"60[2-9]\\d{6}","\\d{9}",,,"602345678"],[,,"NA","NA"],[,,"50\\d{8}","\\d{10}",,,"5012345678"],[,,"70\\d{8}","\\d{10}",,,"7012345678"],"KR",82,"00(?:[124-68]|[37]\\d{2})","0",,,"0(8[1-46-8]|85\\d{2})?",,,,[[,"(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["1(?:0|1[19]|[69]9|5[458])|[57]0","1(?:0|1[19]|[69]9|5(?:44|59|8))|[57]0"],"0$1","0$CC-$1",0],[,"(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["1(?:[169][2-8]|[78]|5[1-4])|[68]0|[3-6][1-9][1-9]","1(?:[169][2-8]|[78]|5(?:[1-3]|4[56]))|[68]0|[3-6][1-9][1-9]"],"0$1","0$CC-$1",0],[,"(\\d{3})(\\d)(\\d{4})","$1-$2-$3",["131","1312"],"0$1","0$CC-$1",0],[,"(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["131","131[13-9]"],"0$1","0$CC-$1",0],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["13[2-9]"],"0$1","0$CC-$1",0],[,"(\\d{2})(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3-$4",["30"],"0$1","0$CC-$1",0],[,"(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2[1-9]"],"0$1","0$CC-$1",0],[,"(\\d)(\\d{3,4})","$1-$2",["21[0-46-9]"],"0$1","0$CC-$1",0],[,"(\\d{2})(\\d{3,4})","$1-$2",["[3-6][1-9]1","[3-6][1-9]1(?:[0-46-9])"],"0$1","0$CC-$1",0],[,"(\\d{4})(\\d{4})","$1-$2",["1(?:5[46-9]|6[04678]|8[0579])","1(?:5(?:44|66|77|88|99)|6(?:00|44|6[16]|70|88)|8(?:00|55|77|99))"],"$1","0$CC-$1",0]],,[,,"15\\d{7,8}","\\d{9,10}",,,"1523456789"],,,[,,"NA","NA"],[,,"1(?:5(?:44|66|77|88|99)|6(?:00|44|6[16]|70|88)|8(?:00|55|77|99))\\d{4}","\\d{8}",,,"15441234"],,,[,,"NA","NA"]],KW:[,[,,"[12569]\\d{6,7}","\\d{7,8}"],[,,"(?:18\\d|2(?:[23]\\d{2}|4(?:[1-35-9]\\d|44)|5(?:0[034]|[2-46]\\d|5[1-3]|7[1-7])))\\d{4}","\\d{7,8}",,,"22345678"],[,,"(?:5(?:[05]\\d{2}|1[0-7]\\d|2(?:22|55))|6(?:0[034679]\\d|5[015-9]\\d|6\\d{2}|7[067]\\d|9[0369]\\d)|9(?:0[09]\\d|22\\d|4[01479]\\d|55\\d|6[0679]\\d|[79]\\d{2}|8[057-9]\\d))\\d{4}","\\d{8}",,,"50012345"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"KW",965,"00",,,,,,,,[[,"(\\d{4})(\\d{3,4})","$1 $2",["[126]|9[04-9]|52[25]"],"","",0],[,"(\\d{3})(\\d{5})","$1 $2",["5[015]|92"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],KY:[,[,,"[3589]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"345(?:2(?:22|44)|444|6(?:23|38|40)|7(?:4[35-79]|6[6-9]|77)|8(?:00|1[45]|25|[48]8)|9(?:14|4[035-9]))\\d{4}","\\d{7}(?:\\d{3})?",,,"3452221234"],[,,"345(?:32[1-9]|5(?:1[67]|2[5-7]|4[6-8]|76)|9(?:1[67]|2[2-9]|3[689]))\\d{4}","\\d{10}",,,"3453231234"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002345678"],[,,"900[2-9]\\d{6}|345976\\d{4}","\\d{10}",,,"9002345678"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"KY",1,"011","1",,,"1",,,,,,[,,"345849\\d{4}","\\d{10}",,,"3458491234"],,"345",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],KZ:[,[,,"(?:33\\d|7\\d{2}|80[09])\\d{7}","\\d{10}"],[,,"33622\\d{5}|7(?:1(?:0(?:[23]\\d|4[023]|59|63)|1(?:[23]\\d|4[0-79]|59)|2(?:[23]\\d|59)|3(?:2\\d|3[1-79]|4[0-35-9]|59)|4(?:2\\d|3[013-79]|4[0-8]|5[1-79])|5(?:2\\d|3[1-8]|4[1-7]|59)|6(?:[234]\\d|5[19]|61)|72\\d|8(?:[27]\\d|3[1-46-9]|4[0-5]))|2(?:1(?:[23]\\d|4[46-9]|5[3469])|2(?:2\\d|3[0679]|46|5[12679])|3(?:[234]\\d|5[139])|4(?:2\\d|3[1235-9]|59)|5(?:[23]\\d|4[01246-8]|59|61)|6(?:2\\d|3[1-9]|4[0-4]|59)|7(?:[237]\\d|40|5[279])|8(?:[23]\\d|4[0-3]|59)|9(?:2\\d|3[124578]|59)))\\d{5}","\\d{10}",,,"7123456789"],[,,"7(?:0[012578]|47|6[02-4]|7[15-8]|85)\\d{7}","\\d{10}",,,"7710009998"],[,,"800\\d{7}","\\d{10}",,,"8001234567"],[,,"809\\d{7}","\\d{10}",,,"8091234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"751\\d{7}","\\d{10}",,,"7511234567"],"KZ",7,"810","8",,,"8",,"8~10",,,,[,,"NA","NA"],,,[,,"751\\d{7}","\\d{10}",,,"7511234567"],[,,"NA","NA"],,,[,,"NA","NA"]],LA:[,[,,"[2-8]\\d{7,9}","\\d{6,10}"],[,,"(?:2[13]|3(?:0\\d|[14])|[5-7][14]|41|8[1468])\\d{6}","\\d{6,9}",,,"21212862"],[,,"20(?:2[2389]|5[4-689]|7[6-8]|9[15-9])\\d{6}","\\d{10}",,,"2023123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"LA",856,"00","0",,,"0",,,,[[,"(20)(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["20"],"0$1","",0],[,"([2-8]\\d)(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1","",0],[,"(30)(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],LB:[,[,,"[13-9]\\d{6,7}","\\d{7,8}"],[,,"(?:[14-6]\\d{2}|7(?:[2-57]\\d|62|8[0-7]|9[04-9])|8[02-9]\\d|9\\d{2})\\d{4}","\\d{7}",,,"1123456"],[,,"(?:3\\d|7(?:[01]\\d|6[013-9]|8[89]|9[1-3])|81\\d)\\d{5}","\\d{7,8}",,,"71123456"],[,,"NA","NA"],[,,"9[01]\\d{6}","\\d{8}",,,"90123456"],[,,"80\\d{6}","\\d{8}",,,"80123456"],[,,"NA","NA"],[,,"NA","NA"],"LB",961,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-6]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]|9"],"0$1","",0],[,"([7-9]\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[89][01]|7(?:[01]|6[013-9]|8[89]|9[1-3])"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],LC:[,[,,"[5789]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"758(?:4(?:30|5[0-9]|6[2-9]|8[0-2])|57[0-2]|638)\\d{4}","\\d{7}(?:\\d{3})?",,,"7584305678"],[,,"758(?:28[4-7]|384|4(?:6[01]|8[4-9])|5(?:1[89]|20|84)|7(?:1[2-9]|2[0-8]))\\d{4}","\\d{10}",,,"7582845678"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002123456"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002123456"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"LC",1,"011","1",,,"1",,,,,,[,,"NA","NA"],,"758",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],LI:[,[,,"6\\d{8}|[23789]\\d{6}","\\d{7,9}"],[,,"(?:2(?:01|1[27]|3\\d|6[02-578]|96)|3(?:7[0135-7]|8[048]|9[0269]))\\d{4}","\\d{7}",,,"2345678"],[,,"6(?:51[01]|6(?:0[0-6]|2[016-9]|39))\\d{5}|7(?:[37-9]\\d|42|56)\\d{4}","\\d{7,9}",,,"660234567"],[,,"80(?:02[28]|9\\d{2})\\d{2}","\\d{7}",,,"8002222"],[,,"90(?:02[258]|1(?:23|3[14])|66[136])\\d{2}","\\d{7}",,,"9002222"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"LI",423,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[23789]"],"","",0],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[56]"],"","",0],[,"(69)(7\\d{2})(\\d{4})","$1 $2 $3",["697"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"870(?:28|87)\\d{2}","\\d{7}",,,"8702812"],,,[,,"697(?:42|56|[7-9]\\d)\\d{4}","\\d{9}",,,"697861234"]],LK:[,[,,"[1-9]\\d{8}","\\d{7,9}"],[,,"(?:[189]1|2[13-7]|3[1-8]|4[157]|5[12457]|6[35-7])[2-57]\\d{6}","\\d{7,9}",,,"112345678"],[,,"7[0125-8]\\d{7}","\\d{9}",,,"712345678"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"LK",94,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{1})(\\d{6})","$1 $2 $3",["[1-689]"],"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],LR:[,[,,"2\\d{7,8}|[37-9]\\d{8}|4\\d{6}|5\\d{6,8}","\\d{7,9}"],[,,"2\\d{7}","\\d{8}",,,"21234567"],[,,"(?:330\\d|4[67]|5\\d|77\\d{2}|88\\d{2}|994\\d)\\d{5}|(?:20\\d{3}|33(?:0\\d{2}|2(?:02|5\\d))|555\\d{2}|77[0567]\\d{2}|88[068]\\d{2}|994\\d{2})\\d{4}","\\d{7,9}",,,"770123456"],[,,"NA","NA"],[,,"90[03]\\d{6}","\\d{9}",,,"900123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"332(?:0[02]|5\\d)\\d{4}","\\d{9}",,,"332001234"],"LR",231,"00","0",,,"0",,,,[[,"(2\\d)(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1","",0],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2579]"],"0$1","",0],[,"([4-6])(\\d{3})(\\d{3})","$1 $2 $3",["[4-6]"],"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[38]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],LS:[,[,,"[2568]\\d{7}","\\d{8}"],[,,"2\\d{7}","\\d{8}",,,"22123456"],[,,"[56]\\d{7}","\\d{8}",,,"50123456"],[,,"800[256]\\d{4}","\\d{8}",,,"80021234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"LS",266,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],LT:[,[,,"[3-9]\\d{7}","\\d{8}"],[,,"(?:3[1478]|4[124-6]|52)\\d{6}","\\d{8}",,,"31234567"],[,,"6\\d{7}","\\d{8}",,,"61234567"],[,,"800\\d{5}","\\d{8}",,,"80012345"],[,,"9(?:0[0239]|10)\\d{5}","\\d{8}",,,"90012345"],[,,"808\\d{5}","\\d{8}",,,"80812345"],[,,"700\\d{5}","\\d{8}",,,"70012345"],[,,"NA","NA"],"LT",370,"00","8",,,"[08]",,,,[[,"([34]\\d)(\\d{6})","$1 $2",["37|4(?:1|5[45]|6[2-4])"],"(8-$1)","",1],[,"([3-6]\\d{2})(\\d{5})","$1 $2",["3[148]|4(?:[24]|6[09])|528|6"],"(8-$1)","",1],[,"([7-9]\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"8 $1","",1],[,"(5)(2\\d{2})(\\d{4})","$1 $2 $3",["52[0-79]"],"(8-$1)","",1]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"70[67]\\d{5}","\\d{8}",,,"70712345"],,,[,,"NA","NA"]],LU:[,[,,"[24-9]\\d{3,10}|3(?:[0-46-9]\\d{2,9}|5[013-9]\\d{1,8})","\\d{4,11}"],[,,"(?:2[2-9]\\d{2,9}|(?:[3457]\\d{2}|8(?:0[2-9]|[13-9]\\d)|9(?:0[89]|[2-579]\\d))\\d{1,8})","\\d{4,11}",,,"27123456"],[,,"6[2679][18]\\d{6}","\\d{9}",,,"628123456"],[,,"800\\d{5}","\\d{8}",,,"80012345"],[,,"90[015]\\d{5}","\\d{8}",,,"90012345"],[,,"801\\d{5}","\\d{8}",,,"80112345"],[,,"70\\d{6}","\\d{8}",,,"70123456"],[,,"20(?:1\\d{5}|[2-689]\\d{1,7})","\\d{4,10}",,,"20201234"],"LU",352,"00",,,,"(15(?:0[06]|1[12]|35|4[04]|55|6[26]|77|88|99)\\d)",,,,[[,"(\\d{2})(\\d{3})","$1 $2",["[2-5]|7[1-9]|[89](?:[1-9]|0[2-9])"],"","$CC $1",0],[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-5]|7[1-9]|[89](?:[1-9]|0[2-9])"],"","$CC $1",0],[,"(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20"],"","$CC $1",0],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"],"","$CC $1",0],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"],"","$CC $1",0],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"],"","$CC $1",0],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{1,4})","$1 $2 $3 $4",["2(?:[12589]|4[12])|[3-5]|7[1-9]|8(?:[1-9]|0[2-9])|9(?:[1-9]|0[2-46-9])"],"","$CC $1",0],[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["70|80[01]|90[015]"],"","$CC $1",0],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"],"","$CC $1",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],LV:[,[,,"[2689]\\d{7}","\\d{8}"],[,,"6[3-8]\\d{6}","\\d{8}",,,"63123456"],[,,"2\\d{7}","\\d{8}",,,"21234567"],[,,"80\\d{6}","\\d{8}",,,"80123456"],[,,"90\\d{6}","\\d{8}",,,"90123456"],[,,"81\\d{6}","\\d{8}",,,"81123456"],[,,"NA","NA"],[,,"NA","NA"],"LV",371,"00",,,,,,,,[[,"([2689]\\d)(\\d{3})(\\d{3})","$1 $2 $3",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],LY:[,[,,"[25679]\\d{8}","\\d{7,9}"],[,,"(?:2[1345]|5[1347]|6[123479]|71)\\d{7}","\\d{7,9}",,,"212345678"],[,,"9[1-6]\\d{7}","\\d{9}",,,"912345678"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"LY",218,"00","0",,,"0",,,,[[,"([25679]\\d)(\\d{7})","$1-$2",,"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],MA:[,[,,"[5689]\\d{8}","\\d{9}"],[,,"5(?:2(?:(?:[015-7]\\d|2[2-9]|3[2-57]|4[2-8]|8[235-7])\\d|9(?:0\\d|[89]0))|3(?:(?:[0-4]\\d|[57][2-9]|6[235-8]|9[3-9])\\d|8(?:0\\d|[89]0)))\\d{4}","\\d{9}",,,"520123456"],[,,"6(?:0[0-8]|[12-79]\\d|8[017])\\d{6}","\\d{9}",,,"650123456"],[,,"80\\d{7}","\\d{9}",,,"801234567"],[,,"89\\d{7}","\\d{9}",,,"891234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"MA",212,"00","0",,,"0",,,,[[,"([56]\\d{2})(\\d{6})","$1-$2",["5(?:2[015-7]|3[0-4])|6"],"0$1","",0],[,"([58]\\d{3})(\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9])|892","5(?:2(?:[2-48]|90)|3(?:[5-79]|80))|892"],"0$1","",0],[,"(5\\d{4})(\\d{4})","$1-$2",["5(?:29|38)","5(?:29|38)[89]"],"0$1","",0],[,"(8[09])(\\d{7})","$1-$2",["8(?:0|9[013-9])"],"0$1","",0]],,[,,"NA","NA"],1,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],MC:[,[,,"[4689]\\d{7,8}","\\d{8,9}"],[,,"870\\d{5}|9[2-47-9]\\d{6}","\\d{8}",,,"99123456"],[,,"6\\d{8}|4(?:4\\d|5[1-9])\\d{5}","\\d{8,9}",,,"612345678"],[,,"90\\d{6}","\\d{8}",,,"90123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"MC",377,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"$1","",0],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1","",0],[,"(6)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1","",0],[,"(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["8"],"$1","",0]],,[,,"NA","NA"],,,[,,"8\\d{7}","\\d{8}"],[,,"NA","NA"],,,[,,"NA","NA"]],MD:[,[,,"[235-9]\\d{7}","\\d{8}"],[,,"(?:2(?:1[0569]|2\\d|3[015-7]|4[1-46-9]|5[0-24689]|6[2-589]|7[1-37]|9[1347-9])|5(?:33|5[257]))\\d{5}","\\d{8}",,,"22212345"],[,,"(?:562\\d|6(?:[089]\\d{2}|1[01]\\d|21\\d|7(?:[1-6]\\d|7[0-4]))|7(?:6[07]|7[457-9]|[89]\\d)\\d)\\d{4}","\\d{8}",,,"62112345"],[,,"800\\d{5}","\\d{8}",,,"80012345"],[,,"90[056]\\d{5}","\\d{8}",,,"90012345"],[,,"808\\d{5}","\\d{8}",,,"80812345"],[,,"NA","NA"],[,,"3[08]\\d{6}","\\d{8}",,,"30123456"],"MD",373,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1","",0],[,"([25-7]\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["2[13-79]|[5-7]"],"0$1","",0],[,"([89]\\d{2})(\\d{5})","$1 $2",["[89]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"8(?:03|14)\\d{5}","\\d{8}",,,"80312345"],,,[,,"NA","NA"]],ME:[,[,,"[2-9]\\d{7,8}","\\d{6,9}"],[,,"(?:20[2-8]|3(?:0[2-7]|[12][35-7]|3[4-7])|4(?:0[2367]|1[267])|5(?:0[467]|1[267]|2[367]))\\d{5}","\\d{6,8}",,,"30234567"],[,,"6(?:00\\d|32\\d|[89]\\d{2}|61\\d|7(?:[0-8]\\d|9(?:[3-9]|[0-2]\\d)))\\d{4}","\\d{8,9}",,,"67622901"],[,,"80\\d{6}","\\d{8}",,,"80080002"],[,,"(?:9(?:4[1568]|5[178]))\\d{5}","\\d{8}",,,"94515151"],[,,"NA","NA"],[,,"NA","NA"],[,,"78[1-9]\\d{5}","\\d{8}",,,"78108780"],"ME",382,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]|6[036-9]","[2-57-9]|6(?:[03689]|7(?:[0-8]|9[3-9]))"],"0$1","",0],[,"(67)(9)(\\d{3})(\\d{3})","$1 $2 $3 $4",["679","679[0-2]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"77\\d{6}","\\d{8}",,,"77273012"],,,[,,"NA","NA"]],MF:[,[,,"[56]\\d{8}","\\d{9}"],[,,"590(?:[02][79]|13|5[0-268]|[78]7)\\d{4}","\\d{9}",,,"590271234"],[,,"690(?:0[0-7]|[1-9]\\d)\\d{4}","\\d{9}",,,"690301234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"MF",590,"00","0",,,"0",,,,,,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],MG:[,[,,"[23]\\d{8}","\\d{7,9}"],[,,"20(?:2\\d{2}|4[47]\\d|5[3467]\\d|6[279]\\d|7(?:2[29]|[35]\\d)|8[268]\\d|9[245]\\d)\\d{4}","\\d{7,9}",,,"202123456"],[,,"3[2-49]\\d{7}","\\d{9}",,,"321234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"22\\d{7}","\\d{9}",,,"221234567"],"MG",261,"00","0",,,"0",,,,[[,"([23]\\d)(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",,"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],MH:[,[,,"[2-6]\\d{6}","\\d{7}"],[,,"(?:247|528|625)\\d{4}","\\d{7}",,,"2471234"],[,,"(?:235|329|45[56]|545)\\d{4}","\\d{7}",,,"2351234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"635\\d{4}","\\d{7}",,,"6351234"],"MH",692,"011","1",,,"1",,,,[[,"(\\d{3})(\\d{4})","$1-$2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],MK:[,[,,"[2-578]\\d{7}","\\d{8}"],[,,"(?:2(?:[23]\\d|5[124578]|6[01])|3(?:1[3-6]|[23][2-6]|4[2356])|4(?:[23][2-6]|4[3-6]|5[256]|6[25-8]|7[24-6]|8[4-6]))\\d{5}","\\d{6,8}",,,"22212345"],[,,"7(?:[0-25-8]\\d{2}|32\\d|421)\\d{4}","\\d{8}",,,"72345678"],[,,"800\\d{5}","\\d{8}",,,"80012345"],[,,"5[02-9]\\d{6}","\\d{8}",,,"50012345"],[,,"8(?:0[1-9]|[1-9]\\d)\\d{5}","\\d{8}",,,"80123456"],[,,"NA","NA"],[,,"NA","NA"],"MK",389,"00","0",,,"0",,,,[[,"(2)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1","",0],[,"([347]\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1","",0],[,"([58]\\d{2})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],ML:[,[,,"[246-9]\\d{7}","\\d{8}"],[,,"(?:2(?:0(?:2[0-589]|7\\d)|1(?:2[5-7]|[3-689]\\d|7[2-4689]))|44[239]\\d)\\d{4}","\\d{8}",,,"20212345"],[,,"[67]\\d{7}|9[0-25-9]\\d{6}","\\d{8}",,,"65012345"],[,,"800\\d{5}","\\d{8}",,,"80012345"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"ML",223,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[246-9]"],"","",0],[,"(\\d{4})","$1",["67|74"],"","",0]],[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[246-9]"],"","",0]],[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],MM:[,[,,"[14578]\\d{5,7}|[26]\\d{5,8}|9(?:2\\d{0,2}|[58]|3\\d|4\\d{1,2}|6\\d?|[79]\\d{0,2})\\d{6}","\\d{5,10}"],[,,"1(?:2\\d{1,2}|[3-5]\\d|6\\d?|[89][0-6]\\d)\\d{4}|2(?:[236-9]\\d{4}|4(?:0\\d{5}|\\d{4})|5(?:1\\d{3,6}|[02-9]\\d{3,5}))|4(?:2[245-8]|[346][2-6]|5[3-5])\\d{4}|5(?:2(?:20?|[3-8])|3[2-68]|4(?:21?|[4-8])|5[23]|6[2-4]|7[2-8]|8[24-7]|9[2-7])\\d{4}|6(?:0[23]|1[2356]|[24][2-6]|3[24-6]|5[2-4]|6[2-8]|7(?:[2367]|4\\d|5\\d?|8[145]\\d)|8[245]|9[24])\\d{4}|7(?:[04][24-8]|[15][2-7]|22|3[2-4])\\d{4}|8(?:1(?:2\\d?|[3-689])|2[2-8]|3[24]|4[24-7]|5[245]|6[23])\\d{4}","\\d{5,9}",,,"1234567"],[,,"17[01]\\d{4}|9(?:2(?:[0-4]|5\\d{2}|6[0-5]\\d)|3[0-36]\\d|4(?:0[0-4]\\d|[1379]\\d|2\\d{2}|4[0-589]\\d|5\\d{2}|88)|5[0-6]|61?\\d|7(?:3\\d|[789]\\d{2})|8\\d|9(?:1\\d|[67]\\d{2}|[089]))\\d{5}","\\d{7,10}",,,"92123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"1333\\d{4}","\\d{8}",,,"13331234"],"MM",95,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["1|2[45]"],"0$1","",0],[,"(2)(\\d{4})(\\d{4})","$1 $2 $3",["251"],"0$1","",0],[,"(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["67|81"],"0$1","",0],[,"(\\d{2})(\\d{2})(\\d{3,4})","$1 $2 $3",["[4-8]"],"0$1","",0],[,"(9)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1","",0],[,"(9)([34]\\d{4})(\\d{4})","$1 $2 $3",["9(?:3[0-36]|4[0-57-9])"],"0$1","",0],[,"(9)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92[56]"],"0$1","",0],[,"(9)(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["93"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],MN:[,[,,"[12]\\d{7,9}|[57-9]\\d{7}","\\d{6,10}"],[,,"[12](?:1\\d|2(?:[1-3]\\d?|7\\d)|3[2-8]\\d{1,2}|4[2-68]\\d{1,2}|5[1-4689]\\d{1,2})\\d{5}|5[0568]\\d{6}","\\d{6,10}",,,"50123456"],[,,"(?:8[0689]|9[013-9])\\d{6}","\\d{8}",,,"88123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"7[05-8]\\d{6}","\\d{8}",,,"75123456"],"MN",976,"001","0",,,"0",,,,[[,"([12]\\d)(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1","",0],[,"([12]2\\d)(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1","",0],[,"([12]\\d{3})(\\d{5})","$1 $2",["[12](?:27|[3-5])","[12](?:27|[3-5]\\d)2"],"0$1","",0],[,"(\\d{4})(\\d{4})","$1 $2",["[57-9]"],"$1","",0],[,"([12]\\d{4})(\\d{4,5})","$1 $2",["[12](?:27|[3-5])","[12](?:27|[3-5]\\d)[4-9]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],MO:[,[,,"[268]\\d{7}","\\d{8}"],[,,"(?:28[2-57-9]|8[2-57-9]\\d)\\d{5}","\\d{8}",,,"28212345"],[,,"6[236]\\d{6}","\\d{8}",,,"66123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"MO",853,"00",,,,,,,,[[,"([268]\\d{3})(\\d{4})","$1 $2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],MP:[,[,,"[5689]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"670(?:2(?:3[3-7]|56|8[5-8])|32[1238]|4(?:33|8[348])|5(?:32|55|88)|6(?:64|70|82)|78[589]|8[3-9]8|989)\\d{4}","\\d{7}(?:\\d{3})?",,,"6702345678"],[,,"670(?:2(?:3[3-7]|56|8[5-8])|32[1238]|4(?:33|8[348])|5(?:32|55|88)|6(?:64|70|82)|78[589]|8[3-9]8|989)\\d{4}","\\d{7}(?:\\d{3})?",,,"6702345678"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002123456"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002123456"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"MP",1,"011","1",,,"1",,,1,,,[,,"NA","NA"],,"670",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],MQ:[,[,,"[56]\\d{8}","\\d{9}"],[,,"596(?:0[2-5]|[12]0|3[05-9]|4[024-8]|[5-7]\\d|89|9[4-8])\\d{4}","\\d{9}",,,"596301234"],[,,"696(?:[0-479]\\d|5[01]|8[0-689])\\d{4}","\\d{9}",,,"696201234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"MQ",596,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",,"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],MR:[,[,,"[2-48]\\d{7}","\\d{8}"],[,,"25[08]\\d{5}|35\\d{6}|45[1-7]\\d{5}","\\d{8}",,,"35123456"],[,,"[234][0-46-9]\\d{6}","\\d{8}",,,"22123456"],[,,"800\\d{5}","\\d{8}",,,"80012345"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"MR",222,"00",,,,,,,,[[,"([2-48]\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],MS:[,[,,"[5689]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"664491\\d{4}","\\d{7}(?:\\d{3})?",,,"6644912345"],[,,"66449[2-6]\\d{4}","\\d{10}",,,"6644923456"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002123456"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002123456"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"MS",1,"011","1",,,"1",,,,,,[,,"NA","NA"],,"664",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],MT:[,[,,"[2357-9]\\d{7}","\\d{8}"],[,,"2(?:0(?:1[0-6]|3[1-4]|[69]\\d)|[1-357]\\d{2})\\d{4}","\\d{8}",,,"21001234"],[,,"(?:7(?:210|[79]\\d{2})|9(?:2(?:1[01]|31)|696|8(?:1[1-3]|89|97)|9\\d{2}))\\d{4}","\\d{8}",,,"96961234"],[,,"800[3467]\\d{4}","\\d{8}",,,"80071234"],[,,"5(?:0(?:0(?:37|43)|6\\d{2}|70\\d|9[0168])|[12]\\d0[1-5])\\d{3}","\\d{8}",,,"50037123"],[,,"NA","NA"],[,,"NA","NA"],[,,"3550\\d{4}","\\d{8}",,,"35501234"],"MT",356,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",,"","",0]],,[,,"7117\\d{4}","\\d{8}",,,"71171234"],,,[,,"NA","NA"],[,,"501\\d{5}","\\d{8}",,,"50112345"],,,[,,"NA","NA"]],MU:[,[,,"[2-9]\\d{6,7}","\\d{7,8}"],[,,"(?:2(?:[03478]\\d|1[0-7]|6[1-69])|4(?:[013568]\\d|2[4-7])|5(?:44\\d|471)|6\\d{2}|8(?:14|3[129]))\\d{4}","\\d{7,8}",,,"2012345"],[,,"5(?:2[59]\\d|4(?:2[1-389]|4\\d|7[1-9]|9\\d)|7\\d{2}|8(?:[0-2568]\\d|7[15-8])|9[0-8]\\d)\\d{4}","\\d{8}",,,"52512345"],[,,"80[012]\\d{4}","\\d{7}",,,"8001234"],[,,"30\\d{5}","\\d{7}",,,"3012345"],[,,"NA","NA"],[,,"NA","NA"],[,,"3(?:20|9\\d)\\d{4}","\\d{7}",,,"3201234"],"MU",230,"0(?:0|[2-7]0|33)",,,,,,"020",,[[,"([2-46-9]\\d{2})(\\d{4})","$1 $2",["[2-46-9]"],"","",0],[,"(5\\d{3})(\\d{4})","$1 $2",["5"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],MV:[,[,,"[3467]\\d{6}|9(?:00\\d{7}|\\d{6})","\\d{7,10}"],[,,"(?:3(?:0[01]|3[0-59])|6(?:[567][02468]|8[024689]|90))\\d{4}","\\d{7}",,,"6701234"],[,,"(?:46[46]|7[3-9]\\d|9[15-9]\\d)\\d{4}","\\d{7}",,,"7712345"],[,,"NA","NA"],[,,"900\\d{7}","\\d{10}",,,"9001234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"MV",960,"0(?:0|19)",,,,,,"00",,[[,"(\\d{3})(\\d{4})","$1-$2",["[3467]|9(?:[1-9]|0[1-9])"],"","",0],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["900"],"","",0]],,[,,"781\\d{4}","\\d{7}",,,"7812345"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],MW:[,[,,"(?:1(?:\\d{2})?|[2789]\\d{2})\\d{6}","\\d{7,9}"],[,,"(?:1[2-9]|21\\d{2})\\d{5}","\\d{7,9}",,,"1234567"],[,,"(?:111|77\\d|88\\d|99\\d)\\d{6}","\\d{9}",,,"991234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"MW",265,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1"],"0$1","",0],[,"(2\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1","",0],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1789]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],MX:[,[,,"[1-9]\\d{9,10}","\\d{7,11}"],[,,"(?:33|55|81)\\d{8}|(?:2(?:0[01]|2[2-9]|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|7[1-8]|9[1-5])|4(?:1[1-57-9]|[24-6][1-9]|[37][1-8]|8[1-35-9]|9[2-689])|5(?:88|9[1-79])|6(?:1[2-68]|[234][1-9]|5[1-3689]|6[12457-9]|7[1-7]|8[67]|9[4-8])|7(?:[13467][1-9]|2[1-8]|5[13-9]|8[1-69]|9[17])|8(?:2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[1-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|[69][1-9]|7[12]|8[1-8]))\\d{7}","\\d{7,10}",,,"2221234567"],[,,"1(?:(?:33|55|81)\\d{8}|(?:2(?:2[2-9]|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|7[1-8]|9[1-5])|4(?:1[1-57-9]|[24-6][1-9]|[37][1-8]|8[1-35-9]|9[2-689])|5(?:88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[12457-9]|7[1-7]|8[67]|9[4-8])|7(?:[13467][1-9]|2[1-8]|5[13-9]|8[1-69]|9[17])|8(?:2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[1-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|[69][1-9]|7[12]|8[1-8]))\\d{7})","\\d{11}",,,"12221234567"],[,,"8(?:00|88)\\d{7}","\\d{10}",,,"8001234567"],[,,"900\\d{7}","\\d{10}",,,"9001234567"],[,,"300\\d{7}","\\d{10}",,,"3001234567"],[,,"500\\d{7}","\\d{10}",,,"5001234567"],[,,"NA","NA"],"MX",52,"0[09]","01",,,"0[12]|04[45](\\d{10})","1$1",,,[[,"([358]\\d)(\\d{4})(\\d{4})","$1 $2 $3",["33|55|81"],"01 $1","",1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2467]|3[0-2457-9]|5[089]|8[02-9]|9[0-35-9]"],"01 $1","",1],[,"(1)([358]\\d)(\\d{4})(\\d{4})","044 $2 $3 $4",["1(?:33|55|81)"],"$1","",1],[,"(1)(\\d{3})(\\d{3})(\\d{4})","044 $2 $3 $4",["1(?:[2467]|3[0-2457-9]|5[089]|8[2-9]|9[1-35-9])"],"$1","",1]],[[,"([358]\\d)(\\d{4})(\\d{4})","$1 $2 $3",["33|55|81"],"01 $1","",1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2467]|3[0-2457-9]|5[089]|8[02-9]|9[0-35-9]"],"01 $1","",1],[,"(1)([358]\\d)(\\d{4})(\\d{4})","$1 $2 $3 $4",["1(?:33|55|81)"]],[,"(1)(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1(?:[2467]|3[0-2457-9]|5[089]|8[2-9]|9[1-35-9])"]]],[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],1,,[,,"NA","NA"]],MY:[,[,,"[13-9]\\d{7,9}","\\d{6,10}"],[,,"(?:3[2-9]\\d|[4-9][2-9])\\d{6}","\\d{6,9}",,,"323456789"],[,,"1(?:1[1-5]\\d{2}|[02-4679][2-9]\\d|59\\d{2}|8(?:1[23]|[2-9]\\d))\\d{5}","\\d{9,10}",,,"123456789"],[,,"1[378]00\\d{6}","\\d{10}",,,"1300123456"],[,,"1600\\d{6}","\\d{10}",,,"1600123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"154\\d{7}","\\d{10}",,,"1541234567"],"MY",60,"00","0",,,"0",,,,[[,"([4-79])(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1","",0],[,"(3)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1","",0],[,"([18]\\d)(\\d{3})(\\d{3,4})","$1-$2 $3",["1[02-46-9][1-9]|8"],"0$1","",0],[,"(1)([36-8]00)(\\d{2})(\\d{4})","$1-$2-$3-$4",["1[36-8]0"],"","",0],[,"(11)(\\d{4})(\\d{4})","$1-$2 $3",["11"],"0$1","",0],[,"(15[49])(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],MZ:[,[,,"[28]\\d{7,8}","\\d{8,9}"],[,,"2(?:[1346]\\d|5[0-2]|[78][12]|93)\\d{5}","\\d{8}",,,"21123456"],[,,"8[23467]\\d{7}","\\d{9}",,,"821234567"],[,,"800\\d{6}","\\d{9}",,,"800123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"MZ",258,"00",,,,,,,,[[,"([28]\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-7]"],"","",0],[,"(80\\d)(\\d{3})(\\d{3})","$1 $2 $3",["80"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],NA:[,[,,"[68]\\d{7,8}","\\d{8,9}"],[,,"6(?:1(?:17|2(?:[0189]\\d|[2-6]|7\\d?)|3(?:[01378]|2\\d)|4[01]|69|7[014])|2(?:17|5(?:[0-36-8]|4\\d?)|69|70)|3(?:17|2(?:[0237]\\d?|[14-689])|34|6[289]|7[01]|81)|4(?:17|2(?:[012]|7?)|4(?:[06]|1\\d)|5(?:[01357]|[25]\\d?)|69|7[01])|5(?:17|2(?:[0459]|[23678]\\d?)|69|7[01])|6(?:17|2(?:5|6\\d?)|38|42|69|7[01])|7(?:17|2(?:[569]|[234]\\d?)|3(?:0\\d?|[13])|69|7[01]))\\d{4}","\\d{8,9}",,,"61221234"],[,,"(?:60|8[125])\\d{7}","\\d{9}",,,"811234567"],[,,"NA","NA"],[,,"8701\\d{5}","\\d{9}",,,"870123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"8(?:3\\d{2}|86)\\d{5}","\\d{8,9}",,,"88612345"],"NA",264,"00","0",,,"0",,,,[[,"(8\\d)(\\d{3})(\\d{4})","$1 $2 $3",["8[1235]"],"0$1","",0],[,"(6\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1","",0],[,"(88)(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1","",0],[,"(870)(\\d{3})(\\d{3})","$1 $2 $3",["870"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],NC:[,[,,"[2-57-9]\\d{5}","\\d{6}"],[,,"(?:2[03-9]|3[0-5]|4[1-7]|88)\\d{4}","\\d{6}",,,"201234"],[,,"(?:5[0-4]|[79]\\d|8[0-79])\\d{4}","\\d{6}",,,"751234"],[,,"NA","NA"],[,,"36\\d{4}","\\d{6}",,,"366711"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"NC",687,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[2-46-9]|5[0-4]"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],NE:[,[,,"[0289]\\d{7}","\\d{8}"],[,,"2(?:0(?:20|3[1-7]|4[134]|5[14]|6[14578]|7[1-578])|1(?:4[145]|5[14]|6[14-68]|7[169]|88))\\d{4}","\\d{8}",,,"20201234"],[,,"(?:8[089]|9\\d)\\d{6}","\\d{8}",,,"93123456"],[,,"08\\d{6}","\\d{8}",,,"08123456"],[,,"09\\d{6}","\\d{8}",,,"09123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"NE",227,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[289]|09"],"","",0],[,"(08)(\\d{3})(\\d{3})","$1 $2 $3",["08"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],1,,[,,"NA","NA"]],NF:[,[,,"[13]\\d{5}","\\d{5,6}"],[,,"(?:1(?:06|17|28|39)|3[012]\\d)\\d{3}","\\d{5,6}",,,"106609"],[,,"3[58]\\d{4}","\\d{5,6}",,,"381234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"NF",672,"00",,,,,,,,[[,"(\\d{2})(\\d{4})","$1 $2",["1"],"","",0],[,"(\\d)(\\d{5})","$1 $2",["3"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],NG:[,[,,"[1-6]\\d{5,8}|9\\d{5,9}|[78]\\d{5,13}","\\d{5,14}"],[,,"[12]\\d{6,7}|9(?:0[3-9]|[1-9]\\d)\\d{5}|(?:3\\d|4[023568]|5[02368]|6[02-469]|7[4-69]|8[2-9])\\d{6}|(?:4[47]|5[14579]|6[1578]|7[0-357])\\d{5,6}|(?:78|41)\\d{5}","\\d{5,9}",,,"12345678"],[,,"(?:1(?:7[34]\\d|8(?:04|[124579]\\d|8[0-3])|95\\d)|287[0-7]|3(?:18[1-8]|88[0-7]|9(?:8[5-9]|6[1-5]))|4(?:28[0-2]|6(?:7[1-9]|8[02-47])|88[0-2])|5(?:2(?:7[7-9]|8\\d)|38[1-79]|48[0-7]|68[4-7])|6(?:2(?:7[7-9]|8\\d)|4(?:3[7-9]|[68][129]|7[04-69]|9[1-8])|58[0-2]|98[7-9])|7(?:38[0-7]|69[1-8]|78[2-4])|8(?:28[3-9]|38[0-2]|4(?:2[12]|3[147-9]|5[346]|7[4-9]|8[014-689]|90)|58[1-8]|78[2-9]|88[5-7])|98[07]\\d)\\d{4}|(?:70(?:[13-9]\\d|2[1-9])|8(?:0[2-9]|1\\d)\\d|90[2359]\\d)\\d{6}","\\d{8,10}",,,"8021234567"],[,,"800\\d{7,11}","\\d{10,14}",,,"80017591759"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"NG",234,"009","0",,,"0",,,,[[,"([129])(\\d{3})(\\d{3,4})","$1 $2 $3",["[129]"],"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-6]|7(?:[1-79]|0[1-9])|8[2-9]"],"0$1","",0],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["70|8[01]|90[2359]"],"0$1","",0],[,"([78]00)(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]00"],"0$1","",0],[,"([78]00)(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]00"],"0$1","",0],[,"(78)(\\d{2})(\\d{3})","$1 $2 $3",["78"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"700\\d{7,11}","\\d{10,14}",,,"7001234567"],,,[,,"NA","NA"]],NI:[,[,,"[12578]\\d{7}","\\d{8}"],[,,"2\\d{7}","\\d{8}",,,"21234567"],[,,"5(?:5[0-7]\\d{5}|[78]\\d{6})|7[5-8]\\d{6}|8\\d{7}","\\d{8}",,,"81234567"],[,,"1800\\d{4}","\\d{8}",,,"18001234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"NI",505,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],NL:[,[,,"1\\d{4,8}|[2-7]\\d{8}|[89]\\d{6,9}","\\d{5,10}"],[,,"(?:1[0135-8]|2[02-69]|3[0-68]|4[0135-9]|[57]\\d|8[478])\\d{7}","\\d{9}",,,"101234567"],[,,"6[1-58]\\d{7}","\\d{9}",,,"612345678"],[,,"800\\d{4,7}","\\d{7,10}",,,"8001234"],[,,"90[069]\\d{4,7}","\\d{7,10}",,,"9061234"],[,,"NA","NA"],[,,"NA","NA"],[,,"85\\d{7}","\\d{9}",,,"851234567"],"NL",31,"00","0",,,"0",,,,[[,"([1-578]\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1[035]|2[0346]|3[03568]|4[0356]|5[0358]|7|8[4578]"],"0$1","",0],[,"([1-5]\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1","",0],[,"(6)(\\d{8})","$1 $2",["6[0-57-9]"],"0$1","",0],[,"(66)(\\d{7})","$1 $2",["66"],"0$1","",0],[,"(14)(\\d{3,4})","$1 $2",["14"],"$1","",0],[,"([89]0\\d)(\\d{4,7})","$1 $2",["80|9"],"0$1","",0]],,[,,"66\\d{7}","\\d{9}",,,"662345678"],,,[,,"14\\d{3,4}","\\d{5,6}"],[,,"140(?:1(?:[035]|[16-8]\\d)|2(?:[0346]|[259]\\d)|3(?:[03568]|[124]\\d)|4(?:[0356]|[17-9]\\d)|5(?:[0358]|[124679]\\d)|7\\d|8[458])","\\d{5,6}",,,"14020"],,,[,,"NA","NA"]],NO:[,[,,"0\\d{4}|[2-9]\\d{7}","\\d{5}(?:\\d{3})?"],[,,"(?:2[1-4]|3[1-3578]|5[1-35-7]|6[1-4679]|7[0-8])\\d{6}","\\d{8}",,,"21234567"],[,,"(?:4[015-8]|5[89]|9\\d)\\d{6}","\\d{8}",,,"40612345"],[,,"80[01]\\d{5}","\\d{8}",,,"80012345"],[,,"82[09]\\d{5}","\\d{8}",,,"82012345"],[,,"810(?:0[0-6]|[2-8]\\d)\\d{3}","\\d{8}",,,"81021234"],[,,"880\\d{5}","\\d{8}",,,"88012345"],[,,"85[0-5]\\d{5}","\\d{8}",,,"85012345"],"NO",47,"00",,,,,,,,[[,"([489]\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[489]"],"","",0],[,"([235-7]\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-7]"],"","",0]],,[,,"NA","NA"],1,,[,,"NA","NA"],[,,"0\\d{4}|81(?:0(?:0[7-9]|1\\d)|5\\d{2})\\d{3}","\\d{5}(?:\\d{3})?",,,"01234"],1,,[,,"81[23]\\d{5}","\\d{8}",,,"81212345"]],NP:[,[,,"[1-8]\\d{7}|9(?:[1-69]\\d{6,8}|7[2-6]\\d{5,7}|8\\d{8})","\\d{6,10}"],[,,"(?:1[0-6]\\d|2[13-79][2-6]|3[135-8][2-6]|4[146-9][2-6]|5[135-7][2-6]|6[13-9][2-6]|7[15-9][2-6]|8[1-46-9][2-6]|9[1-79][2-6])\\d{5}","\\d{6,8}",,,"14567890"],[,,"9(?:6[013]|7[245]|8[0-24-6])\\d{7}","\\d{10}",,,"9841234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"NP",977,"00","0",,,"0",,,,[[,"(1)(\\d{7})","$1-$2",["1[2-6]"],"0$1","",0],[,"(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-69]|7[15-9])"],"0$1","",0],[,"(9\\d{2})(\\d{7})","$1-$2",["9(?:6[013]|7[245]|8)"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],NR:[,[,,"[458]\\d{6}","\\d{7}"],[,,"(?:444|888)\\d{4}","\\d{7}",,,"4441234"],[,,"55[5-9]\\d{4}","\\d{7}",,,"5551234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"NR",674,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],NU:[,[,,"[1-5]\\d{3}","\\d{4}"],[,,"[34]\\d{3}","\\d{4}",,,"4002"],[,,"[125]\\d{3}","\\d{4}",,,"1234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"NU",683,"00",,,,,,,,,,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],NZ:[,[,,"6[235-9]\\d{6}|[2-57-9]\\d{7,10}","\\d{7,11}"],[,,"(?:3[2-79]|[49][2-9]|6[235-9]|7[2-57-9])\\d{6}|24099\\d{3}","\\d{7,8}",,,"32345678"],[,,"2(?:[028]\\d{7,8}|1(?:[03]\\d{5,7}|[12457]\\d{5,6}|[689]\\d{5})|[79]\\d{7})","\\d{8,10}",,,"211234567"],[,,"508\\d{6,7}|80\\d{6,8}","\\d{8,10}",,,"800123456"],[,,"90\\d{7,9}","\\d{9,11}",,,"900123456"],[,,"NA","NA"],[,,"70\\d{7}","\\d{9}",,,"701234567"],[,,"NA","NA"],"NZ",64,"0(?:0|161)","0",,,"0",,"00",,[[,"([34679])(\\d{3})(\\d{4})","$1-$2 $3",["[346]|7[2-57-9]|9[1-9]"],"0$1","",0],[,"(24099)(\\d{3})","$1 $2",["240","2409","24099"],"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["21"],"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:1[1-9]|[69]|7[0-35-9])|70|86"],"0$1","",0],[,"(2\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["2[028]"],"0$1","",0],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|5|[89]0"],"0$1","",0]],,[,,"[28]6\\d{6,7}","\\d{8,9}",,,"26123456"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],OM:[,[,,"(?:2[2-6]|5|9[1-9])\\d{6}|800\\d{5,6}","\\d{7,9}"],[,,"2[2-6]\\d{6}","\\d{8}",,,"23123456"],[,,"9[1-9]\\d{6}","\\d{8}",,,"92123456"],[,,"8007\\d{4,5}|500\\d{4}","\\d{7,9}",,,"80071234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"OM",968,"00",,,,,,,,[[,"(2\\d)(\\d{6})","$1 $2",["2"],"","",0],[,"(9\\d{3})(\\d{4})","$1 $2",["9"],"","",0],[,"([58]00)(\\d{4,6})","$1 $2",["[58]"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],PA:[,[,,"[1-9]\\d{6,7}","\\d{7,8}"],[,,"(?:1(?:0[0-8]|1[49]|2[37]|3[0137]|4[147]|5[05]|6[58]|7[0167]|8[58]|9[139])|2(?:[0235679]\\d|1[0-7]|4[04-9]|8[028])|3(?:[09]\\d|1[014-7]|2[0-3]|3[03]|4[03-57]|55|6[068]|7[06-8]|8[06-9])|4(?:3[013-69]|4\\d|7[0-589])|5(?:[01]\\d|2[0-7]|[56]0|79)|7(?:0[09]|2[0-267]|3[06]|[469]0|5[06-9]|7[0-24-79]|8[7-9])|8(?:09|[34]\\d|5[0134]|8[02])|9(?:0[6-9]|1[016-8]|2[036-8]|3[3679]|40|5[0489]|6[06-9]|7[046-9]|8[36-8]|9[1-9]))\\d{4}","\\d{7}",,,"2001234"],[,,"(?:1[16]1|21[89]|8(?:1[01]|7[23]))\\d{4}|6(?:[024-9]\\d|1[0-5]|3[0-24-9])\\d{5}","\\d{7,8}",,,"60012345"],[,,"80[09]\\d{4}","\\d{7}",,,"8001234"],[,,"(?:779|8(?:55|60|7[78])|9(?:00|81))\\d{4}","\\d{7}",,,"8601234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"PA",507,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"],"","",0],[,"(\\d{4})(\\d{4})","$1-$2",["6"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],PE:[,[,,"[14-9]\\d{7,8}","\\d{6,9}"],[,,"(?:1\\d|4[1-4]|5[1-46]|6[1-7]|7[2-46]|8[2-4])\\d{6}","\\d{6,8}",,,"11234567"],[,,"9\\d{8}","\\d{9}",,,"912345678"],[,,"800\\d{5}","\\d{8}",,,"80012345"],[,,"805\\d{5}","\\d{8}",,,"80512345"],[,,"801\\d{5}","\\d{8}",,,"80112345"],[,,"80[24]\\d{5}","\\d{8}",,,"80212345"],[,,"NA","NA"],"PE",51,"19(?:1[124]|77|90)00","0"," Anexo ",,"0",,,,[[,"(1)(\\d{7})","$1 $2",["1"],"(0$1)","",0],[,"([4-8]\\d)(\\d{6})","$1 $2",["[4-7]|8[2-4]"],"(0$1)","",0],[,"(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)","",0],[,"(9\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],PF:[,[,,"4\\d{5,7}|8\\d{7}","\\d{6}(?:\\d{2})?"],[,,"4(?:[09][45689]\\d|4)\\d{4}","\\d{6}(?:\\d{2})?",,,"40412345"],[,,"8[79]\\d{6}","\\d{8}",,,"87123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"PF",689,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4[09]|8[79]"],"","",0],[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"],"","",0]],,[,,"NA","NA"],,,[,,"44\\d{4}","\\d{6}",,,"441234"],[,,"NA","NA"],,,[,,"NA","NA"]],PG:[,[,,"[1-9]\\d{6,7}","\\d{7,8}"],[,,"(?:3[0-2]\\d|4[25]\\d|5[34]\\d|64[1-9]|77(?:[0-24]\\d|30)|85[02-46-9]|9[78]\\d)\\d{4}","\\d{7}",,,"3123456"],[,,"(?:20150|68\\d{2}|7(?:[0-369]\\d|75)\\d{2})\\d{3}","\\d{7,8}",,,"6812345"],[,,"180\\d{4}","\\d{7}",,,"1801234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"275\\d{4}","\\d{7}",,,"2751234"],"PG",675,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[13-689]|27"],"","",0],[,"(\\d{4})(\\d{4})","$1 $2",["20|7"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],PH:[,[,,"2\\d{5,7}|[3-9]\\d{7,9}|1800\\d{7,9}","\\d{5,13}"],[,,"2\\d{5}(?:\\d{2})?|(?:3[2-68]|4[2-9]|5[2-6]|6[2-58]|7[24578]|8[2-8])\\d{7}|88(?:22\\d{6}|42\\d{4})","\\d{5,10}",,,"21234567"],[,,"(?:81[37]|9(?:0[5-9]|1[024-9]|2[0-35-9]|3[02-9]|4[236-9]|50|7[34-79]|89|9[4-9]))\\d{7}","\\d{10}",,,"9051234567"],[,,"1800\\d{7,9}","\\d{11,13}",,,"180012345678"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"PH",63,"00","0",,,"0",,,,[[,"(2)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"(0$1)","",0],[,"(2)(\\d{5})","$1 $2",["2"],"(0$1)","",0],[,"(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|5(?:22|44)|642|8(?:62|8[245])","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)","",0],[,"(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)","",0],[,"([3-8]\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[3-8]"],"(0$1)","",0],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["81|9"],"0$1","",0],[,"(1800)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"","",0],[,"(1800)(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],PK:[,[,,"1\\d{8}|[2-8]\\d{5,11}|9(?:[013-9]\\d{4,9}|2\\d(?:111\\d{6}|\\d{3,7}))","\\d{6,12}"],[,,"(?:21|42)[2-9]\\d{7}|(?:2[25]|4[0146-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]\\d{6}|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:1|2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8]))[2-9]\\d{5,6}|58[126]\\d{7}","\\d{6,10}",,,"2123456789"],[,,"3(?:0\\d|1[0-6]|2[0-5]|3[0-7]|4[0-8]|55|64)\\d{7}","\\d{10}",,,"3012345678"],[,,"800\\d{5}","\\d{8}",,,"80012345"],[,,"900\\d{5}","\\d{8}",,,"90012345"],[,,"NA","NA"],[,,"122\\d{6}","\\d{9}",,,"122044444"],[,,"NA","NA"],"PK",92,"00","0",,,"0",,,,[[,"(\\d{2})(111)(\\d{3})(\\d{3})","$1 $2 $3 $4",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)1","(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)11","(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)111"],"(0$1)","",0],[,"(\\d{3})(111)(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[349]|45|54|60|72|8[2-5]|9[2-9]","(?:2[349]|45|54|60|72|8[2-5]|9[2-9])\\d1","(?:2[349]|45|54|60|72|8[2-5]|9[2-9])\\d11","(?:2[349]|45|54|60|72|8[2-5]|9[2-9])\\d111"],"(0$1)","",0],[,"(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)","",0],[,"(\\d{3})(\\d{6,7})","$1 $2",["2[349]|45|54|60|72|8[2-5]|9[2-9]","(?:2[349]|45|54|60|72|8[2-5]|9[2-9])\\d[2-9]"],"(0$1)","",0],[,"(3\\d{2})(\\d{7})","$1 $2",["3"],"0$1","",0],[,"([15]\\d{3})(\\d{5,6})","$1 $2",["58[12]|1"],"(0$1)","",0],[,"(586\\d{2})(\\d{5})","$1 $2",["586"],"(0$1)","",0],[,"([89]00)(\\d{3})(\\d{2})","$1 $2 $3",["[89]00"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"(?:2(?:[125]|3[2358]|4[2-4]|9[2-8])|4(?:[0-246-9]|5[3479])|5(?:[1-35-7]|4[2-467])|6(?:[1-8]|0[468])|7(?:[14]|2[236])|8(?:[16]|2[2-689]|3[23578]|4[3478]|5[2356])|9(?:1|22|3[27-9]|4[2-6]|6[3569]|9[2-7]))111\\d{6}","\\d{11,12}",,,"21111825888"],,,[,,"NA","NA"]],PL:[,[,,"[12]\\d{6,8}|[3-57-9]\\d{8}|6\\d{5,8}","\\d{6,9}"],[,,"(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])\\d{7}|[12]2\\d{5}","\\d{6,9}",,,"123456789"],[,,"(?:5[0137]|6[069]|7[2389]|88)\\d{7}","\\d{9}",,,"512345678"],[,,"800\\d{6}","\\d{9}",,,"800123456"],[,,"70\\d{7}","\\d{9}",,,"701234567"],[,,"801\\d{6}","\\d{9}",,,"801234567"],[,,"NA","NA"],[,,"39\\d{7}","\\d{9}",,,"391234567"],"PL",48,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[14]|2[0-57-9]|3[2-4]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145]"],"","",0],[,"(\\d{2})(\\d{1})(\\d{4})","$1 $2 $3",["[12]2"],"","",0],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["26|39|5[0137]|6[0469]|7[02389]|8[08]"],"","",0],[,"(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"],"","",0],[,"(\\d{3})(\\d{3})","$1 $2",["64"],"","",0]],,[,,"64\\d{4,7}","\\d{6,9}",,,"641234567"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],PM:[,[,,"[45]\\d{5}","\\d{6}"],[,,"41\\d{4}","\\d{6}",,,"411234"],[,,"55\\d{4}","\\d{6}",,,"551234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"PM",508,"00","0",,,"0",,,,[[,"([45]\\d)(\\d{2})(\\d{2})","$1 $2 $3",,"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],PR:[,[,,"[5789]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"(?:787|939)[2-9]\\d{6}","\\d{7}(?:\\d{3})?",,,"7872345678"],[,,"(?:787|939)[2-9]\\d{6}","\\d{7}(?:\\d{3})?",,,"7872345678"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002345678"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002345678"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"PR",1,"011","1",,,"1",,,1,,,[,,"NA","NA"],,"787|939",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],PS:[,[,,"[24589]\\d{7,8}|1(?:[78]\\d{8}|[49]\\d{2,3})","\\d{4,10}"],[,,"(?:22[234789]|42[45]|82[01458]|92[369])\\d{5}","\\d{7,8}",,,"22234567"],[,,"5[69]\\d{7}","\\d{9}",,,"599123456"],[,,"1800\\d{6}","\\d{10}",,,"1800123456"],[,,"1(?:4|9\\d)\\d{2}","\\d{4,5}",,,"19123"],[,,"1700\\d{6}","\\d{10}",,,"1700123456"],[,,"NA","NA"],[,,"NA","NA"],"PS",970,"00","0",,,"0",,,,[[,"([2489])(2\\d{2})(\\d{4})","$1 $2 $3",["[2489]"],"0$1","",0],[,"(5[69]\\d)(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1","",0],[,"(1[78]00)(\\d{3})(\\d{3})","$1 $2 $3",["1[78]"],"$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],PT:[,[,,"[2-46-9]\\d{8}","\\d{9}"],[,,"2(?:[12]\\d|[35][1-689]|4[1-59]|6[1-35689]|7[1-9]|8[1-69]|9[1256])\\d{6}","\\d{9}",,,"212345678"],[,,"9(?:[1236]\\d{2}|480)\\d{5}","\\d{9}",,,"912345678"],[,,"80[02]\\d{6}","\\d{9}",,,"800123456"],[,,"6(?:0[178]|4[68])\\d{6}|76(?:0[1-57]|1[2-47]|2[237])\\d{5}","\\d{9}",,,"760123456"],[,,"80(?:8\\d|9[1579])\\d{5}","\\d{9}",,,"808123456"],[,,"884[0-4689]\\d{5}","\\d{9}",,,"884123456"],[,,"30\\d{7}","\\d{9}",,,"301234567"],"PT",351,"00",,,,,,,,[[,"(2\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"],"","",0],[,"([2-46-9]\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[3-9]|[346-9]"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"7(?:0(?:7\\d|8[17]))\\d{5}","\\d{9}",,,"707123456"],,,[,,"600\\d{6}","\\d{9}",,,"600110000"]],PW:[,[,,"[2-8]\\d{6}","\\d{7}"],[,,"2552255|(?:277|345|488|5(?:35|44|87)|6(?:22|54|79)|7(?:33|47)|8(?:24|55|76))\\d{4}","\\d{7}",,,"2771234"],[,,"(?:6[234689]0|77[45789])\\d{4}","\\d{7}",,,"6201234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"PW",680,"01[12]",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],PY:[,[,,"5[0-5]\\d{4,7}|[2-46-9]\\d{5,8}","\\d{5,9}"],[,,"(?:[26]1|3[289]|4[124678]|7[123]|8[1236])\\d{5,7}|(?:2(?:2[4568]|7[15]|9[1-5])|3(?:18|3[167]|4[2357]|51)|4(?:18|2[45]|3[12]|5[13]|64|71|9[1-47])|5(?:[1-4]\\d|5[0234])|6(?:3[1-3]|44|7[1-4678])|7(?:17|4[0-4]|6[1-578]|75|8[0-8])|858)\\d{5,6}","\\d{5,9}",,,"212345678"],[,,"9(?:6[12]|[78][1-6]|9[1-5])\\d{6}","\\d{9}",,,"961456789"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"8700[0-4]\\d{4}","\\d{9}",,,"870012345"],"PY",595,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{5,7})","$1 $2",["(?:[26]1|3[289]|4[124678]|7[123]|8[1236])"],"($1)","",0],[,"(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1","",0],[,"(\\d{3})(\\d{6})","$1 $2",["9[1-9]"],"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8700"],"","",0],[,"(\\d{3})(\\d{4,6})","$1 $2",["[2-8][1-9]"],"($1)","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"[2-9]0\\d{4,7}","\\d{6,9}",,,"201234567"],,,[,,"NA","NA"]],QA:[,[,,"[2-8]\\d{6,7}","\\d{7,8}"],[,,"4[04]\\d{6}","\\d{7,8}",,,"44123456"],[,,"[3567]\\d{7}","\\d{7,8}",,,"33123456"],[,,"800\\d{4}","\\d{7,8}",,,"8001234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"QA",974,"00",,,,,,,,[[,"([28]\\d{2})(\\d{4})","$1 $2",["[28]"],"","",0],[,"([3-7]\\d{3})(\\d{4})","$1 $2",["[3-7]"],"","",0]],,[,,"2(?:[12]\\d|61)\\d{4}","\\d{7}",,,"2123456"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],RE:[,[,,"[268]\\d{8}","\\d{9}"],[,,"262\\d{6}","\\d{9}",,,"262161234"],[,,"6(?:9[23]|47)\\d{6}","\\d{9}",,,"692123456"],[,,"80\\d{7}","\\d{9}",,,"801234567"],[,,"89[1-37-9]\\d{6}","\\d{9}",,,"891123456"],[,,"8(?:1[019]|2[0156]|84|90)\\d{6}","\\d{9}",,,"810123456"],[,,"NA","NA"],[,,"NA","NA"],"RE",262,"00","0",,,"0",,,,[[,"([268]\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",,"0$1","",0]],,[,,"NA","NA"],1,"262|6[49]|8",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],RO:[,[,,"2\\d{5,8}|[37-9]\\d{8}","\\d{6,9}"],[,,"2(?:1(?:\\d{7}|9\\d{3})|[3-6](?:\\d{7}|\\d9\\d{2}))|3[13-6]\\d{7}","\\d{6,9}",,,"211234567"],[,,"7(?:[0-8]\\d{2}|99\\d)\\d{5}","\\d{9}",,,"712345678"],[,,"800\\d{6}","\\d{9}",,,"800123456"],[,,"90[036]\\d{6}","\\d{9}",,,"900123456"],[,,"801\\d{6}","\\d{9}",,,"801123456"],[,,"802\\d{6}","\\d{9}",,,"802123456"],[,,"NA","NA"],"RO",40,"00","0"," int ",,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1","",0],[,"(21)(\\d{4})","$1 $2",["21"],"0$1","",0],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[23][3-7]|[7-9]"],"0$1","",0],[,"(2\\d{2})(\\d{3})","$1 $2",["2[3-6]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"37\\d{7}","\\d{9}",,,"372123456"],,,[,,"NA","NA"]],RS:[,[,,"[126-9]\\d{4,11}|3(?:[0-79]\\d{3,10}|8[2-9]\\d{2,9})","\\d{5,12}"],[,,"(?:1(?:[02-9][2-9]|1[1-9])\\d|2(?:[0-24-7][2-9]\\d|[389](?:0[2-9]|[2-9]\\d))|3(?:[0-8][2-9]\\d|9(?:[2-9]\\d|0[2-9])))\\d{3,8}","\\d{5,12}",,,"10234567"],[,,"6(?:[0-689]|7\\d)\\d{6,7}","\\d{8,10}",,,"601234567"],[,,"800\\d{3,9}","\\d{6,12}",,,"80012345"],[,,"(?:90[0169]|78\\d)\\d{3,7}","\\d{6,12}",,,"90012345"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"RS",381,"00","0",,,"0",,,,[[,"([23]\\d{2})(\\d{4,9})","$1 $2",["(?:2[389]|39)0"],"0$1","",0],[,"([1-3]\\d)(\\d{5,10})","$1 $2",["1|2(?:[0-24-7]|[389][1-9])|3(?:[0-8]|9[1-9])"],"0$1","",0],[,"(6\\d)(\\d{6,8})","$1 $2",["6"],"0$1","",0],[,"([89]\\d{2})(\\d{3,9})","$1 $2",["[89]"],"0$1","",0],[,"(7[26])(\\d{4,9})","$1 $2",["7[26]"],"0$1","",0],[,"(7[08]\\d)(\\d{4,9})","$1 $2",["7[08]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"7[06]\\d{4,10}","\\d{6,12}",,,"700123456"],,,[,,"NA","NA"]],RU:[,[,,"[3489]\\d{9}","\\d{10}"],[,,"(?:3(?:0[12]|4[1-35-79]|5[1-3]|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15]|6[1-35-7]|7[1-37-9]))\\d{7}","\\d{10}",,,"3011234567"],[,,"9\\d{9}","\\d{10}",,,"9123456789"],[,,"80[04]\\d{7}","\\d{10}",,,"8001234567"],[,,"80[39]\\d{7}","\\d{10}",,,"8091234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"RU",7,"810","8",,,"8",,"8~10",,[[,"(\\d{3})(\\d{2})(\\d{2})","$1-$2-$3",["[1-79]"],"$1","",1],[,"([3489]\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[34689]"],"8 ($1)","",1],[,"(7\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)","",1]],[[,"([3489]\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[34689]"],"8 ($1)","",1],[,"(7\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)","",1]],[,,"NA","NA"],1,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],RW:[,[,,"[027-9]\\d{7,8}","\\d{8,9}"],[,,"2[258]\\d{7}|06\\d{6}","\\d{8,9}",,,"250123456"],[,,"7[238]\\d{7}","\\d{9}",,,"720123456"],[,,"800\\d{6}","\\d{9}",,,"800123456"],[,,"900\\d{6}","\\d{9}",,,"900123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"RW",250,"00","0",,,"0",,,,[[,"(2\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"$1","",0],[,"([7-9]\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1","",0],[,"(0\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],1,,[,,"NA","NA"]],SA:[,[,,"1\\d{7,8}|(?:[2-467]|92)\\d{7}|5\\d{8}|8\\d{9}","\\d{7,10}"],[,,"11\\d{7}|1?(?:2[24-8]|3[35-8]|4[3-68]|6[2-5]|7[235-7])\\d{6}","\\d{7,9}",,,"112345678"],[,,"(?:5(?:[013-689]\\d|7[0-26-8])|811\\d)\\d{6}","\\d{9,10}",,,"512345678"],[,,"800\\d{7}","\\d{10}",,,"8001234567"],[,,"NA","NA"],[,,"92[05]\\d{6}","\\d{9}",,,"920012345"],[,,"NA","NA"],[,,"NA","NA"],"SA",966,"00","0",,,"0",,,,[[,"([1-467])(\\d{3})(\\d{4})","$1 $2 $3",["[1-467]"],"0$1","",0],[,"(1\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1[1-467]"],"0$1","",0],[,"(5\\d)(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1","",0],[,"(92\\d{2})(\\d{5})","$1 $2",["92"],"$1","",0],[,"(800)(\\d{3})(\\d{4})","$1 $2 $3",["80"],"$1","",0],[,"(811)(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],SB:[,[,,"[1-9]\\d{4,6}","\\d{5,7}"],[,,"(?:1[4-79]|[23]\\d|4[0-2]|5[03]|6[0-37])\\d{3}","\\d{5}",,,"40123"],[,,"48\\d{3}|7(?:30|[46-8]\\d|5[025-9]|9[0-5])\\d{4}|8[4-8]\\d{5}|9(?:1[2-9]|2[013-9]|3[0-2]|[46]\\d|5[0-46-9]|7[0-689]|8[0-79]|9[0-8])\\d{4}","\\d{5,7}",,,"7421234"],[,,"1[38]\\d{3}","\\d{5}",,,"18123"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"5[12]\\d{3}","\\d{5}",,,"51123"],"SB",677,"0[01]",,,,,,,,[[,"(\\d{2})(\\d{5})","$1 $2",["[7-9]"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],SC:[,[,,"[2468]\\d{5,6}","\\d{6,7}"],[,,"4[2-46]\\d{5}","\\d{7}",,,"4217123"],[,,"2[5-8]\\d{5}","\\d{7}",,,"2510123"],[,,"8000\\d{2}","\\d{6}",,,"800000"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"64\\d{5}","\\d{7}",,,"6412345"],"SC",248,"0[0-2]",,,,,,"00",,[[,"(\\d{3})(\\d{3})","$1 $2",["8"],"","",0],[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],SD:[,[,,"[19]\\d{8}","\\d{9}"],[,,"1(?:[125]\\d|8[3567])\\d{6}","\\d{9}",,,"121231234"],[,,"9[0-3569]\\d{7}","\\d{9}",,,"911231234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"SD",249,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",,"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],SE:[,[,,"[1-9]\\d{5,9}","\\d{5,10}"],[,,"1(?:0[1-8]\\d{6}|[136]\\d{5,7}|(?:2[0-35]|4[0-4]|5[0-25-9]|7[13-6]|[89]\\d)\\d{5,6})|2(?:[136]\\d{5,7}|(?:2[0-7]|4[0136-8]|5[0138]|7[018]|8[01]|9[0-57])\\d{5,6})|3(?:[356]\\d{5,7}|(?:0[0-4]|1\\d|2[0-25]|4[056]|7[0-2]|8[0-3]|9[023])\\d{5,6})|4(?:0[1-9]\\d{4,6}|[246]\\d{5,7}|(?:1[013-8]|3[0135]|5[14-79]|7[0-246-9]|8[0156]|9[0-689])\\d{5,6})|5(?:0[0-6]|[15][0-5]|2[0-68]|3[0-4]|4\\d|6[03-5]|7[013]|8[0-79]|9[01])\\d{5,6}|6(?:0[1-9]\\d{4,6}|3\\d{5,7}|(?:1[1-3]|2[0-4]|4[02-57]|5[0-37]|6[0-3]|7[0-2]|8[0247]|9[0-356])\\d{5,6})|8[1-9]\\d{5,7}|9(?:0[1-9]\\d{4,6}|(?:1[0-68]|2\\d|3[02-5]|4[0-3]|5[0-4]|[68][01]|7[0135-8])\\d{5,6})","\\d{5,9}",,,"8123456"],[,,"7[02369]\\d{7}","\\d{9}",,,"701234567"],[,,"20(?:0(?:0\\d{2}|[1-9](?:0\\d{1,4}|[1-9]\\d{4}))|1(?:0\\d{4}|[1-9]\\d{4,5})|[2-9]\\d{5})","\\d{6,9}",,,"20123456"],[,,"9(?:00|39|44)(?:1(?:[0-26]\\d{5}|[3-57-9]\\d{2})|2(?:[0-2]\\d{5}|[3-9]\\d{2})|3(?:[0139]\\d{5}|[24-8]\\d{2})|4(?:[045]\\d{5}|[1-36-9]\\d{2})|5(?:5\\d{5}|[0-46-9]\\d{2})|6(?:[679]\\d{5}|[0-58]\\d{2})|7(?:[078]\\d{5}|[1-69]\\d{2})|8(?:[578]\\d{5}|[0-469]\\d{2}))","\\d{7}(?:\\d{3})?",,,"9001234567"],[,,"77(?:0(?:0\\d{2}|[1-9](?:0\\d|[1-9]\\d{4}))|[1-6][1-9]\\d{5})","\\d{6}(?:\\d{3})?",,,"771234567"],[,,"75[1-8]\\d{6}","\\d{9}",,,"751234567"],[,,"NA","NA"],"SE",46,"00","0",,,"0",,,,[[,"(8)(\\d{2,3})(\\d{2,3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1","",0],[,"([1-69]\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[013689]|2[0136]|3[1356]|4[0246]|54|6[03]|90"],"0$1","",0],[,"([1-69]\\d)(\\d{3})(\\d{2})","$1-$2 $3",["1[13689]|2[136]|3[1356]|4[0246]|54|6[03]|90"],"0$1","",0],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[2457]|2[2457-9]|3[0247-9]|4[1357-9]|5[0-35-9]|6[124-9]|9(?:[125-8]|3[0-5]|4[0-3])"],"0$1","",0],[,"(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2[2457-9]|3[0247-9]|4[1357-9]|5[0-35-9]|6[124-9]|9(?:[125-8]|3[0-5]|4[0-3])"],"0$1","",0],[,"(7\\d)(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["7"],"0$1","",0],[,"(77)(\\d{2})(\\d{2})","$1-$2$3",["7"],"0$1","",0],[,"(20)(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1","",0],[,"(9[034]\\d)(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9[034]"],"0$1","",0],[,"(9[034]\\d)(\\d{4})","$1-$2",["9[034]"],"0$1","",0]],[[,"(8)(\\d{2,3})(\\d{2,3})(\\d{2})","$1 $2 $3 $4",["8"]],[,"([1-69]\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[013689]|2[0136]|3[1356]|4[0246]|54|6[03]|90"]],[,"([1-69]\\d)(\\d{3})(\\d{2})","$1 $2 $3",["1[13689]|2[136]|3[1356]|4[0246]|54|6[03]|90"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2457]|2[2457-9]|3[0247-9]|4[1357-9]|5[0-35-9]|6[124-9]|9(?:[125-8]|3[0-5]|4[0-3])"]],[,"(\\d{3})(\\d{2,3})(\\d{2})","$1 $2 $3",["1[2457]|2[2457-9]|3[0247-9]|4[1357-9]|5[0-35-9]|6[124-9]|9(?:[125-8]|3[0-5]|4[0-3])"]],[,"(7\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7"]],[,"(77)(\\d{2})(\\d{2})","$1 $2 $3",["7"]],[,"(20)(\\d{2,3})(\\d{2})","$1 $2 $3",["20"]],[,"(9[034]\\d)(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["9[034]"]],[,"(9[034]\\d)(\\d{4})","$1 $2",["9[034]"]]],[,,"74[02-9]\\d{6}","\\d{9}",,,"740123456"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],SG:[,[,,"[36]\\d{7}|[17-9]\\d{7,10}","\\d{8,11}"],[,,"6[1-9]\\d{6}","\\d{8}",,,"61234567"],[,,"(?:8[1-8]|9[0-8])\\d{6}","\\d{8}",,,"81234567"],[,,"1?800\\d{7}","\\d{10,11}",,,"18001234567"],[,,"1900\\d{7}","\\d{11}",,,"19001234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"3[12]\\d{6}","\\d{8}",,,"31234567"],"SG",65,"0[0-3]\\d",,,,,,,,[[,"([3689]\\d{3})(\\d{4})","$1 $2",["[369]|8[1-9]"],"","",0],[,"(1[89]00)(\\d{3})(\\d{4})","$1 $2 $3",["1[89]"],"","",0],[,"(7000)(\\d{4})(\\d{3})","$1 $2 $3",["70"],"","",0],[,"(800)(\\d{3})(\\d{4})","$1 $2 $3",["80"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"7000\\d{7}","\\d{11}",,,"70001234567"],,,[,,"NA","NA"]],SH:[,[,,"[256]\\d{4}","\\d{4,5}"],[,,"2(?:[0-57-9]\\d|6[4-9])\\d{2}","\\d{5}",,,"22158"],[,,"[56]\\d{4}","\\d{5}"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"262\\d{2}","\\d{5}"],"SH",290,"00",,,,,,,,,,[,,"NA","NA"],1,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],SI:[,[,,"[1-7]\\d{6,7}|[89]\\d{4,7}","\\d{5,8}"],[,,"(?:1\\d|[25][2-8]|3[4-8]|4[24-8]|7[3-8])\\d{6}","\\d{7,8}",,,"11234567"],[,,"(?:[37][01]|4[0139]|51|6[48])\\d{6}","\\d{8}",,,"31234567"],[,,"80\\d{4,6}","\\d{6,8}",,,"80123456"],[,,"90\\d{4,6}|89[1-3]\\d{2,5}","\\d{5,8}",,,"90123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"(?:59|8[1-3])\\d{6}","\\d{8}",,,"59012345"],"SI",386,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[12]|3[4-8]|4[24-8]|5[2-8]|7[3-8]"],"(0$1)","",0],[,"([3-7]\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1","",0],[,"([89][09])(\\d{3,6})","$1 $2",["[89][09]"],"0$1","",0],[,"([58]\\d{2})(\\d{5})","$1 $2",["59|8[1-3]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],SJ:[,[,,"0\\d{4}|[4789]\\d{7}","\\d{5}(?:\\d{3})?"],[,,"79\\d{6}","\\d{8}",,,"79123456"],[,,"(?:4[015-8]|5[89]|9\\d)\\d{6}","\\d{8}",,,"41234567"],[,,"80[01]\\d{5}","\\d{8}",,,"80012345"],[,,"82[09]\\d{5}","\\d{8}",,,"82012345"],[,,"810(?:0[0-6]|[2-8]\\d)\\d{3}","\\d{8}",,,"81021234"],[,,"880\\d{5}","\\d{8}",,,"88012345"],[,,"85[0-5]\\d{5}","\\d{8}",,,"85012345"],"SJ",47,"00",,,,,,,,,,[,,"NA","NA"],,,[,,"NA","NA"],[,,"0\\d{4}|81(?:0(?:0[7-9]|1\\d)|5\\d{2})\\d{3}","\\d{5}(?:\\d{3})?",,,"01234"],1,,[,,"81[23]\\d{5}","\\d{8}",,,"81212345"]],SK:[,[,,"[2-689]\\d{8}","\\d{9}"],[,,"[2-5]\\d{8}","\\d{9}",,,"212345678"],[,,"9(?:0[1-8]|1[0-24-9]|4[0489])\\d{6}","\\d{9}",,,"912123456"],[,,"800\\d{6}","\\d{9}",,,"800123456"],[,,"9(?:[78]\\d{7}|00\\d{6})","\\d{9}",,,"900123456"],[,,"8[5-9]\\d{7}","\\d{9}",,,"850123456"],[,,"NA","NA"],[,,"6(?:5[0-4]|9[0-6])\\d{6}","\\d{9}",,,"690123456"],"SK",421,"00","0",,,"0",,,,[[,"(2)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1","",0],[,"([3-5]\\d)(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1","",0],[,"([689]\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"(?:8(?:00|[5-9]\\d)|9(?:00|[78]\\d))\\d{6}","\\d{9}",,,"800123456"],[,,"96\\d{7}","\\d{9}",,,"961234567"],,,[,,"NA","NA"]],SL:[,[,,"[2-9]\\d{7}","\\d{6,8}"],[,,"[235]2[2-4][2-9]\\d{4}","\\d{6,8}",,,"22221234"],[,,"(?:2[15]|3[03-5]|4[04]|5[05]|66|7[6-9]|88|99)\\d{6}","\\d{6,8}",,,"25123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"SL",232,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{6})","$1 $2",,"(0$1)","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],SM:[,[,,"[05-7]\\d{7,9}","\\d{6,10}"],[,,"0549(?:8[0157-9]|9\\d)\\d{4}","\\d{6,10}",,,"0549886377"],[,,"6[16]\\d{6}","\\d{8}",,,"66661212"],[,,"NA","NA"],[,,"7[178]\\d{6}","\\d{8}",,,"71123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"5[158]\\d{6}","\\d{8}",,,"58001110"],"SM",378,"00",,,,"(?:0549)?([89]\\d{5})","0549$1",,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"],"","",0],[,"(0549)(\\d{6})","$1 $2",["0"],"","",0],[,"(\\d{6})","0549 $1",["[89]"],"","",0]],[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"],"","",0],[,"(0549)(\\d{6})","($1) $2",["0"]],[,"(\\d{6})","(0549) $1",["[89]"]]],[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],1,,[,,"NA","NA"]],SN:[,[,,"[3789]\\d{8}","\\d{9}"],[,,"3(?:0(?:1[0-2]|80)|282|3(?:8[1-9]|9[3-9])|611|90[1-5])\\d{5}","\\d{9}",,,"301012345"],[,,"7(?:[067]\\d|21|8[0-26]|90)\\d{6}","\\d{9}",,,"701234567"],[,,"800\\d{6}","\\d{9}",,,"800123456"],[,,"88[4689]\\d{6}","\\d{9}",,,"884123456"],[,,"81[02468]\\d{6}","\\d{9}",,,"810123456"],[,,"NA","NA"],[,,"3392\\d{5}|93330\\d{4}","\\d{9}",,,"933301234"],"SN",221,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"],"","",0],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],SO:[,[,,"[1-79]\\d{6,8}","\\d{7,9}"],[,,"(?:1\\d|2[0-79]|3[0-46-8]|4[0-7]|59)\\d{5}","\\d{7}",,,"4012345"],[,,"(?:15\\d|2(?:4\\d|8)|6[1-35-9]?\\d{2}|7(?:[1-8]\\d|99?\\d)|907\\d)\\d{5}","\\d{7,9}",,,"71123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"SO",252,"00","0",,,"0",,,,[[,"(\\d)(\\d{6})","$1 $2",["2[0-79]|[13-5]"],"","",0],[,"(\\d)(\\d{7})","$1 $2",["24|[67]"],"","",0],[,"(\\d{2})(\\d{5,7})","$1 $2",["15|28|6[1-35-9]|799"],"","",0],[,"(90\\d)(\\d{3})(\\d{3})","$1 $2 $3",["90"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],SR:[,[,,"[2-8]\\d{5,6}","\\d{6,7}"],[,,"(?:2[1-3]|3[0-7]|4\\d|5[2-58]|68\\d)\\d{4}","\\d{6,7}",,,"211234"],[,,"(?:7[124-7]|8[1-9])\\d{5}","\\d{7}",,,"7412345"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"5(?:6\\d{4}|90[0-4]\\d{3})","\\d{6,7}",,,"561234"],"SR",597,"00",,,,,,,,[[,"(\\d{3})(\\d{3})","$1-$2",["[2-4]|5[2-58]"],"","",0],[,"(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"],"","",0],[,"(\\d{3})(\\d{4})","$1-$2",["59|[6-8]"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],SS:[,[,,"[19]\\d{8}","\\d{9}"],[,,"18\\d{7}","\\d{9}",,,"181234567"],[,,"(?:12|9[1257])\\d{7}","\\d{9}",,,"977123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"SS",211,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",,"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],ST:[,[,,"[29]\\d{6}","\\d{7}"],[,,"22\\d{5}","\\d{7}",,,"2221234"],[,,"9(?:0(?:0[5-9]|[1-9]\\d)|[89]\\d{2})\\d{3}","\\d{7}",,,"9812345"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"ST",239,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],SV:[,[,,"[267]\\d{7}|[89]\\d{6}(?:\\d{4})?","\\d{7,8}|\\d{11}"],[,,"2[1-6]\\d{6}","\\d{8}",,,"21234567"],[,,"[67]\\d{7}","\\d{8}",,,"70123456"],[,,"800\\d{4}(?:\\d{4})?","\\d{7}(?:\\d{4})?",,,"8001234"],[,,"900\\d{4}(?:\\d{4})?","\\d{7}(?:\\d{4})?",,,"9001234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"SV",503,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[267]"],"","",0],[,"(\\d{3})(\\d{4})","$1 $2",["[89]"],"","",0],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],SX:[,[,,"[5789]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"7215(?:4[2-8]|8[239]|9[056])\\d{4}","\\d{7}(?:\\d{3})?",,,"7215425678"],[,,"7215(?:1[02]|2\\d|5[034679]|8[014-8])\\d{4}","\\d{10}",,,"7215205678"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002123456"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002123456"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"SX",1,"011","1",,,"1",,,,,,[,,"NA","NA"],,"721",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],SY:[,[,,"[1-59]\\d{7,8}","\\d{6,9}"],[,,"(?:1(?:1\\d?|4\\d|[2356])|2(?:1\\d?|[235])|3(?:[13]\\d|4)|4[13]|5[1-3])\\d{6}","\\d{6,9}",,,"112345678"],[,,"9(?:22|[35][0-8]|4\\d|6[024-9]|88|9[0-489])\\d{6}","\\d{9}",,,"944567890"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"SY",963,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1","",1],[,"(9\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1","",1]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],SZ:[,[,,"[027]\\d{7}","\\d{8}"],[,,"2[2-5]\\d{6}","\\d{8}",,,"22171234"],[,,"7[6-8]\\d{6}","\\d{8}",,,"76123456"],[,,"0800\\d{4}","\\d{8}",,,"08001234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"SZ",268,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[027]"],"","",0]],,[,,"NA","NA"],,,[,,"0800\\d{4}","\\d{8}",,,"08001234"],[,,"NA","NA"],1,,[,,"NA","NA"]],TA:[,[,,"8\\d{3}","\\d{4}"],[,,"8\\d{3}","\\d{4}",,,"8999"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"TA",290,"00",,,,,,,,,,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],TC:[,[,,"[5689]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"649(?:712|9(?:4\\d|50))\\d{4}","\\d{7}(?:\\d{3})?",,,"6497121234"],[,,"649(?:2(?:3[129]|4[1-7])|3(?:3[1-389]|4[1-7])|4[34][1-3])\\d{4}","\\d{10}",,,"6492311234"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002345678"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002345678"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"64971[01]\\d{4}","\\d{10}",,,"6497101234"],"TC",1,"011","1",,,"1",,,,,,[,,"NA","NA"],,"649",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],TD:[,[,,"[2679]\\d{7}","\\d{8}"],[,,"22(?:[3789]0|5[0-5]|6[89])\\d{4}","\\d{8}",,,"22501234"],[,,"(?:6[02368]\\d|77\\d|9\\d{2})\\d{5}","\\d{8}",,,"63012345"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"TD",235,"00|16",,,,,,"00",,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],TG:[,[,,"[29]\\d{7}","\\d{8}"],[,,"2(?:2[2-7]|3[23]|44|55|66|77)\\d{5}","\\d{8}",,,"22212345"],[,,"9[0-389]\\d{6}","\\d{8}",,,"90112345"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"TG",228,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],TH:[,[,,"[2-9]\\d{7,8}|1\\d{3}(?:\\d{5,6})?","\\d{4}|\\d{8,10}"],[,,"(?:2\\d|3[2-9]|4[2-5]|5[2-6]|7[3-7])\\d{6}","\\d{8}",,,"21234567"],[,,"(?:14|6[1-3]|[89]\\d)\\d{7}","\\d{9}",,,"812345678"],[,,"1800\\d{6}","\\d{10}",,,"1800123456"],[,,"1900\\d{6}","\\d{10}",,,"1900123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"6[08]\\d{7}","\\d{9}",,,"601234567"],"TH",66,"00","0",,,"0",,,,[[,"(2)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1","",0],[,"([13-9]\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["14|[3-9]"],"0$1","",0],[,"(1[89]00)(\\d{3})(\\d{3})","$1 $2 $3",["1"],"$1","",0]],,[,,"NA","NA"],,,[,,"1\\d{3}","\\d{4}",,,"1100"],[,,"1\\d{3}","\\d{4}",,,"1100"],,,[,,"NA","NA"]],TJ:[,[,,"[3-59]\\d{8}","\\d{3,9}"],[,,"(?:3(?:1[3-5]|2[245]|3[12]|4[24-7]|5[25]|72)|4(?:46|74|87))\\d{6}","\\d{3,9}",,,"372123456"],[,,"(?:50[125]|9[0-35-9]\\d)\\d{6}","\\d{9}",,,"917123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"TJ",992,"810","8",,,"8",,"8~10",,[[,"([349]\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[34]7|91[78]"],"(8) $1","",1],[,"([459]\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[48]|5|9(?:1[59]|[0235-9])"],"(8) $1","",1],[,"(331700)(\\d)(\\d{2})","$1 $2 $3",["331","3317","33170","331700"],"(8) $1","",1],[,"(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3[1-5]","3(?:[1245]|3(?:[02-9]|1[0-589]))"],"(8) $1","",1]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],TK:[,[,,"[2-9]\\d{3}","\\d{4}"],[,,"[2-4]\\d{3}","\\d{4}",,,"3010"],[,,"[5-9]\\d{3}","\\d{4}",,,"5190"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"TK",690,"00",,,,,,,,,,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],TL:[,[,,"[2-489]\\d{6}|7\\d{6,7}","\\d{7,8}"],[,,"(?:2[1-5]|3[1-9]|4[1-4])\\d{5}","\\d{7}",,,"2112345"],[,,"7[3-8]\\d{6}","\\d{8}",,,"77212345"],[,,"80\\d{5}","\\d{7}",,,"8012345"],[,,"90\\d{5}","\\d{7}",,,"9012345"],[,,"NA","NA"],[,,"70\\d{5}","\\d{7}",,,"7012345"],[,,"NA","NA"],"TL",670,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-489]"],"","",0],[,"(\\d{4})(\\d{4})","$1 $2",["7"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],TM:[,[,,"[1-6]\\d{7}","\\d{8}"],[,,"(?:1(?:2\\d|3[1-9])|2(?:22|4[0-35-8])|3(?:22|4[03-9])|4(?:22|3[128]|4\\d|6[15])|5(?:22|5[7-9]|6[014-689]))\\d{5}","\\d{8}",,,"12345678"],[,,"6[2-9]\\d{6}","\\d{8}",,,"66123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"TM",993,"810","8",,,"8",,"8~10",,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)","",0],[,"(\\d{2})(\\d{6})","$1 $2",["6"],"8 $1","",0],[,"(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["13|[2-5]"],"(8 $1)","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],TN:[,[,,"[2-57-9]\\d{7}","\\d{8}"],[,,"3[012]\\d{6}|7\\d{7}|81200\\d{3}","\\d{8}",,,"71234567"],[,,"(?:[259]\\d|4[0-24])\\d{6}","\\d{8}",,,"20123456"],[,,"8010\\d{4}","\\d{8}",,,"80101234"],[,,"88\\d{6}","\\d{8}",,,"88123456"],[,,"8[12]10\\d{4}","\\d{8}",,,"81101234"],[,,"NA","NA"],[,,"NA","NA"],"TN",216,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],TO:[,[,,"[02-8]\\d{4,6}","\\d{5,7}"],[,,"(?:2\\d|3[1-8]|4[1-4]|[56]0|7[0149]|8[05])\\d{3}","\\d{5}",,,"20123"],[,,"(?:7[578]|8[47-9])\\d{5}","\\d{7}",,,"7715123"],[,,"0800\\d{3}","\\d{7}",,,"0800222"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"TO",676,"00",,,,,,,,[[,"(\\d{2})(\\d{3})","$1-$2",["[1-6]|7[0-4]|8[05]"],"","",0],[,"(\\d{3})(\\d{4})","$1 $2",["7[5-9]|8[47-9]"],"","",0],[,"(\\d{4})(\\d{3})","$1 $2",["0"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],1,,[,,"NA","NA"]],TR:[,[,,"[2-589]\\d{9}|444\\d{4}","\\d{7,10}"],[,,"(?:2(?:[13][26]|[28][2468]|[45][268]|[67][246])|3(?:[13][28]|[24-6][2468]|[78][02468]|92)|4(?:[16][246]|[23578][2468]|4[26]))\\d{7}","\\d{10}",,,"2123456789"],[,,"5(?:0[1-7]|22|[34]\\d|5[1-59]|9[246])\\d{7}","\\d{10}",,,"5012345678"],[,,"800\\d{7}","\\d{10}",,,"8001234567"],[,,"900\\d{7}","\\d{10}",,,"9001234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"TR",90,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[23]|4(?:[0-35-9]|4[0-35-9])"],"(0$1)","",1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[589]"],"0$1","",1],[,"(444)(\\d{1})(\\d{3})","$1 $2 $3",["444"],"","",0]],,[,,"512\\d{7}","\\d{10}",,,"5123456789"],,,[,,"444\\d{4}","\\d{7}",,,"4441444"],[,,"444\\d{4}|850\\d{7}","\\d{7,10}",,,"4441444"],,,[,,"NA","NA"]],TT:[,[,,"[589]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"868(?:2(?:01|2[1-5]|3[1-5])|6(?:0[79]|1[02-8]|2[1-9]|[3-69]\\d|7[0-79])|82[124])\\d{4}","\\d{7}(?:\\d{3})?",,,"8682211234"],[,,"868(?:2(?:[789]\\d)|3(?:0[1-9]|1[02-9]|[2-9]\\d)|4[6-9]\\d|6(?:20|78|8\\d)|7(?:0[1-9]|1[02-9]|[2-9]\\d))\\d{4}","\\d{10}",,,"8682911234"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002345678"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002345678"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"TT",1,"011","1",,,"1",,,,,,[,,"NA","NA"],,"868",[,,"NA","NA"],[,,"NA","NA"],,,[,,"868619\\d{4}","\\d{10}"]],TV:[,[,,"[29]\\d{4,5}","\\d{5,6}"],[,,"2[02-9]\\d{3}","\\d{5}",,,"20123"],[,,"90\\d{4}","\\d{6}",,,"901234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"TV",688,"00",,,,,,,,,,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],TW:[,[,,"[2-689]\\d{7,8}|7\\d{7,9}","\\d{8,10}"],[,,"[2-8]\\d{7,8}","\\d{8,9}",,,"21234567"],[,,"9\\d{8}","\\d{9}",,,"912345678"],[,,"800\\d{6}","\\d{9}",,,"800123456"],[,,"900\\d{6}","\\d{9}",,,"900123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"70\\d{8}","\\d{10}",,,"7012345678"],"TW",886,"0(?:0[25679]|19)","0","#",,"0",,,,[[,"([2-8])(\\d{3,4})(\\d{4})","$1 $2 $3",["[2-6]|[78][1-9]"],"0$1","",0],[,"([89]\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["80|9"],"0$1","",0],[,"(70)(\\d{4})(\\d{4})","$1 $2 $3",["70"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],TZ:[,[,,"\\d{9}","\\d{7,9}"],[,,"2[2-8]\\d{7}","\\d{7,9}",,,"222345678"],[,,"(?:6[25-8]|7[13-9])\\d{7}","\\d{9}",,,"621234567"],[,,"80[08]\\d{6}","\\d{9}",,,"800123456"],[,,"90\\d{7}","\\d{9}",,,"900123456"],[,,"8(?:40|6[01])\\d{6}","\\d{9}",,,"840123456"],[,,"NA","NA"],[,,"41\\d{7}","\\d{9}",,,"412345678"],"TZ",255,"00[056]","0",,,"0",,,,[[,"([24]\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1","",0],[,"([67]\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1","",0],[,"([89]\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],UA:[,[,,"[3-9]\\d{8}","\\d{5,9}"],[,,"(?:3[1-8]|4[13-8]|5[1-7]|6[12459])\\d{7}","\\d{5,9}",,,"311234567"],[,,"(?:39|50|6[36-8]|73|9[1-9])\\d{7}","\\d{9}",,,"391234567"],[,,"800\\d{6}","\\d{9}",,,"800123456"],[,,"900\\d{6}","\\d{9}",,,"900123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"89\\d{7}","\\d{9}",,,"891234567"],"UA",380,"00","0",,,"0",,"0~0",,[[,"([3-9]\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[38]9|4(?:[45][0-5]|87)|5(?:0|6[37]|7[37])|6[36-8]|73|9[1-9]","[38]9|4(?:[45][0-5]|87)|5(?:0|6(?:3[14-7]|7)|7[37])|6[36-8]|73|9[1-9]"],"0$1","",0],[,"([3-689]\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["3[1-8]2|4[13678]2|5(?:[12457]2|6[24])|6(?:[49]2|[12][29]|5[24])|8[0-8]|90","3(?:[1-46-8]2[013-9]|52)|4(?:[1378]2|62[013-9])|5(?:[12457]2|6[24])|6(?:[49]2|[12][29]|5[24])|8[0-8]|90"],"0$1","",0],[,"([3-6]\\d{3})(\\d{5})","$1 $2",["3(?:5[013-9]|[1-46-8])|4(?:[137][013-9]|6|[45][6-9]|8[4-6])|5(?:[1245][013-9]|6[0135-9]|3|7[4-6])|6(?:[49][013-9]|5[0135-9]|[12][13-8])","3(?:5[013-9]|[1-46-8](?:22|[013-9]))|4(?:[137][013-9]|6(?:[013-9]|22)|[45][6-9]|8[4-6])|5(?:[1245][013-9]|6(?:3[02389]|[015689])|3|7[4-6])|6(?:[49][013-9]|5[0135-9]|[12][13-8])"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],UG:[,[,,"\\d{9}","\\d{5,9}"],[,,"20(?:[0147]\\d{2}|2(?:40|[5-9]\\d)|3[23]\\d|5[0-4]\\d|6[03]\\d|8[0-2]\\d)\\d{4}|[34]\\d{8}","\\d{5,9}",,,"312345678"],[,,"2030\\d{5}|7(?:0[0-7]|[15789]\\d|2[03]|30|[46][0-4])\\d{6}","\\d{9}",,,"712345678"],[,,"800[123]\\d{5}","\\d{9}",,,"800123456"],[,,"90[123]\\d{6}","\\d{9}",,,"901123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"UG",256,"00[057]","0",,,"0",,,,[[,"(\\d{3})(\\d{6})","$1 $2",["[7-9]|20(?:[013-8]|2[5-9])|4(?:6[45]|[7-9])"],"0$1","",0],[,"(\\d{2})(\\d{7})","$1 $2",["3|4(?:[1-5]|6[0-36-9])"],"0$1","",0],[,"(2024)(\\d{5})","$1 $2",["2024"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],US:[,[,,"[2-9]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"(?:2(?:0[1-35-9]|1[02-9]|2[04589]|3[149]|4[08]|5[1-46]|6[0279]|7[026]|8[13])|3(?:0[1-57-9]|1[02-9]|2[0135]|3[014679]|4[67]|5[12]|6[014]|8[56])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[0235]|58|69|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[19]|6[1-37]|7[013-5]|8[056])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[16]|5[017]|6[0-279]|78|8[12])|7(?:0[1-46-8]|1[02-9]|2[0457]|3[1247]|4[07]|5[47]|6[02359]|7[02-59]|8[156])|8(?:0[1-68]|1[02-8]|28|3[0-25]|4[3578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[01678]|4[0179]|5[12469]|7[0-3589]|8[0459]))[2-9]\\d{6}","\\d{7}(?:\\d{3})?",,,"2015555555"],[,,"(?:2(?:0[1-35-9]|1[02-9]|2[04589]|3[149]|4[08]|5[1-46]|6[0279]|7[026]|8[13])|3(?:0[1-57-9]|1[02-9]|2[0135]|3[014679]|4[67]|5[12]|6[014]|8[56])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[0235]|58|69|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[19]|6[1-37]|7[013-5]|8[056])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[16]|5[017]|6[0-279]|78|8[12])|7(?:0[1-46-8]|1[02-9]|2[0457]|3[1247]|4[07]|5[47]|6[02359]|7[02-59]|8[156])|8(?:0[1-68]|1[02-8]|28|3[0-25]|4[3578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[01678]|4[0179]|5[12469]|7[0-3589]|8[0459]))[2-9]\\d{6}","\\d{7}(?:\\d{3})?",,,"2015555555"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002345678"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002345678"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"US",1,"011","1",,,"1",,,1,[[,"(\\d{3})(\\d{4})","$1-$2",,"","",1],[,"(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",,"","",1]],[[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3"]],[,,"NA","NA"],1,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],UY:[,[,,"[2489]\\d{6,7}","\\d{7,8}"],[,,"2\\d{7}|4[2-7]\\d{6}","\\d{7,8}",,,"21231234"],[,,"9[1-9]\\d{6}","\\d{8}",,,"94231234"],[,,"80[05]\\d{4}","\\d{7}",,,"8001234"],[,,"90[0-8]\\d{4}","\\d{7}",,,"9001234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"UY",598,"0(?:1[3-9]\\d|0)","0"," int. ",,"0",,"00",,[[,"(\\d{4})(\\d{4})","$1 $2",["[24]"],"","",0],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9[1-9]"],"0$1","",0],[,"(\\d{3})(\\d{4})","$1 $2",["[89]0"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],UZ:[,[,,"[679]\\d{8}","\\d{7,9}"],[,,"(?:6(?:1(?:22|3[124]|4[1-4]|5[123578]|64)|2(?:22|3[0-57-9]|41)|5(?:22|3[3-7]|5[024-8])|6\\d{2}|7(?:[23]\\d|7[69])|9(?:22|4[1-8]|6[135]))|7(?:0(?:5[4-9]|6[0146]|7[12456]|9[135-8])|1[12]\\d|2(?:22|3[1345789]|4[123579]|5[14])|3(?:2\\d|3[1578]|4[1-35-7]|5[1-57]|61)|4(?:2\\d|3[1-579]|7[1-79])|5(?:22|5[1-9]|6[1457])|6(?:22|3[12457]|4[13-8])|9(?:22|5[1-9])))\\d{5}","\\d{7,9}",,,"662345678"],[,,"6(?:1(?:2(?:98|2[01])|35[0-4]|50\\d|61[23]|7(?:[01][017]|4\\d|55|9[5-9]))|2(?:11\\d|2(?:[12]1|9[01379])|5(?:[126]\\d|3[0-4])|7\\d{2})|5(?:19[01]|2(?:27|9[26])|30\\d|59\\d|7\\d{2})|6(?:2(?:1[5-9]|2[0367]|38|41|52|60)|3[79]\\d|4(?:56|83)|7(?:[07]\\d|1[017]|3[07]|4[047]|5[057]|67|8[0178]|9[79])|9[0-3]\\d)|7(?:2(?:24|3[237]|4[5-9]|7[15-8])|5(?:7[12]|8[0589])|7(?:0\\d|[39][07])|9(?:0\\d|7[079]))|9(?:2(?:1[1267]|5\\d|3[01]|7[0-4])|5[67]\\d|6(?:2[0-26]|8\\d)|7\\d{2}))\\d{4}|7(?:0\\d{3}|1(?:13[01]|6(?:0[47]|1[67]|66)|71[3-69]|98\\d)|2(?:2(?:2[79]|95)|3(?:2[5-9]|6[0-6])|57\\d|7(?:0\\d|1[17]|2[27]|3[37]|44|5[057]|66|88))|3(?:2(?:1[0-6]|21|3[469]|7[159])|33\\d|5(?:0[0-4]|5[579]|9\\d)|7(?:[0-3579]\\d|4[0467]|6[67]|8[078])|9[4-6]\\d)|4(?:2(?:29|5[0257]|6[0-7]|7[1-57])|5(?:1[0-4]|8\\d|9[5-9])|7(?:0\\d|1[024589]|2[0127]|3[0137]|[46][07]|5[01]|7[5-9]|9[079])|9(?:7[015-9]|[89]\\d))|5(?:112|2(?:0\\d|2[29]|[49]4)|3[1568]\\d|52[6-9]|7(?:0[01578]|1[017]|[23]7|4[047]|[5-7]\\d|8[78]|9[079]))|6(?:2(?:2[1245]|4[2-4])|39\\d|41[179]|5(?:[349]\\d|5[0-2])|7(?:0[017]|[13]\\d|22|44|55|67|88))|9(?:22[128]|3(?:2[0-4]|7\\d)|57[05629]|7(?:2[05-9]|3[37]|4\\d|60|7[2579]|87|9[07])))\\d{4}|9[0-57-9]\\d{7}","\\d{7,9}",,,"912345678"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"UZ",998,"810","8",,,"8",,"8~10",,[[,"([679]\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",,"8 $1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],VA:[,[,,"(?:0(?:878\\d{5}|6698\\d{5})|[1589]\\d{5,10}|3(?:[12457-9]\\d{8}|[36]\\d{7,9}))","\\d{6,11}"],[,,"06698\\d{5}","\\d{10}",,,"0669812345"],[,,"3(?:[12457-9]\\d{8}|6\\d{7,8}|3\\d{7,9})","\\d{9,11}",,,"3123456789"],[,,"80(?:0\\d{6}|3\\d{3})","\\d{6,9}",,,"800123456"],[,,"0878\\d{5}|1(?:44|6[346])\\d{6}|89(?:2\\d{3}|4(?:[0-4]\\d{2}|[5-9]\\d{4})|5(?:[0-4]\\d{2}|[5-9]\\d{6})|9\\d{6})","\\d{6,10}",,,"899123456"],[,,"84(?:[08]\\d{6}|[17]\\d{3})","\\d{6,9}",,,"848123456"],[,,"1(?:78\\d|99)\\d{6}","\\d{9,10}",,,"1781234567"],[,,"55\\d{8}","\\d{10}",,,"5512345678"],"VA",39,"00",,,,,,,,,,[,,"NA","NA"],,,[,,"848\\d{6}","\\d{9}",,,"848123456"],[,,"NA","NA"],1,,[,,"NA","NA"]],VC:[,[,,"[5789]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"784(?:266|3(?:6[6-9]|7\\d|8[0-24-6])|4(?:38|5[0-36-8]|8[0-8])|5(?:55|7[0-2]|93)|638|784)\\d{4}","\\d{7}(?:\\d{3})?",,,"7842661234"],[,,"784(?:4(?:3[0-4]|5[45]|89|9[0-5])|5(?:2[6-9]|3[0-4]))\\d{4}","\\d{10}",,,"7844301234"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002345678"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002345678"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"VC",1,"011","1",,,"1",,,,,,[,,"NA","NA"],,"784",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],VE:[,[,,"[24589]\\d{9}","\\d{7,10}"],[,,"(?:2(?:12|3[457-9]|[58][1-9]|[467]\\d|9[1-6])|50[01])\\d{7}","\\d{7,10}",,,"2121234567"],[,,"4(?:1[24-8]|2[46])\\d{7}","\\d{10}",,,"4121234567"],[,,"800\\d{7}","\\d{10}",,,"8001234567"],[,,"900\\d{7}","\\d{10}",,,"9001234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"VE",58,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{7})","$1-$2",,"0$1","$CC $1",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],VG:[,[,,"[2589]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"284(?:(?:229|4(?:22|9[45])|774|8(?:52|6[459]))\\d{4}|496[0-5]\\d{3})","\\d{7}(?:\\d{3})?",,,"2842291234"],[,,"284(?:(?:3(?:0[0-3]|4[0-367])|4(?:4[0-6]|68|99)|54[0-57])\\d{4}|496[6-9]\\d{3})","\\d{10}",,,"2843001234"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002345678"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002345678"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"VG",1,"011","1",,,"1",,,,,,[,,"NA","NA"],,"284",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],VI:[,[,,"[3589]\\d{9}","\\d{7}(?:\\d{3})?"],[,,"340(?:2(?:01|2[0678]|44|77)|3(?:32|44)|4(?:22|7[34])|5(?:1[34]|55)|6(?:26|4[23]|77|9[023])|7(?:1[2-589]|27|7\\d)|884|998)\\d{4}","\\d{7}(?:\\d{3})?",,,"3406421234"],[,,"340(?:2(?:01|2[0678]|44|77)|3(?:32|44)|4(?:22|7[34])|5(?:1[34]|55)|6(?:26|4[23]|77|9[023])|7(?:1[2-589]|27|7\\d)|884|998)\\d{4}","\\d{7}(?:\\d{3})?",,,"3406421234"],[,,"8(?:00|44|55|66|77|88)[2-9]\\d{6}","\\d{10}",,,"8002345678"],[,,"900[2-9]\\d{6}","\\d{10}",,,"9002345678"],[,,"NA","NA"],[,,"5(?:00|33|44|66|77)[2-9]\\d{6}","\\d{10}",,,"5002345678"],[,,"NA","NA"],"VI",1,"011","1",,,"1",,,1,,,[,,"NA","NA"],,"340",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],VN:[,[,,"[17]\\d{6,9}|[2-69]\\d{7,9}|8\\d{6,8}","\\d{7,10}"],[,,"(?:2(?:[025-79]|1[0189]|[348][01])|3(?:[0136-9]|[25][01])|4\\d|5(?:[01][01]|[2-9])|6(?:[0-46-8]|5[01])|7(?:[02-79]|[18][01])|8[1-9])\\d{7}","\\d{9,10}",,,"2101234567"],[,,"(?:9\\d|1(?:2\\d|6[2-9]|8[68]|99))\\d{7}","\\d{9,10}",,,"912345678"],[,,"1800\\d{4,6}","\\d{8,10}",,,"1800123456"],[,,"1900\\d{4,6}","\\d{8,10}",,,"1900123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"VN",84,"00","0",,,"0",,,,[[,"([17]99)(\\d{4})","$1 $2",["[17]99"],"0$1","",1],[,"([48])(\\d{4})(\\d{4})","$1 $2 $3",["[48]"],"0$1","",1],[,"([235-7]\\d)(\\d{4})(\\d{3})","$1 $2 $3",["2[025-79]|3[0136-9]|5[2-9]|6[0-46-8]|7[02-79]"],"0$1","",1],[,"(80)(\\d{5})","$1 $2",["80"],"0$1","",1],[,"(69\\d)(\\d{4,5})","$1 $2",["69"],"0$1","",1],[,"([235-7]\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["2[1348]|3[25]|5[01]|65|7[18]"],"0$1","",1],[,"(9\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1","",1],[,"(1[2689]\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1(?:[26]|8[68]|99)"],"0$1","",1],[,"(1[89]00)(\\d{4,6})","$1 $2",["1[89]0"],"$1","",1]],,[,,"NA","NA"],,,[,,"[17]99\\d{4}|69\\d{5,6}","\\d{7,8}",,,"1992000"],[,,"[17]99\\d{4}|69\\d{5,6}|80\\d{5}","\\d{7,8}",,,"1992000"],,,[,,"NA","NA"]],VU:[,[,,"[2-57-9]\\d{4,6}","\\d{5,7}"],[,,"(?:2[02-9]\\d|3(?:[5-7]\\d|8[0-8])|48[4-9]|88\\d)\\d{2}","\\d{5}",,,"22123"],[,,"(?:5(?:7[2-5]|[0-689]\\d)|7[013-7]\\d)\\d{4}","\\d{7}",,,"5912345"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"VU",678,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[579]"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"3[03]\\d{3}|900\\d{4}","\\d{5,7}",,,"30123"],,,[,,"NA","NA"]],WF:[,[,,"[5-7]\\d{5}","\\d{6}"],[,,"(?:50|68|72)\\d{4}","\\d{6}",,,"501234"],[,,"(?:50|68|72)\\d{4}","\\d{6}",,,"501234"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"WF",681,"00",,,,,,,1,[[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],WS:[,[,,"[2-8]\\d{4,6}","\\d{5,7}"],[,,"(?:[2-5]\\d|6[1-9]|84\\d{2})\\d{3}","\\d{5,7}",,,"22123"],[,,"(?:60|7[25-7]\\d)\\d{4}","\\d{6,7}",,,"601234"],[,,"800\\d{3}","\\d{6}",,,"800123"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"WS",685,"0",,,,,,,,[[,"(8\\d{2})(\\d{3,4})","$1 $2",["8"],"","",0],[,"(7\\d)(\\d{5})","$1 $2",["7"],"","",0],[,"(\\d{5})","$1",["[2-6]"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],YE:[,[,,"[1-7]\\d{6,8}","\\d{6,9}"],[,,"(?:1(?:7\\d|[2-68])|2[2-68]|3[2358]|4[2-58]|5[2-6]|6[3-58]|7[24-68])\\d{5}","\\d{6,8}",,,"1234567"],[,,"7[0137]\\d{7}","\\d{9}",,,"712345678"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"YE",967,"00","0",,,"0",,,,[[,"([1-7])(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7[24-68]"],"0$1","",0],[,"(7\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["7[0137]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],YT:[,[,,"[268]\\d{8}","\\d{9}"],[,,"269(?:6[0-4]|50)\\d{4}","\\d{9}",,,"269601234"],[,,"639\\d{6}","\\d{9}",,,"639123456"],[,,"80\\d{7}","\\d{9}",,,"801234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"YT",262,"00","0",,,"0",,,,,,[,,"NA","NA"],,"269|63",[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],ZA:[,[,,"[1-79]\\d{8}|8(?:[067]\\d{7}|[1-4]\\d{3,7})","\\d{5,9}"],[,,"(?:1[0-8]|2[0-378]|3[1-69]|4\\d|5[1346-8])\\d{7}","\\d{9}",,,"101234567"],[,,"(?:6[0-5]|7[0-46-9])\\d{7}|8[1-4]\\d{3,7}","\\d{5,9}",,,"711234567"],[,,"80\\d{7}","\\d{9}",,,"801234567"],[,,"86[2-9]\\d{6}|90\\d{7}","\\d{9}",,,"862345678"],[,,"860\\d{6}","\\d{9}",,,"860123456"],[,,"NA","NA"],[,,"87\\d{7}","\\d{9}",,,"871234567"],"ZA",27,"00","0",,,"0",,,,[[,"(860)(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-79]|8(?:[0-47]|6[1-9])"],"0$1","",0],[,"(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1","",0],[,"(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"861\\d{6}","\\d{9}",,,"861123456"],,,[,,"NA","NA"]],ZM:[,[,,"[289]\\d{8}","\\d{9}"],[,,"21[1-8]\\d{6}","\\d{9}",,,"211234567"],[,,"9(?:5[05]|6\\d|7[1-9])\\d{6}","\\d{9}",,,"955123456"],[,,"800\\d{6}","\\d{9}",,,"800123456"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"ZM",260,"00","0",,,"0",,,,[[,"([29]\\d)(\\d{7})","$1 $2",["[29]"],"0$1","",0],[,"(800)(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],ZW:[,[,,"2(?:[012457-9]\\d{3,8}|6(?:[14]\\d{7}|\\d{4}))|[13-79]\\d{4,9}|8[06]\\d{8}","\\d{3,10}"],[,,"(?:2(?:0(?:4\\d|5\\d{2})|2[278]\\d|48\\d|7(?:[1-7]\\d|[089]\\d{2})|8(?:[2-57-9]|[146]\\d{2})|98)|3(?:08|17|3[78]|7(?:[19]|[56]\\d)|8[37]|98)|5[15][78]|6(?:28\\d{2}|[36]7|75\\d|[69]8|8(?:7\\d|8)))\\d{3}|(?:2(?:1[39]|2[0157]|6[14]|7[35]|84)|329)\\d{7}|(?:1(?:3\\d{2}|9\\d|[4-8])|2(?:0\\d{2}|[569]\\d)|3(?:[26]|[013459]\\d)|5(?:0|5\\d{2}|[689]\\d)|6(?:[39]|[01246]\\d|[78]\\d{2}))\\d{3}|(?:29\\d|39|54)\\d{6}|(?:(?:25|54)83|2582\\d)\\d{3}|(?:4\\d{6,7}|9[2-9]\\d{4,5})","\\d{3,10}",,,"1312345"],[,,"7[1378]\\d{7}","\\d{9}",,,"711234567"],[,,"800\\d{7}","\\d{10}",,,"8001234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"86(?:1[12]|30|44|55|77|8[367]|99)\\d{6}","\\d{10}",,,"8686123456"],"ZW",263,"00","0",,,"0",,,,[[,"([49])(\\d{3})(\\d{2,4})","$1 $2 $3",["4|9[2-9]"],"0$1","",0],[,"(7\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["7"],"0$1","",0],[,"(86\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["86[24]"],"0$1","",0],[,"([2356]\\d{2})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8|[78])|3(?:08|17|3[78]|7[1569]|8[37]|98)|5[15][78]|6(?:[29]8|[38]7|6[78]|75|[89]8)"],"0$1","",0],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|6[14]|7[35]|84)|329"],"0$1","",0],[,"([1-356]\\d)(\\d{3,5})","$1 $2",["1[3-9]|2[0569]|3[0-69]|5[05689]|6[0-46-9]"],"0$1","",0],[,"([235]\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[23]9|54"],"0$1","",0],[,"([25]\\d{3})(\\d{3,5})","$1 $2",["(?:25|54)8","258[23]|5483"],"0$1","",0],[,"(8\\d{3})(\\d{6})","$1 $2",["86"],"0$1","",0],[,"(80\\d)(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],800:[,[,,"\\d{8}","\\d{8}",,,"12345678"],[,,"NA","NA",,,"12345678"],[,,"NA","NA",,,"12345678"],[,,"\\d{8}","\\d{8}",,,"12345678"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"001",800,"",,,,,,,1,[[,"(\\d{4})(\\d{4})","$1 $2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],1,,[,,"NA","NA"]],808:[,[,,"\\d{8}","\\d{8}",,,"12345678"],[,,"NA","NA",,,"12345678"],[,,"NA","NA",,,"12345678"],[,,"NA","NA"],[,,"NA","NA"],[,,"\\d{8}","\\d{8}",,,"12345678"],[,,"NA","NA"],[,,"NA","NA"],"001",808,"",,,,,,,1,[[,"(\\d{4})(\\d{4})","$1 $2",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],1,,[,,"NA","NA"]],870:[,[,,"[35-7]\\d{8}","\\d{9}",,,"301234567"],[,,"NA","NA",,,"301234567"],[,,"(?:[356]\\d|7[6-8])\\d{7}","\\d{9}",,,"301234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"001",870,"",,,,,,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],878:[,[,,"1\\d{11}","\\d{12}",,,"101234567890"],[,,"NA","NA",,,"101234567890"],[,,"NA","NA",,,"101234567890"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"10\\d{10}","\\d{12}",,,"101234567890"],"001",878,"",,,,,,,1,[[,"(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],881:[,[,,"[67]\\d{8}","\\d{9}",,,"612345678"],[,,"NA","NA",,,"612345678"],[,,"[67]\\d{8}","\\d{9}",,,"612345678"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"001",881,"",,,,,,,,[[,"(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[67]"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],882:[,[,,"[13]\\d{6,11}","\\d{7,12}",,,"3451234567"],[,,"NA","NA",,,"3451234567"],[,,"3(?:2\\d{3}|37\\d{2}|4(?:2|7\\d{3}))\\d{4}","\\d{7,10}",,,"3451234567"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15678]|9[0689])\\d{4}|6\\d{5,10})|345\\d{7}","\\d{7,12}",,,"3451234567"],"001",882,"",,,,,,,,[[,"(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"],"","",0],[,"(\\d{2})(\\d{5})","$1 $2",["16|342"],"","",0],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["34[57]"],"","",0],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["348"],"","",0],[,"(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1"],"","",0],[,"(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"],"","",0],[,"(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["16"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"348[57]\\d{7}","\\d{11}",,,"3451234567"]],883:[,[,,"51\\d{7}(?:\\d{3})?","\\d{9}(?:\\d{3})?",,,"510012345"],[,,"NA","NA",,,"510012345"],[,,"NA","NA",,,"510012345"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"51(?:00\\d{5}(?:\\d{3})?|[13]0\\d{8})","\\d{9}(?:\\d{3})?",,,"510012345"],"001",883,"",,,,,,,1,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"],"","",0],[,"(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["510"],"","",0],[,"(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"],"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],,,[,,"NA","NA"]],888:[,[,,"\\d{11}","\\d{11}",,,"12345678901"],[,,"NA","NA",,,"12345678901"],[,,"NA","NA",,,"12345678901"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"001",888,"",,,,,,,1,[[,"(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"\\d{11}","\\d{11}",,,"12345678901"],1,,[,,"NA","NA"]],979:[,[,,"\\d{9}","\\d{9}",,,"123456789"],[,,"NA","NA",,,"123456789"],[,,"NA","NA",,,"123456789"],[,,"NA","NA"],[,,"\\d{9}","\\d{9}",,,"123456789"],[,,"NA","NA"],[,,"NA","NA"],[,,"NA","NA"],"001",979,"",,,,,,,1,[[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",,"","",0]],,[,,"NA","NA"],,,[,,"NA","NA"],[,,"NA","NA"],1,,[,,"NA","NA"]]},i18n.phonenumbers.PhoneNumber=function(){goog.proto2.Message.call(this)},goog.inherits(i18n.phonenumbers.PhoneNumber,goog.proto2.Message),i18n.phonenumbers.PhoneNumber.prototype.getCountryCode=function(){return this.get$Value(1)},i18n.phonenumbers.PhoneNumber.prototype.getCountryCodeOrDefault=function(){return this.get$ValueOrDefault(1)},i18n.phonenumbers.PhoneNumber.prototype.setCountryCode=function(n){this.set$Value(1,n)},i18n.phonenumbers.PhoneNumber.prototype.hasCountryCode=function(){return this.has$Value(1)},i18n.phonenumbers.PhoneNumber.prototype.countryCodeCount=function(){return this.count$Values(1)},i18n.phonenumbers.PhoneNumber.prototype.clearCountryCode=function(){this.clear$Field(1)},i18n.phonenumbers.PhoneNumber.prototype.getNationalNumber=function(){return this.get$Value(2)},i18n.phonenumbers.PhoneNumber.prototype.getNationalNumberOrDefault=function(){return this.get$ValueOrDefault(2)},i18n.phonenumbers.PhoneNumber.prototype.setNationalNumber=function(n){this.set$Value(2,n)},i18n.phonenumbers.PhoneNumber.prototype.hasNationalNumber=function(){return this.has$Value(2)},i18n.phonenumbers.PhoneNumber.prototype.nationalNumberCount=function(){return this.count$Values(2)},i18n.phonenumbers.PhoneNumber.prototype.clearNationalNumber=function(){this.clear$Field(2)},i18n.phonenumbers.PhoneNumber.prototype.getExtension=function(){return this.get$Value(3)},i18n.phonenumbers.PhoneNumber.prototype.getExtensionOrDefault=function(){return this.get$ValueOrDefault(3)},i18n.phonenumbers.PhoneNumber.prototype.setExtension=function(n){this.set$Value(3,n)},i18n.phonenumbers.PhoneNumber.prototype.hasExtension=function(){return this.has$Value(3)},i18n.phonenumbers.PhoneNumber.prototype.extensionCount=function(){return this.count$Values(3)},i18n.phonenumbers.PhoneNumber.prototype.clearExtension=function(){this.clear$Field(3)},i18n.phonenumbers.PhoneNumber.prototype.getItalianLeadingZero=function(){return this.get$Value(4)},i18n.phonenumbers.PhoneNumber.prototype.getItalianLeadingZeroOrDefault=function(){return this.get$ValueOrDefault(4)},i18n.phonenumbers.PhoneNumber.prototype.setItalianLeadingZero=function(n){this.set$Value(4,n)},i18n.phonenumbers.PhoneNumber.prototype.hasItalianLeadingZero=function(){return this.has$Value(4)},i18n.phonenumbers.PhoneNumber.prototype.italianLeadingZeroCount=function(){return this.count$Values(4)},i18n.phonenumbers.PhoneNumber.prototype.clearItalianLeadingZero=function(){this.clear$Field(4)},i18n.phonenumbers.PhoneNumber.prototype.getNumberOfLeadingZeros=function(){return this.get$Value(8)},i18n.phonenumbers.PhoneNumber.prototype.getNumberOfLeadingZerosOrDefault=function(){return this.get$ValueOrDefault(8)},i18n.phonenumbers.PhoneNumber.prototype.setNumberOfLeadingZeros=function(n){this.set$Value(8,n)},i18n.phonenumbers.PhoneNumber.prototype.hasNumberOfLeadingZeros=function(){return this.has$Value(8)},i18n.phonenumbers.PhoneNumber.prototype.numberOfLeadingZerosCount=function(){return this.count$Values(8)},i18n.phonenumbers.PhoneNumber.prototype.clearNumberOfLeadingZeros=function(){this.clear$Field(8)},i18n.phonenumbers.PhoneNumber.prototype.getRawInput=function(){return this.get$Value(5)},i18n.phonenumbers.PhoneNumber.prototype.getRawInputOrDefault=function(){return this.get$ValueOrDefault(5)},i18n.phonenumbers.PhoneNumber.prototype.setRawInput=function(n){this.set$Value(5,n)},i18n.phonenumbers.PhoneNumber.prototype.hasRawInput=function(){return this.has$Value(5)},i18n.phonenumbers.PhoneNumber.prototype.rawInputCount=function(){return this.count$Values(5)},i18n.phonenumbers.PhoneNumber.prototype.clearRawInput=function(){this.clear$Field(5)},i18n.phonenumbers.PhoneNumber.prototype.getCountryCodeSource=function(){return this.get$Value(6)},i18n.phonenumbers.PhoneNumber.prototype.getCountryCodeSourceOrDefault=function(){return this.get$ValueOrDefault(6)},i18n.phonenumbers.PhoneNumber.prototype.setCountryCodeSource=function(n){this.set$Value(6,n)},i18n.phonenumbers.PhoneNumber.prototype.hasCountryCodeSource=function(){return this.has$Value(6)},i18n.phonenumbers.PhoneNumber.prototype.countryCodeSourceCount=function(){return this.count$Values(6)},i18n.phonenumbers.PhoneNumber.prototype.clearCountryCodeSource=function(){this.clear$Field(6)},i18n.phonenumbers.PhoneNumber.prototype.getPreferredDomesticCarrierCode=function(){return this.get$Value(7)},i18n.phonenumbers.PhoneNumber.prototype.getPreferredDomesticCarrierCodeOrDefault=function(){return this.get$ValueOrDefault(7)},i18n.phonenumbers.PhoneNumber.prototype.setPreferredDomesticCarrierCode=function(n){this.set$Value(7,n)},i18n.phonenumbers.PhoneNumber.prototype.hasPreferredDomesticCarrierCode=function(){return this.has$Value(7)},i18n.phonenumbers.PhoneNumber.prototype.preferredDomesticCarrierCodeCount=function(){return this.count$Values(7)},i18n.phonenumbers.PhoneNumber.prototype.clearPreferredDomesticCarrierCode=function(){this.clear$Field(7)},i18n.phonenumbers.PhoneNumber.CountryCodeSource={FROM_NUMBER_WITH_PLUS_SIGN:1,FROM_NUMBER_WITH_IDD:5,FROM_NUMBER_WITHOUT_PLUS_SIGN:10,FROM_DEFAULT_COUNTRY:20},i18n.phonenumbers.PhoneNumber.prototype.getDescriptor=function(){return i18n.phonenumbers.PhoneNumber.descriptor_||(i18n.phonenumbers.PhoneNumber.descriptor_=goog.proto2.Message.createDescriptor(i18n.phonenumbers.PhoneNumber,{0:{name:"PhoneNumber",fullName:"i18n.phonenumbers.PhoneNumber"},1:{name:"country_code",required:!0,fieldType:goog.proto2.Message.FieldType.INT32,type:Number},2:{name:"national_number",required:!0,fieldType:goog.proto2.Message.FieldType.UINT64,type:Number},3:{name:"extension",fieldType:goog.proto2.Message.FieldType.STRING,type:String},4:{name:"italian_leading_zero",fieldType:goog.proto2.Message.FieldType.BOOL,type:Boolean},8:{name:"number_of_leading_zeros",fieldType:goog.proto2.Message.FieldType.INT32,defaultValue:1,type:Number},5:{name:"raw_input",fieldType:goog.proto2.Message.FieldType.STRING,type:String},6:{name:"country_code_source",fieldType:goog.proto2.Message.FieldType.ENUM,defaultValue:i18n.phonenumbers.PhoneNumber.CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN,type:i18n.phonenumbers.PhoneNumber.CountryCodeSource},7:{name:"preferred_domestic_carrier_code",fieldType:goog.proto2.Message.FieldType.STRING,type:String}})),i18n.phonenumbers.PhoneNumber.descriptor_},i18n.phonenumbers.PhoneNumber.ctor=i18n.phonenumbers.PhoneNumber,i18n.phonenumbers.PhoneNumber.ctor.getDescriptor=i18n.phonenumbers.PhoneNumber.prototype.getDescriptor,i18n.phonenumbers.PhoneNumberUtil=function(){this.regionToMetadataMap={}},goog.addSingletonGetter(i18n.phonenumbers.PhoneNumberUtil),i18n.phonenumbers.Error={INVALID_COUNTRY_CODE:"Invalid country calling code",NOT_A_NUMBER:"The string supplied did not seem to be a phone number",TOO_SHORT_AFTER_IDD:"Phone number too short after IDD",TOO_SHORT_NSN:"The string supplied is too short to be a phone number",TOO_LONG:"The string supplied is too long to be a phone number"},i18n.phonenumbers.PhoneNumberUtil.NANPA_COUNTRY_CODE_=1,i18n.phonenumbers.PhoneNumberUtil.MIN_LENGTH_FOR_NSN_=2,i18n.phonenumbers.PhoneNumberUtil.MAX_LENGTH_FOR_NSN_=17,i18n.phonenumbers.PhoneNumberUtil.MAX_LENGTH_COUNTRY_CODE_=3,i18n.phonenumbers.PhoneNumberUtil.MAX_INPUT_STRING_LENGTH_=250,i18n.phonenumbers.PhoneNumberUtil.UNKNOWN_REGION_="ZZ",i18n.phonenumbers.PhoneNumberUtil.COLOMBIA_MOBILE_TO_FIXED_LINE_PREFIX_="3",i18n.phonenumbers.PhoneNumberUtil.MOBILE_TOKEN_MAPPINGS_={52:"1",54:"9"},i18n.phonenumbers.PhoneNumberUtil.PLUS_SIGN="+",i18n.phonenumbers.PhoneNumberUtil.STAR_SIGN_="*",i18n.phonenumbers.PhoneNumberUtil.RFC3966_EXTN_PREFIX_=";ext=",i18n.phonenumbers.PhoneNumberUtil.RFC3966_PREFIX_="tel:",i18n.phonenumbers.PhoneNumberUtil.RFC3966_PHONE_CONTEXT_=";phone-context=",i18n.phonenumbers.PhoneNumberUtil.RFC3966_ISDN_SUBADDRESS_=";isub=",i18n.phonenumbers.PhoneNumberUtil.DIGIT_MAPPINGS={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","０":"0","１":"1","２":"2","３":"3","４":"4","５":"5","６":"6","７":"7","８":"8","９":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"},i18n.phonenumbers.PhoneNumberUtil.DIALLABLE_CHAR_MAPPINGS_={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","+":i18n.phonenumbers.PhoneNumberUtil.PLUS_SIGN,"*":"*"},i18n.phonenumbers.PhoneNumberUtil.ALPHA_MAPPINGS_={A:"2",B:"2",C:"2",D:"3",E:"3",F:"3",G:"4",H:"4",I:"4",J:"5",K:"5",L:"5",M:"6",N:"6",O:"6",P:"7",Q:"7",R:"7",S:"7",T:"8",U:"8",V:"8",W:"9",X:"9",Y:"9",Z:"9"},i18n.phonenumbers.PhoneNumberUtil.ALL_NORMALIZATION_MAPPINGS_={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","０":"0","１":"1","２":"2","３":"3","４":"4","５":"5","６":"6","７":"7","８":"8","９":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9",A:"2",B:"2",C:"2",D:"3",E:"3",F:"3",G:"4",H:"4",I:"4",J:"5",K:"5",L:"5",M:"6",N:"6",O:"6",P:"7",Q:"7",R:"7",S:"7",T:"8",U:"8",V:"8",W:"9",X:"9",Y:"9",Z:"9"},i18n.phonenumbers.PhoneNumberUtil.ALL_PLUS_NUMBER_GROUPING_SYMBOLS_={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",A:"A",B:"B",C:"C",D:"D",E:"E",F:"F",G:"G",H:"H",I:"I",J:"J",K:"K",L:"L",M:"M",N:"N",O:"O",P:"P",Q:"Q",R:"R",S:"S",T:"T",U:"U",V:"V",W:"W",X:"X",Y:"Y",Z:"Z",a:"A",b:"B",c:"C",d:"D",e:"E",f:"F",g:"G",h:"H",i:"I",j:"J",k:"K",l:"L",m:"M",n:"N",o:"O",p:"P",q:"Q",r:"R",s:"S",t:"T",u:"U",v:"V",w:"W",x:"X",y:"Y",z:"Z","-":"-","－":"-","‐":"-","‑":"-","‒":"-","–":"-","—":"-","―":"-","−":"-","/":"/","／":"/"," ":" ","　":" ","⁠":" ",".":".","．":"."},i18n.phonenumbers.PhoneNumberUtil.UNIQUE_INTERNATIONAL_PREFIX_=/[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?/,i18n.phonenumbers.PhoneNumberUtil.VALID_PUNCTUATION="-x‐-―−ー－-／  ­​⁠　()（）［］.\\[\\]/~⁓∼～",i18n.phonenumbers.PhoneNumberUtil.VALID_DIGITS_="0-9０-９٠-٩۰-۹",i18n.phonenumbers.PhoneNumberUtil.VALID_ALPHA_="A-Za-z",i18n.phonenumbers.PhoneNumberUtil.PLUS_CHARS_="+＋",i18n.phonenumbers.PhoneNumberUtil.PLUS_CHARS_PATTERN=new RegExp("["+i18n.phonenumbers.PhoneNumberUtil.PLUS_CHARS_+"]+"),i18n.phonenumbers.PhoneNumberUtil.LEADING_PLUS_CHARS_PATTERN_=new RegExp("^["+i18n.phonenumbers.PhoneNumberUtil.PLUS_CHARS_+"]+"),i18n.phonenumbers.PhoneNumberUtil.SEPARATOR_PATTERN_="["+i18n.phonenumbers.PhoneNumberUtil.VALID_PUNCTUATION+"]+",i18n.phonenumbers.PhoneNumberUtil.CAPTURING_DIGIT_PATTERN=new RegExp("(["+i18n.phonenumbers.PhoneNumberUtil.VALID_DIGITS_+"])"),i18n.phonenumbers.PhoneNumberUtil.VALID_START_CHAR_PATTERN_=new RegExp("["+i18n.phonenumbers.PhoneNumberUtil.PLUS_CHARS_+i18n.phonenumbers.PhoneNumberUtil.VALID_DIGITS_+"]"),i18n.phonenumbers.PhoneNumberUtil.SECOND_NUMBER_START_PATTERN_=/[\\\/] *x/,i18n.phonenumbers.PhoneNumberUtil.UNWANTED_END_CHAR_PATTERN_=new RegExp("[^"+i18n.phonenumbers.PhoneNumberUtil.VALID_DIGITS_+i18n.phonenumbers.PhoneNumberUtil.VALID_ALPHA_+"#]+$"),i18n.phonenumbers.PhoneNumberUtil.VALID_ALPHA_PHONE_PATTERN_=/(?:.*?[A-Za-z]){3}.*/,i18n.phonenumbers.PhoneNumberUtil.MIN_LENGTH_PHONE_NUMBER_PATTERN_="["+i18n.phonenumbers.PhoneNumberUtil.VALID_DIGITS_+"]{"+i18n.phonenumbers.PhoneNumberUtil.MIN_LENGTH_FOR_NSN_+"}",i18n.phonenumbers.PhoneNumberUtil.VALID_PHONE_NUMBER_="["+i18n.phonenumbers.PhoneNumberUtil.PLUS_CHARS_+"]*(?:["+i18n.phonenumbers.PhoneNumberUtil.VALID_PUNCTUATION+i18n.phonenumbers.PhoneNumberUtil.STAR_SIGN_+"]*["+i18n.phonenumbers.PhoneNumberUtil.VALID_DIGITS_+"]){3,}["+i18n.phonenumbers.PhoneNumberUtil.VALID_PUNCTUATION+i18n.phonenumbers.PhoneNumberUtil.STAR_SIGN_+i18n.phonenumbers.PhoneNumberUtil.VALID_ALPHA_+i18n.phonenumbers.PhoneNumberUtil.VALID_DIGITS_+"]*",i18n.phonenumbers.PhoneNumberUtil.DEFAULT_EXTN_PREFIX_=" ext. ",i18n.phonenumbers.PhoneNumberUtil.CAPTURING_EXTN_DIGITS_="(["+i18n.phonenumbers.PhoneNumberUtil.VALID_DIGITS_+"]{1,7})",i18n.phonenumbers.PhoneNumberUtil.EXTN_PATTERNS_FOR_PARSING_=i18n.phonenumbers.PhoneNumberUtil.RFC3966_EXTN_PREFIX_+i18n.phonenumbers.PhoneNumberUtil.CAPTURING_EXTN_DIGITS_+"|[  \\t,]*(?:e?xt(?:ensi(?:ó?|ó))?n?|ｅ?ｘｔｎ?|[,xｘ#＃~～]|int|anexo|ｉｎｔ)[:\\.．]?[  \\t,-]*"+i18n.phonenumbers.PhoneNumberUtil.CAPTURING_EXTN_DIGITS_+"#?|[- ]+(["+i18n.phonenumbers.PhoneNumberUtil.VALID_DIGITS_+"]{1,5})#",i18n.phonenumbers.PhoneNumberUtil.EXTN_PATTERN_=new RegExp("(?:"+i18n.phonenumbers.PhoneNumberUtil.EXTN_PATTERNS_FOR_PARSING_+")$","i"),i18n.phonenumbers.PhoneNumberUtil.VALID_PHONE_NUMBER_PATTERN_=new RegExp("^"+i18n.phonenumbers.PhoneNumberUtil.MIN_LENGTH_PHONE_NUMBER_PATTERN_+"$|^"+i18n.phonenumbers.PhoneNumberUtil.VALID_PHONE_NUMBER_+"(?:"+i18n.phonenumbers.PhoneNumberUtil.EXTN_PATTERNS_FOR_PARSING_+")?$","i"),i18n.phonenumbers.PhoneNumberUtil.NON_DIGITS_PATTERN_=/\D+/,i18n.phonenumbers.PhoneNumberUtil.FIRST_GROUP_PATTERN_=/(\$\d)/,i18n.phonenumbers.PhoneNumberUtil.NP_PATTERN_=/\$NP/,i18n.phonenumbers.PhoneNumberUtil.FG_PATTERN_=/\$FG/,i18n.phonenumbers.PhoneNumberUtil.CC_PATTERN_=/\$CC/,i18n.phonenumbers.PhoneNumberUtil.FIRST_GROUP_ONLY_PREFIX_PATTERN_=/^\(?\$1\)?$/,i18n.phonenumbers.PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY="001",i18n.phonenumbers.PhoneNumberFormat={E164:0,INTERNATIONAL:1,NATIONAL:2,RFC3966:3},i18n.phonenumbers.PhoneNumberType={FIXED_LINE:0,MOBILE:1,FIXED_LINE_OR_MOBILE:2,TOLL_FREE:3,PREMIUM_RATE:4,SHARED_COST:5,VOIP:6,PERSONAL_NUMBER:7,PAGER:8,UAN:9,VOICEMAIL:10,UNKNOWN:-1},i18n.phonenumbers.PhoneNumberUtil.MatchType={NOT_A_NUMBER:0,NO_MATCH:1,SHORT_NSN_MATCH:2,NSN_MATCH:3,EXACT_MATCH:4},i18n.phonenumbers.PhoneNumberUtil.ValidationResult={IS_POSSIBLE:0,INVALID_COUNTRY_CODE:1,TOO_SHORT:2,TOO_LONG:3},i18n.phonenumbers.PhoneNumberUtil.extractPossibleNumber=function(n){var t=n.search(i18n.phonenumbers.PhoneNumberUtil.VALID_START_CHAR_PATTERN_);return 0<=t?(n=n.substring(t),n=n.replace(i18n.phonenumbers.PhoneNumberUtil.UNWANTED_END_CHAR_PATTERN_,""),t=n.search(i18n.phonenumbers.PhoneNumberUtil.SECOND_NUMBER_START_PATTERN_),0<=t&&(n=n.substring(0,t))):n="",n},i18n.phonenumbers.PhoneNumberUtil.isViablePhoneNumber=function(n){return n.length<i18n.phonenumbers.PhoneNumberUtil.MIN_LENGTH_FOR_NSN_?!1:i18n.phonenumbers.PhoneNumberUtil.matchesEntirely_(i18n.phonenumbers.PhoneNumberUtil.VALID_PHONE_NUMBER_PATTERN_,n)},i18n.phonenumbers.PhoneNumberUtil.normalize=function(n){return i18n.phonenumbers.PhoneNumberUtil.matchesEntirely_(i18n.phonenumbers.PhoneNumberUtil.VALID_ALPHA_PHONE_PATTERN_,n)?i18n.phonenumbers.PhoneNumberUtil.normalizeHelper_(n,i18n.phonenumbers.PhoneNumberUtil.ALL_NORMALIZATION_MAPPINGS_,!0):i18n.phonenumbers.PhoneNumberUtil.normalizeDigitsOnly(n)},i18n.phonenumbers.PhoneNumberUtil.normalizeSB_=function(n){var t=i18n.phonenumbers.PhoneNumberUtil.normalize(n.toString());n.clear(),n.append(t)},i18n.phonenumbers.PhoneNumberUtil.normalizeDigitsOnly=function(n){return i18n.phonenumbers.PhoneNumberUtil.normalizeHelper_(n,i18n.phonenumbers.PhoneNumberUtil.DIGIT_MAPPINGS,!0)},i18n.phonenumbers.PhoneNumberUtil.convertAlphaCharactersInNumber=function(n){return i18n.phonenumbers.PhoneNumberUtil.normalizeHelper_(n,i18n.phonenumbers.PhoneNumberUtil.ALL_NORMALIZATION_MAPPINGS_,!1)},i18n.phonenumbers.PhoneNumberUtil.prototype.getLengthOfGeographicalAreaCode=function(n){var t=this.getMetadataForRegion(this.getRegionCodeForNumber(n));return null!=t&&(t.hasNationalPrefix()||n.hasItalianLeadingZero())&&this.isNumberGeographical(n)?this.getLengthOfNationalDestinationCode(n):0},i18n.phonenumbers.PhoneNumberUtil.prototype.getLengthOfNationalDestinationCode=function(n){var t;return n.hasExtension()?(t=n.clone(),t.clearExtension()):t=n,t=this.format(t,i18n.phonenumbers.PhoneNumberFormat.INTERNATIONAL).split(i18n.phonenumbers.PhoneNumberUtil.NON_DIGITS_PATTERN_),0==t[0].length&&t.shift(),2>=t.length?0:this.getNumberType(n)==i18n.phonenumbers.PhoneNumberType.MOBILE&&(n=i18n.phonenumbers.PhoneNumberUtil.getCountryMobileToken(n.getCountryCodeOrDefault()),""!=n)?t[2].length+n.length:t[1].length},i18n.phonenumbers.PhoneNumberUtil.getCountryMobileToken=function(n){return i18n.phonenumbers.PhoneNumberUtil.MOBILE_TOKEN_MAPPINGS_[n]||""},i18n.phonenumbers.PhoneNumberUtil.prototype.getSupportedRegions=function(){return goog.array.filter(Object.keys(i18n.phonenumbers.metadata.countryToMetadata),function(n){return isNaN(n)})},i18n.phonenumbers.PhoneNumberUtil.prototype.getSupportedGlobalNetworkCallingCodes=function(){var n=goog.array.filter(Object.keys(i18n.phonenumbers.metadata.countryToMetadata),function(n){return!isNaN(n)});return goog.array.map(n,function(n){return parseInt(n,10)})},i18n.phonenumbers.PhoneNumberUtil.normalizeHelper_=function(n,t,i){for(var r=new goog.string.StringBuffer,u,f,o=n.length,e=0;e<o;++e)u=n.charAt(e),f=t[u.toUpperCase()],null!=f?r.append(f):i||r.append(u);return r.toString()},i18n.phonenumbers.PhoneNumberUtil.prototype.formattingRuleHasFirstGroupOnly=function(n){return 0==n.length||i18n.phonenumbers.PhoneNumberUtil.FIRST_GROUP_ONLY_PREFIX_PATTERN_.test(n)},i18n.phonenumbers.PhoneNumberUtil.prototype.isNumberGeographical=function(n){return n=this.getNumberType(n),n==i18n.phonenumbers.PhoneNumberType.FIXED_LINE||n==i18n.phonenumbers.PhoneNumberType.FIXED_LINE_OR_MOBILE},i18n.phonenumbers.PhoneNumberUtil.prototype.isValidRegionCode_=function(n){return null!=n&&isNaN(n)&&n.toUpperCase()in i18n.phonenumbers.metadata.countryToMetadata},i18n.phonenumbers.PhoneNumberUtil.prototype.hasValidCountryCallingCode_=function(n){return n in i18n.phonenumbers.metadata.countryCodeToRegionCodeMap},i18n.phonenumbers.PhoneNumberUtil.prototype.format=function(n,t){var i,r;if(0==n.getNationalNumber()&&n.hasRawInput()&&(i=n.getRawInputOrDefault(),0<i.length))return i;if(i=n.getCountryCodeOrDefault(),r=this.getNationalSignificantNumber(n),t==i18n.phonenumbers.PhoneNumberFormat.E164)return this.prefixNumberWithCountryCallingCode_(i,i18n.phonenumbers.PhoneNumberFormat.E164,r,"");if(!this.hasValidCountryCallingCode_(i))return r;var f=this.getRegionCodeForCountryCode(i),u=this.getMetadataForRegionOrCallingCode_(i,f),f=this.maybeGetFormattedExtension_(n,u,t),r=this.formatNsn_(r,u,t);return this.prefixNumberWithCountryCallingCode_(i,t,r,f)},i18n.phonenumbers.PhoneNumberUtil.prototype.formatByPattern=function(n,t,i){var u=n.getCountryCodeOrDefault(),f=this.getNationalSignificantNumber(n),o;if(!this.hasValidCountryCallingCode_(u))return f;var e=this.getRegionCodeForCountryCode(u),e=this.getMetadataForRegionOrCallingCode_(u,e),r="",r=this.chooseFormattingPatternForNumber_(i,f);return null==r?r=f:(i=r.clone(),r=r.getNationalPrefixFormattingRuleOrDefault(),0<r.length&&(o=e.getNationalPrefixOrDefault(),0<o.length?(r=r.replace(i18n.phonenumbers.PhoneNumberUtil.NP_PATTERN_,o).replace(i18n.phonenumbers.PhoneNumberUtil.FG_PATTERN_,"$1"),i.setNationalPrefixFormattingRule(r)):i.clearNationalPrefixFormattingRule()),r=this.formatNsnUsingPattern_(f,i,t)),n=this.maybeGetFormattedExtension_(n,e,t),this.prefixNumberWithCountryCallingCode_(u,t,r,n)},i18n.phonenumbers.PhoneNumberUtil.prototype.formatNationalNumberWithCarrierCode=function(n,t){var i=n.getCountryCodeOrDefault(),r=this.getNationalSignificantNumber(n);if(!this.hasValidCountryCallingCode_(i))return r;var f=this.getRegionCodeForCountryCode(i),u=this.getMetadataForRegionOrCallingCode_(i,f),f=this.maybeGetFormattedExtension_(n,u,i18n.phonenumbers.PhoneNumberFormat.NATIONAL),r=this.formatNsn_(r,u,i18n.phonenumbers.PhoneNumberFormat.NATIONAL,t);return this.prefixNumberWithCountryCallingCode_(i,i18n.phonenumbers.PhoneNumberFormat.NATIONAL,r,f)},i18n.phonenumbers.PhoneNumberUtil.prototype.getMetadataForRegionOrCallingCode_=function(n,t){return i18n.phonenumbers.PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY==t?this.getMetadataForNonGeographicalRegion(n):this.getMetadataForRegion(t)},i18n.phonenumbers.PhoneNumberUtil.prototype.formatNationalNumberWithPreferredCarrierCode=function(n,t){return this.formatNationalNumberWithCarrierCode(n,n.hasPreferredDomesticCarrierCode()?n.getPreferredDomesticCarrierCodeOrDefault():t)},i18n.phonenumbers.PhoneNumberUtil.prototype.formatNumberForMobileDialing=function(n,t,i){var e=n.getCountryCodeOrDefault(),r;if(!this.hasValidCountryCallingCode_(e))return n.hasRawInput()?n.getRawInputOrDefault():"";r="",n=n.clone(),n.clearExtension();var u=this.getRegionCodeForCountryCode(e),f=this.getNumberType(n),o=f!=i18n.phonenumbers.PhoneNumberType.UNKNOWN;if(t==u)r=f==i18n.phonenumbers.PhoneNumberType.FIXED_LINE||f==i18n.phonenumbers.PhoneNumberType.MOBILE||f==i18n.phonenumbers.PhoneNumberType.FIXED_LINE_OR_MOBILE,"CO"==u&&f==i18n.phonenumbers.PhoneNumberType.FIXED_LINE?r=this.formatNationalNumberWithCarrierCode(n,i18n.phonenumbers.PhoneNumberUtil.COLOMBIA_MOBILE_TO_FIXED_LINE_PREFIX_):"BR"==u&&r?r=n.hasPreferredDomesticCarrierCode()?this.formatNationalNumberWithPreferredCarrierCode(n,""):"":o&&"HU"==u?r=this.getNddPrefixForRegion(u,!0)+" "+this.format(n,i18n.phonenumbers.PhoneNumberFormat.NATIONAL):e==i18n.phonenumbers.PhoneNumberUtil.NANPA_COUNTRY_CODE_?(t=this.getMetadataForRegion(t),r=this.canBeInternationallyDialled(n)&&!this.isShorterThanPossibleNormalNumber_(t,this.getNationalSignificantNumber(n))?this.format(n,i18n.phonenumbers.PhoneNumberFormat.INTERNATIONAL):this.format(n,i18n.phonenumbers.PhoneNumberFormat.NATIONAL)):r=(u==i18n.phonenumbers.PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY||("MX"==u||"CL"==u)&&r)&&this.canBeInternationallyDialled(n)?this.format(n,i18n.phonenumbers.PhoneNumberFormat.INTERNATIONAL):this.format(n,i18n.phonenumbers.PhoneNumberFormat.NATIONAL);else if(o&&this.canBeInternationallyDialled(n))return i?this.format(n,i18n.phonenumbers.PhoneNumberFormat.INTERNATIONAL):this.format(n,i18n.phonenumbers.PhoneNumberFormat.E164);return i?r:i18n.phonenumbers.PhoneNumberUtil.normalizeHelper_(r,i18n.phonenumbers.PhoneNumberUtil.DIALLABLE_CHAR_MAPPINGS_,!0)},i18n.phonenumbers.PhoneNumberUtil.prototype.formatOutOfCountryCallingNumber=function(n,t){var r,u;if(!this.isValidRegionCode_(t))return this.format(n,i18n.phonenumbers.PhoneNumberFormat.INTERNATIONAL);if(r=n.getCountryCodeOrDefault(),u=this.getNationalSignificantNumber(n),!this.hasValidCountryCallingCode_(r))return u;if(r==i18n.phonenumbers.PhoneNumberUtil.NANPA_COUNTRY_CODE_){if(this.isNANPACountry(t))return r+" "+this.format(n,i18n.phonenumbers.PhoneNumberFormat.NATIONAL)}else if(r==this.getCountryCodeForValidRegion_(t))return this.format(n,i18n.phonenumbers.PhoneNumberFormat.NATIONAL);var i=this.getMetadataForRegion(t),e=i.getInternationalPrefixOrDefault(),f="";return i18n.phonenumbers.PhoneNumberUtil.matchesEntirely_(i18n.phonenumbers.PhoneNumberUtil.UNIQUE_INTERNATIONAL_PREFIX_,e)?f=e:i.hasPreferredInternationalPrefix()&&(f=i.getPreferredInternationalPrefixOrDefault()),i=this.getRegionCodeForCountryCode(r),i=this.getMetadataForRegionOrCallingCode_(r,i),u=this.formatNsn_(u,i,i18n.phonenumbers.PhoneNumberFormat.INTERNATIONAL),i=this.maybeGetFormattedExtension_(n,i,i18n.phonenumbers.PhoneNumberFormat.INTERNATIONAL),0<f.length?f+" "+r+" "+u+i:this.prefixNumberWithCountryCallingCode_(r,i18n.phonenumbers.PhoneNumberFormat.INTERNATIONAL,u,i)},i18n.phonenumbers.PhoneNumberUtil.prototype.formatInOriginalFormat=function(n,t){var u,r,i,f;if(n.hasRawInput()&&(this.hasUnexpectedItalianLeadingZero_(n)||!this.hasFormattingPatternForNumber_(n)))return n.getRawInputOrDefault();if(!n.hasCountryCodeSource())return this.format(n,i18n.phonenumbers.PhoneNumberFormat.NATIONAL);switch(n.getCountryCodeSource()){case i18n.phonenumbers.PhoneNumber.CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN:u=this.format(n,i18n.phonenumbers.PhoneNumberFormat.INTERNATIONAL);break;case i18n.phonenumbers.PhoneNumber.CountryCodeSource.FROM_NUMBER_WITH_IDD:u=this.formatOutOfCountryCallingNumber(n,t);break;case i18n.phonenumbers.PhoneNumber.CountryCodeSource.FROM_NUMBER_WITHOUT_PLUS_SIGN:u=this.format(n,i18n.phonenumbers.PhoneNumberFormat.INTERNATIONAL).substring(1);break;default:if(r=this.getRegionCodeForCountryCode(n.getCountryCodeOrDefault()),i=this.getNddPrefixForRegion(r,!0),u=this.format(n,i18n.phonenumbers.PhoneNumberFormat.NATIONAL),null==i||0==i.length)break;if(this.rawInputContainsNationalPrefix_(n.getRawInputOrDefault(),i,r))break;if(r=this.getMetadataForRegion(r),i=this.getNationalSignificantNumber(n),r=this.chooseFormattingPatternForNumber_(r.numberFormatArray(),i),null==r)break;if(i=r.getNationalPrefixFormattingRuleOrDefault(),f=i.indexOf("$1"),0>=f)break;if(i=i.substring(0,f),i=i18n.phonenumbers.PhoneNumberUtil.normalizeDigitsOnly(i),0==i.length)break;u=r.clone(),u.clearNationalPrefixFormattingRule(),u=this.formatByPattern(n,i18n.phonenumbers.PhoneNumberFormat.NATIONAL,[u])}return r=n.getRawInputOrDefault(),null!=u&&0<r.length&&(i=i18n.phonenumbers.PhoneNumberUtil.normalizeHelper_(u,i18n.phonenumbers.PhoneNumberUtil.DIALLABLE_CHAR_MAPPINGS_,!0),f=i18n.phonenumbers.PhoneNumberUtil.normalizeHelper_(r,i18n.phonenumbers.PhoneNumberUtil.DIALLABLE_CHAR_MAPPINGS_,!0),i!=f&&(u=r)),u},i18n.phonenumbers.PhoneNumberUtil.prototype.rawInputContainsNationalPrefix_=function(n,t,i){if(n=i18n.phonenumbers.PhoneNumberUtil.normalizeDigitsOnly(n),goog.string.startsWith(n,t))try{return this.isValidNumber(this.parse(n.substring(t.length),i))}catch(r){}return!1},i18n.phonenumbers.PhoneNumberUtil.prototype.hasUnexpectedItalianLeadingZero_=function(n){return n.hasItalianLeadingZero()&&!this.isLeadingZeroPossible(n.getCountryCodeOrDefault())},i18n.phonenumbers.PhoneNumberUtil.prototype.hasFormattingPatternForNumber_=function(n){var t=n.getCountryCodeOrDefault(),i=this.getRegionCodeForCountryCode(t),t=this.getMetadataForRegionOrCallingCode_(t,i);return null==t?!1:(n=this.getNationalSignificantNumber(n),null!=this.chooseFormattingPatternForNumber_(t.numberFormatArray(),n))},i18n.phonenumbers.PhoneNumberUtil.prototype.formatOutOfCountryKeepingAlphaChars=function(n,t){var u=n.getRawInputOrDefault(),i,f,r;if(0==u.length)return this.formatOutOfCountryCallingNumber(n,t);if(i=n.getCountryCodeOrDefault(),!this.hasValidCountryCallingCode_(i))return u;if(u=i18n.phonenumbers.PhoneNumberUtil.normalizeHelper_(u,i18n.phonenumbers.PhoneNumberUtil.ALL_PLUS_NUMBER_GROUPING_SYMBOLS_,!0),f=this.getNationalSignificantNumber(n),3<f.length&&(r=u.indexOf(f.substring(0,3)),-1!=r&&(u=u.substring(r))),r=this.getMetadataForRegion(t),i==i18n.phonenumbers.PhoneNumberUtil.NANPA_COUNTRY_CODE_){if(this.isNANPACountry(t))return i+" "+u}else if(null!=r&&i==this.getCountryCodeForValidRegion_(t))return(i=this.chooseFormattingPatternForNumber_(r.numberFormatArray(),f),null==i)?u:(i=i.clone(),i.setPattern("(\\d+)(.*)"),i.setFormat("$1$2"),this.formatNsnUsingPattern_(u,i,i18n.phonenumbers.PhoneNumberFormat.NATIONAL));return f="",null!=r&&(f=r.getInternationalPrefixOrDefault(),f=i18n.phonenumbers.PhoneNumberUtil.matchesEntirely_(i18n.phonenumbers.PhoneNumberUtil.UNIQUE_INTERNATIONAL_PREFIX_,f)?f:r.getPreferredInternationalPrefixOrDefault()),r=this.getRegionCodeForCountryCode(i),r=this.getMetadataForRegionOrCallingCode_(i,r),r=this.maybeGetFormattedExtension_(n,r,i18n.phonenumbers.PhoneNumberFormat.INTERNATIONAL),0<f.length?f+" "+i+" "+u+r:this.prefixNumberWithCountryCallingCode_(i,i18n.phonenumbers.PhoneNumberFormat.INTERNATIONAL,u,r)},i18n.phonenumbers.PhoneNumberUtil.prototype.getNationalSignificantNumber=function(n){var t=""+n.getNationalNumber();return n.hasItalianLeadingZero()&&n.getItalianLeadingZero()?Array(n.getNumberOfLeadingZerosOrDefault()+1).join("0")+t:t},i18n.phonenumbers.PhoneNumberUtil.prototype.prefixNumberWithCountryCallingCode_=function(n,t,i,r){switch(t){case i18n.phonenumbers.PhoneNumberFormat.E164:return i18n.phonenumbers.PhoneNumberUtil.PLUS_SIGN+n+i+r;case i18n.phonenumbers.PhoneNumberFormat.INTERNATIONAL:return i18n.phonenumbers.PhoneNumberUtil.PLUS_SIGN+n+" "+i+r;case i18n.phonenumbers.PhoneNumberFormat.RFC3966:return i18n.phonenumbers.PhoneNumberUtil.RFC3966_PREFIX_+i18n.phonenumbers.PhoneNumberUtil.PLUS_SIGN+n+"-"+i+r;default:return i+r}},i18n.phonenumbers.PhoneNumberUtil.prototype.formatNsn_=function(n,t,i,r){return t=0==t.intlNumberFormatArray().length||i==i18n.phonenumbers.PhoneNumberFormat.NATIONAL?t.numberFormatArray():t.intlNumberFormatArray(),t=this.chooseFormattingPatternForNumber_(t,n),null==t?n:this.formatNsnUsingPattern_(n,t,i,r)},i18n.phonenumbers.PhoneNumberUtil.prototype.chooseFormattingPatternForNumber_=function(n,t){for(var i,r,f=n.length,u=0;u<f;++u)if(i=n[u],r=i.leadingDigitsPatternCount(),(0==r||0==t.search(i.getLeadingDigitsPattern(r-1)))&&(r=new RegExp(i.getPattern()),i18n.phonenumbers.PhoneNumberUtil.matchesEntirely_(r,t)))return i;return null},i18n.phonenumbers.PhoneNumberUtil.prototype.formatNsnUsingPattern_=function(n,t,i,r){var f=t.getFormatOrDefault(),e=new RegExp(t.getPattern()),o=t.getDomesticCarrierCodeFormattingRuleOrDefault(),u="";return i==i18n.phonenumbers.PhoneNumberFormat.NATIONAL&&null!=r&&0<r.length&&0<o.length?(t=o.replace(i18n.phonenumbers.PhoneNumberUtil.CC_PATTERN_,r),f=f.replace(i18n.phonenumbers.PhoneNumberUtil.FIRST_GROUP_PATTERN_,t),u=n.replace(e,f)):(t=t.getNationalPrefixFormattingRuleOrDefault(),u=i==i18n.phonenumbers.PhoneNumberFormat.NATIONAL&&null!=t&&0<t.length?n.replace(e,f.replace(i18n.phonenumbers.PhoneNumberUtil.FIRST_GROUP_PATTERN_,t)):n.replace(e,f)),i==i18n.phonenumbers.PhoneNumberFormat.RFC3966&&(u=u.replace(new RegExp("^"+i18n.phonenumbers.PhoneNumberUtil.SEPARATOR_PATTERN_),""),u=u.replace(new RegExp(i18n.phonenumbers.PhoneNumberUtil.SEPARATOR_PATTERN_,"g"),"-")),u},i18n.phonenumbers.PhoneNumberUtil.prototype.getExampleNumber=function(n){return this.getExampleNumberForType(n,i18n.phonenumbers.PhoneNumberType.FIXED_LINE)},i18n.phonenumbers.PhoneNumberUtil.prototype.getExampleNumberForType=function(n,t){if(!this.isValidRegionCode_(n))return null;var i=this.getNumberDescByType_(this.getMetadataForRegion(n),t);try{if(i.hasExampleNumber())return this.parse(i.getExampleNumberOrDefault(),n)}catch(r){}return null},i18n.phonenumbers.PhoneNumberUtil.prototype.getExampleNumberForNonGeoEntity=function(n){var t=this.getMetadataForNonGeographicalRegion(n);if(null!=t){t=t.getGeneralDesc();try{if(t.hasExampleNumber())return this.parse("+"+n+t.getExampleNumber(),"ZZ")}catch(i){}}return null},i18n.phonenumbers.PhoneNumberUtil.prototype.maybeGetFormattedExtension_=function(n,t,i){return n.hasExtension()&&0!=n.getExtension().length?i==i18n.phonenumbers.PhoneNumberFormat.RFC3966?i18n.phonenumbers.PhoneNumberUtil.RFC3966_EXTN_PREFIX_+n.getExtension():t.hasPreferredExtnPrefix()?t.getPreferredExtnPrefix()+n.getExtensionOrDefault():i18n.phonenumbers.PhoneNumberUtil.DEFAULT_EXTN_PREFIX_+n.getExtensionOrDefault():""},i18n.phonenumbers.PhoneNumberUtil.prototype.getNumberDescByType_=function(n,t){switch(t){case i18n.phonenumbers.PhoneNumberType.PREMIUM_RATE:return n.getPremiumRate();case i18n.phonenumbers.PhoneNumberType.TOLL_FREE:return n.getTollFree();case i18n.phonenumbers.PhoneNumberType.MOBILE:return n.getMobile();case i18n.phonenumbers.PhoneNumberType.FIXED_LINE:case i18n.phonenumbers.PhoneNumberType.FIXED_LINE_OR_MOBILE:return n.getFixedLine();case i18n.phonenumbers.PhoneNumberType.SHARED_COST:return n.getSharedCost();case i18n.phonenumbers.PhoneNumberType.VOIP:return n.getVoip();case i18n.phonenumbers.PhoneNumberType.PERSONAL_NUMBER:return n.getPersonalNumber();case i18n.phonenumbers.PhoneNumberType.PAGER:return n.getPager();case i18n.phonenumbers.PhoneNumberType.UAN:return n.getUan();case i18n.phonenumbers.PhoneNumberType.VOICEMAIL:return n.getVoicemail();default:return n.getGeneralDesc()}},i18n.phonenumbers.PhoneNumberUtil.prototype.getNumberType=function(n){var t=this.getRegionCodeForNumber(n),t=this.getMetadataForRegionOrCallingCode_(n.getCountryCodeOrDefault(),t);return null==t?i18n.phonenumbers.PhoneNumberType.UNKNOWN:(n=this.getNationalSignificantNumber(n),this.getNumberTypeHelper_(n,t))},i18n.phonenumbers.PhoneNumberUtil.prototype.getNumberTypeHelper_=function(n,t){return this.isNumberMatchingDesc_(n,t.getGeneralDesc())?this.isNumberMatchingDesc_(n,t.getPremiumRate())?i18n.phonenumbers.PhoneNumberType.PREMIUM_RATE:this.isNumberMatchingDesc_(n,t.getTollFree())?i18n.phonenumbers.PhoneNumberType.TOLL_FREE:this.isNumberMatchingDesc_(n,t.getSharedCost())?i18n.phonenumbers.PhoneNumberType.SHARED_COST:this.isNumberMatchingDesc_(n,t.getVoip())?i18n.phonenumbers.PhoneNumberType.VOIP:this.isNumberMatchingDesc_(n,t.getPersonalNumber())?i18n.phonenumbers.PhoneNumberType.PERSONAL_NUMBER:this.isNumberMatchingDesc_(n,t.getPager())?i18n.phonenumbers.PhoneNumberType.PAGER:this.isNumberMatchingDesc_(n,t.getUan())?i18n.phonenumbers.PhoneNumberType.UAN:this.isNumberMatchingDesc_(n,t.getVoicemail())?i18n.phonenumbers.PhoneNumberType.VOICEMAIL:this.isNumberMatchingDesc_(n,t.getFixedLine())?t.getSameMobileAndFixedLinePattern()||this.isNumberMatchingDesc_(n,t.getMobile())?i18n.phonenumbers.PhoneNumberType.FIXED_LINE_OR_MOBILE:i18n.phonenumbers.PhoneNumberType.FIXED_LINE:!t.getSameMobileAndFixedLinePattern()&&this.isNumberMatchingDesc_(n,t.getMobile())?i18n.phonenumbers.PhoneNumberType.MOBILE:i18n.phonenumbers.PhoneNumberType.UNKNOWN:i18n.phonenumbers.PhoneNumberType.UNKNOWN},i18n.phonenumbers.PhoneNumberUtil.prototype.getMetadataForRegion=function(n){var t,i;if(null==n)return null;if(n=n.toUpperCase(),t=this.regionToMetadataMap[n],null==t){if(t=new goog.proto2.PbLiteSerializer,i=i18n.phonenumbers.metadata.countryToMetadata[n],null==i)return null;t=t.deserialize(i18n.phonenumbers.PhoneMetadata.getDescriptor(),i),this.regionToMetadataMap[n]=t}return t},i18n.phonenumbers.PhoneNumberUtil.prototype.getMetadataForNonGeographicalRegion=function(n){return this.getMetadataForRegion(""+n)},i18n.phonenumbers.PhoneNumberUtil.prototype.isNumberMatchingDesc_=function(n,t){return i18n.phonenumbers.PhoneNumberUtil.matchesEntirely_(t.getPossibleNumberPatternOrDefault(),n)&&i18n.phonenumbers.PhoneNumberUtil.matchesEntirely_(t.getNationalNumberPatternOrDefault(),n)},i18n.phonenumbers.PhoneNumberUtil.prototype.isValidNumber=function(n){var t=this.getRegionCodeForNumber(n);return this.isValidNumberForRegion(n,t)},i18n.phonenumbers.PhoneNumberUtil.prototype.isValidNumberForRegion=function(n,t){var i=n.getCountryCodeOrDefault(),r=this.getMetadataForRegionOrCallingCode_(i,t);return null==r||i18n.phonenumbers.PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY!=t&&i!=this.getCountryCodeForValidRegion_(t)?!1:(i=this.getNationalSignificantNumber(n),this.getNumberTypeHelper_(i,r)!=i18n.phonenumbers.PhoneNumberType.UNKNOWN)},i18n.phonenumbers.PhoneNumberUtil.prototype.getRegionCodeForNumber=function(n){if(null==n)return null;var t=n.getCountryCodeOrDefault(),t=i18n.phonenumbers.metadata.countryCodeToRegionCodeMap[t];return null==t?null:1==t.length?t[0]:this.getRegionCodeForNumberFromRegionList_(n,t)},i18n.phonenumbers.PhoneNumberUtil.prototype.getRegionCodeForNumberFromRegionList_=function(n,t){for(var r,f=this.getNationalSignificantNumber(n),i,e=t.length,u=0;u<e;u++)if(i=t[u],r=this.getMetadataForRegion(i),r.hasLeadingDigits()){if(0==f.search(r.getLeadingDigits()))return i}else if(this.getNumberTypeHelper_(f,r)!=i18n.phonenumbers.PhoneNumberType.UNKNOWN)return i;return null},i18n.phonenumbers.PhoneNumberUtil.prototype.getRegionCodeForCountryCode=function(n){return n=i18n.phonenumbers.metadata.countryCodeToRegionCodeMap[n],null==n?i18n.phonenumbers.PhoneNumberUtil.UNKNOWN_REGION_:n[0]},i18n.phonenumbers.PhoneNumberUtil.prototype.getRegionCodesForCountryCode=function(n){return n=i18n.phonenumbers.metadata.countryCodeToRegionCodeMap[n],null==n?[]:n},i18n.phonenumbers.PhoneNumberUtil.prototype.getCountryCodeForRegion=function(n){return this.isValidRegionCode_(n)?this.getCountryCodeForValidRegion_(n):0},i18n.phonenumbers.PhoneNumberUtil.prototype.getCountryCodeForValidRegion_=function(n){var t=this.getMetadataForRegion(n);if(null==t)throw"Invalid region code: "+n;return t.getCountryCodeOrDefault()},i18n.phonenumbers.PhoneNumberUtil.prototype.getNddPrefixForRegion=function(n,t){var i=this.getMetadataForRegion(n);return null==i?null:(i=i.getNationalPrefixOrDefault(),0==i.length)?null:(t&&(i=i.replace("~","")),i)},i18n.phonenumbers.PhoneNumberUtil.prototype.isNANPACountry=function(n){return null!=n&&goog.array.contains(i18n.phonenumbers.metadata.countryCodeToRegionCodeMap[i18n.phonenumbers.PhoneNumberUtil.NANPA_COUNTRY_CODE_],n.toUpperCase())},i18n.phonenumbers.PhoneNumberUtil.prototype.isLeadingZeroPossible=function(n){return n=this.getMetadataForRegionOrCallingCode_(n,this.getRegionCodeForCountryCode(n)),null!=n&&n.getLeadingZeroPossibleOrDefault()},i18n.phonenumbers.PhoneNumberUtil.prototype.isAlphaNumber=function(n){return i18n.phonenumbers.PhoneNumberUtil.isViablePhoneNumber(n)?(n=new goog.string.StringBuffer(n),this.maybeStripExtension(n),i18n.phonenumbers.PhoneNumberUtil.matchesEntirely_(i18n.phonenumbers.PhoneNumberUtil.VALID_ALPHA_PHONE_PATTERN_,n.toString())):!1},i18n.phonenumbers.PhoneNumberUtil.prototype.isPossibleNumber=function(n){return this.isPossibleNumberWithReason(n)==i18n.phonenumbers.PhoneNumberUtil.ValidationResult.IS_POSSIBLE},i18n.phonenumbers.PhoneNumberUtil.prototype.testNumberLengthAgainstPattern_=function(n,t){return i18n.phonenumbers.PhoneNumberUtil.matchesEntirely_(n,t)?i18n.phonenumbers.PhoneNumberUtil.ValidationResult.IS_POSSIBLE:0==t.search(n)?i18n.phonenumbers.PhoneNumberUtil.ValidationResult.TOO_LONG:i18n.phonenumbers.PhoneNumberUtil.ValidationResult.TOO_SHORT},i18n.phonenumbers.PhoneNumberUtil.prototype.isShorterThanPossibleNormalNumber_=function(n,t){var i=n.getGeneralDesc().getPossibleNumberPatternOrDefault();return this.testNumberLengthAgainstPattern_(i,t)==i18n.phonenumbers.PhoneNumberUtil.ValidationResult.TOO_SHORT},i18n.phonenumbers.PhoneNumberUtil.prototype.isPossibleNumberWithReason=function(n){var i=this.getNationalSignificantNumber(n),t;return(n=n.getCountryCodeOrDefault(),!this.hasValidCountryCallingCode_(n))?i18n.phonenumbers.PhoneNumberUtil.ValidationResult.INVALID_COUNTRY_CODE:(t=this.getRegionCodeForCountryCode(n),n=this.getMetadataForRegionOrCallingCode_(n,t).getGeneralDesc().getPossibleNumberPatternOrDefault(),this.testNumberLengthAgainstPattern_(n,i))},i18n.phonenumbers.PhoneNumberUtil.prototype.isPossibleNumberString=function(n,t){try{return this.isPossibleNumber(this.parse(n,t))}catch(i){return!1}},i18n.phonenumbers.PhoneNumberUtil.prototype.truncateTooLongNumber=function(n){if(this.isValidNumber(n))return!0;var i=n.clone(),t=n.getNationalNumberOrDefault();do if(t=Math.floor(t/10),i.setNationalNumber(t),0==t||this.isPossibleNumberWithReason(i)==i18n.phonenumbers.PhoneNumberUtil.ValidationResult.TOO_SHORT)return!1;while(!this.isValidNumber(i));return n.setNationalNumber(t),!0},i18n.phonenumbers.PhoneNumberUtil.prototype.extractCountryCode=function(n,t){var r=n.toString(),u,f,i;if(0==r.length||"0"==r.charAt(0))return 0;for(f=r.length,i=1;i<=i18n.phonenumbers.PhoneNumberUtil.MAX_LENGTH_COUNTRY_CODE_&&i<=f;++i)if(u=parseInt(r.substring(0,i),10),u in i18n.phonenumbers.metadata.countryCodeToRegionCodeMap)return t.append(r.substring(i)),u;return 0},i18n.phonenumbers.PhoneNumberUtil.prototype.maybeExtractCountryCode=function(n,t,i,r,u){var f,o,e;if(0==n.length)return 0;if(n=new goog.string.StringBuffer(n),null!=t&&(f=t.getInternationalPrefix()),null==f&&(f="NonMatch"),f=this.maybeStripInternationalPrefixAndNormalize(n,f),r&&u.setCountryCodeSource(f),f!=i18n.phonenumbers.PhoneNumber.CountryCodeSource.FROM_DEFAULT_COUNTRY){if(n.getLength()<=i18n.phonenumbers.PhoneNumberUtil.MIN_LENGTH_FOR_NSN_)throw i18n.phonenumbers.Error.TOO_SHORT_AFTER_IDD;if(i=this.extractCountryCode(n,i),0!=i)return u.setCountryCode(i),i;throw i18n.phonenumbers.Error.INVALID_COUNTRY_CODE;}if(null!=t&&(f=t.getCountryCodeOrDefault(),o=""+f,e=n.toString(),goog.string.startsWith(e,o))){var s=new goog.string.StringBuffer(e.substring(o.length)),e=t.getGeneralDesc(),o=new RegExp(e.getNationalNumberPatternOrDefault());if(this.maybeStripNationalPrefixAndCarrierCode(s,t,null),t=s.toString(),e=e.getPossibleNumberPatternOrDefault(),!i18n.phonenumbers.PhoneNumberUtil.matchesEntirely_(o,n.toString())&&i18n.phonenumbers.PhoneNumberUtil.matchesEntirely_(o,t)||this.testNumberLengthAgainstPattern_(e,n.toString())==i18n.phonenumbers.PhoneNumberUtil.ValidationResult.TOO_LONG)return i.append(t),r&&u.setCountryCodeSource(i18n.phonenumbers.PhoneNumber.CountryCodeSource.FROM_NUMBER_WITHOUT_PLUS_SIGN),u.setCountryCode(f),f}return u.setCountryCode(0),0},i18n.phonenumbers.PhoneNumberUtil.prototype.parsePrefixAsIdd_=function(n,t){var r=t.toString(),u,i;return 0==r.search(n)?(u=r.match(n)[0].length,i=r.substring(u).match(i18n.phonenumbers.PhoneNumberUtil.CAPTURING_DIGIT_PATTERN),i&&null!=i[1]&&0<i[1].length&&"0"==i18n.phonenumbers.PhoneNumberUtil.normalizeDigitsOnly(i[1]))?!1:(t.clear(),t.append(r.substring(u)),!0):!1},i18n.phonenumbers.PhoneNumberUtil.prototype.maybeStripInternationalPrefixAndNormalize=function(n,t){var i=n.toString();return 0==i.length?i18n.phonenumbers.PhoneNumber.CountryCodeSource.FROM_DEFAULT_COUNTRY:i18n.phonenumbers.PhoneNumberUtil.LEADING_PLUS_CHARS_PATTERN_.test(i)?(i=i.replace(i18n.phonenumbers.PhoneNumberUtil.LEADING_PLUS_CHARS_PATTERN_,""),n.clear(),n.append(i18n.phonenumbers.PhoneNumberUtil.normalize(i)),i18n.phonenumbers.PhoneNumber.CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN):(i=new RegExp(t),i18n.phonenumbers.PhoneNumberUtil.normalizeSB_(n),this.parsePrefixAsIdd_(i,n)?i18n.phonenumbers.PhoneNumber.CountryCodeSource.FROM_NUMBER_WITH_IDD:i18n.phonenumbers.PhoneNumber.CountryCodeSource.FROM_DEFAULT_COUNTRY)},i18n.phonenumbers.PhoneNumberUtil.prototype.maybeStripNationalPrefixAndCarrierCode=function(n,t,i){var u=n.toString(),r=u.length,f=t.getNationalPrefixForParsing(),o;if(0==r||null==f||0==f.length)return!1;if(o=new RegExp("^(?:"+f+")"),r=o.exec(u)){var f=new RegExp(t.getGeneralDesc().getNationalNumberPatternOrDefault()),s=i18n.phonenumbers.PhoneNumberUtil.matchesEntirely_(f,u),e=r.length-1;if(t=t.getNationalPrefixTransformRule(),null==t||0==t.length||null==r[e]||0==r[e].length){if(s&&!i18n.phonenumbers.PhoneNumberUtil.matchesEntirely_(f,u.substring(r[0].length)))return!1;null!=i&&0<e&&null!=r[e]&&i.append(r[1]),n.set(u.substring(r[0].length))}else{if(u=u.replace(o,t),s&&!i18n.phonenumbers.PhoneNumberUtil.matchesEntirely_(f,u))return!1;null!=i&&0<e&&i.append(r[1]),n.set(u)}return!0}return!1},i18n.phonenumbers.PhoneNumberUtil.prototype.maybeStripExtension=function(n){var i=n.toString(),u=i.search(i18n.phonenumbers.PhoneNumberUtil.EXTN_PATTERN_);if(0<=u&&i18n.phonenumbers.PhoneNumberUtil.isViablePhoneNumber(i.substring(0,u)))for(var r=i.match(i18n.phonenumbers.PhoneNumberUtil.EXTN_PATTERN_),f=r.length,t=1;t<f;++t)if(null!=r[t]&&0<r[t].length)return n.clear(),n.append(i.substring(0,u)),r[t];return""},i18n.phonenumbers.PhoneNumberUtil.prototype.checkRegionForParsing_=function(n,t){return this.isValidRegionCode_(t)||null!=n&&0<n.length&&i18n.phonenumbers.PhoneNumberUtil.LEADING_PLUS_CHARS_PATTERN_.test(n)},i18n.phonenumbers.PhoneNumberUtil.prototype.parse=function(n,t){return this.parseHelper_(n,t,!1,!0)},i18n.phonenumbers.PhoneNumberUtil.prototype.parseAndKeepRawInput=function(n,t){if(!this.isValidRegionCode_(t)&&0<n.length&&n.charAt(0)!=i18n.phonenumbers.PhoneNumberUtil.PLUS_SIGN)throw i18n.phonenumbers.Error.INVALID_COUNTRY_CODE;return this.parseHelper_(n,t,!0,!0)},i18n.phonenumbers.PhoneNumberUtil.prototype.setItalianLeadingZerosForPhoneNumber_=function(n,t){if(1<n.length&&"0"==n.charAt(0)){t.setItalianLeadingZero(!0);for(var i=1;i<n.length-1&&"0"==n.charAt(i);)i++;1!=i&&t.setNumberOfLeadingZeros(i)}},i18n.phonenumbers.PhoneNumberUtil.prototype.parseHelper_=function(n,t,i,r){var u;if(null==n)throw i18n.phonenumbers.Error.NOT_A_NUMBER;if(n.length>i18n.phonenumbers.PhoneNumberUtil.MAX_INPUT_STRING_LENGTH_)throw i18n.phonenumbers.Error.TOO_LONG;if(u=new goog.string.StringBuffer,this.buildNationalNumberForParsing_(n,u),!i18n.phonenumbers.PhoneNumberUtil.isViablePhoneNumber(u.toString()))throw i18n.phonenumbers.Error.NOT_A_NUMBER;if(r&&!this.checkRegionForParsing_(u.toString(),t))throw i18n.phonenumbers.Error.INVALID_COUNTRY_CODE;r=new i18n.phonenumbers.PhoneNumber,i&&r.setRawInput(n),n=this.maybeStripExtension(u),0<n.length&&r.setExtension(n),n=this.getMetadataForRegion(t);var e=new goog.string.StringBuffer,f=0,o=u.toString();try{f=this.maybeExtractCountryCode(o,n,e,i,r)}catch(s){if(s==i18n.phonenumbers.Error.INVALID_COUNTRY_CODE&&i18n.phonenumbers.PhoneNumberUtil.LEADING_PLUS_CHARS_PATTERN_.test(o)){if(o=o.replace(i18n.phonenumbers.PhoneNumberUtil.LEADING_PLUS_CHARS_PATTERN_,""),f=this.maybeExtractCountryCode(o,n,e,i,r),0==f)throw s;}else throw s;}if(0!=f?(u=this.getRegionCodeForCountryCode(f),u!=t&&(n=this.getMetadataForRegionOrCallingCode_(f,u))):(i18n.phonenumbers.PhoneNumberUtil.normalizeSB_(u),e.append(u.toString()),null!=t?(f=n.getCountryCodeOrDefault(),r.setCountryCode(f)):i&&r.clearCountryCodeSource()),e.getLength()<i18n.phonenumbers.PhoneNumberUtil.MIN_LENGTH_FOR_NSN_)throw i18n.phonenumbers.Error.TOO_SHORT_NSN;if(null!=n&&(t=new goog.string.StringBuffer,u=new goog.string.StringBuffer(e.toString()),this.maybeStripNationalPrefixAndCarrierCode(u,n,t),this.isShorterThanPossibleNormalNumber_(n,u.toString())||(e=u,i&&r.setPreferredDomesticCarrierCode(t.toString()))),i=e.toString(),t=i.length,t<i18n.phonenumbers.PhoneNumberUtil.MIN_LENGTH_FOR_NSN_)throw i18n.phonenumbers.Error.TOO_SHORT_NSN;if(t>i18n.phonenumbers.PhoneNumberUtil.MAX_LENGTH_FOR_NSN_)throw i18n.phonenumbers.Error.TOO_LONG;return this.setItalianLeadingZerosForPhoneNumber_(i,r),r.setNationalNumber(parseInt(i,10)),r},i18n.phonenumbers.PhoneNumberUtil.prototype.buildNationalNumberForParsing_=function(n,t){var r=n.indexOf(i18n.phonenumbers.PhoneNumberUtil.RFC3966_PHONE_CONTEXT_),i,u;0<r?(i=r+i18n.phonenumbers.PhoneNumberUtil.RFC3966_PHONE_CONTEXT_.length,n.charAt(i)==i18n.phonenumbers.PhoneNumberUtil.PLUS_SIGN&&(u=n.indexOf(";",i),0<u?t.append(n.substring(i,u)):t.append(n.substring(i))),i=n.indexOf(i18n.phonenumbers.PhoneNumberUtil.RFC3966_PREFIX_),t.append(n.substring(0<=i?i+i18n.phonenumbers.PhoneNumberUtil.RFC3966_PREFIX_.length:0,r))):t.append(i18n.phonenumbers.PhoneNumberUtil.extractPossibleNumber(n)),r=t.toString(),i=r.indexOf(i18n.phonenumbers.PhoneNumberUtil.RFC3966_ISDN_SUBADDRESS_),0<i&&(t.clear(),t.append(r.substring(0,i)))},i18n.phonenumbers.PhoneNumberUtil.prototype.isNumberMatch=function(n,t){var i,r,u,f;if("string"==typeof n)try{i=this.parse(n,i18n.phonenumbers.PhoneNumberUtil.UNKNOWN_REGION_)}catch(e){if(e!=i18n.phonenumbers.Error.INVALID_COUNTRY_CODE)return i18n.phonenumbers.PhoneNumberUtil.MatchType.NOT_A_NUMBER;if("string"!=typeof t&&(u=this.getRegionCodeForCountryCode(t.getCountryCodeOrDefault()),u!=i18n.phonenumbers.PhoneNumberUtil.UNKNOWN_REGION_)){try{i=this.parse(n,u)}catch(o){return i18n.phonenumbers.PhoneNumberUtil.MatchType.NOT_A_NUMBER}return i=this.isNumberMatch(i,t),i==i18n.phonenumbers.PhoneNumberUtil.MatchType.EXACT_MATCH?i18n.phonenumbers.PhoneNumberUtil.MatchType.NSN_MATCH:i}try{i=this.parseHelper_(n,null,!1,!1)}catch(o){return i18n.phonenumbers.PhoneNumberUtil.MatchType.NOT_A_NUMBER}}else i=n.clone();if("string"==typeof t)try{return r=this.parse(t,i18n.phonenumbers.PhoneNumberUtil.UNKNOWN_REGION_),this.isNumberMatch(n,r)}catch(e){return e!=i18n.phonenumbers.Error.INVALID_COUNTRY_CODE?i18n.phonenumbers.PhoneNumberUtil.MatchType.NOT_A_NUMBER:this.isNumberMatch(t,i)}else r=t.clone();return(i.clearRawInput(),i.clearCountryCodeSource(),i.clearPreferredDomesticCarrierCode(),r.clearRawInput(),r.clearCountryCodeSource(),r.clearPreferredDomesticCarrierCode(),i.hasExtension()&&0==i.getExtension().length&&i.clearExtension(),r.hasExtension()&&0==r.getExtension().length&&r.clearExtension(),i.hasExtension()&&r.hasExtension()&&i.getExtension()!=r.getExtension())?i18n.phonenumbers.PhoneNumberUtil.MatchType.NO_MATCH:(u=i.getCountryCodeOrDefault(),f=r.getCountryCodeOrDefault(),0!=u&&0!=f)?i.equals(r)?i18n.phonenumbers.PhoneNumberUtil.MatchType.EXACT_MATCH:u==f&&this.isNationalNumberSuffixOfTheOther_(i,r)?i18n.phonenumbers.PhoneNumberUtil.MatchType.SHORT_NSN_MATCH:i18n.phonenumbers.PhoneNumberUtil.MatchType.NO_MATCH:(i.setCountryCode(0),r.setCountryCode(0),i.equals(r)?i18n.phonenumbers.PhoneNumberUtil.MatchType.NSN_MATCH:this.isNationalNumberSuffixOfTheOther_(i,r)?i18n.phonenumbers.PhoneNumberUtil.MatchType.SHORT_NSN_MATCH:i18n.phonenumbers.PhoneNumberUtil.MatchType.NO_MATCH)},i18n.phonenumbers.PhoneNumberUtil.prototype.isNationalNumberSuffixOfTheOther_=function(n,t){var i=""+n.getNationalNumber(),r=""+t.getNationalNumber();return goog.string.endsWith(i,r)||goog.string.endsWith(r,i)},i18n.phonenumbers.PhoneNumberUtil.prototype.canBeInternationallyDialled=function(n){var t=this.getMetadataForRegion(this.getRegionCodeForNumber(n));return null==t?!0:(n=this.getNationalSignificantNumber(n),!this.isNumberMatchingDesc_(n,t.getNoInternationalDialling()))},i18n.phonenumbers.PhoneNumberUtil.matchesEntirely_=function(n,t){var i="string"==typeof n?t.match("^(?:"+n+")$"):t.match(n);return i&&i[0].length==t.length?!0:!1},i18n.phonenumbers.AsYouTypeFormatter=function(n){this.DIGIT_PLACEHOLDER_=" ",this.DIGIT_PATTERN_=new RegExp(this.DIGIT_PLACEHOLDER_),this.currentOutput_="",this.formattingTemplate_=new goog.string.StringBuffer,this.currentFormattingPattern_="",this.accruedInput_=new goog.string.StringBuffer,this.accruedInputWithoutFormatting_=new goog.string.StringBuffer,this.ableToFormat_=!0,this.isExpectingCountryCallingCode_=this.isCompleteNumber_=this.inputHasFormatting_=!1,this.phoneUtil_=i18n.phonenumbers.PhoneNumberUtil.getInstance(),this.positionToRemember_=this.originalPosition_=this.lastMatchPosition_=0,this.prefixBeforeNationalNumber_=new goog.string.StringBuffer,this.shouldAddSpaceAfterNationalPrefix_=!1,this.extractedNationalPrefix_="",this.nationalNumber_=new goog.string.StringBuffer,this.possibleFormats_=[],this.defaultCountry_=n,this.defaultMetadata_=this.currentMetadata_=this.getMetadataForRegion_(this.defaultCountry_)},i18n.phonenumbers.AsYouTypeFormatter.SEPARATOR_BEFORE_NATIONAL_NUMBER_=" ",i18n.phonenumbers.AsYouTypeFormatter.EMPTY_METADATA_=new i18n.phonenumbers.PhoneMetadata,i18n.phonenumbers.AsYouTypeFormatter.EMPTY_METADATA_.setInternationalPrefix("NA"),i18n.phonenumbers.AsYouTypeFormatter.CHARACTER_CLASS_PATTERN_=/\[([^\[\]])*\]/g,i18n.phonenumbers.AsYouTypeFormatter.STANDALONE_DIGIT_PATTERN_=/\d(?=[^,}][^,}])/g,i18n.phonenumbers.AsYouTypeFormatter.ELIGIBLE_FORMAT_PATTERN_=new RegExp("^["+i18n.phonenumbers.PhoneNumberUtil.VALID_PUNCTUATION+"]*(\\$\\d["+i18n.phonenumbers.PhoneNumberUtil.VALID_PUNCTUATION+"]*)+$"),i18n.phonenumbers.AsYouTypeFormatter.NATIONAL_PREFIX_SEPARATORS_PATTERN_=/[- ]/,i18n.phonenumbers.AsYouTypeFormatter.MIN_LEADING_DIGITS_LENGTH_=3,i18n.phonenumbers.AsYouTypeFormatter.prototype.getMetadataForRegion_=function(n){return n=this.phoneUtil_.getCountryCodeForRegion(n),n=this.phoneUtil_.getRegionCodeForCountryCode(n),n=this.phoneUtil_.getMetadataForRegion(n),null!=n?n:i18n.phonenumbers.AsYouTypeFormatter.EMPTY_METADATA_},i18n.phonenumbers.AsYouTypeFormatter.prototype.maybeCreateNewTemplate_=function(){for(var t,i,r=this.possibleFormats_.length,n=0;n<r;++n){if(t=this.possibleFormats_[n],i=t.getPatternOrDefault(),this.currentFormattingPattern_==i)return!1;if(this.createFormattingTemplate_(t))return this.currentFormattingPattern_=i,this.shouldAddSpaceAfterNationalPrefix_=i18n.phonenumbers.AsYouTypeFormatter.NATIONAL_PREFIX_SEPARATORS_PATTERN_.test(t.getNationalPrefixFormattingRule()),this.lastMatchPosition_=0,!0}return this.ableToFormat_=!1},i18n.phonenumbers.AsYouTypeFormatter.prototype.getAvailableFormats_=function(n){for(var t,r=this.isCompleteNumber_&&0<this.currentMetadata_.intlNumberFormatCount()?this.currentMetadata_.intlNumberFormatArray():this.currentMetadata_.numberFormatArray(),u=r.length,i=0;i<u;++i)t=r[i],(!this.currentMetadata_.hasNationalPrefix()||this.isCompleteNumber_||t.getNationalPrefixOptionalWhenFormatting()||this.phoneUtil_.formattingRuleHasFirstGroupOnly(t.getNationalPrefixFormattingRuleOrDefault()))&&this.isFormatEligible_(t.getFormatOrDefault())&&this.possibleFormats_.push(t);this.narrowDownPossibleFormats_(n)},i18n.phonenumbers.AsYouTypeFormatter.prototype.isFormatEligible_=function(n){return i18n.phonenumbers.AsYouTypeFormatter.ELIGIBLE_FORMAT_PATTERN_.test(n)},i18n.phonenumbers.AsYouTypeFormatter.prototype.narrowDownPossibleFormats_=function(n){for(var u,t,r=[],f=n.length-i18n.phonenumbers.AsYouTypeFormatter.MIN_LEADING_DIGITS_LENGTH_,e=this.possibleFormats_.length,i=0;i<e;++i)t=this.possibleFormats_[i],0==t.leadingDigitsPatternCount()?r.push(this.possibleFormats_[i]):(u=Math.min(f,t.leadingDigitsPatternCount()-1),t=t.getLeadingDigitsPattern(u),0==n.search(t)&&r.push(this.possibleFormats_[i]));this.possibleFormats_=r},i18n.phonenumbers.AsYouTypeFormatter.prototype.createFormattingTemplate_=function(n){var t=n.getPatternOrDefault();return-1!=t.indexOf("|")?!1:(t=t.replace(i18n.phonenumbers.AsYouTypeFormatter.CHARACTER_CLASS_PATTERN_,"\\d"),t=t.replace(i18n.phonenumbers.AsYouTypeFormatter.STANDALONE_DIGIT_PATTERN_,"\\d"),this.formattingTemplate_.clear(),n=this.getFormattingTemplate_(t,n.getFormatOrDefault()),0<n.length?(this.formattingTemplate_.append(n),!0):!1)},i18n.phonenumbers.AsYouTypeFormatter.prototype.getFormattingTemplate_=function(n,t){var i="999999999999999".match(n)[0];return i.length<this.nationalNumber_.getLength()?"":(i=i.replace(new RegExp(n,"g"),t),i=i.replace(RegExp("9","g"),this.DIGIT_PLACEHOLDER_))},i18n.phonenumbers.AsYouTypeFormatter.prototype.clear=function(){this.currentOutput_="",this.accruedInput_.clear(),this.accruedInputWithoutFormatting_.clear(),this.formattingTemplate_.clear(),this.lastMatchPosition_=0,this.currentFormattingPattern_="",this.prefixBeforeNationalNumber_.clear(),this.extractedNationalPrefix_="",this.nationalNumber_.clear(),this.ableToFormat_=!0,this.inputHasFormatting_=!1,this.originalPosition_=this.positionToRemember_=0,this.isExpectingCountryCallingCode_=this.isCompleteNumber_=!1,this.possibleFormats_=[],this.shouldAddSpaceAfterNationalPrefix_=!1,this.currentMetadata_!=this.defaultMetadata_&&(this.currentMetadata_=this.getMetadataForRegion_(this.defaultCountry_))},i18n.phonenumbers.AsYouTypeFormatter.prototype.inputDigit=function(n){return this.currentOutput_=this.inputDigitWithOptionToRememberPosition_(n,!1)},i18n.phonenumbers.AsYouTypeFormatter.prototype.inputDigitAndRememberPosition=function(n){return this.currentOutput_=this.inputDigitWithOptionToRememberPosition_(n,!0)},i18n.phonenumbers.AsYouTypeFormatter.prototype.inputDigitWithOptionToRememberPosition_=function(n,t){if(this.accruedInput_.append(n),t&&(this.originalPosition_=this.accruedInput_.getLength()),this.isDigitOrLeadingPlusSign_(n)?n=this.normalizeAndAccrueDigitsAndPlusSign_(n,t):(this.ableToFormat_=!1,this.inputHasFormatting_=!0),!this.ableToFormat_){if(!this.inputHasFormatting_)if(this.attemptToExtractIdd_()){if(this.attemptToExtractCountryCallingCode_())return this.attemptToChoosePatternWithPrefixExtracted_()}else if(this.ableToExtractLongerNdd_())return this.prefixBeforeNationalNumber_.append(i18n.phonenumbers.AsYouTypeFormatter.SEPARATOR_BEFORE_NATIONAL_NUMBER_),this.attemptToChoosePatternWithPrefixExtracted_();return this.accruedInput_.toString()}switch(this.accruedInputWithoutFormatting_.getLength()){case 0:case 1:case 2:return this.accruedInput_.toString();case 3:if(this.attemptToExtractIdd_())this.isExpectingCountryCallingCode_=!0;else return this.extractedNationalPrefix_=this.removeNationalPrefixFromNationalNumber_(),this.attemptToChooseFormattingPattern_();default:if(this.isExpectingCountryCallingCode_)return this.attemptToExtractCountryCallingCode_()&&(this.isExpectingCountryCallingCode_=!1),this.prefixBeforeNationalNumber_.toString()+this.nationalNumber_.toString();if(0<this.possibleFormats_.length){var r=this.inputDigitHelper_(n),i=this.attemptToFormatAccruedDigits_();return 0<i.length?i:(this.narrowDownPossibleFormats_(this.nationalNumber_.toString()),this.maybeCreateNewTemplate_()?this.inputAccruedNationalNumber_():this.ableToFormat_?this.appendNationalNumber_(r):this.accruedInput_.toString())}return this.attemptToChooseFormattingPattern_()}},i18n.phonenumbers.AsYouTypeFormatter.prototype.attemptToChoosePatternWithPrefixExtracted_=function(){return this.ableToFormat_=!0,this.isExpectingCountryCallingCode_=!1,this.possibleFormats_=[],this.lastMatchPosition_=0,this.formattingTemplate_.clear(),this.currentFormattingPattern_="",this.attemptToChooseFormattingPattern_()},i18n.phonenumbers.AsYouTypeFormatter.prototype.getExtractedNationalPrefix_=function(){return this.extractedNationalPrefix_},i18n.phonenumbers.AsYouTypeFormatter.prototype.ableToExtractLongerNdd_=function(){var n,t;return 0<this.extractedNationalPrefix_.length&&(n=this.nationalNumber_.toString(),this.nationalNumber_.clear(),this.nationalNumber_.append(this.extractedNationalPrefix_),this.nationalNumber_.append(n),n=this.prefixBeforeNationalNumber_.toString(),t=n.lastIndexOf(this.extractedNationalPrefix_),this.prefixBeforeNationalNumber_.clear(),this.prefixBeforeNationalNumber_.append(n.substring(0,t))),this.extractedNationalPrefix_!=this.removeNationalPrefixFromNationalNumber_()},i18n.phonenumbers.AsYouTypeFormatter.prototype.isDigitOrLeadingPlusSign_=function(n){return i18n.phonenumbers.PhoneNumberUtil.CAPTURING_DIGIT_PATTERN.test(n)||1==this.accruedInput_.getLength()&&i18n.phonenumbers.PhoneNumberUtil.PLUS_CHARS_PATTERN.test(n)},i18n.phonenumbers.AsYouTypeFormatter.prototype.attemptToFormatAccruedDigits_=function(){for(var t,r,n=this.nationalNumber_.toString(),u=this.possibleFormats_.length,i=0;i<u;++i)if(t=this.possibleFormats_[i],r=t.getPatternOrDefault(),new RegExp("^(?:"+r+")$").test(n))return this.shouldAddSpaceAfterNationalPrefix_=i18n.phonenumbers.AsYouTypeFormatter.NATIONAL_PREFIX_SEPARATORS_PATTERN_.test(t.getNationalPrefixFormattingRule()),n=n.replace(new RegExp(r,"g"),t.getFormat()),this.appendNationalNumber_(n);return""},i18n.phonenumbers.AsYouTypeFormatter.prototype.appendNationalNumber_=function(n){var t=this.prefixBeforeNationalNumber_.getLength();return this.shouldAddSpaceAfterNationalPrefix_&&0<t&&this.prefixBeforeNationalNumber_.toString().charAt(t-1)!=i18n.phonenumbers.AsYouTypeFormatter.SEPARATOR_BEFORE_NATIONAL_NUMBER_?this.prefixBeforeNationalNumber_+i18n.phonenumbers.AsYouTypeFormatter.SEPARATOR_BEFORE_NATIONAL_NUMBER_+n:this.prefixBeforeNationalNumber_+n},i18n.phonenumbers.AsYouTypeFormatter.prototype.getRememberedPosition=function(){if(!this.ableToFormat_)return this.originalPosition_;for(var t=0,n=0,r=this.accruedInputWithoutFormatting_.toString(),i=this.currentOutput_.toString();t<this.positionToRemember_&&n<i.length;)r.charAt(t)==i.charAt(n)&&t++,n++;return n},i18n.phonenumbers.AsYouTypeFormatter.prototype.attemptToChooseFormattingPattern_=function(){var n=this.nationalNumber_.toString();return n.length>=i18n.phonenumbers.AsYouTypeFormatter.MIN_LEADING_DIGITS_LENGTH_?(this.getAvailableFormats_(n),n=this.attemptToFormatAccruedDigits_(),0<n.length?n:this.maybeCreateNewTemplate_()?this.inputAccruedNationalNumber_():this.accruedInput_.toString()):this.appendNationalNumber_(n)},i18n.phonenumbers.AsYouTypeFormatter.prototype.inputAccruedNationalNumber_=function(){var i=this.nationalNumber_.toString(),r=i.length,t,n;if(0<r){for(t="",n=0;n<r;n++)t=this.inputDigitHelper_(i.charAt(n));return this.ableToFormat_?this.appendNationalNumber_(t):this.accruedInput_.toString()}return this.prefixBeforeNationalNumber_.toString()},i18n.phonenumbers.AsYouTypeFormatter.prototype.isNanpaNumberWithNationalPrefix_=function(){if(1!=this.currentMetadata_.getCountryCode())return!1;var n=this.nationalNumber_.toString();return"1"==n.charAt(0)&&"0"!=n.charAt(1)&&"1"!=n.charAt(1)},i18n.phonenumbers.AsYouTypeFormatter.prototype.removeNationalPrefixFromNationalNumber_=function(){var i=this.nationalNumber_.toString(),t=0,n;return this.isNanpaNumberWithNationalPrefix_()?(t=1,this.prefixBeforeNationalNumber_.append("1").append(i18n.phonenumbers.AsYouTypeFormatter.SEPARATOR_BEFORE_NATIONAL_NUMBER_),this.isCompleteNumber_=!0):this.currentMetadata_.hasNationalPrefixForParsing()&&(n=new RegExp("^(?:"+this.currentMetadata_.getNationalPrefixForParsing()+")"),n=i.match(n),null!=n&&null!=n[0]&&0<n[0].length&&(this.isCompleteNumber_=!0,t=n[0].length,this.prefixBeforeNationalNumber_.append(i.substring(0,t)))),this.nationalNumber_.clear(),this.nationalNumber_.append(i.substring(t)),i.substring(0,t)},i18n.phonenumbers.AsYouTypeFormatter.prototype.attemptToExtractIdd_=function(){var t=this.accruedInputWithoutFormatting_.toString(),n=new RegExp("^(?:\\"+i18n.phonenumbers.PhoneNumberUtil.PLUS_SIGN+"|"+this.currentMetadata_.getInternationalPrefix()+")"),n=t.match(n);return null!=n&&null!=n[0]&&0<n[0].length?(this.isCompleteNumber_=!0,n=n[0].length,this.nationalNumber_.clear(),this.nationalNumber_.append(t.substring(n)),this.prefixBeforeNationalNumber_.clear(),this.prefixBeforeNationalNumber_.append(t.substring(0,n)),t.charAt(0)!=i18n.phonenumbers.PhoneNumberUtil.PLUS_SIGN&&this.prefixBeforeNationalNumber_.append(i18n.phonenumbers.AsYouTypeFormatter.SEPARATOR_BEFORE_NATIONAL_NUMBER_),!0):!1},i18n.phonenumbers.AsYouTypeFormatter.prototype.attemptToExtractCountryCallingCode_=function(){if(0==this.nationalNumber_.getLength())return!1;var n=new goog.string.StringBuffer,t=this.phoneUtil_.extractCountryCode(this.nationalNumber_,n);return 0==t?!1:(this.nationalNumber_.clear(),this.nationalNumber_.append(n.toString()),n=this.phoneUtil_.getRegionCodeForCountryCode(t),i18n.phonenumbers.PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY==n?this.currentMetadata_=this.phoneUtil_.getMetadataForNonGeographicalRegion(t):n!=this.defaultCountry_&&(this.currentMetadata_=this.getMetadataForRegion_(n)),this.prefixBeforeNationalNumber_.append(""+t).append(i18n.phonenumbers.AsYouTypeFormatter.SEPARATOR_BEFORE_NATIONAL_NUMBER_),this.extractedNationalPrefix_="",!0)},i18n.phonenumbers.AsYouTypeFormatter.prototype.normalizeAndAccrueDigitsAndPlusSign_=function(n,t){var i;return n==i18n.phonenumbers.PhoneNumberUtil.PLUS_SIGN?(i=n,this.accruedInputWithoutFormatting_.append(n)):(i=i18n.phonenumbers.PhoneNumberUtil.DIGIT_MAPPINGS[n],this.accruedInputWithoutFormatting_.append(i),this.nationalNumber_.append(i)),t&&(this.positionToRemember_=this.accruedInputWithoutFormatting_.getLength()),i},i18n.phonenumbers.AsYouTypeFormatter.prototype.inputDigitHelper_=function(n){var t=this.formattingTemplate_.toString(),i;return 0<=t.substring(this.lastMatchPosition_).search(this.DIGIT_PATTERN_)?(i=t.search(this.DIGIT_PATTERN_),n=t.replace(this.DIGIT_PATTERN_,n),this.formattingTemplate_.clear(),this.formattingTemplate_.append(n),this.lastMatchPosition_=i,n.substring(0,this.lastMatchPosition_+1)):(1==this.possibleFormats_.length&&(this.ableToFormat_=!1),this.currentFormattingPattern_="",this.accruedInput_.toString())},function(n){function e(t,i){this.element=t,this.$element=n(t),this.options=n.extend({},f,i),this._defaults=f,this._name=u,this.init()}var o=/\D/,u="phoneNumber",f={};e.prototype={init:function(){this.FORMATS={local:formatLocal,international:formatInternational,e164:formatE164};var n=this;this.$element.keypress(function(t){n.processKeyPress(t)}),this.$element.keydown(function(t){t.which==8&&n.processKeyPress(t)})},processKeyPress:function(n){var i,t;this.isValidInput(n)?this.hasFocusAtEnd()&&(n.preventDefault(),t=this.$element.val(),t=n.which==8?t.slice(0,-1):t+String.fromCharCode(n.which),i=this.FORMATS[this.options.format.toLowerCase()](this.options.country.toUpperCase(),t),i.length&&n.which==8&&i[i.length-1]==" "?this.$element.val(t):this.$element.val(i)):n.preventDefault()},hasFocusAtEnd:function(){return this.$element.prop("selectionStart")===null||this.$element.prop("selectionStart")===this.$element.val().length?!0:!1},isValidInput:function(n){var u=32,f=0,e=33,t,i,r;return n.which==8?!0:(t=this.$element.val().replace(/\D/g,""),i=this.options.format=="local"?10:15,t.length>=i&&!this.hasSelectedText(n)?!1:n.metaKey||n.ctrlKey?!0:n.which===u?!1:n.which===f?!0:n.which<e?!0:(r=/^\d$/,r.test(String.fromCharCode(n.which))||String.fromCharCode(n.which)==="+"||String.fromCharCode(n.which)==="-"))},hasSelectedText:function(){return this.$element.prop("selectionStart")!==null&&this.$element.prop("selectionStart")!==this.$element.prop("selectionEnd")?!0:!1}},n.fn[u]=function(t){if(typeof formatLocal=="undefined"){n.error("jQuery."+u+" depency PhoneFormat.js not loaded");return}return this.each(function(){n.data(this,"plugin_"+u)||n.data(this,"plugin_"+u,new e(this,t))})}}(jQuery,window,document),function(n){var i=0;n.widget("ech.multiselect",{options:{header:!0,height:175,minWidth:225,classes:"",checkAllText:"Check all",uncheckAllText:"Uncheck all",noneSelectedText:"Select options",selectedText:"# selected",selectedList:0,show:null,hide:null,autoOpen:!1,multiple:!0,position:{}},_create:function(){var i=this.element.hide(),t=this.options;this.speed=n.fx.speeds._default,this._isOpen=!1;var u=(this.button=n('<button type="button"><span class="ui-icon ui-icon-triangle-2-n-s"><\/span><\/button>')).addClass("ui-multiselect ui-widget ui-state-default ui-corner-all").addClass(t.classes).attr({title:i.attr("title"),"aria-haspopup":!0,tabIndex:i.attr("tabIndex")}).insertAfter(i),e=(this.buttonlabel=n("<span />")).html(t.noneSelectedText).appendTo(u),r=(this.menu=n("<div />")).addClass("ui-multiselect-menu ui-widget ui-widget-content ui-corner-all").addClass(t.classes).appendTo(document.body),f=(this.header=n("<div />")).addClass("ui-widget-header ui-corner-all ui-multiselect-header ui-helper-clearfix").appendTo(r),o=(this.headerLinkContainer=n("<ul />")).addClass("ui-helper-reset").html(function(){return t.header===!0?'<li><a class="ui-multiselect-all" href="#"><span class="ui-icon ui-icon-check"><\/span><span>'+t.checkAllText+'<\/span><\/a><\/li><li><a class="ui-multiselect-none" href="#"><span class="ui-icon ui-icon-closethick"><\/span><span>'+t.uncheckAllText+"<\/span><\/a><\/li>":typeof t.header=="string"?"<li>"+t.header+"<\/li>":""}).append('<li class="ui-multiselect-close"><a href="#" class="ui-multiselect-close"><span class="ui-icon ui-icon-circle-close"><\/span><\/a><\/li>').appendTo(f),s=(this.checkboxContainer=n("<ul />")).addClass("ui-multiselect-checkboxes ui-helper-reset").appendTo(r);this._bindEvents(),this.refresh(!0),t.multiple||r.addClass("ui-multiselect-single")},_init:function(){this.options.header===!1&&this.header.hide(),this.options.multiple||this.headerLinkContainer.find(".ui-multiselect-all, .ui-multiselect-none").hide(),this.options.autoOpen&&this.open(),this.element.is(":disabled")&&this.disable()},refresh:function(t){var u=this.element,f=this.options,s=this.menu,h=this.checkboxContainer,e=[],r="",o=u.attr("id")||i++;u.find("option").each(function(t){var w=n(this),u=this.parentNode,c=this.innerHTML,v=this.title,y=this.value,l="ui-multiselect-"+(this.id||o+"-option-"+t),s=this.disabled,a=this.selected,h=["ui-corner-all"],p=(s?"ui-multiselect-disabled ":" ")+this.className,i;u.tagName==="OPTGROUP"&&(i=u.getAttribute("label"),n.inArray(i,e)===-1&&(r+='<li class="ui-multiselect-optgroup-label '+u.className+'"><a href="#">'+i+"<\/a><\/li>",e.push(i))),s&&h.push("ui-state-disabled"),a&&!f.multiple&&h.push("ui-state-active"),r+='<li class="'+p+'">',r+='<label for="'+l+'" title="'+v+'" class="'+h.join(" ")+'">',r+='<input id="'+l+'" name="multiselect_'+o+'" type="'+(f.multiple?"checkbox":"radio")+'" value="'+y+'" title="'+c+'"',a&&(r+=' checked="checked"',r+=' aria-selected="true"'),s&&(r+=' disabled="disabled"',r+=' aria-disabled="true"'),r+=" /><span>"+c+"<\/span><\/label><\/li>"}),h.html(r),this.labels=s.find("label"),this.inputs=this.labels.children("input"),this._setButtonWidth(),this._setMenuWidth(),this.button[0].defaultValue=this.update(),t||this._trigger("refresh")},update:function(){var t=this.options,u=this.inputs,f=u.filter(":checked"),r=f.length,i;return i=r===0?t.noneSelectedText:n.isFunction(t.selectedText)?t.selectedText.call(this,r,u.length,f.get()):/\d/.test(t.selectedList)&&t.selectedList>0&&r<=t.selectedList?f.map(function(){return n(this).next().html()}).get().join(", "):t.selectedText.replace("#",r).replace("#",u.length),this.buttonlabel.html(i),i},_bindEvents:function(){function r(){return t[t._isOpen?"close":"open"](),!1}var t=this,i=this.button;i.find("span").bind("click.multiselect",r),i.bind({click:r,keypress:function(n){switch(n.which){case 27:case 38:case 37:t.close();break;case 39:case 40:t.open()}},mouseenter:function(){i.hasClass("ui-state-disabled")||n(this).addClass("ui-state-hover")},mouseleave:function(){n(this).removeClass("ui-state-hover")},focus:function(){i.hasClass("ui-state-disabled")||n(this).addClass("ui-state-focus")},blur:function(){n(this).removeClass("ui-state-focus")}}),this.header.delegate("a","click.multiselect",function(i){n(this).hasClass("ui-multiselect-close")?t.close():t[n(this).hasClass("ui-multiselect-all")?"checkAll":"uncheckAll"](),i.preventDefault()}),this.menu.delegate("li.ui-multiselect-optgroup-label a","click.multiselect",function(i){i.preventDefault();var f=n(this),r=f.parent().nextUntil("li.ui-multiselect-optgroup-label").find("input:visible:not(:disabled)"),u=r.get(),e=f.parent().text();t._trigger("beforeoptgrouptoggle",i,{inputs:u,label:e})!==!1&&(t._toggleChecked(r.filter(":checked").length!==r.length,r),t._trigger("optgrouptoggle",i,{inputs:u,label:e,checked:u[0].checked}))}).delegate("label","mouseenter.multiselect",function(){n(this).hasClass("ui-state-disabled")||(t.labels.removeClass("ui-state-hover"),n(this).addClass("ui-state-hover").find("input").focus())}).delegate("label","keydown.multiselect",function(i){i.preventDefault();switch(i.which){case 9:case 27:t.close();break;case 38:case 40:case 37:case 39:t._traverse(i.which,this);break;case 13:n(this).find("input")[0].click()}}).delegate('input[type="checkbox"], input[type="radio"]',"click.multiselect",function(i){var u=n(this),f=this.value,r=this.checked,e=t.element.find("option");if(this.disabled||t._trigger("click",i,{value:f,text:this.title,checked:r})===!1){i.preventDefault();return}u.focus(),u.attr("aria-selected",r),e.each(function(){this.value===f?this.selected=r:t.options.multiple||(this.selected=!1)}),t.options.multiple||(t.labels.removeClass("ui-state-active"),u.closest("label").toggleClass("ui-state-active",r),t.close()),t.element.trigger("change"),setTimeout(n.proxy(t.update,t),10)}),n(document).bind("mousedown.multiselect",function(i){!t._isOpen||n.contains(t.menu[0],i.target)||n.contains(t.button[0],i.target)||i.target===t.button[0]||t.close()}),n(this.element[0].form).bind("reset.multiselect",function(){setTimeout(n.proxy(t.refresh,t),10)})},_setButtonWidth:function(){var n=this.element.outerWidth(),t=this.options;/\d/.test(t.minWidth)&&n<t.minWidth&&(n=t.minWidth),this.button.width(n)},_setMenuWidth:function(){var n=this.menu,t=this.button.outerWidth()-parseInt(n.css("padding-left"),10)-parseInt(n.css("padding-right"),10)-parseInt(n.css("border-right-width"),10)-parseInt(n.css("border-left-width"),10);n.width(t||this.button.outerWidth())},_traverse:function(t,i){var e=n(i),r=t===38||t===37,f=e.parent()[r?"prevAll":"nextAll"]("li:not(.ui-multiselect-disabled, .ui-multiselect-optgroup-label)")[r?"last":"first"](),u;f.length?f.find("label").trigger("mouseover"):(u=this.menu.find("ul").last(),this.menu.find("label")[r?"last":"first"]().trigger("mouseover"),u.scrollTop(r?u.height():0))},_toggleState:function(n,t){return function(){this.disabled||(this[n]=t),t?this.setAttribute("aria-selected",!0):this.removeAttribute("aria-selected")}},_toggleChecked:function(t,i){var r=i&&i.length?i:this.inputs,f=this,u;r.each(this._toggleState("checked",t)),r.eq(0).focus(),this.update(),u=r.map(function(){return this.value}).get(),this.element.find("option").each(function(){!this.disabled&&n.inArray(this.value,u)>-1&&f._toggleState("selected",t).call(this)}),r.length&&this.element.trigger("change")},_toggleDisabled:function(t){this.button.attr({disabled:t,"aria-disabled":t})[t?"addClass":"removeClass"]("ui-state-disabled");var i=this.menu.find("input"),r="ech-multiselect-disabled";i=t?i.filter(":enabled").data(r,!0):i.filter(function(){return n.data(this,r)===!0}).removeData(r),i.attr({disabled:t,"arial-disabled":t}).parent()[t?"addClass":"removeClass"]("ui-state-disabled"),this.element.attr({disabled:t,"aria-disabled":t})},open:function(){var h=this,r=this.button,u=this.menu,e=this.speed,i=this.options,o=[];if(this._trigger("beforeopen")!==!1&&!r.hasClass("ui-state-disabled")&&!this._isOpen){var c=u.find("ul").last(),f=i.show,s=r.offset();n.isArray(i.show)&&(f=i.show[0],e=i.show[1]||h.speed),f&&(o=[f,e]),c.scrollTop(0).height(i.height),n.ui.position&&!n.isEmptyObject(i.position)?(i.position.of=i.position.of||r,u.show().position(i.position).hide()):u.css({top:s.top+r.outerHeight(),left:s.left}),n.fn.show.apply(u,o),this.labels.eq(0).trigger("mouseover").trigger("mouseenter").find("input").trigger("focus"),r.addClass("ui-state-active"),this._isOpen=!0,this._trigger("open")}},close:function(){if(this._trigger("beforeclose")!==!1){var t=this.options,i=t.hide,r=this.speed,u=[];n.isArray(t.hide)&&(i=t.hide[0],r=t.hide[1]||this.speed),i&&(u=[i,r]),n.fn.hide.apply(this.menu,u),this.button.removeClass("ui-state-active").trigger("blur").trigger("mouseleave"),this._isOpen=!1,this._trigger("close")}},enable:function(){this._toggleDisabled(!1)},disable:function(){this._toggleDisabled(!0)},checkAll:function(){this._toggleChecked(!0),this._trigger("checkAll")},uncheckAll:function(){this._toggleChecked(!1),this._trigger("uncheckAll")},getChecked:function(){return this.menu.find("input").filter(":checked")},destroy:function(){return n.Widget.prototype.destroy.call(this),this.button.remove(),this.menu.remove(),this.element.show(),this},isOpen:function(){return this._isOpen},widget:function(){return this.menu},getButton:function(){return this.button},_setOption:function(t,i){var r=this.menu;switch(t){case"header":r.find("div.ui-multiselect-header")[i?"show":"hide"]();break;case"checkAllText":r.find("a.ui-multiselect-all span").eq(-1).text(i);break;case"uncheckAllText":r.find("a.ui-multiselect-none span").eq(-1).text(i);break;case"height":r.find("ul").last().height(parseInt(i,10));break;case"minWidth":this.options[t]=parseInt(i,10),this._setButtonWidth(),this._setMenuWidth();break;case"selectedText":case"selectedList":case"noneSelectedText":this.options[t]=i,this.update();break;case"classes":r.add(this.button).removeClass(this.options.classes).addClass(i);break;case"multiple":r.toggleClass("ui-multiselect-single",!i),this.options.multiple=i,this.element[0].multiple=i,this.refresh()}n.Widget.prototype._setOption.apply(this,arguments)}})}(jQuery),jQuery.fn.print=function(){var t,i;if(this.size()>1){this.eq(0).print();return}if(this.size()){t="printer-"+ +new Date,i=$("<iframe name='"+t+"'>"),i.css("width","1px").css("height","1px").css("position","absolute").css("left","-9999px").appendTo($("body:first"));var r=window.frames[t],n=r.document,u=$("<div>").append($("style").clone());n.open(),n.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'),n.write("<html>"),n.write("<body>"),n.write("<head>"),n.write("<title>"),n.write(document.title),n.write("<\/title>"),n.write(u.html()),n.write("<\/head>"),n.write(this.html()),n.write("<\/body>"),n.write("<\/html>"),n.close(),r.focus(),r.print(),setTimeout(function(){i.remove()},6e4)}},function(n){"use strict";n.keyboard=function(t,i){var r=this,u;r.$el=n(t),r.el=t,r.$el.data("keyboard",r),r.init=function(){r.options=u=n.extend(!0,{},n.keyboard.defaultOptions,i),r.shiftActive=r.altActive=r.metaActive=r.sets=r.capsLock=!1,r.lastKeyset=[!1,!1,!1],r.rows=["","-shift","-alt","-alt-shift"],r.acceptedKeys=[],r.mappedKeys={},n('<!--[if lte IE 8]><script>jQuery("body").addClass("oldie");<\/script><![endif]--><!--[if IE]><script>jQuery("body").addClass("ie");<\/script><![endif]-->').appendTo("body").remove(),r.msie=n("body").hasClass("oldie"),r.allie=n("body").hasClass("ie"),r.inPlaceholder=r.$el.attr("placeholder")||"",r.watermark=typeof document.createElement("input").placeholder!="undefined"&&r.inPlaceholder!=="",r.regex=n.keyboard.comboRegex,r.decimal=/^\./.test(u.display.dec)?!0:!1,r.repeatTime=1e3/(u.repeatRate||20),r.temp=n('<input style="position:absolute;left:-9999em;top:-9999em;" type="text" value="testing">').appendTo("body").caret(3,3),r.checkCaret=u.lockInput||r.temp.hide().show().caret().start!==3?!0:!1,r.temp.remove(),r.lastCaret={start:0,end:0},r.temp=["",0,0],n.each("initialized beforeVisible visible hidden canceled accepted beforeClose".split(" "),function(t,i){n.isFunction(u[i])&&r.$el.bind(i+".keyboard",u[i])}),u.alwaysOpen&&(u.stayOpen=!0),n(document).bind("mousedown.keyboard keyup.keyboard touchstart.keyboard",function(t){if(!r.opening&&(r.escClose(t),t.target&&n(t.target).hasClass("ui-keyboard-input"))){var i=n(t.target).data("keyboard");i&&i.options.openOn&&i.focusOn()}}),r.$el.addClass("ui-keyboard-input "+u.css.input).attr({"aria-haspopup":"true",role:"textbox"}),(r.$el.is(":disabled")||r.$el.attr("readonly")&&!r.$el.hasClass("ui-keyboard-lockedinput"))&&r.$el.addClass("ui-keyboard-nokeyboard"),u.openOn&&r.$el.bind(u.openOn+".keyboard",function(){r.focusOn()}),r.watermark||r.$el.val()!==""||r.inPlaceholder===""||r.$el.attr("placeholder")===""||r.$el.addClass("ui-keyboard-placeholder").val(r.inPlaceholder),r.$el.trigger("initialized.keyboard",[r,r.el]),u.alwaysOpen&&r.reveal()},r.focusOn=function(){u.usePreview&&r.$el.is(":visible")&&(r.lastCaret=r.$el.caret()),(!r.isVisible()||u.alwaysOpen)&&(clearTimeout(r.timer),r.reveal())},r.reveal=function(){if(r.opening=!0,n(".ui-keyboard:not(.ui-keyboard-always-open)").hide(),r.$el.is(":disabled")||r.$el.attr("readonly")&&!r.$el.hasClass("ui-keyboard-lockedinput")){r.$el.addClass("ui-keyboard-nokeyboard");return}r.$el.removeClass("ui-keyboard-nokeyboard"),u.openOn&&r.$el.unbind(u.openOn+".keyboard"),typeof r.$keyboard=="undefined"&&r.startup(),n(".ui-keyboard-has-focus").removeClass("ui-keyboard-has-focus"),n(".ui-keyboard-input-current").removeClass("ui-keyboard-input-current"),r.$el.addClass("ui-keyboard-input-current"),r.isCurrent(!0),r.watermark||r.el.value!==r.inPlaceholder||r.$el.removeClass("ui-keyboard-placeholder").val(""),r.originalContent=r.$el.val(),r.$preview.val(r.originalContent),u.acceptValid&&r.checkValid();var i,t;return r.position=u.position,r.position.of=r.position.of||r.$el.data("keyboardPosition")||r.$el,r.position.collision=u.usePreview?r.position.collision||"fit fit":"flip flip",u.resetDefault&&(r.shiftActive=r.altActive=r.metaActive=!1,r.showKeySet()),r.$keyboard.css({position:"absolute",left:0,top:0}),r.$el.trigger("beforeVisible.keyboard",[r,r.el]),r.$keyboard.addClass("ui-keyboard-has-focus").show(),u.usePreview&&r.msie&&(typeof r.width=="undefined"&&(r.$preview.hide(),r.width=Math.ceil(r.$keyboard.width()),r.$preview.show()),r.$preview.width(r.width)),n.ui.position&&r.$keyboard.position(r.position),u.initialFocus&&r.$preview.focus(),r.checkDecimal(),r.lineHeight=parseInt(r.$preview.css("lineHeight"),10)||parseInt(r.$preview.css("font-size"),10)+4,u.caretToEnd&&(t=r.originalContent.length,r.lastCaret={start:t,end:t}),r.allie&&(t=r.lastCaret.start||r.originalContent.length,i={start:t,end:t},r.lastCaret||(r.lastCaret=i),r.lastCaret.end===0&&r.lastCaret.start>0&&(r.lastCaret.end=r.lastCaret.start),r.lastCaret.start<0&&(r.lastCaret=i)),setTimeout(function(){r.opening=!1,u.initialFocus&&r.$preview.caret(r.lastCaret.start,r.lastCaret.end),r.$el.trigger("visible.keyboard",[r,r.el])},10),r},r.startup=function(){r.$keyboard=r.buildKeyboard(),r.$allKeys=r.$keyboard.find("button.ui-keyboard-button"),r.preview=r.$preview[0],r.$decBtn=r.$keyboard.find(".ui-keyboard-dec"),r.wheel=n.isFunction(n.fn.mousewheel),r.alwaysAllowed=[20,33,34,35,36,37,38,39,40,45,46],u.enterNavigation&&r.alwaysAllowed.push(13),r.$preview.bind("keypress.keyboard",function(t){var i=r.lastKey=String.fromCharCode(t.charCode||t.which);if(r.$lastKey=[],r.checkCaret&&(r.lastCaret=r.$preview.caret()),r.capsLock=i>=65&&i<=90&&!t.shiftKey||i>=97&&i<=122&&t.shiftKey?!0:!1,u.restrictInput){if((t.which===8||t.which===0)&&n.inArray(t.keyCode,r.alwaysAllowed))return;n.inArray(i,r.acceptedKeys)===-1&&t.preventDefault()}else if((t.ctrlKey||t.metaKey)&&(t.which===97||t.which===99||t.which===118||t.which>=120&&t.which<=122))return;r.hasMappedKeys&&r.mappedKeys.hasOwnProperty(i)&&(r.lastKey=r.mappedKeys[i],r.insertText(r.lastKey),t.preventDefault()),r.checkMaxLength()}).bind("keyup.keyboard",function(t){switch(t.which){case 9:r.tab&&u.tabNavigation&&!u.lockInput?(r.shiftActive=t.shiftKey,n.keyboard.keyaction.tab(r),r.tab=!1):t.preventDefault();break;case 27:return r.close(),!1}clearTimeout(r.throttled),r.throttled=setTimeout(function(){r.isVisible()&&r.checkCombos()},100),r.checkMaxLength(),n.isFunction(u.change)&&u.change(n.Event("change"),r,r.el),r.$el.trigger("change.keyboard",[r,r.el])}).bind("keydown.keyboard",function(t){switch(t.which){case 9:return u.tabNavigation?(r.tab=!0,!1):(r.tab=!0,!1);case 13:n.keyboard.keyaction.enter(r,null,t);break;case 20:r.shiftActive=r.capsLock=!r.capsLock,r.showKeySet(this);break;case 86:if(t.ctrlKey||t.metaKey){if(u.preventPaste){t.preventDefault();return}r.checkCombos()}}}).bind("mouseup.keyboard touchend.keyboard",function(){r.checkCaret&&(r.lastCaret=r.$preview.caret())}),r.$keyboard.bind("mousedown.keyboard click.keyboard touchstart.keyboard",function(n){n.stopPropagation()}),u.preventPaste&&(r.$preview.bind("contextmenu.keyboard",function(n){n.preventDefault()}),r.$el.bind("contextmenu.keyboard",function(n){n.preventDefault()})),u.appendLocally?r.$el.after(r.$keyboard):r.$keyboard.appendTo("body"),r.$allKeys.bind(u.keyBinding.split(" ").join(".keyboard ")+".keyboard repeater.keyboard",function(t){if(!r.$keyboard.is(":visible"))return!1;var e,i=n.data(this,"key"),f=i.action.split(":")[0];if(r.$preview.focus(),r.$lastKey=n(this),r.lastKey=i.curTxt,r.checkCaret&&r.$preview.caret(r.lastCaret.start,r.lastCaret.end),f.match("meta")&&(f="meta"),n.keyboard.keyaction.hasOwnProperty(f)&&n(this).hasClass("ui-keyboard-actionkey")){if(n.keyboard.keyaction[f](r,this,t)===!1)return!1}else typeof i.action!="undefined"&&(e=r.lastKey=r.wheel&&!n(this).hasClass("ui-keyboard-actionkey")?i.curTxt:i.action,r.insertText(e),r.capsLock||u.stickyShift||t.shiftKey||(r.shiftActive=!1,r.showKeySet(this)));r.checkCombos(),r.checkMaxLength(),n.isFunction(u.change)&&u.change(n.Event("change"),r,r.el),r.$el.trigger("change.keyboard",[r,r.el]),r.$preview.focus(),r.checkCaret&&r.$preview.caret(r.lastCaret.start,r.lastCaret.end),t.preventDefault()}).bind("mouseenter.keyboard mouseleave.keyboard",function(t){if(r.isCurrent()){var e=this,f=n(this),i=n.data(e,"key");t.type!=="mouseenter"||r.el.type==="password"||f.hasClass(u.css.buttonDisabled)||f.addClass(u.css.buttonHover).attr("title",function(n,t){return r.wheel&&t===""&&r.sets?u.wheelMessage:t}),t.type==="mouseleave"&&(i.curTxt=i.original,i.curNum=0,n.data(e,"key",i),f.removeClass(r.el.type==="password"?"":u.css.buttonHover).attr("title",function(n,t){return t===u.wheelMessage?"":t}).find("span").text(i.original))}}).bind("mousewheel.keyboard",function(t,i){if(r.wheel){var f,e=n(this),u=n.data(this,"key");return f=u.layers||r.getLayers(e),u.curNum+=i>0?-1:1,u.curNum>f.length-1&&(u.curNum=0),u.curNum<0&&(u.curNum=f.length-1),u.layers=f,u.curTxt=f[u.curNum],n.data(this,"key",u),e.find("span").text(f[u.curNum]),!1}}).bind("mouseup.keyboard mouseleave.kb touchend.kb touchmove.kb touchcancel.kb",function(t){return t.type==="mouseleave"?n(this).removeClass(u.css.buttonHover):(r.isVisible()&&r.isCurrent()&&r.$preview.focus(),r.checkCaret&&r.$preview.caret(r.lastCaret.start,r.lastCaret.end)),r.mouseRepeat=[!1,""],clearTimeout(r.repeater),!1}).bind("click.keyboard",function(){return!1}).filter(":not(.ui-keyboard-actionkey)").add(".ui-keyboard-tab, .ui-keyboard-bksp, .ui-keyboard-space, .ui-keyboard-enter",r.$keyboard).bind("mousedown.kb touchstart.kb",function(){if(u.repeatRate!==0){var t=n(this);r.mouseRepeat=[!0,t],setTimeout(function(){r.mouseRepeat[0]&&r.mouseRepeat[1]===t&&r.repeatKey(t)},u.repeatDelay)}return!1}),n(window).resize(function(){r.isVisible()&&r.$keyboard.position(r.position)})},r.isVisible=function(){return typeof r.$keyboard=="undefined"?!1:r.$keyboard.is(":visible")},r.insertText=function(n){var u,i,f,e=r.$preview.val(),t=r.$preview.caret(),o=r.$preview.scrollLeft(),h=r.$preview.scrollTop(),s=e.length;t.end<t.start&&(t.end=t.start),t.start>s&&(t.end=t.start=s),r.preview.tagName==="TEXTAREA"&&(r.msie&&e.substr(t.start,1)==="\n"&&(t.start+=1,t.end+=1),f=e.split("\n").length-1,r.preview.scrollTop=f>0?r.lineHeight*f:h),u=n==="bksp"&&t.start===t.end?!0:!1,n=n==="bksp"?"":n,i=t.start+(u?-1:n.length),o+=parseInt(r.$preview.css("fontSize"),10)*(n==="bksp"?-1:1),r.$preview.val(r.$preview.val().substr(0,t.start-(u?1:0))+n+r.$preview.val().substr(t.end)).caret(i,i).scrollLeft(o),r.checkCaret&&(r.lastCaret={start:i,end:i})},r.checkMaxLength=function(){var n,t=r.$preview.val();u.maxLength!==!1&&t.length>u.maxLength&&(n=Math.min(r.$preview.caret().start,u.maxLength),r.$preview.val(t.substring(0,u.maxLength)),r.$preview.caret(n,n),r.lastCaret={start:n,end:n}),r.$decBtn.length&&r.checkDecimal()},r.repeatKey=function(n){n.trigger("repeater.keyboard"),r.mouseRepeat[0]&&(r.repeater=setTimeout(function(){r.repeatKey(n)},r.repeatTime))},r.showKeySet=function(n){var t="",i=(r.shiftActive?1:0)+(r.altActive?2:0);if(r.shiftActive||(r.capsLock=!1),r.metaActive?(t=n&&n.name&&/meta/.test(n.name)?n.name:"",t===""?t=r.metaActive===!0?"":r.metaActive:r.metaActive=t,(!u.stickyShift&&r.lastKeyset[2]!==r.metaActive||(r.shiftActive||r.altActive)&&!r.$keyboard.find(".ui-keyboard-keyset-"+t+r.rows[i]).length)&&(r.shiftActive=r.altActive=!1)):!u.stickyShift&&r.lastKeyset[2]!==r.metaActive&&r.shiftActive&&(r.shiftActive=r.altActive=!1),i=(r.shiftActive?1:0)+(r.altActive?2:0),t=i===0&&!r.metaActive?"-default":t===""?"":"-"+t,!r.$keyboard.find(".ui-keyboard-keyset"+t+r.rows[i]).length){r.shiftActive=r.lastKeyset[0],r.altActive=r.lastKeyset[1],r.metaActive=r.lastKeyset[2];return}r.$keyboard.find(".ui-keyboard-alt, .ui-keyboard-shift, .ui-keyboard-actionkey[class*=meta]").removeClass(u.css.buttonAction).end().find(".ui-keyboard-alt")[r.altActive?"addClass":"removeClass"](u.css.buttonAction).end().find(".ui-keyboard-shift")[r.shiftActive?"addClass":"removeClass"](u.css.buttonAction).end().find(".ui-keyboard-lock")[r.capsLock?"addClass":"removeClass"](u.css.buttonAction).end().find(".ui-keyboard-keyset").hide().end().find(".ui-keyboard-keyset"+t+r.rows[i]).show().end().find(".ui-keyboard-actionkey.ui-keyboard"+t).addClass(u.css.buttonAction),r.lastKeyset=[r.shiftActive,r.altActive,r.metaActive]},r.checkCombos=function(){if(r.isVisible()){var e,s,i,f,t=r.$preview.val(),n=r.$preview.caret(),o=t.length;if(n.end<n.start&&(n.end=n.start),n.start>o&&(n.end=n.start=o),r.msie&&t.substr(n.start,1)==="\n"&&(n.start+=1,n.end+=1),u.useCombos&&(r.msie?t=t.replace(r.regex,function(n,t,i){return u.combos.hasOwnProperty(t)?u.combos[t][i]||n:n}):r.$preview.length&&(i=n.start-(n.start-2>=0?2:0),r.$preview.caret(i,n.end),f=(r.$preview.caret().text||"").replace(r.regex,function(n,t,i){return u.combos.hasOwnProperty(t)?u.combos[t][i]||n:n}),r.$preview.val(r.$preview.caret().replace(f)),t=r.$preview.val())),u.restrictInput&&t!==""){for(i=t,s=r.acceptedKeys.length,e=0;e<s;e++)i!==""&&(f=r.acceptedKeys[e],t.indexOf(f)>=0&&(/[\[|\]|\\|\^|\$|\.|\||\?|\*|\+|\(|\)|\{|\}]/g.test(f)&&(f="\\"+f),i=i.replace(new RegExp(f,"g"),"")));i!==""&&(t=t.replace(i,""))}return n.start+=t.length-o,n.end+=t.length-o,r.$preview.val(t),r.$preview.caret(n.start,n.end),r.preview.scrollTop=r.lineHeight*(t.substring(0,n.start).split("\n").length-1),r.lastCaret={start:n.start,end:n.end},u.acceptValid&&r.checkValid(),t}},r.checkValid=function(){var n=!0;u.validate&&typeof u.validate=="function"&&(n=u.validate(r,r.$preview.val(),!1)),r.$keyboard.find(".ui-keyboard-accept")[n?"removeClass":"addClass"]("ui-keyboard-invalid-input")[n?"addClass":"removeClass"]("ui-keyboard-valid-input")},r.checkDecimal=function(){r.decimal&&/\./g.test(r.preview.value)||!r.decimal&&/\,/g.test(r.preview.value)?r.$decBtn.attr({disabled:"disabled","aria-disabled":"true"}).removeClass(u.css.buttonDefault+" "+u.css.buttonHover).addClass(u.css.buttonDisabled):r.$decBtn.removeAttr("disabled").attr({"aria-disabled":"false"}).addClass(u.css.buttonDefault).removeClass(u.css.buttonDisabled)},r.getLayers=function(t){var i,r;return i=t.attr("data-pos"),r=t.closest(".ui-keyboard").find('button[data-pos="'+i+'"]').map(function(){return n(this).find("> span").text()}).get()},r.isCurrent=function(t){var i=n.keyboard.currentKeyboard||!1;return t?i=n.keyboard.currentKeyboard=r.el:t===!1&&i===r.el&&(i=n.keyboard.currentKeyboard=""),i===r.el},r.switchInput=function(t,i){if(typeof u.switchInput=="function")u.switchInput(r,t,i);else{r.$keyboard.hide();var o,s=!1,e=n("button, input, textarea, a").filter(":visible"),f=e.index(r.$el)+(t?1:-1);r.$keyboard.show(),f>e.length-1&&(s=u.stopAtEnd,f=0),f<0&&(s=u.stopAtEnd,f=e.length-1),s||(r.close(i),o=e.eq(f).data("keyboard"),o&&o.options.openOn.length?o.focusOn():e.eq(f).focus())}return!1},r.close=function(t){if(r.isVisible()){clearTimeout(r.throttled);var i=t?r.checkCombos():r.originalContent;if(t&&u.validate&&typeof u.validate=="function"&&!u.validate(r,i,!0)&&(i=r.originalContent,t=!1,u.cancelClose))return;r.isCurrent(!1),r.$el.removeClass("ui-keyboard-input-current ui-keyboard-autoaccepted").addClass(t||!1?t===!0?"":"ui-keyboard-autoaccepted":"").trigger(u.alwaysOpen?"":"beforeClose.keyboard",[r,r.el,t||!1]).val(i).scrollTop(r.el.scrollHeight).trigger(t||!1?"accepted.keyboard":"canceled.keyboard",[r,r.el]).trigger(u.alwaysOpen?"inactive.keyboard":"hidden.keyboard",[r,r.el]).blur(),u.openOn&&(r.timer=setTimeout(function(){r.$el.bind(u.openOn+".keyboard",function(){r.focusOn()}),n(":focus")[0]===r.el&&r.$el.blur()},500)),u.alwaysOpen||r.$keyboard.hide(),r.watermark||r.el.value!==""||r.inPlaceholder===""||r.$el.addClass("ui-keyboard-placeholder").val(r.inPlaceholder),r.$el.trigger("change")}return!!t},r.accept=function(){return r.close(!0)},r.escClose=function(n){if(n.type==="keyup")return n.which===27?r.close():"";var t=r.isCurrent();r.isVisible()&&(!u.alwaysOpen||t)&&(u.alwaysOpen||!u.stayOpen||!t||r.isVisible())&&n.target!==r.el&&t&&(r.allie&&n.preventDefault(),r.close(u.autoAccept?"true":!1))},r.keyBtn=n("<button />").attr({role:"button","aria-disabled":"false",tabindex:"-1"}).addClass("ui-keyboard-button"),r.addKey=function(t,i,f){var c,h,l,s,o,e=f===!0?t:u.display[i]||t,a=f===!0?t.charCodeAt(0):t;return/\(.+\)/.test(e)&&(s=e.replace(/\(([^()]+)\)/,""),l=e.match(/\(([^()]+)\)/)[1],e=s,o=s.split(":"),s=o[0]!==""&&o.length>1?o[0]:s,r.mappedKeys[l]=s),o=e.split(":"),o[0]===""&&o[1]===""&&(e=":"),e=o[0]!==""&&o.length>1?n.trim(o[0]):e,c=o.length>1?n.trim(o[1]).replace(/_/g," ")||"":"",h=e.length>1?" ui-keyboard-widekey":"",h+=f?"":" ui-keyboard-actionkey",r.keyBtn.clone().attr({"data-value":e,name:a,"data-pos":r.temp[1]+","+r.temp[2],title:c}).data("key",{action:t,original:e,curTxt:e,curNum:0}).addClass("ui-keyboard-"+a+h+" "+u.css.buttonDefault).html("<span>"+e+"<\/span>").appendTo(r.temp[0])},r.buildKeyboard=function(){var t,e,o,s,l,i,f,h,a=0,c=n("<div />").addClass("ui-keyboard "+u.css.container+(u.alwaysOpen?" ui-keyboard-always-open":"")).attr({role:"textbox"}).hide();return u.usePreview?(r.$preview=r.$el.clone(!1).removeAttr("id").removeClass("ui-keyboard-placeholder ui-keyboard-input").addClass("ui-keyboard-preview "+u.css.input).attr("tabindex","-1").show(),n("<div />").addClass("ui-keyboard-preview-wrapper").append(r.$preview).appendTo(c)):(r.$preview=r.$el,u.position.at=u.position.at2),u.lockInput&&r.$preview.addClass("ui-keyboard-lockedinput").attr({readonly:"readonly"}),u.layout!=="custom"&&n.keyboard.layouts.hasOwnProperty(u.layout)||(u.layout="custom",n.keyboard.layouts.custom=u.customLayout||{"default":["{cancel}"]}),n.each(n.keyboard.layouts[u.layout],function(v,y){if(v!=="")for(a++,o=n("<div />").attr("name",v).addClass("ui-keyboard-keyset ui-keyboard-keyset-"+v).appendTo(c)[v==="default"?"show":"hide"](),e=0;e<y.length;e++){for(l=n.trim(y[e]).replace(/\{(\.?)[\s+]?:[\s+]?(\.?)\}/g,"{$1:$2}"),f=l.split(/\s+/),i=0;i<f.length;i++)if(r.temp=[o,e,i],s=!1,f[i].length!==0)if(/^\{\S+\}$/.test(f[i])){if(t=f[i].match(/^\{(\S+)\}$/)[1].toLowerCase(),/\!\!/.test(t)&&(t=t.replace("!!",""),s=!0),/^sp:((\d+)?([\.|,]\d+)?)(em|px)?$/.test(t)&&(h=parseFloat(t.replace(/,/,".").match(/^sp:((\d+)?([\.|,]\d+)?)(em|px)?$/)[1]||0),n("<span>&nbsp;<\/span>").width(t.match("px")?h+"px":h*2+"em").addClass("ui-keyboard-button ui-keyboard-spacer").appendTo(o)),/^meta\d+\:?(\w+)?/.test(t)){r.addKey(t,t);continue}switch(t){case"a":case"accept":r.addKey("accept",t).addClass(u.css.buttonAction);break;case"alt":case"altgr":r.addKey("alt","alt");break;case"b":case"bksp":r.addKey("bksp",t);break;case"c":case"cancel":r.addKey("cancel",t).addClass(u.css.buttonAction);break;case"combo":r.addKey("combo","combo").addClass(u.css.buttonAction);break;case"dec":r.acceptedKeys.push(r.decimal?".":","),r.addKey("dec","dec");break;case"e":case"enter":r.addKey("enter",t).addClass(u.css.buttonAction);break;case"empty":r.addKey(""," ").addClass(u.css.buttonDisabled).attr("aria-disabled",!0);break;case"s":case"shift":r.addKey("shift",t);break;case"sign":r.acceptedKeys.push("-"),r.addKey("sign","sign");break;case"space":r.acceptedKeys.push(" "),r.addKey("space","space");break;case"t":case"tab":r.addKey("tab",t);break;default:n.keyboard.keyaction.hasOwnProperty(t)&&r.addKey(t,t)[s?"addClass":"removeClass"](u.css.buttonAction)}}else r.acceptedKeys.push(f[i].split(":")[0]),r.addKey(f[i],f[i],!0);o.find(".ui-keyboard-button:last").after('<br class="ui-keyboard-button-endrow">')}}),a>1&&(r.sets=!0),r.hasMappedKeys=!n.isEmptyObject(r.mappedKeys),c},r.destroy=function(){n(document).unbind("mousedown.keyboard keyup.keyboard touchstart.keyboard"),r.$keyboard&&r.$keyboard.remove();var t=n.trim(u.openOn+" accepted beforeClose canceled change contextmenu hidden initialized keydown keypress keyup visible").split(" ").join(".keyboard ");r.$el.removeClass("ui-keyboard-input ui-keyboard-lockedinput ui-keyboard-placeholder ui-keyboard-notallowed ui-keyboard-always-open "+u.css.input).removeAttr("aria-haspopup").removeAttr("role").unbind(t+".keyboard").removeData("keyboard")},r.init()},n.keyboard.keyaction={accept:function(n){return n.close(!0),!1},alt:function(n,t){n.altActive=!n.altActive,n.showKeySet(t)},bksp:function(n){n.insertText("bksp")},cancel:function(n){return n.close(),!1},clear:function(n){n.$preview.val("")},combo:function(n){var t=!n.options.useCombos;return n.options.useCombos=t,n.$keyboard.find(".ui-keyboard-combo")[t?"addClass":"removeClass"](n.options.css.buttonAction),t&&n.checkCombos(),!1},dec:function(n){n.insertText(n.decimal?".":",")},"default":function(n,t){n.shiftActive=n.altActive=n.metaActive=!1,n.showKeySet(t)},enter:function(t,i,r){var f=t.el.tagName,u=t.options;if(r.shiftKey)return u.enterNavigation?t.switchInput(!r[u.enterMod],!0):t.close(!0);if(u.enterNavigation&&(f!=="TEXTAREA"||r[u.enterMod]))return t.switchInput(!r[u.enterMod],u.autoAccept?"true":!1);f==="TEXTAREA"&&n(r.target).closest("button").length&&t.insertText(" \n")},lock:function(n,t){n.lastKeyset[0]=n.shiftActive=n.capsLock=!n.capsLock,n.showKeySet(t)},meta:function(t,i){t.metaActive=n(i).hasClass(t.options.css.buttonAction)?!1:!0,t.showKeySet(i)},next:function(n){return n.switchInput(!0,n.options.autoAccept),!1},prev:function(n){return n.switchInput(!1,n.options.autoAccept),!1},shift:function(n,t){n.lastKeyset[0]=n.shiftActive=!n.shiftActive,n.showKeySet(t)},sign:function(n){/^\-?\d*\.?\d*$/.test(n.$preview.val())&&n.$preview.val(n.$preview.val()*-1)},space:function(n){n.insertText(" ")},tab:function(n){var t=n.el.tagName,i=n.options;if(t==="INPUT")return i.tabNavigation?n.switchInput(!n.shiftActive,!0):!1;n.insertText("\t")}},n.keyboard.layouts={alpha:{"default":["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} a b c d e f g h i j [ ] \\","k l m n o p q r s ; ' {enter}","{shift} t u v w x y z , . / {shift}","{accept} {space} {cancel}"],shift:["~ ! @ # $ % ^ & * ( ) _ + {bksp}","{tab} A B C D E F G H I J { } |",'K L M N O P Q R S : " {enter}',"{shift} T U V W X Y Z < > ? {shift}","{accept} {space} {cancel}"]},qwerty:{"default":["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} q w e r t y u i o p [ ] \\","a s d f g h j k l ; ' {enter}","{shift} z x c v b n m , . / {shift}","{accept} {space} {cancel}"],shift:["~ ! @ # $ % ^ & * ( ) _ + {bksp}","{tab} Q W E R T Y U I O P { } |",'A S D F G H J K L : " {enter}',"{shift} Z X C V B N M < > ? {shift}","{accept} {space} {cancel}"]},international:{"default":["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} q w e r t y u i o p [ ] \\","a s d f g h j k l ; ' {enter}","{shift} z x c v b n m , . / {shift}","{accept} {alt} {space} {alt} {cancel}"],shift:["~ ! @ # $ % ^ & * ( ) _ + {bksp}","{tab} Q W E R T Y U I O P { } |",'A S D F G H J K L : " {enter}',"{shift} Z X C V B N M < > ? {shift}","{accept} {alt} {space} {alt} {cancel}"],alt:["~ ¡ ² ³ ¤ € ¼ ½ ¾ ‘ ’ ¥ × {bksp}","{tab} ä å é ® þ ü ú í ó ö « » ¬","á ß ð f g h j k ø ¶ ´ {enter}","{shift} æ x © v b ñ µ ç > ¿ {shift}","{accept} {alt} {space} {alt} {cancel}"],"alt-shift":["~ ¹ ² ³ £ € ¼ ½ ¾ ‘ ’ ¥ ÷ {bksp}","{tab} Ä Å É ® Þ Ü Ú Í Ó Ö « » ¦","Ä § Ð F G H J K Ø ° ¨ {enter}","{shift} Æ X ¢ V B Ñ µ Ç . ¿ {shift}","{accept} {alt} {space} {alt} {cancel}"]},dvorak:{"default":["` 1 2 3 4 5 6 7 8 9 0 [ ] {bksp}","{tab} ' , . p y f g c r l / = \\","a o e u i d h t n s - {enter}","{shift} ; q j k x b m w v z {shift}","{accept} {space} {cancel}"],shift:["~ ! @ # $ % ^ & * ( ) { } {bksp}",'{tab} " < > P Y F G C R L ? + |',"A O E U I D H T N S _ {enter}","{shift} : Q J K X B M W V Z {shift}","{accept} {space} {cancel}"]},num:{"default":["= ( ) {b}","{clear} / * -","7 8 9 +","4 5 6 {sign}","1 2 3 %","0 . {a} {c}"]}},n.keyboard.defaultOptions={layout:"qwerty",customLayout:null,position:{of:null,my:"center top",at:"center top",at2:"center bottom"},usePreview:!0,alwaysOpen:!1,initialFocus:!0,stayOpen:!1,display:{a:"✔:Accept (Shift-Enter)",accept:"Accept:Accept (Shift-Enter)",alt:"Alt:⌥ AltGr",b:"⌫:Backspace",bksp:"Bksp:Backspace",c:"✖:Cancel (Esc)",cancel:"Cancel:Cancel (Esc)",clear:"C:Clear",combo:"ö:Toggle Combo Keys",dec:".:Decimal",e:"⏎:Enter",empty:" ",enter:"Enter:Enter ⏎",lock:"Lock:⇪ Caps Lock",next:"Next ⇨",prev:"⇦ Prev",s:"⇧:Shift",shift:"Shift:Shift",sign:"±:Change Sign",space:"&nbsp;:Space",t:"⇥:Tab",tab:"⇥ Tab:Tab"},wheelMessage:"Use mousewheel to see other keys",css:{input:"ui-widget-content ui-corner-all",container:"ui-widget-content ui-widget ui-corner-all ui-helper-clearfix",buttonDefault:"ui-state-default ui-corner-all",buttonHover:"ui-state-hover",buttonAction:"ui-state-active",buttonDisabled:"ui-state-disabled"},autoAccept:!1,lockInput:!1,restrictInput:!0,acceptValid:!1,cancelClose:!0,tabNavigation:!1,enterNavigation:!1,enterMod:"altKey",stopAtEnd:!0,appendLocally:!1,stickyShift:!0,preventPaste:!1,caretToEnd:!1,maxLength:20,repeatDelay:500,repeatRate:20,resetDefault:!1,openOn:"focus",keyBinding:"mousedown touchstart",useCombos:!0,combos:{"`":{a:"à",A:"À",e:"è",E:"È",i:"ì",I:"Ì",o:"ò",O:"Ò",u:"ù",U:"Ù",y:"ỳ",Y:"Ỳ"},"'":{a:"á",A:"Á",e:"é",E:"É",i:"í",I:"Í",o:"ó",O:"Ó",u:"ú",U:"Ú",y:"ý",Y:"Ý"},'"':{a:"ä",A:"Ä",e:"ë",E:"Ë",i:"ï",I:"Ï",o:"ö",O:"Ö",u:"ü",U:"Ü",y:"ÿ",Y:"Ÿ"},"^":{a:"â",A:"Â",e:"ê",E:"Ê",i:"î",I:"Î",o:"ô",O:"Ô",u:"û",U:"Û",y:"ŷ",Y:"Ŷ"},"~":{a:"ã",A:"Ã",e:"ẽ",E:"Ẽ",i:"ĩ",I:"Ĩ",o:"õ",O:"Õ",u:"ũ",U:"Ũ",y:"ỹ",Y:"Ỹ",n:"ñ",N:"Ñ"}},validate:function(){return!0}},n.keyboard.comboRegex=/([`\'~\^\"ao])([a-z])/mig,n.keyboard.currentKeyboard="",n.fn.keyboard=function(t){return this.each(function(){n(this).data("keyboard")||new n.keyboard(this,t)})},n.fn.getkeyboard=function(){return this.data("keyboard")}}(jQuery),function(n,t,i,r){"use strict";n.fn.caret=function(n,u){if(typeof this[0]=="undefined"||this.is(":hidden")||this.css("visibility")==="hidden")return this;var k,o,c,s,v,l,e,a,p,h,y=document.selection,f=this[0],b=f.scrollTop,w=typeof f.selectionStart!="undefined";return typeof n=="number"&&typeof u=="number"&&(c=n,v=u),typeof c!="undefined"?(w?(f.selectionStart=c,f.selectionEnd=v):(l=f.createTextRange(),l.collapse(!0),l.moveStart("character",c),l.moveEnd("character",v-c),l.select()),(this.is(":visible")||this.css("visibility")!=="hidden")&&this.focus(),f.scrollTop=b,this):(w?(o=f.selectionStart,s=f.selectionEnd):f.tagName==="TEXTAREA"?(h=this.val(),e=y[i](),a=e[r](),a.moveToElementText(f),a.setEndPoint("EndToEnd",e),o=a.text.replace(/\r/g,"\n")[t],s=o+e.text.replace(/\r/g,"\n")[t]):(h=this.val().replace(/\r/g,"\n"),e=y[i]()[r](),e.moveEnd("character",h[t]),o=e.text===""?h[t]:h.lastIndexOf(e.text),e=y[i]()[r](),e.moveStart("character",-h[t]),s=e.text[t]),p=(f.value||"").substring(o,s),{start:o,end:s,text:p,replace:function(n){return f.value.substring(0,o)+n+f.value.substring(s,f.value[t])}})}}(jQuery,"length","createRange","duplicate"),qq=qq||{},qq.extend=function(n,t){for(var i in t)n[i]=t[i]},qq.indexOf=function(n,t,i){if(n.indexOf)return n.indexOf(t,i);i=i||0;var r=n.length;for(i<0&&(i+=r);i<r;i++)if(i in n&&n[i]===t)return i;return-1},qq.getUniqueId=function(){var n=0;return function(){return n++}}(),qq.ie=function(){return navigator.userAgent.indexOf("MSIE")!=-1},qq.safari=function(){return navigator.vendor!=undefined&&navigator.vendor.indexOf("Apple")!=-1},qq.chrome=function(){return navigator.vendor!=undefined&&navigator.vendor.indexOf("Google")!=-1},qq.firefox=function(){return navigator.userAgent.indexOf("Mozilla")!=-1&&navigator.vendor!=undefined&&navigator.vendor==""},qq.windows=function(){return navigator.platform=="Win32"},qq.attach=function(n,t,i){return n.addEventListener?n.addEventListener(t,i,!1):n.attachEvent&&n.attachEvent("on"+t,i),function(){qq.detach(n,t,i)}},qq.detach=function(n,t,i){n.removeEventListener?n.removeEventListener(t,i,!1):n.attachEvent&&n.detachEvent("on"+t,i)},qq.preventDefault=function(n){n.preventDefault?n.preventDefault():n.returnValue=!1},qq.insertBefore=function(n,t){t.parentNode.insertBefore(n,t)},qq.remove=function(n){n.parentNode.removeChild(n)},qq.contains=function(n,t){return n==t?!0:n.contains?n.contains(t):!!(t.compareDocumentPosition(n)&8)},qq.toElement=function(){var n=document.createElement("div");return function(t){n.innerHTML=t;var i=n.firstChild;return n.removeChild(i),i}}(),qq.css=function(n,t){t.opacity!=null&&typeof t.opacity!="undefined"&&typeof n.style.opacity!="string"&&typeof n.filters!="undefined"&&(t.filter="alpha(opacity="+Math.round(100*t.opacity)+")"),qq.extend(n.style,t)},qq.hasClass=function(n,t){var i=new RegExp("(^| )"+t+"( |$)");return i.test(n.className)},qq.addClass=function(n,t){qq.hasClass(n,t)||(n.className+=" "+t)},qq.removeClass=function(n,t){var i=new RegExp("(^| )"+t+"( |$)");n.className=n.className.replace(i," ").replace(/^\s+|\s+$/g,"")},qq.setText=function(n,t){n.innerText=t,n.textContent=t},qq.children=function(n){for(var i=[],t=n.firstChild;t;)t.nodeType==1&&i.push(t),t=t.nextSibling;return i},qq.getByClass=function(n,t){var i;if(n.querySelectorAll)return n.querySelectorAll("."+t);var u=[],r=n.getElementsByTagName("*"),f=r.length;for(i=0;i<f;i++)qq.hasClass(r[i],t)&&u.push(r[i]);return u},qq.obj2url=function(n,t,i){var u=[],f="&",e=function(n,i){var r=t?/\[\]$/.test(t)?t:t+"["+i+"]":i;r!="undefined"&&i!="undefined"&&u.push(typeof n=="object"?qq.obj2url(n,r,!0):Object.prototype.toString.call(n)==="[object Function]"?encodeURIComponent(r)+"="+encodeURIComponent(n()):encodeURIComponent(r)+"="+encodeURIComponent(n))},o,r;if(!i&&t)f=/\?/.test(t)?/\?$/.test(t)?"":"&":"?",u.push(t),u.push(qq.obj2url(n));else if(Object.prototype.toString.call(n)==="[object Array]"&&typeof n!="undefined")for(r=0,o=n.length;r<o;++r)e(n[r],r);else if(typeof n!="undefined"&&n!==null&&typeof n=="object")for(r in n)e(n[r],r);else u.push(encodeURIComponent(t)+"="+encodeURIComponent(n));return u.join(f).replace(/^&/,"").replace(/%20/g,"+")},qq=qq||{},qq.FileUploaderBasic=function(n){this._options={debug:!1,action:"/server/upload",params:{},customHeaders:{},button:null,multiple:!0,maxConnections:3,allowedExtensions:[],acceptFiles:null,sizeLimit:0,minSizeLimit:0,abortOnFailure:!0,onSubmit:function(){},onProgress:function(){},onComplete:function(){},onCancel:function(){},onUpload:function(){},onError:function(){},messages:{typeError:"Unfortunately the file(s) you selected weren't the type we were expecting. Only {extensions} files are allowed.",sizeError:"{file} is too large, maximum file size is {sizeLimit}.",minSizeError:"{file} is too small, minimum file size is {minSizeLimit}.",emptyError:"{file} is empty, please select files again without it.",onLeave:"The files are being uploaded, if you leave now the upload will be cancelled."},showMessage:function(n){DisplayNotification({message:"<p>"+n+"<\/p>"},8e3)},inputName:"qqfile",extraDropzones:[]},qq.extend(this._options,n),qq.extend(this,qq.DisposeSupport),this._filesInProgress=0,this._handler=this._createUploadHandler(),this._options.button&&(this._button=this._createUploadButton(this._options.button)),this._preventLeaveInProgress()},qq.FileUploaderBasic.prototype={setParams:function(n){this._options.params=n},getInProgress:function(){return this._filesInProgress},_createUploadButton:function(n){var i=this,t=new qq.UploadButton({element:n,multiple:this._options.multiple&&qq.UploadHandlerXhr.isSupported(),acceptFiles:this._options.acceptFiles,onChange:function(n){i._onInputChange(n)},inputLabeledBy:$(this._options.element).attr("input-labeled-by")});return this.addDisposer(function(){t.dispose()}),t},_createUploadHandler:function(){var n=this,t,i;return t=qq.UploadHandlerXhr.isSupported()?"UploadHandlerXhr":"UploadHandlerForm",i=new qq[t]({debug:this._options.debug,action:this._options.action,encoding:this._options.encoding,maxConnections:this._options.maxConnections,customHeaders:this._options.customHeaders,inputName:this._options.inputName,extraDropzones:this._options.extraDropzones,onProgress:function(t,i,r,u){n._onProgress(t,i,r,u);n._options.onProgress(t,i,r,u)},onComplete:function(t,i,r){n._onComplete(t,i,r);n._options.onComplete(t,i,r)},onCancel:function(t,i){n._onCancel(t,i);n._options.onCancel(t,i)},onError:n._options.onError,onUpload:function(t,i,r){n._onUpload(t,i,r);n._options.onUpload(t,i,r)}})},_preventLeaveInProgress:function(){var n=this;this._attach(window,"beforeunload",function(t){if(n._filesInProgress){var t=t||window.event;return t.returnValue=n._options.messages.onLeave,n._options.messages.onLeave}})},_onSubmit:function(){this._filesInProgress++},_onProgress:function(){},_onComplete:function(n,t,i){this._filesInProgress--,i.error&&this._options.showMessage(i.error)},_onCancel:function(){this._filesInProgress--},_onUpload:function(){},_onInputChange:function(n){this._handler instanceof qq.UploadHandlerXhr?this._uploadFileList(n.files):this._validateFile(n)&&this._uploadFile(n),this._button.reset()},_uploadFileList:function(n){for(var i=[],t=0;t<n.length;t++)if(this._validateFile(n[t]))i.push(n[t]);else if(this._options.abortOnFailure)return;for(t=0;t<i.length;t++)this._uploadFile(i[t])},_uploadFile:function(n){var t=this._handler.add(n),i=this._handler.getName(t);this._options.onSubmit(t,i)!==!1&&(this._onSubmit(t,i),this._handler.upload(t,this._options.params))},_validateFile:function(n){var t,i;if(n.value?t=n.value.replace(/.*(\/|\\)/,""):(t=n.fileName!==null&&n.fileName!==undefined?n.fileName:n.name,i=n.fileSize!==null&&n.fileSize!==undefined?n.fileSize:n.size),this._isAllowedExtension(t)){if(i===0)return this._error("emptyError",t),!1;if(i&&this._options.sizeLimit&&i>this._options.sizeLimit)return this._error("sizeError",t),!1;if(i&&i<this._options.minSizeLimit)return this._error("minSizeError",t),!1}else return this._error("typeError",t),!1;return!0},_error:function(n,t){function i(n,t){r=r.replace(n,t)}var r=this._options.messages[n];i("{file}",this._formatFileName(t)),i("{extensions}",this._options.allowedExtensions.join(", ")),i("{sizeLimit}",this._formatSize(this._options.sizeLimit)),i("{minSizeLimit}",this._formatSize(this._options.minSizeLimit)),this._options.showMessage(r)},_formatFileName:function(n){return n.length>33&&(n=n.slice(0,19)+"..."+n.slice(-13)),n},_isAllowedExtension:function(n){var r=-1!==n.indexOf(".")?n.replace(/.*[.]/,"").toLowerCase():"",i=this._options.allowedExtensions,t;if(!i.length)return!0;for(t=0;t<i.length;t++)if(i[t].toLowerCase()==r)return!0;return!1},_formatSize:function(n){var t=-1;do n=n/1024,t++;while(n>99);return Math.max(n,.1).toFixed(1)+["kB","MB","GB","TB","PB","EB"][t]}},qq.FileUploader=function(n){qq.FileUploaderBasic.apply(this,arguments),qq.extend(this._options,{element:null,listElement:null,dragText:"Drop files here to upload",uploadButtonText:"Upload a file",cancelButtonText:"Cancel",failUploadText:"Upload failed",hideShowDropArea:!0,template:'<div class="qq-uploader"><div class="qq-upload-drop-area"><span>{dragText}<\/span><\/div><div class="qq-upload-button">{uploadButtonText}<\/div><ul class="qq-upload-list"><\/ul><\/div>',fileTemplate:'<li><span class="qq-progress-bar"><\/span><span class="qq-upload-file"><\/span><span class="qq-upload-spinner"><\/span><span class="qq-upload-size"><\/span><a class="qq-upload-cancel" href="#">{cancelButtonText}<\/a><span class="qq-upload-failed-text">{failUploadtext}<\/span><\/li>',classes:{button:"qq-upload-button",drop:"qq-upload-drop-area",dropActive:"qq-upload-drop-area-active",dropDisabled:"qq-upload-drop-area-disabled",list:"qq-upload-list",progressBar:"qq-progress-bar",file:"qq-upload-file",spinner:"qq-upload-spinner",size:"qq-upload-size",cancel:"qq-upload-cancel",success:"qq-upload-success",fail:"qq-upload-fail"}}),qq.extend(this._options,n),this._options.template=this._options.template.replace(/\{dragText\}/g,this._options.dragText),this._options.template=this._options.template.replace(/\{uploadButtonText\}/g,this._options.uploadButtonText),this._options.fileTemplate=this._options.fileTemplate.replace(/\{cancelButtonText\}/g,this._options.cancelButtonText),this._options.fileTemplate=this._options.fileTemplate.replace(/\{failUploadtext\}/g,this._options.failUploadText),this._element=this._options.element,this._element.innerHTML=this._options.template,this._listElement=this._options.listElement||this._find(this._element,"list"),this._classes=this._options.classes,this._button=this._createUploadButton(this._find(this._element,"button")),this._bindCancelEvent(),this._setupDragDrop()},qq.extend(qq.FileUploader.prototype,qq.FileUploaderBasic.prototype),qq.extend(qq.FileUploader.prototype,{addExtraDropzone:function(n){this._setupExtraDropzone(n)},removeExtraDropzone:function(n){var i=this._options.extraDropzones,t;for(t in i)if(i[t]===n)return this._options.extraDropzones.splice(t,1)},_leaving_document_out:function(n){return(qq.chrome()||qq.safari()&&qq.windows())&&n.clientX==0&&n.clientY==0||qq.firefox()&&!n.relatedTarget},_find:function(n,t){var i=qq.getByClass(n,this._options.classes[t])[0];if(!i)throw new Error("element not found "+t);return i},_setupExtraDropzone:function(n){this._options.extraDropzones.push(n),this._setupDropzone(n)},_setupDropzone:function(n){var t=this,i=new qq.UploadDropZone({element:n,onEnter:function(i){qq.addClass(n,t._classes.dropActive),i.stopPropagation()},onLeave:function(){},onLeaveNotDescendants:function(){qq.removeClass(n,t._classes.dropActive)},onDrop:function(i){t._options.hideShowDropArea&&(n.style.display="none"),qq.removeClass(n,t._classes.dropActive),t._uploadFileList(i.dataTransfer.files)}});this._dropZone=i,this.addDisposer(function(){i.dispose()}),this._options.hideShowDropArea&&(n.style.display="none")},_setupDragDrop:function(){var r=this._find(this._element,"drop"),i=this,t,n;for(this._options.extraDropzones.push(r),t=this._options.extraDropzones,n=0;n<t.length;n++)this._setupDropzone(t[n]);qq.ie()||this._attach(document,"dragenter",function(u){if(i._dropZone._isValidFileDrag(u)&&!qq.hasClass(r,i._classes.dropDisabled))for(r.style.display="block",n=0;n<t.length;n++)t[n].style.display="block"}),this._attach(document,"dragleave",function(r){var u=document.elementFromPoint(r.clientX,r.clientY);if(i._options.hideShowDropArea&&qq.FileUploader.prototype._leaving_document_out(r))for(n=0;n<t.length;n++)t[n].style.display="none"}),qq.attach(document,"drop",function(r){if(i._options.hideShowDropArea)for(n=0;n<t.length;n++)t[n].style.display="none";r.preventDefault()})},_onSubmit:function(n,t){qq.FileUploaderBasic.prototype._onSubmit.apply(this,arguments),this._addToList(n,t)},_onProgress:function(n,t,i,r){var u,f,e,o;qq.FileUploaderBasic.prototype._onProgress.apply(this,arguments),u=this._getItemByFileId(n),f=this._find(u,"size"),f.style.display="inline",o=Math.round(i/r*100),e=i!=r?o+"% from "+this._formatSize(r):this._formatSize(r),this._find(u,"progressBar").style.width=o+"%",qq.setText(f,e)},_onComplete:function(n,t,i){qq.FileUploaderBasic.prototype._onComplete.apply(this,arguments);var r=this._getItemByFileId(n);qq.remove(this._find(r,"cancel")),qq.remove(this._find(r,"spinner")),i.success?qq.addClass(r,this._classes.success):qq.addClass(r,this._classes.fail)},_addToList:function(n,t){var i=qq.toElement(this._options.fileTemplate),r;i.qqFileId=n,r=this._find(i,"file"),qq.setText(r,this._formatFileName(t)),this._find(i,"size").style.display="none",this._options.multiple||this._clearList(),this._listElement.appendChild(i)},_clearList:function(){this._listElement.innerHTML=""},_getItemByFileId:function(n){for(var t=this._listElement.firstChild;t;){if(t.qqFileId==n)return t;t=t.nextSibling}},_bindCancelEvent:function(){var n=this,t=this._listElement;this._attach(t,"click",function(t){var i,r;t=t||window.event,i=t.target||t.srcElement,qq.hasClass(i,n._classes.cancel)&&(qq.preventDefault(t),r=i.parentNode,n._handler.cancel(r.qqFileId),qq.remove(r))})}}),qq.UploadDropZone=function(n){this._options={element:null,onEnter:function(){},onLeave:function(){},onLeaveNotDescendants:function(){},onDrop:function(){}},qq.extend(this._options,n),qq.extend(this,qq.DisposeSupport),this._element=this._options.element,this._disableDropOutside(),this._attachEvents()},qq.UploadDropZone.prototype={_dragover_should_be_canceled:function(){return qq.safari()||qq.firefox()&&qq.windows()},_disableDropOutside:function(){qq.UploadDropZone.dropOutsideDisabled||(this._dragover_should_be_canceled?qq.attach(document,"dragover",function(n){n.preventDefault()}):qq.attach(document,"dragover",function(n){n.dataTransfer&&(n.dataTransfer.dropEffect="none",n.preventDefault())}),qq.UploadDropZone.dropOutsideDisabled=!0)},_attachEvents:function(){var n=this;n._attach(n._element,"dragover",function(t){if(n._isValidFileDrag(t)){var i=qq.ie()?null:t.dataTransfer.effectAllowed;t.dataTransfer.dropEffect=i=="move"||i=="linkMove"?"move":"copy",t.stopPropagation(),t.preventDefault()}}),n._attach(n._element,"dragenter",function(t){if(n._isValidFileDrag(t))n._options.onEnter(t)}),n._attach(n._element,"dragleave",function(t){if(n._isValidFileDrag(t)){n._options.onLeave(t);var i=document.elementFromPoint(t.clientX,t.clientY);if(!qq.contains(this,i))n._options.onLeaveNotDescendants(t)}}),n._attach(n._element,"drop",function(t){if(n._isValidFileDrag(t)){t.preventDefault();n._options.onDrop(t)}})},_isValidFileDrag:function(n){if(qq.ie())return!1;var t=n.dataTransfer,i=qq.safari();return t&&t.effectAllowed!="none"&&(t.files||!i&&t.types.contains&&t.types.contains("Files"))}},qq.UploadButton=function(n){this._options={element:null,multiple:!1,acceptFiles:null,name:"file",onChange:function(){},hoverClass:"qq-upload-button-hover",focusClass:"qq-upload-button-focus"},qq.extend(this._options,n),qq.extend(this,qq.DisposeSupport),this._element=this._options.element,qq.css(this._element,{position:"relative",overflow:"hidden",direction:"ltr"}),this._input=this._createInput()},qq.UploadButton.prototype={getInput:function(){return this._input},reset:function(){this._input.parentNode&&qq.remove(this._input),qq.removeClass(this._element,this._options.focusClass),this._input=this._createInput()},_createInput:function(){var n=document.createElement("input"),t;return this._options.multiple&&n.setAttribute("multiple","multiple"),this._options.acceptFiles&&n.setAttribute("accept",this._options.acceptFiles),n.setAttribute("type","file"),n.setAttribute("name",this._options.name),this._options.inputLabeledBy&&n.setAttribute("aria-labelledby",this._options.inputLabeledBy),qq.css(n,{position:"absolute",right:0,top:0,fontFamily:"Arial",fontSize:"118px",margin:0,padding:0,cursor:"pointer",opacity:0}),this._element.appendChild(n),t=this,this._attach(n,"change",function(){t._options.onChange(n)}),this._attach(n,"mouseover",function(){qq.addClass(t._element,t._options.hoverClass)}),this._attach(n,"mouseout",function(){qq.removeClass(t._element,t._options.hoverClass)}),this._attach(n,"focus",function(){qq.addClass(t._element,t._options.focusClass)}),this._attach(n,"blur",function(){qq.removeClass(t._element,t._options.focusClass)}),window.attachEvent&&n.setAttribute("tabIndex","-1"),n}},qq.UploadHandlerAbstract=function(n){this._options={debug:!1,action:"/upload.php",maxConnections:999,onProgress:function(){},onComplete:function(){},onCancel:function(){},onUpload:function(){}},qq.extend(this._options,n),this._queue=[],this._params=[]},qq.UploadHandlerAbstract.prototype={log:function(n){this._options.debug&&window.console&&console.log("[uploader] "+n)},add:function(){},upload:function(n,t){var r=this._queue.push(n),i={};qq.extend(i,t),this._params[n]=i,r<=this._options.maxConnections&&this._upload(n,this._params[n])},cancel:function(n){this._cancel(n),this._dequeue(n)},cancelAll:function(){for(var n=0;n<this._queue.length;n++)this._cancel(this._queue[n]);this._queue=[]},getName:function(){},getSize:function(){},getQueue:function(){return this._queue},_upload:function(){},_cancel:function(){},_dequeue:function(n){var r=qq.indexOf(this._queue,n),t,i;this._queue.splice(r,1),t=this._options.maxConnections,this._queue.length>=t&&r<t&&(i=this._queue[t-1],this._upload(i,this._params[i]))}},qq.UploadHandlerForm=function(){qq.UploadHandlerAbstract.apply(this,arguments),this._inputs={}},qq.extend(qq.UploadHandlerForm.prototype,qq.UploadHandlerAbstract.prototype),qq.extend(qq.UploadHandlerForm.prototype,{_detach_event:{},add:function(n){n.setAttribute("name",this._options.inputName);var t="qq-upload-handler-iframe"+qq.getUniqueId();return this._inputs[t]=n,n.parentNode&&qq.remove(n),t},getName:function(n){return this._inputs[n].value.replace(/.*(\/|\\)/,"")},_cancel:function(n){this._options.onCancel(n,this.getName(n));delete this._inputs[n];var t=document.getElementById(n);t&&(t.setAttribute("src","javascript:false;"),qq.remove(t))},_upload:function(n,t){var u,i;this._options.onUpload(n,this.getName(n),!1);if(u=this._inputs[n],!u)throw new Error("file with passed id was not added, or already uploaded or cancelled");var e=this.getName(n),r=this._createIframe(n),f=this._createForm(r,t);return f.appendChild(u),i=this,this._attachLoadEvent(r,function(){i.log("iframe loaded");var t=i._getIframeContentJSON(r);i._options.onComplete(n,e,t);i._dequeue(n),delete i._inputs[n],setTimeout(function(){i._detach_event[r.id](),delete i._detach_event[r.id],qq.remove(r)},1)}),f.submit(),qq.remove(f),n},_attachLoadEvent:function(n,t){this._detach_event[n.id]=qq.attach(n,"load",function(){n.parentNode&&(n.contentDocument&&n.contentDocument.body&&n.contentDocument.body.innerHTML=="false"||t())})},_getIframeContentJSON:function(iframe){var doc=iframe.contentDocument?iframe.contentDocument:iframe.contentWindow.document,response,innerHTML=doc.body.innerHTML;this.log("converting iframe's innerHTML to JSON"),this.log("innerHTML = "+innerHTML),innerHTML.slice(0,5).toLowerCase()=="<pre>"&&innerHTML.slice(-6).toLowerCase()=="<\/pre>"&&(innerHTML=doc.body.firstChild.firstChild.nodeValue);try{response=eval("("+innerHTML+")")}catch(err){response={}}return response},_createIframe:function(n){var t=qq.toElement('<iframe src="javascript:false;" name="'+n+'" />');return t.setAttribute("id",n),t.style.display="none",document.body.appendChild(t),t},_createForm:function(n,t){var i=qq.toElement('<form method="post" enctype="multipart/form-data"><\/form>'),r=qq.obj2url(t,this._options.action);return i.setAttribute("action",r),i.setAttribute("target",n.name),i.style.display="none",document.body.appendChild(i),i}}),qq.UploadHandlerXhr=function(){qq.UploadHandlerAbstract.apply(this,arguments),this._files=[],this._xhrs=[],this._loaded=[]},qq.UploadHandlerXhr.isSupported=function(){var n=document.createElement("input");return n.type="file","multiple"in n&&typeof File!="undefined"&&typeof FormData!="undefined"&&typeof(new XMLHttpRequest).upload!="undefined"},qq.extend(qq.UploadHandlerXhr.prototype,qq.UploadHandlerAbstract.prototype),qq.extend(qq.UploadHandlerXhr.prototype,{add:function(n){if(!(n instanceof File))throw new Error("Passed obj in not a File (in qq.UploadHandlerXhr)");return this._files.push(n)-1},getName:function(n){var t=this._files[n];return t.fileName!==null&&t.fileName!==undefined?t.fileName:t.name},getSize:function(n){var t=this._files[n];return t.fileSize!=null?t.fileSize:t.size},getLoaded:function(n){return this._loaded[n]||0},_upload:function(n,t){var i,u,o,e;this._options.onUpload(n,this.getName(n),!0);var r=this._files[n],f=this.getName(n),s=this.getSize(n);this._loaded[n]=0,i=this._xhrs[n]=new XMLHttpRequest,u=this,i.upload.onprogress=function(t){if(t.lengthComputable){u._loaded[n]=t.loaded;u._options.onProgress(n,f,t.loaded,t.total)}},i.onreadystatechange=function(){i.readyState==4&&u._onComplete(n,i)},t=t||{},t[this._options.inputName]=f,o=qq.obj2url(t,this._options.action),i.open("POST",o,!0),i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.setRequestHeader("X-File-Name",encodeURIComponent(f)),this._options.encoding=="multipart"?(e=new FormData,e.append(this._options.inputName,r),r=e):(i.setRequestHeader("Content-Type","application/octet-stream"),i.setRequestHeader("X-Mime-Type",r.type));for(key in this._options.customHeaders)i.setRequestHeader(key,this._options.customHeaders[key]);i.send(r)},_onComplete:function(id,xhr){var name,size,response;if(this._files[id]){name=this.getName(id),size=this.getSize(id);this._options.onProgress(id,name,size,size);if(xhr.status==200){this.log("xhr - server response received"),this.log("responseText = "+xhr.responseText);try{response=eval("("+xhr.responseText+")")}catch(err){response={}}this._options.onComplete(id,name,response)}else{this._options.onError(id,name,xhr);this._options.onComplete(id,name,{})}this._files[id]=null,this._xhrs[id]=null,this._dequeue(id)}},_cancel:function(n){this._options.onCancel(n,this.getName(n));this._files[n]=null,this._xhrs[n]&&(this._xhrs[n].abort(),this._xhrs[n]=null)}}),qq.DisposeSupport={_disposers:[],dispose:function(){for(var n;n=this._disposers.shift();)n()},addDisposer:function(n){this._disposers.push(n)},_attach:function(){this.addDisposer(qq.attach.apply(this,arguments))}},function(){function fl(n,t){try{for(var i in t)Object.defineProperty(n.prototype,i,{value:t[i],enumerable:!1})}catch(r){n.prototype=t}}function el(n){for(var t=-1,r=n.length,i=[];++t<r;)i.push(n[t]);return i}function ol(n){return Array.prototype.slice.call(n)}function y(){}function b(n){return n}function sl(){return this}function ee(){return!0}function i(n){return typeof n=="function"?n:function(){return n}}function hl(n,t,i){return function(){var r=i.apply(t,arguments);return arguments.length?n:r}}function pr(n){return n!=null&&!isNaN(n)}function cl(n){return n.length}function ll(n){return n==null}function oe(n){return n.trim().replace(/\s+/g," ")}function al(n){for(var t=1;n*t%1;)t*=10;return t}function wr(){}function se(n){function r(){for(var i=t,r=-1,f=i.length,u;++r<f;)(u=i[r].on)&&u.apply(this,arguments);return n}var t=[],i=new y;return r.on=function(r,u){var f=i.get(r),e;return arguments.length<2?f&&f.on:(f&&(f.on=null,t=t.slice(0,e=t.indexOf(f)).concat(t.slice(e+1)),i.remove(r)),u&&t.push(i.set(r,{on:u})),n)},r}function he(n,t){return t-(n?1+Math.floor(Math.log(n+Math.pow(10,1+Math.floor(Math.log(n)/Math.LN10)-t))/Math.LN10):1)}function vl(n){return n+""}function ce(n){for(var t=n.lastIndexOf("."),r=t>=0?n.substring(t):(t=n.length,""),i=[];t>0;)i.push(n.substring(t-=3,t+3));return i.reverse().join(",")+r}function yl(n,t){var i=Math.pow(10,Math.abs(8-t)*3);return{scale:t>8?function(n){return n/i}:function(n){return n*i},symbol:n}}function pl(n){return function(t){return t<=0?0:t>=1?1:n(t)}}function le(n){return function(t){return 1-n(1-t)}}function ae(n){return function(t){return.5*(t<.5?n(2*t):2-n(2-2*t))}}function br(n){return n}function kr(n){return function(t){return Math.pow(t,n)}}function wl(n){return 1-Math.cos(n*Math.PI/2)}function bl(n){return Math.pow(2,10*(n-1))}function kl(n){return 1-Math.sqrt(1-n*n)}function dl(n,t){var i;return arguments.length<2&&(t=.45),arguments.length<1?(n=1,i=t/4):i=t/(2*Math.PI)*Math.asin(1/n),function(r){return 1+n*Math.pow(2,10*-r)*Math.sin((r-i)*2*Math.PI/t)}}function gl(n){return n||(n=1.70158),function(t){return t*t*((n+1)*t-n)}}function na(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375}function o(){d3.event.stopPropagation(),d3.event.preventDefault()}function ve(){for(var n=d3.event,t;t=n.sourceEvent;)n=t;return n}function dr(n){for(var t=new wr,i=0,r=arguments.length;++i<r;)t[arguments[i]]=se(t);return t.of=function(i,r){return function(u){try{var f=u.sourceEvent=d3.event;u.target=n,d3.event=u,t[u.type].apply(i,r)}finally{d3.event=f}}},t}function ye(n){var t=[n.a,n.b],i=[n.c,n.d],r=we(t),u=pe(t,i),f=we(ta(i,t,-u))||0;t[0]*i[1]<i[0]*t[1]&&(t[0]*=-1,t[1]*=-1,r*=-1,u*=-1),this.rotate=(r?Math.atan2(t[1],t[0]):Math.atan2(-i[0],i[1]))*af,this.translate=[n.e,n.f],this.scale=[r,f],this.skew=f?Math.atan2(u,f)*af:0}function pe(n,t){return n[0]*t[0]+n[1]*t[1]}function we(n){var t=Math.sqrt(pe(n,n));return t&&(n[0]/=t,n[1]/=t),t}function ta(n,t,i){return n[0]+=i*t[0],n[1]+=i*t[1],n}function be(n){return n=="transform"?d3.interpolateTransform:d3.interpolate}function ia(n,t){return t=t-(n=+n)?1/(t-n):0,function(i){return(i-n)*t}}function ra(n,t){return t=t-(n=+n)?1/(t-n):0,function(i){return Math.max(0,Math.min(1,(i-n)*t))}}function nt(){}function c(n,t,i){return new gr(n,t,i)}function gr(n,t,i){this.r=n,this.g=t,this.b=i}function tt(n){return n<16?"0"+Math.max(0,n).toString(16):Math.min(255,n).toString(16)}function nu(n,t,i){var r=0,u=0,f=0,o,e,s;if(o=/([a-z]+)\((.*)\)/i.exec(n),o){e=o[2].split(",");switch(o[1]){case"hsl":return i(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100);case"rgb":return t(iu(e[0]),iu(e[1]),iu(e[2]))}}return(s=kt.get(n))?t(s.r,s.g,s.b):(n!=null&&n.charAt(0)==="#"&&(n.length===4?(r=n.charAt(1),r+=r,u=n.charAt(2),u+=u,f=n.charAt(3),f+=f):n.length===7&&(r=n.substring(1,3),u=n.substring(3,5),f=n.substring(5,7)),r=parseInt(r,16),u=parseInt(u,16),f=parseInt(f,16)),t(r,u,f))}function ke(n,t,i){var e=Math.min(n/=255,t/=255,i/=255),r=Math.max(n,t,i),u=r-e,f,o,s=(r+e)/2;return u?(o=s<.5?u/(r+e):u/(2-r-e),f=n==r?(t-i)/u+(t<i?6:0):t==r?(i-n)/u+2:(n-t)/u+4,f*=60):o=f=0,it(f,o,s)}function de(n,t,i){n=tu(n),t=tu(t),i=tu(i);var u=eu((.4124564*n+.3575761*t+.1804375*i)/rc),r=eu((.2126729*n+.7151522*t+.072175*i)/uc),f=eu((.0193339*n+.119192*t+.9503041*i)/fc);return rt(116*r-16,500*(u-r),200*(r-f))}function tu(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function iu(n){var t=parseFloat(n);return n.charAt(n.length-1)==="%"?Math.round(t*2.55):t}function it(n,t,i){return new ru(n,t,i)}function ru(n,t,i){this.h=n,this.s=t,this.l=i}function ti(n,t,i){function e(n){return(n>360?n-=360:n<0&&(n+=360),n<60)?r+(u-r)*n/60:n<180?u:n<240?r+(u-r)*(240-n)/60:r}function f(n){return Math.round(e(n)*255)}var r,u;return n=n%360,n<0&&(n+=360),t=t<0?0:t>1?1:t,i=i<0?0:i>1?1:i,u=i<=.5?i*(1+t):i+t-i*t,r=2*i-u,c(f(n+120),f(n),f(n-120))}function ct(n,t,i){return new ii(n,t,i)}function ii(n,t,i){this.h=n,this.c=t,this.l=i}function uu(n,t,i){return rt(i,Math.cos(n*=Math.PI/180)*t,Math.sin(n)*t)}function rt(n,t,i){return new ri(n,t,i)}function ri(n,t,i){this.l=n,this.a=t,this.b=i}function ge(n,t,i){var r=(n+16)/116,u=r+t/500,f=r-i/200;return u=fu(u)*rc,r=fu(r)*uc,f=fu(f)*fc,c(ou(3.2404542*u-1.5371385*r-.4985314*f),ou(-.969266*u+1.8760108*r+.041556*f),ou(.0556434*u-.2040259*r+1.0572252*f))}function no(n,t,i){return ct(Math.atan2(i,t)/Math.PI*180,Math.sqrt(t*t+i*i),n)}function fu(n){return n>.206893034?n*n*n:(n-4/29)/7.787037}function eu(n){return n>.008856?Math.pow(n,1/3):7.787037*n+4/29}function ou(n){return Math.round(255*(n<=.00304?12.92*n:1.055*Math.pow(n,1/2.4)-.055))}function l(n){return bi(n,t),n}function to(n){return function(){return tr(n,this)}}function io(n){return function(){return ec(n,this)}}function ro(n,t){function i(){this.removeAttribute(n)}function r(){this.removeAttributeNS(n.space,n.local)}function u(){this.setAttribute(n,t)}function f(){this.setAttributeNS(n.space,n.local,t)}function e(){var i=t.apply(this,arguments);i==null?this.removeAttribute(n):this.setAttribute(n,i)}function o(){var i=t.apply(this,arguments);i==null?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,i)}return n=d3.ns.qualify(n),t==null?n.local?r:i:typeof t=="function"?n.local?o:e:n.local?f:u}function uo(n){return new RegExp("(?:^|\\s+)"+d3.requote(n)+"(?:\\s+|$)","g")}function fo(n,t){function r(){for(var r=-1;++r<i;)n[r](this,t)}function u(){for(var r=-1,u=t.apply(this,arguments);++r<i;)n[r](this,u)}n=n.trim().split(/\s+/).map(ua);var i=n.length;return typeof t=="function"?u:r}function ua(n){var t=uo(n);return function(i,r){if(f=i.classList)return r?f.add(n):f.remove(n);var f=i.className,e=f.baseVal!=null,u=e?f.baseVal:f;r?(t.lastIndex=0,t.test(u)||(u=oe(u+" "+n),e?f.baseVal=u:i.className=u)):u&&(u=oe(u.replace(t," ")),e?f.baseVal=u:i.className=u)}}function eo(n,t,i){function r(){this.style.removeProperty(n)}function u(){this.style.setProperty(n,t,i)}function f(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(n):this.style.setProperty(n,r,i)}return t==null?r:typeof t=="function"?f:u}function oo(n,t){function i(){delete this[n]}function r(){this[n]=t}function u(){var i=t.apply(this,arguments);i==null?delete this[n]:this[n]=i}return t==null?i:typeof t=="function"?u:r}function su(n){return{__data__:n}}function so(n){return function(){return oc(this,n)}}function fa(n){return arguments.length||(n=d3.ascending),function(t,i){return n(t&&t.__data__,i&&i.__data__)}}function ho(n,t,i){function u(){var t=this[r];t&&(this.removeEventListener(n,t,t.$),delete this[r])}function e(){function f(n){var i=d3.event;d3.event=n,o[0]=e.__data__;try{t.apply(e,o)}finally{d3.event=i}}var e=this,o=arguments;u.call(this),this.addEventListener(n,this[r]=f,f.$=i),f._=t}var r="__on"+n,f=n.indexOf(".");return f>0&&(n=n.substring(0,f)),t?e:u}function lt(n,t){for(var i=0,u=n.length;i<u;i++)for(var f=n[i],r=0,o=f.length,e;r<o;r++)(e=f[r])&&t(e,r,i);return n}function co(n){return bi(n,p),n}function ui(n,t,i){bi(n,f);var r=new y,u=d3.dispatch("start","end"),e=ur;return n.id=t,n.time=i,n.tween=function(t,i){return arguments.length<2?r.get(t):(i==null?r.remove(t):r.set(t,i),n)},n.ease=function(t){return arguments.length?(e=typeof t=="function"?t:d3.ease.apply(d3,arguments),n):e},n.each=function(t,i){if(arguments.length<2)return ea.call(n,t);u.on(t,i);return n},d3.timer(function(f){return lt(n,function(n,o){function y(f){return h.active>t?c():(h.active=t,r.forEach(function(t,i){(i=i.call(n,v,o))&&l.push(i)}),u.start.call(n,v,o),p(f)||d3.timer(p,0,i),1)}function p(i){if(h.active!==t)return c();for(var r=(i-a)/w,s=e(r),f=l.length;f>0;)l[--f].call(n,s);if(r>=1)return c(),g=t,u.end.call(n,v,o),g=0,1}function c(){return--h.count||delete n.__transition__,1}var l=[],a=n.delay,w=n.duration,h=(n=n.node).__transition__||(n.__transition__={active:0,count:0}),v=n.__data__;++h.count,a<=f?y(f):d3.timer(y,a,i)})},0,i),n}function ea(n){var t=g,i=ur,r=ir,u=rr;return g=this.id,ur=this.ease(),lt(this,function(t,i,r){ir=t.delay,rr=t.duration,n.call(t=t.node,t.__data__,i,r)}),g=t,ur=i,ir=r,rr=u,this}function oa(n,t,i){return i!=""&&dt}function fi(n,t){return d3.tween(n,be(t))}function hu(){for(var i,r=Date.now(),n=st,t;n;)i=r-n.then,i>=n.delay&&(n.flush=n.callback(i)),n=n.next;t=lo()-r,t>24?(isFinite(t)&&(clearTimeout(er),er=setTimeout(hu,t)),fr=0):(fr=1,pf(hu))}function lo(){for(var t=null,n=st,i=Infinity;n;)n.flush?(delete yf[n.callback.id],n=t?t.next=n.next:st=n.next):(i=Math.min(i,n.then+n.delay),n=(t=n).next);return i}function ao(n,t){var r=n.ownerSVGElement||n,i,u,f;return r.createSVGPoint?(i=r.createSVGPoint(),or<0&&(window.scrollX||window.scrollY)&&(r=d3.select(document.body).append("svg").style("position","absolute").style("top",0).style("left",0),u=r[0][0].getScreenCTM(),or=!(u.f||u.e),r.remove()),or?(i.x=t.pageX,i.y=t.pageY):(i.x=t.clientX,i.y=t.clientY),i=i.matrixTransform(n.getScreenCTM().inverse()),[i.x,i.y]):(f=n.getBoundingClientRect(),[t.clientX-f.left-n.clientLeft,t.clientY-f.top-n.clientTop])}function at(n){var t=n[0],i=n[n.length-1];return t<i?[t,i]:[i,t]}function ei(n){return n.rangeExtent?n.rangeExtent():at(n.range())}function oi(n,t){var u=0,f=n.length-1,i=n[u],r=n[f],e;return r<i&&(e=u,u=f,f=e,e=i,i=r,r=e),(t=t(r-i))&&(n[u]=t.floor(i),n[f]=t.ceil(r)),n}function sa(){return Math}function vo(n,t,i,r){function f(){var f=Math.min(n.length,t.length)>2?ca:ha,s=r?ra:ia;return e=f(n,t,s,i),o=f(t,n,s,d3.interpolate),u}function u(n){return e(n)}var e,o;return u.invert=function(n){return o(n)},u.domain=function(t){return arguments.length?(n=t.map(Number),f()):n},u.range=function(n){return arguments.length?(t=n,f()):t},u.rangeRound=function(n){return u.range(n).interpolate(d3.interpolateRound)},u.clamp=function(n){return arguments.length?(r=n,f()):r},u.interpolate=function(n){return arguments.length?(i=n,f()):i},u.ticks=function(t){return cu(n,t)},u.tickFormat=function(t){return lu(n,t)},u.nice=function(){return oi(n,po),f()},u.copy=function(){return vo(n,t,i,r)},f()}function yo(n,t){return d3.rebind(n,t,"range","rangeRound","interpolate","clamp")}function po(n){return n=Math.pow(10,Math.round(Math.log(n)/Math.LN10)-1),n&&{floor:function(t){return Math.floor(t/n)*n},ceil:function(t){return Math.ceil(t/n)*n}}}function wo(n,t){var r=at(n),f=r[1]-r[0],i=Math.pow(10,Math.floor(Math.log(f/t)/Math.LN10)),u=t/f*i;return u<=.15?i*=10:u<=.35?i*=5:u<=.75&&(i*=2),r[0]=Math.ceil(r[0]/i)*i,r[1]=Math.floor(r[1]/i)*i+i*.5,r[2]=i,r}function cu(n,t){return d3.range.apply(d3,wo(n,t))}function lu(n,t){return d3.format(",."+Math.max(0,-Math.floor(Math.log(wo(n,t)[2])/Math.LN10+.01))+"f")}function ha(n,t,i,r){var u=i(n[0],n[1]),f=r(t[0],t[1]);return function(n){return f(u(n))}}function ca(n,t,i,r){var e=[],o=[],u=0,f=Math.min(n.length,t.length)-1;for(n[f]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++u<=f;)e.push(i(n[u-1],n[u])),o.push(r(t[u-1],t[u]));return function(t){var i=d3.bisect(n,t,1,f)-1;return o[i](e[i](t))}}function bo(n,t){function i(i){return n(t(i))}var r=t.pow;return i.invert=function(t){return r(n.invert(t))},i.domain=function(u){return arguments.length?(t=u[0]<0?si:au,r=t.pow,n.domain(u.map(t)),i):n.domain().map(r)},i.nice=function(){return n.domain(oi(n.domain(),sa)),i},i.ticks=function(){var o=at(n.domain()),u=[],f;if(o.every(isFinite)){var i=Math.floor(o[0]),e=Math.ceil(o[1]),s=r(o[0]),h=r(o[1]);if(t===si)for(u.push(r(i));i++<e;)for(f=9;f>0;f--)u.push(r(i)*f);else{for(;i<e;i++)for(f=1;f<10;f++)u.push(r(i)*f);u.push(r(i))}for(i=0;u[i]<s;i++);for(e=u.length;u[e-1]>h;e--);u=u.slice(i,e)}return u},i.tickFormat=function(n,u){if(arguments.length<2&&(u=sc),arguments.length<1)return u;var e=Math.max(.1,n/i.ticks().length),o=t===si?(f=-1e-12,Math.floor):(f=1e-12,Math.ceil),f;return function(n){return n/r(o(t(n)+f))<=e?u(n):""}},i.copy=function(){return bo(n.copy(),t)},yo(i,n)}function au(n){return Math.log(n<0?0:n)/Math.LN10}function si(n){return-Math.log(n>0?0:-n)/Math.LN10}function ko(n,t){function i(t){return n(r(t))}var r=hi(t),u=hi(1/t);return i.invert=function(t){return u(n.invert(t))},i.domain=function(t){return arguments.length?(n.domain(t.map(r)),i):n.domain().map(u)},i.ticks=function(n){return cu(i.domain(),n)},i.tickFormat=function(n){return lu(i.domain(),n)},i.nice=function(){return i.domain(oi(i.domain(),po))},i.exponent=function(n){if(!arguments.length)return t;var f=i.domain();return r=hi(t=n),u=hi(1/t),i.domain(f)},i.copy=function(){return ko(n.copy(),t)},yo(i,n)}function hi(n){return function(t){return t<0?-Math.pow(-t,n):Math.pow(t,n)}}function go(n,t){function i(t){return r[((u.get(t)||u.set(t,n.push(t)))-1)%r.length]}function e(t,i){return d3.range(n.length).map(function(n){return t+i*n})}var u,r,f;return i.domain=function(r){if(!arguments.length)return n;n=[],u=new y;for(var e=-1,o=r.length,f;++e<o;)u.has(f=r[e])||u.set(f,n.push(f));return i[t.t].apply(i,t.a)},i.range=function(n){return arguments.length?(r=n,f=0,t={t:"range",a:arguments},i):r},i.rangePoints=function(u,o){arguments.length<2&&(o=0);var s=u[0],h=u[1],c=(h-s)/(Math.max(1,n.length-1)+o);return r=e(n.length<2?(s+h)/2:s+c*o/2,c),f=0,t={t:"rangePoints",a:arguments},i},i.rangeBands=function(u,o,s){arguments.length<2&&(o=0),arguments.length<3&&(s=o);var h=u[1]<u[0],l=u[+h],a=u[1-h],c=(a-l)/(n.length-o+2*s);return r=e(l+c*s,c),h&&r.reverse(),f=c*(1-o),t={t:"rangeBands",a:arguments},i},i.rangeRoundBands=function(u,o,s){arguments.length<2&&(o=0),arguments.length<3&&(s=o);var h=u[1]<u[0],c=u[+h],a=u[1-h],l=Math.floor((a-c)/(n.length-o+2*s)),v=a-c-(n.length-o)*l;return r=e(c+Math.round(v/2),l),h&&r.reverse(),f=Math.round(l*(1-o)),t={t:"rangeRoundBands",a:arguments},i},i.rangeBand=function(){return f},i.rangeExtent=function(){return at(t.a[0])},i.copy=function(){return go(n,t)},i.domain(n)}function ns(n,t){function u(){var u=0,e=n.length,f=t.length;for(r=[];++u<f;)r[u-1]=d3.quantile(n,u/f);return i}function i(n){return isNaN(n=+n)?NaN:t[d3.bisect(r,n)]}var r;return i.domain=function(t){return arguments.length?(n=t.filter(function(n){return!isNaN(n)}).sort(d3.ascending),u()):n},i.range=function(n){return arguments.length?(t=n,u()):t},i.quantiles=function(){return r},i.copy=function(){return ns(n,t)},u()}function ts(n,t,i){function r(t){return i[Math.max(0,Math.min(e,Math.floor(f*(t-n))))]}function u(){return f=i.length/(t-n),e=i.length-1,r}var f,e;return r.domain=function(i){return arguments.length?(n=+i[0],t=+i[i.length-1],u()):[n,t]},r.range=function(n){return arguments.length?(i=n,u()):i},r.copy=function(){return ts(n,t,i)},u()}function is(n,t){function i(i){return t[d3.bisect(n,i)]}return i.domain=function(t){return arguments.length?(n=t,i):n},i.range=function(n){return arguments.length?(t=n,i):t},i.copy=function(){return is(n,t)},i}function rs(n){function t(n){return+n}return t.invert=t,t.domain=t.range=function(i){return arguments.length?(n=i.map(t),t):n},t.ticks=function(t){return cu(n,t)},t.tickFormat=function(t){return lu(n,t)},t.copy=function(){return rs(n)},t}function la(n){return n.innerRadius}function aa(n){return n.outerRadius}function us(n){return n.startAngle}function fs(n){return n.endAngle}function es(n){function t(t){function a(){c.push("M",r(n(e),h))}for(var c=[],e=[],s=-1,v=t.length,l,y=i(u),p=i(f);++s<v;)o.call(this,l=t[s],s)?e.push([+y.call(this,l,s),+p.call(this,l,s)]):e.length&&(a(),e=[]);return e.length&&a(),c.length?c.join(""):null}var u=vu,f=os,o=ee,r=e,s=r.key,h=.7;return t.x=function(n){return arguments.length?(u=n,t):u},t.y=function(n){return arguments.length?(f=n,t):f},t.defined=function(n){return arguments.length?(o=n,t):o},t.interpolate=function(n){return arguments.length?(s=typeof n=="function"?r=n:(r=sr.get(n)||e).key,t):s},t.tension=function(n){return arguments.length?(h=n,t):h},t}function vu(n){return n[0]}function os(n){return n[1]}function e(n){return n.join("L")}function va(n){return e(n)+"Z"}function yu(n){for(var i=0,u=n.length,t=n[0],r=[t[0],",",t[1]];++i<u;)r.push("V",(t=n[i])[1],"H",t[0]);return r.join("")}function pu(n){for(var i=0,u=n.length,t=n[0],r=[t[0],",",t[1]];++i<u;)r.push("H",(t=n[i])[0],"V",t[1]);return r.join("")}function ya(n,t){return n.length<4?e(n):n[1]+ci(n.slice(1,n.length-1),wu(n,t))}function pa(n,t){return n.length<3?e(n):n[0]+ci((n.push(n[0]),n),wu([n[n.length-2]].concat(n,[n[1]]),t))}function wa(n,t){return n.length<3?e(n):n[0]+ci(n,wu(n,t))}function ci(n,t){var s,c;if(t.length<1||n.length!=t.length&&n.length!=t.length+2)return e(n);var l=n.length!=t.length,f="",h=n[0],i=n[1],o=t[0],r=o,u=1;if(l&&(f+="Q"+(i[0]-o[0]*2/3)+","+(i[1]-o[1]*2/3)+","+i[0]+","+i[1],h=n[1],u=2),t.length>1)for(r=t[1],i=n[u],u++,f+="C"+(h[0]+o[0])+","+(h[1]+o[1])+","+(i[0]-r[0])+","+(i[1]-r[1])+","+i[0]+","+i[1],s=2;s<t.length;s++,u++)i=n[u],r=t[s],f+="S"+(i[0]-r[0])+","+(i[1]-r[1])+","+i[0]+","+i[1];return l&&(c=n[u],f+="Q"+(i[0]+r[0]*2/3)+","+(i[1]+r[1]*2/3)+","+c[0]+","+c[1]),f}function wu(n,t){for(var u=[],f=(1-t)/2,r,e=n[0],i=n[1],o=1,s=n.length;++o<s;)r=e,e=i,i=n[o],u.push([f*(i[0]-r[0]),f*(i[1]-r[1])]);return u}function ss(n){if(n.length<3)return e(n);var u=1,h=n.length,t=n[0],f=t[0],o=t[1],i=[f,f,f,(t=n[1])[0]],r=[o,o,o,t[1]],s=[f,",",o];for(vt(s,i,r);++u<h;)t=n[u],i.shift(),i.push(t[0]),r.shift(),r.push(t[1]),vt(s,i,r);for(u=-1;++u<2;)i.shift(),i.push(t[0]),r.shift(),r.push(t[1]),vt(s,i,r);return s.join("")}function ba(n){if(n.length<4)return e(n);for(var f=[],i=-1,o=n.length,t,r=[0],u=[0];++i<3;)t=n[i],r.push(t[0]),u.push(t[1]);for(f.push(h(ht,r)+","+h(ht,u)),--i;++i<o;)t=n[i],r.shift(),r.push(t[0]),u.shift(),u.push(t[1]),vt(f,r,u);return f.join("")}function ka(n){for(var f,i=-1,e=n.length,o=e+4,t,r=[],u=[];++i<4;)t=n[i%e],r.push(t[0]),u.push(t[1]);for(f=[h(ht,r),",",h(ht,u)],--i;++i<o;)t=n[i%e],r.shift(),r.push(t[0]),u.shift(),u.push(t[1]),vt(f,r,u);return f.join("")}function da(n,t){var i=n.length-1;if(i)for(var e=n[0][0],o=n[0][1],s=n[i][0]-e,h=n[i][1]-o,u=-1,r,f;++u<=i;)r=n[u],f=u/i,r[0]=t*r[0]+(1-t)*(e+f*s),r[1]=t*r[1]+(1-t)*(o+f*h);return ss(n)}function h(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]+n[3]*t[3]}function vt(n,t,i){n.push("C",h(cc,t),",",h(cc,i),",",h(lc,t),",",h(lc,i),",",h(ht,t),",",h(ht,i))}function bu(n,t){return(t[1]-n[1])/(t[0]-n[0])}function ga(n){for(var t=0,e=n.length-1,i=[],f=n[0],r=n[1],u=i[0]=bu(f,r);++t<e;)i[t]=(u+(u=bu(f=r,r=n[t+1])))/2;return i[t]=u,i}function nv(n){for(var s=[],u,f,e,i,r=ga(n),t=-1,o=n.length-1;++t<o;)u=bu(n[t],n[t+1]),Math.abs(u)<1e-6?r[t]=r[t+1]=0:(f=r[t]/u,e=r[t+1]/u,i=f*f+e*e,i>9&&(i=u*3/Math.sqrt(i),r[t]=i*f,r[t+1]=i*e));for(t=-1;++t<=o;)i=(n[Math.min(o,t+1)][0]-n[Math.max(0,t-1)][0])/(6*(1+r[t]*r[t])),s.push([i||0,r[t]*i||0]);return s}function tv(n){return n.length<3?e(n):n[0]+ci(n,nv(n))}function hs(n){for(var t,u=-1,f=n.length,i,r;++u<f;)t=n[u],i=t[0],r=t[1]+w,t[0]=i*Math.cos(r),t[1]=i*Math.sin(r);return n}function cs(n){function t(t){function b(){p.push("M",r(n(w),h),v,a(n(l.reverse()),h),"Z")}for(var p=[],l=[],w=[],e=-1,g=t.length,y,nt=i(o),tt=i(s),it=o===u?function(){return k}:i(u),rt=s===f?function(){return d}:i(f),k,d;++e<g;)c.call(this,y=t[e],e)?(l.push([k=+nt.call(this,y,e),d=+tt.call(this,y,e)]),w.push([+it.call(this,y,e),+rt.call(this,y,e)])):l.length&&(b(),l=[],w=[]);return l.length&&b(),p.length?p.join(""):null}var o=vu,u=vu,s=0,f=os,c=ee,r=e,l=r.key,a=r,v="L",h=.7;return t.x=function(n){return arguments.length?(o=u=n,t):u},t.x0=function(n){return arguments.length?(o=n,t):o},t.x1=function(n){return arguments.length?(u=n,t):u},t.y=function(n){return arguments.length?(s=f=n,t):f},t.y0=function(n){return arguments.length?(s=n,t):s},t.y1=function(n){return arguments.length?(f=n,t):f},t.defined=function(n){return arguments.length?(c=n,t):c},t.interpolate=function(n){return arguments.length?(l=typeof n=="function"?r=n:(r=sr.get(n)||e).key,a=r.reverse||r,v=r.closed?"M":"L",t):l},t.tension=function(n){return arguments.length?(h=n,t):h},t}function ls(n){return n.source}function as(n){return n.target}function iv(n){return n.radius}function vs(n){return[n.x,n.y]}function rv(n){return function(){var t=n.apply(this,arguments),i=t[0],r=t[1]+w;return[i*Math.cos(r),i*Math.sin(r)]}}function uv(){return 64}function fv(){return"circle"}function ys(n){var t=Math.sqrt(n/Math.PI);return"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"Z"}function ps(n,t){n.attr("transform",function(n){return"translate("+t(n)+",0)"})}function ws(n,t){n.attr("transform",function(n){return"translate(0,"+t(n)+")"})}function ev(n,t,i){if(u=[],i&&t.length>1){for(var o=at(n.domain()),u,f=-1,h=t.length,s=(t[1]-t[0])/++i,r,e;++f<h;)for(r=i;--r>0;)(e=+t[f]-r*s)>=o[0]&&u.push(e);for(--f,r=0;++r<i&&(e=+t[f]+r*s)<o[1];)u.push(e)}return u}function ov(){ni||(ni=d3.select("body").append("div").style("visibility","hidden").style("top",0).style("height",0).style("width",0).style("overflow-y","scroll").append("div").style("height","2000px").node().parentNode);var n=d3.event,t;try{ni.scrollTop=1e3,ni.dispatchEvent(n),t=1e3-ni.scrollTop}catch(i){t=n.wheelDelta||-n.detail*5}return t}function sv(n){for(var t=n.source,i=n.target,u=hv(t,i),r=[t],f;t!==u;)t=t.parent,r.push(t);for(f=r.length;i!==u;)r.splice(f,0,i),i=i.parent;return r}function bs(n){for(var i=[],t=n.parent;t!=null;)i.push(n),n=t,t=t.parent;return i.push(n),i}function hv(n,t){if(n===t)return n;for(var r=bs(n),u=bs(t),i=r.pop(),f=u.pop(),e=null;i===f;)e=i,i=r.pop(),f=u.pop();return e}function cv(n){n.fixed|=2}function lv(n){n.fixed&=1}function av(n){n.fixed|=4}function vv(n){n.fixed&=3}function ks(n,t,i){var f=0,e=0,u;if(n.charge=0,!n.leaf)for(var o=n.nodes,h=o.length,s=-1,r;++s<h;)(r=o[s],r!=null)&&(ks(r,t,i),n.charge+=r.charge,f+=r.charge*r.cx,e+=r.charge*r.cy);n.point&&(n.leaf||(n.point.x+=Math.random()-.5,n.point.y+=Math.random()-.5),u=t*i[n.point.index],n.charge+=n.pointCharge=u,f+=u*n.point.x,e+=u*n.point.y),n.cx=f/n.charge,n.cy=e/n.charge}function yv(){return 20}function pv(){return 1}function wv(n){return n.x}function bv(n){return n.y}function kv(n,t,i){n.y0=t,n.y=i}function ku(n){return d3.range(n.length)}function du(n){for(var t=-1,r=n[0].length,i=[];++t<r;)i[t]=0;return i}function dv(n){for(var t=1,i=0,r=n[0][1],u,f=n.length;t<f;++t)(u=n[t][1])>r&&(i=t,r=u);return i}function gv(n){return n.reduce(ny,0)}function ny(n,t){return n+t[1]}function ty(n,t){return ds(n,Math.ceil(Math.log(t.length)/Math.LN2+1))}function ds(n,t){for(var i=-1,r=+n[0],f=(n[1]-r)/t,u=[];++i<=t;)u[i]=f*i+r;return u}function iy(n){return[d3.min(n),d3.max(n)]}function yt(n,t){return d3.rebind(n,t,"sort","children","value"),n.links=ey,n.nodes=function(t){return cr=!0,(n.nodes=n)(t)},n}function ry(n){return n.children}function uy(n){return n.value}function fy(n,t){return t.value-n.value}function ey(n){return d3.merge(n.map(function(n){return(n.children||[]).map(function(t){return{source:n,target:t}})}))}function oy(n,t){return n.value-t.value}function gu(n,t){var i=n._pack_next;n._pack_next=t,t._pack_prev=n,t._pack_next=i,i._pack_prev=t}function gs(n,t){n._pack_next=t,t._pack_prev=n}function nh(n,t){var i=t.x-n.x,r=t.y-n.y,u=n.r+t.r;return u*u-i*i-r*r>.001}function th(n){function h(n){c=Math.min(n.x-n.r,c),l=Math.max(n.x+n.r,l),a=Math.min(n.y-n.r,a),v=Math.max(n.y+n.r,v)}if((u=n.children)&&(s=u.length)){var u,c=Infinity,l=-Infinity,a=Infinity,v=-Infinity,i,r,t,f,e,o,s;if(u.forEach(sy),i=u[0],i.x=-i.r,i.y=0,h(i),s>1&&(r=u[1],r.x=r.r,r.y=0,h(r),s>2))for(t=u[2],rh(i,r,t),h(t),gu(i,t),i._pack_prev=t,gu(t,r),r=i._pack_next,f=3;f<s;f++){rh(i,r,t=u[f]);var y=0,p=1,w=1;for(e=r._pack_next;e!==r;e=e._pack_next,p++)if(nh(e,t)){y=1;break}if(y==1)for(o=i._pack_prev;o!==e._pack_prev;o=o._pack_prev,w++)if(nh(o,t))break;y?(p<w||p==w&&r.r<i.r?gs(i,r=e):gs(i=o,r),f--):(gu(i,t),r=t,h(t))}var k=(c+l)/2,d=(a+v)/2,b=0;for(f=0;f<s;f++)t=u[f],t.x-=k,t.y-=d,b=Math.max(b,t.r+Math.sqrt(t.x*t.x+t.y*t.y));n.r=b,u.forEach(hy)}}function sy(n){n._pack_next=n._pack_prev=n}function hy(n){delete n._pack_next,delete n._pack_prev}function ih(n,t,i,r){var u=n.children,f,e;if(n.x=t+=r*n.x,n.y=i+=r*n.y,n.r*=r,u)for(f=-1,e=u.length;++f<e;)ih(u[f],t,i,r)}function rh(n,t,i){var r=n.r+i.r,f=t.x-n.x,e=t.y-n.y,u,o,s,h;r&&(f||e)?(u=t.r+i.r,o=f*f+e*e,u*=u,r*=r,s=.5+(r-u)/(2*o),h=Math.sqrt(Math.max(0,2*u*(r+o)-(r-=o)*r-u*u))/(2*o),i.x=n.x+s*f+h*e,i.y=n.y+s*e-h*f):(i.x=n.x+r,i.y=n.y)}function cy(n){return 1+d3.max(n,function(n){return n.y})}function ly(n){return n.reduce(function(n,t){return n+t.x},0)/n.length}function uh(n){var t=n.children;return t&&t.length?uh(t[0]):n}function fh(n){var t=n.children,i;return t&&(i=t.length)?fh(t[i-1]):n}function eh(n,t){return n.parent==t.parent?1:2}function nf(n){var t=n.children;return t&&t.length?t[0]:n._tree.thread}function tf(n){var t=n.children,i;return t&&(i=t.length)?t[i-1]:n._tree.thread}function li(n,t){var i=n.children,u,f,r;if(i&&(f=i.length))for(r=-1;++r<f;)t(u=li(i[r],t),n)>0&&(n=u);return n}function ay(n,t){return n.x-t.x}function vy(n,t){return t.x-n.x}function yy(n,t){return n.depth-t.depth}function a(n,t){function i(n,r){var u=n.children,f,e,o,s;if(u&&(s=u.length))for(e=null,o=-1;++o<s;)f=u[o],i(f,e),e=f;t(n,r)}i(n,null)}function py(n){for(var i=0,f=0,r=n.children,u=r.length,t;--u>=0;)t=r[u]._tree,t.prelim+=i,t.mod+=i,i+=t.shift+(f+=t.change)}function wy(n,t,i){n=n._tree,t=t._tree;var r=i/(t.number-n.number);n.change+=r,t.change-=r,t.shift+=i,t.prelim+=i,t.mod+=i}function by(n,t,i){return n._tree.ancestor.parent==t.parent?n._tree.ancestor:i}function rf(n){return{x:n.x,y:n.y,dx:n.dx,dy:n.dy}}function oh(n,t){var u=n.x+t[3],f=n.y+t[0],i=n.dx-t[1]-t[3],r=n.dy-t[0]-t[2];return i<0&&(u+=i/2,i=0),r<0&&(f+=r/2,r=0),{x:u,y:f,dx:i,dy:r}}function sh(n,t){function r(n,i){d3.text(n,t,function(n){i(n&&r.parse(n))})}function u(t){return t.map(f).join(n)}function f(n){return e.test(n)?'"'+n.replace(/\"/g,'""')+'"':n}var i=new RegExp("\r\n|["+n+"\r\n]","g"),e=new RegExp('["'+n+"\n]"),o=n.charCodeAt(0);return r.parse=function(n){var t;return r.parseRows(n,function(n,i){if(i){for(var u={},r=-1,f=t.length;++r<f;)u[t[r]]=n[r];return u}return t=n,null})},r.parseRows=function(n,t){function s(){var r,t,s,f;if(i.lastIndex>=n.length)return e;if(u)return u=!1,h;if(r=i.lastIndex,n.charCodeAt(r)===34){for(t=r;t++<n.length;)if(n.charCodeAt(t)===34){if(n.charCodeAt(t+1)!==34)break;t++}return i.lastIndex=t+2,s=n.charCodeAt(t+1),s===13?(u=!0,n.charCodeAt(t+2)===10&&i.lastIndex++):s===10&&(u=!0),n.substring(r+1,t).replace(/""/g,'"')}return(f=i.exec(n),f)?(u=f[0].charCodeAt(0)!==o,n.substring(r,f.index)):(i.lastIndex=n.length,n.substring(r))}var h={},e={},c=[],l=0,r,u,f;for(i.lastIndex=0;(r=s())!==e;){for(f=[];r!==h&&r!==e;)f.push(r),r=s();(!t||(f=t(f,l++)))&&c.push(f)}return c},r.format=function(n){return n.map(u).join("\n")},r}function ai(n,t){return function(i){return i&&n.hasOwnProperty(i.type)?n[i.type](i):t}}function uf(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function vi(n,t){gf.hasOwnProperty(n.type)&&gf[n.type](n,t)}function ky(n,t){vi(n.geometry,t)}function dy(n,t){for(var r=n.features,i=0,u=r.length;i<u;i++)vi(r[i].geometry,t)}function gy(n,t){for(var r=n.geometries,i=0,u=r.length;i<u;i++)vi(r[i],t)}function hh(n,t){for(var r=n.coordinates,i=0,u=r.length;i<u;i++)t.apply(null,r[i])}function np(n,t){for(var u=n.coordinates,i=0,e=u.length;i<e;i++)for(var f=u[i],r=0,o=f.length;r<o;r++)t.apply(null,f[r])}function tp(n,t){for(var u=n.coordinates,i=0,e=u.length;i<e;i++)for(var f=u[i][0],r=0,o=f.length;r<o;r++)t.apply(null,f[r])}function ip(n,t){t.apply(null,n.coordinates)}function rp(n,t){for(var r=n.coordinates[0],i=0,u=r.length;i<u;i++)t.apply(null,r[i])}function up(n){return n.source}function fp(n){return n.target}function ch(){function i(i){var r=Math.sin(i*=t)*h,u=Math.sin(t-i)*h,f=u*l+r*y,o=u*a+r*p,c=u*e+r*s;return[Math.atan2(o,f)/n,Math.atan2(c,Math.sqrt(f*f+o*o))/n]}var f,c,r,e,l,a,o,v,u,s,y,p,t,h;return i.distance=function(){return t==null&&(h=1/Math.sin(t=Math.acos(Math.max(-1,Math.min(1,e*s+r*u*Math.cos(o-f)))))),t},i.source=function(u){var o=Math.cos(f=u[0]*n),s=Math.sin(f);return r=Math.cos(c=u[1]*n),e=Math.sin(c),l=r*o,a=r*s,t=null,i},i.target=function(r){var f=Math.cos(o=r[0]*n),e=Math.sin(o);return u=Math.cos(v=r[1]*n),s=Math.sin(v),y=u*f,p=u*e,t=null,i},i}function lh(n,t){var i=ch().source(n).target(t);return i.distance(),i}function ep(n){for(var t=0,i=0;;){if(n(t,i))return[t,i];t===0?(t=i+1,i=0):(t=t-1,i=i+1)}}function op(n,t,i,r){var u,f,e,o,s,h,c;return u=r[n],f=u[0],e=u[1],u=r[t],o=u[0],s=u[1],u=r[i],h=u[0],c=u[1],(c-e)*(o-f)-(s-e)*(h-f)>0}function ff(n,t,i){return(i[0]-t[0])*(n[1]-t[1])<(i[1]-t[1])*(n[0]-t[0])}function ah(n,t,i,r){var u=n[0],v=t[0],e=i[0],y=r[0],f=n[1],p=t[1],o=i[1],w=r[1],b=u-e,s=v-u,h=y-e,k=f-o,c=p-f,l=w-o,a=(h*k-l*b)/(l*s-h*c);return[u+a*s,f+a*c]}function vh(n,t){var l={list:n.map(function(n,t){return{index:t,x:n[0],y:n[1]}}).sort(function(n,t){return n.y<t.y?-1:n.y>t.y?1:n.x<t.x?-1:n.x>t.x?1:0}),bottomSite:null},i={list:[],leftEnd:null,rightEnd:null,init:function(){i.leftEnd=i.createHalfEdge(null,"l"),i.rightEnd=i.createHalfEdge(null,"l"),i.leftEnd.r=i.rightEnd,i.rightEnd.l=i.leftEnd,i.list.unshift(i.leftEnd,i.rightEnd)},createHalfEdge:function(n,t){return{edge:n,side:t,vertex:null,l:null,r:null}},insert:function(n,t){t.l=n,t.r=n.r,n.r.l=t,n.r=t},leftBound:function(n){var t=i.leftEnd;do t=t.r;while(t!=i.rightEnd&&e.rightOf(t,n));return t=t.l},del:function(n){n.l.r=n.r,n.r.l=n.l,n.edge=null},right:function(n){return n.r},left:function(n){return n.l},leftRegion:function(n){return n.edge==null?l.bottomSite:n.edge.region[n.side]},rightRegion:function(n){return n.edge==null?l.bottomSite:n.edge.region[lr[n.side]]}},e={bisect:function(n,t){var u={region:{l:n,r:t},ep:{l:null,r:null}},i=t.x-n.x,r=t.y-n.y,f=i>0?i:-i,e=r>0?r:-r;return u.c=n.x*i+n.y*r+(i*i+r*r)*.5,f>e?(u.a=1,u.b=r/i,u.c/=i):(u.b=1,u.a=i/r,u.c/=r),u},intersect:function(n,t){var i=n.edge,r=t.edge,u,h;if(!i||!r||i.region.r==r.region.r||(u=i.a*r.b-i.b*r.a,Math.abs(u)<1e-10))return null;var c=(i.c*r.b-r.c*i.b)/u,l=(r.c*i.a-i.c*r.a)/u,e=i.region.r,o=r.region.r,f,s;return(e.y<o.y||e.y==o.y&&e.x<o.x?(f=n,s=i):(f=t,s=r),h=c>=s.region.r.x,h&&f.side==="l"||!h&&f.side==="r")?null:{x:c,y:l}},rightOf:function(n,t){var i=n.edge,u=i.region.r,f=t.x>u.x,h;if(f&&n.side==="l")return 1;if(!f&&n.side==="r")return 0;if(i.a===1){var e=t.y-u.y,o=t.x-u.x,s=0,r=0;!f&&i.b<0||f&&i.b>=0?r=s=e>=i.b*o:(r=t.x+t.y*i.b>i.c,i.b<0&&(r=!r),r||(s=1)),s||(h=u.x-i.region.l.x,r=i.b*(o*o-e*e)<h*e*(1+2*o/h+i.b*i.b),i.b<0&&(r=!r))}else{var c=i.c-i.a*t.x,l=t.y-c,a=t.x-u.x,v=c-u.y;r=l*l>a*a+v*v}return n.side==="l"?r:!r},endPoint:function(n,i,r){(n.ep[i]=r,n.ep[lr[i]])&&t(n)},distance:function(n,t){var i=n.x-t.x,r=n.y-t.y;return Math.sqrt(i*i+r*r)}},u={list:[],insert:function(n,t,i){var f;n.vertex=t,n.ystar=t.y+i;for(var r=0,e=u.list,o=e.length;r<o;r++)if(f=e[r],n.ystar>f.ystar||n.ystar==f.ystar&&t.x>f.vertex.x)continue;else break;e.splice(r,0,n)},del:function(n){for(var t=0,i=u.list,r=i.length;t<r&&i[t]!=n;++t);i.splice(t,1)},empty:function(){return u.list.length===0},nextEvent:function(n){for(var t=0,i=u.list,r=i.length;t<r;++t)if(i[t]==n)return i[t+1];return null},min:function(){var n=u.list[0];return{x:n.vertex.x,y:n.ystar}},extractMin:function(){return u.list.shift()}},s,p,r,h,v,k,o,c,y,d,f,w,a,b;for(i.init(),l.bottomSite=l.list.shift(),s=l.list.shift();;)if(u.empty()||(p=u.min()),s&&(u.empty()||s.y<p.y||s.y==p.y&&s.x<p.x))r=i.leftBound(s),h=i.right(r),c=i.rightRegion(r),a=e.bisect(c,s),o=i.createHalfEdge(a,"l"),i.insert(r,o),f=e.intersect(r,o),f&&(u.del(r),u.insert(r,f,e.distance(f,s))),r=o,o=i.createHalfEdge(a,"r"),i.insert(r,o),f=e.intersect(o,h),f&&u.insert(o,f,e.distance(f,s)),s=l.list.shift();else if(u.empty())break;else r=u.extractMin(),v=i.left(r),h=i.right(r),k=i.right(h),c=i.leftRegion(r),y=i.rightRegion(h),w=r.vertex,e.endPoint(r.edge,r.side,w),e.endPoint(h.edge,h.side,w),i.del(r),u.del(h),i.del(h),b="l",c.y>y.y&&(d=c,c=y,y=d,b="r"),a=e.bisect(c,y),o=i.createHalfEdge(a,b),i.insert(v,o),e.endPoint(a,lr[b],w),f=e.intersect(v,o),f&&(u.del(v),u.insert(v,f,e.distance(f,c))),f=e.intersect(o,k),f&&u.insert(o,f,e.distance(f,c));for(r=i.right(i.leftEnd);r!=i.rightEnd;r=i.right(r))t(r.edge)}function yh(){return{leaf:!0,nodes:[],point:null}}function pt(n,t,i,r,u,f){if(!n(t,i,r,u,f)){var o=(i+u)*.5,s=(r+f)*.5,e=t.nodes;e[0]&&pt(n,e[0],i,r,o,s),e[1]&&pt(n,e[1],o,r,u,s),e[2]&&pt(n,e[2],i,s,o,f),e[3]&&pt(n,e[3],o,s,u,f)}}function sp(n){return{x:n[0],y:n[1]}}function k(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function ph(n){return n.substring(0,3)}function yi(n,t,i,r){for(var u,f,e=0,o=t.length,s=i.length;e<o;){if(r>=s)return-1;if(u=t.charCodeAt(e++),u==37){if(f=cb[t.charAt(e++)],!f||(r=f(n,i,r))<0)return-1}else if(u!=i.charCodeAt(r++))return-1}return r}function pi(n){return new RegExp("^(?:"+n.map(d3.requote).join("|")+")","i")}function wh(n){for(var i=new y,t=-1,r=n.length;++t<r;)i.set(n[t].toLowerCase(),t);return i}function hp(n,t,i){gc.lastIndex=0;var r=gc.exec(t.substring(i));return r?i+=r[0].length:-1}function cp(n,t,i){dc.lastIndex=0;var r=dc.exec(t.substring(i));return r?i+=r[0].length:-1}function lp(n,t,i){tl.lastIndex=0;var r=tl.exec(t.substring(i));return r?(n.m=hb.get(r[0].toLowerCase()),i+=r[0].length):-1}function ap(n,t,i){nl.lastIndex=0;var r=nl.exec(t.substring(i));return r?(n.m=sb.get(r[0].toLowerCase()),i+=r[0].length):-1}function vp(n,t,i){return yi(n,vr.c.toString(),t,i)}function yp(n,t,i){return yi(n,vr.x.toString(),t,i)}function pp(n,t,i){return yi(n,vr.X.toString(),t,i)}function wp(n,t,i){u.lastIndex=0;var r=u.exec(t.substring(i,i+4));return r?(n.y=+r[0],i+=r[0].length):-1}function bp(n,t,i){u.lastIndex=0;var r=u.exec(t.substring(i,i+2));return r?(n.y=kp(+r[0]),i+=r[0].length):-1}function kp(n){return n+(n>68?1900:2e3)}function dp(n,t,i){u.lastIndex=0;var r=u.exec(t.substring(i,i+2));return r?(n.m=r[0]-1,i+=r[0].length):-1}function bh(n,t,i){u.lastIndex=0;var r=u.exec(t.substring(i,i+2));return r?(n.d=+r[0],i+=r[0].length):-1}function kh(n,t,i){u.lastIndex=0;var r=u.exec(t.substring(i,i+2));return r?(n.H=+r[0],i+=r[0].length):-1}function gp(n,t,i){u.lastIndex=0;var r=u.exec(t.substring(i,i+2));return r?(n.M=+r[0],i+=r[0].length):-1}function nw(n,t,i){u.lastIndex=0;var r=u.exec(t.substring(i,i+2));return r?(n.S=+r[0],i+=r[0].length):-1}function tw(n,t,i){u.lastIndex=0;var r=u.exec(t.substring(i,i+3));return r?(n.L=+r[0],i+=r[0].length):-1}function iw(n,t,i){var r=lb.get(t.substring(i,i+=2).toLowerCase());return r==null?-1:(n.p=r,i)}function rw(n){var t=n.getTimezoneOffset(),i=t>0?"-":"+",r=~~(Math.abs(t)/60),u=Math.abs(t)%60;return i+s(r)+s(u)}function ef(n){return n.toISOString()}function d(n,t,i){function o(t){var i=n(t),r=e(i,1);return t-i<r-t?i:r}function f(i){return t(i=n(new r(i-1)),1),i}function e(n,i){return t(n=new r(+n),i),n}function s(n,r,u){var e=f(n),o=[];if(u>1)while(e<r)i(e)%u||o.push(new Date(+e)),t(e,1);else while(e<r)o.push(new Date(+e)),t(e,1);return o}function h(n,t,i){try{r=k;var u=new k;return u._=n,s(u,t,i)}finally{r=Date}}n.floor=n,n.round=o,n.ceil=f,n.offset=e,n.range=s;var u=n.utc=wi(n);return u.floor=u,u.round=wi(o),u.ceil=wi(f),u.offset=wi(e),u.range=h,n}function wi(n){return function(t,i){try{r=k;var u=new k;return u._=t,n(u,i)._}finally{r=Date}}}function of(n,t,i){function r(t){return n(t)}return r.invert=function(t){return sf(n.invert(t))},r.domain=function(t){return arguments.length?(n.domain(t),r):n.domain().map(sf)},r.nice=function(n){return r.domain(oi(r.domain(),function(){return n}))},r.ticks=function(i,u){var e=uw(r.domain());if(typeof i!="function"){var s=e[1]-e[0],o=s/i,f=d3.bisect(yr,o);if(f==yr.length)return t.year(e,i);if(!f)return n.ticks(i).map(sf);Math.log(o/yr[f-1])<Math.log(yr[f]/o)&&--f,i=t[f],u=i[1],i=i[0].range}return i(e[0],new Date(+e[1]+1),u)},r.tickFormat=function(){return i},r.copy=function(){return of(n.copy(),t,i)},d3.rebind(r,n,"range","rangeRound","interpolate","clamp")}function uw(n){var t=n[0],i=n[n.length-1];return t<i?[t,i]:[i,t]}function sf(n){return new Date(n)}function dh(n){return function(t){for(var r=n.length-1,i=n[r];!i[1](t);)i=n[--r];return i[0](t)}}function hf(n){var t=new Date(n,0,1);return t.setFullYear(n),t}function fw(n){var t=n.getFullYear(),i=hf(t),r=hf(t+1);return t+(n-i)/(r-i)}function cf(n){var t=new Date(Date.UTC(n,0,1));return t.setUTCFullYear(n),t}function ew(n){var t=n.getUTCFullYear(),i=cf(t),r=cf(t+1);return t+(n-i)/(r-i)}var fe,ul,ut,bi,ft,gh,lf,nc,ki,af,ic,wt,bt,kt,di,gi,t,ot,p,pf,or,sc,w,hc,sr,wf,gt,bf,ac,hr,ni,kf,df,vc,yc,cr,n,gf,pc,wc,lr,r,ne,re;Date.now||(Date.now=function(){return+new Date});try{document.createElement("div").style.setProperty("opacity",0,"")}catch(wb){fe=CSSStyleDeclaration.prototype,ul=fe.setProperty,fe.setProperty=function(n,t,i){ul.call(this,n,t+"",i)}}d3={version:"2.10.3"},ut=ol;try{ut(document.documentElement.childNodes)[0].nodeType}catch(bb){ut=el}bi=[].__proto__?function(n,t){n.__proto__=t}:function(n,t){for(var i in t)n[i]=t[i]},d3.map=function(n){var i=new y,t;for(t in n)i.set(t,n[t]);return i},fl(y,{has:function(n){return ft+n in this},get:function(n){return this[ft+n]},set:function(n,t){return this[ft+n]=t},remove:function(n){return n=ft+n,n in this&&delete this[n]},keys:function(){var n=[];return this.forEach(function(t){n.push(t)}),n},values:function(){var n=[];return this.forEach(function(t,i){n.push(i)}),n},entries:function(){var n=[];return this.forEach(function(t,i){n.push({key:t,value:i})}),n},forEach:function(n){for(var t in this)t.charCodeAt(0)===gh&&n.call(this,t.substring(1),this[t])}}),ft="\0",gh=ft.charCodeAt(0),d3.functor=i,d3.rebind=function(n,t){for(var i=1,u=arguments.length,r;++i<u;)n[r=arguments[i]]=hl(n,t,t[r]);return n},d3.ascending=function(n,t){return n<t?-1:n>t?1:n>=t?0:NaN},d3.descending=function(n,t){return t<n?-1:t>n?1:t>=n?0:NaN},d3.mean=function(n,t){var e=n.length,u,i=0,r=-1,f=0;if(arguments.length===1)while(++r<e)pr(u=n[r])&&(i+=(u-i)/++f);else while(++r<e)pr(u=t.call(n,n[r],r))&&(i+=(u-i)/++f);return f?i:undefined},d3.median=function(n,t){return arguments.length>1&&(n=n.map(t)),n=n.filter(pr),n.length?d3.quantile(n.sort(d3.ascending),.5):undefined},d3.min=function(n,t){var r=-1,f=n.length,i,u;if(arguments.length===1){while(++r<f&&((i=n[r])==null||i!=i))i=undefined;while(++r<f)(u=n[r])!=null&&i>u&&(i=u)}else{while(++r<f&&((i=t.call(n,n[r],r))==null||i!=i))i=undefined;while(++r<f)(u=t.call(n,n[r],r))!=null&&i>u&&(i=u)}return i},d3.max=function(n,t){var r=-1,f=n.length,i,u;if(arguments.length===1){while(++r<f&&((i=n[r])==null||i!=i))i=undefined;while(++r<f)(u=n[r])!=null&&u>i&&(i=u)}else{while(++r<f&&((i=t.call(n,n[r],r))==null||i!=i))i=undefined;while(++r<f)(u=t.call(n,n[r],r))!=null&&u>i&&(i=u)}return i},d3.extent=function(n,t){var r=-1,e=n.length,i,u,f;if(arguments.length===1){while(++r<e&&((i=f=n[r])==null||i!=i))i=f=undefined;while(++r<e)(u=n[r])!=null&&(i>u&&(i=u),f<u&&(f=u))}else{while(++r<e&&((i=f=t.call(n,n[r],r))==null||i!=i))i=undefined;while(++r<e)(u=t.call(n,n[r],r))!=null&&(i>u&&(i=u),f<u&&(f=u))}return[i,f]},d3.random={normal:function(n,t){var i=arguments.length;return i<2&&(t=1),i<1&&(n=0),function(){var r,u,i;do r=Math.random()*2-1,u=Math.random()*2-1,i=r*r+u*u;while(!i||i>1);return n+t*r*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(n,t){var i=arguments.length,r;return i<2&&(t=1),i<1&&(n=0),r=d3.random.normal(),function(){return Math.exp(n+t*r())}},irwinHall:function(n){return function(){for(var t=0,i=0;i<n;i++)t+=Math.random();return t/n}}},d3.sum=function(n,t){var u=0,f=n.length,r,i=-1;if(arguments.length===1)while(++i<f)isNaN(r=+n[i])||(u+=r);else while(++i<f)isNaN(r=+t.call(n,n[i],i))||(u+=r);return u},d3.quantile=function(n,t){var u=(n.length-1)*t+1,i=Math.floor(u),r=n[i-1],f=u-i;return f?r+f*(n[i]-r):r},d3.transpose=function(n){return d3.zip.apply(d3,n)},d3.zip=function(){var n,i,f;if(!(i=arguments.length))return[];for(var t=-1,r=d3.min(arguments,cl),u=new Array(r);++t<r;)for(n=-1,f=u[t]=new Array(i);++n<i;)f[n]=arguments[n][t];return u},d3.bisector=function(n){return{left:function(t,i,r,u){for(arguments.length<3&&(r=0),arguments.length<4&&(u=t.length);r<u;){var f=r+u>>>1;n.call(t,t[f],f)<i?r=f+1:u=f}return r},right:function(t,i,r,u){for(arguments.length<3&&(r=0),arguments.length<4&&(u=t.length);r<u;){var f=r+u>>>1;i<n.call(t,t[f],f)?u=f:r=f+1}return r}}},lf=d3.bisector(function(n){return n}),d3.bisectLeft=lf.left,d3.bisect=d3.bisectRight=lf.right,d3.first=function(n,t){var r=0,f=n.length,i=n[0],u;for(arguments.length===1&&(t=d3.ascending);++r<f;)t.call(n,i,u=n[r])>0&&(i=u);return i},d3.last=function(n,t){var r=0,f=n.length,i=n[0],u;for(arguments.length===1&&(t=d3.ascending);++r<f;)t.call(n,i,u=n[r])<=0&&(i=u);return i},d3.nest=function(){function i(f,e){if(e>=t.length)return u?u.call(n,f):r?f.sort(r):f;for(var h=-1,v=f.length,p=t[e++],c,o,s=new y,l,a={};++h<v;)(l=s.get(c=p(o=f[h])))?l.push(o):s.set(c,[o]);return s.forEach(function(n,t){a[n]=i(t,e)}),a}function f(n,i){if(i>=t.length)return n;var r=[],o=e[i++],u;for(u in n)r.push({key:u,values:f(n[u],i)});return o&&r.sort(function(n,t){return o(n.key,t.key)}),r}var n={},t=[],e=[],r,u;return n.map=function(n){return i(n,0)},n.entries=function(n){return f(i(n,0),0)},n.key=function(i){return t.push(i),n},n.sortKeys=function(i){return e[t.length-1]=i,n},n.sortValues=function(t){return r=t,n},n.rollup=function(t){return u=t,n},n},d3.keys=function(n){var t=[],i;for(i in n)t.push(i);return t},d3.values=function(n){var t=[],i;for(i in n)t.push(n[i]);return t},d3.entries=function(n){var i=[],t;for(t in n)i.push({key:t,value:n[t]});return i},d3.permute=function(n,t){for(var r=[],i=-1,u=t.length;++i<u;)r[i]=n[t[i]];return r},d3.merge=function(n){return Array.prototype.concat.apply([],n)},d3.split=function(n,t){var u=[],i=[],f,r=-1,e=n.length;for(arguments.length<2&&(t=ll);++r<e;)t.call(i,f=n[r],r)?i=[]:(i.length||u.push(i),i.push(f));return u},d3.range=function(n,t,i){if(arguments.length<3&&(i=1,arguments.length<2&&(t=n,n=0)),(t-n)/i==Infinity)throw new Error("infinite range");var f=[],r=al(Math.abs(i)),e=-1,u;if(n*=r,t*=r,i*=r,i<0)while((u=n+i*++e)>t)f.push(u/r);else while((u=n+i*++e)<t)f.push(u/r);return f},d3.requote=function(n){return n.replace(nc,"\\$&")},nc=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,d3.round=function(n,t){return t?Math.round(n*(t=Math.pow(10,t)))/t:Math.round(n)},d3.xhr=function(n,t,i){var r=new XMLHttpRequest;arguments.length<3?(i=t,t=null):t&&r.overrideMimeType&&r.overrideMimeType(t),r.open("GET",n,!0),t&&r.setRequestHeader("Accept",t),r.onreadystatechange=function(){if(r.readyState===4){var n=r.status;i(!n&&r.response||n>=200&&n<300||n===304?r:null)}},r.send(null)},d3.text=function(n,t,i){function r(n){i(n&&n.responseText)}arguments.length<3&&(i=t,t=null),d3.xhr(n,t,r)},d3.json=function(n,t){d3.text(n,"application/json",function(n){t(n?JSON.parse(n):null)})},d3.html=function(n,t){d3.text(n,"text/html",function(n){if(n!=null){var i=document.createRange();i.selectNode(document.body),n=i.createContextualFragment(n)}t(n)})},d3.xml=function(n,t,i){function r(n){i(n&&n.responseXML)}arguments.length<3&&(i=t,t=null),d3.xhr(n,t,r)},ki={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},d3.ns={prefix:ki,qualify:function(n){var t=n.indexOf(":"),i=n;return t>=0&&(i=n.substring(0,t),n=n.substring(t+1)),ki.hasOwnProperty(i)?{space:ki[i],local:n}:n}},d3.dispatch=function(){for(var n=new wr,t=-1,i=arguments.length;++t<i;)n[arguments[t]]=se(n);return n},wr.prototype.on=function(n,t){var i=n.indexOf("."),r="";return i>0&&(r=n.substring(i+1),n=n.substring(0,i)),arguments.length<2?this[n].on(r):this[n].on(r,t)},d3.format=function(n){var i=ow.exec(n),s=i[1]||" ",l=i[3]||"",h=i[5],u=+i[6],e=i[7],r=i[8],t=i[9],f=1,o="",c=!1;r&&(r=+r.substring(1)),h&&(s="0",e&&(u-=Math.floor((u-1)/4)));switch(t){case"n":e=!0,t="g";break;case"%":f=100,o="%",t="f";break;case"p":f=100,o="%",t="r";break;case"d":c=!0,r=0;break;case"s":f=-1,t="r"}return t!="r"||r||(t="g"),t=sw.get(t)||vl,function(n){var a,v,i;return c&&n%1?"":(a=n<0&&(n=-n)?"-":l,f<0?(v=d3.formatPrefix(n,r),n=v.scale(n),o=v.symbol):n*=f,n=t(n,r),h?(i=n.length+a.length,i<u&&(n=new Array(u-i+1).join(s)+n),e&&(n=ce(n)),n=a+n):(e&&(n=ce(n)),n=a+n,i=n.length,i<u&&(n=new Array(u-i+1).join(s)+n)),n+o)}};var ow=/(?:([^{])?([<>=^]))?([+\- ])?(#)?(0)?([0-9]+)?(,)?(\.[0-9]+)?([a-zA-Z%])?/,sw=d3.map({g:function(n,t){return n.toPrecision(t)},e:function(n,t){return n.toExponential(t)},f:function(n,t){return n.toFixed(t)},r:function(n,t){return d3.round(n,t=he(n,t)).toFixed(Math.max(0,Math.min(20,t)))}}),hw=["y","z","a","f","p","n","μ","m","","k","M","G","T","P","E","Z","Y"].map(yl);d3.formatPrefix=function(n,t){var i=0;return n&&(n<0&&(n*=-1),t&&(n=d3.round(n,he(n,t))),i=1+Math.floor(1e-12+Math.log(n)/Math.LN10),i=Math.max(-24,Math.min(24,Math.floor((i<=0?i+1:i-1)/3)*3))),hw[8+i/3]};var cw=kr(2),lw=kr(3),tc=function(){return br},aw=d3.map({linear:tc,poly:kr,quad:function(){return cw},cubic:function(){return lw},sin:function(){return wl},exp:function(){return bl},circle:function(){return kl},elastic:dl,back:gl,bounce:function(){return na}}),vw=d3.map({"in":br,out:le,"in-out":ae,"out-in":function(n){return ae(le(n))}});d3.ease=function(n){var t=n.indexOf("-"),i=t>=0?n.substring(0,t):n,r=t>=0?n.substring(t+1):"in";return i=aw.get(i)||tc,r=vw.get(r)||br,pl(r(i.apply(null,Array.prototype.slice.call(arguments,1))))},d3.event=null,d3.transform=function(n){var t=document.createElementNS(d3.ns.prefix.svg,"g");return(d3.transform=function(n){t.setAttribute("transform",n);var i=t.transform.baseVal.consolidate();return new ye(i?i.matrix:ic)})(n)},ye.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"},af=180/Math.PI,ic={a:1,b:0,c:0,d:1,e:0,f:0},d3.interpolate=function(n,t){for(var i=d3.interpolators.length,r;--i>=0&&!(r=d3.interpolators[i](n,t)););return r},d3.interpolateNumber=function(n,t){return t-=n,function(i){return n+t*i}},d3.interpolateRound=function(n,t){return t-=n,function(i){return Math.round(n+t*i)}},d3.interpolateString=function(n,t){var s,u,f,h=0,c=0,r=[],e=[],o,i;for(wt.lastIndex=0,u=0;s=wt.exec(t);++u)s.index&&r.push(t.substring(h,c=s.index)),e.push({i:r.length,x:s[0]}),r.push(null),h=wt.lastIndex;for(h<t.length&&r.push(t.substring(h)),u=0,o=e.length;(s=wt.exec(n))&&u<o;++u)if(i=e[u],i.x==s[0]){if(i.i)if(r[i.i+1]==null)for(r[i.i-1]+=i.x,r.splice(i.i,1),f=u+1;f<o;++f)e[f].i--;else for(r[i.i-1]+=i.x+r[i.i+1],r.splice(i.i,2),f=u+1;f<o;++f)e[f].i-=2;else if(r[i.i+1]==null)r[i.i]=i.x;else for(r[i.i]=i.x+r[i.i+1],r.splice(i.i+1,1),f=u+1;f<o;++f)e[f].i--;e.splice(u,1),o--,u--}else i.x=d3.interpolateNumber(parseFloat(s[0]),parseFloat(i.x));while(u<o)i=e.pop(),r[i.i+1]==null?r[i.i]=i.x:(r[i.i]=i.x+r[i.i+1],r.splice(i.i+1,1)),o--;return r.length===1?r[0]==null?e[0].x:function(){return t}:function(n){for(u=0;u<o;++u)r[(i=e[u]).i]=i.x(n);return r.join("")}},d3.interpolateTransform=function(n,t){var i=[],e=[],o,h=d3.transform(n),c=d3.transform(t),l=h.translate,r=c.translate,s=h.rotate,u=c.rotate,y=h.skew,a=c.skew,v=h.scale,f=c.scale;return l[0]!=r[0]||l[1]!=r[1]?(i.push("translate(",null,",",null,")"),e.push({i:1,x:d3.interpolateNumber(l[0],r[0])},{i:3,x:d3.interpolateNumber(l[1],r[1])})):r[0]||r[1]?i.push("translate("+r+")"):i.push(""),s!=u?(s-u>180?u+=360:u-s>180&&(s+=360),e.push({i:i.push(i.pop()+"rotate(",null,")")-2,x:d3.interpolateNumber(s,u)})):u&&i.push(i.pop()+"rotate("+u+")"),y!=a?e.push({i:i.push(i.pop()+"skewX(",null,")")-2,x:d3.interpolateNumber(y,a)}):a&&i.push(i.pop()+"skewX("+a+")"),v[0]!=f[0]||v[1]!=f[1]?(o=i.push(i.pop()+"scale(",null,",",null,")"),e.push({i:o-4,x:d3.interpolateNumber(v[0],f[0])},{i:o-2,x:d3.interpolateNumber(v[1],f[1])})):(f[0]!=1||f[1]!=1)&&i.push(i.pop()+"scale("+f+")"),o=e.length,function(n){for(var t=-1,r;++t<o;)i[(r=e[t]).i]=r.x(n);return i.join("")}},d3.interpolateRgb=function(n,t){n=d3.rgb(n),t=d3.rgb(t);var i=n.r,r=n.g,u=n.b,f=t.r-i,e=t.g-r,o=t.b-u;return function(n){return"#"+tt(Math.round(i+f*n))+tt(Math.round(r+e*n))+tt(Math.round(u+o*n))}},d3.interpolateHsl=function(n,t){n=d3.hsl(n),t=d3.hsl(t);var r=n.h,u=n.s,f=n.l,i=t.h-r,e=t.s-u,o=t.l-f;return i>180?i-=360:i<-180&&(i+=360),function(n){return ti(r+i*n,u+e*n,f+o*n)+""}},d3.interpolateLab=function(n,t){n=d3.lab(n),t=d3.lab(t);var i=n.l,r=n.a,u=n.b,f=t.l-i,e=t.a-r,o=t.b-u;return function(n){return ge(i+f*n,r+e*n,u+o*n)+""}},d3.interpolateHcl=function(n,t){n=d3.hcl(n),t=d3.hcl(t);var r=n.h,u=n.c,f=n.l,i=t.h-r,e=t.c-u,o=t.l-f;return i>180?i-=360:i<-180&&(i+=360),function(n){return uu(r+i*n,u+e*n,f+o*n)+""}},d3.interpolateArray=function(n,t){for(var u=[],r=[],e=n.length,o=t.length,f=Math.min(n.length,t.length),i=0;i<f;++i)u.push(d3.interpolate(n[i],t[i]));for(;i<e;++i)r[i]=n[i];for(;i<o;++i)r[i]=t[i];return function(n){for(i=0;i<f;++i)r[i]=u[i](n);return r}},d3.interpolateObject=function(n,t){var u={},r={},i;for(i in n)i in t?u[i]=be(i)(n[i],t[i]):r[i]=n[i];for(i in t)i in n||(r[i]=t[i]);return function(n){for(i in u)r[i]=u[i](n);return r}},wt=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,d3.interpolators=[d3.interpolateObject,function(n,t){return t instanceof Array&&d3.interpolateArray(n,t)},function(n,t){return(typeof n=="string"||typeof t=="string")&&d3.interpolateString(n+"",t+"")},function(n,t){return(typeof t=="string"?kt.has(t)||/^(#|rgb\(|hsl\()/.test(t):t instanceof nt)&&d3.interpolateRgb(n,t)},function(n,t){return!isNaN(n=+n)&&!isNaN(t=+t)&&d3.interpolateNumber(n,t)}],nt.prototype.toString=function(){return this.rgb()+""},d3.rgb=function(n,t,i){return arguments.length===1?n instanceof gr?c(n.r,n.g,n.b):nu(""+n,c,ti):c(~~n,~~t,~~i)},bt=gr.prototype=new nt,bt.brighter=function(n){n=Math.pow(.7,arguments.length?n:1);var i=this.r,r=this.g,u=this.b,t=30;return!i&&!r&&!u?c(t,t,t):(i&&i<t&&(i=t),r&&r<t&&(r=t),u&&u<t&&(u=t),c(Math.min(255,Math.floor(i/n)),Math.min(255,Math.floor(r/n)),Math.min(255,Math.floor(u/n))))},bt.darker=function(n){return n=Math.pow(.7,arguments.length?n:1),c(Math.floor(n*this.r),Math.floor(n*this.g),Math.floor(n*this.b))},bt.hsl=function(){return ke(this.r,this.g,this.b)},bt.toString=function(){return"#"+tt(this.r)+tt(this.g)+tt(this.b)},kt=d3.map({aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}),kt.forEach(function(n,t){kt.set(n,nu(t,c,ti))}),d3.hsl=function(n,t,i){return arguments.length===1?n instanceof ru?it(n.h,n.s,n.l):nu(""+n,ke,it):it(+n,+t,+i)},di=ru.prototype=new nt,di.brighter=function(n){return n=Math.pow(.7,arguments.length?n:1),it(this.h,this.s,this.l/n)},di.darker=function(n){return n=Math.pow(.7,arguments.length?n:1),it(this.h,this.s,n*this.l)},di.rgb=function(){return ti(this.h,this.s,this.l)},d3.hcl=function(n,t,i){return arguments.length===1?n instanceof ii?ct(n.h,n.c,n.l):n instanceof ri?no(n.l,n.a,n.b):no((n=de((n=d3.rgb(n)).r,n.g,n.b)).l,n.a,n.b):ct(+n,+t,+i)},gi=ii.prototype=new nt,gi.brighter=function(n){return ct(this.h,this.c,Math.min(100,this.l+nr*(arguments.length?n:1)))},gi.darker=function(n){return ct(this.h,this.c,Math.max(0,this.l-nr*(arguments.length?n:1)))},gi.rgb=function(){return uu(this.h,this.c,this.l).rgb()},d3.lab=function(n,t,i){return arguments.length===1?n instanceof ri?rt(n.l,n.a,n.b):n instanceof ii?uu(n.l,n.c,n.h):de((n=d3.rgb(n)).r,n.g,n.b):rt(+n,+t,+i)};var nr=18,rc=.95047,uc=1,fc=1.08883,vf=ri.prototype=new nt;vf.brighter=function(n){return rt(Math.min(100,this.l+nr*(arguments.length?n:1)),this.a,this.b)},vf.darker=function(n){return rt(Math.max(0,this.l-nr*(arguments.length?n:1)),this.a,this.b)},vf.rgb=function(){return ge(this.l,this.a,this.b)};var tr=function(n,t){return t.querySelector(n)},ec=function(n,t){return t.querySelectorAll(n)},et=document.documentElement,yw=et.matchesSelector||et.webkitMatchesSelector||et.mozMatchesSelector||et.msMatchesSelector||et.oMatchesSelector,oc=function(n,t){return yw.call(n,t)};typeof Sizzle=="function"&&(tr=function(n,t){return Sizzle(n,t)[0]||null},ec=function(n,t){return Sizzle.uniqueSort(Sizzle(n,t))},oc=Sizzle.matchesSelector),t=[],d3.selection=function(){return ot},d3.selection.prototype=t,t.select=function(n){var o=[],i,u,f,t,e,s,r,h;for(typeof n!="function"&&(n=to(n)),e=-1,s=this.length;++e<s;)for(o.push(i=[]),i.parentNode=(f=this[e]).parentNode,r=-1,h=f.length;++r<h;)(t=f[r])?(i.push(u=n.call(t,t.__data__,r)),u&&"__data__"in t&&(u.__data__=t.__data__)):i.push(null);return l(o)},t.selectAll=function(n){var u=[],f,t,i,e;for(typeof n!="function"&&(n=io(n)),i=-1,e=this.length;++i<e;)for(var o=this[i],r=-1,s=o.length;++r<s;)(t=o[r])&&(u.push(f=ut(n.call(t,t.__data__,r))),f.parentNode=t);return l(u)},t.attr=function(n,t){if(arguments.length<2){if(typeof n=="string"){var i=this.node();return n=d3.ns.qualify(n),n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}for(t in n)this.each(ro(t,n[t]));return this}return this.each(ro(n,t))},t.classed=function(n,t){if(arguments.length<2){if(typeof n=="string"){var r=this.node(),u=(n=n.trim().split(/^|\s+/g)).length,i=-1;if(t=r.classList){while(++i<u)if(!t.contains(n[i]))return!1}else for(t=r.className,t.baseVal!=null&&(t=t.baseVal);++i<u;)if(!uo(n[i]).test(t))return!1;return!0}for(t in n)this.each(fo(t,n[t]));return this}return this.each(fo(n,t))},t.style=function(n,t,i){var r=arguments.length;if(r<3){if(typeof n!="string"){r<2&&(t="");for(i in n)this.each(eo(i,n[i],t));return this}if(r<2)return window.getComputedStyle(this.node(),null).getPropertyValue(n);i=""}return this.each(eo(n,t,i))},t.property=function(n,t){if(arguments.length<2){if(typeof n=="string")return this.node()[n];for(t in n)this.each(oo(t,n[t]));return this}return this.each(oo(n,t))},t.text=function(n){return arguments.length<1?this.node().textContent:this.each(typeof n=="function"?function(){var t=n.apply(this,arguments);this.textContent=t==null?"":t}:n==null?function(){this.textContent=""}:function(){this.textContent=n})},t.html=function(n){return arguments.length<1?this.node().innerHTML:this.each(typeof n=="function"?function(){var t=n.apply(this,arguments);this.innerHTML=t==null?"":t}:n==null?function(){this.innerHTML=""}:function(){this.innerHTML=n})},t.append=function(n){function t(){return this.appendChild(document.createElementNS(this.namespaceURI,n))}function i(){return this.appendChild(document.createElementNS(n.space,n.local))}return n=d3.ns.qualify(n),this.select(n.local?i:t)},t.insert=function(n,t){function i(){return this.insertBefore(document.createElementNS(this.namespaceURI,n),tr(t,this))}function r(){return this.insertBefore(document.createElementNS(n.space,n.local),tr(t,this))}return n=d3.ns.qualify(n),this.select(n.local?r:i)},t.remove=function(){return this.each(function(){var n=this.parentNode;n&&n.removeChild(this)})},t.data=function(n,t){function e(n,i){var r,p=n.length,w=i.length,k=Math.min(p,w),d=Math.max(p,w),o=[],c=[],u=[],e,a;if(t){var v=new y,b=[],l,g=i.length;for(r=-1;++r<p;)l=t.call(e=n[r],e.__data__,r),v.has(l)?u[g++]=e:v.set(l,e),b.push(l);for(r=-1;++r<w;)l=t.call(i,a=i[r],r),v.has(l)?(o[r]=e=v.get(l),e.__data__=a,c[r]=u[r]=null):(c[r]=su(a),o[r]=u[r]=null),v.remove(l);for(r=-1;++r<p;)v.has(b[r])&&(u[r]=n[r])}else{for(r=-1;++r<k;)e=n[r],a=i[r],e?(e.__data__=a,o[r]=e,c[r]=u[r]=null):(c[r]=su(a),o[r]=u[r]=null);for(;r<w;++r)c[r]=su(i[r]),o[r]=u[r]=null;for(;r<d;++r)u[r]=n[r],c[r]=o[r]=null}c.update=o,c.parentNode=o.parentNode=u.parentNode=n.parentNode,s.push(c),f.push(o),h.push(u)}var i=-1,u=this.length,r,o;if(!arguments.length){for(n=new Array(u=(r=this[0]).length);++i<u;)(o=r[i])&&(n[i]=o.__data__);return n}var s=co([]),f=l([]),h=l([]);if(typeof n=="function")while(++i<u)e(r=this[i],n.call(r,r.parentNode.__data__,i));else while(++i<u)e(r=this[i],n);return f.enter=function(){return s},f.exit=function(){return h},f},t.datum=t.map=function(n){return arguments.length<1?this.property("__data__"):this.property("__data__",n)},t.filter=function(n){var e=[],u,f,i,r,o,t,s;for(typeof n!="function"&&(n=so(n)),r=0,o=this.length;r<o;r++)for(e.push(u=[]),u.parentNode=(f=this[r]).parentNode,t=0,s=f.length;t<s;t++)(i=f[t])&&n.call(i,i.__data__,t)&&u.push(i);return l(e)},t.order=function(){for(var i=-1,f=this.length;++i<f;)for(var r=this[i],u=r.length-1,n=r[u],t;--u>=0;)(t=r[u])&&(n&&n!==t.nextSibling&&n.parentNode.insertBefore(t,n),n=t);return this},t.sort=function(n){n=fa.apply(this,arguments);for(var t=-1,i=this.length;++t<i;)this[t].sort(n);return this.order()},t.on=function(n,t,i){var r=arguments.length;if(r<3){if(typeof n!="string"){r<2&&(t=!1);for(i in n)this.each(ho(i,n[i],t));return this}if(r<2)return(r=this.node()["__on"+n])&&r._;i=!1}return this.each(ho(n,t,i))},t.each=function(n){return lt(this,function(t,i,r){n.call(t,t.__data__,i,r)})},t.call=function(n){return n.apply(this,(arguments[0]=this,arguments)),this},t.empty=function(){return!this.node()},t.node=function(){for(var r,t=0,u=this.length;t<u;t++)for(var f=this[t],i=0,e=f.length;i<e;i++)if(r=f[i],r)return r;return null},t.transition=function(){for(var t=[],i,r,n=-1,u=this.length;++n<u;){t.push(i=[]);for(var f=this[n],e=-1,o=f.length;++e<o;)i.push((r=f[e])?{node:r,delay:ir,duration:rr}:null)}return ui(t,g||++pw,Date.now())},ot=l([[document]]),ot[0].parentNode=et,d3.select=function(n){return typeof n=="string"?ot.select(n):l([[n]])},d3.selectAll=function(n){return typeof n=="string"?ot.selectAll(n):l([ut(n)])},p=[],d3.selection.enter=co,d3.selection.enter.prototype=p,p.append=t.append,p.insert=t.insert,p.empty=t.empty,p.node=t.node,p.select=function(n){for(var e=[],r,o,s,t,u,i,c,f=-1,h=this.length;++f<h;)for(s=(t=this[f]).update,e.push(r=[]),r.parentNode=t.parentNode,i=-1,c=t.length;++i<c;)(u=t[i])?(r.push(s[i]=o=n.call(t.parentNode,u.__data__,i)),o.__data__=u.__data__):r.push(null);return l(e)};var f=[],pw=0,g=0,ww=0,bw=250,kw=d3.ease("cubic-in-out"),ir=ww,rr=bw,ur=kw;f.call=t.call,d3.transition=function(n){return arguments.length?g?n.transition():n:ot.transition()},d3.transition.prototype=f,f.select=function(n){var e=[],i,r,t,u,o;for(typeof n!="function"&&(n=to(n)),u=-1,o=this.length;++u<o;){e.push(i=[]);for(var s=this[u],f=-1,h=s.length;++f<h;)(t=s[f])&&(r=n.call(t.node,t.node.__data__,f))?("__data__"in t.node&&(r.__data__=t.node.__data__),i.push({node:r,delay:t.delay,duration:t.duration})):i.push(null)}return ui(e,this.id,this.time).ease(this.ease())},f.selectAll=function(n){var e=[],o,i,t,r,s,f,c;for(typeof n!="function"&&(n=io(n)),r=-1,s=this.length;++r<s;)for(var h=this[r],u=-1,l=h.length;++u<l;)if(t=h[u])for(i=n.call(t.node,t.node.__data__,u),e.push(o=[]),f=-1,c=i.length;++f<c;)o.push({node:i[f],delay:t.delay,duration:t.duration});return ui(e,this.id,this.time).ease(this.ease())},f.filter=function(n){var u=[],f,o,t,i,e;for(typeof n!="function"&&(n=so(n)),i=0,e=this.length;i<e;i++){u.push(f=[]);for(var o=this[i],r=0,s=o.length;r<s;r++)(t=o[r])&&n.call(t.node,t.node.__data__,r)&&f.push(t)}return ui(u,this.id,this.time).ease(this.ease())},f.attr=function(n,t){if(arguments.length<2){for(t in n)this.attrTween(t,fi(n[t],t));return this}return this.attrTween(n,fi(t,n))},f.attrTween=function(n,t){function r(n,r){var u=t.call(this,n,r,this.getAttribute(i));return u===dt?(this.removeAttribute(i),null):u&&function(n){this.setAttribute(i,u(n))}}function u(n,r){var u=t.call(this,n,r,this.getAttributeNS(i.space,i.local));return u===dt?(this.removeAttributeNS(i.space,i.local),null):u&&function(n){this.setAttributeNS(i.space,i.local,u(n))}}var i=d3.ns.qualify(n);return this.tween("attr."+n,i.local?u:r)},f.style=function(n,t,i){var r=arguments.length;if(r<3){if(typeof n!="string"){r<2&&(t="");for(i in n)this.styleTween(i,fi(n[i],i),t);return this}i=""}return this.styleTween(n,fi(t,n),i)},f.styleTween=function(n,t,i){return arguments.length<3&&(i=""),this.tween("style."+n,function(r,u){var f=t.call(this,r,u,window.getComputedStyle(this,null).getPropertyValue(n));return f===dt?(this.style.removeProperty(n),null):f&&function(t){this.style.setProperty(n,f(t),i)}})},f.text=function(n){return this.tween("text",function(t,i){this.textContent=typeof n=="function"?n.call(this,t,i):n})},f.remove=function(){return this.each("end.transition",function(){var n;!this.__transition__&&(n=this.parentNode)&&n.removeChild(this)})},f.delay=function(n){return lt(this,typeof n=="function"?function(t,i,r){t.delay=n.call(t=t.node,t.__data__,i,r)|0}:(n=n|0,function(t){t.delay=n}))},f.duration=function(n){return lt(this,typeof n=="function"?function(t,i,r){t.duration=Math.max(1,n.call(t=t.node,t.__data__,i,r)|0)}:(n=Math.max(1,n|0),function(t){t.duration=n}))},f.transition=function(){return this.select(sl)},d3.tween=function(n,t){function i(i,r,u){var f=n.call(this,i,r);return f==null?u!=""&&dt:u!=f&&t(u,f+"")}function r(i,r,u){return u!=n&&t(u,n)}return typeof n=="function"?i:n==null?oa:(n+="",r)};var dt={},dw=0,yf={},st=null,fr,er;d3.timer=function(n,t,i){if(arguments.length<3){if(arguments.length<2)t=0;else if(!isFinite(t))return;i=Date.now()}var r=yf[n.id];r&&r.callback===n?(r.then=i,r.delay=t):yf[n.id=++dw]=st={callback:n,then:i,delay:t,next:st},fr||(er=clearTimeout(er),fr=1,pf(hu))},d3.timer.flush=function(){for(var t,i=Date.now(),n=st;n;)t=i-n.then,n.delay||(n.flush=n.callback(t)),n=n.next;lo()},pf=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(n){setTimeout(n,17)},d3.mouse=function(n){return ao(n,ve())},or=/WebKit/.test(navigator.userAgent)?-1:0,d3.touches=function(n,t){return arguments.length<2&&(t=ve().touches),t?ut(t).map(function(t){var i=ao(n,t);return i.identifier=t.identifier,i}):[]},d3.scale={},d3.scale.linear=function(){return vo([0,1],[0,1],d3.interpolate,!1)},d3.scale.log=function(){return bo(d3.scale.linear(),au)},sc=d3.format(".0e"),au.pow=function(n){return Math.pow(10,n)},si.pow=function(n){return-Math.pow(10,-n)},d3.scale.pow=function(){return ko(d3.scale.linear(),1)},d3.scale.sqrt=function(){return d3.scale.pow().exponent(.5)},d3.scale.ordinal=function(){return go([],{t:"range",a:[[]]})},d3.scale.category10=function(){return d3.scale.ordinal().range(gw)},d3.scale.category20=function(){return d3.scale.ordinal().range(nb)},d3.scale.category20b=function(){return d3.scale.ordinal().range(tb)},d3.scale.category20c=function(){return d3.scale.ordinal().range(ib)};var gw=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],nb=["#1f77b4","#aec7e8","#ff7f0e","#ffbb78","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5","#8c564b","#c49c94","#e377c2","#f7b6d2","#7f7f7f","#c7c7c7","#bcbd22","#dbdb8d","#17becf","#9edae5"],tb=["#393b79","#5254a3","#6b6ecf","#9c9ede","#637939","#8ca252","#b5cf6b","#cedb9c","#8c6d31","#bd9e39","#e7ba52","#e7cb94","#843c39","#ad494a","#d6616b","#e7969c","#7b4173","#a55194","#ce6dbd","#de9ed6"],ib=["#3182bd","#6baed6","#9ecae1","#c6dbef","#e6550d","#fd8d3c","#fdae6b","#fdd0a2","#31a354","#74c476","#a1d99b","#c7e9c0","#756bb1","#9e9ac8","#bcbddc","#dadaeb","#636363","#969696","#bdbdbd","#d9d9d9"];d3.scale.quantile=function(){return ns([],[])},d3.scale.quantize=function(){return ts(0,1,[0,1])},d3.scale.threshold=function(){return is([.5],[0,1])},d3.scale.identity=function(){return rs([0,1])},d3.svg={},d3.svg.arc=function(){function n(){var i=t.apply(this,arguments),n=r.apply(this,arguments),e=u.apply(this,arguments)+w,o=f.apply(this,arguments)+w,s=(o<e&&(s=e,e=o,o=s),o-e),h=s<Math.PI?"0":"1",c=Math.cos(e),l=Math.sin(e),a=Math.cos(o),v=Math.sin(o);return s>=hc?i?"M0,"+n+"A"+n+","+n+" 0 1,1 0,"+-n+"A"+n+","+n+" 0 1,1 0,"+n+"M0,"+i+"A"+i+","+i+" 0 1,0 0,"+-i+"A"+i+","+i+" 0 1,0 0,"+i+"Z":"M0,"+n+"A"+n+","+n+" 0 1,1 0,"+-n+"A"+n+","+n+" 0 1,1 0,"+n+"Z":i?"M"+n*c+","+n*l+"A"+n+","+n+" 0 "+h+",1 "+n*a+","+n*v+"L"+i*a+","+i*v+"A"+i+","+i+" 0 "+h+",0 "+i*c+","+i*l+"Z":"M"+n*c+","+n*l+"A"+n+","+n+" 0 "+h+",1 "+n*a+","+n*v+"L0,0Z"}var t=la,r=aa,u=us,f=fs;return n.innerRadius=function(r){return arguments.length?(t=i(r),n):t},n.outerRadius=function(t){return arguments.length?(r=i(t),n):r},n.startAngle=function(t){return arguments.length?(u=i(t),n):u},n.endAngle=function(t){return arguments.length?(f=i(t),n):f},n.centroid=function(){var n=(t.apply(this,arguments)+r.apply(this,arguments))/2,i=(u.apply(this,arguments)+f.apply(this,arguments))/2+w;return[Math.cos(i)*n,Math.sin(i)*n]},n},w=-Math.PI/2,hc=2*Math.PI-1e-6,d3.svg.line=function(){return es(b)},sr=d3.map({linear:e,"linear-closed":va,"step-before":yu,"step-after":pu,basis:ss,"basis-open":ba,"basis-closed":ka,bundle:da,cardinal:wa,"cardinal-open":ya,"cardinal-closed":pa,monotone:tv}),sr.forEach(function(n,t){t.key=n,t.closed=/-closed$/.test(n)});var cc=[0,2/3,1/3,0],lc=[0,1/3,2/3,0],ht=[0,1/6,2/3,1/6];d3.svg.line.radial=function(){var n=es(hs);return n.radius=n.x,delete n.x,n.angle=n.y,delete n.y,n},yu.reverse=pu,pu.reverse=yu,d3.svg.area=function(){return cs(b)},d3.svg.area.radial=function(){var n=cs(hs);return n.radius=n.x,delete n.x,n.innerRadius=n.x0,delete n.x0,n.outerRadius=n.x1,delete n.x1,n.angle=n.y,delete n.y,n.startAngle=n.y0,delete n.y0,n.endAngle=n.y1,delete n.y1,n},d3.svg.chord=function(){function n(n,i){var f=s(this,r,n,i),e=s(this,u,n,i);return"M"+f.p0+h(f.r,f.p1,f.a1-f.a0)+(c(f,e)?t(f.r,f.p1,f.r,f.p0):t(f.r,f.p1,e.r,e.p0)+h(e.r,e.p1,e.a1-e.a0)+t(e.r,e.p1,f.r,f.p0))+"Z"}function s(n,t,i,r){var s=t.call(n,i,r),u=f.call(n,s,r),h=e.call(n,s,r)+w,c=o.call(n,s,r)+w;return{r:u,a0:h,a1:c,p0:[u*Math.cos(h),u*Math.sin(h)],p1:[u*Math.cos(c),u*Math.sin(c)]}}function c(n,t){return n.a0==t.a0&&n.a1==t.a1}function h(n,t,i){return"A"+n+","+n+" 0 "+ +(i>Math.PI)+",1 "+t}function t(n,t,i,r){return"Q 0,0 "+r}var r=ls,u=as,f=iv,e=us,o=fs;return n.radius=function(t){return arguments.length?(f=i(t),n):f},n.source=function(t){return arguments.length?(r=i(t),n):r},n.target=function(t){return arguments.length?(u=i(t),n):u},n.startAngle=function(t){return arguments.length?(e=i(t),n):e},n.endAngle=function(t){return arguments.length?(o=i(t),n):o},n},d3.svg.diagonal=function(){function n(n,i){var e=t.call(this,n,i),o=r.call(this,n,i),s=(e.y+o.y)/2,f=[e,{x:e.x,y:s},{x:o.x,y:s},o];return f=f.map(u),"M"+f[0]+"C"+f[1]+" "+f[2]+" "+f[3]}var t=ls,r=as,u=vs;return n.source=function(r){return arguments.length?(t=i(r),n):t},n.target=function(t){return arguments.length?(r=i(t),n):r},n.projection=function(t){return arguments.length?(u=t,n):u},n},d3.svg.diagonal.radial=function(){var n=d3.svg.diagonal(),t=vs,i=n.projection;return n.projection=function(n){return arguments.length?i(rv(t=n)):t},n},d3.svg.mouse=d3.mouse,d3.svg.touches=d3.touches,d3.svg.symbol=function(){function n(n,i){return(wf.get(t.call(this,n,i))||ys)(r.call(this,n,i))}var t=fv,r=uv;return n.type=function(r){return arguments.length?(t=i(r),n):t},n.size=function(t){return arguments.length?(r=i(t),n):r},n},wf=d3.map({circle:ys,cross:function(n){var t=Math.sqrt(n/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(n){var t=Math.sqrt(n/(2*bf)),i=t*bf;return"M0,"+-t+"L"+i+",0 0,"+t+" "+-i+",0Z"},square:function(n){var t=Math.sqrt(n)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(n){var t=Math.sqrt(n/gt),i=t*gt/2;return"M0,"+i+"L"+t+","+-i+" "+-t+","+-i+"Z"},"triangle-up":function(n){var t=Math.sqrt(n/gt),i=t*gt/2;return"M0,"+-i+"L"+t+","+i+" "+-t+","+i+"Z"}}),d3.svg.symbolTypes=wf.keys(),gt=Math.sqrt(3),bf=Math.tan(Math.PI/6),d3.svg.axis=function(){function t(t){t.each(function(){var rt=d3.select(this),et=o==null?i.ticks?i.ticks.apply(i,e):i.domain():o,ct=s==null?i.tickFormat?i.tickFormat.apply(i,e):String:s,lt=ev(i,et,c),ut=rt.selectAll(".minor").data(lt,String),y=ut.enter().insert("line","g").attr("class","tick minor").style("opacity",1e-6),at=d3.transition(ut.exit()).style("opacity",1e-6).remove(),p=d3.transition(ut).style("opacity",1),w=rt.selectAll("g").data(et,String),v=w.enter().insert("g","path").style("opacity",1e-6),vt=d3.transition(w.exit()).style("opacity",1e-6).remove(),b=d3.transition(w).style("opacity",1),t,l=ei(i),ot=rt.selectAll(".domain").data([0]),yt=ot.enter().append("path").attr("class","domain"),k=d3.transition(ot),a=i.copy(),st=this.__chart__||a,ht,ft;this.__chart__=a,v.append("line").attr("class","tick"),v.append("text");var d=v.select("line"),g=b.select("line"),nt=w.select("text").text(ct),tt=v.select("text"),it=b.select("text");switch(h){case"bottom":t=ps,y.attr("y2",u),p.attr("x2",0).attr("y2",u),d.attr("y2",n),tt.attr("y",Math.max(n,0)+r),g.attr("x2",0).attr("y2",n),it.attr("x",0).attr("y",Math.max(n,0)+r),nt.attr("dy",".71em").attr("text-anchor","middle"),k.attr("d","M"+l[0]+","+f+"V0H"+l[1]+"V"+f);break;case"top":t=ps,y.attr("y2",-u),p.attr("x2",0).attr("y2",-u),d.attr("y2",-n),tt.attr("y",-(Math.max(n,0)+r)),g.attr("x2",0).attr("y2",-n),it.attr("x",0).attr("y",-(Math.max(n,0)+r)),nt.attr("dy","0em").attr("text-anchor","middle"),k.attr("d","M"+l[0]+","+-f+"V0H"+l[1]+"V"+-f);break;case"left":t=ws,y.attr("x2",-u),p.attr("x2",-u).attr("y2",0),d.attr("x2",-n),tt.attr("x",-(Math.max(n,0)+r)),g.attr("x2",-n).attr("y2",0),it.attr("x",-(Math.max(n,0)+r)).attr("y",0),nt.attr("dy",".32em").attr("text-anchor","end"),k.attr("d","M"+-f+","+l[0]+"H0V"+l[1]+"H"+-f);break;case"right":t=ws,y.attr("x2",u),p.attr("x2",u).attr("y2",0),d.attr("x2",n),tt.attr("x",Math.max(n,0)+r),g.attr("x2",n).attr("y2",0),it.attr("x",Math.max(n,0)+r).attr("y",0),nt.attr("dy",".32em").attr("text-anchor","start"),k.attr("d","M"+f+","+l[0]+"H0V"+l[1]+"H"+f)}i.ticks?(v.call(t,st),b.call(t,a),vt.call(t,a),y.call(t,st),p.call(t,a),at.call(t,a)):(ht=a.rangeBand()/2,ft=function(n){return a(n)+ht},v.call(t,ft),b.call(t,ft))})}var i=d3.scale.linear(),h="bottom",n=6,u=6,f=6,r=3,e=[10],o=null,s,c=0;return t.scale=function(n){return arguments.length?(i=n,t):i},t.orient=function(n){return arguments.length?(h=n,t):h},t.ticks=function(){return arguments.length?(e=arguments,t):e},t.tickValues=function(n){return arguments.length?(o=n,t):o},t.tickFormat=function(n){return arguments.length?(s=n,t):s},t.tickSize=function(i,r){if(!arguments.length)return n;var o=arguments.length-1;return n=+i,u=o>1?+r:n,f=o>0?+arguments[o]:n,t},t.tickPadding=function(n){return arguments.length?(r=+n,t):r},t.tickSubdivide=function(n){return arguments.length?(c=+n,t):c},t},d3.svg.brush=function(){function r(n){n.each(function(){var u=d3.select(this),o=u.selectAll(".background").data([0]),a=u.selectAll(".extent").data([0]),l=u.selectAll(".resize").data(f,String),n;u.style("pointer-events","all").on("mousedown.brush",c).on("touchstart.brush",c);o.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),a.enter().append("rect").attr("class","extent").style("cursor","move"),l.enter().append("g").attr("class",function(n){return"resize "+n}).style("cursor",function(n){return ac[n]}).append("rect").attr("x",function(n){return/[ew]$/.test(n)?-3:null}).attr("y",function(n){return/^[ns]/.test(n)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),l.style("display",r.empty()?"none":null),l.exit().remove(),t&&(n=ei(t),o.attr("x",n[0]).attr("width",n[1]-n[0]),s(u)),i&&(n=ei(i),o.attr("y",n[0]).attr("height",n[1]-n[0]),h(u)),e(u)})}function e(t){t.selectAll(".resize").attr("transform",function(t){return"translate("+n[+/e$/.test(t)][0]+","+n[+/^s/.test(t)][1]+")"})}function s(t){t.select(".extent").attr("x",n[0][0]),t.selectAll(".extent,.n>rect,.s>rect").attr("width",n[1][0]-n[0][0])}function h(t){t.select(".extent").attr("y",n[0][1]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",n[1][1]-n[0][1])}function c(){function tt(){var n=d3.event.changedTouches;return n?d3.touches(w,n)[0]:d3.mouse(w)}function ut(){d3.event.keyCode==32&&(c||(a=null,f[0]-=n[1][0],f[1]-=n[1][1],c=2),o())}function ft(){d3.event.keyCode==32&&c==2&&(f[0]+=n[1][0],f[1]+=n[1][1],c=0,o())}function p(){var r=tt(),u=!1;b&&(r[0]+=b[0],r[1]+=b[1]),c||(d3.event.altKey?(a||(a=[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]),f[0]=n[+(r[0]<a[0])][0],f[1]=n[+(r[1]<a[1])][1]):a=null),et&&it(r,t,0)&&(s(v),u=!0),ot&&it(r,i,1)&&(h(v),u=!0),u&&(e(v),d({type:"brush",mode:c?"move":"resize"}))}function it(t,i,r){var v=ei(i),h=v[0],l=v[1],o=f[r],y=n[1][r]-n[0][r],e,s;return c&&(h-=o,l-=y+o),e=Math.max(h,Math.min(l,t[r])),c?s=(e+=o)+y:(a&&(o=Math.max(h,Math.min(l,2*a[r]-e))),o<e?(s=e,e=o):s=o),n[0][r]!==e||n[1][r]!==s?(u=null,n[0][r]=e,n[1][r]=s,!0):void 0}function rt(){p(),v.style("pointer-events","all").selectAll(".resize").style("display",r.empty()?"none":null),d3.select("body").style("cursor",null);st.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null);d({type:"brushend"}),o()}var w=this,k=d3.select(d3.event.target),d=l.of(w,arguments),v=d3.select(w),y=k.datum(),et=!/^(n|s)$/.test(y)&&t,ot=!/^(e|w)$/.test(y)&&i,c=k.classed("extent"),a,f=tt(),b,st=d3.select(window).on("mousemove.brush",p).on("mouseup.brush",rt).on("touchmove.brush",p).on("touchend.brush",rt).on("keydown.brush",ut).on("keyup.brush",ft),g,nt;c?(f[0]=n[0][0]-f[0],f[1]=n[0][1]-f[1]):y?(g=+/w$/.test(y),nt=+/^n/.test(y),b=[n[1-g][0]-f[0],n[1-nt][1]-f[1]],f[0]=n[g][0],f[1]=n[nt][1]):d3.event.altKey&&(a=f.slice()),v.style("pointer-events","none").selectAll(".resize").style("display",null),d3.select("body").style("cursor",k.style("cursor")),d({type:"brushstart"}),p(),o()}var l=dr(r,"brushstart","brush","brushend"),t=null,i=null,f=hr[0],n=[[0,0],[0,0]],u;return r.x=function(n){return arguments.length?(t=n,f=hr[!t<<1|!i],r):t},r.y=function(n){return arguments.length?(i=n,f=hr[!t<<1|!i],r):i},r.extent=function(f){var e,o,s,h,c;return arguments.length?(u=[[0,0],[0,0]],t&&(e=f[0],o=f[1],i&&(e=e[0],o=o[0]),u[0][0]=e,u[1][0]=o,t.invert&&(e=t(e),o=t(o)),o<e&&(c=e,e=o,o=c),n[0][0]=e|0,n[1][0]=o|0),i&&(s=f[0],h=f[1],t&&(s=s[1],h=h[1]),u[0][1]=s,u[1][1]=h,i.invert&&(s=i(s),h=i(h)),h<s&&(c=s,s=h,h=c),n[0][1]=s|0,n[1][1]=h|0),r):(f=u||n,t&&(e=f[0][0],o=f[1][0],u||(e=n[0][0],o=n[1][0],t.invert&&(e=t.invert(e),o=t.invert(o)),o<e&&(c=e,e=o,o=c))),i&&(s=f[0][1],h=f[1][1],u||(s=n[0][1],h=n[1][1],i.invert&&(s=i.invert(s),h=i.invert(h)),h<s&&(c=s,s=h,h=c))),t&&i?[[e,s],[o,h]]:t?[e,o]:i&&[s,h])},r.clear=function(){return u=null,n[0][0]=n[0][1]=n[1][0]=n[1][1]=0,r},r.empty=function(){return t&&n[0][0]===n[1][0]||i&&n[0][1]===n[1][1]},d3.rebind(r,l,"on")},ac={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},hr=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],d3.behavior={},d3.behavior.drag=function(){function n(){this.on("mousedown.drag",i).on("touchstart.drag",i)}function i(){function h(){var t=f.parentNode;return n?d3.touches(t).filter(function(t){return t.identifier===n})[0]:d3.mouse(t)}function a(){if(!f.parentNode)return c();var n=h(),t=n[0]-u[0],r=n[1]-u[1];l|=t|r,u=n,o(),e({type:"drag",x:n[0]+i[0],y:n[1]+i[1],dx:t,dy:r})}function c(){if(e({type:"dragend"}),l&&(o(),d3.event.target===y))s.on("click.drag",v,!0);s.on(n?"touchmove.drag-"+n:"mousemove.drag",null).on(n?"touchend.drag-"+n:"mouseup.drag",null)}function v(){o();s.on("click.drag",null)}var f=this,e=r.of(f,arguments),y=d3.event.target,n=d3.event.touches&&d3.event.changedTouches[0].identifier,i,u=h(),l=0,s=d3.select(window).on(n?"touchmove.drag-"+n:"mousemove.drag",a).on(n?"touchend.drag-"+n:"mouseup.drag",c,!0);t?(i=t.apply(f,arguments),i=[i.x-u[0],i.y-u[1]]):i=[0,0],n||o(),e({type:"dragstart"})}var r=dr(n,"drag","dragstart","dragend"),t=null;return n.origin=function(i){return arguments.length?(t=i,n):t},d3.rebind(n,r,"on")},d3.behavior.zoom=function(){function t(){this.on("mousedown.zoom",g).on("mousewheel.zoom",w).on("mousemove.zoom",nt).on("DOMMouseScroll.zoom",w).on("dblclick.zoom",tt).on("touchstart.zoom",b).on("touchmove.zoom",it).on("touchend.zoom",b)}function f(t){return[(t[0]-i[0])/n,(t[1]-i[1])/n]}function d(t){return[t[0]*n+i[0],t[1]*n+i[1]]}function h(t){n=Math.max(c[0],Math.min(c[1],t))}function e(n,t){t=d(t),i[0]+=n[0]-t[0],i[1]+=n[1]-t[1]}function s(t){l&&l.domain(v.range().map(function(t){return(t-i[0])/n}).map(v.invert)),a&&a.domain(y.range().map(function(t){return(t-i[1])/n}).map(y.invert)),d3.event.preventDefault(),t({type:"zoom",scale:n,translate:i})}function g(){function r(){t=1,e(d3.mouse(n),v),s(l)}function h(){t&&o();i.on("mousemove.zoom",null).on("mouseup.zoom",null);if(t&&d3.event.target===a)i.on("click.zoom",c,!0)}function c(){o();i.on("click.zoom",null)}var n=this,l=u.of(n,arguments),a=d3.event.target,t=0,i=d3.select(window).on("mousemove.zoom",r).on("mouseup.zoom",h),v=f(d3.mouse(n));window.focus(),o()}function w(){r||(r=f(d3.mouse(this))),h(Math.pow(2,ov()*.002)*n),e(d3.mouse(this),r),s(u.of(this,arguments))}function nt(){r=null}function tt(){var t=d3.mouse(this),i=f(t);h(d3.event.shiftKey?n/2:n*2),e(t,i),s(u.of(this,arguments))}function b(){var t=d3.touches(this),i=Date.now(),c,l;k=n,r={},t.forEach(function(n){r[n.identifier]=f(n)}),o(),t.length===1&&(i-p<500&&(c=t[0],l=f(t[0]),h(n*2),e(c,l),s(u.of(this,arguments))),p=i)}function it(){var o=d3.touches(this),n=o[0],t=r[n.identifier],i,f;(i=o[1])&&(f=r[i.identifier],n=[(n[0]+i[0])/2,(n[1]+i[1])/2],t=[(t[0]+f[0])/2,(t[1]+f[1])/2],h(d3.event.scale*k)),e(n,t),p=null,s(u.of(this,arguments))}var i=[0,0],r,n=1,k,c=kf,u=dr(t,"zoom"),v,l,y,a,p;return t.translate=function(n){return arguments.length?(i=n.map(Number),t):i},t.scale=function(i){return arguments.length?(n=+i,t):n},t.scaleExtent=function(n){return arguments.length?(c=n==null?kf:n.map(Number),t):c},t.x=function(n){return arguments.length?(l=n,v=n.copy(),t):l},t.y=function(n){return arguments.length?(a=n,y=n.copy(),t):a},d3.rebind(t,u,"on")},kf=[0,Infinity],d3.layout={},d3.layout.bundle=function(){return function(n){for(var t=[],i=-1,r=n.length;++i<r;)t.push(sv(n[i]));return t}},d3.layout.chord=function(){function h(){var w={},b=[],nt=d3.range(i),k=[],a,n,d,h,l,y,p;for(t=[],r=[],a=0,h=-1;++h<i;){for(n=0,l=-1;++l<i;)n+=u[h][l];b.push(n),k.push(d3.range(i)),a+=n}for(e&&nt.sort(function(n,t){return e(b[n],b[t])}),o&&k.forEach(function(n,t){n.sort(function(n,i){return o(u[t][n],u[t][i])})}),a=(2*Math.PI-f*i)/a,n=0,h=-1;++h<i;){for(d=n,l=-1;++l<i;){var v=nt[h],g=k[v][l],tt=u[v][g],it=n,rt=n+=tt*a;w[v+"-"+g]={index:v,subindex:g,startAngle:it,endAngle:rt,value:tt}}r[v]={index:v,startAngle:d,endAngle:n,value:(n-d)/a},n+=f}for(h=-1;++h<i;)for(l=h-1;++l<i;)y=w[h+"-"+l],p=w[l+"-"+h],(y.value||p.value)&&t.push(y.value<p.value?{source:p,target:y}:{source:y,target:p});s&&c()}function c(){t.sort(function(n,t){return s((n.source.value+n.target.value)/2,(t.source.value+t.target.value)/2)})}var n={},t,r,u,i,f=0,e,o,s;return n.matrix=function(f){return arguments.length?(i=(u=f)&&u.length,t=r=null,n):u},n.padding=function(i){return arguments.length?(f=i,t=r=null,n):f},n.sortGroups=function(i){return arguments.length?(e=i,t=r=null,n):e},n.sortSubgroups=function(i){return arguments.length?(o=i,t=null,n):o},n.sortChords=function(i){return arguments.length?(s=i,t&&c(),n):s},n.chords=function(){return t||h(),t},n.groups=function(){return r||h(),r},n},d3.layout.force=function(){function k(n){return function(t,i,r,u){var o;if(t.point!==n){var s=t.cx-n.x,h=t.cy-n.y,e=1/Math.sqrt(s*s+h*h);if((u-i)*e<y)return o=t.charge*e*e,n.px-=s*o,n.py-=h*o,!0;t.point&&isFinite(e)&&(o=t.pointCharge*e*e,n.px-=s*o,n.py-=h*o)}return!t.charge}}function d(t){t.px=d3.event.x,t.py=d3.event.y,n.resume()}var n={},o=d3.dispatch("start","tick","end"),f=[1,1],c,r,s=.9,l=yv,a=pv,e=-30,v=.1,y=.8,g,t=[],u=[],p,w,h;return n.tick=function(){if((r*=.99)<.005)return o.end({type:"end",alpha:r=0}),!0;for(var g=t.length,tt=u.length,nt,n,y,d,b,c,l,a,i=0;i<tt;++i)n=u[i],y=n.source,d=n.target,l=d.x-y.x,a=d.y-y.y,(b=l*l+a*a)&&(b=r*w[i]*((b=Math.sqrt(b))-p[i])/b,l*=b,a*=b,d.x-=l*(c=y.weight/(d.weight+y.weight)),d.y-=a*c,y.x+=l*(c=1-c),y.y+=a*c);if((c=r*v)&&(l=f[0]/2,a=f[1]/2,i=-1,c))while(++i<g)n=t[i],n.x+=(l-n.x)*c,n.y+=(a-n.y)*c;if(e)for(ks(nt=d3.geom.quadtree(t),r,h),i=-1;++i<g;)(n=t[i]).fixed||nt.visit(k(n));for(i=-1;++i<g;)n=t[i],n.fixed?(n.x=n.px,n.y=n.py):(n.x-=(n.px-(n.px=n.x))*s,n.y-=(n.py-(n.py=n.y))*s);o.tick({type:"tick",alpha:r})},n.nodes=function(i){return arguments.length?(t=i,n):t},n.links=function(t){return arguments.length?(u=t,n):u},n.size=function(t){return arguments.length?(f=t,n):f},n.linkDistance=function(t){return arguments.length?(l=i(t),n):l},n.distance=n.linkDistance,n.linkStrength=function(t){return arguments.length?(a=i(t),n):a},n.friction=function(t){return arguments.length?(s=t,n):s},n.charge=function(t){return arguments.length?(e=typeof t=="function"?t:+t,n):e},n.gravity=function(t){return arguments.length?(v=t,n):v},n.theta=function(t){return arguments.length?(y=t,n):y},n.alpha=function(t){return arguments.length?(r?r=t>0?t:0:t>0&&(o.start({type:"start",alpha:r=t}),d3.timer(n.tick)),n):r},n.start=function(){function v(n,t){for(var r=b(i),u=-1,e=r.length,f;++u<e;)if(!isNaN(f=r[u][n]))return f;return Math.random()*t}function b(){if(!s){for(s=[],o=0;o<c;++o)s[o]=[];for(o=0;o<y;++o){var n=u[o];s[n.source.index].push(n.target),s[n.target.index].push(n.source)}}return s[i]}for(var o,c=t.length,y=u.length,k=f[0],d=f[1],s,r,i=0;i<c;++i)(r=t[i]).index=i,r.weight=0;for(p=[],w=[],i=0;i<y;++i)r=u[i],typeof r.source=="number"&&(r.source=t[r.source]),typeof r.target=="number"&&(r.target=t[r.target]),p[i]=l.call(this,r,i),w[i]=a.call(this,r,i),++r.source.weight,++r.target.weight;for(i=0;i<c;++i)r=t[i],isNaN(r.x)&&(r.x=v("x",k)),isNaN(r.y)&&(r.y=v("y",d)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(h=[],typeof e=="function")for(i=0;i<c;++i)h[i]=+e.call(this,t[i],i);else for(i=0;i<c;++i)h[i]=e;return n.resume()},n.resume=function(){return n.alpha(.1)},n.stop=function(){return n.alpha(0)},n.drag=function(){c||(c=d3.behavior.drag().origin(b).on("dragstart",cv).on("drag",d).on("dragend",lv)),this.on("mouseover.force",av).on("mouseout.force",vv).call(c)},d3.rebind(n,o,"on")},d3.layout.partition=function(){function i(n,t,r,u){var f=n.children,e,o,s,h;if(n.x=t,n.y=n.depth*u,n.dx=r,n.dy=u,f&&(o=f.length))for(e=-1,r=n.value?r/n.value:0;++e<o;)i(s=f[e],t,h=s.value*r,u),t+=h}function r(n){var t=n.children,i=0,u,f;if(t&&(f=t.length))for(u=-1;++u<f;)i=Math.max(i,r(t[u]));return 1+i}function t(t,f){var e=u.call(this,t,f);return i(e[0],0,n[0],n[1]/r(e[0])),e}var u=d3.layout.hierarchy(),n=[1,1];return t.size=function(i){return arguments.length?(n=i,t):n},yt(t,u)},d3.layout.pie=function(){function n(f){var o=f.map(function(t,i){return+u.call(n,t,i)}),h=+(typeof t=="function"?t.apply(this,arguments):t),l=((typeof r=="function"?r.apply(this,arguments):r)-t)/d3.sum(o),c=d3.range(f.length),s;return i!=null&&c.sort(i===df?function(n,t){return o[t]-o[n]}:function(n,t){return i(f[n],f[t])}),s=[],c.forEach(function(n){var t;s[n]={data:f[n],value:t=o[n],startAngle:h,endAngle:h+=t*l}}),s}var u=Number,i=df,t=0,r=2*Math.PI;return n.value=function(t){return arguments.length?(u=t,n):u},n.sort=function(t){return arguments.length?(i=t,n):i},n.startAngle=function(i){return arguments.length?(t=i,n):t},n.endAngle=function(t){return arguments.length?(r=t,n):r},n},df={},d3.layout.stack=function(){function n(o,s){var c=o.map(function(t,r){return i.call(n,t,r)}),l=c.map(function(t){return t.map(function(t,i){return[f.call(n,t,i),e.call(n,t,i)]})}),v=r.call(n,l,s);c=d3.permute(c,v),l=d3.permute(l,v);for(var p=u.call(n,l,s),w=c.length,b=c[0].length,a,y,h=0;h<b;++h)for(t.call(n,c[0][h],y=p[h],l[0][h][1]),a=1;a<w;++a)t.call(n,c[a][h],y+=l[a-1][h][1],l[a][h][1]);return o}var i=b,r=ku,u=du,t=kv,f=wv,e=bv;return n.values=function(t){return arguments.length?(i=t,n):i},n.order=function(t){return arguments.length?(r=typeof t=="function"?t:vc.get(t)||ku,n):r},n.offset=function(t){return arguments.length?(u=typeof t=="function"?t:yc.get(t)||du,n):u},n.x=function(t){return arguments.length?(f=t,n):f},n.y=function(t){return arguments.length?(e=t,n):e},n.out=function(i){return arguments.length?(t=i,n):t},n},vc=d3.map({"inside-out":function(n){for(var r=n.length,t,u=n.map(dv),f=n.map(gv),c=d3.range(r).sort(function(n,t){return u[n]-u[t]}),e=0,o=0,s=[],h=[],i=0;i<r;++i)t=c[i],e<o?(e+=f[t],s.push(t)):(o+=f[t],h.push(t));return h.reverse().concat(s)},reverse:function(n){return d3.range(n.length).reverse()},"default":ku}),yc=d3.map({silhouette:function(n){for(var s=n.length,f=n[0].length,e=[],u=0,r,i,o=[],t=0;t<f;++t){for(r=0,i=0;r<s;r++)i+=n[r][t][1];i>u&&(u=i),e.push(i)}for(t=0;t<f;++t)o[t]=(u-e[t])/2;return o},wiggle:function(n){var a=n.length,h=n[0],v=h.length,y=0,i,t,r,u,c,l,f,e,o,s=[];for(s[0]=e=o=0,t=1;t<v;++t){for(i=0,u=0;i<a;++i)u+=n[i][t][1];for(i=0,c=0,f=h[t][0]-h[t-1][0];i<a;++i){for(r=0,l=(n[i][t][1]-n[i][t-1][1])/(2*f);r<i;++r)l+=(n[r][t][1]-n[r][t-1][1])/f;c+=l*n[i][t][1]}s[t]=e-=u?c/u*f:0,e<o&&(o=e)}for(t=0;t<v;++t)s[t]-=o;return s},expand:function(n){for(var r=n.length,f=n[0].length,o=1/r,t,u,e=[],i=0;i<f;++i){for(t=0,u=0;t<r;t++)u+=n[t][i][1];if(u)for(t=0;t<r;t++)n[t][i][1]/=u;else for(t=0;t<r;t++)n[t][i][1]=o}for(i=0;i<f;++i)e[i]=0;return e},zero:du}),d3.layout.histogram=function(){function n(n,i){for(var c=[],o=n.map(r,this),l=u.call(this,o,i),s=f.call(this,l,o,i),e,i=-1,v=o.length,a=s.length-1,y=t?1:1/v,h;++i<a;)e=c[i]=[],e.dx=s[i+1]-(e.x=s[i]),e.y=0;if(a>0)for(i=-1;++i<v;)h=o[i],h>=l[0]&&h<=l[1]&&(e=c[d3.bisect(s,h,1,a)-1],e.y+=y,e.push(n[i]));return c}var t=!0,r=Number,u=iy,f=ty;return n.value=function(t){return arguments.length?(r=t,n):r},n.range=function(t){return arguments.length?(u=i(t),n):u},n.bins=function(t){return arguments.length?(f=typeof t=="number"?function(n){return ds(n,t)}:i(t),n):f},n.frequency=function(i){return arguments.length?(t=!!i,n):t},n},d3.layout.hierarchy=function(){function u(f,e,o){var c=r.call(n,f,e),s=cr?f:{data:f};if(s.depth=e,o.push(s),c&&(a=c.length)){for(var l=-1,a,v=s.children=[],y=0,p=e+1,h;++l<a;)h=u(c[l],p,o),h.parent=s,v.push(h),y+=h.value;i&&v.sort(i),t&&(s.value=y)}else t&&(s.value=+t.call(n,f,e)||0);return s}function f(i,r){var e=i.children,u=0,o,s,h;if(e&&(s=e.length))for(o=-1,h=r+1;++o<s;)u+=f(e[o],h);else t&&(u=+t.call(n,cr?i:i.data,r)||0);return t&&(i.value=u),u}function n(n){var t=[];return u(n,0,t),t}var i=fy,r=ry,t=uy;return n.sort=function(t){return arguments.length?(i=t,n):i},n.children=function(t){return arguments.length?(r=t,n):r},n.value=function(i){return arguments.length?(t=i,n):t},n.revalue=function(n){return f(n,0),n},n},cr=!1,d3.layout.pack=function(){function n(n,u){var c=r.call(this,n,u),f=c[0],h;f.x=0,f.y=0,a(f,function(n){n.r=Math.sqrt(n.value)}),a(f,th);var e=i[0],o=i[1],s=Math.max(2*f.r/e,2*f.r/o);return t>0&&(h=t*s/2,a(f,function(n){n.r+=h}),a(f,th),a(f,function(n){n.r-=h}),s=Math.max(2*f.r/e,2*f.r/o)),ih(f,e/2,o/2,1/s),c}var r=d3.layout.hierarchy().sort(oy),t=0,i=[1,1];return n.size=function(t){return arguments.length?(i=t,n):i},n.padding=function(i){return arguments.length?(t=+i,n):t},yt(n,r)},d3.layout.cluster=function(){function n(n,u){var h=r.call(this,n,u),f=h[0],e,l=0,y,p;a(f,function(n){var i=n.children;i&&i.length?(n.x=ly(i),n.y=cy(i)):(n.x=e?l+=t(n,e):0,n.y=0,e=n)});var o=uh(f),s=fh(f),c=o.x-t(o,s)/2,v=s.x+t(s,o)/2;return a(f,function(n){n.x=(n.x-c)/(v-c)*i[0],n.y=(1-(f.y?n.y/f.y:1))*i[1]}),h}var r=d3.layout.hierarchy().sort(null).value(null),t=eh,i=[1,1];return n.separation=function(i){return arguments.length?(t=i,n):t},n.size=function(t){return arguments.length?(i=t,n):i},yt(n,r)},d3.layout.tree=function(){function t(t,u){function s(t,i){var f=t.children,r=t._tree,o;if(f&&(h=f.length)){for(var h,c=f[0],e,l=c,u,a=-1;++a<h;)u=f[a],s(u,e),l=v(u,e,l),e=u;py(t),o=.5*(c._tree.prelim+u._tree.prelim),i?(r.prelim=i._tree.prelim+n(t,i),r.mod=r.prelim-o):r.prelim=o}else i&&(r.prelim=i._tree.prelim+n(t,i))}function h(n,t){var i,r,u;if(n.x=n._tree.prelim+t,i=n.children,i&&(u=i.length))for(r=-1,t+=n._tree.mod;++r<u;)h(i[r],t)}function v(t,i,r){if(i){for(var f=t,e=t,u=i,o=t.parent.children[0],h=f._tree.mod,c=e._tree.mod,l=u._tree.mod,a=o._tree.mod,s;u=tf(u),f=nf(f),u&&f;)o=nf(o),e=tf(e),e._tree.ancestor=t,s=u._tree.prelim+l-f._tree.prelim-h+n(u,f),s>0&&(wy(by(u,t,r),t,s),h+=s,c+=s),l+=u._tree.mod,h+=f._tree.mod,a+=o._tree.mod,c+=e._tree.mod;u&&!tf(e)&&(e._tree.thread=u,e._tree.mod+=l-c),f&&!nf(o)&&(o._tree.thread=f,o._tree.mod+=h-a,r=t)}return r}var c=r.call(this,t,u),f=c[0];a(f,function(n,t){n._tree={ancestor:n,prelim:0,mod:0,change:0,shift:0,number:t?t._tree.number+1:0}}),s(f),h(f,-f._tree.prelim);var e=li(f,vy),o=li(f,ay),y=li(f,yy),l=e.x-n(e,o)/2,p=o.x+n(o,e)/2,w=y.depth||1;return a(f,function(n){n.x=(n.x-l)/(p-l)*i[0],n.y=n.depth/w*i[1],delete n._tree}),c}var r=d3.layout.hierarchy().sort(null).value(null),n=eh,i=[1,1];return t.separation=function(i){return arguments.length?(n=i,t):n},t.size=function(n){return arguments.length?(i=n,t):i},yt(t,r)},d3.layout.treemap=function(){function f(n,t){for(var r=-1,f=n.length,u,i;++r<f;)i=(u=n[r]).value*(t<0?0:t),u.area=isNaN(i)||i<=0?0:i}function c(n){var r=n.children;if(r&&r.length){var i=s(n),t=[],u=r.slice(),l,h=Infinity,a,o=Math.min(i.dx,i.dy),y;for(f(u,i.dx*i.dy/n.value),t.area=0;(y=u.length)>0;)t.push(l=u[y-1]),t.area+=l.area,(a=v(t,o))<=h?(u.pop(),h=a):(t.area-=t.pop().area,e(t,o,i,!1),o=Math.min(i.dx,i.dy),t.length=t.area=0,h=Infinity);t.length&&(e(t,o,i,!0),t.length=t.area=0),r.forEach(c)}}function l(n){var u=n.children;if(u&&u.length){var i=s(n),o=u.slice(),r,t=[];for(f(o,i.dx*i.dy/n.value),t.area=0;r=o.pop();)t.push(r),t.area+=r.area,r.z!=null&&(e(t,r.z?i.dx:i.dy,i,!o.length),t.length=t.area=0);u.forEach(l)}}function v(n,t){for(var i=n.area,r,f=0,e=Infinity,o=-1,s=n.length;++o<s;)(r=n[o].area)&&(r<e&&(e=r),r>f&&(f=r));return i*=i,t*=t,i?Math.max(t*f*u/i,i/(t*e*u)):Infinity}function e(n,i,r,u){var h=-1,c=n.length,o=r.x,s=r.y,e=i?t(n.area/i):0,f;if(i==r.dx){for((u||e>r.dy)&&(e=r.dy);++h<c;)f=n[h],f.x=o,f.y=s,f.dy=e,o+=f.dx=Math.min(r.x+r.dx-o,e?t(f.area/e):0);f.z=!0,f.dx+=r.x+r.dx-o,r.y+=e,r.dy-=e}else{for((u||e>r.dx)&&(e=r.dx);++h<c;)f=n[h],f.x=o,f.y=s,f.dx=e,s+=f.dy=Math.min(r.y+r.dy-s,e?t(f.area/e):0);f.z=!1,f.dy+=r.y+r.dy-s,r.x+=e,r.dx-=e}}function n(n){var u=i||o(n),t=u[0];return t.x=0,t.y=0,t.dx=r[0],t.dy=r[1],i&&o.revalue(t),f([t],t.dx*t.dy/t.value),(i?l:c)(t),h&&(i=u),u}var o=d3.layout.hierarchy(),t=Math.round,r=[1,1],a=null,s=rf,h=!1,i,u=.5*(1+Math.sqrt(5));return n.size=function(t){return arguments.length?(r=t,n):r},n.padding=function(t){function u(i){var r=t.call(n,i,i.depth);return r==null?rf(i):oh(i,typeof r=="number"?[r,r,r,r]:r)}function i(n){return oh(n,t)}if(!arguments.length)return a;var r;return s=(a=t)==null?rf:(r=typeof t)=="function"?u:r==="number"?(t=[t,t,t,t],i):i,n},n.round=function(i){return arguments.length?(t=i?Math.round:Number,n):t!=Number},n.sticky=function(t){return arguments.length?(h=t,i=null,n):h},n.ratio=function(t){return arguments.length?(u=t,n):u},yt(n,o)},d3.csv=sh(",","text/csv"),d3.tsv=sh("\t","text/tab-separated-values"),d3.geo={},n=Math.PI/180,d3.geo.azimuthal=function(){function i(i){var l=i[0]*n-s,a=i[1]*n,v=Math.cos(l),w=Math.sin(l),c=Math.cos(a),y=Math.sin(a),o=t!=="orthographic"?e*y+f*c*v:null,h,p=t==="stereographic"?1/(1+o):t==="gnomonic"?1/o:t==="equidistant"?(h=Math.acos(o),h?h/Math.sin(h):0):t==="equalarea"?Math.sqrt(2/(1+o)):1,b=p*c*w,k=p*(e*c*v-f*y);return[r*b+u[0],r*k+u[1]]}var t="orthographic",o,r=200,u=[480,250],s,h,f,e;return i.invert=function(i){var c=(i[0]-u[0])/r,h=(i[1]-u[1])/r,o=Math.sqrt(c*c+h*h),a=t==="stereographic"?2*Math.atan(o):t==="gnomonic"?Math.atan(o):t==="equidistant"?o:t==="equalarea"?2*Math.asin(.5*o):Math.asin(o),l=Math.sin(a),v=Math.cos(a);return[(s+Math.atan2(c*l,o*f*v+h*e*l))/n,Math.asin(v*e-(o?h*l*f/o:0))/n]},i.mode=function(n){return arguments.length?(t=n+"",i):t},i.origin=function(t){return arguments.length?(o=t,s=o[0]*n,h=o[1]*n,f=Math.cos(h),e=Math.sin(h),i):o},i.scale=function(n){return arguments.length?(r=+n,i):r},i.translate=function(n){return arguments.length?(u=[+n[0],+n[1]],i):u},i.origin([0,0])},d3.geo.albers=function(){function i(i){var f=t*(n*i[0]-h),e=Math.sqrt(o-2*t*Math.sin(n*i[1]))/t;return[r*e*Math.sin(f)+u[0],r*(e*Math.cos(f)-c)+u[1]]}function s(){var r=n*e[0],l=n*e[1],a=n*f[1],u=Math.sin(r),s=Math.cos(r);return h=n*f[0],t=.5*(u+Math.sin(l)),o=s*s+2*t*u,c=Math.sqrt(o-2*t*Math.sin(a))/t,i}var f=[-98,38],e=[29.5,45.5],r=1e3,u=[480,250],h,t,o,c;return i.invert=function(i){var f=(i[0]-u[0])/r,l=(i[1]-u[1])/r,e=c+l,a=Math.atan2(f,e),s=Math.sqrt(f*f+e*e);return[(h+a/t)/n,Math.asin((o-s*s*t*t)/(2*t))/n]},i.origin=function(n){return arguments.length?(f=[+n[0],+n[1]],s()):f},i.parallels=function(n){return arguments.length?(e=[+n[0],+n[1]],s()):e},i.scale=function(n){return arguments.length?(r=+n,i):r},i.translate=function(n){return arguments.length?(u=[+n[0],+n[1]],i):u},s()},d3.geo.albersUsa=function(){function t(t){var e=t[0],f=t[1];return(f>50?i:e<-140?r:f<21?u:n)(t)}var n=d3.geo.albers(),i=d3.geo.albers().origin([-160,60]).parallels([55,65]),r=d3.geo.albers().origin([-160,20]).parallels([8,18]),u=d3.geo.albers().origin([-60,10]).parallels([8,18]);return t.scale=function(f){return arguments.length?(n.scale(f),i.scale(f*.6),r.scale(f),u.scale(f*1.5),t.translate(n.translate())):n.scale()},t.translate=function(f){if(!arguments.length)return n.translate();var e=n.scale()/1e3,o=f[0],s=f[1];return n.translate(f),i.translate([o-400*e,s+170*e]),r.translate([o-190*e,s+200*e]),u.translate([o+580*e,s+430*e]),t},t.scale(n.scale())},d3.geo.bonne=function(){function t(t){var h=t[0]*n-e,s=t[1]*n-o,c,l;return u?(c=f+u-s,l=h*Math.cos(s)/c,h=c*Math.sin(l),s=c*Math.cos(l)-f):(h*=Math.cos(s),s*=-1),[i*h+r[0],i*s+r[1]]}var i=200,r=[480,250],e,o,u,f;return t.invert=function(t){var o=(t[0]-r[0])/i,s=(t[1]-r[1])/i,h,c;return u?(h=f+s,c=Math.sqrt(o*o+h*h),s=f+u-c,o=e+c*Math.atan2(o,h)/Math.cos(s)):(s*=-1,o/=Math.cos(s)),[o/n,s/n]},t.parallel=function(i){return arguments.length?(f=1/Math.tan(u=i*n),t):u/n},t.origin=function(i){return arguments.length?(e=i[0]*n,o=i[1]*n,t):[e/n,o/n]},t.scale=function(n){return arguments.length?(i=+n,t):i},t.translate=function(n){return arguments.length?(r=[+n[0],+n[1]],t):r},t.origin([0,0]).parallel(45)},d3.geo.equirectangular=function(){function n(n){var r=n[0]/360,u=-n[1]/360;return[t*r+i[0],t*u+i[1]]}var t=500,i=[480,250];return n.invert=function(n){var r=(n[0]-i[0])/t,u=(n[1]-i[1])/t;return[360*r,-360*u]},n.scale=function(i){return arguments.length?(t=+i,n):t},n.translate=function(t){return arguments.length?(i=[+t[0],+t[1]],n):i},n},d3.geo.mercator=function(){function t(t){var u=t[0]/360,f=-(Math.log(Math.tan(Math.PI/4+t[1]*n/2))/n)/360;return[i*u+r[0],i*Math.max(-.5,Math.min(.5,f))+r[1]]}var i=500,r=[480,250];return t.invert=function(t){var u=(t[0]-r[0])/i,f=(t[1]-r[1])/i;return[360*u,2*Math.atan(Math.exp(-360*f*n))/n-90]},t.scale=function(n){return arguments.length?(i=+n,t):i},t.translate=function(n){return arguments.length?(r=[+n[0],+n[1]],t):r},t},d3.geo.path=function(){function t(t){typeof r=="function"&&(f=uf(r.apply(this,arguments))),e(t);var u=n.length?n.join(""):null;return n=[],u}function i(n){return u(n).join(",")}function s(n){for(var t=c(n[0]),i=0,r=n.length;++i<r;)t-=c(n[i]);return t}function h(n){for(var i=d3.geom.polygon(n[0].map(u)),t=i.area(),r=i.centroid(t<0?(t*=-1,1):-1),f=r[0],e=r[1],o=t,s=0,h=n.length;++s<h;)i=d3.geom.polygon(n[s].map(u)),t=i.area(),r=i.centroid(t<0?(t*=-1,1):-1),f-=r[0],e-=r[1],o-=t;return[f,e,6*o]}function c(n){return Math.abs(d3.geom.polygon(n.map(u)).area())}var r=4.5,f=uf(r),u=d3.geo.albersUsa(),n=[],e=ai({FeatureCollection:function(t){for(var i=t.features,r=-1,u=i.length;++r<u;)n.push(e(i[r].geometry))},Feature:function(n){e(n.geometry)},Point:function(t){n.push("M",i(t.coordinates),f)},MultiPoint:function(t){for(var r=t.coordinates,u=-1,e=r.length;++u<e;)n.push("M",i(r[u]),f)},LineString:function(t){var r=t.coordinates,u=-1,f=r.length;for(n.push("M");++u<f;)n.push(i(r[u]),"L");n.pop()},MultiLineString:function(t){for(var f=t.coordinates,e=-1,s=f.length,r,u,o;++e<s;){for(r=f[e],u=-1,o=r.length,n.push("M");++u<o;)n.push(i(r[u]),"L");n.pop()}},Polygon:function(t){for(var f=t.coordinates,e=-1,s=f.length,r,u,o;++e<s;)if(r=f[e],u=-1,(o=r.length-1)>0){for(n.push("M");++u<o;)n.push(i(r[u]),"L");n[n.length-1]="Z"}},MultiPolygon:function(t){for(var o=t.coordinates,s=-1,l=o.length,r,u,h,f,e,c;++s<l;)for(r=o[s],u=-1,h=r.length;++u<h;)if(f=r[u],e=-1,(c=f.length-1)>0){for(n.push("M");++e<c;)n.push(i(f[e]),"L");n[n.length-1]="Z"}},GeometryCollection:function(t){for(var i=t.geometries,r=-1,u=i.length;++r<u;)n.push(e(i[r]))}}),o=t.area=ai({FeatureCollection:function(n){for(var t=0,i=n.features,r=-1,u=i.length;++r<u;)t+=o(i[r]);return t},Feature:function(n){return o(n.geometry)},Polygon:function(n){return s(n.coordinates)},MultiPolygon:function(n){for(var t=0,i=n.coordinates,r=-1,u=i.length;++r<u;)t+=s(i[r]);return t},GeometryCollection:function(n){for(var t=0,i=n.geometries,r=-1,u=i.length;++r<u;)t+=o(i[r]);return t}},0),l=t.centroid=ai({Feature:function(n){return l(n.geometry)},Polygon:function(n){var t=h(n.coordinates);return[t[0]/t[2],t[1]/t[2]]},MultiPolygon:function(n){for(var s=0,r=n.coordinates,t,u=0,f=0,i=0,e=-1,o=r.length;++e<o;)t=h(r[e]),u+=t[0],f+=t[1],i+=t[2];return[u/i,f/i]}});return t.projection=function(n){return u=n,t},t.pointRadius=function(n){return typeof n=="function"?r=n:(r=+n,f=uf(r)),t},t},d3.geo.bounds=function(n){var t=Infinity,i=Infinity,r=-Infinity,u=-Infinity;return vi(n,function(n,f){n<t&&(t=n),n>r&&(r=n),f<i&&(i=f),f>u&&(u=f)}),[[t,i],[r,u]]},gf={Feature:ky,FeatureCollection:dy,GeometryCollection:gy,LineString:hh,MultiLineString:np,MultiPoint:hh,MultiPolygon:tp,Point:ip,Polygon:rp},d3.geo.circle=function(){function r(){}function s(n){return t.distance(n)<u}function e(n){for(var c=-1,l=n.length,r=[],e,i,f,o,s;++c<l;)s=t.distance(f=n[c]),s<u?(i&&r.push(lh(i,f)((o-u)/(o-s))),r.push(f),e=i=null):(i=f,!e&&r.length&&(r.push(lh(r[r.length-1],i)((u-o)/(s-o))),e=i)),o=s;return e=n[0],i=r[0],!i||f[0]!==e[0]||f[1]!==e[1]||f[0]===i[0]&&f[1]===i[1]||r.push(i),h(r)}function h(n){for(var i=0,f=n.length,r,e,o=f?[n[0]]:n,u,s=t.source();++i<f;)for(u=t.source(n[i-1])(n[i]).coordinates,r=0,e=u.length;++r<e;)o.push(u[r]);return t.source(s),o}var i=[0,0],o=90-.01,u=o*n,t=d3.geo.greatArc().source(i).target(b),f;return r.clip=function(n){return typeof i=="function"&&t.source(i.apply(this,arguments)),f(n)||null},f=ai({FeatureCollection:function(n){var t=n.features.map(f).filter(b);return t&&(n=Object.create(n),n.features=t,n)},Feature:function(n){var t=f(n.geometry);return t&&(n=Object.create(n),n.geometry=t,n)},Point:function(n){return s(n.coordinates)&&n},MultiPoint:function(n){var t=n.coordinates.filter(s);return t.length&&{type:n.type,coordinates:t}},LineString:function(n){var t=e(n.coordinates);return t.length&&(n=Object.create(n),n.coordinates=t,n)},MultiLineString:function(n){var t=n.coordinates.map(e).filter(function(n){return n.length});return t.length&&(n=Object.create(n),n.coordinates=t,n)},Polygon:function(n){var t=n.coordinates.map(e);return t[0].length&&(n=Object.create(n),n.coordinates=t,n)},MultiPolygon:function(n){var t=n.coordinates.map(function(n){return n.map(e)}).filter(function(n){return n[0].length});return t.length&&(n=Object.create(n),n.coordinates=t,n)},GeometryCollection:function(n){var t=n.geometries.map(f).filter(b);return t.length&&(n=Object.create(n),n.geometries=t,n)}}),r.origin=function(n){return arguments.length?(i=n,typeof i!="function"&&t.source(i),r):i},r.angle=function(t){return arguments.length?(u=(o=+t)*n,r):o},d3.rebind(r,t,"precision")},d3.geo.greatArc=function(){function t(){for(var r=t.distance.apply(this,arguments),i=0,s=o/r,n=[f];(i+=s)<1;)n.push(u(i));return n.push(e),{type:"LineString",coordinates:n}}var i=up,f,r=fp,e,o=6*n,u=ch();return t.distance=function(){return typeof i=="function"&&u.source(f=i.apply(this,arguments)),typeof r=="function"&&u.target(e=r.apply(this,arguments)),u.distance()},t.source=function(n){return arguments.length?(i=n,typeof i!="function"&&u.source(f=i),t):i},t.target=function(n){return arguments.length?(r=n,typeof r!="function"&&u.target(e=r),t):r},t.precision=function(i){return arguments.length?(o=i*n,t):o/n},t},d3.geo.greatCircle=d3.geo.circle,d3.geom={},d3.geom.contour=function(n,t){var o=t||ep(n),c=[],r=o[0],u=o[1],f=0,e=0,s=NaN,h=NaN,i=0;do i=0,n(r-1,u-1)&&(i+=1),n(r,u-1)&&(i+=2),n(r-1,u)&&(i+=4),n(r,u)&&(i+=8),i===6?(f=h===-1?-1:1,e=0):i===9?(f=0,e=s===1?-1:1):(f=pc[i],e=wc[i]),f!=s&&e!=h&&(c.push([r,u]),s=f,h=e),r+=f,u+=e;while(o[0]!=r||o[1]!=u);return c},pc=[1,0,1,1,-1,0,-1,1,0,0,0,0,-1,0,-1,NaN],wc=[0,-1,0,0,0,-1,0,0,1,-1,1,1,0,-1,0,NaN],d3.geom.hull=function(n){var p;if(n.length<3)return[];for(var a=n.length,w=a-1,i=[],f=[],r,u=0,o,s,v,y,c,h,l,e,t=1;t<a;++t)n[t][1]<n[u][1]?u=t:n[t][1]==n[u][1]&&(u=n[t][0]<n[u][0]?t:u);for(t=0;t<a;++t)t!==u&&(s=n[t][1]-n[u][1],o=n[t][0]-n[u][0],i.push({angle:Math.atan2(s,o),index:t}));for(i.sort(function(n,t){return n.angle-t.angle}),l=i[0].angle,h=i[0].index,c=0,t=1;t<w;++t)r=i[t].index,l==i[t].angle?(o=n[h][0]-n[u][0],s=n[h][1]-n[u][1],v=n[r][0]-n[u][0],y=n[r][1]-n[u][1],o*o+s*s>=v*v+y*y?i[t].index=-1:(i[c].index=-1,l=i[t].angle,c=t,h=r)):(l=i[t].angle,c=t,h=r);for(f.push(u),t=0,r=0;t<2;++r)i[r].index!==-1&&(f.push(i[r].index),t++);for(e=f.length;r<w;++r)if(i[r].index!==-1){while(!op(f[e-2],f[e-1],i[r].index,n))--e;f[e++]=i[r].index}for(p=[],t=0;t<e;++t)p.push(n[f[t]]);return p},d3.geom.polygon=function(n){return n.area=function(){for(var t=0,i=n.length,r=n[i-1][0]*n[0][1],u=n[i-1][1]*n[0][0];++t<i;)r+=n[t-1][0]*n[t][1],u+=n[t-1][1]*n[t][0];return(u-r)*.5},n.centroid=function(t){var f=-1,e=n.length,o=0,s=0,r,i=n[e-1],u;for(arguments.length||(t=-1/(6*n.area()));++f<e;)r=i,i=n[f],u=r[0]*i[1]-i[0]*r[1],o+=(r[0]+i[0])*u,s+=(r[1]+i[1])*u;return[o*t,s*t]},n.clip=function(t){for(var e,s=-1,h=n.length,o,c,r=n[h-1],i,u,f;++s<h;){for(e=t.slice(),t.length=0,i=n[s],u=e[(c=e.length)-1],o=-1;++o<c;)f=e[o],ff(f,r,i)?(ff(u,r,i)||t.push(ah(u,f,r,i)),t.push(f)):ff(u,r,i)&&t.push(ah(u,f,r,i)),u=f;r=i}return t},n},d3.geom.voronoi=function(n){var t=n.map(function(){return[]});return vh(n,function(n){var i,r,u,f,e,o,s,h;n.a===1&&n.b>=0?(i=n.ep.r,r=n.ep.l):(i=n.ep.l,r=n.ep.r),n.a===1?(e=i?i.y:-1e6,u=n.c-n.b*e,o=r?r.y:1e6,f=n.c-n.b*o):(u=i?i.x:-1e6,e=n.c-n.a*u,f=r?r.x:1e6,o=n.c-n.a*f),s=[u,e],h=[f,o],t[n.region.l.index].push(s,h),t[n.region.r.index].push(s,h)}),t.map(function(t,i){var r=n[i][0],u=n[i][1];return t.forEach(function(n){n.angle=Math.atan2(n[0]-r,n[1]-u)}),t.sort(function(n,t){return n.angle-t.angle}).filter(function(n,i){return!i||n.angle-t[i-1].angle>1e-10})})},lr={l:"r",r:"l"},d3.geom.delaunay=function(n){var t=n.map(function(){return[]}),i=[];return vh(n,function(i){t[i.region.l.index].push(n[i.region.r.index])}),t.forEach(function(t,r){var f=n[r],o=f[0],s=f[1],u,e;for(t.forEach(function(n){n.angle=Math.atan2(n[0]-o,n[1]-s)}),t.sort(function(n,t){return n.angle-t.angle}),u=0,e=t.length-1;u<e;u++)i.push([f,t[u],t[u+1]])}),i},d3.geom.quadtree=function(n,t,i,r,u){function c(n,t,i,r,u,f){if(!isNaN(t.x)&&!isNaN(t.y))if(n.leaf){var e=n.point;e?Math.abs(e.x-t.x)+Math.abs(e.y-t.y)<.01?o(n,t,i,r,u,f):(n.point=null,o(n,e,i,r,u,f),o(n,t,i,r,u,f)):n.point=t}else o(n,t,i,r,u,f)}function o(n,t,i,r,u,f){var e=(i+u)*.5,o=(r+f)*.5,s=t.x>=e,h=t.y>=o,l=(h<<1)+s;n.leaf=!1,n=n.nodes[l]||(n.nodes[l]=yh()),s?i=e:u=e,h?r=o:f=o,c(n,t,i,r,u,f)}var f,l=-1,a=n.length,s,h,e;if(a&&isNaN(n[0].x)&&(n=n.map(sp)),arguments.length<5)if(arguments.length===3)u=r=i,i=t;else{for(t=i=Infinity,r=u=-Infinity;++l<a;)f=n[l],f.x<t&&(t=f.x),f.y<i&&(i=f.y),f.x>r&&(r=f.x),f.y>u&&(u=f.y);s=r-t,h=u-i,s>h?u=i+s:r=t+h}return e=yh(),e.add=function(n){c(e,n,t,i,r,u)},e.visit=function(n){pt(n,e,t,i,r,u)},n.forEach(e.add),e},d3.time={},r=Date,ne=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],k.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){v.setUTCDate.apply(this._,arguments)},setDay:function(){v.setUTCDay.apply(this._,arguments)},setFullYear:function(){v.setUTCFullYear.apply(this._,arguments)},setHours:function(){v.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){v.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){v.setUTCMinutes.apply(this._,arguments)},setMonth:function(){v.setUTCMonth.apply(this._,arguments)},setSeconds:function(){v.setUTCSeconds.apply(this._,arguments)},setTime:function(){v.setTime.apply(this._,arguments)}};var v=Date.prototype,rb="%a %b %e %H:%M:%S %Y",ub="%m/%d/%y",fb="%H:%M:%S",te=ne,bc=te.map(ph),ar=["January","February","March","April","May","June","July","August","September","October","November","December"],ie=ar.map(ph);d3.time.format=function(n){function t(t){for(var u=[],r=-1,f=0,e,o;++r<i;)n.charCodeAt(r)==37&&(u.push(n.substring(f,r),(o=vr[e=n.charAt(++r)])?o(t):e),f=r+1);return u.push(n.substring(f,r)),u.join("")}var i=n.length;return t.parse=function(t){var i={y:1900,m:0,d:1,H:0,M:0,S:0,L:0},f=yi(i,n,t,0),u;return f!=t.length?null:("p"in i&&(i.H=i.H%12+i.p*12),u=new r,u.setFullYear(i.y,i.m,i.d),u.setHours(i.H,i.M,i.S,i.L),u)},t.toString=function(){return n},t};var s=d3.format("02d"),kc=d3.format("03d"),eb=d3.format("04d"),ob=d3.format("2d"),dc=pi(te),gc=pi(bc),nl=pi(ar),sb=wh(ar),tl=pi(ie),hb=wh(ie),vr={a:function(n){return bc[n.getDay()]},A:function(n){return te[n.getDay()]},b:function(n){return ie[n.getMonth()]},B:function(n){return ar[n.getMonth()]},c:d3.time.format(rb),d:function(n){return s(n.getDate())},e:function(n){return ob(n.getDate())},H:function(n){return s(n.getHours())},I:function(n){return s(n.getHours()%12||12)},j:function(n){return kc(1+d3.time.dayOfYear(n))},L:function(n){return kc(n.getMilliseconds())},m:function(n){return s(n.getMonth()+1)},M:function(n){return s(n.getMinutes())},p:function(n){return n.getHours()>=12?"PM":"AM"},S:function(n){return s(n.getSeconds())},U:function(n){return s(d3.time.sundayOfYear(n))},w:function(n){return n.getDay()},W:function(n){return s(d3.time.mondayOfYear(n))},x:d3.time.format(ub),X:d3.time.format(fb),y:function(n){return s(n.getFullYear()%100)},Y:function(n){return eb(n.getFullYear()%1e4)},Z:rw,"%":function(){return"%"}},cb={a:hp,A:cp,b:lp,B:ap,c:vp,d:bh,e:bh,H:kh,I:kh,L:tw,m:dp,M:gp,p:iw,S:nw,x:yp,X:pp,y:bp,Y:wp},u=/^\s*\d+/,lb=d3.map({am:0,pm:1});d3.time.format.utc=function(n){function t(n){try{r=k;var t=new r;return t._=n,i(t)}finally{r=Date}}var i=d3.time.format(n);return t.parse=function(n){try{r=k;var t=i.parse(n);return t&&t._}finally{r=Date}},t.toString=i.toString,t},re=d3.time.format.utc("%Y-%m-%dT%H:%M:%S.%LZ"),d3.time.format.iso=Date.prototype.toISOString?ef:re,ef.parse=function(n){var t=new Date(n);return isNaN(t)?null:t},ef.toString=re.toString,d3.time.second=d(function(n){return new r(Math.floor(n/1e3)*1e3)},function(n,t){n.setTime(n.getTime()+Math.floor(t)*1e3)},function(n){return n.getSeconds()}),d3.time.seconds=d3.time.second.range,d3.time.seconds.utc=d3.time.second.utc.range,d3.time.minute=d(function(n){return new r(Math.floor(n/6e4)*6e4)},function(n,t){n.setTime(n.getTime()+Math.floor(t)*6e4)},function(n){return n.getMinutes()}),d3.time.minutes=d3.time.minute.range,d3.time.minutes.utc=d3.time.minute.utc.range,d3.time.hour=d(function(n){var t=n.getTimezoneOffset()/60;return new r((Math.floor(n/36e5-t)+t)*36e5)},function(n,t){n.setTime(n.getTime()+Math.floor(t)*36e5)},function(n){return n.getHours()}),d3.time.hours=d3.time.hour.range,d3.time.hours.utc=d3.time.hour.utc.range,d3.time.day=d(function(n){var t=new r(1970,0);return t.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),t},function(n,t){n.setDate(n.getDate()+t)},function(n){return n.getDate()-1}),d3.time.days=d3.time.day.range,d3.time.days.utc=d3.time.day.utc.range,d3.time.dayOfYear=function(n){var t=d3.time.year(n);return Math.floor((n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5)},ne.forEach(function(n,t){n=n.toLowerCase(),t=7-t;var i=d3.time[n]=d(function(n){return(n=d3.time.day(n)).setDate(n.getDate()-(n.getDay()+t)%7),n},function(n,t){n.setDate(n.getDate()+Math.floor(t)*7)},function(n){var i=d3.time.year(n).getDay();return Math.floor((d3.time.dayOfYear(n)+(i+t)%7)/7)-(i!==t)});d3.time[n+"s"]=i.range,d3.time[n+"s"].utc=i.utc.range,d3.time[n+"OfYear"]=function(n){var i=d3.time.year(n).getDay();return Math.floor((d3.time.dayOfYear(n)+(i+t)%7)/7)}}),d3.time.week=d3.time.sunday,d3.time.weeks=d3.time.sunday.range,d3.time.weeks.utc=d3.time.sunday.utc.range,d3.time.weekOfYear=d3.time.sundayOfYear,d3.time.month=d(function(n){return n=d3.time.day(n),n.setDate(1),n},function(n,t){n.setMonth(n.getMonth()+t)},function(n){return n.getMonth()}),d3.time.months=d3.time.month.range,d3.time.months.utc=d3.time.month.utc.range,d3.time.year=d(function(n){return n=d3.time.day(n),n.setMonth(0,1),n},function(n,t){n.setFullYear(n.getFullYear()+t)},function(n){return n.getFullYear()}),d3.time.years=d3.time.year.range,d3.time.years.utc=d3.time.year.utc.range;var yr=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],ue=[[d3.time.second,1],[d3.time.second,5],[d3.time.second,15],[d3.time.second,30],[d3.time.minute,1],[d3.time.minute,5],[d3.time.minute,15],[d3.time.minute,30],[d3.time.hour,1],[d3.time.hour,3],[d3.time.hour,6],[d3.time.hour,12],[d3.time.day,1],[d3.time.day,2],[d3.time.week,1],[d3.time.month,1],[d3.time.month,3],[d3.time.year,1]],ab=[[d3.time.format("%Y"),function(){return!0}],[d3.time.format("%B"),function(n){return n.getMonth()}],[d3.time.format("%b %d"),function(n){return n.getDate()!=1}],[d3.time.format("%a %d"),function(n){return n.getDay()&&n.getDate()!=1}],[d3.time.format("%I %p"),function(n){return n.getHours()}],[d3.time.format("%I:%M"),function(n){return n.getMinutes()}],[d3.time.format(":%S"),function(n){return n.getSeconds()}],[d3.time.format(".%L"),function(n){return n.getMilliseconds()}]],il=d3.scale.linear(),vb=dh(ab);ue.year=function(n,t){return il.domain(n.map(fw)).ticks(t).map(hf)},d3.time.scale=function(){return of(d3.scale.linear(),ue,vb)};var rl=ue.map(function(n){return[n[0].utc,n[1]]}),yb=[[d3.time.format.utc("%Y"),function(){return!0}],[d3.time.format.utc("%B"),function(n){return n.getUTCMonth()}],[d3.time.format.utc("%b %d"),function(n){return n.getUTCDate()!=1}],[d3.time.format.utc("%a %d"),function(n){return n.getUTCDay()&&n.getUTCDate()!=1}],[d3.time.format.utc("%I %p"),function(n){return n.getUTCHours()}],[d3.time.format.utc("%I:%M"),function(n){return n.getUTCMinutes()}],[d3.time.format.utc(":%S"),function(n){return n.getUTCSeconds()}],[d3.time.format.utc(".%L"),function(n){return n.getUTCMilliseconds()}]],pb=dh(yb);rl.year=function(n,t){return il.domain(n.map(ew)).ticks(t).map(cf)},d3.time.scale.utc=function(){return of(d3.scale.linear(),rl,pb)}}(),function(n,t){var i,g,nt,tt,it,r,h,v,c,rt,y,f,u,p,e,l,w,b,ut,k,o,a,d,s;i=function(n){return new i.prototype.init(n)},typeof require!="undefined"&&typeof exports!="undefined"&&typeof module!="undefined"?module.exports=i:n.Globalize=i,i.cultures={},i.prototype={constructor:i,init:function(n){return this.cultures=i.cultures,this.cultureSelector=n,this}},i.prototype.init.prototype=i.prototype,i.cultures["default"]={name:"en",englishName:"English",nativeName:"English",isRTL:!1,language:"en",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSizes:[3],"+":"+","-":"-",NaN:"NaN",negativeInfinity:"-Infinity",positiveInfinity:"Infinity",percent:{pattern:["-n %","n %"],decimals:2,groupSizes:[3],",":",",".":".",symbol:"%"},currency:{pattern:["($n)","$n"],decimals:2,groupSizes:[3],",":",",".":".",symbol:"$"}},calendars:{standard:{name:"Gregorian_USEnglish","/":"/",":":":",firstDay:0,days:{names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],namesAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],namesShort:["Su","Mo","Tu","We","Th","Fr","Sa"]},months:{names:["January","February","March","April","May","June","July","August","September","October","November","December",""],namesAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""]},AM:["AM","am","AM"],PM:["PM","pm","PM"],eras:[{name:"A.D.",start:null,offset:0}],twoDigitYearMax:2029,patterns:{d:"M/d/yyyy",D:"dddd, MMMM dd, yyyy",t:"h:mm tt",T:"h:mm:ss tt",f:"dddd, MMMM dd, yyyy h:mm tt",F:"dddd, MMMM dd, yyyy h:mm:ss tt",M:"MMMM dd",Y:"yyyy MMMM",S:"yyyy'-'MM'-'dd'T'HH':'mm':'ss"}}},messages:{}},i.cultures["default"].calendar=i.cultures["default"].calendars.standard,i.cultures.en=i.cultures["default"],i.cultureSelector="en",g=/^0x[a-f0-9]+$/i,nt=/^[+\-]?infinity$/i,tt=/^[+\-]?\d*\.?\d*(e[+\-]?\d+)?$/,it=/^\s+|\s+$/g,r=function(n,t){if(n.indexOf)return n.indexOf(t);for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},h=function(n,t){return n.substr(n.length-t.length)===t},v=function(){var e,u,r,i,o,s,n=arguments[0]||{},f=1,l=arguments.length,h=!1;for(typeof n=="boolean"&&(h=n,n=arguments[1]||{},f=2),typeof n=="object"||rt(n)||(n={});f<l;f++)if((e=arguments[f])!=null)for(u in e)(r=n[u],i=e[u],n!==i)&&(h&&i&&(y(i)||(o=c(i)))?(o?(o=!1,s=r&&c(r)?r:[]):s=r&&y(r)?r:{},n[u]=v(h,s,i)):i!==t&&(n[u]=i));return n},c=Array.isArray||function(n){return Object.prototype.toString.call(n)==="[object Array]"},rt=function(n){return Object.prototype.toString.call(n)==="[object Function]"},y=function(n){return Object.prototype.toString.call(n)==="[object Object]"},f=function(n,t){return n.indexOf(t)===0},u=function(n){return(n+"").replace(it,"")},p=function(n){return isNaN(n)?NaN:Math[n<0?"ceil":"floor"](n)},e=function(n,t,i){for(var r=n.length;r<t;r+=1)n=i?"0"+n:n+"0";return n},l=function(n,t){for(var f=0,i=!1,u,r=0,e=n.length;r<e;r++){u=n.charAt(r);switch(u){case"'":i?t.push("'"):f++,i=!1;break;case"\\":i&&t.push("\\"),i=!i;break;default:t.push(u),i=!1}}return f},w=function(n,t){t=t||"F";var i,u=n.patterns,r=t.length;if(r===1){if(i=u[t],!i)throw"Invalid date format string '"+t+"'.";t=i}else r===2&&t.charAt(0)==="%"&&(t=t.charAt(1));return t},b=function(n,t,i){function e(n,t){var i,r=n+"";return t>1&&r.length<t?(i=st[t-2]+r,i.substr(i.length-t,t)):i=r}function ct(){return c||ut?c:(c=ht.test(t),ut=!0,c)}function it(n,t){if(v)return v[t];switch(t){case 0:return n.getFullYear();case 1:return n.getMonth();case 2:return n.getDate();default:throw"Invalid part value "+t;}}var u=i.calendar,d=u.convert,r,g,rt,nt,tt,p,f,ot,h;if(!t||!t.length||t==="i")return i&&i.name.length?d?r=b(n,u.patterns.F,i):(g=new Date(n.getTime()),rt=o(n,u.eras),g.setFullYear(a(n,u,rt)),r=g.toLocaleString()):r=n.toString(),r;nt=u.eras,tt=t==="s",t=w(u,t),r=[];var s,st=["0","00","000"],c,ut,ht=/([^d]|^)(d|dd)([^d]|$)/g,ft=0,et=k(),v;for(!tt&&d&&(v=d.fromGregorian(n));;){var lt=et.lastIndex,y=et.exec(t),at=t.slice(lt,y?y.index:t.length);if(ft+=l(at,r),!y)break;if(ft%2){r.push(y[0]);continue}p=y[0],f=p.length;switch(p){case"ddd":case"dddd":ot=f===3?u.days.namesAbbr:u.days.names,r.push(ot[n.getDay()]);break;case"d":case"dd":c=!0,r.push(e(it(n,2),f));break;case"MMM":case"MMMM":h=it(n,1),r.push(u.monthsGenitive&&ct()?u.monthsGenitive[f===3?"namesAbbr":"names"][h]:u.months[f===3?"namesAbbr":"names"][h]);break;case"M":case"MM":r.push(e(it(n,1)+1,f));break;case"y":case"yy":case"yyyy":h=v?v[0]:a(n,u,o(n,nt),tt),f<4&&(h=h%100),r.push(e(h,f));break;case"h":case"hh":s=n.getHours()%12,s===0&&(s=12),r.push(e(s,f));break;case"H":case"HH":r.push(e(n.getHours(),f));break;case"m":case"mm":r.push(e(n.getMinutes(),f));break;case"s":case"ss":r.push(e(n.getSeconds(),f));break;case"t":case"tt":h=n.getHours()<12?u.AM?u.AM[0]:" ":u.PM?u.PM[0]:" ",r.push(f===1?h.charAt(0):h);break;case"f":case"ff":case"fff":r.push(e(n.getMilliseconds(),3).substr(0,f));break;case"z":case"zz":s=n.getTimezoneOffset()/60,r.push((s<=0?"+":"-")+e(Math.floor(Math.abs(s)),f));break;case"zzz":s=n.getTimezoneOffset()/60,r.push((s<=0?"+":"-")+e(Math.floor(Math.abs(s)),2)+":"+e(Math.abs(n.getTimezoneOffset()%60),2));break;case"g":case"gg":u.eras&&r.push(u.eras[o(n,nt)].name);break;case"/":r.push(u["/"]);break;default:throw"Invalid date format pattern '"+p+"'.";}}return r.join("")},function(){var n;n=function(n,t,i){var l=i.groupSizes,c=l[0],a=1,p=Math.pow(10,t),v=Math.round(n*p)/p;isFinite(v)||(v=n),n=v;var u=n+"",r="",o=u.split(/e/i),f=o.length>1?parseInt(o[1],10):0;u=o[0],o=u.split("."),u=o[0],r=o.length>1?o[1]:"",f>0?(r=e(r,f,!1),u+=r.slice(0,f),r=r.substr(f)):f<0&&(f=-f,u=e(u,f+1,!0),r=u.slice(-f,u.length)+r,u=u.slice(0,-f)),r=t>0?i["."]+(r.length>t?r.slice(0,t):e(r,t)):"";for(var s=u.length-1,y=i[","],h="";s>=0;){if(c===0||c>s)return u.slice(0,s+1)+(h.length?y+h+r:r);h=u.slice(s-c+1,s+1)+(h.length?y+h:""),s-=c,a<l.length&&(c=l[a],a++)}return u.slice(0,s+1)+y+h+r},ut=function(t,i,r){var a,f,v,o,y,l;if(!isFinite(t))return t===Infinity?r.numberFormat.positiveInfinity:t===-Infinity?r.numberFormat.negativeInfinity:r.numberFormat.NaN;if(!i||i==="i")return r.name.length?t.toLocaleString():t.toString();i=i||"D";var s=r.numberFormat,u=Math.abs(t),h=-1,c;i.length>1&&(h=parseInt(i.slice(1),10)),a=i.charAt(0).toUpperCase();switch(a){case"D":c="n",u=p(u),h!==-1&&(u=e(""+u,h,!0)),t<0&&(u="-"+u);break;case"N":f=s;case"C":f=f||s.currency;case"P":f=f||s.percent,c=t<0?f.pattern[0]:f.pattern[1]||"n",h===-1&&(h=f.decimals),u=n(u*(a==="P"?100:1),h,f);break;default:throw"Bad number format specifier: "+a;}for(v=/n|\$|-|%/g,o="";;){if(y=v.lastIndex,l=v.exec(c),o+=c.slice(y,l?l.index:c.length),!l)break;switch(l[0]){case"n":o+=u;break;case"$":o+=s.currency.symbol;break;case"-":/[1-9]/.test(u)&&(o+=s["-"]);break;case"%":o+=s.percent.symbol}}return o}}(),k=function(){return/\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|zzz|zz|z|gg|g/g},o=function(n,t){var r,u,i,f;if(!t)return 0;for(u=n.getTime(),i=0,f=t.length;i<f;i++)if(r=t[i].start,r===null||u>=r)return i;return 0},a=function(n,t,i,r){var u=n.getFullYear();return!r&&t.eras&&(u-=t.eras[i].offset),u},function(){var e,s,h,c,n,i,t;e=function(n,t){if(t<100){var r=new Date,f=o(r),u=a(r,n,f),i=n.twoDigitYearMax;i=typeof i=="string"?(new Date).getFullYear()%100+parseInt(i,10):i,t+=u-u%100,t>i&&(t-=100)}return t},s=function(n,u,f){var e,s=n.days,o=n._upperDays;return o||(n._upperDays=o=[t(s.names),t(s.namesAbbr),t(s.namesShort)]),u=i(u),f?(e=r(o[1],u),e===-1&&(e=r(o[2],u))):e=r(o[0],u),e},h=function(n,u,f){var h=n.months,c=n.monthsGenitive||n.months,e=n._upperMonths,s=n._upperMonthsGen,o;return e||(n._upperMonths=e=[t(h.names),t(h.namesAbbr)],n._upperMonthsGen=s=[t(c.names),t(c.namesAbbr)]),u=i(u),o=r(f?e[1]:e[0],u),o<0&&(o=r(f?s[1]:s[0],u)),o},c=function(n,t){var f=n._parseRegExp,o,y,e,p,i,b,d;if(f){if(o=f[t],o)return o}else n._parseRegExp=f={};for(var s=w(n,t).replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,"\\\\$1"),r=["^"],c=[],h=0,a=0,v=k(),u;(u=v.exec(s))!==null;){if(y=s.slice(h,u.index),h=v.lastIndex,a+=l(y,r),a%2){r.push(u[0]);continue}e=u[0],p=e.length;switch(e){case"dddd":case"ddd":case"MMMM":case"MMM":case"gg":case"g":i="(\\D+)";break;case"tt":case"t":i="(\\D*)";break;case"yyyy":case"fff":case"ff":case"f":i="(\\d{"+p+"})";break;case"dd":case"d":case"MM":case"M":case"yy":case"y":case"HH":case"H":case"hh":case"h":case"mm":case"m":case"ss":case"s":i="(\\d\\d?)";break;case"zzz":i="([+-]?\\d\\d?:\\d{2})";break;case"zz":case"z":i="([+-]?\\d\\d?)";break;case"/":i="(\\/)";break;default:throw"Invalid date format pattern '"+e+"'.";}i&&r.push(i),c.push(u[0])}return l(s.slice(h),r),r.push("$"),b=r.join("").replace(/\s+/g,"\\s+"),d={regExp:b,groups:c},f[t]=d},n=function(n,t,i){return n<t||n>i},i=function(n){return n.split(" ").join(" ").toUpperCase()},t=function(n){for(var r=[],t=0,u=n.length;t<u;t++)r[t]=i(n[t]);return r},d=function(t,i,r){var d,wt,l,ft,et,g,nt,kt,a,dt,tt,at;t=u(t);var o=r.calendar,vt=c(o,i),yt=new RegExp(vt.regExp).exec(t);if(yt===null)return null;var pt=vt.groups,ot=null,w=null,p=null,b=null,it=null,y=0,k,st=0,ht=0,ct=0,rt=null,lt=!1;for(d=0,wt=pt.length;d<wt;d++)if(l=yt[d+1],l){var bt=pt[d],ut=bt.length,v=parseInt(l,10);switch(bt){case"dd":case"d":if(b=v,n(b,1,31))return null;break;case"MMM":case"MMMM":if(p=h(o,l,ut===3),n(p,0,11))return null;break;case"M":case"MM":if(p=v-1,n(p,0,11))return null;break;case"y":case"yy":case"yyyy":if(w=ut<4?e(o,v):v,n(w,0,9999))return null;break;case"h":case"hh":if(y=v,y===12&&(y=0),n(y,0,11))return null;break;case"H":case"HH":if(y=v,n(y,0,23))return null;break;case"m":case"mm":if(st=v,n(st,0,59))return null;break;case"s":case"ss":if(ht=v,n(ht,0,59))return null;break;case"tt":case"t":if(lt=o.PM&&(l===o.PM[0]||l===o.PM[1]||l===o.PM[2]),!lt&&(!o.AM||l!==o.AM[0]&&l!==o.AM[1]&&l!==o.AM[2]))return null;break;case"f":case"ff":case"fff":if(ct=v*Math.pow(10,3-ut),n(ct,0,999))return null;break;case"ddd":case"dddd":if(it=s(o,l,ut===3),n(it,0,6))return null;break;case"zzz":if((ft=l.split(/:/),ft.length!==2)||(k=parseInt(ft[0],10),n(k,-12,13))||(et=parseInt(ft[1],10),n(et,0,59)))return null;rt=k*60+(f(l,"-")?-et:et);break;case"z":case"zz":if(k=v,n(k,-12,13))return null;rt=k*60;break;case"g":case"gg":if(g=l,!g||!o.eras)return null;for(g=u(g.toLowerCase()),nt=0,kt=o.eras.length;nt<kt;nt++)if(g===o.eras[nt].name.toLowerCase()){ot=nt;break}if(ot===null)return null}}if(a=new Date,tt=o.convert,dt=tt?tt.fromGregorian(a)[0]:a.getFullYear(),w===null?w=dt:o.eras&&(w+=o.eras[ot||0].offset),p===null&&(p=0),b===null&&(b=1),tt){if(a=tt.toGregorian(w,p,b),a===null)return null}else if((a.setFullYear(w,p,b),a.getDate()!==b)||it!==null&&a.getDay()!==it)return null;return lt&&y<12&&(y+=12),a.setHours(y,st,ht,ct),rt!==null&&(at=a.getMinutes()-(rt+a.getTimezoneOffset()),a.setHours(a.getHours()+parseInt(at/60,10),at%60)),a}}(),s=function(n,t,i){var r=t["-"],u=t["+"],e;switch(i){case"n -":r=" "+r,u=" "+u;case"n-":h(n,r)?e=["-",n.substr(0,n.length-r.length)]:h(n,u)&&(e=["+",n.substr(0,n.length-u.length)]);break;case"- n":r+=" ",u+=" ";case"-n":f(n,r)?e=["-",n.substr(r.length)]:f(n,u)&&(e=["+",n.substr(u.length)]);break;case"(n)":f(n,"(")&&h(n,")")&&(e=["-",n.substr(1,n.length-2)])}return e||["",n]},i.prototype.findClosestCulture=function(n){return i.findClosestCulture.call(this,n)},i.prototype.format=function(n,t,r){return i.format.call(this,n,t,r)},i.prototype.localize=function(n,t){return i.localize.call(this,n,t)},i.prototype.parseInt=function(n,t,r){return i.parseInt.call(this,n,t,r)},i.prototype.parseFloat=function(n,t,r){return i.parseFloat.call(this,n,t,r)},i.prototype.culture=function(n){return i.culture.call(this,n)},i.addCultureInfo=function(n,t,i){var r={},u=!1;typeof n!="string"?(i=n,n=this.culture().name,r=this.cultures[n]):typeof t!="string"?(i=t,u=this.cultures[n]==null,r=this.cultures[n]||this.cultures["default"]):(u=!0,r=this.cultures[t]),this.cultures[n]=v(!0,{},r,i),u&&(this.cultures[n].calendar=this.cultures[n].calendars.standard)},i.findClosestCulture=function(n){var r,f,h,l,y,a;if(!n)return this.findClosestCulture(this.cultureSelector)||this.cultures["default"];if(typeof n=="string"&&(n=n.split(",")),c(n)){for(var i,o=this.cultures,v=n,s=v.length,e=[],t=0;t<s;t++)n=u(v[t]),h=n.split(";"),i=u(h[0]),h.length===1?f=1:(n=u(h[1]),n.indexOf("q=")===0?(n=n.substr(2),f=parseFloat(n),f=isNaN(f)?0:f):f=1),e.push({lang:i,pri:f});for(e.sort(function(n,t){return n.pri<t.pri?1:n.pri>t.pri?-1:0}),t=0;t<s;t++)if(i=e[t].lang,r=o[i],r)return r;for(t=0;t<s;t++){i=e[t].lang;do{if(l=i.lastIndexOf("-"),l===-1)break;if(i=i.substr(0,l),r=o[i],r)return r}while(1)}for(t=0;t<s;t++){i=e[t].lang;for(y in o)if(a=o[y],a.language===i)return a}}else if(typeof n=="object")return n;return r||null},i.format=function(n,t,i){var r=this.findClosestCulture(i);return n instanceof Date?n=b(n,t,r):typeof n=="number"&&(n=ut(n,t,r)),n},i.localize=function(n,t){return this.findClosestCulture(t).messages[n]||this.cultures["default"].messages[n]},i.parseDate=function(n,t,i){var r,o,f,u,s,e;if(i=this.findClosestCulture(i),t){if(typeof t=="string"&&(t=[t]),t.length)for(u=0,s=t.length;u<s;u++)if(e=t[u],e&&(r=d(n,e,i),r))break}else{f=i.calendar.patterns;for(o in f)if(r=d(n,f[o],i),r)break}return r||null},i.parseInt=function(n,t,r){return p(i.parseFloat(n,t,r))},i.parseFloat=function(n,t,i){var y,c,l,h,p,k,w,b,d,a,it;typeof t!="number"&&(i=t,t=10);var f=this.findClosestCulture(i),v=NaN,r=f.numberFormat;if(n.indexOf(f.numberFormat.currency.symbol)>-1&&(n=n.replace(f.numberFormat.currency.symbol,""),n=n.replace(f.numberFormat.currency["."],f.numberFormat["."])),n.indexOf(f.numberFormat.percent.symbol)>-1&&(n=n.replace(f.numberFormat.percent.symbol,"")),n=n.replace(/ /g,""),nt.test(n))v=parseFloat(n);else if(!t&&g.test(n))v=parseInt(n,16);else{var u=s(n,r,r.pattern[0]),e=u[0],o=u[1];e===""&&r.pattern[0]!=="(n)"&&(u=s(n,r,"(n)"),e=u[0],o=u[1]),e===""&&r.pattern[0]!=="-n"&&(u=s(n,r,"-n"),e=u[0],o=u[1]),e=e||"+",l=o.indexOf("e"),l<0&&(l=o.indexOf("E")),l<0?(c=o,y=null):(c=o.substr(0,l),y=o.substr(l+1)),k=r["."],w=c.indexOf(k),w<0?(h=c,p=null):(h=c.substr(0,w),p=c.substr(w+k.length)),b=r[","],h=h.split(b).join(""),d=b.replace(/\u00A0/g," "),b!==d&&(h=h.split(d).join("")),a=e+h,p!==null&&(a+="."+p),y!==null&&(it=s(y,r,"-n"),a+="e"+(it[0]||"+")+it[1]),tt.test(a)&&(v=parseFloat(a))}return v},i.culture=function(n){return typeof n!="undefined"&&(this.cultureSelector=n),this.findClosestCulture(n)||this.cultures["default"]}}(this)