overleaf-registration/static/scripts/scripts.js
Marco Aceti fc3be95e0b
New registration page (#1)
* Registration page

* Fix registration pages and serve static files

Co-authored-by: Giuseppe Del Campo <52317197+Giuseppetm@users.noreply.github.com>
2022-02-22 10:56:59 +01:00

5 lines
No EOL
1 MiB
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*! For license information please see libraries-4b4117abb7ef428488ce.js.LICENSE.txt */
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],[,,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"f",(function(){return s})),n.d(t,"c",(function(){return u})),n.d(t,"e",(function(){return c}));var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function c(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(u(arguments[t]));return e}},function(e,t,n){var r=n(55),i=n(61).f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/;r&&!("name"in o)&&i(o,"name",{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(216).charAt,i=n(82),o=n(217),a=i.set,s=i.getterFor("String Iterator");o(String,"String",(function(e){a(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=s(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})}))},function(e,t,n){var r=n(221),i=n(64),o=n(469);r||i(Object.prototype,"toString",o,{unsafe:!0})},function(e,t,n){var r=n(28),i=n(316);r({target:"Array",stat:!0,forced:!n(222)((function(e){Array.from(e)}))},{from:i})},function(e,t,n){(function(e,r){var i;(function(){var o="Expected a function",a="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u="[object Arguments]",c="[object Array]",l="[object Boolean]",f="[object Date]",d="[object Error]",p="[object Function]",h="[object GeneratorFunction]",g="[object Map]",m="[object Number]",v="[object Object]",y="[object RegExp]",b="[object Set]",_="[object String]",w="[object Symbol]",$="[object WeakMap]",x="[object ArrayBuffer]",q="[object DataView]",S="[object Float32Array]",E="[object Float64Array]",k="[object Int8Array]",C="[object Int16Array]",O="[object Int32Array]",T="[object Uint8Array]",D="[object Uint16Array]",A="[object Uint32Array]",I=/\b__p \+= '';/g,P=/\b(__p \+=) '' \+/g,M=/(__e\(.*?\)|\b__t\)) \+\n'';/g,j=/&(?:amp|lt|gt|quot|#39);/g,R=/[&<>"']/g,F=RegExp(j.source),N=RegExp(R.source),L=/<%-([\s\S]+?)%>/g,U=/<%([\s\S]+?)%>/g,B=/<%=([\s\S]+?)%>/g,H=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,V=/^\w*$/,z=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,W=/[\\^$.*+?()[\]{}|]/g,Y=RegExp(W.source),G=/^\s+|\s+$/g,X=/^\s+/,K=/\s+$/,J=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Z=/\{\n\/\* \[wrapped with (.+)\] \*/,Q=/,? & /,ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,ie=/^[-+]0x[0-9a-f]+$/i,oe=/^0b[01]+$/i,ae=/^\[object .+?Constructor\]$/,se=/^0o[0-7]+$/i,ue=/^(?:0|[1-9]\d*)$/,ce=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,le=/($^)/,fe=/['\n\r\u2028\u2029\\]/g,de="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",pe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",he="[\\ud800-\\udfff]",ge="["+pe+"]",me="["+de+"]",ve="\\d+",ye="[\\u2700-\\u27bf]",be="[a-z\\xdf-\\xf6\\xf8-\\xff]",_e="[^\\ud800-\\udfff"+pe+ve+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",we="\\ud83c[\\udffb-\\udfff]",$e="[^\\ud800-\\udfff]",xe="(?:\\ud83c[\\udde6-\\uddff]){2}",qe="[\\ud800-\\udbff][\\udc00-\\udfff]",Se="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Ee="(?:"+be+"|"+_e+")",ke="(?:"+Se+"|"+_e+")",Ce="(?:"+me+"|"+we+")"+"?",Oe="[\\ufe0e\\ufe0f]?"+Ce+("(?:\\u200d(?:"+[$e,xe,qe].join("|")+")[\\ufe0e\\ufe0f]?"+Ce+")*"),Te="(?:"+[ye,xe,qe].join("|")+")"+Oe,De="(?:"+[$e+me+"?",me,xe,qe,he].join("|")+")",Ae=RegExp("[']","g"),Ie=RegExp(me,"g"),Pe=RegExp(we+"(?="+we+")|"+De+Oe,"g"),Me=RegExp([Se+"?"+be+"+(?:['](?:d|ll|m|re|s|t|ve))?(?="+[ge,Se,"$"].join("|")+")",ke+"+(?:['](?:D|LL|M|RE|S|T|VE))?(?="+[ge,Se+Ee,"$"].join("|")+")",Se+"?"+Ee+"+(?:['](?:d|ll|m|re|s|t|ve))?",Se+"+(?:['](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ve,Te].join("|"),"g"),je=RegExp("[\\u200d\\ud800-\\udfff"+de+"\\ufe0e\\ufe0f]"),Re=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Fe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ne=-1,Le={};Le[S]=Le[E]=Le[k]=Le[C]=Le[O]=Le[T]=Le["[object Uint8ClampedArray]"]=Le[D]=Le[A]=!0,Le[u]=Le[c]=Le[x]=Le[l]=Le[q]=Le[f]=Le[d]=Le[p]=Le[g]=Le[m]=Le[v]=Le[y]=Le[b]=Le[_]=Le[$]=!1;var Ue={};Ue[u]=Ue[c]=Ue[x]=Ue[q]=Ue[l]=Ue[f]=Ue[S]=Ue[E]=Ue[k]=Ue[C]=Ue[O]=Ue[g]=Ue[m]=Ue[v]=Ue[y]=Ue[b]=Ue[_]=Ue[w]=Ue[T]=Ue["[object Uint8ClampedArray]"]=Ue[D]=Ue[A]=!0,Ue[d]=Ue[p]=Ue[$]=!1;var Be={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},He=parseFloat,Ve=parseInt,ze="object"==typeof e&&e&&e.Object===Object&&e,We="object"==typeof self&&self&&self.Object===Object&&self,Ye=ze||We||Function("return this")(),Ge=t&&!t.nodeType&&t,Xe=Ge&&"object"==typeof r&&r&&!r.nodeType&&r,Ke=Xe&&Xe.exports===Ge,Je=Ke&&ze.process,Ze=function(){try{var e=Xe&&Xe.require&&Xe.require("util").types;return e||Je&&Je.binding&&Je.binding("util")}catch(e){}}(),Qe=Ze&&Ze.isArrayBuffer,et=Ze&&Ze.isDate,tt=Ze&&Ze.isMap,nt=Ze&&Ze.isRegExp,rt=Ze&&Ze.isSet,it=Ze&&Ze.isTypedArray;function ot(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function at(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function st(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function ut(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function lt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function ft(e,t){return!!(null==e?0:e.length)&&wt(e,t,0)>-1}function dt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function pt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function ht(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function gt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function mt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function vt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var yt=St("length");function bt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function _t(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function wt(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):_t(e,xt,n)}function $t(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function xt(e){return e!=e}function qt(e,t){var n=null==e?0:e.length;return n?Ct(e,t)/n:NaN}function St(e){return function(t){return null==t?void 0:t[e]}}function Et(e){return function(t){return null==e?void 0:e[t]}}function kt(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Ct(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}function Ot(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Tt(e){return function(t){return e(t)}}function Dt(e,t){return pt(t,(function(t){return e[t]}))}function At(e,t){return e.has(t)}function It(e,t){for(var n=-1,r=e.length;++n<r&&wt(t,e[n],0)>-1;);return n}function Pt(e,t){for(var n=e.length;n--&&wt(t,e[n],0)>-1;);return n}function Mt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var jt=Et({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Rt=Et({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Ft(e){return"\\"+Be[e]}function Nt(e){return je.test(e)}function Lt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Ut(e,t){return function(n){return e(t(n))}}function Bt(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,o[i++]=n)}return o}function Ht(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Vt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function zt(e){return Nt(e)?function(e){var t=Pe.lastIndex=0;for(;Pe.test(e);)++t;return t}(e):yt(e)}function Wt(e){return Nt(e)?function(e){return e.match(Pe)||[]}(e):function(e){return e.split("")}(e)}var Yt=Et({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Gt=function e(t){var n,r=(t=null==t?Ye:Gt.defaults(Ye.Object(),t,Gt.pick(Ye,Fe))).Array,i=t.Date,de=t.Error,pe=t.Function,he=t.Math,ge=t.Object,me=t.RegExp,ve=t.String,ye=t.TypeError,be=r.prototype,_e=pe.prototype,we=ge.prototype,$e=t["__core-js_shared__"],xe=_e.toString,qe=we.hasOwnProperty,Se=0,Ee=(n=/[^.]+$/.exec($e&&$e.keys&&$e.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",ke=we.toString,Ce=xe.call(ge),Oe=Ye._,Te=me("^"+xe.call(qe).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),De=Ke?t.Buffer:void 0,Pe=t.Symbol,je=t.Uint8Array,Be=De?De.allocUnsafe:void 0,ze=Ut(ge.getPrototypeOf,ge),We=ge.create,Ge=we.propertyIsEnumerable,Xe=be.splice,Je=Pe?Pe.isConcatSpreadable:void 0,Ze=Pe?Pe.iterator:void 0,yt=Pe?Pe.toStringTag:void 0,Et=function(){try{var e=Qi(ge,"defineProperty");return e({},"",{}),e}catch(e){}}(),Xt=t.clearTimeout!==Ye.clearTimeout&&t.clearTimeout,Kt=i&&i.now!==Ye.Date.now&&i.now,Jt=t.setTimeout!==Ye.setTimeout&&t.setTimeout,Zt=he.ceil,Qt=he.floor,en=ge.getOwnPropertySymbols,tn=De?De.isBuffer:void 0,nn=t.isFinite,rn=be.join,on=Ut(ge.keys,ge),an=he.max,sn=he.min,un=i.now,cn=t.parseInt,ln=he.random,fn=be.reverse,dn=Qi(t,"DataView"),pn=Qi(t,"Map"),hn=Qi(t,"Promise"),gn=Qi(t,"Set"),mn=Qi(t,"WeakMap"),vn=Qi(ge,"create"),yn=mn&&new mn,bn={},_n=ko(dn),wn=ko(pn),$n=ko(hn),xn=ko(gn),qn=ko(mn),Sn=Pe?Pe.prototype:void 0,En=Sn?Sn.valueOf:void 0,kn=Sn?Sn.toString:void 0;function Cn(e){if(Ha(e)&&!Ia(e)&&!(e instanceof An)){if(e instanceof Dn)return e;if(qe.call(e,"__wrapped__"))return Co(e)}return new Dn(e)}var On=function(){function e(){}return function(t){if(!Ba(t))return{};if(We)return We(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Tn(){}function Dn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function An(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function In(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Pn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Mn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function jn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Mn;++t<n;)this.add(e[t])}function Rn(e){var t=this.__data__=new Pn(e);this.size=t.size}function Fn(e,t){var n=Ia(e),r=!n&&Aa(e),i=!n&&!r&&Ra(e),o=!n&&!r&&!i&&Ja(e),a=n||r||i||o,s=a?Ot(e.length,ve):[],u=s.length;for(var c in e)!t&&!qe.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ao(c,u))||s.push(c);return s}function Nn(e){var t=e.length;return t?e[jr(0,t-1)]:void 0}function Ln(e,t){return qo(vi(e),Xn(t,0,e.length))}function Un(e){return qo(vi(e))}function Bn(e,t,n){(void 0!==n&&!Oa(e[t],n)||void 0===n&&!(t in e))&&Yn(e,t,n)}function Hn(e,t,n){var r=e[t];qe.call(e,t)&&Oa(r,n)&&(void 0!==n||t in e)||Yn(e,t,n)}function Vn(e,t){for(var n=e.length;n--;)if(Oa(e[n][0],t))return n;return-1}function zn(e,t,n,r){return er(e,(function(e,i,o){t(r,e,n(e),o)})),r}function Wn(e,t){return e&&yi(t,bs(t),e)}function Yn(e,t,n){"__proto__"==t&&Et?Et(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Gn(e,t){for(var n=-1,i=t.length,o=r(i),a=null==e;++n<i;)o[n]=a?void 0:hs(e,t[n]);return o}function Xn(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function Kn(e,t,n,r,i,o){var a,s=1&t,c=2&t,d=4&t;if(n&&(a=i?n(e,r,i,o):n(e)),void 0!==a)return a;if(!Ba(e))return e;var $=Ia(e);if($){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&qe.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return vi(e,a)}else{var I=no(e),P=I==p||I==h;if(Ra(e))return fi(e,s);if(I==v||I==u||P&&!i){if(a=c||P?{}:io(e),!s)return c?function(e,t){return yi(e,to(e),t)}(e,function(e,t){return e&&yi(t,_s(t),e)}(a,e)):function(e,t){return yi(e,eo(e),t)}(e,Wn(a,e))}else{if(!Ue[I])return i?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case x:return di(e);case l:case f:return new r(+e);case q:return function(e,t){var n=t?di(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case S:case E:case k:case C:case O:case T:case"[object Uint8ClampedArray]":case D:case A:return pi(e,n);case g:return new r;case m:case _:return new r(e);case y:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case b:return new r;case w:return i=e,En?ge(En.call(i)):{}}var i}(e,I,s)}}o||(o=new Rn);var M=o.get(e);if(M)return M;o.set(e,a),Ga(e)?e.forEach((function(r){a.add(Kn(r,t,n,r,e,o))})):Va(e)&&e.forEach((function(r,i){a.set(i,Kn(r,t,n,i,e,o))}));var j=$?void 0:(d?c?Wi:zi:c?_s:bs)(e);return st(j||e,(function(r,i){j&&(r=e[i=r]),Hn(a,i,Kn(r,t,n,i,e,o))})),a}function Jn(e,t,n){var r=n.length;if(null==e)return!r;for(e=ge(e);r--;){var i=n[r],o=t[i],a=e[i];if(void 0===a&&!(i in e)||!o(a))return!1}return!0}function Zn(e,t,n){if("function"!=typeof e)throw new ye(o);return _o((function(){e.apply(void 0,n)}),t)}function Qn(e,t,n,r){var i=-1,o=ft,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=pt(t,Tt(n))),r?(o=dt,a=!1):t.length>=200&&(o=At,a=!1,t=new jn(t));e:for(;++i<s;){var l=e[i],f=null==n?l:n(l);if(l=r||0!==l?l:0,a&&f==f){for(var d=c;d--;)if(t[d]===f)continue e;u.push(l)}else o(t,f,r)||u.push(l)}return u}Cn.templateSettings={escape:L,evaluate:U,interpolate:B,variable:"",imports:{_:Cn}},Cn.prototype=Tn.prototype,Cn.prototype.constructor=Cn,Dn.prototype=On(Tn.prototype),Dn.prototype.constructor=Dn,An.prototype=On(Tn.prototype),An.prototype.constructor=An,In.prototype.clear=function(){this.__data__=vn?vn(null):{},this.size=0},In.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},In.prototype.get=function(e){var t=this.__data__;if(vn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return qe.call(t,e)?t[e]:void 0},In.prototype.has=function(e){var t=this.__data__;return vn?void 0!==t[e]:qe.call(t,e)},In.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=vn&&void 0===t?"__lodash_hash_undefined__":t,this},Pn.prototype.clear=function(){this.__data__=[],this.size=0},Pn.prototype.delete=function(e){var t=this.__data__,n=Vn(t,e);return!(n<0)&&(n==t.length-1?t.pop():Xe.call(t,n,1),--this.size,!0)},Pn.prototype.get=function(e){var t=this.__data__,n=Vn(t,e);return n<0?void 0:t[n][1]},Pn.prototype.has=function(e){return Vn(this.__data__,e)>-1},Pn.prototype.set=function(e,t){var n=this.__data__,r=Vn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Mn.prototype.clear=function(){this.size=0,this.__data__={hash:new In,map:new(pn||Pn),string:new In}},Mn.prototype.delete=function(e){var t=Ji(this,e).delete(e);return this.size-=t?1:0,t},Mn.prototype.get=function(e){return Ji(this,e).get(e)},Mn.prototype.has=function(e){return Ji(this,e).has(e)},Mn.prototype.set=function(e,t){var n=Ji(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},jn.prototype.add=jn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},jn.prototype.has=function(e){return this.__data__.has(e)},Rn.prototype.clear=function(){this.__data__=new Pn,this.size=0},Rn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Rn.prototype.get=function(e){return this.__data__.get(e)},Rn.prototype.has=function(e){return this.__data__.has(e)},Rn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Pn){var r=n.__data__;if(!pn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Mn(r)}return n.set(e,t),this.size=n.size,this};var er=wi(ur),tr=wi(cr,!0);function nr(e,t){var n=!0;return er(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function rr(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(void 0===s?a==a&&!Ka(a):n(a,s)))var s=a,u=o}return u}function ir(e,t){var n=[];return er(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function or(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=oo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?or(s,t-1,n,r,i):ht(i,s):r||(i[i.length]=s)}return i}var ar=$i(),sr=$i(!0);function ur(e,t){return e&&ar(e,t,bs)}function cr(e,t){return e&&sr(e,t,bs)}function lr(e,t){return lt(t,(function(t){return Na(e[t])}))}function fr(e,t){for(var n=0,r=(t=si(t,e)).length;null!=e&&n<r;)e=e[Eo(t[n++])];return n&&n==r?e:void 0}function dr(e,t,n){var r=t(e);return Ia(e)?r:ht(r,n(e))}function pr(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":yt&&yt in ge(e)?function(e){var t=qe.call(e,yt),n=e[yt];try{e[yt]=void 0;var r=!0}catch(e){}var i=ke.call(e);r&&(t?e[yt]=n:delete e[yt]);return i}(e):function(e){return ke.call(e)}(e)}function hr(e,t){return e>t}function gr(e,t){return null!=e&&qe.call(e,t)}function mr(e,t){return null!=e&&t in ge(e)}function vr(e,t,n){for(var i=n?dt:ft,o=e[0].length,a=e.length,s=a,u=r(a),c=1/0,l=[];s--;){var f=e[s];s&&t&&(f=pt(f,Tt(t))),c=sn(f.length,c),u[s]=!n&&(t||o>=120&&f.length>=120)?new jn(s&&f):void 0}f=e[0];var d=-1,p=u[0];e:for(;++d<o&&l.length<c;){var h=f[d],g=t?t(h):h;if(h=n||0!==h?h:0,!(p?At(p,g):i(l,g,n))){for(s=a;--s;){var m=u[s];if(!(m?At(m,g):i(e[s],g,n)))continue e}p&&p.push(g),l.push(h)}}return l}function yr(e,t,n){var r=null==(e=mo(e,t=si(t,e)))?e:e[Eo(No(t))];return null==r?void 0:ot(r,e,n)}function br(e){return Ha(e)&&pr(e)==u}function _r(e,t,n,r,i){return e===t||(null==e||null==t||!Ha(e)&&!Ha(t)?e!=e&&t!=t:function(e,t,n,r,i,o){var a=Ia(e),s=Ia(t),p=a?c:no(e),h=s?c:no(t),$=(p=p==u?v:p)==v,S=(h=h==u?v:h)==v,E=p==h;if(E&&Ra(e)){if(!Ra(t))return!1;a=!0,$=!1}if(E&&!$)return o||(o=new Rn),a||Ja(e)?Hi(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case q:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x:return!(e.byteLength!=t.byteLength||!o(new je(e),new je(t)));case l:case f:case m:return Oa(+e,+t);case d:return e.name==t.name&&e.message==t.message;case y:case _:return e==t+"";case g:var s=Lt;case b:var u=1&r;if(s||(s=Ht),e.size!=t.size&&!u)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var p=Hi(s(e),s(t),r,i,o,a);return a.delete(e),p;case w:if(En)return En.call(e)==En.call(t)}return!1}(e,t,p,n,r,i,o);if(!(1&n)){var k=$&&qe.call(e,"__wrapped__"),C=S&&qe.call(t,"__wrapped__");if(k||C){var O=k?e.value():e,T=C?t.value():t;return o||(o=new Rn),i(O,T,n,r,o)}}if(!E)return!1;return o||(o=new Rn),function(e,t,n,r,i,o){var a=1&n,s=zi(e),u=s.length,c=zi(t).length;if(u!=c&&!a)return!1;var l=u;for(;l--;){var f=s[l];if(!(a?f in t:qe.call(t,f)))return!1}var d=o.get(e),p=o.get(t);if(d&&p)return d==t&&p==e;var h=!0;o.set(e,t),o.set(t,e);var g=a;for(;++l<u;){f=s[l];var m=e[f],v=t[f];if(r)var y=a?r(v,m,f,t,e,o):r(m,v,f,e,t,o);if(!(void 0===y?m===v||i(m,v,n,r,o):y)){h=!1;break}g||(g="constructor"==f)}if(h&&!g){var b=e.constructor,_=t.constructor;b==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _||(h=!1)}return o.delete(e),o.delete(t),h}(e,t,n,r,i,o)}(e,t,n,r,_r,i))}function wr(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=ge(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var u=(s=n[i])[0],c=e[u],l=s[1];if(a&&s[2]){if(void 0===c&&!(u in e))return!1}else{var f=new Rn;if(r)var d=r(c,l,u,e,t,f);if(!(void 0===d?_r(l,c,3,r,f):d))return!1}}return!0}function $r(e){return!(!Ba(e)||(t=e,Ee&&Ee in t))&&(Na(e)?Te:ae).test(ko(e));var t}function xr(e){return"function"==typeof e?e:null==e?zs:"object"==typeof e?Ia(e)?Or(e[0],e[1]):Cr(e):eu(e)}function qr(e){if(!fo(e))return on(e);var t=[];for(var n in ge(e))qe.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Sr(e){if(!Ba(e))return function(e){var t=[];if(null!=e)for(var n in ge(e))t.push(n);return t}(e);var t=fo(e),n=[];for(var r in e)("constructor"!=r||!t&&qe.call(e,r))&&n.push(r);return n}function Er(e,t){return e<t}function kr(e,t){var n=-1,i=Ma(e)?r(e.length):[];return er(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function Cr(e){var t=Zi(e);return 1==t.length&&t[0][2]?ho(t[0][0],t[0][1]):function(n){return n===e||wr(n,e,t)}}function Or(e,t){return uo(e)&&po(t)?ho(Eo(e),t):function(n){var r=hs(n,e);return void 0===r&&r===t?gs(n,e):_r(t,r,3)}}function Tr(e,t,n,r,i){e!==t&&ar(t,(function(o,a){if(i||(i=new Rn),Ba(o))!function(e,t,n,r,i,o,a){var s=yo(e,n),u=yo(t,n),c=a.get(u);if(c)return void Bn(e,n,c);var l=o?o(s,u,n+"",e,t,a):void 0,f=void 0===l;if(f){var d=Ia(u),p=!d&&Ra(u),h=!d&&!p&&Ja(u);l=u,d||p||h?Ia(s)?l=s:ja(s)?l=vi(s):p?(f=!1,l=fi(u,!0)):h?(f=!1,l=pi(u,!0)):l=[]:Wa(u)||Aa(u)?(l=s,Aa(s)?l=os(s):Ba(s)&&!Na(s)||(l=io(u))):f=!1}f&&(a.set(u,l),i(l,u,r,o,a),a.delete(u));Bn(e,n,l)}(e,t,a,n,Tr,r,i);else{var s=r?r(yo(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),Bn(e,a,s)}}),_s)}function Dr(e,t){var n=e.length;if(n)return ao(t+=t<0?n:0,n)?e[t]:void 0}function Ar(e,t,n){t=t.length?pt(t,(function(e){return Ia(e)?function(t){return fr(t,1===e.length?e[0]:e)}:e})):[zs];var r=-1;return t=pt(t,Tt(Ki())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(kr(e,(function(e,n,i){return{criteria:pt(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;for(;++r<a;){var u=hi(i[r],o[r]);if(u){if(r>=s)return u;var c=n[r];return u*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)}))}function Ir(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=fr(e,a);n(s,a)&&Ur(o,si(a,e),s)}return o}function Pr(e,t,n,r){var i=r?$t:wt,o=-1,a=t.length,s=e;for(e===t&&(t=vi(t)),n&&(s=pt(e,Tt(n)));++o<a;)for(var u=0,c=t[o],l=n?n(c):c;(u=i(s,l,u,r))>-1;)s!==e&&Xe.call(s,u,1),Xe.call(e,u,1);return e}function Mr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;ao(i)?Xe.call(e,i,1):Qr(e,i)}}return e}function jr(e,t){return e+Qt(ln()*(t-e+1))}function Rr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=Qt(t/2))&&(e+=e)}while(t);return n}function Fr(e,t){return wo(go(e,t,zs),e+"")}function Nr(e){return Nn(Cs(e))}function Lr(e,t){var n=Cs(e);return qo(n,Xn(t,0,n.length))}function Ur(e,t,n,r){if(!Ba(e))return e;for(var i=-1,o=(t=si(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var u=Eo(t[i]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(i!=a){var l=s[u];void 0===(c=r?r(l,u,s):void 0)&&(c=Ba(l)?l:ao(t[i+1])?[]:{})}Hn(s,u,c),s=s[u]}return e}var Br=yn?function(e,t){return yn.set(e,t),e}:zs,Hr=Et?function(e,t){return Et(e,"toString",{configurable:!0,enumerable:!1,value:Bs(t),writable:!0})}:zs;function Vr(e){return qo(Cs(e))}function zr(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i<o;)a[i]=e[i+t];return a}function Wr(e,t){var n;return er(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function Yr(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!Ka(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return Gr(e,t,zs,n)}function Gr(e,t,n,r){var i=0,o=null==e?0:e.length;if(0===o)return 0;for(var a=(t=n(t))!=t,s=null===t,u=Ka(t),c=void 0===t;i<o;){var l=Qt((i+o)/2),f=n(e[l]),d=void 0!==f,p=null===f,h=f==f,g=Ka(f);if(a)var m=r||h;else m=c?h&&(r||d):s?h&&d&&(r||!p):u?h&&d&&!p&&(r||!g):!p&&!g&&(r?f<=t:f<t);m?i=l+1:o=l}return sn(o,4294967294)}function Xr(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Oa(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function Kr(e){return"number"==typeof e?e:Ka(e)?NaN:+e}function Jr(e){if("string"==typeof e)return e;if(Ia(e))return pt(e,Jr)+"";if(Ka(e))return kn?kn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Zr(e,t,n){var r=-1,i=ft,o=e.length,a=!0,s=[],u=s;if(n)a=!1,i=dt;else if(o>=200){var c=t?null:Ri(e);if(c)return Ht(c);a=!1,i=At,u=new jn}else u=t?[]:s;e:for(;++r<o;){var l=e[r],f=t?t(l):l;if(l=n||0!==l?l:0,a&&f==f){for(var d=u.length;d--;)if(u[d]===f)continue e;t&&u.push(f),s.push(l)}else i(u,f,n)||(u!==s&&u.push(f),s.push(l))}return s}function Qr(e,t){return null==(e=mo(e,t=si(t,e)))||delete e[Eo(No(t))]}function ei(e,t,n,r){return Ur(e,t,n(fr(e,t)),r)}function ti(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?zr(e,r?0:o,r?o+1:i):zr(e,r?o+1:0,r?i:o)}function ni(e,t){var n=e;return n instanceof An&&(n=n.value()),gt(t,(function(e,t){return t.func.apply(t.thisArg,ht([e],t.args))}),n)}function ri(e,t,n){var i=e.length;if(i<2)return i?Zr(e[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=e[o],u=-1;++u<i;)u!=o&&(a[o]=Qn(a[o]||s,e[u],t,n));return Zr(or(a,1),t,n)}function ii(e,t,n){for(var r=-1,i=e.length,o=t.length,a={};++r<i;){var s=r<o?t[r]:void 0;n(a,e[r],s)}return a}function oi(e){return ja(e)?e:[]}function ai(e){return"function"==typeof e?e:zs}function si(e,t){return Ia(e)?e:uo(e,t)?[e]:So(as(e))}var ui=Fr;function ci(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:zr(e,t,n)}var li=Xt||function(e){return Ye.clearTimeout(e)};function fi(e,t){if(t)return e.slice();var n=e.length,r=Be?Be(n):new e.constructor(n);return e.copy(r),r}function di(e){var t=new e.constructor(e.byteLength);return new je(t).set(new je(e)),t}function pi(e,t){var n=t?di(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function hi(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=Ka(e),a=void 0!==t,s=null===t,u=t==t,c=Ka(t);if(!s&&!c&&!o&&e>t||o&&a&&u&&!s&&!c||r&&a&&u||!n&&u||!i)return 1;if(!r&&!o&&!c&&e<t||c&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!u)return-1}return 0}function gi(e,t,n,i){for(var o=-1,a=e.length,s=n.length,u=-1,c=t.length,l=an(a-s,0),f=r(c+l),d=!i;++u<c;)f[u]=t[u];for(;++o<s;)(d||o<a)&&(f[n[o]]=e[o]);for(;l--;)f[u++]=e[o++];return f}function mi(e,t,n,i){for(var o=-1,a=e.length,s=-1,u=n.length,c=-1,l=t.length,f=an(a-u,0),d=r(f+l),p=!i;++o<f;)d[o]=e[o];for(var h=o;++c<l;)d[h+c]=t[c];for(;++s<u;)(p||o<a)&&(d[h+n[s]]=e[o++]);return d}function vi(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function yi(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],u=r?r(n[s],e[s],s,n,e):void 0;void 0===u&&(u=e[s]),i?Yn(n,s,u):Hn(n,s,u)}return n}function bi(e,t){return function(n,r){var i=Ia(n)?at:zn,o=t?t():{};return i(n,e,Ki(r,2),o)}}function _i(e){return Fr((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&so(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=ge(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t}))}function wi(e,t){return function(n,r){if(null==n)return n;if(!Ma(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=ge(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function $i(e){return function(t,n,r){for(var i=-1,o=ge(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}function xi(e){return function(t){var n=Nt(t=as(t))?Wt(t):void 0,r=n?n[0]:t.charAt(0),i=n?ci(n,1).join(""):t.slice(1);return r[e]()+i}}function qi(e){return function(t){return gt(Ns(Ds(t).replace(Ae,"")),e,"")}}function Si(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=On(e.prototype),r=e.apply(n,t);return Ba(r)?r:n}}function Ei(e){return function(t,n,r){var i=ge(t);if(!Ma(t)){var o=Ki(n,3);t=bs(t),n=function(e){return o(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:void 0}}function ki(e){return Vi((function(t){var n=t.length,r=n,i=Dn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new ye(o);if(i&&!s&&"wrapper"==Gi(a))var s=new Dn([],!0)}for(r=s?r:n;++r<n;){var u=Gi(a=t[r]),c="wrapper"==u?Yi(a):void 0;s=c&&co(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?s[Gi(c[0])].apply(s,c[3]):1==a.length&&co(a)?s[u]():s.thru(a)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&Ia(r))return s.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function Ci(e,t,n,i,o,a,s,u,c,l){var f=128&t,d=1&t,p=2&t,h=24&t,g=512&t,m=p?void 0:Si(e);return function v(){for(var y=arguments.length,b=r(y),_=y;_--;)b[_]=arguments[_];if(h)var w=Xi(v),$=Mt(b,w);if(i&&(b=gi(b,i,o,h)),a&&(b=mi(b,a,s,h)),y-=$,h&&y<l){var x=Bt(b,w);return Mi(e,t,Ci,v.placeholder,n,b,x,u,c,l-y)}var q=d?n:this,S=p?q[e]:e;return y=b.length,u?b=vo(b,u):g&&y>1&&b.reverse(),f&&c<y&&(b.length=c),this&&this!==Ye&&this instanceof v&&(S=m||Si(S)),S.apply(q,b)}}function Oi(e,t){return function(n,r){return function(e,t,n,r){return ur(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Ti(e,t){return function(n,r){var i;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(i=n),void 0!==r){if(void 0===i)return r;"string"==typeof n||"string"==typeof r?(n=Jr(n),r=Jr(r)):(n=Kr(n),r=Kr(r)),i=e(n,r)}return i}}function Di(e){return Vi((function(t){return t=pt(t,Tt(Ki())),Fr((function(n){var r=this;return e(t,(function(e){return ot(e,r,n)}))}))}))}function Ai(e,t){var n=(t=void 0===t?" ":Jr(t)).length;if(n<2)return n?Rr(t,e):t;var r=Rr(t,Zt(e/zt(t)));return Nt(t)?ci(Wt(r),0,e).join(""):r.slice(0,e)}function Ii(e){return function(t,n,i){return i&&"number"!=typeof i&&so(t,n,i)&&(n=i=void 0),t=ts(t),void 0===n?(n=t,t=0):n=ts(n),function(e,t,n,i){for(var o=-1,a=an(Zt((t-e)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=e,e+=n;return s}(t,n,i=void 0===i?t<n?1:-1:ts(i),e)}}function Pi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=is(t),n=is(n)),e(t,n)}}function Mi(e,t,n,r,i,o,a,s,u,c){var l=8&t;t|=l?32:64,4&(t&=~(l?64:32))||(t&=-4);var f=[e,t,i,l?o:void 0,l?a:void 0,l?void 0:o,l?void 0:a,s,u,c],d=n.apply(void 0,f);return co(e)&&bo(d,f),d.placeholder=r,$o(d,e,t)}function ji(e){var t=he[e];return function(e,n){if(e=is(e),(n=null==n?0:sn(ns(n),292))&&nn(e)){var r=(as(e)+"e").split("e");return+((r=(as(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ri=gn&&1/Ht(new gn([,-0]))[1]==1/0?function(e){return new gn(e)}:Ks;function Fi(e){return function(t){var n=no(t);return n==g?Lt(t):n==b?Vt(t):function(e,t){return pt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ni(e,t,n,i,s,u,c,l){var f=2&t;if(!f&&"function"!=typeof e)throw new ye(o);var d=i?i.length:0;if(d||(t&=-97,i=s=void 0),c=void 0===c?c:an(ns(c),0),l=void 0===l?l:ns(l),d-=s?s.length:0,64&t){var p=i,h=s;i=s=void 0}var g=f?void 0:Yi(e),m=[e,t,n,i,s,p,h,u,c,l];if(g&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,s=128==r&&8==n||128==r&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!s)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var u=t[3];if(u){var c=e[3];e[3]=c?gi(c,u,t[4]):u,e[4]=c?Bt(e[3],a):t[4]}(u=t[5])&&(c=e[5],e[5]=c?mi(c,u,t[6]):u,e[6]=c?Bt(e[5],a):t[6]);(u=t[7])&&(e[7]=u);128&r&&(e[8]=null==e[8]?t[8]:sn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(m,g),e=m[0],t=m[1],n=m[2],i=m[3],s=m[4],!(l=m[9]=void 0===m[9]?f?0:e.length:an(m[9]-d,0))&&24&t&&(t&=-25),t&&1!=t)v=8==t||16==t?function(e,t,n){var i=Si(e);return function o(){for(var a=arguments.length,s=r(a),u=a,c=Xi(o);u--;)s[u]=arguments[u];var l=a<3&&s[0]!==c&&s[a-1]!==c?[]:Bt(s,c);if((a-=l.length)<n)return Mi(e,t,Ci,o.placeholder,void 0,s,l,void 0,void 0,n-a);var f=this&&this!==Ye&&this instanceof o?i:e;return ot(f,this,s)}}(e,t,l):32!=t&&33!=t||s.length?Ci.apply(void 0,m):function(e,t,n,i){var o=1&t,a=Si(e);return function t(){for(var s=-1,u=arguments.length,c=-1,l=i.length,f=r(l+u),d=this&&this!==Ye&&this instanceof t?a:e;++c<l;)f[c]=i[c];for(;u--;)f[c++]=arguments[++s];return ot(d,o?n:this,f)}}(e,t,n,i);else var v=function(e,t,n){var r=1&t,i=Si(e);return function t(){var o=this&&this!==Ye&&this instanceof t?i:e;return o.apply(r?n:this,arguments)}}(e,t,n);return $o((g?Br:bo)(v,m),e,t)}function Li(e,t,n,r){return void 0===e||Oa(e,we[n])&&!qe.call(r,n)?t:e}function Ui(e,t,n,r,i,o){return Ba(e)&&Ba(t)&&(o.set(t,e),Tr(e,t,void 0,Ui,o),o.delete(t)),e}function Bi(e){return Wa(e)?void 0:e}function Hi(e,t,n,r,i,o){var a=1&n,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var c=o.get(e),l=o.get(t);if(c&&l)return c==t&&l==e;var f=-1,d=!0,p=2&n?new jn:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var h=e[f],g=t[f];if(r)var m=a?r(g,h,f,t,e,o):r(h,g,f,e,t,o);if(void 0!==m){if(m)continue;d=!1;break}if(p){if(!vt(t,(function(e,t){if(!At(p,t)&&(h===e||i(h,e,n,r,o)))return p.push(t)}))){d=!1;break}}else if(h!==g&&!i(h,g,n,r,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function Vi(e){return wo(go(e,void 0,Po),e+"")}function zi(e){return dr(e,bs,eo)}function Wi(e){return dr(e,_s,to)}var Yi=yn?function(e){return yn.get(e)}:Ks;function Gi(e){for(var t=e.name+"",n=bn[t],r=qe.call(bn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Xi(e){return(qe.call(Cn,"placeholder")?Cn:e).placeholder}function Ki(){var e=Cn.iteratee||Ws;return e=e===Ws?xr:e,arguments.length?e(arguments[0],arguments[1]):e}function Ji(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Zi(e){for(var t=bs(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,po(i)]}return t}function Qi(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return $r(n)?n:void 0}var eo=en?function(e){return null==e?[]:(e=ge(e),lt(en(e),(function(t){return Ge.call(e,t)})))}:ru,to=en?function(e){for(var t=[];e;)ht(t,eo(e)),e=ze(e);return t}:ru,no=pr;function ro(e,t,n){for(var r=-1,i=(t=si(t,e)).length,o=!1;++r<i;){var a=Eo(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Ua(i)&&ao(a,i)&&(Ia(e)||Aa(e))}function io(e){return"function"!=typeof e.constructor||fo(e)?{}:On(ze(e))}function oo(e){return Ia(e)||Aa(e)||!!(Je&&e&&e[Je])}function ao(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ue.test(e))&&e>-1&&e%1==0&&e<t}function so(e,t,n){if(!Ba(n))return!1;var r=typeof t;return!!("number"==r?Ma(n)&&ao(t,n.length):"string"==r&&t in n)&&Oa(n[t],e)}function uo(e,t){if(Ia(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ka(e))||(V.test(e)||!H.test(e)||null!=t&&e in ge(t))}function co(e){var t=Gi(e),n=Cn[t];if("function"!=typeof n||!(t in An.prototype))return!1;if(e===n)return!0;var r=Yi(n);return!!r&&e===r[0]}(dn&&no(new dn(new ArrayBuffer(1)))!=q||pn&&no(new pn)!=g||hn&&"[object Promise]"!=no(hn.resolve())||gn&&no(new gn)!=b||mn&&no(new mn)!=$)&&(no=function(e){var t=pr(e),n=t==v?e.constructor:void 0,r=n?ko(n):"";if(r)switch(r){case _n:return q;case wn:return g;case $n:return"[object Promise]";case xn:return b;case qn:return $}return t});var lo=$e?Na:iu;function fo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||we)}function po(e){return e==e&&!Ba(e)}function ho(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in ge(n)))}}function go(e,t,n){return t=an(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=an(i.length-t,0),s=r(a);++o<a;)s[o]=i[t+o];o=-1;for(var u=r(t+1);++o<t;)u[o]=i[o];return u[t]=n(s),ot(e,this,u)}}function mo(e,t){return t.length<2?e:fr(e,zr(t,0,-1))}function vo(e,t){for(var n=e.length,r=sn(t.length,n),i=vi(e);r--;){var o=t[r];e[r]=ao(o,n)?i[o]:void 0}return e}function yo(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var bo=xo(Br),_o=Jt||function(e,t){return Ye.setTimeout(e,t)},wo=xo(Hr);function $o(e,t,n){var r=t+"";return wo(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(J,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return st(s,(function(n){var r="_."+n[0];t&n[1]&&!ft(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(Z);return t?t[1].split(Q):[]}(r),n)))}function xo(e){var t=0,n=0;return function(){var r=un(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function qo(e,t){var n=-1,r=e.length,i=r-1;for(t=void 0===t?r:t;++n<t;){var o=jr(n,i),a=e[o];e[o]=e[n],e[n]=a}return e.length=t,e}var So=function(e){var t=xa(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(z,(function(e,n,r,i){t.push(r?i.replace(te,"$1"):n||e)})),t}));function Eo(e){if("string"==typeof e||Ka(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ko(e){if(null!=e){try{return xe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Co(e){if(e instanceof An)return e.clone();var t=new Dn(e.__wrapped__,e.__chain__);return t.__actions__=vi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Oo=Fr((function(e,t){return ja(e)?Qn(e,or(t,1,ja,!0)):[]})),To=Fr((function(e,t){var n=No(t);return ja(n)&&(n=void 0),ja(e)?Qn(e,or(t,1,ja,!0),Ki(n,2)):[]})),Do=Fr((function(e,t){var n=No(t);return ja(n)&&(n=void 0),ja(e)?Qn(e,or(t,1,ja,!0),void 0,n):[]}));function Ao(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ns(n);return i<0&&(i=an(r+i,0)),_t(e,Ki(t,3),i)}function Io(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=ns(n),i=n<0?an(r+i,0):sn(i,r-1)),_t(e,Ki(t,3),i,!0)}function Po(e){return(null==e?0:e.length)?or(e,1):[]}function Mo(e){return e&&e.length?e[0]:void 0}var jo=Fr((function(e){var t=pt(e,oi);return t.length&&t[0]===e[0]?vr(t):[]})),Ro=Fr((function(e){var t=No(e),n=pt(e,oi);return t===No(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?vr(n,Ki(t,2)):[]})),Fo=Fr((function(e){var t=No(e),n=pt(e,oi);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?vr(n,void 0,t):[]}));function No(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var Lo=Fr(Uo);function Uo(e,t){return e&&e.length&&t&&t.length?Pr(e,t):e}var Bo=Vi((function(e,t){var n=null==e?0:e.length,r=Gn(e,t);return Mr(e,pt(t,(function(e){return ao(e,n)?+e:e})).sort(hi)),r}));function Ho(e){return null==e?e:fn.call(e)}var Vo=Fr((function(e){return Zr(or(e,1,ja,!0))})),zo=Fr((function(e){var t=No(e);return ja(t)&&(t=void 0),Zr(or(e,1,ja,!0),Ki(t,2))})),Wo=Fr((function(e){var t=No(e);return t="function"==typeof t?t:void 0,Zr(or(e,1,ja,!0),void 0,t)}));function Yo(e){if(!e||!e.length)return[];var t=0;return e=lt(e,(function(e){if(ja(e))return t=an(e.length,t),!0})),Ot(t,(function(t){return pt(e,St(t))}))}function Go(e,t){if(!e||!e.length)return[];var n=Yo(e);return null==t?n:pt(n,(function(e){return ot(t,void 0,e)}))}var Xo=Fr((function(e,t){return ja(e)?Qn(e,t):[]})),Ko=Fr((function(e){return ri(lt(e,ja))})),Jo=Fr((function(e){var t=No(e);return ja(t)&&(t=void 0),ri(lt(e,ja),Ki(t,2))})),Zo=Fr((function(e){var t=No(e);return t="function"==typeof t?t:void 0,ri(lt(e,ja),void 0,t)})),Qo=Fr(Yo);var ea=Fr((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Go(e,n)}));function ta(e){var t=Cn(e);return t.__chain__=!0,t}function na(e,t){return t(e)}var ra=Vi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Gn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof An&&ao(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:na,args:[i],thisArg:void 0}),new Dn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(i)}));var ia=bi((function(e,t,n){qe.call(e,n)?++e[n]:Yn(e,n,1)}));var oa=Ei(Ao),aa=Ei(Io);function sa(e,t){return(Ia(e)?st:er)(e,Ki(t,3))}function ua(e,t){return(Ia(e)?ut:tr)(e,Ki(t,3))}var ca=bi((function(e,t,n){qe.call(e,n)?e[n].push(t):Yn(e,n,[t])}));var la=Fr((function(e,t,n){var i=-1,o="function"==typeof t,a=Ma(e)?r(e.length):[];return er(e,(function(e){a[++i]=o?ot(t,e,n):yr(e,t,n)})),a})),fa=bi((function(e,t,n){Yn(e,n,t)}));function da(e,t){return(Ia(e)?pt:kr)(e,Ki(t,3))}var pa=bi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ha=Fr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&so(e,t[0],t[1])?t=[]:n>2&&so(t[0],t[1],t[2])&&(t=[t[0]]),Ar(e,or(t,1),[])})),ga=Kt||function(){return Ye.Date.now()};function ma(e,t,n){return t=n?void 0:t,Ni(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function va(e,t){var n;if("function"!=typeof t)throw new ye(o);return e=ns(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ya=Fr((function(e,t,n){var r=1;if(n.length){var i=Bt(n,Xi(ya));r|=32}return Ni(e,r,t,n,i)})),ba=Fr((function(e,t,n){var r=3;if(n.length){var i=Bt(n,Xi(ba));r|=32}return Ni(t,r,e,n,i)}));function _a(e,t,n){var r,i,a,s,u,c,l=0,f=!1,d=!1,p=!0;if("function"!=typeof e)throw new ye(o);function h(t){var n=r,o=i;return r=i=void 0,l=t,s=e.apply(o,n)}function g(e){return l=e,u=_o(v,t),f?h(e):s}function m(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-l>=a}function v(){var e=ga();if(m(e))return y(e);u=_o(v,function(e){var n=t-(e-c);return d?sn(n,a-(e-l)):n}(e))}function y(e){return u=void 0,p&&r?h(e):(r=i=void 0,s)}function b(){var e=ga(),n=m(e);if(r=arguments,i=this,c=e,n){if(void 0===u)return g(c);if(d)return li(u),u=_o(v,t),h(c)}return void 0===u&&(u=_o(v,t)),s}return t=is(t)||0,Ba(n)&&(f=!!n.leading,a=(d="maxWait"in n)?an(is(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),b.cancel=function(){void 0!==u&&li(u),l=0,r=c=i=u=void 0},b.flush=function(){return void 0===u?s:y(ga())},b}var wa=Fr((function(e,t){return Zn(e,1,t)})),$a=Fr((function(e,t,n){return Zn(e,is(t)||0,n)}));function xa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ye(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(xa.Cache||Mn),n}function qa(e){if("function"!=typeof e)throw new ye(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}xa.Cache=Mn;var Sa=ui((function(e,t){var n=(t=1==t.length&&Ia(t[0])?pt(t[0],Tt(Ki())):pt(or(t,1),Tt(Ki()))).length;return Fr((function(r){for(var i=-1,o=sn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return ot(e,this,r)}))})),Ea=Fr((function(e,t){return Ni(e,32,void 0,t,Bt(t,Xi(Ea)))})),ka=Fr((function(e,t){return Ni(e,64,void 0,t,Bt(t,Xi(ka)))})),Ca=Vi((function(e,t){return Ni(e,256,void 0,void 0,void 0,t)}));function Oa(e,t){return e===t||e!=e&&t!=t}var Ta=Pi(hr),Da=Pi((function(e,t){return e>=t})),Aa=br(function(){return arguments}())?br:function(e){return Ha(e)&&qe.call(e,"callee")&&!Ge.call(e,"callee")},Ia=r.isArray,Pa=Qe?Tt(Qe):function(e){return Ha(e)&&pr(e)==x};function Ma(e){return null!=e&&Ua(e.length)&&!Na(e)}function ja(e){return Ha(e)&&Ma(e)}var Ra=tn||iu,Fa=et?Tt(et):function(e){return Ha(e)&&pr(e)==f};function isError(e){if(!Ha(e))return!1;var t=pr(e);return t==d||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Wa(e)}function Na(e){if(!Ba(e))return!1;var t=pr(e);return t==p||t==h||"[object AsyncFunction]"==t||"[object Proxy]"==t}function La(e){return"number"==typeof e&&e==ns(e)}function Ua(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ba(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ha(e){return null!=e&&"object"==typeof e}var Va=tt?Tt(tt):function(e){return Ha(e)&&no(e)==g};function za(e){return"number"==typeof e||Ha(e)&&pr(e)==m}function Wa(e){if(!Ha(e)||pr(e)!=v)return!1;var t=ze(e);if(null===t)return!0;var n=qe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&xe.call(n)==Ce}var Ya=nt?Tt(nt):function(e){return Ha(e)&&pr(e)==y};var Ga=rt?Tt(rt):function(e){return Ha(e)&&no(e)==b};function Xa(e){return"string"==typeof e||!Ia(e)&&Ha(e)&&pr(e)==_}function Ka(e){return"symbol"==typeof e||Ha(e)&&pr(e)==w}var Ja=it?Tt(it):function(e){return Ha(e)&&Ua(e.length)&&!!Le[pr(e)]};var Za=Pi(Er),Qa=Pi((function(e,t){return e<=t}));function es(e){if(!e)return[];if(Ma(e))return Xa(e)?Wt(e):vi(e);if(Ze&&e[Ze])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ze]());var t=no(e);return(t==g?Lt:t==b?Ht:Cs)(e)}function ts(e){return e?(e=is(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ns(e){var t=ts(e),n=t%1;return t==t?n?t-n:t:0}function rs(e){return e?Xn(ns(e),0,4294967295):0}function is(e){if("number"==typeof e)return e;if(Ka(e))return NaN;if(Ba(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ba(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(G,"");var n=oe.test(e);return n||se.test(e)?Ve(e.slice(2),n?2:8):ie.test(e)?NaN:+e}function os(e){return yi(e,_s(e))}function as(e){return null==e?"":Jr(e)}var ss=_i((function(e,t){if(fo(t)||Ma(t))yi(t,bs(t),e);else for(var n in t)qe.call(t,n)&&Hn(e,n,t[n])})),us=_i((function(e,t){yi(t,_s(t),e)})),cs=_i((function(e,t,n,r){yi(t,_s(t),e,r)})),ls=_i((function(e,t,n,r){yi(t,bs(t),e,r)})),fs=Vi(Gn);var ds=Fr((function(e,t){e=ge(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&so(t[0],t[1],i)&&(r=1);++n<r;)for(var o=t[n],a=_s(o),s=-1,u=a.length;++s<u;){var c=a[s],l=e[c];(void 0===l||Oa(l,we[c])&&!qe.call(e,c))&&(e[c]=o[c])}return e})),ps=Fr((function(e){return e.push(void 0,Ui),ot($s,void 0,e)}));function hs(e,t,n){var r=null==e?void 0:fr(e,t);return void 0===r?n:r}function gs(e,t){return null!=e&&ro(e,t,mr)}var ms=Oi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ke.call(t)),e[t]=n}),Bs(zs)),vs=Oi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ke.call(t)),qe.call(e,t)?e[t].push(n):e[t]=[n]}),Ki),ys=Fr(yr);function bs(e){return Ma(e)?Fn(e):qr(e)}function _s(e){return Ma(e)?Fn(e,!0):Sr(e)}var ws=_i((function(e,t,n){Tr(e,t,n)})),$s=_i((function(e,t,n,r){Tr(e,t,n,r)})),xs=Vi((function(e,t){var n={};if(null==e)return n;var r=!1;t=pt(t,(function(t){return t=si(t,e),r||(r=t.length>1),t})),yi(e,Wi(e),n),r&&(n=Kn(n,7,Bi));for(var i=t.length;i--;)Qr(n,t[i]);return n}));var qs=Vi((function(e,t){return null==e?{}:function(e,t){return Ir(e,t,(function(t,n){return gs(e,n)}))}(e,t)}));function Ss(e,t){if(null==e)return{};var n=pt(Wi(e),(function(e){return[e]}));return t=Ki(t),Ir(e,n,(function(e,n){return t(e,n[0])}))}var Es=Fi(bs),ks=Fi(_s);function Cs(e){return null==e?[]:Dt(e,bs(e))}var Os=qi((function(e,t,n){return t=t.toLowerCase(),e+(n?Ts(t):t)}));function Ts(e){return Fs(as(e).toLowerCase())}function Ds(e){return(e=as(e))&&e.replace(ce,jt).replace(Ie,"")}var As=qi((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Is=qi((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ps=xi("toLowerCase");var Ms=qi((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var js=qi((function(e,t,n){return e+(n?" ":"")+Fs(t)}));var Rs=qi((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Fs=xi("toUpperCase");function Ns(e,t,n){return e=as(e),void 0===(t=n?void 0:t)?function(e){return Re.test(e)}(e)?function(e){return e.match(Me)||[]}(e):function(e){return e.match(ee)||[]}(e):e.match(t)||[]}var Ls=Fr((function(e,t){try{return ot(e,void 0,t)}catch(e){return isError(e)?e:new de(e)}})),Us=Vi((function(e,t){return st(t,(function(t){t=Eo(t),Yn(e,t,ya(e[t],e))})),e}));function Bs(e){return function(){return e}}var Hs=ki(),Vs=ki(!0);function zs(e){return e}function Ws(e){return xr("function"==typeof e?e:Kn(e,1))}var Ys=Fr((function(e,t){return function(n){return yr(n,e,t)}})),Gs=Fr((function(e,t){return function(n){return yr(e,n,t)}}));function Xs(e,t,n){var r=bs(t),i=lr(t,r);null!=n||Ba(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=lr(t,bs(t)));var o=!(Ba(n)&&"chain"in n&&!n.chain),a=Na(e);return st(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=vi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,ht([this.value()],arguments))})})),e}function Ks(){}var Js=Di(pt),Zs=Di(ct),Qs=Di(vt);function eu(e){return uo(e)?St(Eo(e)):function(e){return function(t){return fr(t,e)}}(e)}var tu=Ii(),nu=Ii(!0);function ru(){return[]}function iu(){return!1}var ou=Ti((function(e,t){return e+t}),0),au=ji("ceil"),su=Ti((function(e,t){return e/t}),1),uu=ji("floor");var cu,lu=Ti((function(e,t){return e*t}),1),fu=ji("round"),du=Ti((function(e,t){return e-t}),0);return Cn.after=function(e,t){if("function"!=typeof t)throw new ye(o);return e=ns(e),function(){if(--e<1)return t.apply(this,arguments)}},Cn.ary=ma,Cn.assign=ss,Cn.assignIn=us,Cn.assignInWith=cs,Cn.assignWith=ls,Cn.at=fs,Cn.before=va,Cn.bind=ya,Cn.bindAll=Us,Cn.bindKey=ba,Cn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ia(e)?e:[e]},Cn.chain=ta,Cn.chunk=function(e,t,n){t=(n?so(e,t,n):void 0===t)?1:an(ns(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,s=r(Zt(i/t));o<i;)s[a++]=zr(e,o,o+=t);return s},Cn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Cn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return ht(Ia(n)?vi(n):[n],or(t,1))},Cn.cond=function(e){var t=null==e?0:e.length,n=Ki();return e=t?pt(e,(function(e){if("function"!=typeof e[1])throw new ye(o);return[n(e[0]),e[1]]})):[],Fr((function(n){for(var r=-1;++r<t;){var i=e[r];if(ot(i[0],this,n))return ot(i[1],this,n)}}))},Cn.conforms=function(e){return function(e){var t=bs(e);return function(n){return Jn(n,e,t)}}(Kn(e,1))},Cn.constant=Bs,Cn.countBy=ia,Cn.create=function(e,t){var n=On(e);return null==t?n:Wn(n,t)},Cn.curry=function e(t,n,r){var i=Ni(t,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=e.placeholder,i},Cn.curryRight=function e(t,n,r){var i=Ni(t,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=e.placeholder,i},Cn.debounce=_a,Cn.defaults=ds,Cn.defaultsDeep=ps,Cn.defer=wa,Cn.delay=$a,Cn.difference=Oo,Cn.differenceBy=To,Cn.differenceWith=Do,Cn.drop=function(e,t,n){var r=null==e?0:e.length;return r?zr(e,(t=n||void 0===t?1:ns(t))<0?0:t,r):[]},Cn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?zr(e,0,(t=r-(t=n||void 0===t?1:ns(t)))<0?0:t):[]},Cn.dropRightWhile=function(e,t){return e&&e.length?ti(e,Ki(t,3),!0,!0):[]},Cn.dropWhile=function(e,t){return e&&e.length?ti(e,Ki(t,3),!0):[]},Cn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&so(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=ns(n))<0&&(n=-n>i?0:i+n),(r=void 0===r||r>i?i:ns(r))<0&&(r+=i),r=n>r?0:rs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Cn.filter=function(e,t){return(Ia(e)?lt:ir)(e,Ki(t,3))},Cn.flatMap=function(e,t){return or(da(e,t),1)},Cn.flatMapDeep=function(e,t){return or(da(e,t),1/0)},Cn.flatMapDepth=function(e,t,n){return n=void 0===n?1:ns(n),or(da(e,t),n)},Cn.flatten=Po,Cn.flattenDeep=function(e){return(null==e?0:e.length)?or(e,1/0):[]},Cn.flattenDepth=function(e,t){return(null==e?0:e.length)?or(e,t=void 0===t?1:ns(t)):[]},Cn.flip=function(e){return Ni(e,512)},Cn.flow=Hs,Cn.flowRight=Vs,Cn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Cn.functions=function(e){return null==e?[]:lr(e,bs(e))},Cn.functionsIn=function(e){return null==e?[]:lr(e,_s(e))},Cn.groupBy=ca,Cn.initial=function(e){return(null==e?0:e.length)?zr(e,0,-1):[]},Cn.intersection=jo,Cn.intersectionBy=Ro,Cn.intersectionWith=Fo,Cn.invert=ms,Cn.invertBy=vs,Cn.invokeMap=la,Cn.iteratee=Ws,Cn.keyBy=fa,Cn.keys=bs,Cn.keysIn=_s,Cn.map=da,Cn.mapKeys=function(e,t){var n={};return t=Ki(t,3),ur(e,(function(e,r,i){Yn(n,t(e,r,i),e)})),n},Cn.mapValues=function(e,t){var n={};return t=Ki(t,3),ur(e,(function(e,r,i){Yn(n,r,t(e,r,i))})),n},Cn.matches=function(e){return Cr(Kn(e,1))},Cn.matchesProperty=function(e,t){return Or(e,Kn(t,1))},Cn.memoize=xa,Cn.merge=ws,Cn.mergeWith=$s,Cn.method=Ys,Cn.methodOf=Gs,Cn.mixin=Xs,Cn.negate=qa,Cn.nthArg=function(e){return e=ns(e),Fr((function(t){return Dr(t,e)}))},Cn.omit=xs,Cn.omitBy=function(e,t){return Ss(e,qa(Ki(t)))},Cn.once=function(e){return va(2,e)},Cn.orderBy=function(e,t,n,r){return null==e?[]:(Ia(t)||(t=null==t?[]:[t]),Ia(n=r?void 0:n)||(n=null==n?[]:[n]),Ar(e,t,n))},Cn.over=Js,Cn.overArgs=Sa,Cn.overEvery=Zs,Cn.overSome=Qs,Cn.partial=Ea,Cn.partialRight=ka,Cn.partition=pa,Cn.pick=qs,Cn.pickBy=Ss,Cn.property=eu,Cn.propertyOf=function(e){return function(t){return null==e?void 0:fr(e,t)}},Cn.pull=Lo,Cn.pullAll=Uo,Cn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Pr(e,t,Ki(n,2)):e},Cn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Pr(e,t,void 0,n):e},Cn.pullAt=Bo,Cn.range=tu,Cn.rangeRight=nu,Cn.rearg=Ca,Cn.reject=function(e,t){return(Ia(e)?lt:ir)(e,qa(Ki(t,3)))},Cn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=Ki(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return Mr(e,i),n},Cn.rest=function(e,t){if("function"!=typeof e)throw new ye(o);return Fr(e,t=void 0===t?t:ns(t))},Cn.reverse=Ho,Cn.sampleSize=function(e,t,n){return t=(n?so(e,t,n):void 0===t)?1:ns(t),(Ia(e)?Ln:Lr)(e,t)},Cn.set=function(e,t,n){return null==e?e:Ur(e,t,n)},Cn.setWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:Ur(e,t,n,r)},Cn.shuffle=function(e){return(Ia(e)?Un:Vr)(e)},Cn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&so(e,t,n)?(t=0,n=r):(t=null==t?0:ns(t),n=void 0===n?r:ns(n)),zr(e,t,n)):[]},Cn.sortBy=ha,Cn.sortedUniq=function(e){return e&&e.length?Xr(e):[]},Cn.sortedUniqBy=function(e,t){return e&&e.length?Xr(e,Ki(t,2)):[]},Cn.split=function(e,t,n){return n&&"number"!=typeof n&&so(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=as(e))&&("string"==typeof t||null!=t&&!Ya(t))&&!(t=Jr(t))&&Nt(e)?ci(Wt(e),0,n):e.split(t,n):[]},Cn.spread=function(e,t){if("function"!=typeof e)throw new ye(o);return t=null==t?0:an(ns(t),0),Fr((function(n){var r=n[t],i=ci(n,0,t);return r&&ht(i,r),ot(e,this,i)}))},Cn.tail=function(e){var t=null==e?0:e.length;return t?zr(e,1,t):[]},Cn.take=function(e,t,n){return e&&e.length?zr(e,0,(t=n||void 0===t?1:ns(t))<0?0:t):[]},Cn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?zr(e,(t=r-(t=n||void 0===t?1:ns(t)))<0?0:t,r):[]},Cn.takeRightWhile=function(e,t){return e&&e.length?ti(e,Ki(t,3),!1,!0):[]},Cn.takeWhile=function(e,t){return e&&e.length?ti(e,Ki(t,3)):[]},Cn.tap=function(e,t){return t(e),e},Cn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ye(o);return Ba(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),_a(e,t,{leading:r,maxWait:t,trailing:i})},Cn.thru=na,Cn.toArray=es,Cn.toPairs=Es,Cn.toPairsIn=ks,Cn.toPath=function(e){return Ia(e)?pt(e,Eo):Ka(e)?[e]:vi(So(as(e)))},Cn.toPlainObject=os,Cn.transform=function(e,t,n){var r=Ia(e),i=r||Ra(e)||Ja(e);if(t=Ki(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Ba(e)&&Na(o)?On(ze(e)):{}}return(i?st:ur)(e,(function(e,r,i){return t(n,e,r,i)})),n},Cn.unary=function(e){return ma(e,1)},Cn.union=Vo,Cn.unionBy=zo,Cn.unionWith=Wo,Cn.uniq=function(e){return e&&e.length?Zr(e):[]},Cn.uniqBy=function(e,t){return e&&e.length?Zr(e,Ki(t,2)):[]},Cn.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Zr(e,void 0,t):[]},Cn.unset=function(e,t){return null==e||Qr(e,t)},Cn.unzip=Yo,Cn.unzipWith=Go,Cn.update=function(e,t,n){return null==e?e:ei(e,t,ai(n))},Cn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:ei(e,t,ai(n),r)},Cn.values=Cs,Cn.valuesIn=function(e){return null==e?[]:Dt(e,_s(e))},Cn.without=Xo,Cn.words=Ns,Cn.wrap=function(e,t){return Ea(ai(t),e)},Cn.xor=Ko,Cn.xorBy=Jo,Cn.xorWith=Zo,Cn.zip=Qo,Cn.zipObject=function(e,t){return ii(e||[],t||[],Hn)},Cn.zipObjectDeep=function(e,t){return ii(e||[],t||[],Ur)},Cn.zipWith=ea,Cn.entries=Es,Cn.entriesIn=ks,Cn.extend=us,Cn.extendWith=cs,Xs(Cn,Cn),Cn.add=ou,Cn.attempt=Ls,Cn.camelCase=Os,Cn.capitalize=Ts,Cn.ceil=au,Cn.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=is(n))==n?n:0),void 0!==t&&(t=(t=is(t))==t?t:0),Xn(is(e),t,n)},Cn.clone=function(e){return Kn(e,4)},Cn.cloneDeep=function(e){return Kn(e,5)},Cn.cloneDeepWith=function(e,t){return Kn(e,5,t="function"==typeof t?t:void 0)},Cn.cloneWith=function(e,t){return Kn(e,4,t="function"==typeof t?t:void 0)},Cn.conformsTo=function(e,t){return null==t||Jn(e,t,bs(t))},Cn.deburr=Ds,Cn.defaultTo=function(e,t){return null==e||e!=e?t:e},Cn.divide=su,Cn.endsWith=function(e,t,n){e=as(e),t=Jr(t);var r=e.length,i=n=void 0===n?r:Xn(ns(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Cn.eq=Oa,Cn.escape=function(e){return(e=as(e))&&N.test(e)?e.replace(R,Rt):e},Cn.escapeRegExp=function(e){return(e=as(e))&&Y.test(e)?e.replace(W,"\\$&"):e},Cn.every=function(e,t,n){var r=Ia(e)?ct:nr;return n&&so(e,t,n)&&(t=void 0),r(e,Ki(t,3))},Cn.find=oa,Cn.findIndex=Ao,Cn.findKey=function(e,t){return bt(e,Ki(t,3),ur)},Cn.findLast=aa,Cn.findLastIndex=Io,Cn.findLastKey=function(e,t){return bt(e,Ki(t,3),cr)},Cn.floor=uu,Cn.forEach=sa,Cn.forEachRight=ua,Cn.forIn=function(e,t){return null==e?e:ar(e,Ki(t,3),_s)},Cn.forInRight=function(e,t){return null==e?e:sr(e,Ki(t,3),_s)},Cn.forOwn=function(e,t){return e&&ur(e,Ki(t,3))},Cn.forOwnRight=function(e,t){return e&&cr(e,Ki(t,3))},Cn.get=hs,Cn.gt=Ta,Cn.gte=Da,Cn.has=function(e,t){return null!=e&&ro(e,t,gr)},Cn.hasIn=gs,Cn.head=Mo,Cn.identity=zs,Cn.includes=function(e,t,n,r){e=Ma(e)?e:Cs(e),n=n&&!r?ns(n):0;var i=e.length;return n<0&&(n=an(i+n,0)),Xa(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&wt(e,t,n)>-1},Cn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ns(n);return i<0&&(i=an(r+i,0)),wt(e,t,i)},Cn.inRange=function(e,t,n){return t=ts(t),void 0===n?(n=t,t=0):n=ts(n),function(e,t,n){return e>=sn(t,n)&&e<an(t,n)}(e=is(e),t,n)},Cn.invoke=ys,Cn.isArguments=Aa,Cn.isArray=Ia,Cn.isArrayBuffer=Pa,Cn.isArrayLike=Ma,Cn.isArrayLikeObject=ja,Cn.isBoolean=function(e){return!0===e||!1===e||Ha(e)&&pr(e)==l},Cn.isBuffer=Ra,Cn.isDate=Fa,Cn.isElement=function(e){return Ha(e)&&1===e.nodeType&&!Wa(e)},Cn.isEmpty=function(e){if(null==e)return!0;if(Ma(e)&&(Ia(e)||"string"==typeof e||"function"==typeof e.splice||Ra(e)||Ja(e)||Aa(e)))return!e.length;var t=no(e);if(t==g||t==b)return!e.size;if(fo(e))return!qr(e).length;for(var n in e)if(qe.call(e,n))return!1;return!0},Cn.isEqual=function(e,t){return _r(e,t)},Cn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?_r(e,t,void 0,n):!!r},Cn.isError=isError,Cn.isFinite=function(e){return"number"==typeof e&&nn(e)},Cn.isFunction=Na,Cn.isInteger=La,Cn.isLength=Ua,Cn.isMap=Va,Cn.isMatch=function(e,t){return e===t||wr(e,t,Zi(t))},Cn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:void 0,wr(e,t,Zi(t),n)},Cn.isNaN=function(e){return za(e)&&e!=+e},Cn.isNative=function(e){if(lo(e))throw new de("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return $r(e)},Cn.isNil=function(e){return null==e},Cn.isNull=function(e){return null===e},Cn.isNumber=za,Cn.isObject=Ba,Cn.isObjectLike=Ha,Cn.isPlainObject=Wa,Cn.isRegExp=Ya,Cn.isSafeInteger=function(e){return La(e)&&e>=-9007199254740991&&e<=9007199254740991},Cn.isSet=Ga,Cn.isString=Xa,Cn.isSymbol=Ka,Cn.isTypedArray=Ja,Cn.isUndefined=function(e){return void 0===e},Cn.isWeakMap=function(e){return Ha(e)&&no(e)==$},Cn.isWeakSet=function(e){return Ha(e)&&"[object WeakSet]"==pr(e)},Cn.join=function(e,t){return null==e?"":rn.call(e,t)},Cn.kebabCase=As,Cn.last=No,Cn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=ns(n))<0?an(r+i,0):sn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):_t(e,xt,i,!0)},Cn.lowerCase=Is,Cn.lowerFirst=Ps,Cn.lt=Za,Cn.lte=Qa,Cn.max=function(e){return e&&e.length?rr(e,zs,hr):void 0},Cn.maxBy=function(e,t){return e&&e.length?rr(e,Ki(t,2),hr):void 0},Cn.mean=function(e){return qt(e,zs)},Cn.meanBy=function(e,t){return qt(e,Ki(t,2))},Cn.min=function(e){return e&&e.length?rr(e,zs,Er):void 0},Cn.minBy=function(e,t){return e&&e.length?rr(e,Ki(t,2),Er):void 0},Cn.stubArray=ru,Cn.stubFalse=iu,Cn.stubObject=function(){return{}},Cn.stubString=function(){return""},Cn.stubTrue=function(){return!0},Cn.multiply=lu,Cn.nth=function(e,t){return e&&e.length?Dr(e,ns(t)):void 0},Cn.noConflict=function(){return Ye._===this&&(Ye._=Oe),this},Cn.noop=Ks,Cn.now=ga,Cn.pad=function(e,t,n){e=as(e);var r=(t=ns(t))?zt(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Ai(Qt(i),n)+e+Ai(Zt(i),n)},Cn.padEnd=function(e,t,n){e=as(e);var r=(t=ns(t))?zt(e):0;return t&&r<t?e+Ai(t-r,n):e},Cn.padStart=function(e,t,n){e=as(e);var r=(t=ns(t))?zt(e):0;return t&&r<t?Ai(t-r,n)+e:e},Cn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),cn(as(e).replace(X,""),t||0)},Cn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&so(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=ts(e),void 0===t?(t=e,e=0):t=ts(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=ln();return sn(e+i*(t-e+He("1e-"+((i+"").length-1))),t)}return jr(e,t)},Cn.reduce=function(e,t,n){var r=Ia(e)?gt:kt,i=arguments.length<3;return r(e,Ki(t,4),n,i,er)},Cn.reduceRight=function(e,t,n){var r=Ia(e)?mt:kt,i=arguments.length<3;return r(e,Ki(t,4),n,i,tr)},Cn.repeat=function(e,t,n){return t=(n?so(e,t,n):void 0===t)?1:ns(t),Rr(as(e),t)},Cn.replace=function(){var e=arguments,t=as(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Cn.result=function(e,t,n){var r=-1,i=(t=si(t,e)).length;for(i||(i=1,e=void 0);++r<i;){var o=null==e?void 0:e[Eo(t[r])];void 0===o&&(r=i,o=n),e=Na(o)?o.call(e):o}return e},Cn.round=fu,Cn.runInContext=e,Cn.sample=function(e){return(Ia(e)?Nn:Nr)(e)},Cn.size=function(e){if(null==e)return 0;if(Ma(e))return Xa(e)?zt(e):e.length;var t=no(e);return t==g||t==b?e.size:qr(e).length},Cn.snakeCase=Ms,Cn.some=function(e,t,n){var r=Ia(e)?vt:Wr;return n&&so(e,t,n)&&(t=void 0),r(e,Ki(t,3))},Cn.sortedIndex=function(e,t){return Yr(e,t)},Cn.sortedIndexBy=function(e,t,n){return Gr(e,t,Ki(n,2))},Cn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Yr(e,t);if(r<n&&Oa(e[r],t))return r}return-1},Cn.sortedLastIndex=function(e,t){return Yr(e,t,!0)},Cn.sortedLastIndexBy=function(e,t,n){return Gr(e,t,Ki(n,2),!0)},Cn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Yr(e,t,!0)-1;if(Oa(e[n],t))return n}return-1},Cn.startCase=js,Cn.startsWith=function(e,t,n){return e=as(e),n=null==n?0:Xn(ns(n),0,e.length),t=Jr(t),e.slice(n,n+t.length)==t},Cn.subtract=du,Cn.sum=function(e){return e&&e.length?Ct(e,zs):0},Cn.sumBy=function(e,t){return e&&e.length?Ct(e,Ki(t,2)):0},Cn.template=function(e,t,n){var r=Cn.templateSettings;n&&so(e,t,n)&&(t=void 0),e=as(e),t=cs({},t,r,Li);var i,o,a=cs({},t.imports,r.imports,Li),s=bs(a),u=Dt(a,s),c=0,l=t.interpolate||le,f="__p += '",d=me((t.escape||le).source+"|"+l.source+"|"+(l===B?ne:le).source+"|"+(t.evaluate||le).source+"|$","g"),p="//# sourceURL="+(qe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ne+"]")+"\n";e.replace(d,(function(t,n,r,a,s,u){return r||(r=a),f+=e.slice(c,u).replace(fe,Ft),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),s&&(o=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+t.length,t})),f+="';\n";var h=qe.call(t,"variable")&&t.variable;h||(f="with (obj) {\n"+f+"\n}\n"),f=(o?f.replace(I,""):f).replace(P,"$1").replace(M,"$1;"),f="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=Ls((function(){return pe(s,p+"return "+f).apply(void 0,u)}));if(g.source=f,isError(g))throw g;return g},Cn.times=function(e,t){if((e=ns(e))<1||e>9007199254740991)return[];var n=4294967295,r=sn(e,4294967295);e-=4294967295;for(var i=Ot(r,t=Ki(t));++n<e;)t(n);return i},Cn.toFinite=ts,Cn.toInteger=ns,Cn.toLength=rs,Cn.toLower=function(e){return as(e).toLowerCase()},Cn.toNumber=is,Cn.toSafeInteger=function(e){return e?Xn(ns(e),-9007199254740991,9007199254740991):0===e?e:0},Cn.toString=as,Cn.toUpper=function(e){return as(e).toUpperCase()},Cn.trim=function(e,t,n){if((e=as(e))&&(n||void 0===t))return e.replace(G,"");if(!e||!(t=Jr(t)))return e;var r=Wt(e),i=Wt(t);return ci(r,It(r,i),Pt(r,i)+1).join("")},Cn.trimEnd=function(e,t,n){if((e=as(e))&&(n||void 0===t))return e.replace(K,"");if(!e||!(t=Jr(t)))return e;var r=Wt(e);return ci(r,0,Pt(r,Wt(t))+1).join("")},Cn.trimStart=function(e,t,n){if((e=as(e))&&(n||void 0===t))return e.replace(X,"");if(!e||!(t=Jr(t)))return e;var r=Wt(e);return ci(r,It(r,Wt(t))).join("")},Cn.truncate=function(e,t){var n=30,r="...";if(Ba(t)){var i="separator"in t?t.separator:i;n="length"in t?ns(t.length):n,r="omission"in t?Jr(t.omission):r}var o=(e=as(e)).length;if(Nt(e)){var a=Wt(e);o=a.length}if(n>=o)return e;var s=n-zt(r);if(s<1)return r;var u=a?ci(a,0,s).join(""):e.slice(0,s);if(void 0===i)return u+r;if(a&&(s+=u.length-s),Ya(i)){if(e.slice(s).search(i)){var c,l=u;for(i.global||(i=me(i.source,as(re.exec(i))+"g")),i.lastIndex=0;c=i.exec(l);)var f=c.index;u=u.slice(0,void 0===f?s:f)}}else if(e.indexOf(Jr(i),s)!=s){var d=u.lastIndexOf(i);d>-1&&(u=u.slice(0,d))}return u+r},Cn.unescape=function(e){return(e=as(e))&&F.test(e)?e.replace(j,Yt):e},Cn.uniqueId=function(e){var t=++Se;return as(e)+t},Cn.upperCase=Rs,Cn.upperFirst=Fs,Cn.each=sa,Cn.eachRight=ua,Cn.first=Mo,Xs(Cn,(cu={},ur(Cn,(function(e,t){qe.call(Cn.prototype,t)||(cu[t]=e)})),cu),{chain:!1}),Cn.VERSION="4.17.19",st(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Cn[e].placeholder=Cn})),st(["drop","take"],(function(e,t){An.prototype[e]=function(n){n=void 0===n?1:an(ns(n),0);var r=this.__filtered__&&!t?new An(this):this.clone();return r.__filtered__?r.__takeCount__=sn(n,r.__takeCount__):r.__views__.push({size:sn(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},An.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),st(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;An.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ki(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),st(["head","last"],(function(e,t){var n="take"+(t?"Right":"");An.prototype[e]=function(){return this[n](1).value()[0]}})),st(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");An.prototype[e]=function(){return this.__filtered__?new An(this):this[n](1)}})),An.prototype.compact=function(){return this.filter(zs)},An.prototype.find=function(e){return this.filter(e).head()},An.prototype.findLast=function(e){return this.reverse().find(e)},An.prototype.invokeMap=Fr((function(e,t){return"function"==typeof e?new An(this):this.map((function(n){return yr(n,e,t)}))})),An.prototype.reject=function(e){return this.filter(qa(Ki(e)))},An.prototype.slice=function(e,t){e=ns(e);var n=this;return n.__filtered__&&(e>0||t<0)?new An(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=ns(t))<0?n.dropRight(-t):n.take(t-e)),n)},An.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},An.prototype.toArray=function(){return this.take(4294967295)},ur(An.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Cn[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(Cn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof An,u=a[0],c=s||Ia(t),l=function(e){var t=i.apply(Cn,ht([e],a));return r&&f?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(s=c=!1);var f=this.__chain__,d=!!this.__actions__.length,p=o&&!f,h=s&&!d;if(!o&&c){t=h?t:new An(this);var g=e.apply(t,a);return g.__actions__.push({func:na,args:[l],thisArg:void 0}),new Dn(g,f)}return p&&h?e.apply(this,a):(g=this.thru(l),p?r?g.value()[0]:g.value():g)})})),st(["pop","push","shift","sort","splice","unshift"],(function(e){var t=be[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Cn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ia(i)?i:[],e)}return this[n]((function(n){return t.apply(Ia(n)?n:[],e)}))}})),ur(An.prototype,(function(e,t){var n=Cn[t];if(n){var r=n.name+"";qe.call(bn,r)||(bn[r]=[]),bn[r].push({name:t,func:n})}})),bn[Ci(void 0,2).name]=[{name:"wrapper",func:void 0}],An.prototype.clone=function(){var e=new An(this.__wrapped__);return e.__actions__=vi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=vi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=vi(this.__views__),e},An.prototype.reverse=function(){if(this.__filtered__){var e=new An(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},An.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ia(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=sn(t,e+a);break;case"takeRight":e=an(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,u=s-a,c=r?s:a-1,l=this.__iteratees__,f=l.length,d=0,p=sn(u,this.__takeCount__);if(!n||!r&&i==u&&p==u)return ni(e,this.__actions__);var h=[];e:for(;u--&&d<p;){for(var g=-1,m=e[c+=t];++g<f;){var v=l[g],y=v.iteratee,b=v.type,_=y(m);if(2==b)m=_;else if(!_){if(1==b)continue e;break e}}h[d++]=m}return h},Cn.prototype.at=ra,Cn.prototype.chain=function(){return ta(this)},Cn.prototype.commit=function(){return new Dn(this.value(),this.__chain__)},Cn.prototype.next=function(){void 0===this.__values__&&(this.__values__=es(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},Cn.prototype.plant=function(e){for(var t,n=this;n instanceof Tn;){var r=Co(n);r.__index__=0,r.__values__=void 0,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Cn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof An){var t=e;return this.__actions__.length&&(t=new An(this)),(t=t.reverse()).__actions__.push({func:na,args:[Ho],thisArg:void 0}),new Dn(t,this.__chain__)}return this.thru(Ho)},Cn.prototype.toJSON=Cn.prototype.valueOf=Cn.prototype.value=function(){return ni(this.__wrapped__,this.__actions__)},Cn.prototype.first=Cn.prototype.head,Ze&&(Cn.prototype[Ze]=function(){return this}),Cn}();Ye._=Gt,void 0===(i=function(){return Gt}.call(t,n,t,r))||(r.exports=i)}).call(this)}).call(this,n(44),n(77)(e))},function(e,t,n){"use strict";var r=n(74),i=n(162),o=n(136),a=n(82),s=n(217),u=a.set,c=a.getterFor("Array Iterator");e.exports=s(Array,"Array",(function(e,t){u(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=c(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(e,t,n){var r=n(43),i=n(314),o=n(10),a=n(76),s=n(37),u=s("iterator"),c=s("toStringTag"),l=o.values;for(var f in i){var d=r[f],p=d&&d.prototype;if(p){if(p[u]!==l)try{a(p,u,l)}catch(e){p[u]=l}if(p[c]||a(p,c,f),i[f])for(var h in o)if(p[h]!==o[h])try{a(p,h,o[h])}catch(e){p[h]=o[h]}}}},function(e,t,n){"use strict";var r=n(28),i=n(43),o=n(83),a=n(88),s=n(55),u=n(214),c=n(301),l=n(31),f=n(56),d=n(139),p=n(50),h=n(51),g=n(65),m=n(74),v=n(152),y=n(112),b=n(113),_=n(135),w=n(157),$=n(337),x=n(212),q=n(96),S=n(61),E=n(153),k=n(76),C=n(64),O=n(210),T=n(155),D=n(133),A=n(156),I=n(37),P=n(338),M=n(339),j=n(97),R=n(82),F=n(138).forEach,N=T("hidden"),L=I("toPrimitive"),U=R.set,B=R.getterFor("Symbol"),H=Object.prototype,V=i.Symbol,z=o("JSON","stringify"),W=q.f,Y=S.f,G=$.f,X=E.f,K=O("symbols"),J=O("op-symbols"),Z=O("string-to-symbol-registry"),Q=O("symbol-to-string-registry"),ee=O("wks"),te=i.QObject,ne=!te||!te.prototype||!te.prototype.findChild,re=s&&l((function(){return 7!=b(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=W(H,t);r&&delete H[t],Y(e,t,n),r&&e!==H&&Y(H,t,r)}:Y,ie=function(e,t){var n=K[e]=b(V.prototype);return U(n,{type:"Symbol",tag:e,description:t}),s||(n.description=t),n},oe=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof V},ae=function(e,t,n){e===H&&ae(J,t,n),h(e);var r=v(t,!0);return h(n),f(K,r)?(n.enumerable?(f(e,N)&&e[N][r]&&(e[N][r]=!1),n=b(n,{enumerable:y(0,!1)})):(f(e,N)||Y(e,N,y(1,{})),e[N][r]=!0),re(e,r,n)):Y(e,r,n)},se=function(e,t){h(e);var n=m(t),r=_(n).concat(fe(n));return F(r,(function(t){s&&!ue.call(n,t)||ae(e,t,n[t])})),e},ue=function(e){var t=v(e,!0),n=X.call(this,t);return!(this===H&&f(K,t)&&!f(J,t))&&(!(n||!f(this,t)||!f(K,t)||f(this,N)&&this[N][t])||n)},ce=function(e,t){var n=m(e),r=v(t,!0);if(n!==H||!f(K,r)||f(J,r)){var i=W(n,r);return!i||!f(K,r)||f(n,N)&&n[N][r]||(i.enumerable=!0),i}},le=function(e){var t=G(m(e)),n=[];return F(t,(function(e){f(K,e)||f(D,e)||n.push(e)})),n},fe=function(e){var t=e===H,n=G(t?J:m(e)),r=[];return F(n,(function(e){!f(K,e)||t&&!f(H,e)||r.push(K[e])})),r};(u||(C((V=function(){if(this instanceof V)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=A(e),n=function(e){this===H&&n.call(J,e),f(this,N)&&f(this[N],t)&&(this[N][t]=!1),re(this,t,y(1,e))};return s&&ne&&re(H,t,{configurable:!0,set:n}),ie(t,e)}).prototype,"toString",(function(){return B(this).tag})),C(V,"withoutSetter",(function(e){return ie(A(e),e)})),E.f=ue,S.f=ae,q.f=ce,w.f=$.f=le,x.f=fe,P.f=function(e){return ie(I(e),e)},s&&(Y(V.prototype,"description",{configurable:!0,get:function(){return B(this).description}}),a||C(H,"propertyIsEnumerable",ue,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:V}),F(_(ee),(function(e){M(e)})),r({target:"Symbol",stat:!0,forced:!u},{for:function(e){var t=String(e);if(f(Z,t))return Z[t];var n=V(t);return Z[t]=n,Q[n]=t,n},keyFor:function(e){if(!oe(e))throw TypeError(e+" is not a symbol");if(f(Q,e))return Q[e]},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:function(e,t){return void 0===t?b(e):se(b(e),t)},defineProperty:ae,defineProperties:se,getOwnPropertyDescriptor:ce}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:le,getOwnPropertySymbols:fe}),r({target:"Object",stat:!0,forced:l((function(){x.f(1)}))},{getOwnPropertySymbols:function(e){return x.f(g(e))}}),z)&&r({target:"JSON",stat:!0,forced:!u||l((function(){var e=V();return"[null]"!=z([e])||"{}"!=z({a:e})||"{}"!=z(Object(e))}))},{stringify:function(e,t,n){for(var r,i=[e],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=t,(p(t)||void 0!==e)&&!oe(e))return d(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!oe(t))return t}),i[1]=t,z.apply(null,i)}});V.prototype[L]||k(V.prototype,L,V.prototype.valueOf),j(V,"Symbol"),D[N]=!0},function(e,t,n){"use strict";var r=n(28),i=n(50),o=n(139),a=n(134),s=n(62),u=n(74),c=n(141),l=n(37),f=n(140),d=n(100),p=f("slice"),h=d("slice",{ACCESSORS:!0,0:0,1:2}),g=l("species"),m=[].slice,v=Math.max;r({target:"Array",proto:!0,forced:!p||!h},{slice:function(e,t){var n,r,l,f=u(this),d=s(f.length),p=a(e,d),h=a(void 0===t?d:t,d);if(o(f)&&("function"!=typeof(n=f.constructor)||n!==Array&&!o(n.prototype)?i(n)&&null===(n=n[g])&&(n=void 0):n=void 0,n===Array||void 0===n))return m.call(f,p,h);for(r=new(void 0===n?Array:n)(v(h-p,0)),l=0;p<h;p++,l++)p in f&&c(r,l,f[p]);return r.length=l,r}})},,function(e,t,n){"use strict";var r=n(28),i=n(55),o=n(43),a=n(56),s=n(50),u=n(61).f,c=n(295),l=o.Symbol;if(i&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var f={},d=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof d?new l(e):void 0===e?l():l(e);return""===e&&(f[t]=!0),t};c(d,l);var p=d.prototype=l.prototype;p.constructor=d;var h=p.toString,g="Symbol(test)"==String(l("test")),m=/^Symbol\((.*)\)[^)]+$/;u(p,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=h.call(e);if(a(f,e))return"";var n=g?t.slice(7,-1):t.replace(m,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:d})}},function(e,t,n){n(339)("iterator")},function(e,t,n){"use strict";var r=n(28),i=n(31),o=n(139),a=n(50),s=n(65),u=n(62),c=n(141),l=n(165),f=n(140),d=n(37),p=n(226),h=d("isConcatSpreadable"),g=p>=51||!i((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),m=f("concat"),v=function(e){if(!a(e))return!1;var t=e[h];return void 0!==t?!!t:o(e)};r({target:"Array",proto:!0,forced:!g||!m},{concat:function(e){var t,n,r,i,o,a=s(this),f=l(a,0),d=0;for(t=-1,r=arguments.length;t<r;t++)if(o=-1===t?a:arguments[t],v(o)){if(d+(i=u(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,d++)n in o&&c(f,d,o[n])}else{if(d>=9007199254740991)throw TypeError("Maximum allowed index exceeded");c(f,d++,o)}return f.length=d,f}})},function(e,t,n){"use strict";var r=n(28),i=n(159);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},,,function(e,t,n){"use strict";var r=n(28),i=n(138).filter,o=n(140),a=n(100),s=o("filter"),u=a("filter");r({target:"Array",proto:!0,forced:!s||!u},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(28),i=n(138).map,o=n(140),a=n(100),s=o("map"),u=a("map");r({target:"Array",proto:!0,forced:!s||!u},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},,,,function(e,t,n){var r=n(43),i=n(314),o=n(470),a=n(76);for(var s in i){var u=r[s],c=u&&u.prototype;if(c&&c.forEach!==o)try{a(c,"forEach",o)}catch(e){c.forEach=o}}},function(e,t,n){var r=n(28),i=n(65),o=n(135);r({target:"Object",stat:!0,forced:n(31)((function(){o(1)}))},{keys:function(e){return o(i(e))}})},function(e,t,n){var r=n(43),i=n(96).f,o=n(76),a=n(64),s=n(208),u=n(295),c=n(158);e.exports=function(e,t){var n,l,f,d,p,h=e.target,g=e.global,m=e.stat;if(n=g?r:m?r[h]||s(h,{}):(r[h]||{}).prototype)for(l in t){if(d=t[l],f=e.noTargetGet?(p=i(n,l))&&p.value:n[l],!c(g?l:h+(m?".":"#")+l,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;u(d,f)}(e.sham||f&&f.sham)&&o(d,"sham",!0),a(n,l,d,e)}}},function(e,t,n){"use strict";var r,i,o,a,s=n(28),u=n(88),c=n(43),l=n(83),f=n(329),d=n(64),p=n(223),h=n(97),g=n(224),m=n(50),v=n(99),y=n(137),b=n(81),_=n(209),w=n(219),$=n(222),x=n(227),q=n(330).set,S=n(476),E=n(332),k=n(477),C=n(333),O=n(478),T=n(82),D=n(158),A=n(37),I=n(226),P=A("species"),M="Promise",j=T.get,R=T.set,F=T.getterFor(M),N=f,L=c.TypeError,U=c.document,B=c.process,H=l("fetch"),V=C.f,z=V,W="process"==b(B),Y=!!(U&&U.createEvent&&c.dispatchEvent),G=D(M,(function(){if(!(_(N)!==String(N))){if(66===I)return!0;if(!W&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!N.prototype.finally)return!0;if(I>=51&&/native code/.test(N))return!1;var e=N.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[P]=t,!(e.then((function(){}))instanceof t)})),X=G||!$((function(e){N.all(e).catch((function(){}))})),K=function(e){var t;return!(!m(e)||"function"!=typeof(t=e.then))&&t},J=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;S((function(){for(var i=t.value,o=1==t.state,a=0;r.length>a;){var s,u,c,l=r[a++],f=o?l.ok:l.fail,d=l.resolve,p=l.reject,h=l.domain;try{f?(o||(2===t.rejection&&te(e,t),t.rejection=1),!0===f?s=i:(h&&h.enter(),s=f(i),h&&(h.exit(),c=!0)),s===l.promise?p(L("Promise-chain cycle")):(u=K(s))?u.call(s,d,p):d(s)):p(i)}catch(e){h&&!c&&h.exit(),p(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&Q(e,t)}))}},Z=function(e,t,n){var r,i;Y?((r=U.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},(i=c["on"+e])?i(r):"unhandledrejection"===e&&k("Unhandled promise rejection",n)},Q=function(e,t){q.call(c,(function(){var n,r=t.value;if(ee(t)&&(n=O((function(){W?B.emit("unhandledRejection",r,e):Z("unhandledrejection",e,r)})),t.rejection=W||ee(t)?2:1,n.error))throw n.value}))},ee=function(e){return 1!==e.rejection&&!e.parent},te=function(e,t){q.call(c,(function(){W?B.emit("rejectionHandled",e):Z("rejectionhandled",e,t.value)}))},ne=function(e,t,n,r){return function(i){e(t,n,i,r)}},re=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,J(e,t,!0))},ie=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw L("Promise can't be resolved itself");var i=K(n);i?S((function(){var r={done:!1};try{i.call(n,ne(ie,e,r,t),ne(re,e,r,t))}catch(n){re(e,r,n,t)}})):(t.value=n,t.state=1,J(e,t,!1))}catch(n){re(e,{done:!1},n,t)}}};G&&(N=function(e){y(this,N,M),v(e),r.call(this);var t=j(this);try{e(ne(ie,this,t),ne(re,this,t))}catch(e){re(this,t,e)}},(r=function(e){R(this,{type:M,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p(N.prototype,{then:function(e,t){var n=F(this),r=V(x(this,N));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=W?B.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&J(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r,t=j(e);this.promise=e,this.resolve=ne(ie,e,t),this.reject=ne(re,e,t)},C.f=V=function(e){return e===N||e===o?new i(e):z(e)},u||"function"!=typeof f||(a=f.prototype.then,d(f.prototype,"then",(function(e,t){var n=this;return new N((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof H&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return E(N,H.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:G},{Promise:N}),h(N,M,!1,!0),g(M),o=l(M),s({target:M,stat:!0,forced:G},{reject:function(e){var t=V(this);return t.reject.call(void 0,e),t.promise}}),s({target:M,stat:!0,forced:u||G},{resolve:function(e){return E(u&&this===o?N:this,e)}}),s({target:M,stat:!0,forced:X},{all:function(e){var t=this,n=V(t),r=n.resolve,i=n.reject,o=O((function(){var n=v(t.resolve),o=[],a=0,s=1;w(e,(function(e){var u=a++,c=!1;o.push(void 0),s++,n.call(t,e).then((function(e){c||(c=!0,o[u]=e,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=V(t),r=n.reject,i=O((function(){var i=v(t.resolve);w(e,(function(e){i.call(t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},function(e,t,n){"use strict";var r=n(28),i=n(138).find,o=n(162),a=n(100),s=!0,u=a("find");"find"in[]&&Array(1).find((function(){s=!1})),r({target:"Array",proto:!0,forced:s||!u},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("find")},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";var r=n(160),i=n(228),o=n(51),a=n(68),s=n(227),u=n(215),c=n(62),l=n(161),f=n(159),d=n(31),p=[].push,h=Math.min,g=!d((function(){return!RegExp(4294967295,"y")}));r("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(a(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!i(e))return t.call(r,e,o);for(var s,u,c,l=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,g=new RegExp(e.source,d+"g");(s=f.call(g,r))&&!((u=g.lastIndex)>h&&(l.push(r.slice(h,s.index)),s.length>1&&s.index<r.length&&p.apply(l,s.slice(1)),c=s[0].length,h=u,l.length>=o));)g.lastIndex===s.index&&g.lastIndex++;return h===r.length?!c&&g.test("")||l.push(""):l.push(r.slice(h)),l.length>o?l.slice(0,o):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var i=a(this),o=null==t?void 0:t[e];return void 0!==o?o.call(t,i,n):r.call(String(i),t,n)},function(e,i){var a=n(r,e,this,i,r!==t);if(a.done)return a.value;var f=o(e),d=String(this),p=s(f,RegExp),m=f.unicode,v=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(g?"y":"g"),y=new p(g?f:"^(?:"+f.source+")",v),b=void 0===i?4294967295:i>>>0;if(0===b)return[];if(0===d.length)return null===l(y,d)?[d]:[];for(var _=0,w=0,$=[];w<d.length;){y.lastIndex=g?w:0;var x,q=l(y,g?d:d.slice(w));if(null===q||(x=h(c(y.lastIndex+(g?0:w)),d.length))===_)w=u(d,w,m);else{if($.push(d.slice(_,w)),$.length===b)return $;for(var S=1;S<=q.length-1;S++)if($.push(q[S]),$.length===b)return $;w=_=x}}return $.push(d.slice(_)),$}]}),!g)},,function(e,t,n){(function(e){e.exports=function(){"use strict";var t,n;function r(){return t.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function c(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function f(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function d(e,t,n,r){return xt(e,t,n,r,!0).utc()}function p(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function h(e){if(null==e._isValid){var t=p(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function g(e){var t=d(NaN);return null!=e?f(p(t),e):p(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var m=r.momentProperties=[];function v(e,t){var n,r,i;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=p(t)),a(t._locale)||(e._locale=t._locale),m.length>0)for(n=0;n<m.length;n++)a(i=t[r=m[n]])||(e[r]=i);return e}var y=!1;function b(e){v(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,r.updateOffset(this),y=!1)}function _(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function w(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function $(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=w(t)),n}function x(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&$(e[r])!==$(t[r]))&&a++;return a+o}function q(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function S(e,t){var n=!0;return f((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){for(var i,o=[],a=0;a<arguments.length;a++){if(i="","object"==typeof arguments[a]){for(var s in i+="\n["+a+"] ",arguments[0])i+=s+": "+arguments[0][s]+", ";i=i.slice(0,-2)}else i=arguments[a];o.push(i)}q(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var E,k={};function C(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),k[e]||(q(t),k[e]=!0)}function O(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function T(e,t){var n,r=f({},e);for(n in t)l(t,n)&&(o(e[n])&&o(t[n])?(r[n]={},f(r[n],e[n]),f(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)l(e,n)&&!l(t,n)&&o(e[n])&&(r[n]=f({},r[n]));return r}function D(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,E=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n};var A={};function I(e,t){var n=e.toLowerCase();A[n]=A[n+"s"]=A[t]=e}function P(e){return"string"==typeof e?A[e]||A[e.toLowerCase()]:void 0}function M(e){var t,n,r={};for(n in e)l(e,n)&&(t=P(n))&&(r[t]=e[n]);return r}var j={};function R(e,t){j[e]=t}function F(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,U={},B={};function H(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(B[e]=i),t&&(B[t[0]]=function(){return F(i.apply(this,arguments),t[1],t[2])}),n&&(B[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function V(e,t){return e.isValid()?(t=z(t,e.localeData()),U[t]=U[t]||function(e){var t,n,r,i=e.match(N);for(t=0,n=i.length;t<n;t++)B[i[t]]?i[t]=B[i[t]]:i[t]=(r=i[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,o="";for(r=0;r<n;r++)o+=O(i[r])?i[r].call(t,e):i[r];return o}}(t),U[t](e)):e.localeData().invalidDate()}function z(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(L.lastIndex=0;n>=0&&L.test(e);)e=e.replace(L,r),L.lastIndex=0,n-=1;return e}var W=/\d/,Y=/\d\d/,G=/\d{3}/,X=/\d{4}/,K=/[+-]?\d{6}/,J=/\d\d?/,Z=/\d\d\d\d?/,Q=/\d\d\d\d\d\d?/,ee=/\d{1,3}/,te=/\d{1,4}/,ne=/[+-]?\d{1,6}/,re=/\d+/,ie=/[+-]?\d+/,oe=/Z|[+-]\d\d:?\d\d/gi,ae=/Z|[+-]\d\d(?::?\d\d)?/gi,se=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ue={};function ce(e,t,n){ue[e]=O(t)?t:function(e,r){return e&&n?n:t}}function le(e,t){return l(ue,e)?ue[e](t._strict,t._locale):new RegExp(fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i}))))}function fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var de={};function pe(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),s(t)&&(r=function(e,n){n[t]=$(e)}),n=0;n<e.length;n++)de[e[n]]=r}function he(e,t){pe(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function ge(e,t,n){null!=t&&l(de,e)&&de[e](t,n._a,n,e)}function me(e){return ve(e)?366:365}function ve(e){return e%4==0&&e%100!=0||e%400==0}H("Y",0,0,(function(){var e=this.year();return e<=9999?""+e:"+"+e})),H(0,["YY",2],0,(function(){return this.year()%100})),H(0,["YYYY",4],0,"year"),H(0,["YYYYY",5],0,"year"),H(0,["YYYYYY",6,!0],0,"year"),I("year","y"),R("year",1),ce("Y",ie),ce("YY",J,Y),ce("YYYY",te,X),ce("YYYYY",ne,K),ce("YYYYYY",ne,K),pe(["YYYYY","YYYYYY"],0),pe("YYYY",(function(e,t){t[0]=2===e.length?r.parseTwoDigitYear(e):$(e)})),pe("YY",(function(e,t){t[0]=r.parseTwoDigitYear(e)})),pe("Y",(function(e,t){t[0]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return $(e)+($(e)>68?1900:2e3)};var ye,be=_e("FullYear",!0);function _e(e,t){return function(n){return null!=n?($e(this,e,n),r.updateOffset(this,t),this):we(this,e)}}function we(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function $e(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ve(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),xe(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function xe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?ve(e)?29:28:31-r%7%2}ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},H("M",["MM",2],"Mo",(function(){return this.month()+1})),H("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),H("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),I("month","M"),R("month",8),ce("M",J),ce("MM",J,Y),ce("MMM",(function(e,t){return t.monthsShortRegex(e)})),ce("MMMM",(function(e,t){return t.monthsRegex(e)})),pe(["M","MM"],(function(e,t){t[1]=$(e)-1})),pe(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[1]=i:p(n).invalidMonth=e}));var qe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Se="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ee="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function ke(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=d([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=ye.call(this._shortMonthsParse,a))?i:null:-1!==(i=ye.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=ye.call(this._shortMonthsParse,a))||-1!==(i=ye.call(this._longMonthsParse,a))?i:null:-1!==(i=ye.call(this._longMonthsParse,a))||-1!==(i=ye.call(this._shortMonthsParse,a))?i:null}function Ce(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=$(t);else if(!s(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),xe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Oe(e){return null!=e?(Ce(this,e),r.updateOffset(this,!0),this):we(this,"Month")}var Te=se,De=se;function Ae(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)n=d([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=fe(r[t]),i[t]=fe(i[t]);for(t=0;t<24;t++)o[t]=fe(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Ie(e,t,n,r,i,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function Pe(e){var t;if(e<100&&e>=0){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Me(e,t,n){var r=7+t-n;return-(7+Pe(e,0,r).getUTCDay()-t)%7+r-1}function je(e,t,n,r,i){var o,a,s=1+7*(t-1)+(7+n-r)%7+Me(e,r,i);return s<=0?a=me(o=e-1)+s:s>me(e)?(o=e+1,a=s-me(e)):(o=e,a=s),{year:o,dayOfYear:a}}function Re(e,t,n){var r,i,o=Me(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?r=a+Fe(i=e.year()-1,t,n):a>Fe(e.year(),t,n)?(r=a-Fe(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function Fe(e,t,n){var r=Me(e,t,n),i=Me(e+1,t,n);return(me(e)-r+i)/7}function Ne(e,t){return e.slice(t,7).concat(e.slice(0,t))}H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),R("week",5),R("isoWeek",5),ce("w",J),ce("ww",J,Y),ce("W",J),ce("WW",J,Y),he(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=$(e)})),H("d",0,"do","day"),H("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),H("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),H("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),R("day",11),R("weekday",11),R("isoWeekday",11),ce("d",J),ce("e",J),ce("E",J),ce("dd",(function(e,t){return t.weekdaysMinRegex(e)})),ce("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),ce("dddd",(function(e,t){return t.weekdaysRegex(e)})),he(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:p(n).invalidWeekday=e})),he(["d","e","E"],(function(e,t,n,r){t[r]=$(e)}));var Le="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ue="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Be="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function He(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=d([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=ye.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=ye.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=ye.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=ye.call(this._weekdaysParse,a))||-1!==(i=ye.call(this._shortWeekdaysParse,a))||-1!==(i=ye.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=ye.call(this._shortWeekdaysParse,a))||-1!==(i=ye.call(this._weekdaysParse,a))||-1!==(i=ye.call(this._minWeekdaysParse,a))?i:null:-1!==(i=ye.call(this._minWeekdaysParse,a))||-1!==(i=ye.call(this._weekdaysParse,a))||-1!==(i=ye.call(this._shortWeekdaysParse,a))?i:null}var Ve=se,ze=se,We=se;function Ye(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],u=[],c=[];for(t=0;t<7;t++)n=d([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(r),s.push(i),u.push(o),c.push(r),c.push(i),c.push(o);for(a.sort(e),s.sort(e),u.sort(e),c.sort(e),t=0;t<7;t++)s[t]=fe(s[t]),u[t]=fe(u[t]),c[t]=fe(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ge(){return this.hours()%12||12}function Xe(e,t){H(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Ke(e,t){return t._meridiemParse}H("H",["HH",2],0,"hour"),H("h",["hh",2],0,Ge),H("k",["kk",2],0,(function(){return this.hours()||24})),H("hmm",0,0,(function(){return""+Ge.apply(this)+F(this.minutes(),2)})),H("hmmss",0,0,(function(){return""+Ge.apply(this)+F(this.minutes(),2)+F(this.seconds(),2)})),H("Hmm",0,0,(function(){return""+this.hours()+F(this.minutes(),2)})),H("Hmmss",0,0,(function(){return""+this.hours()+F(this.minutes(),2)+F(this.seconds(),2)})),Xe("a",!0),Xe("A",!1),I("hour","h"),R("hour",13),ce("a",Ke),ce("A",Ke),ce("H",J),ce("h",J),ce("k",J),ce("HH",J,Y),ce("hh",J,Y),ce("kk",J,Y),ce("hmm",Z),ce("hmmss",Q),ce("Hmm",Z),ce("Hmmss",Q),pe(["H","HH"],3),pe(["k","kk"],(function(e,t,n){var r=$(e);t[3]=24===r?0:r})),pe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),pe(["h","hh"],(function(e,t,n){t[3]=$(e),p(n).bigHour=!0})),pe("hmm",(function(e,t,n){var r=e.length-2;t[3]=$(e.substr(0,r)),t[4]=$(e.substr(r)),p(n).bigHour=!0})),pe("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=$(e.substr(0,r)),t[4]=$(e.substr(r,2)),t[5]=$(e.substr(i)),p(n).bigHour=!0})),pe("Hmm",(function(e,t,n){var r=e.length-2;t[3]=$(e.substr(0,r)),t[4]=$(e.substr(r))})),pe("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=$(e.substr(0,r)),t[4]=$(e.substr(r,2)),t[5]=$(e.substr(i))}));var Je,Ze=_e("Hours",!0),Qe={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Se,monthsShort:Ee,week:{dow:0,doy:6},weekdays:Le,weekdaysMin:Be,weekdaysShort:Ue,meridiemParse:/[ap]\.?m?\.?/i},et={},tt={};function nt(e){return e?e.toLowerCase().replace("_","-"):e}function rt(t){var n=null;if(!et[t]&&void 0!==e&&e&&e.exports)try{n=Je._abbr,!function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}(),it(n)}catch(e){}return et[t]}function it(e,t){var n;return e&&((n=a(t)?at(e):ot(e,t))?Je=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Je._abbr}function ot(e,t){if(null!==t){var n,r=Qe;if(t.abbr=e,null!=et[e])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=et[e]._config;else if(null!=t.parentLocale)if(null!=et[t.parentLocale])r=et[t.parentLocale]._config;else{if(null==(n=rt(t.parentLocale)))return tt[t.parentLocale]||(tt[t.parentLocale]=[]),tt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return et[e]=new D(T(r,t)),tt[e]&&tt[e].forEach((function(e){ot(e.name,e.config)})),it(e),et[e]}return delete et[e],null}function at(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Je;if(!i(e)){if(t=rt(e))return t;e=[e]}return function(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=nt(e[o]).split("-")).length,n=(n=nt(e[o+1]))?n.split("-"):null;t>0;){if(r=rt(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&x(i,n,!0)>=t-1)break;t--}o++}return Je}(e)}function st(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>xe(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,p(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),p(e)._overflowWeeks&&-1===t&&(t=7),p(e)._overflowWeekday&&-1===t&&(t=8),p(e).overflow=t),e}function ut(e,t,n){return null!=e?e:null!=t?t:n}function ct(e){var t,n,i,o,a,s=[];if(!e._d){for(i=function(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,r,i,o,a,s,u;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)o=1,a=4,n=ut(t.GG,e._a[0],Re(qt(),1,4).year),r=ut(t.W,1),((i=ut(t.E,1))<1||i>7)&&(u=!0);else{o=e._locale._week.dow,a=e._locale._week.doy;var c=Re(qt(),o,a);n=ut(t.gg,e._a[0],c.year),r=ut(t.w,c.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(u=!0)):i=o}r<1||r>Fe(n,o,a)?p(e)._overflowWeeks=!0:null!=u?p(e)._overflowWeekday=!0:(s=je(n,r,i,o,a),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=ut(e._a[0],i[0]),(e._dayOfYear>me(a)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=Pe(a,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=i[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Pe:Ie).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(p(e).weekdayMismatch=!0)}}var lt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ft=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dt=/Z|[+-]\d\d(?::?\d\d)?/,pt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],ht=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],gt=/^\/?Date\((\-?\d+)/i;function mt(e){var t,n,r,i,o,a,s=e._i,u=lt.exec(s)||ft.exec(s);if(u){for(p(e).iso=!0,t=0,n=pt.length;t<n;t++)if(pt[t][1].exec(u[1])){i=pt[t][0],r=!1!==pt[t][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=ht.length;t<n;t++)if(ht[t][1].exec(u[3])){o=(u[2]||" ")+ht[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(u[4]){if(!dt.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),wt(e)}else e._isValid=!1}var vt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function yt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}var bt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function _t(e){var t,n,r,i,o,a,s,u=vt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(u){var c=(t=u[4],n=u[3],r=u[2],i=u[5],o=u[6],a=u[7],s=[yt(t),Ee.indexOf(n),parseInt(r,10),parseInt(i,10),parseInt(o,10)],a&&s.push(parseInt(a,10)),s);if(!function(e,t,n){return!e||Ue.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(p(n).weekdayMismatch=!0,n._isValid=!1,!1)}(u[1],c,e))return;e._a=c,e._tzm=function(e,t,n){if(e)return bt[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}(u[8],u[9],u[10]),e._d=Pe.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function wt(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],p(e).empty=!0;var t,n,i,o,a,s=""+e._i,u=s.length,c=0;for(i=z(e._f,e._locale).match(N)||[],t=0;t<i.length;t++)o=i[t],(n=(s.match(le(o,e))||[])[0])&&((a=s.substr(0,s.indexOf(n))).length>0&&p(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),c+=n.length),B[o]?(n?p(e).empty=!1:p(e).unusedTokens.push(o),ge(o,n,e)):e._strict&&!n&&p(e).unusedTokens.push(o);p(e).charsLeftOver=u-c,s.length>0&&p(e).unusedInput.push(s),e._a[3]<=12&&!0===p(e).bigHour&&e._a[3]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),ct(e),st(e)}else _t(e);else mt(e)}function $t(e){var t=e._i,n=e._f;return e._locale=e._locale||at(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),_(t)?new b(st(t)):(u(t)?e._d=t:i(n)?function(e){var t,n,r,i,o;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)o=0,t=v({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],wt(t),h(t)&&(o+=p(t).charsLeftOver,o+=10*p(t).unusedTokens.length,p(t).score=o,(null==r||o<r)&&(r=o,n=t));f(e,n||t)}(e):n?wt(e):function(e){var t=e._i;a(t)?e._d=new Date(r.now()):u(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=gt.exec(e._i);null===t?(mt(e),!1===e._isValid&&(delete e._isValid,_t(e),!1===e._isValid&&(delete e._isValid,r.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):i(t)?(e._a=c(t.slice(0),(function(e){return parseInt(e,10)})),ct(e)):o(t)?function(e){if(!e._d){var t=M(e._i);e._a=c([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),ct(e)}}(e):s(t)?e._d=new Date(t):r.createFromInputFallback(e)}(e),h(e)||(e._d=null),e))}function xt(e,t,n,r,a){var s,u={};return!0!==n&&!1!==n||(r=n,n=void 0),(o(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||i(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=a,u._l=n,u._i=e,u._f=t,u._strict=r,(s=new b(st($t(u))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function qt(e,t,n,r){return xt(e,t,n,r,!1)}r.createFromInputFallback=S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var St=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=qt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()})),Et=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=qt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()}));function kt(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return qt();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Ct=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ot(e){var t=M(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,u=t.minute||0,c=t.second||0,l=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===ye.call(Ct,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<Ct.length;++r)if(e[Ct[r]]){if(n)return!1;parseFloat(e[Ct[r]])!==$(e[Ct[r]])&&(n=!0)}return!0}(t),this._milliseconds=+l+1e3*c+6e4*u+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=at(),this._bubble()}function Tt(e){return e instanceof Ot}function Dt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function At(e,t){H(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+F(~~(e/60),2)+t+F(~~e%60,2)}))}At("Z",":"),At("ZZ",""),ce("Z",ae),ce("ZZ",ae),pe(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Pt(ae,e)}));var It=/([\+\-]|\d\d)/gi;function Pt(e,t){var n=(t||"").match(e);if(null===n)return null;var r=((n[n.length-1]||[])+"").match(It)||["-",0,0],i=60*r[1]+$(r[2]);return 0===i?0:"+"===r[0]?i:-i}function Mt(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(_(e)||u(e)?e.valueOf():qt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):qt(e).local()}function jt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Rt(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Ft=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Nt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Lt(e,t){var n,r,i,o,a,u,c=e,f=null;return Tt(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:s(e)?(c={},t?c[t]=e:c.milliseconds=e):(f=Ft.exec(e))?(n="-"===f[1]?-1:1,c={y:0,d:$(f[2])*n,h:$(f[3])*n,m:$(f[4])*n,s:$(f[5])*n,ms:$(Dt(1e3*f[6]))*n}):(f=Nt.exec(e))?(n="-"===f[1]?-1:1,c={y:Ut(f[2],n),M:Ut(f[3],n),w:Ut(f[4],n),d:Ut(f[5],n),h:Ut(f[6],n),m:Ut(f[7],n),s:Ut(f[8],n)}):null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(o=qt(c.from),a=qt(c.to),i=o.isValid()&&a.isValid()?(a=Mt(a,o),o.isBefore(a)?u=Bt(o,a):((u=Bt(a,o)).milliseconds=-u.milliseconds,u.months=-u.months),u):{milliseconds:0,months:0},(c={}).ms=i.milliseconds,c.M=i.months),r=new Ot(c),Tt(e)&&l(e,"_locale")&&(r._locale=e._locale),r}function Ut(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Bt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Ht(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(C(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Vt(this,Lt(n="string"==typeof n?+n:n,r),e),this}}function Vt(e,t,n,i){var o=t._milliseconds,a=Dt(t._days),s=Dt(t._months);e.isValid()&&(i=null==i||i,s&&Ce(e,we(e,"Month")+s*n),a&&$e(e,"Date",we(e,"Date")+a*n),o&&e._d.setTime(e._d.valueOf()+o*n),i&&r.updateOffset(e,a||s))}Lt.fn=Ot.prototype,Lt.invalid=function(){return Lt(NaN)};var zt=Ht(1,"add"),Wt=Ht(-1,"subtract");function Yt(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Gt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=at(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Xt=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function Kt(){return this._locale}function Jt(e,t){return(e%t+t)%t}function Zt(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function Qt(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function en(e,t){H(0,[e,e.length],0,t)}function tn(e,t,n,r,i){var o;return null==e?Re(this,r,i).year:(t>(o=Fe(e,r,i))&&(t=o),nn.call(this,e,t,n,r,i))}function nn(e,t,n,r,i){var o=je(e,t,n,r,i),a=Pe(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}H(0,["gg",2],0,(function(){return this.weekYear()%100})),H(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),en("gggg","weekYear"),en("ggggg","weekYear"),en("GGGG","isoWeekYear"),en("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),R("weekYear",1),R("isoWeekYear",1),ce("G",ie),ce("g",ie),ce("GG",J,Y),ce("gg",J,Y),ce("GGGG",te,X),ce("gggg",te,X),ce("GGGGG",ne,K),ce("ggggg",ne,K),he(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=$(e)})),he(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),H("Q",0,"Qo","quarter"),I("quarter","Q"),R("quarter",7),ce("Q",W),pe("Q",(function(e,t){t[1]=3*($(e)-1)})),H("D",["DD",2],"Do","date"),I("date","D"),R("date",9),ce("D",J),ce("DD",J,Y),ce("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),pe(["D","DD"],2),pe("Do",(function(e,t){t[2]=$(e.match(J)[0])}));var rn=_e("Date",!0);H("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),R("dayOfYear",4),ce("DDD",ee),ce("DDDD",G),pe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=$(e)})),H("m",["mm",2],0,"minute"),I("minute","m"),R("minute",14),ce("m",J),ce("mm",J,Y),pe(["m","mm"],4);var on=_e("Minutes",!1);H("s",["ss",2],0,"second"),I("second","s"),R("second",15),ce("s",J),ce("ss",J,Y),pe(["s","ss"],5);var an,sn=_e("Seconds",!1);for(H("S",0,0,(function(){return~~(this.millisecond()/100)})),H(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),H(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),H(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),H(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),H(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),H(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),I("millisecond","ms"),R("millisecond",16),ce("S",ee,W),ce("SS",ee,Y),ce("SSS",ee,G),an="SSSS";an.length<=9;an+="S")ce(an,re);function un(e,t){t[6]=$(1e3*("0."+e))}for(an="S";an.length<=9;an+="S")pe(an,un);var cn=_e("Milliseconds",!1);H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var ln=b.prototype;function fn(e){return e}ln.add=zt,ln.calendar=function(e,t){var n=e||qt(),i=Mt(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",a=t&&(O(t[o])?t[o].call(this,n):t[o]);return this.format(a||this.localeData().calendar(o,this,qt(n)))},ln.clone=function(){return new b(this)},ln.diff=function(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=Mt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=P(t)){case"year":o=Yt(this,r)/12;break;case"month":o=Yt(this,r);break;case"quarter":o=Yt(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:w(o)},ln.endOf=function(e){var t;if(void 0===(e=P(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?Qt:Zt;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-Jt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-Jt(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-Jt(t,1e3)-1}return this._d.setTime(t),r.updateOffset(this,!0),this},ln.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=V(this,e);return this.localeData().postformat(t)},ln.from=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||qt(e).isValid())?Lt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ln.fromNow=function(e){return this.from(qt(),e)},ln.to=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||qt(e).isValid())?Lt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},ln.toNow=function(e){return this.to(qt(),e)},ln.get=function(e){return O(this[e=P(e)])?this[e]():this},ln.invalidAt=function(){return p(this).overflow},ln.isAfter=function(e,t){var n=_(e)?e:qt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=P(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},ln.isBefore=function(e,t){var n=_(e)?e:qt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=P(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},ln.isBetween=function(e,t,n,r){var i=_(e)?e:qt(e),o=_(t)?t:qt(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))},ln.isSame=function(e,t){var n,r=_(e)?e:qt(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=P(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},ln.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},ln.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},ln.isValid=function(){return h(this)},ln.lang=Xt,ln.locale=Gt,ln.localeData=Kt,ln.max=Et,ln.min=St,ln.parsingFlags=function(){return f({},p(this))},ln.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:j[n]});return t.sort((function(e,t){return e.priority-t.priority})),t}(e=M(e)),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit]);else if(O(this[e=P(e)]))return this[e](t);return this},ln.startOf=function(e){var t;if(void 0===(e=P(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?Qt:Zt;switch(e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Jt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=Jt(t,6e4);break;case"second":t=this._d.valueOf(),t-=Jt(t,1e3)}return this._d.setTime(t),r.updateOffset(this,!0),this},ln.subtract=Wt,ln.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},ln.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},ln.toDate=function(){return new Date(this.valueOf())},ln.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?V(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):O(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(n,"Z")):V(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ln.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},ln.toJSON=function(){return this.isValid()?this.toISOString():null},ln.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ln.unix=function(){return Math.floor(this.valueOf()/1e3)},ln.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ln.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ln.year=be,ln.isLeapYear=function(){return ve(this.year())},ln.weekYear=function(e){return tn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ln.isoWeekYear=function(e){return tn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},ln.quarter=ln.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},ln.month=Oe,ln.daysInMonth=function(){return xe(this.year(),this.month())},ln.week=ln.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},ln.isoWeek=ln.isoWeeks=function(e){var t=Re(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},ln.weeksInYear=function(){var e=this.localeData()._week;return Fe(this.year(),e.dow,e.doy)},ln.isoWeeksInYear=function(){return Fe(this.year(),1,4)},ln.date=rn,ln.day=ln.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},ln.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},ln.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},ln.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},ln.hour=ln.hours=Ze,ln.minute=ln.minutes=on,ln.second=ln.seconds=sn,ln.millisecond=ln.milliseconds=cn,ln.utcOffset=function(e,t,n){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Pt(ae,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=jt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!t||this._changeInProgress?Vt(this,Lt(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:jt(this)},ln.utc=function(e){return this.utcOffset(0,e)},ln.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(jt(this),"m")),this},ln.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Pt(oe,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},ln.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?qt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},ln.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ln.isLocal=function(){return!!this.isValid()&&!this._isUTC},ln.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ln.isUtc=Rt,ln.isUTC=Rt,ln.zoneAbbr=function(){return this._isUTC?"UTC":""},ln.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ln.dates=S("dates accessor is deprecated. Use date instead.",rn),ln.months=S("months accessor is deprecated. Use month instead",Oe),ln.years=S("years accessor is deprecated. Use year instead",be),ln.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),ln.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e={};if(v(e,this),(e=$t(e))._a){var t=e._isUTC?d(e._a):qt(e._a);this._isDSTShifted=this.isValid()&&x(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var dn=D.prototype;function pn(e,t,n,r){var i=at(),o=d().set(r,t);return i[n](o,e)}function hn(e,t,n){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return pn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=pn(e,r,n,"month");return i}function gn(e,t,n,r){"boolean"==typeof e?(s(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,s(t)&&(n=t,t=void 0),t=t||"");var i,o=at(),a=e?o._week.dow:0;if(null!=n)return pn(t,(n+a)%7,r,"day");var u=[];for(i=0;i<7;i++)u[i]=pn(t,(i+a)%7,r,"day");return u}dn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return O(r)?r.call(t,n):r},dn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,(function(e){return e.slice(1)})),this._longDateFormat[e])},dn.invalidDate=function(){return this._invalidDate},dn.ordinal=function(e){return this._ordinal.replace("%d",e)},dn.preparse=fn,dn.postformat=fn,dn.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return O(i)?i(e,t,n,r):i.replace(/%d/i,e)},dn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return O(n)?n(t):n.replace(/%s/i,t)},dn.set=function(e){var t,n;for(n in e)O(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},dn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||qe).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},dn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[qe.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},dn.monthsParse=function(e,t,n){var r,i,o;if(this._monthsParseExact)return ke.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=d([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},dn.monthsRegex=function(e){return this._monthsParseExact?(l(this,"_monthsRegex")||Ae.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=De),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},dn.monthsShortRegex=function(e){return this._monthsParseExact?(l(this,"_monthsRegex")||Ae.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=Te),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},dn.week=function(e){return Re(e,this._week.dow,this._week.doy).week},dn.firstDayOfYear=function(){return this._week.doy},dn.firstDayOfWeek=function(){return this._week.dow},dn.weekdays=function(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ne(n,this._week.dow):e?n[e.day()]:n},dn.weekdaysMin=function(e){return!0===e?Ne(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},dn.weekdaysShort=function(e){return!0===e?Ne(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},dn.weekdaysParse=function(e,t,n){var r,i,o;if(this._weekdaysParseExact)return He.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=d([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},dn.weekdaysRegex=function(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ye.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Ve),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},dn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ye.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ze),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},dn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ye.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=We),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},dn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},dn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},it("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===$(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=S("moment.lang is deprecated. Use moment.locale instead.",it),r.langData=S("moment.langData is deprecated. Use moment.localeData instead.",at);var mn=Math.abs;function vn(e,t,n,r){var i=Lt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function yn(e){return e<0?Math.floor(e):Math.ceil(e)}function bn(e){return 4800*e/146097}function _n(e){return 146097*e/4800}function wn(e){return function(){return this.as(e)}}var $n=wn("ms"),xn=wn("s"),qn=wn("m"),Sn=wn("h"),En=wn("d"),kn=wn("w"),Cn=wn("M"),On=wn("Q"),Tn=wn("y");function Dn(e){return function(){return this.isValid()?this._data[e]:NaN}}var An=Dn("milliseconds"),In=Dn("seconds"),Pn=Dn("minutes"),Mn=Dn("hours"),jn=Dn("days"),Rn=Dn("months"),Fn=Dn("years"),Nn=Math.round,Ln={ss:44,s:45,m:45,h:22,d:26,M:11};function Un(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}var Bn=Math.abs;function Hn(e){return(e>0)-(e<0)||+e}function Vn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Bn(this._milliseconds)/1e3,r=Bn(this._days),i=Bn(this._months);e=w(n/60),t=w(e/60),n%=60,e%=60;var o=w(i/12),a=i%=12,s=r,u=t,c=e,l=n?n.toFixed(3).replace(/\.?0+$/,""):"",f=this.asSeconds();if(!f)return"P0D";var d=f<0?"-":"",p=Hn(this._months)!==Hn(f)?"-":"",h=Hn(this._days)!==Hn(f)?"-":"",g=Hn(this._milliseconds)!==Hn(f)?"-":"";return d+"P"+(o?p+o+"Y":"")+(a?p+a+"M":"")+(s?h+s+"D":"")+(u||c||l?"T":"")+(u?g+u+"H":"")+(c?g+c+"M":"")+(l?g+l+"S":"")}var zn=Ot.prototype;return zn.isValid=function(){return this._isValid},zn.abs=function(){var e=this._data;return this._milliseconds=mn(this._milliseconds),this._days=mn(this._days),this._months=mn(this._months),e.milliseconds=mn(e.milliseconds),e.seconds=mn(e.seconds),e.minutes=mn(e.minutes),e.hours=mn(e.hours),e.months=mn(e.months),e.years=mn(e.years),this},zn.add=function(e,t){return vn(this,e,t,1)},zn.subtract=function(e,t){return vn(this,e,t,-1)},zn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=P(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+bn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(_n(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},zn.asMilliseconds=$n,zn.asSeconds=xn,zn.asMinutes=qn,zn.asHours=Sn,zn.asDays=En,zn.asWeeks=kn,zn.asMonths=Cn,zn.asQuarters=On,zn.asYears=Tn,zn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*$(this._months/12):NaN},zn._bubble=function(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*yn(_n(s)+a),a=0,s=0),u.milliseconds=o%1e3,e=w(o/1e3),u.seconds=e%60,t=w(e/60),u.minutes=t%60,n=w(t/60),u.hours=n%24,a+=w(n/24),i=w(bn(a)),s+=i,a-=yn(_n(i)),r=w(s/12),s%=12,u.days=a,u.months=s,u.years=r,this},zn.clone=function(){return Lt(this)},zn.get=function(e){return e=P(e),this.isValid()?this[e+"s"]():NaN},zn.milliseconds=An,zn.seconds=In,zn.minutes=Pn,zn.hours=Mn,zn.days=jn,zn.weeks=function(){return w(this.days()/7)},zn.months=Rn,zn.years=Fn,zn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Lt(e).abs(),i=Nn(r.as("s")),o=Nn(r.as("m")),a=Nn(r.as("h")),s=Nn(r.as("d")),u=Nn(r.as("M")),c=Nn(r.as("y")),l=i<=Ln.ss&&["s",i]||i<Ln.s&&["ss",i]||o<=1&&["m"]||o<Ln.m&&["mm",o]||a<=1&&["h"]||a<Ln.h&&["hh",a]||s<=1&&["d"]||s<Ln.d&&["dd",s]||u<=1&&["M"]||u<Ln.M&&["MM",u]||c<=1&&["y"]||["yy",c];return l[2]=t,l[3]=+e>0,l[4]=n,Un.apply(null,l)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},zn.toISOString=Vn,zn.toString=Vn,zn.toJSON=Vn,zn.locale=Gt,zn.localeData=Kt,zn.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Vn),zn.lang=Xt,H("X",0,0,"unix"),H("x",0,0,"valueOf"),ce("x",ie),ce("X",/[+-]?\d+(\.\d{1,3})?/),pe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))})),pe("x",(function(e,t,n){n._d=new Date($(e))})),r.version="2.24.0",t=qt,r.fn=ln,r.min=function(){var e=[].slice.call(arguments,0);return kt("isBefore",e)},r.max=function(){var e=[].slice.call(arguments,0);return kt("isAfter",e)},r.now=function(){return Date.now?Date.now():+new Date},r.utc=d,r.unix=function(e){return qt(1e3*e)},r.months=function(e,t){return hn(e,t,"months")},r.isDate=u,r.locale=it,r.invalid=g,r.duration=Lt,r.isMoment=_,r.weekdays=function(e,t,n){return gn(e,t,n,"weekdays")},r.parseZone=function(){return qt.apply(null,arguments).parseZone()},r.localeData=at,r.isDuration=Tt,r.monthsShort=function(e,t){return hn(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return gn(e,t,n,"weekdaysMin")},r.defineLocale=ot,r.updateLocale=function(e,t){if(null!=t){var n,r,i=Qe;null!=(r=rt(e))&&(i=r._config),t=T(i,t),(n=new D(t)).parentLocale=et[e],et[e]=n,it(e)}else null!=et[e]&&(null!=et[e].parentLocale?et[e]=et[e].parentLocale:null!=et[e]&&delete et[e]);return et[e]},r.locales=function(){return E(et)},r.weekdaysShort=function(e,t,n){return gn(e,t,n,"weekdaysShort")},r.normalizeUnits=P,r.relativeTimeRounding=function(e){return void 0===e?Nn:"function"==typeof e&&(Nn=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Ln[e]&&(void 0===t?Ln[e]:(Ln[e]=t,"s"===e&&(Ln.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=ln,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n(77)(e))},,function(e,t,n){"use strict";var r=n(28),i=n(299).includes,o=n(162);r({target:"Array",proto:!0,forced:!n(100)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},function(e,t,n){var r=n(43),i=n(210),o=n(56),a=n(156),s=n(214),u=n(301),c=i("wks"),l=r.Symbol,f=u?l:l&&l.withoutSetter||a;e.exports=function(e){return o(c,e)||(s&&o(l,e)?c[e]=l[e]:c[e]=f("Symbol."+e)),c[e]}},function(e,t,n){"use strict";var r=n(160),i=n(51),o=n(62),a=n(68),s=n(215),u=n(161);r("match",1,(function(e,t,n){return[function(t){var n=a(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var a=i(e),c=String(this);if(!a.global)return u(a,c);var l=a.unicode;a.lastIndex=0;for(var f,d=[],p=0;null!==(f=u(a,c));){var h=String(f[0]);d[p]=h,""===h&&(a.lastIndex=s(c,o(a.lastIndex),l)),p++}return 0===p?null:d}]}))},,,,,function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n(44))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(28),i=n(154),o=n(74),a=n(225),s=[].join,u=i!=Object,c=a("join",",");r({target:"Array",proto:!0,forced:u||!c},{join:function(e){return s.call(o(this),void 0===e?",":e)}})},function(e,t,n){var r=n(28),i=n(31),o=n(74),a=n(96).f,s=n(55),u=i((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||u,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(o(e),t)}})},function(e,t,n){var r=n(28),i=n(55),o=n(296),a=n(74),s=n(96),u=n(141);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),i=s.f,c=o(r),l={},f=0;c.length>f;)void 0!==(n=i(r,t=c[f++]))&&u(l,t,n);return l}})},function(e,t,n){"use strict";function isError(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return p(e,Error)}}function r(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)}function isDOMError(e){return"[object DOMError]"===Object.prototype.toString.call(e)}function i(e){return"[object DOMException]"===Object.prototype.toString.call(e)}function o(e){return"[object String]"===Object.prototype.toString.call(e)}function a(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function s(e){return"[object Object]"===Object.prototype.toString.call(e)}function u(e){return"undefined"!=typeof Event&&p(e,Event)}function c(e){return"undefined"!=typeof Element&&p(e,Element)}function l(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function f(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function d(e){return s(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function p(e,t){try{return e instanceof t}catch(e){return!1}}n.d(t,"d",(function(){return isError})),n.d(t,"e",(function(){return r})),n.d(t,"a",(function(){return isDOMError})),n.d(t,"b",(function(){return i})),n.d(t,"k",(function(){return o})),n.d(t,"i",(function(){return a})),n.d(t,"h",(function(){return s})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return c})),n.d(t,"j",(function(){return l})),n.d(t,"m",(function(){return f})),n.d(t,"l",(function(){return d})),n.d(t,"g",(function(){return p}))},,function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(50);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){"use strict";var r=n(28),i=n(88),o=n(329),a=n(31),s=n(83),u=n(227),c=n(332),l=n(64);r({target:"Promise",proto:!0,real:!0,forced:!!o&&a((function(){o.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=u(this,s("Promise")),n="function"==typeof e;return this.then(n?function(n){return c(t,e()).then((function(){return n}))}:e,n?function(n){return c(t,e()).then((function(){throw n}))}:e)}}),i||"function"!=typeof o||o.prototype.finally||l(o.prototype,"finally",s("Promise").prototype.finally)},function(e,t,n){"use strict";var r=n(160),i=n(51),o=n(65),a=n(62),s=n(89),u=n(68),c=n(215),l=n(161),f=Math.max,d=Math.min,p=Math.floor,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(e,t,n,r){var m=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,v=r.REPLACE_KEEPS_$0,y=m?"$":"$0";return[function(n,r){var i=u(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,i,r):t.call(String(i),n,r)},function(e,r){if(!m&&v||"string"==typeof r&&-1===r.indexOf(y)){var o=n(t,e,this,r);if(o.done)return o.value}var u=i(e),p=String(this),h="function"==typeof r;h||(r=String(r));var g=u.global;if(g){var _=u.unicode;u.lastIndex=0}for(var w=[];;){var $=l(u,p);if(null===$)break;if(w.push($),!g)break;""===String($[0])&&(u.lastIndex=c(p,a(u.lastIndex),_))}for(var x,q="",S=0,E=0;E<w.length;E++){$=w[E];for(var k=String($[0]),C=f(d(s($.index),p.length),0),O=[],T=1;T<$.length;T++)O.push(void 0===(x=$[T])?x:String(x));var D=$.groups;if(h){var A=[k].concat(O,C,p);void 0!==D&&A.push(D);var I=String(r.apply(void 0,A))}else I=b(k,p,C,O,D,r);C>=S&&(q+=p.slice(S,C)+I,S=C+k.length)}return q+p.slice(S)}];function b(e,n,r,i,a,s){var u=r+e.length,c=i.length,l=g;return void 0!==a&&(a=o(a),l=h),t.call(s,l,(function(t,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(u);case"<":s=a[o.slice(1,-1)];break;default:var l=+o;if(0===l)return t;if(l>c){var f=p(l/10);return 0===f?t:f<=c?void 0===i[f-1]?o.charAt(1):i[f-1]+o.charAt(1):t}s=i[l-1]}return void 0===s?"":s}))}}))},function(e,t,n){"use strict";var r=n(64),i=n(51),o=n(31),a=n(213),s=RegExp.prototype,u=s.toString,c=o((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),l="toString"!=u.name;(c||l)&&r(RegExp.prototype,"toString",(function(){var e=i(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in s)?a.call(e):n)}),{unsafe:!0})},function(e,t,n){var r=n(31);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){"use strict";var r=n(28),i=n(99),o=n(65),a=n(31),s=n(225),u=[],c=u.sort,l=a((function(){u.sort(void 0)})),f=a((function(){u.sort(null)})),d=s("sort");r({target:"Array",proto:!0,forced:l||!f||!d},{sort:function(e){return void 0===e?c.call(o(this)):c.call(o(this),i(e))}})},,function(e,t,n){"use strict";var r=n(28),i=n(335),o=n(68);r({target:"String",proto:!0,forced:!n(336)("includes")},{includes:function(e){return!!~String(o(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";(function(e){n.d(t,"e",(function(){return o})),n.d(t,"i",(function(){return a})),n.d(t,"h",(function(){return s})),n.d(t,"d",(function(){return u})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return f})),n.d(t,"f",(function(){return d})),n.d(t,"g",(function(){return p}));var r=n(150),i=(n(111),{});function o(){return Object(r.b)()?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function a(){var e=o(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function s(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function u(e){if(e.message)return e.message;if(e.exception&&e.exception.values&&e.exception.values[0]){var t=e.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||e.event_id||"<unknown>"}return e.event_id||"<unknown>"}function c(e){var t=o();if(!("console"in t))return e();var n=t.console,r={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(r[e]=n[e],n[e]=n[e].__sentry_original__)}));var i=e();return Object.keys(r).forEach((function(e){n[e]=r[e]})),i}function l(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||n||"Error"}function f(e,t){void 0===t&&(t={});try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{},Object.keys(t).forEach((function(n){e.exception.values[0].mechanism[n]=t[n]}))}catch(e){}}function d(){try{return document.location.href}catch(e){return""}}function p(e,t){if(!t)return 6e4;var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+t);return isNaN(r)?6e4:r-e}}).call(this,n(44))},function(e,t,n){var r=n(55),i=n(293),o=n(51),a=n(152),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(89),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},,function(e,t,n){var r=n(43),i=n(76),o=n(56),a=n(208),s=n(209),u=n(82),c=u.get,l=u.enforce,f=String(String).split("String");(e.exports=function(e,t,n,s){var u=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),l(n).source=f.join("string"==typeof t?t:"")),e!==r?(u?!d&&e[t]&&(c=!0):delete e[t],c?e[t]=n:i(e,t,n)):c?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},function(e,t,n){var r=n(68);e.exports=function(e){return Object(r(e))}},,,function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var r=n(160),i=n(51),o=n(68),a=n(466),s=n(161);r("search",1,(function(e,t,n){return[function(t){var n=o(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var o=i(e),u=String(this),c=o.lastIndex;a(c,0)||(o.lastIndex=0);var l=s(o,u);return a(o.lastIndex,c)||(o.lastIndex=c),null===l?-1:l.index}]}))},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n(44))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},,,function(e,t,n){var r=n(154),i=n(68);e.exports=function(e){return r(i(e))}},,function(e,t,n){var r=n(55),i=n(61),o=n(112);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},,function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return c})),n.d(t,"f",(function(){return l})),n.d(t,"e",(function(){return p})),n.d(t,"d",(function(){return m})),n.d(t,"b",(function(){return v})),n.d(t,"a",(function(){return y}));var r=n(4),i=n(286),o=n(48),a=n(446),s=n(199),u=n(111);function c(e,t,n){if(t in e){var r=e[t],i=n(r);if("function"==typeof i)try{i.prototype=i.prototype||{},Object.defineProperties(i,{__sentry_original__:{enumerable:!1,value:r}})}catch(e){}e[t]=i}}function l(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}function f(e){if(Object(o.d)(e)){var t=e,n={message:t.message,name:t.name,stack:t.stack};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}if(Object(o.f)(e)){var a=e,s={};s.type=a.type;try{s.target=Object(o.c)(a.target)?Object(i.a)(a.target):Object.prototype.toString.call(a.target)}catch(e){s.target="<unknown>"}try{s.currentTarget=Object(o.c)(a.currentTarget)?Object(i.a)(a.currentTarget):Object.prototype.toString.call(a.currentTarget)}catch(e){s.currentTarget="<unknown>"}for(var r in"undefined"!=typeof CustomEvent&&Object(o.g)(e,CustomEvent)&&(s.detail=a.detail),a)Object.prototype.hasOwnProperty.call(a,r)&&(s[r]=a);return s}return e}function d(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function p(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var r=m(e,t);return d(r)>n?p(e,t-1,n):r}function h(t,n){return"domain"===n&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":void 0!==e&&t===e?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":Object(o.l)(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+Object(s.a)(t)+"]":"symbol"==typeof t?"["+String(t)+"]":"bigint"==typeof t?"[BigInt: "+String(t)+"]":t}function g(e,t,n,r){if(void 0===n&&(n=1/0),void 0===r&&(r=new a.a),0===n)return function(e){var t=Object.prototype.toString.call(e);if("string"==typeof e)return e;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var n=h(e);return Object(o.i)(n)?n:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var i=h(t,e);if(Object(o.i)(i))return i;var s=f(t),u=Array.isArray(t)?[]:{};if(r.memoize(t))return"[Circular ~]";for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(u[c]=g(c,s[c],n-1,r));return r.unmemoize(t),u}function m(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,n){return g(e,n,t)})))}catch(e){return"**non-serializable**"}}function v(e,t){void 0===t&&(t=40);var n=Object.keys(f(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Object(u.d)(n[0],t);for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:Object(u.d)(i,t)}return""}function y(e){var t,n;if(Object(o.h)(e)){var i=e,a={};try{for(var s=Object(r.f)(Object.keys(i)),u=s.next();!u.done;u=s.next()){var c=u.value;void 0!==i[c]&&(a[c]=y(i[c]))}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return a}return Array.isArray(e)?e.map(y):e}}).call(this,n(44))},,function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r,i,o,a=n(465),s=n(43),u=n(50),c=n(76),l=n(56),f=n(155),d=n(133),p=s.WeakMap;if(a){var h=new p,g=h.get,m=h.has,v=h.set;r=function(e,t){return v.call(h,e,t),t},i=function(e){return g.call(h,e)||{}},o=function(e){return m.call(h,e)}}else{var y=f("state");d[y]=!0,r=function(e,t){return c(e,y,t),t},i=function(e){return l(e,y)?e[y]:{}},o=function(e){return l(e,y)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(297),i=n(43),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},function(e,t,n){"use strict";var r=n(28),i=n(516).trim;r({target:"String",proto:!0,forced:n(517)("trim")},{trim:function(){return i(this)}})},,,,function(e,t){e.exports=!1},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(55),i=n(43),o=n(158),a=n(312),s=n(61).f,u=n(157).f,c=n(228),l=n(213),f=n(300),d=n(64),p=n(31),h=n(82).set,g=n(224),m=n(37)("match"),v=i.RegExp,y=v.prototype,b=/a/g,_=/a/g,w=new v(b)!==b,$=f.UNSUPPORTED_Y;if(r&&o("RegExp",!w||$||p((function(){return _[m]=!1,v(b)!=b||v(_)==_||"/a/i"!=v(b,"i")})))){for(var x=function(e,t){var n,r=this instanceof x,i=c(e),o=void 0===t;if(!r&&i&&e.constructor===x&&o)return e;w?i&&!o&&(e=e.source):e instanceof x&&(o&&(t=l.call(e)),e=e.source),$&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var s=a(w?new v(e,t):v(e,t),r?this:y,x);return $&&n&&h(s,{sticky:n}),s},q=function(e){e in x||s(x,e,{configurable:!0,get:function(){return v[e]},set:function(t){v[e]=t}})},S=u(v),E=0;S.length>E;)q(S[E++]);y.constructor=x,x.prototype=y,d(i,"RegExp",x)}g("RegExp")},function(e,t,n){"use strict";var r=n(28),i=n(134),o=n(89),a=n(62),s=n(65),u=n(165),c=n(141),l=n(140),f=n(100),d=l("splice"),p=f("splice",{ACCESSORS:!0,0:0,1:2}),h=Math.max,g=Math.min;r({target:"Array",proto:!0,forced:!d||!p},{splice:function(e,t){var n,r,l,f,d,p,m=s(this),v=a(m.length),y=i(e,v),b=arguments.length;if(0===b?n=r=0:1===b?(n=0,r=v-y):(n=b-2,r=g(h(o(t),0),v-y)),v+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(l=u(m,r),f=0;f<r;f++)(d=y+f)in m&&c(l,f,m[d]);if(l.length=r,n<r){for(f=y;f<v-r;f++)p=f+n,(d=f+r)in m?m[p]=m[d]:delete m[p];for(f=v;f>v-r+n;f--)delete m[f-1]}else if(n>r)for(f=v-r;f>y;f--)p=f+n-1,(d=f+r-1)in m?m[p]=m[d]:delete m[p];for(f=0;f<n;f++)m[f+y]=arguments[f+2];return m.length=v-r+n,l}})},,,,,function(e,t,n){var r=n(55),i=n(153),o=n(112),a=n(74),s=n(152),u=n(56),c=n(293),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=a(e),t=s(t,!0),c)try{return l(e,t)}catch(e){}if(u(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t,n){var r=n(61).f,i=n(56),o=n(37)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r=n(99);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var r=n(55),i=n(31),o=n(56),a=Object.defineProperty,s={},u=function(e){throw e};e.exports=function(e,t){if(o(s,e))return s[e];t||(t={});var n=[][e],c=!!o(t,"ACCESSORS")&&t.ACCESSORS,l=o(t,0)?t[0]:u,f=o(t,1)?t[1]:void 0;return s[e]=!!n&&!i((function(){if(c&&!r)return!0;var e={length:-1};c?a(e,1,{enumerable:!0,get:u}):e[1]=1,n.call(e,l,f)}))}},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,f=-1;function d(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&p())}function p(){if(!l){var e=s(d);l=!0;for(var t=c.length;t;){for(u=c,c=[];++f<t;)u&&u[f].run();f=-1,t=c.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||l||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){var r=n(28),i=n(83),o=n(99),a=n(51),s=n(50),u=n(113),c=n(479),l=n(31),f=i("Reflect","construct"),d=l((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),p=!l((function(){f((function(){}))})),h=d||p;r({target:"Reflect",stat:!0,forced:h,sham:h},{construct:function(e,t){o(e),a(t);var n=arguments.length<3?e:o(arguments[2]);if(p&&!d)return f(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(c.apply(e,r))}var i=n.prototype,l=u(s(i)?i:Object.prototype),h=Function.apply.call(e,l,t);return s(h)?h:l}})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},,,,,function(e,t,n){var r;e.exports=(r=n(340),function(e){var t=r,n=t.lib,i=n.WordArray,o=n.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var u=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],u=e[t+1],p=e[t+2],h=e[t+3],g=e[t+4],m=e[t+5],v=e[t+6],y=e[t+7],b=e[t+8],_=e[t+9],w=e[t+10],$=e[t+11],x=e[t+12],q=e[t+13],S=e[t+14],E=e[t+15],k=o[0],C=o[1],O=o[2],T=o[3];k=c(k,C,O,T,a,7,s[0]),T=c(T,k,C,O,u,12,s[1]),O=c(O,T,k,C,p,17,s[2]),C=c(C,O,T,k,h,22,s[3]),k=c(k,C,O,T,g,7,s[4]),T=c(T,k,C,O,m,12,s[5]),O=c(O,T,k,C,v,17,s[6]),C=c(C,O,T,k,y,22,s[7]),k=c(k,C,O,T,b,7,s[8]),T=c(T,k,C,O,_,12,s[9]),O=c(O,T,k,C,w,17,s[10]),C=c(C,O,T,k,$,22,s[11]),k=c(k,C,O,T,x,7,s[12]),T=c(T,k,C,O,q,12,s[13]),O=c(O,T,k,C,S,17,s[14]),k=l(k,C=c(C,O,T,k,E,22,s[15]),O,T,u,5,s[16]),T=l(T,k,C,O,v,9,s[17]),O=l(O,T,k,C,$,14,s[18]),C=l(C,O,T,k,a,20,s[19]),k=l(k,C,O,T,m,5,s[20]),T=l(T,k,C,O,w,9,s[21]),O=l(O,T,k,C,E,14,s[22]),C=l(C,O,T,k,g,20,s[23]),k=l(k,C,O,T,_,5,s[24]),T=l(T,k,C,O,S,9,s[25]),O=l(O,T,k,C,h,14,s[26]),C=l(C,O,T,k,b,20,s[27]),k=l(k,C,O,T,q,5,s[28]),T=l(T,k,C,O,p,9,s[29]),O=l(O,T,k,C,y,14,s[30]),k=f(k,C=l(C,O,T,k,x,20,s[31]),O,T,m,4,s[32]),T=f(T,k,C,O,b,11,s[33]),O=f(O,T,k,C,$,16,s[34]),C=f(C,O,T,k,S,23,s[35]),k=f(k,C,O,T,u,4,s[36]),T=f(T,k,C,O,g,11,s[37]),O=f(O,T,k,C,y,16,s[38]),C=f(C,O,T,k,w,23,s[39]),k=f(k,C,O,T,q,4,s[40]),T=f(T,k,C,O,a,11,s[41]),O=f(O,T,k,C,h,16,s[42]),C=f(C,O,T,k,v,23,s[43]),k=f(k,C,O,T,_,4,s[44]),T=f(T,k,C,O,x,11,s[45]),O=f(O,T,k,C,E,16,s[46]),k=d(k,C=f(C,O,T,k,p,23,s[47]),O,T,a,6,s[48]),T=d(T,k,C,O,y,10,s[49]),O=d(O,T,k,C,S,15,s[50]),C=d(C,O,T,k,m,21,s[51]),k=d(k,C,O,T,x,6,s[52]),T=d(T,k,C,O,h,10,s[53]),O=d(O,T,k,C,w,15,s[54]),C=d(C,O,T,k,u,21,s[55]),k=d(k,C,O,T,b,6,s[56]),T=d(T,k,C,O,E,10,s[57]),O=d(O,T,k,C,v,15,s[58]),C=d(C,O,T,k,q,21,s[59]),k=d(k,C,O,T,g,6,s[60]),T=d(T,k,C,O,$,10,s[61]),O=d(O,T,k,C,p,15,s[62]),C=d(C,O,T,k,_,21,s[63]),o[0]=o[0]+k|0,o[1]=o[1]+C|0,o[2]=o[2]+O|0,o[3]=o[3]+T|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var o=e.floor(r/4294967296),a=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,u=s.words,c=0;c<4;c++){var l=u[c];u[c]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,r,i,o,a){var s=e+(t&n|~t&r)+i+a;return(s<<o|s>>>32-o)+t}function l(e,t,n,r,i,o,a){var s=e+(t&r|n&~r)+i+a;return(s<<o|s>>>32-o)+t}function f(e,t,n,r,i,o,a){var s=e+(t^n^r)+i+a;return(s<<o|s>>>32-o)+t}function d(e,t,n,r,i,o,a){var s=e+(n^(t|~r))+i+a;return(s<<o|s>>>32-o)+t}t.MD5=o._createHelper(u),t.HmacMD5=o._createHmacHelper(u)}(Math),r.MD5)},function(e,t,n){"use strict";function r(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}function c(e){var t=p();return function(){var n,r=g(e);if(t){var i=g(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){var t="function"==typeof Map?new Map:void 0;return(f=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return d(e,arguments,g(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),h(r,e)})(e)}function d(e,t,n){return(d=p()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&h(i,n.prototype),i}).apply(null,arguments)}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(480),n(492),n(500),n(502),n(503),n(506),n(360),n(510);var m=function(e){u(OError,e);var t,n,i,l=c(OError);function OError(e,t,n){var r;return a(this,OError),(r=l.call(this,e)).name=r.constructor.name,t&&(r.info=t),n&&(r.cause=n),r._oErrorTags,r}return t=OError,i=[{key:"tag",value:function(e,t,n){var r,i=e;return i._oErrorTags||(i._oErrorTags=[]),Error.captureStackTrace?(r={name:"TaggedError",message:t,info:n},Error.captureStackTrace(r,OError.tag)):r=new v(t||"",n),i._oErrorTags.length>=OError.maxTags&&(i._oErrorTags[1]===y?i._oErrorTags.splice(2,1):i._oErrorTags[1]=y),i._oErrorTags.push(r),e}},{key:"getFullInfo",value:function(e){var t={};if(!e)return t;var n=e;if(n.cause&&Object.assign(t,OError.getFullInfo(n.cause)),"object"===o(n.info)&&Object.assign(t,n.info),n._oErrorTags){var i,a=r(n._oErrorTags);try{for(a.s();!(i=a.n()).done;){var s=i.value;Object.assign(t,s.info)}}catch(e){a.e(e)}finally{a.f()}}return t}},{key:"getFullStack",value:function(e){if(!e)return"";var t=e,n=t.stack||"(no stack)";Array.isArray(t._oErrorTags)&&t._oErrorTags.length&&(n+="\n".concat(t._oErrorTags.map((function(e){return e.stack})).join("\n")));var r=t.cause&&OError.getFullStack(t.cause);return r&&(n+="\ncaused by:\n"+r.replace(/^/gm," ")),n}}],(n=[{key:"withInfo",value:function(e){return this.info=e,this}},{key:"withCause",value:function(e){return this.cause=e,this}}])&&s(t.prototype,n),i&&s(t,i),OError}(f(Error));m.maxTags=100;var v=function(e){u(TaggedError,e);var t=c(TaggedError);function TaggedError(){return a(this,TaggedError),t.apply(this,arguments)}return TaggedError}(m),y={name:"TaggedError",message:"... dropped tags",stack:"TaggedError: ... dropped tags"};e.exports=m},,function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var r=n(48);function i(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function o(e,t){var n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);var i=Math.max(t-60,0);i<5&&(i=0);var o=Math.min(i+140,r);return o>r-5&&(o=r),o===r&&(i=Math.max(o-140,0)),n=n.slice(i,o),i>0&&(n="'{snip} "+n),o<r&&(n+=" {snip}"),n}function a(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r<e.length;r++){var i=e[r];try{n.push(String(i))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function s(e,t){return!!Object(r.k)(e)&&(Object(r.j)(t)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t))}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r,i=n(51),o=n(302),a=n(211),s=n(133),u=n(303),c=n(207),l=n(155),f=l("IE_PROTO"),d=function(){},p=function(e){return"<script>"+e+"<\/script>"},h=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;h=r?function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=c("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};s[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(d.prototype=i(e),n=new d,d.prototype=null,n[f]=e):n=h(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(28),i=n(31),o=n(65),a=n(218),s=n(306);r({target:"Object",stat:!0,forced:i((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(o(e))}})},function(e,t,n){var r=n(70),i=n(341).f,o=n(144),a=n(344),s=n(234),u=n(485),c=n(490);e.exports=function(e,t){var n,l,f,d,p,h=e.target,g=e.global,m=e.stat;if(n=g?r:m?r[h]||s(h,{}):(r[h]||{}).prototype)for(l in t){if(d=t[l],f=e.noTargetGet?(p=i(n,l))&&p.value:n[l],!c(g?l:h+(m?".":"#")+l,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;u(d,f)}(e.sham||f&&f.sham)&&o(d,"sham",!0),a(n,l,d,e)}}},function(e,t,n){var r=n(71);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var r=n(171);e.exports=function(e){return Object(r(e))}},,,,,,,,,,,,,,,,function(e,t){e.exports={}},function(e,t,n){var r=n(89),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},function(e,t,n){var r=n(298),i=n(211);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t){e.exports={}},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){var r=n(98),i=n(154),o=n(65),a=n(62),s=n(165),u=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,l=4==e,f=6==e,d=5==e||f;return function(p,h,g,m){for(var v,y,b=o(p),_=i(b),w=r(h,g,3),$=a(_.length),x=0,q=m||s,S=t?q(p,$):n?q(p,0):void 0;$>x;x++)if((d||x in _)&&(y=w(v=_[x],x,b),e))if(t)S[x]=y;else if(y)switch(e){case 3:return!0;case 5:return v;case 6:return x;case 2:u.call(S,v)}else if(l)return!1;return f?-1:c||l?l:S}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},function(e,t,n){var r=n(81);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(31),i=n(37),o=n(226),a=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){"use strict";var r=n(152),i=n(61),o=n(112);e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},,function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(116),i=n(172),o=n(232);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},,,,,function(e,t,n){"use strict";(function(e){function r(){return"[object process]"===Object.prototype.toString.call(void 0!==e?e:0)}function i(e,t){return e.require(t)}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}))}).call(this,n(101))},,function(e,t,n){var r=n(50);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(31),i=n(81),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},function(e,t,n){var r=n(210),i=n(156),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t,n){var r=n(298),i=n(211).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(31),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==c||n!=u&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},function(e,t,n){"use strict";var r,i,o=n(213),a=n(300),s=RegExp.prototype.exec,u=String.prototype.replace,c=s,l=(r=/a/,i=/b*/g,s.call(r,"a"),s.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),f=a.UNSUPPORTED_Y||a.BROKEN_CARET,d=void 0!==/()??/.exec("")[1];(l||d||f)&&(c=function(e){var t,n,r,i,a=this,c=f&&a.sticky,p=o.call(a),h=a.source,g=0,m=e;return c&&(-1===(p=p.replace("y","")).indexOf("g")&&(p+="g"),m=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(h="(?: "+h+")",m=" "+m,g++),n=new RegExp("^(?:"+h+")",p)),d&&(n=new RegExp("^"+h+"$(?!\\s)",p)),l&&(t=a.lastIndex),r=s.call(c?n:a,m),c?r?(r.input=r.input.slice(g),r[0]=r[0].slice(g),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:l&&r&&(a.lastIndex=a.global?r.index+r[0].length:t),d&&r&&r.length>1&&u.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r}),e.exports=c},function(e,t,n){"use strict";n(18);var r=n(64),i=n(31),o=n(37),a=n(159),s=n(76),u=o("species"),c=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),l="$0"==="a".replace(/./,"$0"),f=o("replace"),d=!!/./[f]&&""===/./[f]("a","$0"),p=!i((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,f){var h=o(e),g=!i((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),m=g&&!i((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!g||!m||"replace"===e&&(!c||!l||d)||"split"===e&&!p){var v=/./[h],y=n(h,""[e],(function(e,t,n,r,i){return t.exec===a?g&&!i?{done:!0,value:v.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),b=y[0],_=y[1];r(String.prototype,e,b),r(RegExp.prototype,h,2==t?function(e,t){return _.call(e,this,t)}:function(e){return _.call(e,this)})}f&&s(RegExp.prototype[h],"sham",!0)}},function(e,t,n){var r=n(81),i=n(159);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var o=n.call(e,t);if("object"!=typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},function(e,t,n){var r=n(37),i=n(113),o=n(61),a=r("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},function(e,t,n){"use strict";var r=n(308),i=n(313);e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},function(e,t,n){var r=n(220),i=n(136),o=n(37)("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){var r=n(50),i=n(139),o=n(37)("species");e.exports=function(e,t){var n;return i(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[o])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t){!function(e,t,n){"use strict";var r=n.PassField=n.PassField||{};r.Config=r.Config||{},r.Config.locales={en:{lower:!0,msg:{pass:"password",and:"and",showPass:"Show password",hidePass:"Hide password",genPass:"Random password",passTooShort:"password is too short (min. length: {})",noCharType:"password must contain {}",digits:"digits",letters:"letters",letters_up:"letters in UPPER case",symbols:"symbols",inBlackList:"password is in list of top used passwords",passRequired:"password is required",equalTo:"password is equal to login",repeat:"password consists of repeating characters",badChars:"password contains bad characters: “{}”",weakWarn:"weak",invalidPassWarn:"*",weakTitle:"This password is weak",generateMsg:"To generate a strong password, click {} button."}},de:{lower:!1,msg:{pass:"Passwort",and:"und",showPass:"Passwort anzeigen",hidePass:"Passwort verbergen",genPass:"Zufallspasswort",passTooShort:"Passwort ist zu kurz (Mindestlänge: {})",noCharType:"Passwort muss {} enthalten",digits:"Ziffern",letters:"Buchstaben",letters_up:"Buchstaben in GROSSSCHRIFT",symbols:"Symbole",inBlackList:"Passwort steht auf der Liste der beliebtesten Passwörter",passRequired:"Passwort wird benötigt",equalTo:"Passwort ist wie Anmeldung",repeat:"Passwort besteht aus sich wiederholenden Zeichen",badChars:"Passwort enthält ungültige Zeichen: “{}”",weakWarn:"Schwach",invalidPassWarn:"*",weakTitle:"Dieses Passwort ist schwach",generateMsg:"Klicken Sie auf den {}-Button, um ein starkes Passwort zu generieren."}},fr:{lower:!0,msg:{pass:"mot de passe",and:"et",showPass:"Montrer le mot de passe",hidePass:"Cacher le mot de passe",genPass:"Mot de passe aléatoire",passTooShort:"le mot de passe est trop court (min. longueur: {})",noCharType:"le mot de passe doit contenir des {}",digits:"chiffres",letters:"lettres",letters_up:"lettres en MAJUSCULES",symbols:"symboles",inBlackList:"le mot de passe est dans la liste des plus utilisés",passRequired:"le mot de passe est requis",equalTo:"le mot de passe est le même que l'identifiant",repeat:"le mot de passe est une répétition de caractères",badChars:"le mot de passe contient des caractères incorrects: “{}”",weakWarn:"faible",invalidPassWarn:"*",weakTitle:"Ce mot de passe est faible",generateMsg:"Pour créer un mot de passe fort cliquez sur le bouton {}."}},it:{lower:!1,msg:{pass:"password",and:"e",showPass:"Mostra password",hidePass:"Nascondi password",genPass:"Password casuale",passTooShort:"la password è troppo breve (lunghezza min.: {})",noCharType:"la password deve contenere {}",digits:"numeri",letters:"lettere",letters_up:"lettere in MAIUSCOLO",symbols:"simboli",inBlackList:"la password è nella lista delle password più usate",passRequired:"è necessaria una password",equalTo:"la password è uguale al login",repeat:"la password è composta da caratteri che si ripetono",badChars:"la password contiene caratteri non accettati: “{}”",weakWarn:"debole",invalidPassWarn:"*",weakTitle:"Questa password è debole",generateMsg:"Per generare una password forte, clicca sul tasto {}."}},ru:{lower:!0,msg:{pass:"пароль",and:"и",showPass:"Показать пароль",hidePass:"Скрыть пароль",genPass:"Случайный пароль",passTooShort:"пароль слишком короткий (мин. длина: {})",noCharType:"в пароле должны быть {}",digits:"цифры",letters:"буквы",letters_up:"буквы в ВЕРХНЕМ регистре",symbols:"символы",inBlackList:"этот пароль часто используется в Интернете",passRequired:"пароль обязателен",equalTo:"пароль совпадает с логином",repeat:"пароль состоит из повторяющихся символов",badChars:"в пароле есть недопустимые символы: «{}»",weakWarn:"слабый",invalidPassWarn:"*",weakTitle:"Пароль слабый, его легко взломать",generateMsg:"Чтобы сгенерировать пароль, нажмите кнопку {}."}},ua:{lower:!0,msg:{pass:"пароль",and:"i",showPass:"Показати пароль",hidePass:"Сховати пароль",genPass:"Випадковий пароль",passTooShort:"пароль є занадто коротким (мiн. довжина: {})",noCharType:"пароль повинен містити {}",digits:"цифри",letters:"букви",letters_up:"букви у ВЕРХНЬОМУ регістрі",symbols:"cимволи",inBlackList:"пароль входить до списку паролей, що використовуються найчастіше",passRequired:"пароль є обов'язковим",equalTo:"пароль та логін однакові",repeat:"пароль містить повторювані символи",badChars:"пароль містить неприпустимі символи: «{}»",weakWarn:"слабкий",invalidPassWarn:"*",weakTitle:"Цей пароль є слабким",generateMsg:"Щоб ​​створити надійний пароль, натисніть кнопку {}."}},es:{lower:!0,msg:{pass:"contraseña",and:"y",showPass:"Mostrar contraseña",hidePass:"Ocultar contraseña",genPass:"Contraseña aleatoria",passTooShort:"contraseña demasiado corta (longitud mín.: {})",noCharType:"la contraseña debe contener {}",digits:"dígitos",letters:"letras",letters_up:"letras en MAYÚSCULAS",symbols:"símbolos",inBlackList:"la contraseña está en la lista de las contraseñas más usadas",passRequired:"se requiere contraseña",equalTo:"la contraseña es igual al inicio de sesión",repeat:"la contraseña tiene caracteres repetidos",badChars:"la contraseña contiene caracteres no permitidos: “{}”",weakWarn:"débil",invalidPassWarn:"*",weakTitle:"Esta contraseña es débil",generateMsg:"Para generar una contraseña segura, haga clic en el botón de {}."}},el:{lower:!0,msg:{pass:"πρόσβασης",and:"και",showPass:"Προβολή κωδικού πρόσβασης",hidePass:"Απόκρυψη κωδικού πρόσβασης",genPass:"Τυχαίος κωδικός πρόσβασης",passTooShort:"ο κωδικός πρόσβασης είναι πολύ μικρός (ελάχιστο μήκος: {})",noCharType:"ο κωδικός πρόσβασης πρέπει να περιέχει {}",digits:"ψηφία",letters:"λατινικά γράμματα",letters_up:"λατινικά γράμματα με ΚΕΦΑΛΑΙΑ",symbols:"σύμβολα",inBlackList:"ο κωδικός πρόσβασης βρίσκεται σε κατάλογο δημοφιλέστερων κωδικών",passRequired:"απαιτείται κωδικός πρόσβασης",equalTo:"ο κωδικός είναι όμοιος με το όνομα χρήστη",repeat:"ο κωδικός αποτελείται από επαναλαμβανόμενους χαρακτήρες",badChars:"ο κωδικός περιέχει μη επιτρεπτούς χαρακτήρες: “{}”",weakWarn:"αδύναμος",invalidPassWarn:"*",weakTitle:"Αυτός ο κωδικός πρόσβασης είναι αδύναμος",generateMsg:"Για να δημιουργήσετε δυνατό κωδικό πρόσβασης, κάντε κλικ στο κουμπί {}."}},pt:{lower:!0,msg:{pass:"senha",and:"e",showPass:"Mostrar senha",hidePass:"Ocultar senha",genPass:"Senha aleatória",passTooShort:"senha muito curta (tamanho mínimo: {})",noCharType:"Senha deve conter {}",digits:"dígito",letters:"letras",letters_up:"letras maiúsculas",symbols:"símbolos",inBlackList:"senha está na lista das senhas mais usadas",passRequired:"senha é obrigatória",equalTo:"senha igual ao login",repeat:"senha consiste em uma repetição de caracteres",badChars:"senha tem caracteres inválidos: “{}”",weakWarn:"fraca",invalidPassWarn:"*",weakTitle:"Esta senha é fraca",generateMsg:"Para gerar uma senha forte, clique no botão {}."}}}}(window.jQuery,document,window),function(e,t,n,r){"use strict";var i=n.PassField=n.PassField||{};i.CharTypes={DIGIT:"digits",LETTER:"letters",LETTER_UP:"letters_up",SYMBOL:"symbols",UNKNOWN:"unknown"},i.CheckModes={MODERATE:0,STRICT:1},i.Config={defaults:{pattern:"abcdef12",acceptRate:.8,allowEmpty:!0,isMasked:!0,showToggle:!0,showGenerate:!0,showWarn:!0,showTip:!0,tipPopoverStyle:{},strengthCheckTimeout:500,validationCallback:null,blackList:[],locale:"",localeMsg:{},warnMsgClassName:"help-inline",errorWrapClassName:"error",allowAnyChars:!0,checkMode:i.CheckModes.MODERATE,chars:{digits:"1234567890",letters:"abcdefghijklmnopqrstuvwxyzßабвгедёжзийклмнопрстуфхцчшщъыьэюяґєåäâáàãéèêëíìîїóòôõöüúùûýñçøåæþðαβγδεζηθικλμνξοπρσςτυφχψω",letters_up:"ABCDEFGHIJKLMNOPQRSTUVWXYZАБВГЕДЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯҐЄÅÄÂÁÀÃÉÈÊËÍÌÎЇÓÒÔÕÖÜÚÙÛÝÑÇØÅÆÞÐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ",symbols:"@#$%^&*()-_=+[]{};:<>/?!"},events:{generated:null,switched:null},nonMatchField:null,length:{min:null,max:null},maskBtn:{textMasked:"abc",textUnmasked:"&bull;&bull;&bull;",className:!1,classMasked:!1,classUnmasked:!1}},locales:i.Config?i.Config.locales:{},blackList:["password","123456","12345678","abc123","qwerty","monkey","letmein","dragon","111111","baseball","iloveyou","trustno1","1234567","sunshine","master","123123","welcome","shadow","ashley","football","jesus","michael","ninja","mustang","password1","p@ssw0rd","miss","root","secret"],generationChars:{digits:"1234567890",letters:"abcdefghijklmnopqrstuvwxyz",letters_up:"ABCDEFGHIJKLMNOPQRSTUVWXYZ"},dataAttr:"PassField.Field"},i.Field=function(a,s){function u(t){if(Q.showTip)if(Q.tipPopoverStyle&&e&&"function"==typeof e.fn.popover)e(Z.mainInput).popover(o.extend({title:null,placement:Q.tipPopoverStyle.placement||function(t,r){var i=e(r).position().top-e(n).scrollTop(),o=e(n).height()-i;return o>300||o>i?"bottom":"top"},animation:!1},Q.tipPopoverStyle,{trigger:"manual",html:!0,content:function(){return ue}}));else{Z.tip=O("div",{id:"tip",className:"tip"},{position:"absolute",margin:"0",padding:"0",width:t.width+"px"}),F(Z.mainInput,Z.tip);var r=O("div",{id:"tip-arr-wrap",className:"tip-arr-wrap"});Z.tip.appendChild(r),r.appendChild(O("div",{id:"tip-arr",className:"tip-arr"})),r.appendChild(O("div",{id:"tip-arr-in",className:"tip-arr-in"})),Z.tipBody=O("div",{id:"tip-body",className:"tip-body"}),Z.tip.appendChild(Z.tipBody)}}function c(){Z.genBtn&&(Z.genBtn.style.display=re||ie&&!oe?"block":"none"),Z.maskBtn&&(Z.maskBtn.style.display=re||ie&&!ae?"block":"none"),f();var e=P(d()),t=l();Z.maskBtn&&"none"!=Z.maskBtn.style.display&&(t+=R(Z.maskBtn,"width"),M(Z.maskBtn,{top:e.top,left:e.left+e.width-t,height:e.height})),Z.genBtn&&"none"!=Z.genBtn.style.display&&(t+=R(Z.genBtn,"width"),M(Z.genBtn,{top:e.top,left:e.left+e.width-t,height:e.height}),Z.genBtnInner.style.marginTop=Math.max(0,Math.round((e.height-19)/2))+"px"),Z.placeholder&&"none"!=Z.placeholder.style.display&&M(Z.placeholder,{top:e.top,left:e.left+7,height:e.height}),Z.tip&&"none"!=Z.tip.style.display&&M(Z.tip,{left:e.left,top:e.top+e.height,width:e.width})}function l(){var e=R(d(),"paddingRight");return Math.max(fe,e)}function f(){if(Q.showTip)if(Z.tip)Z.tip.style.display=te&&ie?"block":"none";else if(te&&ie){if(!se||ue!=se){var t=e(Z.mainInput).data("popover")||e(Z.mainInput).data("bs.popover"),n=t.options,r=n.animation;se&&(n.animation=!1);var i=d().offsetWidth-2,o=t.$tip;o?o.width(i):t.options.template&&(t.options.template=t.options.template.replace('class="popover"','class="popover" style="width: '+i+'px"')),Z.clearInput&&(t.$element=e(d())),e(Z.mainInput).popover("show"),se=ue,n.animation=r}}else se&&(se=null,e(Z.mainInput).popover("hide"))}function d(){return ee?Z.mainInput:Z.clearInput||Z.mainInput}function p(){d().focus()}function h(e){var t="mouseover"===e.type,n=e.relatedTarget?e.relatedTarget:t?e.fromElement:e.toElement;(!n||!n.id||0!=n.id.indexOf(ce+"btn")&&n!==Z.mainInput&&n!==Z.clearInput)&&(re=t,c())}function g(e){var t,n=e?e.which||e.keyCode:null,r=n===pe||n===de;t=Z.clearInput?ee?Z.clearInput.value=Z.mainInput.value:Z.mainInput.value=Z.clearInput.value:Z.mainInput.value,Q.strengthCheckTimeout>0&&!te&&!r?(Y&&clearTimeout(Y),Y=setTimeout(q,Q.strengthCheckTimeout)):q(),Z.placeholder&&!t&&(Z.placeholder.style.display="block"),m()}function m(){if(Z.passLengthChecker){var e=d().value;ee&&(e=e.replace(/./g,K.passSymbol)),N(Z.passLengthChecker,e);var t=Z.passLengthChecker.offsetWidth;t+=R(Z.mainInput,"paddingLeft");var n=0,r=I(d()).width,i=!1,o=l();if(Z.maskBtn){var a=t>r-(n=R(Z.maskBtn,"width"))-o;ae!=a&&(i=!0,ae=a)}if(Z.genBtn){var s=t>r-n-R(Z.genBtn,"width")-o;oe!=s&&(i=!0,oe=s)}i&&c()}}function v(){Z.placeholder&&(Z.placeholder.style.display="none")}function y(){G&&(clearTimeout(G),G=null),X&&(clearTimeout(X),X=null),ie=!0,c()}function b(){G=setTimeout((function(){G=null,ie=!1,c(),Q.isMasked&&!X&&(X=setTimeout((function(){X=null,w(!0,!1)}),1500))}),100)}function _(){te&&q()}function w(e,t){t===r&&(t=!0);var n=e!=ee;if(e=e===r?!ee:!!e,K.changeType){var i=d(),a=$(i);i.setAttribute("type",e?"password":"text"),t&&(x(i,a),i.focus())}else{var s=j(d(),"display")||"block",u=e?Z.clearInput:Z.mainInput,l=e?Z.mainInput:Z.clearInput;ee!=e&&o.each(["paddingRight","width","backgroundImage","backgroundPosition","backgroundRepeat","backgroundAttachment","border"],(function(e){var t=u.style[e];t&&(l.style[e]=t)}));var f=$(u);l.style.display=s,u.style.display="none",l.value=u.value,t&&(x(l,f),l.focus()),Z.mainInput.nextSibling!=Z.clearInput&&F(Z.mainInput,Z.clearInput)}Z.maskBtn&&(N(Z.maskBtn,e?Q.maskBtn.textMasked:Q.maskBtn.textUnmasked),e?(Q.maskBtn.classUnmasked&&B(Z.maskBtn,Q.maskBtn.classUnmasked,!0),Q.maskBtn.classMasked&&U(Z.maskBtn,Q.maskBtn.classMasked,!0)):(Q.maskBtn.classMasked&&B(Z.maskBtn,Q.maskBtn.classMasked,!0),Q.maskBtn.classUnmasked&&U(Z.maskBtn,Q.maskBtn.classUnmasked,!0)),Z.maskBtn.title=e?z.msg.showPass:z.msg.hidePass),ee=e,m(),c(),n&&V("switched",ee)}function $(e){return"number"==typeof e.selectionStart&&"number"==typeof e.selectionEnd?{start:e.selectionStart,end:e.selectionEnd}:null}function x(e,t){t&&"number"==typeof e.selectionStart&&"number"==typeof e.selectionEnd&&(e.selectionStart=t.start,e.selectionEnd=t.end)}function q(){Y&&(clearTimeout(Y),Y=null);var e=d().value,t=function(e){var t=k(Q.pattern,i.CharTypes.SYMBOL),n=k(e,Q.allowAnyChars?i.CharTypes.SYMBOL:i.CharTypes.UNKNOWN),r=[],a=0;o.each(t,(function(e){if(a++,!n[e]){var t=z.msg[e];if(e==i.CharTypes.SYMBOL){var o=Q.chars[e];o.length>4&&(o=o.substring(0,4)),t=t+" ("+o+")"}r.push(t)}}));var s=1-r.length/a;if(r.length&&(r=[S(r)]),Q.checkMode==i.CheckModes.MODERATE){var u=0;o.each(n,(function(e){t[e]||u++})),s+=u/a}var c=Q.pattern.length,l=e.length/c-1;if(Q.length&&Q.length.min&&e.length<Q.length.min&&(l=-10,Q.length.min>c&&(c=Q.length.min)),0>l?(s+=l,r.push(z.msg.passTooShort.replace("{}",c.toString()))):Q.checkMode==i.CheckModes.MODERATE&&(s+=l/a),e.length>2){for(var f=e.charAt(0),d=!0,p=0;p<e.length;p++)if(e.charAt(p)!=f){d=!1;break}d&&(s=0,r=[z.msg.repeat])}return 0>s&&(s=0),s>1&&(s=1),{strength:s,messages:r,charTypes:n}}(e);if(0==e.length)t={strength:Q.allowEmpty?0:null,messages:[z.msg.passRequired]};else{!Q.allowAnyChars&&t.charTypes[i.CharTypes.UNKNOWN]&&(t={strength:null,messages:[z.msg.badChars.replace("{}",t.charTypes[i.CharTypes.UNKNOWN])]}),delete t.charTypes;var n=!1;o.each(Q.blackList,(function(t){return t!=e||(n=!0,!1)})),n&&(t={strength:0,messages:[z.msg.inBlackList]}),e&&e===function(){if(!Q.nonMatchField)return null;var e=L(Q.nonMatchField);return e?e.value:null}()&&(t={strength:0,messages:[z.msg.equalTo]})}if("function"==typeof Q.validationCallback){var r,a,s=Q.validationCallback(Z.mainInput,t);s&&s.messages&&o.isArray(s.messages)&&(r=s.messages),s&&Object.prototype.hasOwnProperty.call(s,"strength")&&("number"==typeof s.strength||null===s.strength)&&(a=s.strength),r&&r.length?(t.messages=r,t.strength=a):a&&a>t.strength&&(t.strength=a)}return 0==e.length&&Q.allowEmpty?(E(),ne={strength:0},!0):null===t.strength||t.strength<Q.acceptRate?(function(e,t){var n="",r="";if(null===e)n=z.msg.invalidPassWarn,r=t[0].charAt(0).toUpperCase()+t[0].substring(1);else if(n=z.msg.weakWarn,r="",t)for(var i=0;i<t.length;i++){var o=t[i].charAt(0);0==i?(r+=z.msg.weakTitle+": ",z.lower&&(o=o.toLowerCase())):(r+="<br/>",o=o.toUpperCase()),(r+=o+t[i].substring(1))&&"."!=r.charAt(r.length-1)&&(r+=".")}if(r&&"."!=r.charAt(r.length-1)&&(r+="."),ne={strength:e,message:r},Z.warnMsg&&(N(Z.warnMsg,n),Z.warnMsg.title=r,Q.errorWrapClassName&&U(Z.wrapper,Q.errorWrapClassName,!0)),Q.showTip){var a=r;Z.genBtn&&(a+="<br/>"+z.msg.generateMsg.replace("{}",'<div class="'+C("btn-gen-help")+'"></div>')),ue=a,Z.tipBody&&N(Z.tipBody,a)}te=!0,c()}(t.strength,t.messages),!1):(E(),ne={strength:t.strength},!0)}function S(e){for(var t=e[0],n=1;n<e.length;n++)t+=n==e.length-1?" "+z.msg.and+" ":", ",t+=e[n];return z.msg.noCharType.replace("{}",t)}function E(){Z.warnMsg&&(N(Z.warnMsg,""),Z.warnMsg.title="",Q.errorWrapClassName&&B(Z.wrapper,Q.errorWrapClassName,!0)),ue=null,te=!1,c()}function k(e,t){for(var n={},r=0;r<e.length;r++){var i=e.charAt(r),a=t;o.each(Q.chars,(function(e,t){return!(t.indexOf(i)>=0)||(a=e,!1)})),n[a]=(n[a]||"")+i}return n}function C(e){return ce+e}function O(e,t,n){return t.id&&(t.id=function(e){return ce+e+"-"+W}(t.id)),t.className&&(t.className=C(t.className)),o.newEl(e,t,n)}function T(e){try{return e.getBoundingClientRect()}catch(e){return{top:0,left:0}}}function D(e){var t=e.ownerDocument;if(!t)return{top:0,left:0};var r=T(e);return{top:r.top+(n.pageYOffset||0)-(t.documentElement.clientTop||0),left:r.left+(n.pageXOffset||0)-(t.documentElement.clientLeft||0)}}function A(e){var n;try{n=e.offsetParent}catch(e){}for(n||(n=t.documentElement);n&&"html"!=n.nodeName.toLowerCase()&&"static"===j(n,"position");)n=n.offsetParent;return n||t.documentElement}function I(e){return{width:e.offsetWidth,height:e.offsetHeight}}function P(e){return o.extend(D(e),I(e))}function M(e,t){if(t.height&&!isNaN(t.height)&&(e.style.height=t.height+"px",e.style.lineHeight=t.height+"px"),t.width&&!isNaN(t.width)&&(e.style.width=t.width+"px"),t.top||t.left){if("none"==j(e,"display"))return e.style.top=t.top+"px",void(e.style.left=t.left+"px");var n,r,i;if(i=D(e),((r=j(e,"top")||0)+(n=j(e,"left")||0)+"").indexOf("auto")>-1){var o=function(e){var t,n={top:0,left:0};if("fixed"===j(e,"position"))t=T(e);else{var r=A(e);t=D(e),"html"!=r.nodeName.toLowerCase()&&(n=D(r)),n.top+=R(r,"borderTopWidth"),n.left+=R(r,"borderLeftWidth")}return{top:t.top-n.top-R(e,"marginTop"),left:t.left-n.left-R(e,"marginLeft")}}(e);r=o.top,n=o.left}else r=parseFloat(r)||0,n=parseFloat(n)||0;t.top&&(e.style.top=t.top-i.top+r+"px"),t.left&&(e.style.left=t.left-i.left+n+"px")}}function j(e,t){var r="function"==typeof n.getComputedStyle?n.getComputedStyle(e,null):e.currentStyle;return r?r[t]:null}function R(e,t){var n=j(e,t);if(!n)return 0;var r=parseFloat(n);return isNaN(r)?0:r}function F(e,t){e.parentNode&&e.parentNode.insertBefore(t,e.nextSibling)}function N(e,n){try{e.innerHTML=n}catch(i){var r=t.createElement("c");for(r.innerHTML=n;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(r)}}function L(e){return"string"==typeof e?t.getElementById(e):e.jquery?e[0]:e}function U(e,t,n){H(e,t,n)||(e.className=e.className+(e.className?" ":"")+(!0===n?t:C(t)))}function B(e,t,n){H(e,t,n)&&(e.className=(" "+e.className+" ").replace((!0===n?t:C(t))+" ","").replace(/^\s+|\s+$/g,""))}function H(e,t,n){return t=" "+(!0===n?t:C(t))+" ",(" "+e.className+" ").replace(/[\n\t]/g," ").indexOf(t)>-1}function V(t,n){if(e)try{e(Z.mainInput).trigger(le+t,n)}catch(e){}if(Q.events&&"function"==typeof Q.events[t])try{Q.events[t].call(Z.mainInput,n)}catch(e){}}var z,W,Y,G,X,K,J=i.Config,Z={},Q=o.extend({},J.defaults,s),ee=!0,te=!1,ne=null,re=!1,ie=!1,oe=!1,ae=!1,se=!1,ue=null,ce="a_pf-",le="pass:",fe=5,de=46,pe=8;this.toggleMasking=function(e){w(e)},this.setPass=function(e){Z.mainInput.value=e,Z.clearInput&&(Z.clearInput.value=e),g()},this.validatePass=q,this.getPassValidationMessage=function(){return ne?ne.message:null},this.getPassStrength=function(){return ne?ne.strength:-1},function(){Q.blackList=(Q.blackList||[]).concat(i.Config.blackList),"string"==typeof a&&(a=t.getElementById(a)),Z.mainInput=a,Z.mainInput&&(function(){var e=Q.locale;!e&&navigator.language&&(e=navigator.language.replace(/\-.*/g,"")),e&&(z=J.locales[e]),z&&(z=o.extend({},J.locales.en,z)),z||(z=o.extend({},J.locales.en)),Q.localeMsg&&o.extend(z.msg,Q.localeMsg)}(),(W=Z.mainInput.id)||(W="i"+Math.round(1e5*Math.random()),Z.mainInput.id=W),function(){var e=!0,n=!0,r=t.createElement("input");"placeholder"in r||(e=!1),r.setAttribute("style","position:absolute;left:-10000px;top:-10000px;"),t.body.appendChild(r);try{r.setAttribute("type","password")}catch(e){n=!1}t.body.removeChild(r);var i=t.createElement("div");i.setAttribute("style","display:inline-block"),i.style.paddingLeft=i.style.width="1px",t.body.appendChild(i);var o=2==i.offsetWidth,a="inline-block"===j(i,"display");t.body.removeChild(i);var s=navigator.userAgent.indexOf("AppleWebKit")>=0||navigator.userAgent.indexOf("Opera")>=0||navigator.userAgent.indexOf("Firefox")>=0&&navigator.platform.indexOf("Mac")>=0?"•":"●";K={placeholders:e,changeType:n,boxModel:o,hasInlineBlock:a,passSymbol:s}}(),function(){var e=P(Z.mainInput);e.top+=R(Z.mainInput,"marginTop"),Z.wrapper=Z.mainInput.parentNode,U(Z.wrapper,"wrap"),K.hasInlineBlock||U(Z.wrapper,"wrap-no-ib"),"static"==j(Z.wrapper,"position")&&(Z.wrapper.style.position="relative"),Q.length&&Q.length.max&&Z.mainInput.setAttribute("maxLength",Q.length.max.toString()),function(){if(!K.changeType){Z.clearInput=O("input",{type:"text",id:"txt-clear",className:"txt-clear",value:Z.mainInput.value},{display:"none"});var e=Z.mainInput.className;e&&U(Z.clearInput,e,!0);var t=Z.mainInput.style.cssText;t&&(Z.clearInput.style.cssText=t),o.each(["maxLength","size","placeholder"],(function(e){var t=Z.mainInput.getAttribute(e);t&&Z.clearInput.setAttribute(e,t)})),F(Z.mainInput,Z.clearInput)}U(Z.mainInput,"txt-pass")}(),Q.showWarn&&(Z.warnMsg=O("div",{id:"warn",className:"warn"},{margin:"0 0 0 3px"}),Q.warnMsgClassName&&U(Z.warnMsg,Q.warnMsgClassName,!0),F(Z.clearInput||Z.mainInput,Z.warnMsg)),Q.showToggle&&(Z.maskBtn=O("div",{id:"btn-mask",className:"btn-mask",title:z.msg.showPass},{position:"absolute",margin:"0",padding:"0"}),U(Z.maskBtn,"btn"),Q.maskBtn.className&&U(Z.maskBtn,Q.maskBtn.className,!0),Q.maskBtn.classMasked&&U(Z.maskBtn,Q.maskBtn.classMasked,!0),N(Z.maskBtn,Q.maskBtn.textMasked),F(Z.mainInput,Z.maskBtn)),Q.showGenerate&&(Z.genBtn=O("div",{id:"btn-gen",className:"btn-gen",title:z.msg.genPass},{position:"absolute",margin:"0",padding:"0"}),U(Z.genBtn,"btn"),F(Z.mainInput,Z.genBtn),Z.genBtnInner=O("div",{id:"btn-gen-i",className:"btn-gen-i",title:z.msg.genPass}),Z.genBtn.appendChild(Z.genBtnInner)),u(e),function(e){if(K.placeholders)!Z.mainInput.getAttribute("placeholder")&&Z.mainInput.getAttribute("data-placeholder")&&Z.mainInput.setAttribute("placeholder",Z.mainInput.getAttribute("data-placeholder"));else{var t=Z.mainInput.getAttribute("placeholder")||Z.mainInput.getAttribute("data-placeholder");t&&(Z.placeholder=O("div",{id:"placeholder",className:"placeholder"},{position:"absolute",margin:"0",padding:"0",height:e.height+"px",lineHeight:e.height+"px"}),N(Z.placeholder,t),F(Z.mainInput,Z.placeholder))}}(e),K.passSymbol&&(Z.passLengthChecker=O("div",{id:"len"},{position:"absolute",height:j(Z.mainInput,"height"),top:"-10000px",left:"-10000px",display:"block",color:"transparent",border:"none"}),F(Z.mainInput,Z.passLengthChecker),setTimeout((function(){o.each(["marginLeft","fontFamily","fontSize","fontWeight","fontStyle","fontVariant"],(function(e){var t=j(Z.mainInput,e);t&&(Z.passLengthChecker.style[e]=t)}))}),50)),setTimeout(c,0)}(),function(){if(o.each(Z.clearInput?[Z.mainInput,Z.clearInput]:[Z.mainInput],(function(e){o.attachEvent(e,"onkeyup",g),o.attachEvent(e,"onfocus",y),o.attachEvent(e,"onblur",b),o.attachEvent(e,"onmouseover",h),o.attachEvent(e,"onmouseout",h),Z.placeholder&&o.attachEvent(e,"onkeydown",v)})),o.attachEvent(n,"onresize",c),Z.maskBtn&&(o.attachEvent(Z.maskBtn,"onclick",(function(){w()})),o.attachEvent(Z.maskBtn,"onmouseover",h),o.attachEvent(Z.maskBtn,"onmouseout",h)),Z.genBtn&&(o.attachEvent(Z.genBtn,"onclick",(function(){!function(){var e=function(){var e="",t=k(Q.pattern,i.CharTypes.SYMBOL),n=[];return o.each(t,(function(e,t){for(var r=0;r<t.length;r++)n.push(e)})),n.sort((function(){return.7-Math.random()})),o.each(n,(function(t){var n=J.generationChars[t];n?Q.chars[t]&&Q.chars[t].indexOf(n)<0&&(n=Q.chars[t]):n=Q.chars[t],e+=o.selectRandom(n)})),e}();Z.mainInput.value=e,Z.clearInput&&(Z.clearInput.value=e),V("generated",e),w(!1),Y&&(clearTimeout(Y),Y=null),q(),Z.placeholder&&(Z.placeholder.style.display="none")}()})),o.attachEvent(Z.genBtn,"onmouseover",h),o.attachEvent(Z.genBtn,"onmouseout",h)),Z.placeholder&&o.attachEvent(Z.placeholder,"onclick",p),Q.nonMatchField){var e=L(Q.nonMatchField);e&&o.attachEvent(e,"onkeyup",_)}}(),w(Q.isMasked,!1),("function"==typeof Z.mainInput.hasAttribute&&Z.mainInput.hasAttribute("autofocus")||Z.mainInput.getAttribute("autofocus"))&&(Z.mainInput.focus(),y()),function(t,n){e&&e(Z.mainInput).data(t,n)}(i.Config.dataAttr,this))}.call(this)};var o={extend:function(){for(var e=arguments,t=1;t<e.length;t++)o.each(e[t],(function(t,n){e[0][t]=o.isArray(e[0][t])||o.isArray(n)?e[0][t]?e[0][t].concat(n||[]):n:o.isElement(n)?n:"object"==typeof e[0][t]&&"object"==typeof n&&null!==n?o.extend({},e[0][t],n):"object"==typeof n&&null!==n?o.extend({},n):n}));return e[0]},newEl:function(e,n,r){var i=t.createElement(e);return n&&o.each(n,(function(e,t){t&&(i[e]=t)})),r&&o.each(r,(function(e,t){t&&(i.style[e]=t)})),i},attachEvent:function(e,t,r){var i=e[t];e[t]=function(e){e||(e=n.event),r(e),"function"==typeof i&&i(e)}},each:function(e,t){if(o.isArray(e)){for(var n=0;n<e.length;n++)if(!1===t(e[n]))return}else for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&!1===t(r,e[r]))return},isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},isElement:function(t){if(!t)return!1;try{return t instanceof HTMLElement||e&&t instanceof jQuery}catch(e){return"object"==typeof t&&t.nodeType||t.jquery}},selectRandom:function(e){var t=Math.floor(Math.random()*e.length);return o.isArray(e)?e[t]:e.charAt(t)},contains:function(e,t){if(!e)return!1;var n=!1;return o.each(e,(function(e){return e!==t||(n=!0,!1)})),n}};e&&(e.fn.passField=function(e){return this.each((function(){new i.Field(this,e)}))},e.fn.togglePassMasking=function(t){return this.each((function(){var n=e(this).data(i.Config.dataAttr);n&&n.toggleMasking(t)}))},e.fn.setPass=function(t){return this.each((function(){var n=e(this).data(i.Config.dataAttr);n&&n.setPass(t)}))},e.fn.validatePass=function(){var t=!0;return this.each((function(){var n=e(this).data(i.Config.dataAttr);n&&!n.validatePass()&&(t=!1)})),t},e.fn.getPassValidationMessage=function(){var e=this.first();if(e){var t=e.data(i.Config.dataAttr);if(t)return t.getPassValidationMessage()}return null},e.fn.getPassStrength=function(){var e=this.first();if(e){var t=e.data(i.Config.dataAttr);if(t)return t.getPassStrength()}return null}),e&&e.validator&&jQuery.validator.addMethod("passfield",(function(t,n){return e(n).validatePass()}),(function(t,n){return e(n).getPassValidationMessage()}))}(window.jQuery,document,window)},,function(e,t,n){var r=n(169),i=n(171);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(71),i=n(170),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(116),i=n(343),o=n(173),a=n(233),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(143);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){var r=n(145),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},,function(e,t,n){"use strict";n(6);var r,i=n(28),o=n(55),a=n(370),s=n(43),u=n(302),c=n(64),l=n(137),f=n(56),d=n(371),p=n(316),h=n(216).codeAt,g=n(539),m=n(97),v=n(540),y=n(82),b=s.URL,_=v.URLSearchParams,w=v.getState,$=y.set,x=y.getterFor("URL"),q=Math.floor,S=Math.pow,E=/[A-Za-z]/,k=/[\d+-.A-Za-z]/,C=/\d/,O=/^(0x|0X)/,T=/^[0-7]+$/,D=/^\d+$/,A=/^[\dA-Fa-f]+$/,I=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,P=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,M=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,j=/[\u0009\u000A\u000D]/g,R=function(e,t){var n,r,i;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(n=N(t.slice(1,-1))))return"Invalid host";e.host=n}else if(Y(e)){if(t=g(t),I.test(t))return"Invalid host";if(null===(n=F(t)))return"Invalid host";e.host=n}else{if(P.test(t))return"Invalid host";for(n="",r=p(t),i=0;i<r.length;i++)n+=z(r[i],U);e.host=n}},F=function(e){var t,n,r,i,o,a,s,u=e.split(".");if(u.length&&""==u[u.length-1]&&u.pop(),(t=u.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(i=u[r]))return e;if(o=10,i.length>1&&"0"==i.charAt(0)&&(o=O.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?D:8==o?T:A).test(i))return e;a=parseInt(i,o)}n.push(a)}for(r=0;r<t;r++)if(a=n[r],r==t-1){if(a>=S(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*S(256,3-r);return s},N=function(e){var t,n,r,i,o,a,s,u=[0,0,0,0,0,0,0,0],c=0,l=null,f=0,d=function(){return e.charAt(f)};if(":"==d()){if(":"!=e.charAt(1))return;f+=2,l=++c}for(;d();){if(8==c)return;if(":"!=d()){for(t=n=0;n<4&&A.test(d());)t=16*t+parseInt(d(),16),f++,n++;if("."==d()){if(0==n)return;if(f-=n,c>6)return;for(r=0;d();){if(i=null,r>0){if(!("."==d()&&r<4))return;f++}if(!C.test(d()))return;for(;C.test(d());){if(o=parseInt(d(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;f++}u[c]=256*u[c]+i,2!=++r&&4!=r||c++}if(4!=r)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;u[c++]=t}else{if(null!==l)return;f++,l=++c}}if(null!==l)for(a=c-l,c=7;0!=c&&a>0;)s=u[c],u[c--]=u[l+a-1],u[l+--a]=s;else if(8!=c)return;return u},L=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=q(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(t=r,n=i),t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},U={},B=d({},U,{" ":1,'"':1,"<":1,">":1,"`":1}),H=d({},B,{"#":1,"?":1,"{":1,"}":1}),V=d({},H,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),z=function(e,t){var n=h(e,0);return n>32&&n<127&&!f(t,e)?e:encodeURIComponent(e)},W={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Y=function(e){return f(W,e.scheme)},G=function(e){return""!=e.username||""!=e.password},X=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},K=function(e,t){var n;return 2==e.length&&E.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},J=function(e){var t;return e.length>1&&K(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},Z=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&K(t[0],!0)||t.pop()},Q=function(e){return"."===e||"%2e"===e.toLowerCase()},ee={},te={},ne={},re={},ie={},oe={},ae={},se={},ue={},ce={},le={},fe={},de={},pe={},he={},ge={},me={},ve={},ye={},be={},_e={},we=function(e,t,n,i){var o,a,s,u,c,l=n||ee,d=0,h="",g=!1,m=!1,v=!1;for(n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(M,"")),t=t.replace(j,""),o=p(t);d<=o.length;){switch(a=o[d],l){case ee:if(!a||!E.test(a)){if(n)return"Invalid scheme";l=ne;continue}h+=a.toLowerCase(),l=te;break;case te:if(a&&(k.test(a)||"+"==a||"-"==a||"."==a))h+=a.toLowerCase();else{if(":"!=a){if(n)return"Invalid scheme";h="",l=ne,d=0;continue}if(n&&(Y(e)!=f(W,h)||"file"==h&&(G(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=h,n)return void(Y(e)&&W[e.scheme]==e.port&&(e.port=null));h="","file"==e.scheme?l=pe:Y(e)&&i&&i.scheme==e.scheme?l=re:Y(e)?l=se:"/"==o[d+1]?(l=ie,d++):(e.cannotBeABaseURL=!0,e.path.push(""),l=ye)}break;case ne:if(!i||i.cannotBeABaseURL&&"#"!=a)return"Invalid scheme";if(i.cannotBeABaseURL&&"#"==a){e.scheme=i.scheme,e.path=i.path.slice(),e.query=i.query,e.fragment="",e.cannotBeABaseURL=!0,l=_e;break}l="file"==i.scheme?pe:oe;continue;case re:if("/"!=a||"/"!=o[d+1]){l=oe;continue}l=ue,d++;break;case ie:if("/"==a){l=ce;break}l=ve;continue;case oe:if(e.scheme=i.scheme,a==r)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query;else if("/"==a||"\\"==a&&Y(e))l=ae;else if("?"==a)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query="",l=be;else{if("#"!=a){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.path.pop(),l=ve;continue}e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query,e.fragment="",l=_e}break;case ae:if(!Y(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,l=ve;continue}l=ce}else l=ue;break;case se:if(l=ue,"/"!=a||"/"!=h.charAt(d+1))continue;d++;break;case ue:if("/"!=a&&"\\"!=a){l=ce;continue}break;case ce:if("@"==a){g&&(h="%40"+h),g=!0,s=p(h);for(var y=0;y<s.length;y++){var b=s[y];if(":"!=b||v){var _=z(b,V);v?e.password+=_:e.username+=_}else v=!0}h=""}else if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&Y(e)){if(g&&""==h)return"Invalid authority";d-=p(h).length+1,h="",l=le}else h+=a;break;case le:case fe:if(n&&"file"==e.scheme){l=ge;continue}if(":"!=a||m){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&Y(e)){if(Y(e)&&""==h)return"Invalid host";if(n&&""==h&&(G(e)||null!==e.port))return;if(u=R(e,h))return u;if(h="",l=me,n)return;continue}"["==a?m=!0:"]"==a&&(m=!1),h+=a}else{if(""==h)return"Invalid host";if(u=R(e,h))return u;if(h="",l=de,n==fe)return}break;case de:if(!C.test(a)){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&Y(e)||n){if(""!=h){var w=parseInt(h,10);if(w>65535)return"Invalid port";e.port=Y(e)&&w===W[e.scheme]?null:w,h=""}if(n)return;l=me;continue}return"Invalid port"}h+=a;break;case pe:if(e.scheme="file","/"==a||"\\"==a)l=he;else{if(!i||"file"!=i.scheme){l=ve;continue}if(a==r)e.host=i.host,e.path=i.path.slice(),e.query=i.query;else if("?"==a)e.host=i.host,e.path=i.path.slice(),e.query="",l=be;else{if("#"!=a){J(o.slice(d).join(""))||(e.host=i.host,e.path=i.path.slice(),Z(e)),l=ve;continue}e.host=i.host,e.path=i.path.slice(),e.query=i.query,e.fragment="",l=_e}}break;case he:if("/"==a||"\\"==a){l=ge;break}i&&"file"==i.scheme&&!J(o.slice(d).join(""))&&(K(i.path[0],!0)?e.path.push(i.path[0]):e.host=i.host),l=ve;continue;case ge:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&K(h))l=ve;else if(""==h){if(e.host="",n)return;l=me}else{if(u=R(e,h))return u;if("localhost"==e.host&&(e.host=""),n)return;h="",l=me}continue}h+=a;break;case me:if(Y(e)){if(l=ve,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(l=ve,"/"!=a))continue}else e.fragment="",l=_e;else e.query="",l=be;break;case ve:if(a==r||"/"==a||"\\"==a&&Y(e)||!n&&("?"==a||"#"==a)){if(".."===(c=(c=h).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(Z(e),"/"==a||"\\"==a&&Y(e)||e.path.push("")):Q(h)?"/"==a||"\\"==a&&Y(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&K(h)&&(e.host&&(e.host=""),h=h.charAt(0)+":"),e.path.push(h)),h="","file"==e.scheme&&(a==r||"?"==a||"#"==a))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==a?(e.query="",l=be):"#"==a&&(e.fragment="",l=_e)}else h+=z(a,H);break;case ye:"?"==a?(e.query="",l=be):"#"==a?(e.fragment="",l=_e):a!=r&&(e.path[0]+=z(a,U));break;case be:n||"#"!=a?a!=r&&("'"==a&&Y(e)?e.query+="%27":e.query+="#"==a?"%23":z(a,U)):(e.fragment="",l=_e);break;case _e:a!=r&&(e.fragment+=z(a,B))}d++}},$e=function(e){var t,n,r=l(this,$e,"URL"),i=arguments.length>1?arguments[1]:void 0,a=String(e),s=$(r,{type:"URL"});if(void 0!==i)if(i instanceof $e)t=x(i);else if(n=we(t={},String(i)))throw TypeError(n);if(n=we(s,a,null,t))throw TypeError(n);var u=s.searchParams=new _,c=w(u);c.updateSearchParams(s.query),c.updateURL=function(){s.query=String(u)||null},o||(r.href=qe.call(r),r.origin=Se.call(r),r.protocol=Ee.call(r),r.username=ke.call(r),r.password=Ce.call(r),r.host=Oe.call(r),r.hostname=Te.call(r),r.port=De.call(r),r.pathname=Ae.call(r),r.search=Ie.call(r),r.searchParams=Pe.call(r),r.hash=Me.call(r))},xe=$e.prototype,qe=function(){var e=x(this),t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,u=e.fragment,c=t+":";return null!==i?(c+="//",G(e)&&(c+=n+(r?":"+r:"")+"@"),c+=L(i),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},Se=function(){var e=x(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&Y(e)?t+"://"+L(e.host)+(null!==n?":"+n:""):"null"},Ee=function(){return x(this).scheme+":"},ke=function(){return x(this).username},Ce=function(){return x(this).password},Oe=function(){var e=x(this),t=e.host,n=e.port;return null===t?"":null===n?L(t):L(t)+":"+n},Te=function(){var e=x(this).host;return null===e?"":L(e)},De=function(){var e=x(this).port;return null===e?"":String(e)},Ae=function(){var e=x(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Ie=function(){var e=x(this).query;return e?"?"+e:""},Pe=function(){return x(this).searchParams},Me=function(){var e=x(this).fragment;return e?"#"+e:""},je=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(o&&u(xe,{href:je(qe,(function(e){var t=x(this),n=String(e),r=we(t,n);if(r)throw TypeError(r);w(t.searchParams).updateSearchParams(t.query)})),origin:je(Se),protocol:je(Ee,(function(e){var t=x(this);we(t,String(e)+":",ee)})),username:je(ke,(function(e){var t=x(this),n=p(String(e));if(!X(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=z(n[r],V)}})),password:je(Ce,(function(e){var t=x(this),n=p(String(e));if(!X(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=z(n[r],V)}})),host:je(Oe,(function(e){var t=x(this);t.cannotBeABaseURL||we(t,String(e),le)})),hostname:je(Te,(function(e){var t=x(this);t.cannotBeABaseURL||we(t,String(e),fe)})),port:je(De,(function(e){var t=x(this);X(t)||(""==(e=String(e))?t.port=null:we(t,e,de))})),pathname:je(Ae,(function(e){var t=x(this);t.cannotBeABaseURL||(t.path=[],we(t,e+"",me))})),search:je(Ie,(function(e){var t=x(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",we(t,e,be)),w(t.searchParams).updateSearchParams(t.query)})),searchParams:je(Pe),hash:je(Me,(function(e){var t=x(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",we(t,e,_e)):t.fragment=null}))}),c(xe,"toJSON",(function(){return qe.call(this)}),{enumerable:!0}),c(xe,"toString",(function(){return qe.call(this)}),{enumerable:!0}),b){var Re=b.createObjectURL,Fe=b.revokeObjectURL;Re&&c($e,"createObjectURL",(function(e){return Re.apply(b,arguments)})),Fe&&c($e,"revokeObjectURL",(function(e){return Fe.apply(b,arguments)}))}m($e,"URL"),i({global:!0,forced:!a,sham:!o},{URL:$e})},,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));function r(e){try{return e&&"function"==typeof e&&e.name||"<anonymous>"}catch(e){return"<anonymous>"}}},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;!function(global){var qq=function(e){"use strict";return{hide:function(){return e.style.display="none",this},attach:function(t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n),function(){qq(e).detach(t,n)}},detach:function(t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.attachEvent&&e.detachEvent("on"+t,n),this},contains:function(t){return!!t&&(e===t||(e.contains?e.contains(t):!!(8&t.compareDocumentPosition(e))))},insertBefore:function(t){return t.parentNode.insertBefore(e,t),this},remove:function(){return e.parentNode.removeChild(e),this},css:function(t){if(null==e.style)throw new qq.Error("Can't apply style to node as it is not on the HTMLElement prototype chain!");return null!=t.opacity&&"string"!=typeof e.style.opacity&&void 0!==e.filters&&(t.filter="alpha(opacity="+Math.round(100*t.opacity)+")"),qq.extend(e.style,t),this},hasClass:function(t,n){var r=new RegExp("(^| )"+t+"( |$)");return r.test(e.className)||!(!n||!r.test(e.parentNode.className))},addClass:function(t){return qq(e).hasClass(t)||(e.className+=" "+t),this},removeClass:function(t){var n=new RegExp("(^| )"+t+"( |$)");return e.className=e.className.replace(n," ").replace(/^\s+|\s+$/g,""),this},getByClass:function(t,n){var r,i=[];return n&&e.querySelector?e.querySelector("."+t):e.querySelectorAll?e.querySelectorAll("."+t):(r=e.getElementsByTagName("*"),qq.each(r,(function(e,n){qq(n).hasClass(t)&&i.push(n)})),n?i[0]:i)},getFirstByClass:function(t){return qq(e).getByClass(t,!0)},children:function(){for(var t=[],n=e.firstChild;n;)1===n.nodeType&&t.push(n),n=n.nextSibling;return t},setText:function(t){return e.innerText=t,e.textContent=t,this},clearText:function(){return qq(e).setText("")},hasAttribute:function(t){var n;return e.hasAttribute?!!e.hasAttribute(t)&&null==/^false$/i.exec(e.getAttribute(t)):void 0!==(n=e[t])&&null==/^false$/i.exec(n)}}},ExifRestorer;!function(){"use strict";var div;qq.canvasToBlob=function(e,t,n){return qq.dataUriToBlob(e.toDataURL(t,n))},qq.dataUriToBlob=function(e){var t,n,r,i,o,a,s,u;return n=e.split(",")[0].indexOf("base64")>=0?atob(e.split(",")[1]):decodeURI(e.split(",")[1]),i=e.split(",")[0].split(":")[1].split(";")[0],t=new ArrayBuffer(n.length),r=new Uint8Array(t),qq.each(n,(function(e,t){r[e]=t.charCodeAt(0)})),o=t,a=i,s=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,(u=s&&new s)?(u.append(o),u.getBlob(a)):new Blob([o],{type:a})},qq.log=function(e,t){window.console&&(t&&"info"!==t?window.console[t]?window.console[t](e):window.console.log("<"+t+"> "+e):window.console.log(e))},qq.isObject=function(e){return e&&!e.nodeType&&"[object Object]"===Object.prototype.toString.call(e)},qq.isFunction=function(e){return"function"==typeof e},qq.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)||e&&window.ArrayBuffer&&e.buffer&&e.buffer.constructor===ArrayBuffer},qq.isItemList=function(e){return"[object DataTransferItemList]"===Object.prototype.toString.call(e)},qq.isNodeList=function(e){return"[object NodeList]"===Object.prototype.toString.call(e)||e.item&&e.namedItem},qq.isString=function(e){return"[object String]"===Object.prototype.toString.call(e)},qq.trimStr=function(e){return String.prototype.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},qq.format=function(e){var t=Array.prototype.slice.call(arguments,1),n=e,r=n.indexOf("{}");return qq.each(t,(function(e,t){var i=n.substring(0,r),o=n.substring(r+2);if((r=(n=i+t+o).indexOf("{}",r+t.length))<0)return!1})),n},qq.isFile=function(e){return window.File&&"[object File]"===Object.prototype.toString.call(e)},qq.isFileList=function(e){return window.FileList&&"[object FileList]"===Object.prototype.toString.call(e)},qq.isFileOrInput=function(e){return qq.isFile(e)||qq.isInput(e)},qq.isInput=function(e,t){var n=function(e){var n=e.toLowerCase();return t?"file"!==n:"file"===n};return!!(window.HTMLInputElement&&"[object HTMLInputElement]"===Object.prototype.toString.call(e)&&e.type&&n(e.type))||!!(e.tagName&&"input"===e.tagName.toLowerCase()&&e.type&&n(e.type))},qq.isBlob=function(e){if(window.Blob&&"[object Blob]"===Object.prototype.toString.call(e))return!0},qq.isXhrUploadSupported=function(){var e=document.createElement("input");return e.type="file",void 0!==e.multiple&&"undefined"!=typeof File&&"undefined"!=typeof FormData&&void 0!==qq.createXhrInstance().upload},qq.createXhrInstance=function(){if(window.XMLHttpRequest)return new XMLHttpRequest;try{return new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(e){return qq.log("Neither XHR or ActiveX are supported!","error"),null}},qq.isFolderDropSupported=function(e){return e.items&&e.items.length>0&&e.items[0].webkitGetAsEntry},qq.isFileChunkingSupported=function(){return!qq.androidStock()&&qq.isXhrUploadSupported()&&(void 0!==File.prototype.slice||void 0!==File.prototype.webkitSlice||void 0!==File.prototype.mozSlice)},qq.sliceBlob=function(e,t,n){return(e.slice||e.mozSlice||e.webkitSlice).call(e,t,n)},qq.arrayBufferToHex=function(e){var t="",n=new Uint8Array(e);return qq.each(n,(function(e,n){var r=n.toString(16);r.length<2&&(r="0"+r),t+=r})),t},qq.readBlobToHex=function(e,t,n){var r=qq.sliceBlob(e,t,t+n),i=new FileReader,o=new qq.Promise;return i.onload=function(){o.success(qq.arrayBufferToHex(i.result))},i.onerror=o.failure,i.readAsArrayBuffer(r),o},qq.extend=function(e,t,n){return qq.each(t,(function(t,r){n&&qq.isObject(r)?(void 0===e[t]&&(e[t]={}),qq.extend(e[t],r,!0)):e[t]=r})),e},qq.override=function(e,t){var n={},r=t(n);return qq.each(r,(function(t,r){void 0!==e[t]&&(n[t]=e[t]),e[t]=r})),e},qq.indexOf=function(e,t,n){if(e.indexOf)return e.indexOf(t,n);n=n||0;var r=e.length;for(n<0&&(n+=r);n<r;n+=1)if(e.hasOwnProperty(n)&&e[n]===t)return n;return-1},qq.getUniqueId=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))},qq.ie=function(){return-1!==navigator.userAgent.indexOf("MSIE")||-1!==navigator.userAgent.indexOf("Trident")},qq.ie7=function(){return-1!==navigator.userAgent.indexOf("MSIE 7")},qq.ie8=function(){return-1!==navigator.userAgent.indexOf("MSIE 8")},qq.ie10=function(){return-1!==navigator.userAgent.indexOf("MSIE 10")},qq.ie11=function(){return qq.ie()&&-1!==navigator.userAgent.indexOf("rv:11")},qq.edge=function(){return navigator.userAgent.indexOf("Edge")>=0},qq.safari=function(){return void 0!==navigator.vendor&&-1!==navigator.vendor.indexOf("Apple")},qq.chrome=function(){return void 0!==navigator.vendor&&-1!==navigator.vendor.indexOf("Google")},qq.opera=function(){return void 0!==navigator.vendor&&-1!==navigator.vendor.indexOf("Opera")},qq.firefox=function(){return!qq.edge()&&!qq.ie11()&&-1!==navigator.userAgent.indexOf("Mozilla")&&void 0!==navigator.vendor&&""===navigator.vendor},qq.windows=function(){return"Win32"===navigator.platform},qq.android=function(){return-1!==navigator.userAgent.toLowerCase().indexOf("android")},qq.androidStock=function(){return qq.android()&&navigator.userAgent.toLowerCase().indexOf("chrome")<0},qq.ios6=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf(" OS 6_")},qq.ios7=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf(" OS 7_")},qq.ios8=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf(" OS 8_")},qq.ios800=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf(" OS 8_0 ")},qq.ios=function(){return-1!==navigator.userAgent.indexOf("iPad")||-1!==navigator.userAgent.indexOf("iPod")||-1!==navigator.userAgent.indexOf("iPhone")},qq.iosChrome=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf("CriOS")},qq.iosSafari=function(){return qq.ios()&&!qq.iosChrome()&&-1!==navigator.userAgent.indexOf("Safari")},qq.iosSafariWebView=function(){return qq.ios()&&!qq.iosChrome()&&!qq.iosSafari()},qq.preventDefault=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},qq.toElement=(div=document.createElement("div"),function(e){div.innerHTML=e;var t=div.firstChild;return div.removeChild(t),t}),qq.each=function(e,t){var n;if(e)if(window.Storage&&e.constructor===window.Storage)for(n=0;n<e.length&&!1!==t(e.key(n),e.getItem(e.key(n)));n++);else if(qq.isArray(e)||qq.isItemList(e)||qq.isNodeList(e))for(n=0;n<e.length&&!1!==t(n,e[n]);n++);else if(qq.isString(e))for(n=0;n<e.length&&!1!==t(n,e.charAt(n));n++);else for(n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&!1===t(n,e[n]))break},qq.bind=function(e,t){if(qq.isFunction(e)){var n=Array.prototype.slice.call(arguments,2);return function(){var r=qq.extend([],n);return arguments.length&&(r=r.concat(Array.prototype.slice.call(arguments))),e.apply(t,r)}}throw new Error("first parameter must be a function!")},qq.obj2url=function(e,t,n){var r=[],i="&",o=function(e,n){var i=t?/\[\]$/.test(t)?t:t+"["+n+"]":n;"undefined"!==i&&"undefined"!==n&&r.push("object"==typeof e?qq.obj2url(e,i,!0):"[object Function]"===Object.prototype.toString.call(e)?encodeURIComponent(i)+"="+encodeURIComponent(e()):encodeURIComponent(i)+"="+encodeURIComponent(e))};return!n&&t?(i=/\?/.test(t)?/\?$/.test(t)?"":"&":"?",r.push(t),r.push(qq.obj2url(e))):"[object Array]"===Object.prototype.toString.call(e)&&void 0!==e?qq.each(e,(function(e,t){o(t,e)})):null!=e&&"object"==typeof e?qq.each(e,(function(e,t){o(t,e)})):r.push(encodeURIComponent(t)+"="+encodeURIComponent(e)),t?r.join(i):r.join(i).replace(/^&/,"").replace(/%20/g,"+")},qq.obj2FormData=function(e,t,n){return t||(t=new FormData),qq.each(e,(function(e,r){e=n?n+"["+e+"]":e,qq.isObject(r)?qq.obj2FormData(r,t,e):qq.isFunction(r)?t.append(e,r()):t.append(e,r)})),t},qq.obj2Inputs=function(e,t){var n;return t||(t=document.createElement("form")),qq.obj2FormData(e,{append:function(e,r){(n=document.createElement("input")).setAttribute("name",e),n.setAttribute("value",r),t.appendChild(n)}}),t},qq.parseJson=function(json){return window.JSON&&qq.isFunction(JSON.parse)?JSON.parse(json):eval("("+json+")")},qq.getExtension=function(e){var t=e.lastIndexOf(".")+1;if(t>0)return e.substr(t,e.length-t)},qq.getFilename=function(e){return qq.isInput(e)?e.value.replace(/.*(\/|\\)/,""):qq.isFile(e)&&null!==e.fileName&&void 0!==e.fileName?e.fileName:e.name},qq.DisposeSupport=function(){var e=[];return{dispose:function(){var t;do{(t=e.shift())&&t()}while(t)},attach:function(){var e=arguments;this.addDisposer(qq(e[0]).attach.apply(this,Array.prototype.slice.call(arguments,1)))},addDisposer:function(t){e.push(t)}}}}(),function(){"use strict";void 0===(__WEBPACK_AMD_DEFINE_RESULT__=function(){return qq}.call(exports,__webpack_require__,exports,module))||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}(),function(){"use strict";qq.Error=function(e){this.message="[Fine Uploader "+qq.version+"] "+e},qq.Error.prototype=new Error}(),qq.version="5.15.4",qq.supportedFeatures=function(){"use strict";var e,t,n,r,i,o,a,s,u,c,l,f,d,p,h,g;function m(){return!!window.XMLHttpRequest&&void 0!==qq.createXhrInstance().withCredentials}function v(){return void 0!==window.XDomainRequest}return e=function(){var e,t=!0;try{(e=document.createElement("input")).type="file",qq(e).hide(),e.disabled&&(t=!1)}catch(e){t=!1}return t}(),t=(r=e&&qq.isXhrUploadSupported())&&!qq.androidStock(),i=(n=r&&(("draggable"in(g=document.createElement("span"))||"ondragstart"in g&&"ondrop"in g)&&!qq.android()&&!qq.ios()))&&(qq.chrome()||qq.opera())&&void 0!==navigator.userAgent.match(/Chrome\/[2][1-9]|Chrome\/[3-9][0-9]/),o=r&&qq.isFileChunkingSupported(),a=r&&o&&function(){try{return!!window.localStorage&&qq.isFunction(window.localStorage.setItem)}catch(e){return!1}}(),s=r&&(qq.chrome()||qq.opera())&&void 0!==navigator.userAgent.match(/Chrome\/[1][4-9]|Chrome\/[2-9][0-9]/),u=e&&(void 0!==window.postMessage||r),l=m(),c=v(),f=!!m()||v(),d=void 0!==document.createElement("input").webkitdirectory,p=r&&void 0!==window.FileReader,h=!!r&&!qq.androidStock()&&!qq.iosChrome(),{ajaxUploading:r,blobUploading:t,canDetermineSize:r,chunking:o,deleteFileCors:f,deleteFileCorsXdr:c,deleteFileCorsXhr:l,dialogElement:!!window.HTMLDialogElement,fileDrop:n,folderDrop:i,folderSelection:d,imagePreviews:p,imageValidation:p,itemSizeValidation:r,pause:o,progressBar:h,resume:a,scaling:p&&t,tiffPreviews:qq.safari(),unlimitedScaledImageSize:!qq.ios(),uploading:e,uploadCors:u,uploadCustomHeaders:r,uploadNonMultipart:r,uploadViaPaste:s}}(),qq.isGenericPromise=function(e){"use strict";return!!(e&&e.then&&qq.isFunction(e.then))},qq.Promise=function(){"use strict";var e,t,n=[],r=[],i=[],o=0;qq.extend(this,{then:function(i,a){return 0===o?(i&&n.push(i),a&&r.push(a)):-1===o?a&&a.apply(null,t):i&&i.apply(null,e),this},done:function(n){return 0===o?i.push(n):n.apply(null,void 0===t?e:t),this},success:function(){return o=1,e=arguments,n.length&&qq.each(n,(function(t,n){n.apply(null,e)})),i.length&&qq.each(i,(function(t,n){n.apply(null,e)})),this},failure:function(){return o=-1,t=arguments,r.length&&qq.each(r,(function(e,n){n.apply(null,t)})),i.length&&qq.each(i,(function(e,n){n.apply(null,t)})),this}})},qq.BlobProxy=function(e,t){"use strict";qq.extend(this,{referenceBlob:e,create:function(){return t(e)}})},qq.UploadButton=function(e){"use strict";var t,n,r=this,i=new qq.DisposeSupport,o={acceptFiles:null,element:null,focusClass:"qq-upload-button-focus",folders:!1,hoverClass:"qq-upload-button-hover",ios8BrowserCrashWorkaround:!1,multiple:!1,name:"qqfile",onChange:function(e){},title:null};function a(){var e=document.createElement("input");return e.setAttribute(qq.UploadButton.BUTTON_ID_ATTR_NAME,n),e.setAttribute("title",o.title),r.setMultiple(o.multiple,e),o.folders&&qq.supportedFeatures.folderSelection&&e.setAttribute("webkitdirectory",""),o.acceptFiles&&e.setAttribute("accept",o.acceptFiles),e.setAttribute("type","file"),e.setAttribute("name",o.name),qq(e).css({position:"absolute",right:0,top:0,fontFamily:"Arial",fontSize:qq.ie()&&!qq.ie8()?"3500px":"118px",margin:0,padding:0,cursor:"pointer",opacity:0}),!qq.ie7()&&qq(e).css({height:"100%"}),o.element.appendChild(e),i.attach(e,"change",(function(){o.onChange(e)})),i.attach(e,"mouseover",(function(){qq(o.element).addClass(o.hoverClass)})),i.attach(e,"mouseout",(function(){qq(o.element).removeClass(o.hoverClass)})),i.attach(e,"focus",(function(){qq(o.element).addClass(o.focusClass)})),i.attach(e,"blur",(function(){qq(o.element).removeClass(o.focusClass)})),e}qq.extend(o,e),n=qq.getUniqueId(),qq(o.element).css({position:"relative",overflow:"hidden",direction:"ltr"}),qq.extend(this,{getInput:function(){return t},getButtonId:function(){return n},setMultiple:function(e,t){var n=t||this.getInput();o.ios8BrowserCrashWorkaround&&qq.ios8()&&(qq.iosChrome()||qq.iosSafariWebView())||e?n.setAttribute("multiple",""):n.removeAttribute("multiple")},setAcceptFiles:function(e){e!==o.acceptFiles&&t.setAttribute("accept",e)},reset:function(){t.parentNode&&qq(t).remove(),qq(o.element).removeClass(o.focusClass),t=null,t=a()}}),t=a()},qq.UploadButton.BUTTON_ID_ATTR_NAME="qq-button-id",qq.UploadData=function(e){"use strict";var t=[],n={},r={},i={},o={};qq.extend(this,{addFile:function(a){var s=a.status||qq.status.SUBMITTING,u=t.push({name:a.name,originalName:a.name,uuid:a.uuid,size:null==a.size?-1:a.size,status:s})-1;return a.batchId&&(t[u].batchId=a.batchId,void 0===o[a.batchId]&&(o[a.batchId]=[]),o[a.batchId].push(u)),a.proxyGroupId&&(t[u].proxyGroupId=a.proxyGroupId,void 0===i[a.proxyGroupId]&&(i[a.proxyGroupId]=[]),i[a.proxyGroupId].push(u)),t[u].id=u,n[a.uuid]=u,void 0===r[s]&&(r[s]=[]),r[s].push(u),a.onBeforeStatusChange&&a.onBeforeStatusChange(u),e.onStatusChange(u,null,s),u},retrieve:function(e){return qq.isObject(e)&&t.length?void 0!==e.id?function(e){if(qq.isArray(e)){var n=[];return qq.each(e,(function(e,r){n.push(t[r])})),n}return t[e]}(e.id):void 0!==e.uuid?function(e){if(qq.isArray(e)){var r=[];return qq.each(e,(function(e,i){r.push(t[n[i]])})),r}return t[n[e]]}(e.uuid):e.status?(i=e.status,o=[],a=[].concat(i),qq.each(a,(function(e,n){var i=r[n];void 0!==i&&qq.each(i,(function(e,n){o.push(t[n])}))})),o):void 0:qq.extend([],t,!0);var i,o,a},reset:function(){t=[],n={},r={},o={}},setStatus:function(n,i){var o=t[n].status,a=qq.indexOf(r[o],n);r[o].splice(a,1),t[n].status=i,void 0===r[i]&&(r[i]=[]),r[i].push(n),e.onStatusChange(n,o,i)},uuidChanged:function(e,r){var i=t[e].uuid;t[e].uuid=r,n[r]=e,delete n[i]},updateName:function(e,n){t[e].name=n},updateSize:function(e,n){t[e].size=n},setParentId:function(e,n){t[e].parentId=n},getIdsInProxyGroup:function(e){var n=t[e].proxyGroupId;return n?i[n]:[]},getIdsInBatch:function(e){var n=t[e].batchId;return o[n]}})},qq.status={SUBMITTING:"submitting",SUBMITTED:"submitted",REJECTED:"rejected",QUEUED:"queued",CANCELED:"canceled",PAUSED:"paused",UPLOADING:"uploading",UPLOAD_RETRYING:"retrying upload",UPLOAD_SUCCESSFUL:"upload successful",UPLOAD_FAILED:"upload failed",DELETE_FAILED:"delete failed",DELETING:"deleting",DELETED:"deleted"},function(){"use strict";qq.basePublicApi={addBlobs:function(e,t,n){this.addFiles(e,t,n)},addInitialFiles:function(e){var t=this;qq.each(e,(function(e,n){t._addCannedFile(n)}))},addFiles:function(e,t,n){this._maybeHandleIos8SafariWorkaround();var r=0===this._storedIds.length?qq.getUniqueId():this._currentBatchId,i=qq.bind((function(e){this._handleNewFile({blob:e,name:this._options.blobs.defaultName},r,l)}),this),o=qq.bind((function(e){this._handleNewFile(e,r,l)}),this),a=qq.bind((function(e){var t=qq.canvasToBlob(e);this._handleNewFile({blob:t,name:this._options.blobs.defaultName+".png"},r,l)}),this),s=qq.bind((function(e){var t=e.quality&&e.quality/100,n=qq.canvasToBlob(e.canvas,e.type,t);this._handleNewFile({blob:n,name:e.name},r,l)}),this),u=qq.bind((function(e){if(qq.isInput(e)&&qq.supportedFeatures.ajaxUploading){var t=Array.prototype.slice.call(e.files),n=this;qq.each(t,(function(e,t){n._handleNewFile(t,r,l)}))}else this._handleNewFile(e,r,l)}),this),c=this,l=[];this._currentBatchId=r,e&&(qq.isFileList(e)&&(e=Array.prototype.slice.call(e)),e=[].concat(e),qq.each(e,(function(e,t){qq.isFileOrInput(t)?u(t):qq.isBlob(t)?i(t):qq.isObject(t)?t.blob&&t.name?o(t):t.canvas&&t.name&&s(t):t.tagName&&"canvas"===t.tagName.toLowerCase()?a(t):c.log(t+" is not a valid file container! Ignoring!","warn")})),this.log("Received "+l.length+" files."),this._prepareItemsForUpload(l,t,n))},cancel:function(e){this._handler.cancel(e)},cancelAll:function(){var e=[],t=this;qq.extend(e,this._storedIds),qq.each(e,(function(e,n){t.cancel(n)})),this._handler.cancelAll()},clearStoredFiles:function(){this._storedIds=[]},continueUpload:function(e){var t=this._uploadData.retrieve({id:e});return!(!qq.supportedFeatures.pause||!this._options.chunking.enabled)&&(t.status===qq.status.PAUSED?(this.log(qq.format("Paused file ID {} ({}) will be continued. Not paused.",e,this.getName(e))),this._uploadFile(e),!0):(this.log(qq.format("Ignoring continue for file ID {} ({}). Not paused.",e,this.getName(e)),"error"),!1))},deleteFile:function(e){return this._onSubmitDelete(e)},doesExist:function(e){return this._handler.isValid(e)},drawThumbnail:function(e,t,n,r,i){var o,a,s=new qq.Promise;return this._imageGenerator?(o=this._thumbnailUrls[e],a={customResizeFunction:i,maxSize:n>0?n:null,scale:n>0},!r&&qq.supportedFeatures.imagePreviews&&(o=this.getFile(e)),null==o?s.failure({container:t,error:"File or URL not found."}):this._imageGenerator.generate(o,t,a).then((function(e){s.success(e)}),(function(e,t){s.failure({container:e,error:t||"Problem generating thumbnail"})}))):s.failure({container:t,error:"Missing image generator module"}),s},getButton:function(e){return this._getButton(this._buttonIdsForFileIds[e])},getEndpoint:function(e){return this._endpointStore.get(e)},getFile:function(e){return this._handler.getFile(e)||null},getInProgress:function(){return this._uploadData.retrieve({status:[qq.status.UPLOADING,qq.status.UPLOAD_RETRYING,qq.status.QUEUED]}).length},getName:function(e){return this._uploadData.retrieve({id:e}).name},getParentId:function(e){var t=this.getUploads({id:e}),n=null;return t&&void 0!==t.parentId&&(n=t.parentId),n},getResumableFilesData:function(){return this._handler.getResumableFilesData()},getSize:function(e){return this._uploadData.retrieve({id:e}).size},getNetUploads:function(){return this._netUploaded},getRemainingAllowedItems:function(){var e=this._currentItemLimit;return e>0?e-this._netUploadedOrQueued:null},getUploads:function(e){return this._uploadData.retrieve(e)},getUuid:function(e){return this._uploadData.retrieve({id:e}).uuid},log:function(e,t){!this._options.debug||t&&"info"!==t?t&&"info"!==t&&qq.log("[Fine Uploader "+qq.version+"] "+e,t):qq.log("[Fine Uploader "+qq.version+"] "+e)},pauseUpload:function(e){var t=this._uploadData.retrieve({id:e});if(!qq.supportedFeatures.pause||!this._options.chunking.enabled)return!1;if(qq.indexOf([qq.status.UPLOADING,qq.status.UPLOAD_RETRYING],t.status)>=0){if(this._handler.pause(e))return this._uploadData.setStatus(e,qq.status.PAUSED),!0;this.log(qq.format("Unable to pause file ID {} ({}).",e,this.getName(e)),"error")}else this.log(qq.format("Ignoring pause for file ID {} ({}). Not in progress.",e,this.getName(e)),"error");return!1},removeFileRef:function(e){this._handler.expunge(e)},reset:function(){this.log("Resetting uploader..."),this._handler.reset(),this._storedIds=[],this._autoRetries=[],this._retryTimeouts=[],this._preventRetries=[],this._thumbnailUrls=[],qq.each(this._buttons,(function(e,t){t.reset()})),this._paramsStore.reset(),this._endpointStore.reset(),this._netUploadedOrQueued=0,this._netUploaded=0,this._uploadData.reset(),this._buttonIdsForFileIds=[],this._pasteHandler&&this._pasteHandler.reset(),this._options.session.refreshOnReset&&this._refreshSessionData(),this._succeededSinceLastAllComplete=[],this._failedSinceLastAllComplete=[],this._totalProgress&&this._totalProgress.reset()},retry:function(e){return this._manualRetry(e)},scaleImage:function(e,t){return qq.Scaler.prototype.scaleImage(e,t,{log:qq.bind(this.log,this),getFile:qq.bind(this.getFile,this),uploadData:this._uploadData})},setCustomHeaders:function(e,t){this._customHeadersStore.set(e,t)},setDeleteFileCustomHeaders:function(e,t){this._deleteFileCustomHeadersStore.set(e,t)},setDeleteFileEndpoint:function(e,t){this._deleteFileEndpointStore.set(e,t)},setDeleteFileParams:function(e,t){this._deleteFileParamsStore.set(e,t)},setEndpoint:function(e,t){this._endpointStore.set(e,t)},setForm:function(e){this._updateFormSupportAndParams(e)},setItemLimit:function(e){this._currentItemLimit=e},setName:function(e,t){this._uploadData.updateName(e,t)},setParams:function(e,t){this._paramsStore.set(e,t)},setUuid:function(e,t){return this._uploadData.uuidChanged(e,t)},setStatus:function(e,t){if(!this.getUploads({id:e}))throw new qq.Error(e+" is not a valid file ID.");switch(t){case qq.status.DELETED:this._onDeleteComplete(e,null,!1);break;case qq.status.DELETE_FAILED:this._onDeleteComplete(e,null,!0);break;default:var n="Method setStatus called on '"+name+"' not implemented yet for "+t;throw this.log(n),new qq.Error(n)}},uploadStoredFiles:function(){0===this._storedIds.length?this._itemError("noFilesError"):this._uploadStoredFiles()}},qq.basePrivateApi={_addCannedFile:function(e){var t=this;return this._uploadData.addFile({uuid:e.uuid,name:e.name,size:e.size,status:qq.status.UPLOAD_SUCCESSFUL,onBeforeStatusChange:function(n){e.deleteFileEndpoint&&t.setDeleteFileEndpoint(e.deleteFileEndpoint,n),e.deleteFileParams&&t.setDeleteFileParams(e.deleteFileParams,n),e.thumbnailUrl&&(t._thumbnailUrls[n]=e.thumbnailUrl),t._netUploaded++,t._netUploadedOrQueued++}})},_annotateWithButtonId:function(e,t){qq.isFile(e)&&(e.qqButtonId=this._getButtonId(t))},_batchError:function(e){this._options.callbacks.onError(null,null,e,void 0)},_createDeleteHandler:function(){var e=this;return new qq.DeleteFileAjaxRequester({method:this._options.deleteFile.method.toUpperCase(),maxConnections:this._options.maxConnections,uuidParamName:this._options.request.uuidName,customHeaders:this._deleteFileCustomHeadersStore,paramsStore:this._deleteFileParamsStore,endpointStore:this._deleteFileEndpointStore,cors:this._options.cors,log:qq.bind(e.log,e),onDelete:function(t){e._onDelete(t),e._options.callbacks.onDelete(t)},onDeleteComplete:function(t,n,r){e._onDeleteComplete(t,n,r),e._options.callbacks.onDeleteComplete(t,n,r)}})},_createPasteHandler:function(){var e=this;return new qq.PasteSupport({targetElement:this._options.paste.targetElement,callbacks:{log:qq.bind(e.log,e),pasteReceived:function(t){e._handleCheckedCallback({name:"onPasteReceived",callback:qq.bind(e._options.callbacks.onPasteReceived,e,t),onSuccess:qq.bind(e._handlePasteSuccess,e,t),identifier:"pasted image"})}}})},_createStore:function(e,t){var n={},r=e,i={},o=t,a=function(e){return qq.isObject(e)?qq.extend({},e):e},s=function(e,t){o&&qq.isObject(t)&&qq.extend(t,qq.isFunction(o)?o():o),i[e]&&qq.extend(t,i[e])};return{set:function(e,t){null==t?(n={},r=a(e)):n[t]=a(e)},get:function(e){var t;return t=null!=e&&n[e]?n[e]:a(r),s(e,t),a(t)},addReadOnly:function(e,t){qq.isObject(n)&&(null===e?qq.isFunction(t)?o=t:(o=o||{},qq.extend(o,t)):(i[e]=i[e]||{},qq.extend(i[e],t)))},remove:function(e){return delete n[e]},reset:function(){n={},i={},r=e}}},_createUploadDataTracker:function(){var e=this;return new qq.UploadData({getName:function(t){return e.getName(t)},getUuid:function(t){return e.getUuid(t)},getSize:function(t){return e.getSize(t)},onStatusChange:function(t,n,r){e._onUploadStatusChange(t,n,r),e._options.callbacks.onStatusChange(t,n,r),e._maybeAllComplete(t,r),e._totalProgress&&setTimeout((function(){e._totalProgress.onStatusChange(t,n,r)}),0)}})},_createUploadButton:function(e){var t,n=this,r=e.accept||this._options.validation.acceptFiles,i=e.allowedExtensions||this._options.validation.allowedExtensions;return t=new qq.UploadButton({acceptFiles:r,element:e.element,focusClass:this._options.classes.buttonFocus,folders:e.folders,hoverClass:this._options.classes.buttonHover,ios8BrowserCrashWorkaround:this._options.workarounds.ios8BrowserCrash,multiple:!!qq.supportedFeatures.ajaxUploading&&!(n._options.workarounds.iosEmptyVideos&&qq.ios()&&!qq.ios6()&&n._isAllowedExtension(i,".mov"))&&(void 0===e.multiple?n._options.multiple:e.multiple),name:this._options.request.inputName,onChange:function(e){n._onInputChange(e)},title:null==e.title?this._options.text.fileInputTitle:e.title}),this._disposeSupport.addDisposer((function(){t.dispose()})),n._buttons.push(t),t},_createUploadHandler:function(e,t){var n=this,r={},i={debug:this._options.debug,maxConnections:this._options.maxConnections,cors:this._options.cors,paramsStore:this._paramsStore,endpointStore:this._endpointStore,chunking:this._options.chunking,resume:this._options.resume,blobs:this._options.blobs,log:qq.bind(n.log,n),preventRetryParam:this._options.retry.preventRetryResponseProperty,onProgress:function(e,t,i,o){i<0||o<0||(r[e]&&r[e].loaded===i&&r[e].total===o||(n._onProgress(e,t,i,o),n._options.callbacks.onProgress(e,t,i,o)),r[e]={loaded:i,total:o})},onComplete:function(e,t,i,o){delete r[e];var a,s=n.getUploads({id:e}).status;s!==qq.status.UPLOAD_SUCCESSFUL&&s!==qq.status.UPLOAD_FAILED&&((a=n._onComplete(e,t,i,o))instanceof qq.Promise?a.done((function(){n._options.callbacks.onComplete(e,t,i,o)})):n._options.callbacks.onComplete(e,t,i,o))},onCancel:function(e,t,r){var i=new qq.Promise;return n._handleCheckedCallback({name:"onCancel",callback:qq.bind(n._options.callbacks.onCancel,n,e,t),onFailure:i.failure,onSuccess:function(){r.then((function(){n._onCancel(e,t)})),i.success()},identifier:e}),i},onUploadPrep:qq.bind(this._onUploadPrep,this),onUpload:function(e,t){n._onUpload(e,t),n._options.callbacks.onUpload(e,t)},onUploadChunk:function(e,t,r){n._onUploadChunk(e,r),n._options.callbacks.onUploadChunk(e,t,r)},onUploadChunkSuccess:function(e,t,r,i){n._options.callbacks.onUploadChunkSuccess.apply(n,arguments)},onResume:function(e,t,r){return n._options.callbacks.onResume(e,t,r)},onAutoRetry:function(e,t,r,i){return n._onAutoRetry.apply(n,arguments)},onUuidChanged:function(e,t){n.log("Server requested UUID change from '"+n.getUuid(e)+"' to '"+t+"'"),n.setUuid(e,t)},getName:qq.bind(n.getName,n),getUuid:qq.bind(n.getUuid,n),getSize:qq.bind(n.getSize,n),setSize:qq.bind(n._setSize,n),getDataByUuid:function(e){return n.getUploads({uuid:e})},isQueued:function(e){var t=n.getUploads({id:e}).status;return t===qq.status.QUEUED||t===qq.status.SUBMITTED||t===qq.status.UPLOAD_RETRYING||t===qq.status.PAUSED},getIdsInProxyGroup:n._uploadData.getIdsInProxyGroup,getIdsInBatch:n._uploadData.getIdsInBatch};return qq.each(this._options.request,(function(e,t){i[e]=t})),i.customHeaders=this._customHeadersStore,e&&qq.each(e,(function(e,t){i[e]=t})),new qq.UploadHandlerController(i,t)},_fileOrBlobRejected:function(e){this._netUploadedOrQueued--,this._uploadData.setStatus(e,qq.status.REJECTED)},_formatSize:function(e){if(0===e)return e+this._options.text.sizeSymbols[0];var t=-1;do{e/=1e3,t++}while(e>999);return Math.max(e,.1).toFixed(1)+this._options.text.sizeSymbols[t]},_generateExtraButtonSpecs:function(){var e=this;this._extraButtonSpecs={},qq.each(this._options.extraButtons,(function(t,n){var r=n.multiple,i=qq.extend({},e._options.validation,!0),o=qq.extend({},n);void 0===r&&(r=e._options.multiple),o.validation&&qq.extend(i,n.validation,!0),qq.extend(o,{multiple:r,validation:i},!0),e._initExtraButton(o)}))},_getButton:function(e){var t=this._extraButtonSpecs[e];return t?t.element:e===this._defaultButtonId?this._options.button:void 0},_getButtonId:function(e){var t,n,r=e;if(r instanceof qq.BlobProxy&&(r=r.referenceBlob),r&&!qq.isBlob(r)){if(qq.isFile(r))return r.qqButtonId;if("input"===r.tagName.toLowerCase()&&"file"===r.type.toLowerCase())return r.getAttribute(qq.UploadButton.BUTTON_ID_ATTR_NAME);if(t=r.getElementsByTagName("input"),qq.each(t,(function(e,t){if("file"===t.getAttribute("type"))return n=t,!1})),n)return n.getAttribute(qq.UploadButton.BUTTON_ID_ATTR_NAME)}},_getNotFinished:function(){return this._uploadData.retrieve({status:[qq.status.UPLOADING,qq.status.UPLOAD_RETRYING,qq.status.QUEUED,qq.status.SUBMITTING,qq.status.SUBMITTED,qq.status.PAUSED]}).length},_getValidationBase:function(e){var t=this._extraButtonSpecs[e];return t?t.validation:this._options.validation},_getValidationDescriptor:function(e){return e.file instanceof qq.BlobProxy?{name:qq.getFilename(e.file.referenceBlob),size:e.file.referenceBlob.size}:{name:this.getUploads({id:e.id}).name,size:this.getUploads({id:e.id}).size}},_getValidationDescriptors:function(e){var t=this,n=[];return qq.each(e,(function(e,r){n.push(t._getValidationDescriptor(r))})),n},_handleCameraAccess:function(){if(this._options.camera.ios&&qq.ios()){var e=this._options.camera.button,t=e?this._getButtonId(e):this._defaultButtonId,n=this._options;t&&t!==this._defaultButtonId&&(n=this._extraButtonSpecs[t]),n.multiple=!1,null===n.validation.acceptFiles?n.validation.acceptFiles="image/*;capture=camera":n.validation.acceptFiles+=",image/*;capture=camera",qq.each(this._buttons,(function(e,r){if(r.getButtonId()===t)return r.setMultiple(n.multiple),r.setAcceptFiles(n.acceptFiles),!1}))}},_handleCheckedCallback:function(e){var t=this,n=e.callback();return qq.isGenericPromise(n)?(this.log(e.name+" - waiting for "+e.name+" promise to be fulfilled for "+e.identifier),n.then((function(n){t.log(e.name+" promise success for "+e.identifier),e.onSuccess(n)}),(function(){e.onFailure?(t.log(e.name+" promise failure for "+e.identifier),e.onFailure()):t.log(e.name+" promise failure for "+e.identifier)}))):(!1!==n?e.onSuccess(n):e.onFailure?(this.log(e.name+" - return value was 'false' for "+e.identifier+". Invoking failure callback."),e.onFailure()):this.log(e.name+" - return value was 'false' for "+e.identifier+". Will not proceed."),n)},_handleNewFile:function(e,t,n){var r=this,i=qq.getUniqueId(),o=-1,a=qq.getFilename(e),s=e.blob||e,u=this._customNewFileHandler?this._customNewFileHandler:qq.bind(r._handleNewFileGeneric,r);!qq.isInput(s)&&s.size>=0&&(o=s.size),u(s,a,i,o,n,t,this._options.request.uuidName,{uploadData:r._uploadData,paramsStore:r._paramsStore,addFileToHandler:function(e,t){r._handler.add(e,t),r._netUploadedOrQueued++,r._trackButton(e)}})},_handleNewFileGeneric:function(e,t,n,r,i,o){var a=this._uploadData.addFile({uuid:n,name:t,size:r,batchId:o});this._handler.add(a,e),this._trackButton(a),this._netUploadedOrQueued++,i.push({id:a,file:e})},_handlePasteSuccess:function(e,t){var n=e.type.split("/")[1],r=t;null==r&&(r=this._options.paste.defaultName),r+="."+n,this.addFiles({name:r,blob:e})},_handleDeleteSuccess:function(e){if(this.getUploads({id:e}).status!==qq.status.DELETED){var t=this.getName(e);this._netUploadedOrQueued--,this._netUploaded--,this._handler.expunge(e),this._uploadData.setStatus(e,qq.status.DELETED),this.log("Delete request for '"+t+"' has succeeded.")}},_handleDeleteFailed:function(e,t){var n=this.getName(e);this._uploadData.setStatus(e,qq.status.DELETE_FAILED),this.log("Delete request for '"+n+"' has failed.","error"),t&&void 0!==t.withCredentials?this._options.callbacks.onError(e,n,"Delete request failed with response code "+t.status,t):this._options.callbacks.onError(e,n,"Delete request failed",t)},_initExtraButton:function(e){var t=this._createUploadButton({accept:e.validation.acceptFiles,allowedExtensions:e.validation.allowedExtensions,element:e.element,folders:e.folders,multiple:e.multiple,title:e.fileInputTitle});this._extraButtonSpecs[t.getButtonId()]=e},_initFormSupportAndParams:function(){this._formSupport=qq.FormSupport&&new qq.FormSupport(this._options.form,qq.bind(this.uploadStoredFiles,this),qq.bind(this.log,this)),this._formSupport&&this._formSupport.attachedToForm?(this._paramsStore=this._createStore(this._options.request.params,this._formSupport.getFormInputsAsObject),this._options.autoUpload=this._formSupport.newAutoUpload,this._formSupport.newEndpoint&&(this._options.request.endpoint=this._formSupport.newEndpoint)):this._paramsStore=this._createStore(this._options.request.params)},_isDeletePossible:function(){return!(!qq.DeleteFileAjaxRequester||!this._options.deleteFile.enabled)&&(!this._options.cors.expected||(!!qq.supportedFeatures.deleteFileCorsXhr||!(!qq.supportedFeatures.deleteFileCorsXdr||!this._options.cors.allowXdr)))},_isAllowedExtension:function(e,t){var n=!1;return!e.length||(qq.each(e,(function(e,r){if(qq.isString(r)){var i=new RegExp("\\."+r+"$","i");if(null!=t.match(i))return n=!0,!1}})),n)},_itemError:function(e,t,n){var r,i,o=this._options.messages[e],a=[],s=[].concat(t),u=s[0],c=this._getButtonId(n),l=this._getValidationBase(c);function f(e,t){o=o.replace(e,t)}return qq.each(l.allowedExtensions,(function(e,t){qq.isString(t)&&a.push(t)})),r=a.join(", ").toLowerCase(),f("{file}",this._options.formatFileName(u)),f("{extensions}",r),f("{sizeLimit}",this._formatSize(l.sizeLimit)),f("{minSizeLimit}",this._formatSize(l.minSizeLimit)),null!==(i=o.match(/(\{\w+\})/g))&&qq.each(i,(function(e,t){f(t,s[e])})),this._options.callbacks.onError(null,u,o,void 0),o},_manualRetry:function(e,t){if(this._onBeforeManualRetry(e))return this._netUploadedOrQueued++,this._uploadData.setStatus(e,qq.status.UPLOAD_RETRYING),t?t(e):this._handler.retry(e),!0},_maybeAllComplete:function(e,t){var n=this,r=this._getNotFinished();t===qq.status.UPLOAD_SUCCESSFUL?this._succeededSinceLastAllComplete.push(e):t===qq.status.UPLOAD_FAILED&&this._failedSinceLastAllComplete.push(e),0===r&&(this._succeededSinceLastAllComplete.length||this._failedSinceLastAllComplete.length)&&setTimeout((function(){n._onAllComplete(n._succeededSinceLastAllComplete,n._failedSinceLastAllComplete)}),0)},_maybeHandleIos8SafariWorkaround:function(){var e=this;if(this._options.workarounds.ios8SafariUploads&&qq.ios800()&&qq.iosSafari())throw setTimeout((function(){window.alert(e._options.messages.unsupportedBrowserIos8Safari)}),0),new qq.Error(this._options.messages.unsupportedBrowserIos8Safari)},_maybeParseAndSendUploadError:function(e,t,n,r){if(!n.success)if(r&&200!==r.status&&!n.error)this._options.callbacks.onError(e,t,"XHR returned response code "+r.status,r);else{var i=n.error?n.error:this._options.text.defaultResponseError;this._options.callbacks.onError(e,t,i,r)}},_maybeProcessNextItemAfterOnValidateCallback:function(e,t,n,r,i){var o=this;if(t.length>n)if(e||!this._options.validation.stopOnFirstInvalidFile)setTimeout((function(){var e=o._getValidationDescriptor(t[n]),a=o._getButtonId(t[n].file),s=o._getButton(a);o._handleCheckedCallback({name:"onValidate",callback:qq.bind(o._options.callbacks.onValidate,o,e,s),onSuccess:qq.bind(o._onValidateCallbackSuccess,o,t,n,r,i),onFailure:qq.bind(o._onValidateCallbackFailure,o,t,n,r,i),identifier:"Item '"+e.name+"', size: "+e.size})}),0);else if(!e)for(;n<t.length;n++)o._fileOrBlobRejected(t[n].id)},_onAllComplete:function(e,t){this._totalProgress&&this._totalProgress.onAllComplete(e,t,this._preventRetries),this._options.callbacks.onAllComplete(qq.extend([],e),qq.extend([],t)),this._succeededSinceLastAllComplete=[],this._failedSinceLastAllComplete=[]},_onAutoRetry:function(e,t,n,r,i){var o=this;if(o._preventRetries[e]=n[o._options.retry.preventRetryResponseProperty],o._shouldAutoRetry(e,t,n)){var a=1e3*o._options.retry.autoAttemptDelay;return o._maybeParseAndSendUploadError.apply(o,arguments),o._options.callbacks.onAutoRetry(e,t,o._autoRetries[e]),o._onBeforeAutoRetry(e,t),o._uploadData.setStatus(e,qq.status.UPLOAD_RETRYING),o._retryTimeouts[e]=setTimeout((function(){o.log("Starting retry for "+t+"..."),i?i(e):o._handler.retry(e)}),a),!0}},_onBeforeAutoRetry:function(e,t){this.log("Waiting "+this._options.retry.autoAttemptDelay+" seconds before retrying "+t+"...")},_onBeforeManualRetry:function(e){var t,n=this._currentItemLimit;return this._preventRetries[e]?(this.log("Retries are forbidden for id "+e,"warn"),!1):this._handler.isValid(e)?(t=this.getName(e),!1!==this._options.callbacks.onManualRetry(e,t)&&(n>0&&this._netUploadedOrQueued+1>n?(this._itemError("retryFailTooManyItems"),!1):(this.log("Retrying upload for '"+t+"' (id: "+e+")..."),!0))):(this.log("'"+e+"' is not a valid file ID","error"),!1)},_onCancel:function(e,t){this._netUploadedOrQueued--,clearTimeout(this._retryTimeouts[e]);var n=qq.indexOf(this._storedIds,e);!this._options.autoUpload&&n>=0&&this._storedIds.splice(n,1),this._uploadData.setStatus(e,qq.status.CANCELED)},_onComplete:function(e,t,n,r){return n.success?(n.thumbnailUrl&&(this._thumbnailUrls[e]=n.thumbnailUrl),this._netUploaded++,this._uploadData.setStatus(e,qq.status.UPLOAD_SUCCESSFUL)):(this._netUploadedOrQueued--,this._uploadData.setStatus(e,qq.status.UPLOAD_FAILED),!0===n[this._options.retry.preventRetryResponseProperty]&&(this._preventRetries[e]=!0)),this._maybeParseAndSendUploadError(e,t,n,r),!!n.success},_onDelete:function(e){this._uploadData.setStatus(e,qq.status.DELETING)},_onDeleteComplete:function(e,t,n){this.getName(e);n?this._handleDeleteFailed(e,t):this._handleDeleteSuccess(e)},_onInputChange:function(e){var t;if(qq.supportedFeatures.ajaxUploading){for(t=0;t<e.files.length;t++)this._annotateWithButtonId(e.files[t],e);this.addFiles(e.files)}else e.value.length>0&&this.addFiles(e);qq.each(this._buttons,(function(e,t){t.reset()}))},_onProgress:function(e,t,n,r){this._totalProgress&&this._totalProgress.onIndividualProgress(e,n,r)},_onSubmit:function(e,t){},_onSubmitCallbackSuccess:function(e,t){this._onSubmit.apply(this,arguments),this._uploadData.setStatus(e,qq.status.SUBMITTED),this._onSubmitted.apply(this,arguments),this._options.autoUpload?(this._options.callbacks.onSubmitted.apply(this,arguments),this._uploadFile(e)):(this._storeForLater(e),this._options.callbacks.onSubmitted.apply(this,arguments))},_onSubmitDelete:function(e,t,n){var r,i=this.getUuid(e);return t&&(r=qq.bind(t,this,e,i,n)),this._isDeletePossible()?(this._handleCheckedCallback({name:"onSubmitDelete",callback:qq.bind(this._options.callbacks.onSubmitDelete,this,e),onSuccess:r||qq.bind(this._deleteHandler.sendDelete,this,e,i,n),identifier:e}),!0):(this.log("Delete request ignored for ID "+e+", delete feature is disabled or request not possible due to CORS on a user agent that does not support pre-flighting.","warn"),!1)},_onSubmitted:function(e){},_onTotalProgress:function(e,t){this._options.callbacks.onTotalProgress(e,t)},_onUploadPrep:function(e){},_onUpload:function(e,t){this._uploadData.setStatus(e,qq.status.UPLOADING)},_onUploadChunk:function(e,t){},_onUploadStatusChange:function(e,t,n){n===qq.status.PAUSED&&clearTimeout(this._retryTimeouts[e])},_onValidateBatchCallbackFailure:function(e){var t=this;qq.each(e,(function(e,n){t._fileOrBlobRejected(n.id)}))},_onValidateBatchCallbackSuccess:function(e,t,n,r,i){var o,a=this._currentItemLimit,s=this._netUploadedOrQueued;0===a||s<=a?t.length>0?this._handleCheckedCallback({name:"onValidate",callback:qq.bind(this._options.callbacks.onValidate,this,e[0],i),onSuccess:qq.bind(this._onValidateCallbackSuccess,this,t,0,n,r),onFailure:qq.bind(this._onValidateCallbackFailure,this,t,0,n,r),identifier:"Item '"+t[0].file.name+"', size: "+t[0].file.size}):this._itemError("noFilesError"):(this._onValidateBatchCallbackFailure(t),o=this._options.messages.tooManyItemsError.replace(/\{netItems\}/g,s).replace(/\{itemLimit\}/g,a),this._batchError(o))},_onValidateCallbackFailure:function(e,t,n,r){var i=t+1;this._fileOrBlobRejected(e[t].id,e[t].file.name),this._maybeProcessNextItemAfterOnValidateCallback(!1,e,i,n,r)},_onValidateCallbackSuccess:function(e,t,n,r){var i=this,o=t+1,a=this._getValidationDescriptor(e[t]);this._validateFileOrBlobData(e[t],a).then((function(){i._upload(e[t].id,n,r),i._maybeProcessNextItemAfterOnValidateCallback(!0,e,o,n,r)}),(function(){i._maybeProcessNextItemAfterOnValidateCallback(!1,e,o,n,r)}))},_prepareItemsForUpload:function(e,t,n){if(0!==e.length){var r=this._getValidationDescriptors(e),i=this._getButtonId(e[0].file),o=this._getButton(i);this._handleCheckedCallback({name:"onValidateBatch",callback:qq.bind(this._options.callbacks.onValidateBatch,this,r,o),onSuccess:qq.bind(this._onValidateBatchCallbackSuccess,this,r,e,t,n,o),onFailure:qq.bind(this._onValidateBatchCallbackFailure,this,e),identifier:"batch validation"})}else this._itemError("noFilesError")},_preventLeaveInProgress:function(){var e=this;this._disposeSupport.attach(window,"beforeunload",(function(t){if(e.getInProgress())return(t=t||window.event).returnValue=e._options.messages.onLeave,e._options.messages.onLeave}))},_refreshSessionData:function(){var e=this,t=this._options.session;qq.Session&&null!=this._options.session.endpoint&&(this._session||(qq.extend(t,{cors:this._options.cors}),t.log=qq.bind(this.log,this),t.addFileRecord=qq.bind(this._addCannedFile,this),this._session=new qq.Session(t)),setTimeout((function(){e._session.refresh().then((function(t,n){e._sessionRequestComplete(),e._options.callbacks.onSessionRequestComplete(t,!0,n)}),(function(t,n){e._options.callbacks.onSessionRequestComplete(t,!1,n)}))}),0))},_sessionRequestComplete:function(){},_setSize:function(e,t){this._uploadData.updateSize(e,t),this._totalProgress&&this._totalProgress.onNewSize(e)},_shouldAutoRetry:function(e,t,n){var r=this._uploadData.retrieve({id:e});return!!(!this._preventRetries[e]&&this._options.retry.enableAuto&&r.status!==qq.status.PAUSED&&(void 0===this._autoRetries[e]&&(this._autoRetries[e]=0),this._autoRetries[e]<this._options.retry.maxAutoAttempts))&&(this._autoRetries[e]+=1,!0)},_storeForLater:function(e){this._storedIds.push(e)},_trackButton:function(e){var t;(t=qq.supportedFeatures.ajaxUploading?this._handler.getFile(e).qqButtonId:this._getButtonId(this._handler.getInput(e)))&&(this._buttonIdsForFileIds[e]=t)},_updateFormSupportAndParams:function(e){this._options.form.element=e,this._formSupport=qq.FormSupport&&new qq.FormSupport(this._options.form,qq.bind(this.uploadStoredFiles,this),qq.bind(this.log,this)),this._formSupport&&this._formSupport.attachedToForm&&(this._paramsStore.addReadOnly(null,this._formSupport.getFormInputsAsObject),this._options.autoUpload=this._formSupport.newAutoUpload,this._formSupport.newEndpoint&&this.setEndpoint(this._formSupport.newEndpoint))},_upload:function(e,t,n){var r=this.getName(e);t&&this.setParams(t,e),n&&this.setEndpoint(n,e),this._handleCheckedCallback({name:"onSubmit",callback:qq.bind(this._options.callbacks.onSubmit,this,e,r),onSuccess:qq.bind(this._onSubmitCallbackSuccess,this,e,r),onFailure:qq.bind(this._fileOrBlobRejected,this,e,r),identifier:e})},_uploadFile:function(e){this._handler.upload(e)||this._uploadData.setStatus(e,qq.status.QUEUED)},_uploadStoredFiles:function(){for(var e,t,n=this;this._storedIds.length;)e=this._storedIds.shift(),this._uploadFile(e);(t=this.getUploads({status:qq.status.SUBMITTING}).length)&&(qq.log("Still waiting for "+t+" files to clear submit queue. Will re-parse stored IDs array shortly."),setTimeout((function(){n._uploadStoredFiles()}),1e3))},_validateFileOrBlobData:function(e,t){var n=this,r=e.file instanceof qq.BlobProxy?e.file.referenceBlob:e.file,i=t.name,o=t.size,a=this._getButtonId(e.file),s=this._getValidationBase(a),u=new qq.Promise;return u.then((function(){}),(function(){n._fileOrBlobRejected(e.id,i)})),qq.isFileOrInput(r)&&!this._isAllowedExtension(s.allowedExtensions,i)?(this._itemError("typeError",i,r),u.failure()):this._options.validation.allowEmpty||0!==o?o>0&&s.sizeLimit&&o>s.sizeLimit?(this._itemError("sizeError",i,r),u.failure()):o>0&&o<s.minSizeLimit?(this._itemError("minSizeError",i,r),u.failure()):(qq.ImageValidation&&qq.supportedFeatures.imagePreviews&&qq.isFile(r)?new qq.ImageValidation(r,qq.bind(n.log,n)).validate(s.image).then(u.success,(function(e){n._itemError(e+"ImageError",i,r),u.failure()})):u.success(),u):(this._itemError("emptyError",i,r),u.failure())},_wrapCallbacks:function(){var e,t,n;for(n in e=this,t=function(t,n,r){var i;try{return n.apply(e,r)}catch(n){i=n.message||n.toString(),e.log("Caught exception in '"+t+"' callback - "+i,"error")}},this._options.callbacks)!function(){var r,i;r=n,i=e._options.callbacks[r],e._options.callbacks[r]=function(){return t(r,i,arguments)}}()}}}(),function(){"use strict";qq.FineUploaderBasic=function(e){var t=this;this._options={debug:!1,button:null,multiple:!0,maxConnections:3,disableCancelForFormUploads:!1,autoUpload:!0,request:{customHeaders:{},endpoint:"/server/upload",filenameParam:"qqfilename",forceMultipart:!0,inputName:"qqfile",method:"POST",params:{},paramsInBody:!0,totalFileSizeName:"qqtotalfilesize",uuidName:"qquuid"},validation:{allowedExtensions:[],sizeLimit:0,minSizeLimit:0,itemLimit:0,stopOnFirstInvalidFile:!0,acceptFiles:null,image:{maxHeight:0,maxWidth:0,minHeight:0,minWidth:0},allowEmpty:!1},callbacks:{onSubmit:function(e,t){},onSubmitted:function(e,t){},onComplete:function(e,t,n,r){},onAllComplete:function(e,t){},onCancel:function(e,t){},onUpload:function(e,t){},onUploadChunk:function(e,t,n){},onUploadChunkSuccess:function(e,t,n,r){},onResume:function(e,t,n){},onProgress:function(e,t,n,r){},onTotalProgress:function(e,t){},onError:function(e,t,n,r){},onAutoRetry:function(e,t,n){},onManualRetry:function(e,t){},onValidateBatch:function(e){},onValidate:function(e){},onSubmitDelete:function(e){},onDelete:function(e){},onDeleteComplete:function(e,t,n){},onPasteReceived:function(e){},onStatusChange:function(e,t,n){},onSessionRequestComplete:function(e,t,n){}},messages:{typeError:"{file} has an invalid extension. Valid extension(s): {extensions}.",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.",noFilesError:"No files to upload.",tooManyItemsError:"Too many items ({netItems}) would be uploaded. Item limit is {itemLimit}.",maxHeightImageError:"Image is too tall.",maxWidthImageError:"Image is too wide.",minHeightImageError:"Image is not tall enough.",minWidthImageError:"Image is not wide enough.",retryFailTooManyItems:"Retry failed - you have reached your file limit.",onLeave:"The files are being uploaded, if you leave now the upload will be canceled.",unsupportedBrowserIos8Safari:"Unrecoverable error - this browser does not permit file uploading of any kind due to serious bugs in iOS8 Safari. Please use iOS8 Chrome until Apple fixes these issues."},retry:{enableAuto:!1,maxAutoAttempts:3,autoAttemptDelay:5,preventRetryResponseProperty:"preventRetry"},classes:{buttonHover:"qq-upload-button-hover",buttonFocus:"qq-upload-button-focus"},chunking:{enabled:!1,concurrent:{enabled:!1},mandatory:!1,paramNames:{partIndex:"qqpartindex",partByteOffset:"qqpartbyteoffset",chunkSize:"qqchunksize",totalFileSize:"qqtotalfilesize",totalParts:"qqtotalparts"},partSize:2e6,success:{endpoint:null}},resume:{enabled:!1,recordsExpireIn:7,paramNames:{resuming:"qqresume"}},formatFileName:function(e){return e},text:{defaultResponseError:"Upload failure reason unknown",fileInputTitle:"file input",sizeSymbols:["kB","MB","GB","TB","PB","EB"]},deleteFile:{enabled:!1,method:"DELETE",endpoint:"/server/upload",customHeaders:{},params:{}},cors:{expected:!1,sendCredentials:!1,allowXdr:!1},blobs:{defaultName:"misc_data"},paste:{targetElement:null,defaultName:"pasted_image"},camera:{ios:!1,button:null},extraButtons:[],session:{endpoint:null,params:{},customHeaders:{},refreshOnReset:!0},form:{element:"qq-form",autoUpload:!1,interceptSubmit:!0},scaling:{customResizer:null,sendOriginal:!0,orient:!0,defaultType:null,defaultQuality:80,failureText:"Failed to scale",includeExif:!1,sizes:[]},workarounds:{iosEmptyVideos:!0,ios8SafariUploads:!0,ios8BrowserCrash:!1}},qq.extend(this._options,e,!0),this._buttons=[],this._extraButtonSpecs={},this._buttonIdsForFileIds=[],this._wrapCallbacks(),this._disposeSupport=new qq.DisposeSupport,this._storedIds=[],this._autoRetries=[],this._retryTimeouts=[],this._preventRetries=[],this._thumbnailUrls=[],this._netUploadedOrQueued=0,this._netUploaded=0,this._uploadData=this._createUploadDataTracker(),this._initFormSupportAndParams(),this._customHeadersStore=this._createStore(this._options.request.customHeaders),this._deleteFileCustomHeadersStore=this._createStore(this._options.deleteFile.customHeaders),this._deleteFileParamsStore=this._createStore(this._options.deleteFile.params),this._endpointStore=this._createStore(this._options.request.endpoint),this._deleteFileEndpointStore=this._createStore(this._options.deleteFile.endpoint),this._handler=this._createUploadHandler(),this._deleteHandler=qq.DeleteFileAjaxRequester&&this._createDeleteHandler(),this._options.button&&(this._defaultButtonId=this._createUploadButton({element:this._options.button,title:this._options.text.fileInputTitle}).getButtonId()),this._generateExtraButtonSpecs(),this._handleCameraAccess(),this._options.paste.targetElement&&(qq.PasteSupport?this._pasteHandler=this._createPasteHandler():this.log("Paste support module not found","error")),this._preventLeaveInProgress(),this._imageGenerator=qq.ImageGenerator&&new qq.ImageGenerator(qq.bind(this.log,this)),this._refreshSessionData(),this._succeededSinceLastAllComplete=[],this._failedSinceLastAllComplete=[],this._scaler=qq.Scaler&&new qq.Scaler(this._options.scaling,qq.bind(this.log,this))||{},this._scaler.enabled&&(this._customNewFileHandler=qq.bind(this._scaler.handleNewFile,this._scaler)),qq.TotalProgress&&qq.supportedFeatures.progressBar&&(this._totalProgress=new qq.TotalProgress(qq.bind(this._onTotalProgress,this),(function(e){var n=t._uploadData.retrieve({id:e});return n&&n.size||0}))),this._currentItemLimit=this._options.validation.itemLimit},qq.FineUploaderBasic.prototype=qq.basePublicApi,qq.extend(qq.FineUploaderBasic.prototype,qq.basePrivateApi)}(),qq.AjaxRequester=function(e){"use strict";var t,n,r=[],i={},o={acceptHeader:null,validMethods:["PATCH","POST","PUT"],method:"POST",contentType:"application/x-www-form-urlencoded",maxConnections:3,customHeaders:{},endpointStore:{},paramsStore:{},mandatedParams:{},allowXRequestedWithAndCacheControl:!0,successfulResponseCodes:{DELETE:[200,202,204],PATCH:[200,201,202,203,204],POST:[200,201,202,203,204],PUT:[200,201,202,203,204],GET:[200]},cors:{expected:!1,sendCredentials:!1},log:function(e,t){},onSend:function(e){},onComplete:function(e,t,n){},onProgress:null};if(qq.extend(o,e),t=o.log,qq.indexOf(o.validMethods,o.method)<0)throw new Error("'"+o.method+"' is not a supported method for this type of request!");function a(e){return o.cors.expected&&void 0===e.withCredentials}function s(e,t){var n=i[e].xhr;return n||(n=t||(o.cors.expected?function(){var e;return(window.XMLHttpRequest||window.ActiveXObject)&&void 0===(e=qq.createXhrInstance()).withCredentials&&((e=new XDomainRequest).onload=function(){},e.onerror=function(){},e.ontimeout=function(){},e.onprogress=function(){}),e}():qq.createXhrInstance()),i[e].xhr=n),n}function u(e){var t=qq.indexOf(r,e),n=o.maxConnections;delete i[e],r.splice(t,1),r.length>=n&&t<n&&l(r[n-1])}function c(e,n){var r,i=s(e),c=o.method,l=!0===n;u(e),l?t(c+" request for "+e+" has failed","error"):a(i)||(r=i.status,qq.indexOf(o.successfulResponseCodes[o.method],r)>=0)||(l=!0,t(c+" request for "+e+" has failed - response code "+i.status,"error")),o.onComplete(e,i,l)}function l(e,r){var u,l=s(e,r),f=o.method,d=function(e){var t,n=i[e].additionalParams,r=o.mandatedParams;return o.paramsStore.get&&(t=o.paramsStore.get(e)),n&&qq.each(n,(function(e,n){(t=t||{})[e]=n})),r&&qq.each(r,(function(e,n){(t=t||{})[e]=n})),t}(e),p=i[e].payload;return o.onSend(e),u=function(e,t,r){var a=o.endpointStore.get(e),s=i[e].addToPath;null!=s&&(a+="/"+s);n&&t&&(a=qq.obj2url(t,a));r&&(a=qq.obj2url(r,a));return a}(e,d,i[e].additionalQueryParams),a(l)?(l.onload=function(e){return function(){c(e)}}(e),l.onerror=function(e){return function(){c(e,!0)}}(e)):l.onreadystatechange=function(e){return function(){4===s(e).readyState&&c(e)}}(e),function(e){var t=o.onProgress;t&&(s(e).upload.onprogress=function(n){n.lengthComputable&&t(e,n.loaded,n.total)})}(e),l.open(f,u,!0),o.cors.expected&&o.cors.sendCredentials&&!a(l)&&(l.withCredentials=!0),function(e){var t=s(e),n=o.customHeaders,r=i[e].additionalHeaders||{},u=o.method,c={};a(t)||(o.acceptHeader&&t.setRequestHeader("Accept",o.acceptHeader),o.allowXRequestedWithAndCacheControl&&(o.cors.expected&&qq.indexOf(["GET","POST","HEAD"],o.method)>=0&&(l=!1,qq.each(l,(function(e,t){if(qq.indexOf(["Accept","Accept-Language","Content-Language","Content-Type"],t)<0)return l=!0,!1})),!l)||(t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.setRequestHeader("Cache-Control","no-cache"))),!o.contentType||"POST"!==u&&"PUT"!==u||t.setRequestHeader("Content-Type",o.contentType),qq.extend(c,qq.isFunction(n)?n(e):n),qq.extend(c,r),qq.each(c,(function(e,n){t.setRequestHeader(e,n)})));var l}(e),t("Sending "+f+" request for "+e),p?l.send(p):n||!d?l.send():d&&o.contentType&&o.contentType.toLowerCase().indexOf("application/x-www-form-urlencoded")>=0?l.send(qq.obj2url(d,"")):d&&o.contentType&&o.contentType.toLowerCase().indexOf("application/json")>=0?l.send(JSON.stringify(d)):l.send(d),l}n="GET"===o.method||"DELETE"===o.method,qq.extend(this,{initTransport:function(e){var t,n,a,s,u,c;return{withPath:function(e){return t=e,this},withParams:function(e){return n=e,this},withQueryParams:function(e){return c=e,this},withHeaders:function(e){return a=e,this},withPayload:function(e){return s=e,this},withCacheBuster:function(){return u=!0,this},send:function(f){return u&&qq.indexOf(["GET","DELETE"],o.method)>=0&&(n.qqtimestamp=(new Date).getTime()),function(e,t,n,a,s,u,c){if(i[e]={addToPath:n,additionalParams:a,additionalQueryParams:s,additionalHeaders:u,payload:c},r.push(e)<=o.maxConnections)return l(e,t)}(e,f,t,n,c,a,s)}}},canceled:function(e){u(e)}})},qq.UploadHandler=function(e){"use strict";var t=e.proxy,n={},r=t.onCancel,i=t.getName;qq.extend(this,{add:function(e,t){n[e]=t,n[e].temp={}},cancel:function(e){var t=this,o=new qq.Promise;r(e,i(e),o).then((function(){t.isValid(e)&&(n[e].canceled=!0,t.expunge(e)),o.success()}))},expunge:function(e){delete n[e]},getThirdPartyFileId:function(e){return n[e].key},isValid:function(e){return void 0!==n[e]},reset:function(){n={}},_getFileState:function(e){return n[e]},_setThirdPartyFileId:function(e,t){n[e].key=t},_wasCanceled:function(e){return!!n[e].canceled}})},qq.UploadHandlerController=function(e,t){"use strict";var n,r,i,o,a=this,s=!1,u=!1,c={paramsStore:{},maxConnections:3,chunking:{enabled:!1,multiple:{enabled:!1}},log:function(e,t){},onProgress:function(e,t,n,r){},onComplete:function(e,t,n,r){},onCancel:function(e,t){},onUploadPrep:function(e){},onUpload:function(e,t){},onUploadChunk:function(e,t,n){},onUploadChunkSuccess:function(e,t,n,r){},onAutoRetry:function(e,t,n,r){},onResume:function(e,t,n){},onUuidChanged:function(e,t){},getName:function(e){},setSize:function(e,t){},isQueued:function(e){},getIdsInProxyGroup:function(e){},getIdsInBatch:function(e){}},l={done:function(e,t,n,r){var o=i._getChunkData(e,t);i._getFileState(e).attemptingResume=!1,delete i._getFileState(e).temp.chunkProgress[t],i._getFileState(e).loaded+=o.size,c.onUploadChunkSuccess(e,i._getChunkDataForCallback(o),n,r)},finalize:function(e){var t=c.getSize(e),n=c.getName(e);r("All chunks have been uploaded for "+e+" - finalizing...."),i.finalizeChunks(e).then((function(o,a){r("Finalize successful for "+e);var s=p.normalizeResponse(o,!0);c.onProgress(e,n,t,t),i._maybeDeletePersistedChunkData(e),p.cleanup(e,s,a)}),(function(t,i){var o=p.normalizeResponse(t,!1);r("Problem finalizing chunks for file ID "+e+" - "+o.error,"error"),o.reset&&l.reset(e),c.onAutoRetry(e,n,o,i)||p.cleanup(e,o,i)}))},handleFailure:function(e,t,n,o){var a=c.getName(t);r("Chunked upload request failed for "+t+", chunk "+e),i.clearCachedChunk(t,e);var s,d=p.normalizeResponse(n,!1);d.reset?l.reset(t):(s=qq.indexOf(i._getFileState(t).chunking.inProgress,e))>=0&&(i._getFileState(t).chunking.inProgress.splice(s,1),i._getFileState(t).chunking.remaining.unshift(e)),i._getFileState(t).temp.ignoreFailure||(u&&(i._getFileState(t).temp.ignoreFailure=!0,r(qq.format("Going to attempt to abort these chunks: {}. These are currently in-progress: {}.",JSON.stringify(Object.keys(i._getXhrs(t))),JSON.stringify(i._getFileState(t).chunking.inProgress))),qq.each(i._getXhrs(t),(function(e,n){r(qq.format("Attempting to abort file {}.{}. XHR readyState {}. ",t,e,n.readyState)),n.abort(),n._cancelled=!0})),i.moveInProgressToRemaining(t),f.free(t,!0)),c.onAutoRetry(t,a,d,o)||p.cleanup(t,d,o))},hasMoreParts:function(e){return!!i._getFileState(e).chunking.remaining.length},nextPart:function(e){var t=i._getFileState(e).chunking.remaining.shift();return t>=i._getTotalChunks(e)&&(t=null),t},reset:function(e){r("Server or callback has ordered chunking effort to be restarted on next attempt for item ID "+e,"error"),i._maybeDeletePersistedChunkData(e),i.reevaluateChunking(e),i._getFileState(e).loaded=0},sendNext:function(e){var t=c.getSize(e),n=c.getName(e),o=l.nextPart(e),a=i._getChunkData(e,o),s=i._getFileState(e).attemptingResume,d=i._getFileState(e).chunking.inProgress||[];null==i._getFileState(e).loaded&&(i._getFileState(e).loaded=0),s&&!1===c.onResume(e,n,a)&&(l.reset(e),o=l.nextPart(e),a=i._getChunkData(e,o),s=!1),null==o&&0===d.length?l.finalize(e):(r(qq.format("Sending chunked upload request for item {}.{}, bytes {}-{} of {}.",e,o,a.start+1,a.end,t)),c.onUploadChunk(e,n,i._getChunkDataForCallback(a)),d.push(o),i._getFileState(e).chunking.inProgress=d,u&&f.open(e,o),u&&f.available()&&i._getFileState(e).chunking.remaining.length&&l.sendNext(e),0===a.blob.size?(r(qq.format("Chunk {} for file {} will not be uploaded, zero sized chunk.",o,e),"error"),l.handleFailure(o,e,"File is no longer available",null)):i.uploadChunk(e,o,s).then((function(t,n){r("Chunked upload request succeeded for "+e+", chunk "+o),i.clearCachedChunk(e,o);var a=i._getFileState(e).chunking.inProgress||[],s=p.normalizeResponse(t,!0),u=qq.indexOf(a,o);r(qq.format("Chunk {} for file {} uploaded successfully.",o,e)),l.done(e,o,s,n),u>=0&&a.splice(u,1),i._maybePersistChunkedState(e),l.hasMoreParts(e)||0!==a.length?l.hasMoreParts(e)?l.sendNext(e):r(qq.format("File ID {} has no more chunks to send and these chunk indexes are still marked as in-progress: {}",e,JSON.stringify(a))):l.finalize(e)}),(function(t,n){l.handleFailure(o,e,t,n)})).done((function(){i.clearXhr(e,o)})))}},f={_open:[],_openChunks:{},_waiting:[],available:function(){var e=c.maxConnections,t=0,n=0;return qq.each(f._openChunks,(function(e,r){t++,n+=r.length})),e-(f._open.length-t+n)},free:function(e,t){var n,o=!t,a=qq.indexOf(f._waiting,e),s=qq.indexOf(f._open,e);delete f._openChunks[e],p.getProxyOrBlob(e)instanceof qq.BlobProxy&&(r("Generated blob upload has ended for "+e+", disposing generated blob."),delete i._getFileState(e).file),a>=0?f._waiting.splice(a,1):o&&s>=0&&(f._open.splice(s,1),(n=f._waiting.shift())>=0&&(f._open.push(n),p.start(n)))},getWaitingOrConnected:function(){var e=[];return qq.each(f._openChunks,(function(t,n){n&&n.length&&e.push(parseInt(t))})),qq.each(f._open,(function(t,n){f._openChunks[n]||e.push(parseInt(n))})),e=e.concat(f._waiting)},isUsingConnection:function(e){return qq.indexOf(f._open,e)>=0},open:function(e,t){return null==t&&f._waiting.push(e),!!f.available()&&(null==t?(f._waiting.pop(),f._open.push(e)):((n=f._openChunks[e]||[]).push(t),f._openChunks[e]=n),!0);var n},reset:function(){f._waiting=[],f._open=[]}},d=function(e,t){i._getFileState(e).loaded=0,r("Sending simple upload request for "+e),i.uploadFile(e).then((function(n,i){r("Simple upload request succeeded for "+e);var o=p.normalizeResponse(n,!0),a=c.getSize(e);c.onProgress(e,t,a,a),p.maybeNewUuid(e,o),p.cleanup(e,o,i)}),(function(n,i){r("Simple upload request failed for "+e);var o=p.normalizeResponse(n,!1);c.onAutoRetry(e,t,o,i)||p.cleanup(e,o,i)}))},p={cancel:function(e){r("Cancelling "+e),c.paramsStore.remove(e),f.free(e)},cleanup:function(e,t,n){var r=c.getName(e);c.onComplete(e,r,t,n),i._getFileState(e)&&i._clearXhrs&&i._clearXhrs(e),f.free(e)},getProxyOrBlob:function(e){return i.getProxy&&i.getProxy(e)||i.getFile&&i.getFile(e)},initHandler:function(){var e=t?qq[t]:qq.traditional,n=qq.supportedFeatures.ajaxUploading?"Xhr":"Form";(i=new e[n+"UploadHandler"](c,{getDataByUuid:c.getDataByUuid,getName:c.getName,getSize:c.getSize,getUuid:c.getUuid,log:r,onCancel:c.onCancel,onProgress:c.onProgress,onUuidChanged:c.onUuidChanged}))._removeExpiredChunkingRecords&&i._removeExpiredChunkingRecords()},isDeferredEligibleForUpload:function(e){return c.isQueued(e)},maybeDefer:function(e,t){return t&&!i.getFile(e)&&t instanceof qq.BlobProxy?(c.onUploadPrep(e),r("Attempting to generate a blob on-demand for "+e),t.create().then((function(t){r("Generated an on-demand blob for "+e),i.updateBlob(e,t),c.setSize(e,t.size),i.reevaluateChunking(e),p.maybeSendDeferredFiles(e)}),(function(t){var i={};t&&(i.error=t),r(qq.format("Failed to generate blob for ID {}. Error message: {}.",e,t),"error"),c.onComplete(e,c.getName(e),qq.extend(i,n),null),p.maybeSendDeferredFiles(e),f.free(e)})),!1):p.maybeSendDeferredFiles(e)},maybeSendDeferredFiles:function(e){var t=c.getIdsInProxyGroup(e),n=!1;return t&&t.length?(r("Maybe ready to upload proxy group file "+e),qq.each(t,(function(t,r){if(p.isDeferredEligibleForUpload(r)&&i.getFile(r))n=r===e,p.now(r);else if(p.isDeferredEligibleForUpload(r))return!1}))):(n=!0,p.now(e)),n},maybeNewUuid:function(e,t){void 0!==t.newUuid&&c.onUuidChanged(e,t.newUuid)},normalizeResponse:function(e,t){var n=e;return qq.isObject(e)||(n={},qq.isString(e)&&!t&&(n.error=e)),n.success=t,n},now:function(e){var t=c.getName(e);if(!a.isValid(e))throw new qq.Error(e+" is not a valid file ID to upload!");c.onUpload(e,t),s&&i._shouldChunkThisFile(e)?l.sendNext(e):d(e,t)},start:function(e){var t=p.getProxyOrBlob(e);return t?p.maybeDefer(e,t):(p.now(e),!0)}};qq.extend(this,{add:function(e,t){i.add.apply(this,arguments)},upload:function(e){return!!f.open(e)&&p.start(e)},retry:function(e){return u&&(i._getFileState(e).temp.ignoreFailure=!1),f.isUsingConnection(e)?p.start(e):a.upload(e)},cancel:function(e){var t=i.cancel(e);qq.isGenericPromise(t)?t.then((function(){p.cancel(e)})):!1!==t&&p.cancel(e)},cancelAll:function(){var e,t=f.getWaitingOrConnected();if(t.length)for(e=t.length-1;e>=0;e--)a.cancel(t[e]);f.reset()},getFile:function(e){return i.getProxy&&i.getProxy(e)?i.getProxy(e).referenceBlob:i.getFile&&i.getFile(e)},isProxied:function(e){return!(!i.getProxy||!i.getProxy(e))},getInput:function(e){if(i.getInput)return i.getInput(e)},reset:function(){r("Resetting upload handler"),a.cancelAll(),f.reset(),i.reset()},expunge:function(e){if(a.isValid(e))return i.expunge(e)},isValid:function(e){return i.isValid(e)},getResumableFilesData:function(){return i.getResumableFilesData?i.getResumableFilesData():[]},getThirdPartyFileId:function(e){if(a.isValid(e))return i.getThirdPartyFileId(e)},pause:function(e){return!!(a.isResumable(e)&&i.pause&&a.isValid(e)&&i.pause(e))&&(f.free(e),i.moveInProgressToRemaining(e),!0)},isResumable:function(e){return!!i.isResumable&&i.isResumable(e)}}),qq.extend(c,e),r=c.log,s=c.chunking.enabled&&qq.supportedFeatures.chunking,u=s&&c.chunking.concurrent.enabled,(o={})[c.preventRetryParam]=!0,n=o,p.initHandler()},qq.WindowReceiveMessage=function(e){"use strict";var t={};qq.extend({log:function(e,t){}},e),qq.extend(this,{receiveMessage:function(e,n){window.postMessage?t[e]=qq(window).attach("message",(function(e){n(e.data)})):log("iframe message passing not supported in this browser!","error")},stopReceivingMessages:function(e){if(window.postMessage){var n=t[e];n&&n()}}})},qq.FormUploadHandler=function(e){"use strict";var t=e.options,n=this,r=e.proxy,i=qq.getUniqueId(),o={},a={},s={},u=t.isCors,c=t.inputName,l=r.getUuid,f=r.log,d=new qq.WindowReceiveMessage({log:f});function p(e){return e.split("_")[0]}qq.extend(this,new qq.UploadHandler(e)),qq.override(this,(function(e){return{add:function(t,n){e.add(t,{input:n}),n.setAttribute("name",c),n.parentNode&&qq(n).remove()},expunge:function(t){!function(e){delete a[e],u&&(clearTimeout(s[e]),delete s[e],d.stopReceivingMessages(e));var t=document.getElementById(n._getIframeName(e));t&&(t.setAttribute("src","javascript:false;"),qq(t).remove())}(t),e.expunge(t)},isValid:function(t){return e.isValid(t)&&void 0!==n._getFileState(t).input}}})),qq.extend(this,{getInput:function(e){return n._getFileState(e).input},_attachLoadEvent:function(e,t){var r;u?function(e,t){var r=e.id,i=p(r),u=l(i);o[u]=t,a[i]=qq(e).attach("load",(function(){n.getInput(i)&&(f("Received iframe load event for CORS upload request (iframe name "+r+")"),s[r]=setTimeout((function(){var e="No valid message received from loaded iframe for iframe name "+r;f(e,"error"),t({error:e})}),1e3))})),d.receiveMessage(r,(function(e){f("Received the following window message: '"+e+"'");p(r);var t,i=n._parseJsonResponse(e),a=i.uuid;a&&o[a]?(f("Handling response for iframe name "+r),clearTimeout(s[r]),delete s[r],n._detachLoadEvent(r),t=o[a],delete o[a],d.stopReceivingMessages(r),t(i)):a||f("'"+e+"' does not contain a UUID - ignoring.")}))}(e,t):a[e.id]=qq(e).attach("load",(function(){if(f("Received response for "+e.id),e.parentNode){try{if(e.contentDocument&&e.contentDocument.body&&"false"==e.contentDocument.body.innerHTML)return}catch(e){f("Error when attempting to access iframe during handling of upload response ("+e.message+")","error"),r={success:!1}}t(r)}}))},_createIframe:function(e){return function(e){var t=qq.toElement("<iframe src='javascript:false;' name='"+e+"' />");return t.setAttribute("id",e),t.style.display="none",document.body.appendChild(t),t}(n._getIframeName(e))},_detachLoadEvent:function(e){void 0!==a[e]&&(a[e](),delete a[e])},_getIframeName:function(e){return e+"_"+i},_initFormForUpload:function(e){var t=e.method,n=e.endpoint,r=e.params,i=e.paramsInBody,o=e.targetName,a=qq.toElement("<form method='"+t+"' enctype='multipart/form-data'></form>"),s=n;return i?qq.obj2Inputs(r,a):s=qq.obj2url(r,n),a.setAttribute("action",s),a.setAttribute("target",o),a.style.display="none",document.body.appendChild(a),a},_parseJsonResponse:function(e){var t={};try{t=qq.parseJson(e)}catch(e){f("Error when attempting to parse iframe upload response ("+e.message+")","error")}return t}})},qq.XhrUploadHandler=function(e){"use strict";var t=this,n=e.options.namespace,r=e.proxy,i=e.options.chunking,o=e.options.resume,a=i&&e.options.chunking.enabled&&qq.supportedFeatures.chunking,s=o&&e.options.resume.enabled&&a&&qq.supportedFeatures.resume,u=r.getName,c=r.getSize,l=r.getUuid,f=r.getEndpoint,d=r.getDataByUuid,p=r.onUuidChanged,h=r.onProgress,g=r.log;function m(e){qq.each(t._getXhrs(e),(function(n,r){var i=t._getAjaxRequester(e,n);r.onreadystatechange=null,r.upload.onprogress=null,r.abort(),i&&i.canceled&&i.canceled(e)}))}qq.extend(this,new qq.UploadHandler(e)),qq.override(this,(function(e){return{add:function(n,r){if(qq.isFile(r)||qq.isBlob(r))e.add(n,{file:r});else{if(!(r instanceof qq.BlobProxy))throw new Error("Passed obj is not a File, Blob, or proxy");e.add(n,{proxy:r})}t._initTempState(n),s&&t._maybePrepareForResume(n)},expunge:function(n){m(n),t._maybeDeletePersistedChunkData(n),t._clearXhrs(n),e.expunge(n)}}})),qq.extend(this,{clearCachedChunk:function(e,n){delete t._getFileState(e).temp.cachedChunks[n]},clearXhr:function(e,n){var r=t._getFileState(e).temp;r.xhrs&&delete r.xhrs[n],r.ajaxRequesters&&delete r.ajaxRequesters[n]},finalizeChunks:function(e,n){var r=t._getTotalChunks(e)-1,i=t._getXhr(e,r);return n?(new qq.Promise).success(n(i),i):(new qq.Promise).success({},i)},getFile:function(e){return t.isValid(e)&&t._getFileState(e).file},getProxy:function(e){return t.isValid(e)&&t._getFileState(e).proxy},getResumableFilesData:function(){var e=[];return t._iterateResumeRecords((function(n,r){t.moveInProgressToRemaining(null,r.chunking.inProgress,r.chunking.remaining);var i={name:r.name,remaining:r.chunking.remaining,size:r.size,uuid:r.uuid};r.key&&(i.key=r.key),e.push(i)})),e},isResumable:function(e){return!!i&&t.isValid(e)&&!t._getFileState(e).notResumable},moveInProgressToRemaining:function(e,n,r){var i=n||t._getFileState(e).chunking.inProgress,o=r||t._getFileState(e).chunking.remaining;i&&(g(qq.format("Moving these chunks from in-progress {}, to remaining.",JSON.stringify(i))),i.reverse(),qq.each(i,(function(e,t){o.unshift(t)})),i.length=0)},pause:function(e){if(t.isValid(e))return g(qq.format("Aborting XHR upload for {} '{}' due to pause instruction.",e,u(e))),t._getFileState(e).paused=!0,m(e),!0},reevaluateChunking:function(e){if(i&&t.isValid(e)){var n,r,o=t._getFileState(e);if(delete o.chunking,o.chunking={},(n=t._getTotalChunks(e))>1||i.mandatory){for(o.chunking.enabled=!0,o.chunking.parts=n,o.chunking.remaining=[],r=0;r<n;r++)o.chunking.remaining.push(r);t._initTempState(e)}else o.chunking.enabled=!1}},updateBlob:function(e,n){t.isValid(e)&&(t._getFileState(e).file=n)},_clearXhrs:function(e){var n=t._getFileState(e).temp;qq.each(n.ajaxRequesters,(function(e){delete n.ajaxRequesters[e]})),qq.each(n.xhrs,(function(e){delete n.xhrs[e]}))},_createXhr:function(e,n){return t._registerXhr(e,n,qq.createXhrInstance())},_getAjaxRequester:function(e,n){var r=null==n?-1:n;return t._getFileState(e).temp.ajaxRequesters[r]},_getChunkData:function(e,n){var r=i.partSize,o=c(e),a=t.getFile(e),s=r*n,u=s+r>=o?o:s+r,l=t._getTotalChunks(e),f=this._getFileState(e).temp.cachedChunks,d=f[n]||qq.sliceBlob(a,s,u);return f[n]=d,{part:n,start:s,end:u,count:l,blob:d,size:u-s}},_getChunkDataForCallback:function(e){return{partIndex:e.part,startByte:e.start+1,endByte:e.end,totalParts:e.count}},_getLocalStorageId:function(e){var t=u(e),r=c(e),o=i.partSize,a=f(e);return qq.format("qq{}resume{}-{}-{}-{}-{}",n,"5.0",t,r,o,a)},_getMimeType:function(e){return t.getFile(e).type},_getPersistableData:function(e){return t._getFileState(e).chunking},_getTotalChunks:function(e){if(i){var t=c(e),n=i.partSize;return Math.ceil(t/n)}},_getXhr:function(e,n){var r=null==n?-1:n;return t._getFileState(e).temp.xhrs[r]},_getXhrs:function(e){return t._getFileState(e).temp.xhrs},_iterateResumeRecords:function(e){s&&qq.each(localStorage,(function(t,r){if(0===t.indexOf(qq.format("qq{}resume",n))){var i=JSON.parse(r);e(t,i)}}))},_initTempState:function(e){t._getFileState(e).temp={ajaxRequesters:{},chunkProgress:{},xhrs:{},cachedChunks:{}}},_markNotResumable:function(e){t._getFileState(e).notResumable=!0},_maybeDeletePersistedChunkData:function(e){var n;return!!(s&&t.isResumable(e)&&(n=t._getLocalStorageId(e))&&localStorage.getItem(n))&&(localStorage.removeItem(n),!0)},_maybePrepareForResume:function(e){var n,r,i=t._getFileState(e);s&&void 0===i.key&&(n=t._getLocalStorageId(e),(r=localStorage.getItem(n))&&(r=JSON.parse(r),d(r.uuid)?t._markNotResumable(e):(g(qq.format("Identified file with ID {} and name of {} as resumable.",e,u(e))),p(e,r.uuid),i.key=r.key,i.chunking=r.chunking,i.loaded=r.loaded,i.attemptingResume=!0,t.moveInProgressToRemaining(e))))},_maybePersistChunkedState:function(e){var n,r,i=t._getFileState(e);if(s&&t.isResumable(e)){n=t._getLocalStorageId(e),r={name:u(e),size:c(e),uuid:l(e),key:i.key,chunking:i.chunking,loaded:i.loaded,lastUpdated:Date.now()};try{localStorage.setItem(n,JSON.stringify(r))}catch(t){g(qq.format("Unable to save resume data for '{}' due to error: '{}'.",e,t.toString()),"warn")}}},_registerProgressHandler:function(e,n,r){var i=t._getXhr(e,n),o=u(e),a={simple:function(t,n){var r=c(e);h(e,o,t===n?r:t>=r?r-1:t,r)},chunked:function(i,a){var s=t._getFileState(e).temp.chunkProgress,u=t._getFileState(e).loaded,l=i,f=a,d=c(e),p=l-(f-r),g=u;s[n]=p,qq.each(s,(function(e,t){g+=t})),h(e,o,g,d)}};i.upload.onprogress=function(e){e.lengthComputable&&a[null==r?"simple":"chunked"](e.loaded,e.total)}},_registerXhr:function(e,n,r,i){var o=null==n?-1:n,a=t._getFileState(e).temp;return a.xhrs=a.xhrs||{},a.ajaxRequesters=a.ajaxRequesters||{},a.xhrs[o]=r,i&&(a.ajaxRequesters[o]=i),r},_removeExpiredChunkingRecords:function(){var e=o.recordsExpireIn;t._iterateResumeRecords((function(t,n){var r=new Date(n.lastUpdated);r.setDate(r.getDate()+e),r.getTime()<=Date.now()&&(g("Removing expired resume record with key "+t),localStorage.removeItem(t))}))},_shouldChunkThisFile:function(e){var n=t._getFileState(e);return n.chunking||t.reevaluateChunking(e),n.chunking.enabled}})},qq.DeleteFileAjaxRequester=function(e){"use strict";var t,n={method:"DELETE",uuidParamName:"qquuid",endpointStore:{},maxConnections:3,customHeaders:function(e){return{}},paramsStore:{},cors:{expected:!1,sendCredentials:!1},log:function(e,t){},onDelete:function(e){},onDeleteComplete:function(e,t,n){}};qq.extend(n,e),t=qq.extend(this,new qq.AjaxRequester({acceptHeader:"application/json",validMethods:["POST","DELETE"],method:n.method,endpointStore:n.endpointStore,paramsStore:n.paramsStore,mandatedParams:"POST"===n.method.toUpperCase()?{_method:"DELETE"}:{},maxConnections:n.maxConnections,customHeaders:function(e){return n.customHeaders.get(e)},log:n.log,onSend:n.onDelete,onComplete:n.onDeleteComplete,cors:n.cors})),qq.extend(this,{sendDelete:function(e,r,i){var o=i||{};n.log("Submitting delete file request for "+e),"DELETE"===n.method?t.initTransport(e).withPath(r).withParams(o).send():(o[n.uuidParamName]=r,t.initTransport(e).withParams(o).send())}})},function(){function e(e,n,r,i,o){var a,s=e.naturalWidth,u=e.naturalHeight,c=i.width,l=i.height,f=r.getContext("2d"),d=new qq.Promise;return f.save(),i.resize?function(e){var n=e.blob,r=e.image,i=e.imageHeight,o=e.imageWidth,a=e.orientation,s=new qq.Promise,u=e.resize,c=document.createElement("canvas"),l=c.getContext("2d"),f=e.canvas,d=e.targetHeight,p=e.targetWidth;return t(c,o,i,a),f.height=d,f.width=p,l.drawImage(r,0,0),u({blob:n,height:d,image:r,sourceCanvas:c,targetCanvas:f,width:p}).then((function(){f.qqImageRendered&&f.qqImageRendered(),s.success()}),s.failure),s}({blob:n,canvas:r,image:e,imageHeight:u,imageWidth:s,orientation:i.orientation,resize:i.resize,targetHeight:l,targetWidth:c}):(qq.supportedFeatures.unlimitedScaledImageSize||(a=function(e){if(!qq.ios())throw new qq.Error("Downsampled dimensions can only be reliably calculated for iOS!");if(e.origHeight*e.origWidth>5241e3)return{newHeight:Math.round(Math.sqrt(e.origHeight/e.origWidth*5241e3)),newWidth:Math.round(Math.sqrt(e.origWidth/e.origHeight*5241e3))}}({origWidth:c,origHeight:l}))&&(qq.log(qq.format("Had to reduce dimensions due to device limitations from {}w / {}h to {}w / {}h",c,l,a.newWidth,a.newHeight),"warn"),c=a.newWidth,l=a.newHeight),t(r,c,l,i.orientation),qq.ios()?function(){(function(e){var t,n=e.naturalWidth,r=e.naturalHeight,i=document.createElement("canvas");return n*r>1048576&&(i.width=i.height=1,(t=i.getContext("2d")).drawImage(e,1-n,0),0===t.getImageData(0,0,1,1).data[3])})(e)&&(s/=2,u/=2);var t,n,r,i=1024,a=document.createElement("canvas"),d=o?function(e,t,n){var r,i,o,a=document.createElement("canvas"),s=0,u=n,c=n;for(a.width=1,a.height=n,(r=a.getContext("2d")).drawImage(e,0,0),i=r.getImageData(0,0,1,n).data;c>s;)0===i[4*(c-1)+3]?u=c:s=c,c=u+s>>1;return 0===(o=c/n)?1:o}(e,0,u):1,p=Math.ceil(i*c/s),h=Math.ceil(i*l/u/d),g=0,m=0;for(a.width=a.height=i,t=a.getContext("2d");g<u;){for(n=0,r=0;n<s;)t.clearRect(0,0,i,i),t.drawImage(e,-n,-g),f.drawImage(a,0,0,i,i,r,m,p,h),n+=i,r+=p;g+=i,m+=h}f.restore(),a=t=null}():f.drawImage(e,0,0,c,l),r.qqImageRendered&&r.qqImageRendered(),d.success(),d)}function t(e,t,n,r){switch(r){case 5:case 6:case 7:case 8:e.width=n,e.height=t;break;default:e.width=t,e.height=n}var i=e.getContext("2d");switch(r){case 2:i.translate(t,0),i.scale(-1,1);break;case 3:i.translate(t,n),i.rotate(Math.PI);break;case 4:i.translate(0,n),i.scale(1,-1);break;case 5:i.rotate(.5*Math.PI),i.scale(1,-1);break;case 6:i.rotate(.5*Math.PI),i.translate(0,-n);break;case 7:i.rotate(.5*Math.PI),i.translate(t,-n),i.scale(-1,1);break;case 8:i.rotate(-.5*Math.PI),i.translate(-t,0)}}function n(e,t){var n=this;window.Blob&&e instanceof Blob&&function(){var t=new Image,r=window.URL&&window.URL.createObjectURL?window.URL:window.webkitURL&&window.webkitURL.createObjectURL?window.webkitURL:null;if(!r)throw Error("No createObjectURL function found to create blob url");t.src=r.createObjectURL(e),n.blob=e,e=t}(),e.naturalWidth||e.naturalHeight||(e.onload=function(){var e=n.imageLoadListeners;e&&(n.imageLoadListeners=null,setTimeout((function(){for(var t=0,n=e.length;t<n;t++)e[t]()}),0))},e.onerror=t,this.imageLoadListeners=[]),this.srcImage=e}n.prototype.render=function(t,n){n=n||{};var r,i,o=this,a=this.srcImage.naturalWidth,s=this.srcImage.naturalHeight,u=n.width,c=n.height,l=n.maxWidth,f=n.maxHeight,d=!this.blob||"image/jpeg"===this.blob.type,p=t.tagName.toLowerCase();this.imageLoadListeners?this.imageLoadListeners.push((function(){o.render(t,n)})):(u&&!c?c=s*u/a<<0:c&&!u?u=a*c/s<<0:(u=a,c=s),l&&u>l&&(c=s*(u=l)/a<<0),f&&c>f&&(u=a*(c=f)/s<<0),r={width:u,height:c},qq.each(n,(function(e,t){r[e]=t})),"img"===p?(i=t.src,function(t,n,r,i){var o=document.createElement("canvas"),a=r.mime||"image/jpeg",s=new qq.Promise;return e(t,n,o,r,i).then((function(){s.success(o.toDataURL(a,r.quality||.8))})),s}(o.srcImage,o.blob,r,d).then((function(e){t.src=e,i===t.src&&t.onload()}))):"canvas"===p&&e(this.srcImage,this.blob,t,r,d),"function"==typeof this.onrender&&this.onrender(t))},qq.MegaPixImage=n}(),qq.ImageGenerator=function(e){"use strict";function t(e){return"img"===e.tagName.toLowerCase()}function n(e){return"canvas"===e.tagName.toLowerCase()}function r(e){var t=e.split("/"),n=t[t.length-1].split("?")[0],r=qq.getExtension(n);switch(r=r&&r.toLowerCase()){case"jpeg":case"jpg":return"image/jpeg";case"png":return"image/png";case"bmp":return"image/bmp";case"gif":return"image/gif";case"tiff":case"tif":return"image/tiff"}}function i(e){var t,n,r,i=document.createElement("a");return i.href=e,t=i.protocol,r=i.port,n=i.hostname,t.toLowerCase()!==window.location.protocol.toLowerCase()||(n.toLowerCase()!==window.location.hostname.toLowerCase()||r!==window.location.port&&!qq.ie())}function o(r,i){var o=t(r)||n(r);return t(r)?function(t,n){t.onload=function(){t.onload=null,t.onerror=null,n.success(t)},t.onerror=function(){t.onload=null,t.onerror=null,e("Problem drawing thumbnail!","error"),n.failure(t,"Problem drawing thumbnail!")}}(r,i):n(r)?function(e,t){e.qqImageRendered=function(){t.success(e)}}(r,i):(i.failure(r),e(qq.format("Element container of type {} is not supported!",r.tagName),"error")),o}function a(e,t,n,a,s){var u=new Image,c=new qq.Promise;o(u,c),i(e)&&(u.crossOrigin="anonymous"),u.src=e,c.then((function(){o(t,n),new qq.MegaPixImage(u).render(t,{maxWidth:a,maxHeight:a,mime:r(e),resize:s})}),n.failure)}function s(e,t,n,r){o(t,n),qq(t).css({maxWidth:r+"px",maxHeight:r+"px"}),t.src=e}function u(e,r,u){var c,l=new qq.Promise,f=u.scale,d=f?u.maxSize:null;return f&&t(r)?(c=document.createElement("canvas")).getContext&&c.getContext("2d")?i(e)&&void 0===(new Image).crossOrigin?s(e,r,l,d):a(e,r,l,d):s(e,r,l,d):n(r)?a(e,r,l,d):o(r,l)&&(r.src=e),l}qq.extend(this,{generate:function(t,n,r){return qq.isString(t)?(e("Attempting to update thumbnail based on server response."),u(t,n,r||{})):(e("Attempting to draw client-side image preview."),function(t,n,r){var i=new qq.Promise,a=new qq.Identify(t,e),s=r.maxSize,u=null==r.orient||r.orient,c=function(){n.onerror=null,n.onload=null,e("Could not render preview, file may be too large!","error"),i.failure(n,"Browser cannot render image!")};return a.isPreviewable().then((function(a){var l={parse:function(){return(new qq.Promise).success()}},f=u?new qq.Exif(t,e):l,d=new qq.MegaPixImage(t,c);o(n,i)&&f.parse().then((function(e){var t=e&&e.Orientation;d.render(n,{maxWidth:s,maxHeight:s,orientation:t,mime:a,resize:r.customResizeFunction})}),(function(t){e(qq.format("EXIF data could not be parsed ({}). Assuming orientation = 1.",t)),d.render(n,{maxWidth:s,maxHeight:s,mime:a,resize:r.customResizeFunction})}))}),(function(){e("Not previewable"),i.failure(n,"Not previewable")})),i}(t,n,r||{}))}}),this._testing={},this._testing.isImg=t,this._testing.isCanvas=n,this._testing.isCrossOrigin=i,this._testing.determineMimeOfFileName=r},qq.Exif=function(e,t){"use strict";var n=[274],r={274:{name:"Orientation",bytes:2}};function i(e){for(var t=0,n=0;e.length>0;)t+=parseInt(e.substring(0,2),16)*Math.pow(2,n),e=e.substring(2,e.length),n+=8;return t}function o(){var t=new qq.Promise;return qq.readBlobToHex(e,0,6).then((function(n){0!==n.indexOf("ffd8")?t.failure("Not a valid JPEG!"):function t(n,r){var i=n,o=r;return void 0===i&&(i=2,o=new qq.Promise),qq.readBlobToHex(e,i,4).then((function(e){var n,r=/^ffe([0-9])/.exec(e);r?"1"!==r[1]?(n=parseInt(e.slice(4,8),16),t(i+n+2,o)):o.success(i):o.failure("No EXIF header to be found!")})),o}().then((function(e){t.success(e)}),(function(e){t.failure(e)}))})),t}qq.extend(this,{parse:function(){var a=new qq.Promise,s=function(e){t(qq.format("EXIF header parse failed: '{}' ",e)),a.failure(e)};return o().then((function(o){var u,c;t(qq.format("Moving forward with EXIF header parsing for '{}'",void 0===e.name?"blob":e.name)),(u=o,c=new qq.Promise,qq.readBlobToHex(e,u+10,2).then((function(e){c.success("4949"===e)})),c).then((function(u){t(qq.format("EXIF Byte order is {} endian",u?"little":"big")),function(t,n){var r=new qq.Promise;return qq.readBlobToHex(e,t+18,2).then((function(e){if(n)return r.success(i(e));r.success(parseInt(e,16))})),r}(o,u).then((function(c){t(qq.format("Found {} APP1 directory entries",c)),function(t,n){var r=t+20,i=12*n;return qq.readBlobToHex(e,r,i)}(o,c).then((function(e){var o=function(e){for(var t=[],n=0;n+24<=e.length;)t.push(e.slice(n,n+24)),n+=24;return t}(e),s=function(e,t){var o=qq.extend([],n),a={};return qq.each(t,(function(t,n){var s,u,c,l=n.slice(0,4),f=e?i(l):parseInt(l,16),d=o.indexOf(f);if(d>=0&&(u=r[f].name,c=r[f].bytes,s=n.slice(16,16+2*c),a[u]=e?i(s):parseInt(s,16),o.splice(d,1)),0===o.length)return!1})),a}(u,o);t("Successfully parsed some EXIF tags"),a.success(s)}),s)}),s)}),s)}),s),a}}),this._testing={},this._testing.parseLittleEndian=i},qq.Identify=function(e,t){"use strict";qq.extend(this,{isPreviewable:function(){var n=this,r=new qq.Promise,i=!1,o=void 0===e.name?"blob":e.name;return t(qq.format("Attempting to determine if {} can be rendered in this browser",o)),t("First pass: check type attribute of blob object."),this.isPreviewableSync()?(t("Second pass: check for magic bytes in file header."),qq.readBlobToHex(e,0,4).then((function(e){qq.each(n.PREVIEWABLE_MIME_TYPES,(function(t,n){if(o=e,a=!1,s=[].concat(n),qq.each(s,(function(e,t){if(0===o.indexOf(t))return a=!0,!1})),a)return("image/tiff"!==t||qq.supportedFeatures.tiffPreviews)&&(i=!0,r.success(t)),!1;var o,a,s})),t(qq.format("'{}' is {} able to be rendered in this browser",o,i?"":"NOT")),i||r.failure()}),(function(){t("Error reading file w/ name '"+o+"'. Not able to be rendered in this browser."),r.failure()}))):r.failure(),r},isPreviewableSync:function(){var n=e.type,r=qq.indexOf(Object.keys(this.PREVIEWABLE_MIME_TYPES),n)>=0,i=!1,o=void 0===e.name?"blob":e.name;return r&&(i="image/tiff"!==n||qq.supportedFeatures.tiffPreviews),!i&&t(o+" is not previewable in this browser per the blob's type attr"),i}})},qq.Identify.prototype.PREVIEWABLE_MIME_TYPES={"image/jpeg":"ffd8ff","image/gif":"474946","image/png":"89504e","image/bmp":"424d","image/tiff":["49492a00","4d4d002a"]},qq.ImageValidation=function(e,t){"use strict";this.validate=function(n){var r,i=new qq.Promise;return t("Attempting to validate image."),!function(e){var t=!1;return qq.each(e,(function(e,n){if(n>0)return t=!0,!1})),t}(n)?i.success():(r=new qq.Promise,new qq.Identify(e,t).isPreviewable().then((function(){var n=new Image,i=window.URL&&window.URL.createObjectURL?window.URL:window.webkitURL&&window.webkitURL.createObjectURL?window.webkitURL:null;i?(n.onerror=function(){t("Cannot determine dimensions for image. May be too large.","error"),r.failure()},n.onload=function(){r.success({width:this.width,height:this.height})},n.src=i.createObjectURL(e)):(t("No createObjectURL function available to generate image URL!","error"),r.failure())}),r.failure),r).then((function(e){var t=function(e,t){var n;return qq.each(e,(function(e,r){if(r>0){var i=/(max|min)(Width|Height)/.exec(e),o=i[2].charAt(0).toLowerCase()+i[2].slice(1),a=t[o];switch(i[1]){case"min":if(a<r)return n=e,!1;break;case"max":if(a>r)return n=e,!1}}})),n}(n,e);t?i.failure(t):i.success()}),i.success),i}},qq.Session=function(e){"use strict";var t={endpoint:null,params:{},customHeaders:{},cors:{},addFileRecord:function(e){},log:function(e,t){}};function n(e,n,r,i){var o=!1;(n=n&&function(e){if(qq.isArray(e))return!0;t.log("Session response is not an array.","error")}(e))&&qq.each(e,(function(e,n){if(null==n.uuid)o=!0,t.log(qq.format("Session response item {} did not include a valid UUID - ignoring.",e),"error");else if(null==n.name)o=!0,t.log(qq.format("Session response item {} did not include a valid name - ignoring.",e),"error");else try{return t.addFileRecord(n),!0}catch(e){o=!0,t.log(e.message,"error")}return!1})),i[n&&!o?"success":"failure"](e,r)}qq.extend(t,e,!0),this.refresh=function(){var e=new qq.Promise,r=qq.extend({},t);return new qq.SessionAjaxRequester(qq.extend(r,{onComplete:function(t,r,i){n(t,r,i,e)}})).queryServer(),e}},qq.SessionAjaxRequester=function(e){"use strict";var t,n={endpoint:null,customHeaders:{},params:{},cors:{expected:!1,sendCredentials:!1},onComplete:function(e,t,n){},log:function(e,t){}};qq.extend(n,e),t=qq.extend(this,new qq.AjaxRequester({acceptHeader:"application/json",validMethods:["GET"],method:"GET",endpointStore:{get:function(){return n.endpoint}},customHeaders:n.customHeaders,log:n.log,onComplete:function(e,t,r){var i=null;if(null!=t.responseText)try{i=qq.parseJson(t.responseText)}catch(e){n.log("Problem parsing session response: "+e.message,"error"),r=!0}n.onComplete(i,!r,t)},cors:n.cors})),qq.extend(this,{queryServer:function(){var e=qq.extend({},n.params);n.log("Session query request."),t.initTransport("sessionRefresh").withParams(e).withCacheBuster().send()}})},qq.Scaler=function(e,t){"use strict";var n=e.customResizer,r=e.sendOriginal,i=e.orient,o=e.defaultType,a=e.defaultQuality/100,s=e.failureText,u=e.includeExif,c=this._getSortedSizes(e.sizes);qq.extend(this,{enabled:qq.supportedFeatures.scaling&&c.length>0,getFileRecords:function(e,l,f){var d=this,p=[],h=f.blob?f.blob:f;return new qq.Identify(h,t).isPreviewableSync()?(qq.each(c,(function(e,r){var c=d._determineOutputType({defaultType:o,requestedType:r.type,refType:h.type});p.push({uuid:qq.getUniqueId(),name:d._getName(l,{name:r.name,type:c,refType:h.type}),blob:new qq.BlobProxy(h,qq.bind(d._generateScaledImage,d,{customResizeFunction:n,maxSize:r.maxSize,orient:i,type:c,quality:a,failedText:s,includeExif:u,log:t}))})})),p.push({uuid:e,name:l,size:h.size,blob:r?h:null})):p.push({uuid:e,name:l,size:h.size,blob:h}),p},handleNewFile:function(e,t,n,r,i,o,a,s){e.qqButtonId||e.blob&&e.blob.qqButtonId;var u,c=[],l=null,f=s.addFileToHandler,d=s.uploadData,p=s.paramsStore,h=qq.getUniqueId();qq.each(this.getFileRecords(n,t,e),(function(e,t){var n,r=t.size;t.blob instanceof qq.BlobProxy&&(r=-1),n=d.addFile({uuid:t.uuid,name:t.name,size:r,batchId:o,proxyGroupId:h}),t.blob instanceof qq.BlobProxy?c.push(n):l=n,t.blob?(f(n,t.blob),i.push({id:n,file:t.blob})):d.setStatus(n,qq.status.REJECTED)})),null!==l&&(qq.each(c,(function(e,t){var n={qqparentuuid:d.retrieve({id:l}).uuid,qqparentsize:d.retrieve({id:l}).size};n[a]=d.retrieve({id:t}).uuid,d.setParentId(t,l),p.addReadOnly(t,n)})),c.length&&((u={})[a]=d.retrieve({id:l}).uuid,p.addReadOnly(l,u)))}})},qq.extend(qq.Scaler.prototype,{scaleImage:function(e,t,n){"use strict";if(!qq.supportedFeatures.scaling)throw new qq.Error("Scaling is not supported in this browser!");var r=new qq.Promise,i=n.log,o=n.getFile(e),a=n.uploadData.retrieve({id:e}),s=a&&a.name,u=a&&a.uuid,c={customResizer:t.customResizer,sendOriginal:!1,orient:t.orient,defaultType:t.type||null,defaultQuality:t.quality,failedToScaleText:"Unable to scale",sizes:[{name:"",maxSize:t.maxSize}]},l=new qq.Scaler(c,i);return qq.Scaler&&qq.supportedFeatures.imagePreviews&&o?qq.bind((function(){var t=l.getFileRecords(u,s,o)[0];t&&t.blob instanceof qq.BlobProxy?t.blob.create().then(r.success,r.failure):(i(e+" is not a scalable image!","error"),r.failure())}),this)():(r.failure(),i("Could not generate requested scaled image for "+e+". Scaling is either not possible in this browser, or the file could not be located.","error")),r},_determineOutputType:function(e){"use strict";var t=e.requestedType,n=e.defaultType,r=e.refType;return n||t?t&&qq.indexOf(Object.keys(qq.Identify.prototype.PREVIEWABLE_MIME_TYPES),t)>=0?"image/tiff"===t?qq.supportedFeatures.tiffPreviews?t:n:t:n:"image/jpeg"!==r?"image/png":r},_getName:function(e,t){"use strict";var n=e.lastIndexOf("."),r=t.type||"image/png",i=t.refType,o="",a=qq.getExtension(e),s="";return t.name&&t.name.trim().length&&(s=" ("+t.name+")"),n>=0?(o=e.substr(0,n),i!==r&&(a=r.split("/")[1]),o+=s+"."+a):o=e+s,o},_getSortedSizes:function(e){"use strict";return(e=qq.extend([],e)).sort((function(e,t){return e.maxSize>t.maxSize?1:e.maxSize<t.maxSize?-1:0}))},_generateScaledImage:function(e,t){"use strict";var n=this,r=e.customResizeFunction,i=e.log,o=e.maxSize,a=e.orient,s=e.type,u=e.quality,c=e.failedText,l=e.includeExif&&"image/jpeg"===t.type&&"image/jpeg"===s,f=new qq.Promise,d=new qq.ImageGenerator(i),p=document.createElement("canvas");return i("Attempting to generate scaled version for "+t.name),d.generate(t,p,{maxSize:o,orient:a,customResizeFunction:r}).then((function(){var e=p.toDataURL(s,u),r=function(){i("Success generating scaled version for "+t.name);var n=qq.dataUriToBlob(e);f.success(n)};l?n._insertExifHeader(t,e,i).then((function(t){e=t,r()}),(function(){i("Problem inserting EXIF header into scaled image. Using scaled image w/out EXIF data.","error"),r()})):r()}),(function(){i("Failed attempt to generate scaled version for "+t.name,"error"),f.failure(c)})),f},_insertExifHeader:function(e,t,n){"use strict";var r=new FileReader,i=new qq.Promise,o="";return r.onload=function(){o=r.result,i.success(qq.ExifRestorer.restore(o,t))},r.onerror=function(){n("Problem reading "+e.name+" during attempt to transfer EXIF data to scaled version.","error"),i.failure()},r.readAsDataURL(e),i},_dataUriToBlob:function(e){"use strict";var t,n,r,i;return t=e.split(",")[0].indexOf("base64")>=0?atob(e.split(",")[1]):decodeURI(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(t.length),i=new Uint8Array(r),qq.each(t,(function(e,t){i[e]=t.charCodeAt(0)})),this._createBlob(r,n)},_createBlob:function(e,t){"use strict";var n=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,r=n&&new n;return r?(r.append(e),r.getBlob(t)):new Blob([e],{type:t})}}),qq.ExifRestorer=(ExifRestorer={KEY_STR:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode64:function(e){var t,n,r,i,o,a="",s="",u="",c=0;do{r=(t=e[c++])>>2,i=(3&t)<<4|(n=e[c++])>>4,o=(15&n)<<2|(s=e[c++])>>6,u=63&s,isNaN(n)?o=u=64:isNaN(s)&&(u=64),a=a+this.KEY_STR.charAt(r)+this.KEY_STR.charAt(i)+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(u),t=n=s="",r=i=o=u=""}while(c<e.length);return a},restore:function(e,t){if(!e.match("data:image/jpeg;base64,"))return t;var n=this.decode64(e.replace("data:image/jpeg;base64,","")),r=this.slice2Segments(n),i=this.exifManipulation(t,r);return"data:image/jpeg;base64,"+this.encode64(i)},exifManipulation:function(e,t){var n=this.getExifArray(t),r=this.insertExif(e,n);return new Uint8Array(r)},getExifArray:function(e){for(var t,n=0;n<e.length;n++)if(255==(t=e[n])[0]&225==t[1])return t;return[]},insertExif:function(e,t){var n=e.replace("data:image/jpeg;base64,",""),r=this.decode64(n),i=r.indexOf(255,3),o=r.slice(0,i),a=r.slice(i),s=o;return s=(s=s.concat(t)).concat(a)},slice2Segments:function(e){for(var t=0,n=[];!(255==e[t]&218==e[t+1]);){if(255==e[t]&216==e[t+1])t+=2;else{var r=t+(256*e[t+2]+e[t+3])+2,i=e.slice(t,r);n.push(i),t=r}if(t>e.length)break}return n},decode64:function(e){var t,n,r,i,o="",a="",s=0,u=[];if(/[^A-Za-z0-9\+\/\=]/g.exec(e))throw new Error("There were invalid base64 characters in the input text. Valid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='");e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{t=this.KEY_STR.indexOf(e.charAt(s++))<<2|(r=this.KEY_STR.indexOf(e.charAt(s++)))>>4,n=(15&r)<<4|(i=this.KEY_STR.indexOf(e.charAt(s++)))>>2,o=(3&i)<<6|(a=this.KEY_STR.indexOf(e.charAt(s++))),u.push(t),64!=i&&u.push(n),64!=a&&u.push(o),t=n=o="",r=i=a=""}while(s<e.length);return u}},ExifRestorer),qq.TotalProgress=function(e,t){"use strict";var n={},r=0,i=0,o=-1,a=-1,s=function(t,n){t===o&&n===a||e(t,n),o=t,a=n},u=function(e){var r=t(e);r>0&&(c(e,0,r),n[e]={loaded:0,total:r})},c=function(e,t,o){var a=n[e]?n[e].loaded:0,u=n[e]?n[e].total:0;-1===t&&-1===o?(r-=a,i-=u):(t&&(r+=t-a),o&&(i+=o-u)),s(r,i)};qq.extend(this,{onAllComplete:function(e,t,n){(0===t.length||function(e,t){var n=!0;return qq.each(e,(function(e,r){if(qq.indexOf(t,r)>=0)return n=!1,!1})),n}(t,n))&&(s(i,i),this.reset())},onStatusChange:function(e,t,r){r===qq.status.CANCELED||r===qq.status.REJECTED?function(e){c(e,-1,-1),delete n[e]}(e):r===qq.status.SUBMITTING&&u(e)},onIndividualProgress:function(e,t,r){c(e,t,r),n[e]={loaded:t,total:r}},onNewSize:function(e){u(e)},reset:function(){n={},r=0,i=0}})},qq.PasteSupport=function(e){"use strict";var t,n;t={targetElement:null,callbacks:{log:function(e,t){},pasteReceived:function(e){}}},qq.extend(t,e),n=qq(t.targetElement).attach("paste",(function(e){var n=e.clipboardData;n&&qq.each(n.items,(function(e,n){if(function(e){return e.type&&0===e.type.indexOf("image/")}(n)){var r=n.getAsFile();t.callbacks.pasteReceived(r)}}))})),qq.extend(this,{reset:function(){n&&n()}})},qq.FormSupport=function(e,t,n){"use strict";var r=this,i=e.interceptSubmit,o=e.element,a=e.autoUpload;function s(e,t){if(!e.checkValidity||e.checkValidity())return!0;n("Form did not pass validation checks - will not upload.","error"),t()}qq.extend(this,{newEndpoint:null,newAutoUpload:a,attachedToForm:!1,getFormInputsAsObject:function(){return null==o?null:r._form2Obj(o)}}),o=function(e){return e&&(qq.isString(e)&&(e=document.getElementById(e)),e&&(n("Attaching to form element."),function(e){e.getAttribute("action")&&(r.newEndpoint=e.getAttribute("action"))}(e),i&&function(e){var n=e.submit;qq(e).attach("submit",(function(r){(r=r||window.event).preventDefault?r.preventDefault():r.returnValue=!1,s(e,n)&&t()})),e.submit=function(){s(e,n)&&t()}}(e))),e}(o),this.attachedToForm=!!o},qq.extend(qq.FormSupport.prototype,{_form2Obj:function(e){"use strict";var t={},n=function(e){return t=e.type,qq.indexOf(["checkbox","radio"],t.toLowerCase())>=0&&!e.checked||e.disabled&&"hidden"!==e.type.toLowerCase();var t};return qq.each(e.elements,(function(e,r){if((qq.isInput(r,!0)||"textarea"===r.tagName.toLowerCase())&&(o=r.type,qq.indexOf(["button","image","reset","submit"],o.toLowerCase())<0)&&!n(r))t[r.name]=r.value;else if("select"===r.tagName.toLowerCase()&&!n(r)){var i=function(e){var t=null;return qq.each(qq(e).children(),(function(e,n){if("option"===n.tagName.toLowerCase()&&n.selected)return t=n.value,!1})),t}(r);null!==i&&(t[r.name]=i)}var o})),t}}),qq.traditional=qq.traditional||{},qq.traditional.FormUploadHandler=function(e,t){"use strict";var n=this,r=t.getName,i=t.getUuid,o=t.log;this.uploadFile=function(t){var a,s=n.getInput(t),u=n._createIframe(t),c=new qq.Promise;return(a=function(t,o){var a=e.paramsStore.get(t),s="get"===e.method.toLowerCase()?"GET":"POST",u=e.endpointStore.get(t),c=r(t);return a[e.uuidName]=i(t),a[e.filenameParam]=c,n._initFormForUpload({method:s,endpoint:u,params:a,paramsInBody:e.paramsInBody,targetName:o.name})}(t,u)).appendChild(s),n._attachLoadEvent(u,(function(r){o("iframe loaded");var i=r||function(e,t){var r,i,a;try{a=(i=t.contentDocument||t.contentWindow.document).body.innerHTML,o("converting iframe's innerHTML to JSON"),o("innerHTML = "+a),a&&a.match(/^<pre/i)&&(a=i.body.firstChild.firstChild.nodeValue),r=n._parseJsonResponse(a)}catch(e){o("Error when attempting to parse form upload response ("+e.message+")","error"),r={success:!1}}return r}(0,u);n._detachLoadEvent(t),e.cors.expected||qq(u).remove(),i.success?c.success(i):c.failure(i)})),o("Sending upload request for "+t),a.submit(),qq(a).remove(),c},qq.extend(this,new qq.FormUploadHandler({options:{isCors:e.cors.expected,inputName:e.inputName},proxy:{onCancel:e.onCancel,getName:r,getUuid:i,log:o}}))},qq.traditional=qq.traditional||{},qq.traditional.XhrUploadHandler=function(e,t){"use strict";var n=this,r=t.getName,i=t.getSize,o=t.getUuid,a=t.log,s=e.forceMultipart||e.paramsInBody,u=new qq.traditional.AllChunksDoneAjaxRequester({cors:e.cors,endpoint:e.chunking.success.endpoint,log:a}),c=function(e,t){var n=new qq.Promise;return t.onreadystatechange=function(){if(4===t.readyState){var r=f(e,t);r.success?n.success(r.response,t):n.failure(r.response,t)}},n},l=function(e,t){return qq.indexOf([200,201,202,203,204],e.status)<0||!t.success||t.reset},f=function(e,t){var n;return a("xhr - server response received for "+e),a("responseText = "+t.responseText),n=d(!0,t),{success:!l(t,n),response:n}},d=function(e,t){var n={};try{a(qq.format("Received response status {} with body: {}",t.status,t.responseText)),n=qq.parseJson(t.responseText)}catch(t){e&&a("Error when attempting to parse xhr response text ("+t.message+")","error")}return n},p=function(t){var a=new qq.Promise;return u.complete(t,n._createXhr(t),function(t){var a=e.paramsStore.get(t),s=r(t),u=i(t);return a[e.uuidName]=o(t),a[e.filenameParam]=s,a[e.totalFileSizeName]=u,a[e.chunking.paramNames.totalParts]=n._getTotalChunks(t),a}(t),e.customHeaders.get(t)).then((function(e){a.success(d(!1,e),e)}),(function(e){a.failure(d(!1,e),e)})),a},h=function(t,n,a,u){var c=new FormData,l=e.method,f=e.endpointStore.get(u),d=r(u),p=i(u);return t[e.uuidName]=o(u),t[e.filenameParam]=d,s&&(t[e.totalFileSizeName]=p),e.paramsInBody||(s||(t[e.inputName]=d),f=qq.obj2url(t,f)),n.open(l,f,!0),e.cors.expected&&e.cors.sendCredentials&&(n.withCredentials=!0),s?(e.paramsInBody&&qq.obj2FormData(t,c),c.append(e.inputName,a),c):a},g=function(t,r){var i=e.customHeaders.get(t),o=n.getFile(t);r.setRequestHeader("Accept","application/json"),r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.setRequestHeader("Cache-Control","no-cache"),s||(r.setRequestHeader("Content-Type","application/octet-stream"),r.setRequestHeader("X-Mime-Type",o.type)),qq.each(i,(function(e,t){r.setRequestHeader(e,t)}))};qq.extend(this,{uploadChunk:function(t,o,a){var u,l,f,d=n._getChunkData(t,o),p=n._createXhr(t,o);i(t);return u=c(t,p),n._registerProgressHandler(t,o,d.size),function(t,n,o){var a=i(t),u=r(t);n[e.chunking.paramNames.partIndex]=o.part,n[e.chunking.paramNames.partByteOffset]=o.start,n[e.chunking.paramNames.chunkSize]=o.size,n[e.chunking.paramNames.totalParts]=o.count,n[e.totalFileSizeName]=a,s&&(n[e.filenameParam]=u)}(t,f=e.paramsStore.get(t),d),a&&(f[e.resume.paramNames.resuming]=!0),l=h(f,p,d.blob,t),g(t,p),p.send(l),u},uploadFile:function(t){var r,i,o,a,s=n.getFile(t);return i=n._createXhr(t),n._registerProgressHandler(t),r=c(t,i),o=e.paramsStore.get(t),a=h(o,i,s,t),g(t,i),i.send(a),r}}),qq.extend(this,new qq.XhrUploadHandler({options:qq.extend({namespace:"traditional"},e),proxy:qq.extend({getEndpoint:e.endpointStore.get},t)})),qq.override(this,(function(t){return{finalizeChunks:function(n){return e.chunking.success.endpoint?p(n):t.finalizeChunks(n,qq.bind(d,this,!0))}}}))},qq.traditional.AllChunksDoneAjaxRequester=function(e){"use strict";var t,n={cors:{allowXdr:!1,expected:!1,sendCredentials:!1},endpoint:null,log:function(e,t){}},r={},i={get:function(e){return n.endpoint}};qq.extend(n,e),t=qq.extend(this,new qq.AjaxRequester({acceptHeader:"application/json",validMethods:["POST"],method:"POST",endpointStore:i,allowXRequestedWithAndCacheControl:!1,cors:n.cors,log:n.log,onComplete:function(e,t,n){var i=r[e];delete r[e],n?i.failure(t):i.success(t)}})),qq.extend(this,{complete:function(e,i,o,a){var s=new qq.Promise;return n.log("Submitting All Chunks Done request for "+e),r[e]=s,t.initTransport(e).withParams(o).withHeaders(a).send(i),s}})},qq.DragAndDrop=function(e){"use strict";var t,n,r,i=[],o=[],a=new qq.DisposeSupport;function s(e){var n=new qq.Promise;return e.isFile?e.file((function(t){var r=e.name,i=e.fullPath,a=i.indexOf(r);"/"===(i=i.substr(0,a)).charAt(0)&&(i=i.substr(1)),t.qqPath=i,o.push(t),n.success()}),(function(r){t.callbacks.dropLog("Problem parsing '"+e.fullPath+"'. FileError code "+r.code+".","error"),n.failure()})):e.isDirectory&&function e(t,n,r,i){var o=i||new qq.Promise,a=n||t.createReader();return a.readEntries((function(n){var i=r?r.concat(n):n;n.length?setTimeout((function(){e(t,a,i,o)}),0):o.success(i)}),o.failure),o}(e).then((function(e){var t=e.length;qq.each(e,(function(e,r){s(r).done((function(){0===(t-=1)&&n.success()}))})),e.length||n.success()}),(function(r){t.callbacks.dropLog("Problem parsing '"+e.fullPath+"'. FileError code "+r.code+".","error"),n.failure()})),n}function u(e){var n=new qq.UploadDropZone({HIDE_ZONES_EVENT_NAME:"qq-hidezones",element:e,onEnter:function(n){qq(e).addClass(t.classes.dropActive),n.stopPropagation()},onLeaveNotDescendants:function(n){qq(e).removeClass(t.classes.dropActive)},onDrop:function(e){var r,i,a,u;(r=e.dataTransfer,i=n,a=[],u=new qq.Promise,t.callbacks.processingDroppedFiles(),i.dropDisabled(!0),r.files.length>1&&!t.allowMultipleItems?(t.callbacks.processingDroppedFilesComplete([]),t.callbacks.dropError("tooManyFilesError",""),i.dropDisabled(!1),u.failure()):(o=[],qq.isFolderDropSupported(r)?qq.each(r.items,(function(e,t){var n=t.webkitGetAsEntry();n&&(n.isFile?o.push(t.getAsFile()):a.push(s(n).done((function(){a.pop(),0===a.length&&u.success()}))))})):o=r.files,0===a.length&&u.success()),u).then((function(){!function(e,n){var r=Array.prototype.slice.call(e);t.callbacks.dropLog("Grabbed "+e.length+" dropped files."),n.dropDisabled(!1),t.callbacks.processingDroppedFilesComplete(r,n.getElement())}(o,n)}),(function(){t.callbacks.dropLog("Drop event DataTransfer parsing failed. No files will be uploaded.","error")}))}});return a.addDisposer((function(){n.dispose()})),qq(e).hasAttribute("qq-hide-dropzone")&&qq(e).hide(),i.push(n),n}function c(e){var t;return qq.each(e.dataTransfer.types,(function(e,n){if("Files"===n)return t=!0,!1})),t}t={dropZoneElements:[],allowMultipleItems:!0,classes:{dropActive:null},callbacks:new qq.DragAndDrop.callbacks},qq.extend(t,e,!0),n=t.dropZoneElements,r=function(){setTimeout((function(){qq.each(n,(function(e,n){qq(n).hasAttribute("qq-hide-dropzone")&&qq(n).hide(),qq(n).removeClass(t.classes.dropActive)}))}),10)},qq.each(n,(function(e,t){var r=u(t);n.length&&qq.supportedFeatures.fileDrop&&a.attach(document,"dragenter",(function(e){!r.dropDisabled()&&c(e)&&qq.each(n,(function(e,t){t instanceof HTMLElement&&qq(t).hasAttribute("qq-hide-dropzone")&&qq(t).css({display:"block"})}))}))})),a.attach(document,"dragleave",(function(e){(function(e){return qq.safari()?e.x<0||e.y<0:0===e.x&&0===e.y})(e)&&r()})),a.attach(qq(document).children()[0],"mouseenter",(function(e){r()})),a.attach(document,"drop",(function(e){c(e)&&(e.preventDefault(),r())})),a.attach(document,"qq-hidezones",r),qq.extend(this,{setupExtraDropzone:function(e){t.dropZoneElements.push(e),u(e)},removeDropzone:function(e){var n,r=t.dropZoneElements;for(n in r)if(r[n]===e)return r.splice(n,1)},dispose:function(){a.dispose(),qq.each(i,(function(e,t){t.dispose()}))}})},qq.DragAndDrop.callbacks=function(){"use strict";return{processingDroppedFiles:function(){},processingDroppedFilesComplete:function(e,t){},dropError:function(e,t){qq.log("Drag & drop error code '"+e+" with these specifics: '"+t+"'","error")},dropLog:function(e,t){qq.log(e,t)}}},qq.UploadDropZone=function(e){"use strict";var t,n,r,i,o=new qq.DisposeSupport;function a(){return qq.safari()||qq.firefox()&&qq.windows()}function s(e){if(!qq.supportedFeatures.fileDrop)return!1;var t,n=e.dataTransfer,r=qq.safari();return t=!(!qq.ie()||!qq.supportedFeatures.fileDrop)||"none"!==n.effectAllowed,n&&t&&(n.files&&n.files.length||!r&&n.types.contains&&n.types.contains("Files")||n.types.includes&&n.types.includes("Files"))}function u(e){return void 0!==e&&(r=e),r}t={element:null,onEnter:function(e){},onLeave:function(e){},onLeaveNotDescendants:function(e){},onDrop:function(e){}},qq.extend(t,e),n=t.element,i||(a?o.attach(document,"dragover",(function(e){e.preventDefault()})):o.attach(document,"dragover",(function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="none",e.preventDefault())})),i=!0),o.attach(n,"dragover",(function(e){if(s(e)){var t=qq.ie()&&qq.supportedFeatures.fileDrop?null:e.dataTransfer.effectAllowed;e.dataTransfer.dropEffect="move"===t||"linkMove"===t?"move":"copy",e.stopPropagation(),e.preventDefault()}})),o.attach(n,"dragenter",(function(e){if(!u()){if(!s(e))return;t.onEnter(e)}})),o.attach(n,"dragleave",(function(e){if(s(e)){t.onLeave(e);var n=document.elementFromPoint(e.clientX,e.clientY);qq(this).contains(n)||t.onLeaveNotDescendants(e)}})),o.attach(n,"drop",(function(e){if(!u()){if(!s(e))return;e.preventDefault(),e.stopPropagation(),t.onDrop(e),function(){var e;function n(){(e=document.createEvent("Event")).initEvent(t.HIDE_ZONES_EVENT_NAME,!0,!0)}if(window.CustomEvent)try{e=new CustomEvent(t.HIDE_ZONES_EVENT_NAME)}catch(e){n()}else n();document.dispatchEvent(e)}()}})),qq.extend(this,{dropDisabled:function(e){return u(e)},dispose:function(){o.dispose()},getElement:function(){return n}}),this._testing={},this._testing.isValidFileDrag=s},function(){"use strict";qq.uiPublicApi={addInitialFiles:function(e){this._parent.prototype.addInitialFiles.apply(this,arguments),this._templating.addCacheToDom()},clearStoredFiles:function(){this._parent.prototype.clearStoredFiles.apply(this,arguments),this._templating.clearFiles()},addExtraDropzone:function(e){this._dnd&&this._dnd.setupExtraDropzone(e)},removeExtraDropzone:function(e){if(this._dnd)return this._dnd.removeDropzone(e)},getItemByFileId:function(e){if(!this._templating.isHiddenForever(e))return this._templating.getFileContainer(e)},reset:function(){this._parent.prototype.reset.apply(this,arguments),this._templating.reset(),!this._options.button&&this._templating.getButton()&&(this._defaultButtonId=this._createUploadButton({element:this._templating.getButton(),title:this._options.text.fileInputTitle}).getButtonId()),this._dnd&&(this._dnd.dispose(),this._dnd=this._setupDragAndDrop()),this._totalFilesInBatch=0,this._filesInBatchAddedToUi=0,this._setupClickAndEditEventHandlers()},setName:function(e,t){var n=this._options.formatFileName(t);this._parent.prototype.setName.apply(this,arguments),this._templating.updateFilename(e,n)},pauseUpload:function(e){var t=this._parent.prototype.pauseUpload.apply(this,arguments);return t&&this._templating.uploadPaused(e),t},continueUpload:function(e){var t=this._parent.prototype.continueUpload.apply(this,arguments);return t&&this._templating.uploadContinued(e),t},getId:function(e){return this._templating.getFileId(e)},getDropTarget:function(e){return this.getFile(e).qqDropTarget}},qq.uiPrivateApi={_getButton:function(e){var t=this._parent.prototype._getButton.apply(this,arguments);return t||e===this._defaultButtonId&&(t=this._templating.getButton()),t},_removeFileItem:function(e){this._templating.removeFile(e)},_setupClickAndEditEventHandlers:function(){this._fileButtonsClickHandler=qq.FileButtonsClickHandler&&this._bindFileButtonsClickEvent(),this._focusinEventSupported=!qq.firefox(),this._isEditFilenameEnabled()&&(this._filenameClickHandler=this._bindFilenameClickEvent(),this._filenameInputFocusInHandler=this._bindFilenameInputFocusInEvent(),this._filenameInputFocusHandler=this._bindFilenameInputFocusEvent())},_setupDragAndDrop:function(){var e=this,t=this._options.dragAndDrop.extraDropzones,n=this._templating,r=n.getDropZone();return r&&t.push(r),new qq.DragAndDrop({dropZoneElements:t,allowMultipleItems:this._options.multiple,classes:{dropActive:this._options.classes.dropActive},callbacks:{processingDroppedFiles:function(){n.showDropProcessing()},processingDroppedFilesComplete:function(t,r){n.hideDropProcessing(),qq.each(t,(function(e,t){t.qqDropTarget=r})),t.length&&e.addFiles(t,null,null)},dropError:function(t,n){e._itemError(t,n)},dropLog:function(t,n){e.log(t,n)}}})},_bindFileButtonsClickEvent:function(){var e=this;return new qq.FileButtonsClickHandler({templating:this._templating,log:function(t,n){e.log(t,n)},onDeleteFile:function(t){e.deleteFile(t)},onCancel:function(t){e.cancel(t)},onRetry:function(t){e.retry(t)},onPause:function(t){e.pauseUpload(t)},onContinue:function(t){e.continueUpload(t)},onGetName:function(t){return e.getName(t)}})},_isEditFilenameEnabled:function(){return this._templating.isEditFilenamePossible()&&!this._options.autoUpload&&qq.FilenameClickHandler&&qq.FilenameInputFocusHandler&&qq.FilenameInputFocusHandler},_filenameEditHandler:function(){var e=this,t=this._templating;return{templating:t,log:function(t,n){e.log(t,n)},onGetUploadStatus:function(t){return e.getUploads({id:t}).status},onGetName:function(t){return e.getName(t)},onSetName:function(t,n){e.setName(t,n)},onEditingStatusChange:function(e,n){var r=qq(t.getEditInput(e)),i=qq(t.getFileContainer(e));n?(r.addClass("qq-editing"),t.hideFilename(e),t.hideEditIcon(e)):(r.removeClass("qq-editing"),t.showFilename(e),t.showEditIcon(e)),i.addClass("qq-temp").removeClass("qq-temp")}}},_onUploadStatusChange:function(e,t,n){this._parent.prototype._onUploadStatusChange.apply(this,arguments),this._isEditFilenameEnabled()&&this._templating.getFileContainer(e)&&n!==qq.status.SUBMITTED&&(this._templating.markFilenameEditable(e),this._templating.hideEditIcon(e)),t===qq.status.UPLOAD_RETRYING&&n===qq.status.UPLOADING?(this._templating.hideRetry(e),this._templating.setStatusText(e),qq(this._templating.getFileContainer(e)).removeClass(this._classes.retrying)):n===qq.status.UPLOAD_FAILED&&this._templating.hidePause(e)},_bindFilenameInputFocusInEvent:function(){var e=qq.extend({},this._filenameEditHandler());return new qq.FilenameInputFocusInHandler(e)},_bindFilenameInputFocusEvent:function(){var e=qq.extend({},this._filenameEditHandler());return new qq.FilenameInputFocusHandler(e)},_bindFilenameClickEvent:function(){var e=qq.extend({},this._filenameEditHandler());return new qq.FilenameClickHandler(e)},_storeForLater:function(e){this._parent.prototype._storeForLater.apply(this,arguments),this._templating.hideSpinner(e)},_onAllComplete:function(e,t){this._parent.prototype._onAllComplete.apply(this,arguments),this._templating.resetTotalProgress()},_onSubmit:function(e,t){var n=this.getFile(e);n&&n.qqPath&&this._options.dragAndDrop.reportDirectoryPaths&&this._paramsStore.addReadOnly(e,{qqpath:n.qqPath}),this._parent.prototype._onSubmit.apply(this,arguments),this._addToList(e,t)},_onSubmitted:function(e){this._isEditFilenameEnabled()&&(this._templating.markFilenameEditable(e),this._templating.showEditIcon(e),this._focusinEventSupported||this._filenameInputFocusHandler.addHandler(this._templating.getEditInput(e)))},_onProgress:function(e,t,n,r){this._parent.prototype._onProgress.apply(this,arguments),this._templating.updateProgress(e,n,r),0===r||100===Math.round(n/r*100)?(this._templating.hideCancel(e),this._templating.hidePause(e),this._templating.hideProgress(e),this._templating.setStatusText(e,this._options.text.waitingForResponse),this._displayFileSize(e)):this._displayFileSize(e,n,r)},_onTotalProgress:function(e,t){this._parent.prototype._onTotalProgress.apply(this,arguments),this._templating.updateTotalProgress(e,t)},_onComplete:function(e,t,n,r){var i=this._parent.prototype._onComplete.apply(this,arguments),o=this._templating,a=o.getFileContainer(e),s=this;function u(t){a&&(o.setStatusText(e),qq(a).removeClass(s._classes.retrying),o.hideProgress(e),s.getUploads({id:e}).status!==qq.status.UPLOAD_FAILED&&o.hideCancel(e),o.hideSpinner(e),t.success?s._markFileAsSuccessful(e):(qq(a).addClass(s._classes.fail),o.showCancel(e),o.isRetryPossible()&&!s._preventRetries[e]&&(qq(a).addClass(s._classes.retryable),o.showRetry(e)),s._controlFailureTextDisplay(e,t)))}return i instanceof qq.Promise?i.done((function(e){u(e)})):u(n),i},_markFileAsSuccessful:function(e){var t=this._templating;this._isDeletePossible()&&t.showDeleteButton(e),qq(t.getFileContainer(e)).addClass(this._classes.success),this._maybeUpdateThumbnail(e)},_onUploadPrep:function(e){this._parent.prototype._onUploadPrep.apply(this,arguments),this._templating.showSpinner(e)},_onUpload:function(e,t){var n=this._parent.prototype._onUpload.apply(this,arguments);return this._templating.showSpinner(e),n},_onUploadChunk:function(e,t){this._parent.prototype._onUploadChunk.apply(this,arguments),t.partIndex>0&&this._handler.isResumable(e)&&this._templating.allowPause(e)},_onCancel:function(e,t){this._parent.prototype._onCancel.apply(this,arguments),this._removeFileItem(e),0===this._getNotFinished()&&this._templating.resetTotalProgress()},_onBeforeAutoRetry:function(e){var t,n,r;this._parent.prototype._onBeforeAutoRetry.apply(this,arguments),this._showCancelLink(e),this._options.retry.showAutoRetryNote&&(t=this._autoRetries[e],n=this._options.retry.maxAutoAttempts,r=(r=this._options.retry.autoRetryNote.replace(/\{retryNum\}/g,t)).replace(/\{maxAuto\}/g,n),this._templating.setStatusText(e,r),qq(this._templating.getFileContainer(e)).addClass(this._classes.retrying))},_onBeforeManualRetry:function(e){return this._parent.prototype._onBeforeManualRetry.apply(this,arguments)?(this._templating.resetProgress(e),qq(this._templating.getFileContainer(e)).removeClass(this._classes.fail),this._templating.setStatusText(e),this._templating.showSpinner(e),this._showCancelLink(e),!0):(qq(this._templating.getFileContainer(e)).addClass(this._classes.retryable),this._templating.showRetry(e),!1)},_onSubmitDelete:function(e){var t=qq.bind(this._onSubmitDeleteSuccess,this);this._parent.prototype._onSubmitDelete.call(this,e,t)},_onSubmitDeleteSuccess:function(e,t,n){this._options.deleteFile.forceConfirm?this._showDeleteConfirm.apply(this,arguments):this._sendDeleteRequest.apply(this,arguments)},_onDeleteComplete:function(e,t,n){this._parent.prototype._onDeleteComplete.apply(this,arguments),this._templating.hideSpinner(e),n?(this._templating.setStatusText(e,this._options.deleteFile.deletingFailedText),this._templating.showDeleteButton(e)):this._removeFileItem(e)},_sendDeleteRequest:function(e,t,n){this._templating.hideDeleteButton(e),this._templating.showSpinner(e),this._templating.setStatusText(e,this._options.deleteFile.deletingStatusText),this._deleteHandler.sendDelete.apply(this,arguments)},_showDeleteConfirm:function(e,t,n){var r,i=this.getName(e),o=this._options.deleteFile.confirmMessage.replace(/\{filename\}/g,i),a=(t=this.getUuid(e),arguments),s=this;r=this._options.showConfirm(o),qq.isGenericPromise(r)?r.then((function(){s._sendDeleteRequest.apply(s,a)})):!1!==r&&s._sendDeleteRequest.apply(s,a)},_addToList:function(e,t,n){var r,i,o=0,a=this._handler.isProxied(e)&&this._options.scaling.hideScaled;this._options.display.prependFiles&&(this._totalFilesInBatch>1&&this._filesInBatchAddedToUi>0&&(o=this._filesInBatchAddedToUi-1),r={index:o}),n||(this._options.disableCancelForFormUploads&&!qq.supportedFeatures.ajaxUploading&&this._templating.disableCancel(),this._options.multiple||(i=this.getUploads({id:e}),this._handledProxyGroup=this._handledProxyGroup||i.proxyGroupId,i.proxyGroupId===this._handledProxyGroup&&i.proxyGroupId||(this._handler.cancelAll(),this._clearList(),this._handledProxyGroup=null))),n?(this._templating.addFileToCache(e,this._options.formatFileName(t),r,a),this._templating.updateThumbnail(e,this._thumbnailUrls[e],!0,this._options.thumbnails.customResizer)):(this._templating.addFile(e,this._options.formatFileName(t),r,a),this._templating.generatePreview(e,this.getFile(e),this._options.thumbnails.customResizer)),this._filesInBatchAddedToUi+=1,(n||this._options.display.fileSizeOnSubmit&&qq.supportedFeatures.ajaxUploading)&&this._displayFileSize(e)},_clearList:function(){this._templating.clearFiles(),this.clearStoredFiles()},_displayFileSize:function(e,t,n){var r=this.getSize(e),i=this._formatSize(r);r>=0&&(void 0!==t&&void 0!==n&&(i=this._formatProgress(t,n)),this._templating.updateSize(e,i))},_formatProgress:function(e,t){var n=this._options.text.formatProgress;function r(e,t){n=n.replace(e,t)}return r("{percent}",Math.round(e/t*100)),r("{total_size}",this._formatSize(t)),n},_controlFailureTextDisplay:function(e,t){var n,r,i;n=this._options.failedUploadTextDisplay.mode,r=this._options.failedUploadTextDisplay.responseProperty,"custom"===n?((i=t[r])||(i=this._options.text.failUpload),this._templating.setStatusText(e,i),this._options.failedUploadTextDisplay.enableTooltip&&this._showTooltip(e,i)):"default"===n?this._templating.setStatusText(e,this._options.text.failUpload):"none"!==n&&this.log("failedUploadTextDisplay.mode value of '"+n+"' is not valid","warn")},_showTooltip:function(e,t){this._templating.getFileContainer(e).title=t},_showCancelLink:function(e){this._options.disableCancelForFormUploads&&!qq.supportedFeatures.ajaxUploading||this._templating.showCancel(e)},_itemError:function(e,t,n){var r=this._parent.prototype._itemError.apply(this,arguments);this._options.showMessage(r)},_batchError:function(e){this._parent.prototype._batchError.apply(this,arguments),this._options.showMessage(e)},_setupPastePrompt:function(){var e=this;this._options.callbacks.onPasteReceived=function(){var t=e._options.paste.namePromptMessage,n=e._options.paste.defaultName;return e._options.showPrompt(t,n)}},_fileOrBlobRejected:function(e,t){this._totalFilesInBatch-=1,this._parent.prototype._fileOrBlobRejected.apply(this,arguments)},_prepareItemsForUpload:function(e,t,n){this._totalFilesInBatch=e.length,this._filesInBatchAddedToUi=0,this._parent.prototype._prepareItemsForUpload.apply(this,arguments)},_maybeUpdateThumbnail:function(e){var t=this._thumbnailUrls[e];this.getUploads({id:e}).status===qq.status.DELETED||!t&&!this._options.thumbnails.placeholders.waitUntilResponse&&qq.supportedFeatures.imagePreviews||this._templating.updateThumbnail(e,t,this._options.thumbnails.customResizer)},_addCannedFile:function(e){var t=this._parent.prototype._addCannedFile.apply(this,arguments);return this._addToList(t,this.getName(t),!0),this._templating.hideSpinner(t),this._templating.hideCancel(t),this._markFileAsSuccessful(t),t},_setSize:function(e,t){this._parent.prototype._setSize.apply(this,arguments),this._templating.updateSize(e,this._formatSize(t))},_sessionRequestComplete:function(){this._templating.addCacheToDom(),this._parent.prototype._sessionRequestComplete.apply(this,arguments)}}}(),qq.FineUploader=function(e,t){"use strict";var n=this;this._parent=t?qq[t].FineUploaderBasic:qq.FineUploaderBasic,this._parent.apply(this,arguments),qq.extend(this._options,{element:null,button:null,listElement:null,dragAndDrop:{extraDropzones:[],reportDirectoryPaths:!1},text:{formatProgress:"{percent}% of {total_size}",failUpload:"Upload failed",waitingForResponse:"Processing...",paused:"Paused"},template:"qq-template",classes:{retrying:"qq-upload-retrying",retryable:"qq-upload-retryable",success:"qq-upload-success",fail:"qq-upload-fail",editable:"qq-editable",hide:"qq-hide",dropActive:"qq-upload-drop-area-active"},failedUploadTextDisplay:{mode:"default",responseProperty:"error",enableTooltip:!0},messages:{tooManyFilesError:"You may only drop one file",unsupportedBrowser:"Unrecoverable error - this browser does not permit file uploading of any kind."},retry:{showAutoRetryNote:!0,autoRetryNote:"Retrying {retryNum}/{maxAuto}..."},deleteFile:{forceConfirm:!1,confirmMessage:"Are you sure you want to delete {filename}?",deletingStatusText:"Deleting...",deletingFailedText:"Delete failed"},display:{fileSizeOnSubmit:!1,prependFiles:!1},paste:{promptForName:!1,namePromptMessage:"Please name this image"},thumbnails:{customResizer:null,maxCount:0,placeholders:{waitUntilResponse:!1,notAvailablePath:null,waitingPath:null},timeBetweenThumbs:750},scaling:{hideScaled:!1},showMessage:function(e){if(n._templating.hasDialog("alert"))return n._templating.showDialog("alert",e);setTimeout((function(){window.alert(e)}),0)},showConfirm:function(e){return n._templating.hasDialog("confirm")?n._templating.showDialog("confirm",e):window.confirm(e)},showPrompt:function(e,t){return n._templating.hasDialog("prompt")?n._templating.showDialog("prompt",e,t):window.prompt(e,t)}},!0),qq.extend(this._options,e,!0),this._templating=new qq.Templating({log:qq.bind(this.log,this),templateIdOrEl:this._options.template,containerEl:this._options.element,fileContainerEl:this._options.listElement,button:this._options.button,imageGenerator:this._imageGenerator,classes:{hide:this._options.classes.hide,editable:this._options.classes.editable},limits:{maxThumbs:this._options.thumbnails.maxCount,timeBetweenThumbs:this._options.thumbnails.timeBetweenThumbs},placeholders:{waitUntilUpdate:this._options.thumbnails.placeholders.waitUntilResponse,thumbnailNotAvailable:this._options.thumbnails.placeholders.notAvailablePath,waitingForThumbnail:this._options.thumbnails.placeholders.waitingPath},text:this._options.text}),this._options.workarounds.ios8SafariUploads&&qq.ios800()&&qq.iosSafari()?this._templating.renderFailure(this._options.messages.unsupportedBrowserIos8Safari):!qq.supportedFeatures.uploading||this._options.cors.expected&&!qq.supportedFeatures.uploadCors?this._templating.renderFailure(this._options.messages.unsupportedBrowser):(this._wrapCallbacks(),this._templating.render(),this._classes=this._options.classes,!this._options.button&&this._templating.getButton()&&(this._defaultButtonId=this._createUploadButton({element:this._templating.getButton(),title:this._options.text.fileInputTitle}).getButtonId()),this._setupClickAndEditEventHandlers(),qq.DragAndDrop&&qq.supportedFeatures.fileDrop&&(this._dnd=this._setupDragAndDrop()),this._options.paste.targetElement&&this._options.paste.promptForName&&(qq.PasteSupport?this._setupPastePrompt():this.log("Paste support module not found.","error")),this._totalFilesInBatch=0,this._filesInBatchAddedToUi=0)},qq.extend(qq.FineUploader.prototype,qq.basePublicApi),qq.extend(qq.FineUploader.prototype,qq.basePrivateApi),qq.extend(qq.FineUploader.prototype,qq.uiPublicApi),qq.extend(qq.FineUploader.prototype,qq.uiPrivateApi),qq.Templating=function(e){"use strict";var t,n,r,i,o,a,s,u,c={content:document.createDocumentFragment(),map:{}},l=!1,f=0,d=!1,p=[],h=-1,g={log:null,limits:{maxThumbs:0,timeBetweenThumbs:750},templateIdOrEl:"qq-template",containerEl:null,fileContainerEl:null,button:null,imageGenerator:null,classes:{hide:"qq-hide",editable:"qq-editable"},placeholders:{waitUntilUpdate:!1,thumbnailNotAvailable:null,waitingForThumbnail:null},text:{paused:"Paused"}},m={button:"qq-upload-button-selector",alertDialog:"qq-alert-dialog-selector",dialogCancelButton:"qq-cancel-button-selector",confirmDialog:"qq-confirm-dialog-selector",dialogMessage:"qq-dialog-message-selector",dialogOkButton:"qq-ok-button-selector",promptDialog:"qq-prompt-dialog-selector",uploader:"qq-uploader-selector",drop:"qq-upload-drop-area-selector",list:"qq-upload-list-selector",progressBarContainer:"qq-progress-bar-container-selector",progressBar:"qq-progress-bar-selector",totalProgressBarContainer:"qq-total-progress-bar-container-selector",totalProgressBar:"qq-total-progress-bar-selector",file:"qq-upload-file-selector",spinner:"qq-upload-spinner-selector",size:"qq-upload-size-selector",cancel:"qq-upload-cancel-selector",pause:"qq-upload-pause-selector",continueButton:"qq-upload-continue-selector",deleteButton:"qq-upload-delete-selector",retry:"qq-upload-retry-selector",statusText:"qq-upload-status-text-selector",editFilenameInput:"qq-edit-filename-selector",editNameIcon:"qq-edit-filename-icon-selector",dropText:"qq-upload-drop-area-text-selector",dropProcessing:"qq-drop-processing-selector",dropProcessingSpinner:"qq-drop-processing-spinner-selector",thumbnail:"qq-thumbnail-selector"},v={},y=new qq.Promise,b=new qq.Promise,_=function(e){var t=new qq.Promise;return b.then((function(n){F(n,e),e.src?t.success():(e.src=n.src,e.onload=function(){e.onload=null,H(e),t.success()})}),(function(){R(e),t.success()})),t},w=function(){if(p.length){d=!0;var e=p.shift();e.update?U(e):L(e)}else d=!1},$=function(e){return M(C(e),m.cancel)},x=function(e){return M(C(e),m.continueButton)},q=function(e){return M(o,m[e+"Dialog"])},S=function(e){return M(C(e),m.deleteButton)},E=function(){return M(o,m.dropProcessing)},k=function(e){return M(C(e),m.editNameIcon)},C=function(e){return c.map[e]||qq(a).getFirstByClass("qq-file-id-"+e)},O=function(e){return M(C(e),m.file)},T=function(e){return M(C(e),m.pause)},D=function(e){return null==e?M(o,m.totalProgressBarContainer)||M(o,m.totalProgressBar):M(C(e),m.progressBarContainer)||M(C(e),m.progressBar)},A=function(e){return M(C(e),m.retry)},I=function(e){return M(C(e),m.size)},P=function(e){return M(C(e),m.spinner)},M=function(e,t){return e&&qq(e).getFirstByClass(t)},j=function(e){return s&&M(C(e),m.thumbnail)},R=function(e){e&&qq(e).addClass(g.classes.hide)},F=function(e,t){var n=e.style.maxWidth,r=e.style.maxHeight;r&&n&&!t.style.maxWidth&&!t.style.maxHeight&&qq(t).css({maxWidth:n,maxHeight:r})},N=function(e,t){var n=v[e]||(new qq.Promise).failure(),r=new qq.Promise;return y.then((function(e){n.then((function(){r.success()}),(function(){F(e,t),t.onload=function(){t.onload=null,r.success()},t.src=e.src,H(t)}))})),r},L=function(e){var n=e.id,r=e.optFileOrBlob,i=r&&r.qqThumbnailId,o=j(n),a={customResizeFunction:e.customResizeFunction,maxSize:h,orient:!0,scale:!0};qq.supportedFeatures.imagePreviews?o?g.limits.maxThumbs&&g.limits.maxThumbs<=f?(N(n,o),w()):_(o).done((function(){v[n]=new qq.Promise,v[n].done((function(){setTimeout(w,g.limits.timeBetweenThumbs)})),null!=i?V(n,i):function(e,n,r){var i=j(e);t("Generating new thumbnail for "+e),n.qqThumbnailId=e,g.imageGenerator.generate(n,i,r).then((function(){f++,H(i),v[e].success()}),(function(){v[e].failure(),g.placeholders.waitUntilUpdate||N(e,i)}))}(n,r,a)})):w():o&&(_(o),w())},U=function(e){var t=e.id,n=e.thumbnailUrl,r=e.showWaitingImg,i=j(t),o={customResizeFunction:e.customResizeFunction,scale:u,maxSize:h};if(i)if(n){if(!(g.limits.maxThumbs&&g.limits.maxThumbs<=f))return r&&_(i),g.imageGenerator.generate(n,i,o).then((function(){H(i),f++,setTimeout(w,g.limits.timeBetweenThumbs)}),(function(){N(t,i),setTimeout(w,g.limits.timeBetweenThumbs)}));N(t,i),w()}else N(t,i),w()},B=function(e,t){var n=D(e),r=null==e?m.totalProgressBar:m.progressBar;n&&!qq(n).hasClass(r)&&(n=qq(n).getFirstByClass(r)),n&&(qq(n).css({width:t+"%"}),n.setAttribute("aria-valuenow",t))},H=function(e){e&&qq(e).removeClass(g.classes.hide)},V=function(e,n){var r=j(e),i=j(n);t(qq.format("ID {} is the same file as ID {}. Will use generated thumbnail from ID {} instead.",e,n,n)),v[n].then((function(){f++,v[e].success(),t(qq.format("Now using previously generated thumbnail created for ID {} on ID {}.",n,e)),r.src=i.src,H(r)}),(function(){v[e].failure(),g.placeholders.waitUntilUpdate||N(e,r)}))};qq.extend(g,e),t=g.log,qq.supportedFeatures.imagePreviews||(g.limits.timeBetweenThumbs=0,g.limits.maxThumbs=0),o=g.containerEl,s=void 0!==g.imageGenerator,i=function(){var e,i,o,a,c,l,f,d,p,v,y;if(t("Parsing template"),null==g.templateIdOrEl)throw new Error("You MUST specify either a template element or ID!");if(qq.isString(g.templateIdOrEl)){if(null===(e=document.getElementById(g.templateIdOrEl)))throw new Error(qq.format("Cannot find template script at ID '{}'!",g.templateIdOrEl));i=e.innerHTML}else{if(void 0===g.templateIdOrEl.innerHTML)throw new Error("You have specified an invalid value for the template option! It must be an ID or an Element.");i=g.templateIdOrEl.innerHTML}if(i=qq.trimStr(i),(a=document.createElement("div")).appendChild(qq.toElement(i)),y=qq(a).getFirstByClass(m.uploader),g.button&&(l=qq(a).getFirstByClass(m.button))&&qq(l).remove(),qq.DragAndDrop&&qq.supportedFeatures.fileDrop||(p=qq(a).getFirstByClass(m.dropProcessing))&&qq(p).remove(),(f=qq(a).getFirstByClass(m.drop))&&!qq.DragAndDrop&&(t("DnD module unavailable.","info"),qq(f).remove()),qq.supportedFeatures.fileDrop?qq(y).hasAttribute("qq-drop-area-text")&&f&&(v=qq(f).getFirstByClass(m.dropText))&&qq(v).remove():(y.removeAttribute("qq-drop-area-text"),f&&qq(f).hasAttribute("qq-hide-dropzone")&&qq(f).css({display:"none"})),d=qq(a).getFirstByClass(m.thumbnail),s?d&&(h=(h=parseInt(d.getAttribute("qq-max-size")))>0?h:null,u=qq(d).hasAttribute("qq-server-scale")):d&&qq(d).remove(),s=s&&d,n=qq(a).getByClass(m.editFilenameInput).length>0,r=qq(a).getByClass(m.retry).length>0,null==(o=qq(a).getFirstByClass(m.list)))throw new Error("Could not find the file list container in the template!");return c=o.children[0].cloneNode(!0),o.innerHTML="",a.getElementsByTagName("DIALOG").length&&document.createElement("dialog"),t("Template parsing complete"),{template:a,fileTemplate:c}}(),function(){var e=g.placeholders.thumbnailNotAvailable,n=g.placeholders.waitingForThumbnail,r={maxSize:h,scale:u};s&&(e?g.imageGenerator.generate(e,new Image,r).then((function(e){y.success(e)}),(function(){y.failure(),t("Problem loading 'not available' placeholder image at "+e,"error")})):y.failure(),n?g.imageGenerator.generate(n,new Image,r).then((function(e){b.success(e)}),(function(){b.failure(),t("Problem loading 'waiting for thumbnail' placeholder image at "+n,"error")})):b.failure())}(),qq.extend(this,{render:function(){t("Rendering template in DOM."),f=0,o.appendChild(i.template.cloneNode(!0)),R(E()),this.hideTotalProgress(),a=g.fileContainerEl||M(o,m.list),t("Template rendering complete")},renderFailure:function(e){var t=qq.toElement(e);o.innerHTML="",o.appendChild(t)},reset:function(){this.render()},clearFiles:function(){a.innerHTML=""},disableCancel:function(){l=!0},addFile:function(e,t,n,r,s){var u,f=i.fileTemplate.cloneNode(!0),d=M(f,m.file),p=M(o,m.uploader),h=s?c.content:a;s&&(c.map[e]=f),qq(f).addClass("qq-file-id-"+e),p.removeAttribute("qq-drop-area-text"),d&&(qq(d).setText(t),d.setAttribute("title",t)),f.setAttribute("qq-file-id",e),n?function(e,t,n){var r=n,i=r.firstChild;t>0&&(i=qq(r).children()[t].nextSibling),r.insertBefore(e,i)}(f,n.index,h):h.appendChild(f),r?(f.style.display="none",qq(f).addClass("qq-hidden-forever")):(R(D(e)),R(I(e)),R(S(e)),R(A(e)),R(T(e)),R(x(e)),l&&this.hideCancel(e),(u=j(e))&&!u.src&&b.then((function(e){u.src=e.src,e.style.maxHeight&&e.style.maxWidth&&qq(u).css({maxHeight:e.style.maxHeight,maxWidth:e.style.maxWidth}),H(u)})))},addFileToCache:function(e,t,n,r){this.addFile(e,t,n,r,!0)},addCacheToDom:function(){a.appendChild(c.content),c.content=document.createDocumentFragment(),c.map={}},removeFile:function(e){qq(C(e)).remove()},getFileId:function(e){var t=e;if(t){for(;null==t.getAttribute("qq-file-id");)t=t.parentNode;return parseInt(t.getAttribute("qq-file-id"))}},getFileList:function(){return a},markFilenameEditable:function(e){var t=O(e);t&&qq(t).addClass(g.classes.editable)},updateFilename:function(e,t){var n=O(e);n&&(qq(n).setText(t),n.setAttribute("title",t))},hideFilename:function(e){R(O(e))},showFilename:function(e){H(O(e))},isFileName:function(e){return qq(e).hasClass(m.file)},getButton:function(){return g.button||M(o,m.button)},hideDropProcessing:function(){R(E())},showDropProcessing:function(){H(E())},getDropZone:function(){return M(o,m.drop)},isEditFilenamePossible:function(){return n},hideRetry:function(e){R(A(e))},isRetryPossible:function(){return r},showRetry:function(e){H(A(e))},getFileContainer:function(e){return C(e)},showEditIcon:function(e){var t=k(e);t&&qq(t).addClass(g.classes.editable)},isHiddenForever:function(e){return qq(C(e)).hasClass("qq-hidden-forever")},hideEditIcon:function(e){var t=k(e);t&&qq(t).removeClass(g.classes.editable)},isEditIcon:function(e){return qq(e).hasClass(m.editNameIcon,!0)},getEditInput:function(e){return M(C(e),m.editFilenameInput)},isEditInput:function(e){return qq(e).hasClass(m.editFilenameInput,!0)},updateProgress:function(e,t,n){var r,i=D(e);i&&n>0&&(100===(r=Math.round(t/n*100))?R(i):H(i),B(e,r))},updateTotalProgress:function(e,t){this.updateProgress(null,e,t)},hideProgress:function(e){var t=D(e);t&&R(t)},hideTotalProgress:function(){this.hideProgress()},resetProgress:function(e){B(e,0),this.hideTotalProgress(e)},resetTotalProgress:function(){this.resetProgress()},showCancel:function(e){if(!l){var t=$(e);t&&qq(t).removeClass(g.classes.hide)}},hideCancel:function(e){R($(e))},isCancel:function(e){return qq(e).hasClass(m.cancel,!0)},allowPause:function(e){H(T(e)),R(x(e))},uploadPaused:function(e){this.setStatusText(e,g.text.paused),this.allowContinueButton(e),R(P(e))},hidePause:function(e){R(T(e))},isPause:function(e){return qq(e).hasClass(m.pause,!0)},isContinueButton:function(e){return qq(e).hasClass(m.continueButton,!0)},allowContinueButton:function(e){H(x(e)),R(T(e))},uploadContinued:function(e){this.setStatusText(e,""),this.allowPause(e),H(P(e))},showDeleteButton:function(e){H(S(e))},hideDeleteButton:function(e){R(S(e))},isDeleteButton:function(e){return qq(e).hasClass(m.deleteButton,!0)},isRetry:function(e){return qq(e).hasClass(m.retry,!0)},updateSize:function(e,t){var n=I(e);n&&(H(n),qq(n).setText(t))},setStatusText:function(e,t){var n=M(C(e),m.statusText);n&&(null==t?qq(n).clearText():qq(n).setText(t))},hideSpinner:function(e){qq(C(e)).removeClass("qq-in-progress"),R(P(e))},showSpinner:function(e){qq(C(e)).addClass("qq-in-progress"),H(P(e))},generatePreview:function(e,t,n){this.isHiddenForever(e)||(p.push({id:e,customResizeFunction:n,optFileOrBlob:t}),!d&&w())},updateThumbnail:function(e,t,n,r){this.isHiddenForever(e)||(p.push({customResizeFunction:r,update:!0,id:e,thumbnailUrl:t,showWaitingImg:n}),!d&&w())},hasDialog:function(e){return qq.supportedFeatures.dialogElement&&!!q(e)},showDialog:function(e,t,n){var r=q(e),i=M(r,m.dialogMessage),o=r.getElementsByTagName("INPUT")[0],a=M(r,m.dialogCancelButton),s=M(r,m.dialogOkButton),u=new qq.Promise,c=function(){a.removeEventListener("click",l),s&&s.removeEventListener("click",f),u.failure()},l=function(){a.removeEventListener("click",l),r.close()},f=function(){r.removeEventListener("close",c),s.removeEventListener("click",f),r.close(),u.success(o&&o.value)};return r.addEventListener("close",c),a.addEventListener("click",l),s&&s.addEventListener("click",f),o&&(o.value=n),i.textContent=t,r.showModal(),u}})},qq.UiEventHandler=function(e,t){"use strict";var n=new qq.DisposeSupport,r={eventType:"click",attachTo:null,onHandled:function(e,t){}};function i(e){n.attach(e,r.eventType,(function(e){var t=(e=e||window.event).target||e.srcElement;r.onHandled(t,e)}))}qq.extend(this,{addHandler:function(e){i(e)},dispose:function(){n.dispose()}}),qq.extend(t,{getFileIdFromItem:function(e){return e.qqFileId},getDisposeSupport:function(){return n}}),qq.extend(r,e),r.attachTo&&i(r.attachTo)},qq.FileButtonsClickHandler=function(e){"use strict";var t={templating:null,log:function(e,t){},onDeleteFile:function(e){},onCancel:function(e){},onRetry:function(e){},onPause:function(e){},onContinue:function(e){},onGetName:function(e){}},n={cancel:function(e){t.onCancel(e)},retry:function(e){t.onRetry(e)},deleteButton:function(e){t.onDeleteFile(e)},pause:function(e){t.onPause(e)},continueButton:function(e){t.onContinue(e)}};qq.extend(t,e),t.eventType="click",t.onHandled=function(e,r){qq.each(n,(function(n,i){var o,a=n.charAt(0).toUpperCase()+n.slice(1);if(t.templating["is"+a](e))return o=t.templating.getFileId(e),qq.preventDefault(r),t.log(qq.format("Detected valid file button click event on file '{}', ID: {}.",t.onGetName(o),o)),i(o),!1}))},t.attachTo=t.templating.getFileList(),qq.extend(this,new qq.UiEventHandler(t,{}))},qq.FilenameClickHandler=function(e){"use strict";var t={},n={templating:null,log:function(e,t){},classes:{file:"qq-upload-file",editNameIcon:"qq-edit-filename-icon"},onGetUploadStatus:function(e){},onGetName:function(e){}};qq.extend(n,e),n.eventType="click",n.onHandled=function(e,r){if(n.templating.isFileName(e)||n.templating.isEditIcon(e)){var i=n.templating.getFileId(e);n.onGetUploadStatus(i)===qq.status.SUBMITTED&&(n.log(qq.format("Detected valid filename click event on file '{}', ID: {}.",n.onGetName(i),i)),qq.preventDefault(r),t.handleFilenameEdit(i,e,!0))}},qq.extend(this,new qq.FilenameEditHandler(n,t))},qq.FilenameInputFocusInHandler=function(e,t){"use strict";var n={templating:null,onGetUploadStatus:function(e){},log:function(e,t){}};t||(t={}),n.eventType="focusin",n.onHandled=function(e,r){if(n.templating.isEditInput(e)){var i=n.templating.getFileId(e);n.onGetUploadStatus(i)===qq.status.SUBMITTED&&(n.log(qq.format("Detected valid filename input focus event on file '{}', ID: {}.",n.onGetName(i),i)),t.handleFilenameEdit(i,e))}},qq.extend(n,e),qq.extend(this,new qq.FilenameEditHandler(n,t))},qq.FilenameInputFocusHandler=function(e){"use strict";e.eventType="focus",e.attachTo=null,qq.extend(this,new qq.FilenameInputFocusInHandler(e,{}))},qq.FilenameEditHandler=function(e,t){"use strict";var n={templating:null,log:function(e,t){},onGetUploadStatus:function(e){},onGetName:function(e){},onSetName:function(e,t){},onEditingStatusChange:function(e,t){}};function r(e,t){var r,i=e.value;void 0!==i&&qq.trimStr(i).length>0&&(void 0!==(r=function(e){var t=n.onGetName(e);return qq.getExtension(t)}(t))&&(i=i+"."+r),n.onSetName(t,i)),n.onEditingStatusChange(t,!1)}qq.extend(n,e),n.attachTo=n.templating.getFileList(),qq.extend(this,new qq.UiEventHandler(n,t)),qq.extend(t,{handleFilenameEdit:function(e,i,o){var a,s,u,c=n.templating.getEditInput(e);n.onEditingStatusChange(e,!0),c.value=(a=e,s=n.onGetName(a),(u=s.lastIndexOf("."))>0&&(s=s.substr(0,u)),s),o&&c.focus(),function(e,n){t.getDisposeSupport().attach(e,"blur",(function(){r(e,n)}))}(c,e),function(e,n){t.getDisposeSupport().attach(e,"keyup",(function(t){13===(t.keyCode||t.which)&&r(e,n)}))}(c,e)}})}}(window)},,,,,,,function(e,t,n){var r=n(43),i=n(50),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,n){var r=n(43),i=n(76);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(294),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(88),i=n(294);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";var r=n(51);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){var r=n(31);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(e,t,n){"use strict";var r=n(216).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){var r=n(89),i=n(68),o=function(e){return function(t,n){var o,a,s=String(i(t)),u=r(n),c=s.length;return u<0||u>=c?e?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},function(e,t,n){"use strict";var r=n(28),i=n(304),o=n(218),a=n(307),s=n(97),u=n(76),c=n(64),l=n(37),f=n(88),d=n(136),p=n(305),h=p.IteratorPrototype,g=p.BUGGY_SAFARI_ITERATORS,m=l("iterator"),v=function(){return this};e.exports=function(e,t,n,l,p,y,b){i(n,t,l);var _,w,$,x=function(e){if(e===p&&C)return C;if(!g&&e in E)return E[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},q=t+" Iterator",S=!1,E=e.prototype,k=E[m]||E["@@iterator"]||p&&E[p],C=!g&&k||x(p),O="Array"==t&&E.entries||k;if(O&&(_=o(O.call(new e)),h!==Object.prototype&&_.next&&(f||o(_)===h||(a?a(_,h):"function"!=typeof _[m]&&u(_,m,v)),s(_,q,!0,!0),f&&(d[q]=v))),"values"==p&&k&&"values"!==k.name&&(S=!0,C=function(){return k.call(this)}),f&&!b||E[m]===C||u(E,m,C),d[t]=C,p)if(w={values:x("values"),keys:y?C:x("keys"),entries:x("entries")},b)for($ in w)(g||S||!($ in E))&&c(E,$,w[$]);else r({target:t,proto:!0,forced:g||S},w);return w}},function(e,t,n){var r=n(56),i=n(65),o=n(155),a=n(306),s=o("IE_PROTO"),u=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},function(e,t,n){var r=n(51),i=n(310),o=n(62),a=n(98),s=n(164),u=n(311),c=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,l,f){var d,p,h,g,m,v,y,b=a(t,n,l?2:1);if(f)d=e;else{if("function"!=typeof(p=s(e)))throw TypeError("Target is not iterable");if(i(p)){for(h=0,g=o(e.length);g>h;h++)if((m=l?b(r(y=e[h])[0],y[1]):b(e[h]))&&m instanceof c)return m;return new c(!1)}d=p.call(e)}for(v=d.next;!(y=v.call(d)).done;)if("object"==typeof(m=u(d,b,y.value,l))&&m&&m instanceof c)return m;return new c(!1)}).stop=function(e){return new c(!0,e)}},function(e,t,n){var r=n(221),i=n(81),o=n(37)("toStringTag"),a="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:a?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t,n){var r={};r[n(37)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){var r=n(37)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},function(e,t,n){var r=n(64);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},function(e,t,n){"use strict";var r=n(83),i=n(61),o=n(37),a=n(55),s=o("species");e.exports=function(e){var t=r(e),n=i.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";var r=n(31);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},function(e,t,n){var r,i,o=n(43),a=n(315),s=o.process,u=s&&s.versions,c=u&&u.v8;c?i=(r=c.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=r[1]),e.exports=i&&+i},function(e,t,n){var r=n(51),i=n(99),o=n(37)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[o])?t:i(n)}},function(e,t,n){var r=n(50),i=n(81),o=n(37)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},,,function(e,t){!function(t){"use strict";var n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag",u="object"==typeof e,c=t.regeneratorRuntime;if(c)u&&(e.exports=c);else{(c=t.regeneratorRuntime=u?e.exports:{}).wrap=g;var l={},f={};f[o]=function(){return this};var d=Object.getPrototypeOf,p=d&&d(d(E([])));p&&p!==n&&r.call(p,o)&&(f=p);var h=b.prototype=v.prototype=Object.create(f);y.prototype=h.constructor=b,b.constructor=y,b[s]=y.displayName="GeneratorFunction",c.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},c.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(h),e},c.awrap=function(e){return{__await:e}},_(w.prototype),w.prototype[a]=function(){return this},c.AsyncIterator=w,c.async=function(e,t,n,r){var i=new w(g(e,t,n,r));return c.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},_(h),h[s]="Generator",h[o]=function(){return this},h.toString=function(){return"[object Generator]"},c.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},c.values=E,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(q),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),q(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;q(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}}}function g(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,o=Object.create(i.prototype),a=new S(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return k()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=$(a,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=m(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function m(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function v(){}function y(){}function b(){}function _(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function w(e){var t;this._invoke=function(n,i){function o(){return new Promise((function(t,o){!function t(n,i,o,a){var s=m(e[n],e,i);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"==typeof c&&r.call(c,"__await")?Promise.resolve(c.__await).then((function(e){t("next",e,o,a)}),(function(e){t("throw",e,o,a)})):Promise.resolve(c).then((function(e){u.value=e,o(u)}),a)}a(s.arg)}(n,i,t,o)}))}return t=t?t.then(o,o):o()}}function $(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,$(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=m(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function q(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function E(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:k}}function k(){return{value:void 0,done:!0}}}(function(){return this}()||Function("return this")())},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(143);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(70),i=n(144);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(70),i=n(234),o=r["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=o},function(e,t,n){var r=n(70),i=n(347),o=n(103),a=n(348),s=n(356),u=n(499),c=i("wks"),l=r.Symbol,f=u?l:l&&l.withoutSetter||a;e.exports=function(e){return o(c,e)&&(s||"string"==typeof c[e])||(s&&o(l,e)?c[e]=l[e]:c[e]=f("Symbol."+e)),c[e]}},function(e,t,n){"use strict";var r,i,o=n(508),a=n(509),s=RegExp.prototype.exec,u=String.prototype.replace,c=s,l=(r=/a/,i=/b*/g,s.call(r,"a"),s.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),f=a.UNSUPPORTED_Y||a.BROKEN_CARET,d=void 0!==/()??/.exec("")[1];(l||d||f)&&(c=function(e){var t,n,r,i,a=this,c=f&&a.sticky,p=o.call(a),h=a.source,g=0,m=e;return c&&(-1===(p=p.replace("y","")).indexOf("g")&&(p+="g"),m=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(h="(?: "+h+")",m=" "+m,g++),n=new RegExp("^(?:"+h+")",p)),d&&(n=new RegExp("^"+h+"$(?!\\s)",p)),l&&(t=a.lastIndex),r=s.call(c?n:a,m),c?r?(r.input=r.input.slice(g),r[0]=r[0].slice(g),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:l&&r&&(a.lastIndex=a.global?r.index+r[0].length:t),d&&r&&r.length>1&&u.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r}),e.exports=c},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(48);function i(e){try{for(var t=e,n=[],r=0,i=0,a=" > ".length,s=void 0;t&&r++<5&&!("html"===(s=o(t))||r>1&&i+n.length*a+s.length>=80);)n.push(s),i+=s.length,t=t.parentNode;return n.reverse().join(" > ")}catch(e){return"<unknown>"}}function o(e){var t,n,i,o,a,s=e,u=[];if(!s||!s.tagName)return"";if(u.push(s.tagName.toLowerCase()),s.id&&u.push("#"+s.id),(t=s.className)&&Object(r.k)(t))for(n=t.split(/\s+/),a=0;a<n.length;a++)u.push("."+n[a]);var c=["type","name","title","alt"];for(a=0;a<c.length;a++)i=c[a],(o=s.getAttribute(i))&&u.push("["+i+'="'+o+'"]');return u.join("")}},,,,,,,function(e,t,n){var r=n(55),i=n(31),o=n(207);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(43),i=n(208),o=r["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=o},function(e,t,n){var r=n(56),i=n(296),o=n(96),a=n(61);e.exports=function(e,t){for(var n=i(t),s=a.f,u=o.f,c=0;c<n.length;c++){var l=n[c];r(e,l)||s(e,l,u(t,l))}}},function(e,t,n){var r=n(83),i=n(157),o=n(212),a=n(51);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(43);e.exports=r},function(e,t,n){var r=n(56),i=n(74),o=n(299).indexOf,a=n(133);e.exports=function(e,t){var n,s=i(e),u=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~o(c,n)||c.push(n));return c}},function(e,t,n){var r=n(74),i=n(62),o=n(134),a=function(e){return function(t,n,a){var s,u=r(t),c=i(u.length),l=o(a,c);if(e&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){"use strict";var r=n(31);function i(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},function(e,t,n){var r=n(214);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var r=n(55),i=n(61),o=n(51),a=n(135);e.exports=r?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=r.length,u=0;s>u;)i.f(e,n=r[u++],t[n]);return e}},function(e,t,n){var r=n(83);e.exports=r("document","documentElement")},function(e,t,n){"use strict";var r=n(305).IteratorPrototype,i=n(113),o=n(112),a=n(97),s=n(136),u=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=i(r,{next:o(1,n)}),a(e,c,!1,!0),s[c]=u,e}},function(e,t,n){"use strict";var r,i,o,a=n(218),s=n(76),u=n(56),c=n(37),l=n(88),f=c("iterator"),d=!1;[].keys&&("next"in(o=[].keys())?(i=a(a(o)))!==Object.prototype&&(r=i):d=!0),null==r&&(r={}),l||u(r,f)||s(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},function(e,t,n){var r=n(31);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){var r=n(51),i=n(467);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,o){return r(n),i(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},function(e,t,n){"use strict";var r=n(28),i=n(43),o=n(158),a=n(64),s=n(309),u=n(219),c=n(137),l=n(50),f=n(31),d=n(222),p=n(97),h=n(312);e.exports=function(e,t,n){var g=-1!==e.indexOf("Map"),m=-1!==e.indexOf("Weak"),v=g?"set":"add",y=i[e],b=y&&y.prototype,_=y,w={},$=function(e){var t=b[e];a(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(m&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!l(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!l(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(o(e,"function"!=typeof y||!(m||b.forEach&&!f((function(){(new y).entries().next()})))))_=n.getConstructor(t,e,g,v),s.REQUIRED=!0;else if(o(e,!0)){var x=new _,q=x[v](m?{}:-0,1)!=x,S=f((function(){x.has(1)})),E=d((function(e){new y(e)})),k=!m&&f((function(){for(var e=new y,t=5;t--;)e[v](t,t);return!e.has(-0)}));E||((_=t((function(t,n){c(t,_,e);var r=h(new y,t,_);return null!=n&&u(n,r[v],r,g),r}))).prototype=b,b.constructor=_),(S||k)&&($("delete"),$("has"),g&&$("get")),(k||q)&&$(v),m&&b.clear&&delete b.clear}return w[e]=_,r({global:!0,forced:_!=y},w),p(_,e),m||n.setStrong(_,e,g),_}},function(e,t,n){var r=n(133),i=n(50),o=n(56),a=n(61).f,s=n(156),u=n(468),c=s("meta"),l=0,f=Object.isExtensible||function(){return!0},d=function(e){a(e,c,{value:{objectID:"O"+ ++l,weakData:{}}})},p=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,c)){if(!f(e))return"F";if(!t)return"E";d(e)}return e[c].objectID},getWeakData:function(e,t){if(!o(e,c)){if(!f(e))return!0;if(!t)return!1;d(e)}return e[c].weakData},onFreeze:function(e){return u&&p.REQUIRED&&f(e)&&!o(e,c)&&d(e),e}};r[c]=!0},function(e,t,n){var r=n(37),i=n(136),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},function(e,t,n){var r=n(51);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},function(e,t,n){var r=n(50),i=n(307);e.exports=function(e,t,n){var o,a;return i&&"function"==typeof(o=t.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},function(e,t,n){"use strict";var r=n(61).f,i=n(113),o=n(223),a=n(98),s=n(137),u=n(219),c=n(217),l=n(224),f=n(55),d=n(309).fastKey,p=n(82),h=p.set,g=p.getterFor;e.exports={getConstructor:function(e,t,n,c){var l=e((function(e,r){s(e,l,t),h(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=r&&u(r,e[c],e,n)})),p=g(t),m=function(e,t,n){var r,i,o=p(e),a=v(e,t);return a?a.value=n:(o.last=a={index:i=d(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),f?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},v=function(e,t){var n,r=p(e),i=d(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return o(l.prototype,{clear:function(){for(var e=p(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var t=p(this),n=v(this,e);if(n){var r=n.next,i=n.previous;delete t.index[n.index],n.removed=!0,i&&(i.next=r),r&&(r.previous=i),t.first==n&&(t.first=r),t.last==n&&(t.last=i),f?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=p(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!v(this,e)}}),o(l.prototype,n?{get:function(e){var t=v(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),f&&r(l.prototype,"size",{get:function(){return p(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",i=g(t),o=g(r);c(e,t,(function(e,t){h(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(t)}}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){var r=n(83);e.exports=r("navigator","userAgent")||""},function(e,t,n){"use strict";var r=n(98),i=n(65),o=n(311),a=n(310),s=n(62),u=n(141),c=n(164);e.exports=function(e){var t,n,l,f,d,p,h=i(e),g="function"==typeof this?this:Array,m=arguments.length,v=m>1?arguments[1]:void 0,y=void 0!==v,b=c(h),_=0;if(y&&(v=r(v,m>2?arguments[2]:void 0,2)),null==b||g==Array&&a(b))for(n=new g(t=s(h.length));t>_;_++)p=y?v(h[_],_):h[_],u(n,_,p);else for(d=(f=b.call(h)).next,n=new g;!(l=d.call(f)).done;_++)p=y?o(f,v,[l.value,_],!0):l.value,u(n,_,p);return n.length=_,n}},function(e,t,n){(function(t){e.exports=t.jQuery=n(471)}).call(this,n(44))},function(e,t,n){(function(t){e.exports=t.angular=n(473)}).call(this,n(44))},function(e,t,n){n(475),e.exports="ngSanitize"},function(e,t){var n=angular.module("autocomplete",[]);n.directive("autocomplete",(function(){var e=-1;return{restrict:"E",scope:{searchParam:"=ngModel",suggestions:"=data",onType:"=onType",onSelect:"=onSelect"},controller:["$scope",function(e){e.selectedIndex=-1,e.setIndex=function(t){e.selectedIndex=parseInt(t)},this.setIndex=function(t){e.setIndex(t),e.$apply()},e.getIndex=function(t){return e.selectedIndex};var t=!0;e.completing=!1,e.$watch("searchParam",(function(n,r){r!==n&&(t&&e.searchParam&&(e.completing=!0,e.searchFilter=e.searchParam,e.selectedIndex=-1),e.onType&&e.onType(e.searchParam))})),this.preSelect=function(n){t=!1,e.$apply(),t=!0},e.preSelect=this.preSelect,this.preSelectOff=function(){t=!0},e.preSelectOff=this.preSelectOff,e.select=function(n){n&&(e.searchParam=n,e.searchFilter=n,e.onSelect&&e.onSelect(n)),t=!1,e.completing=!1,setTimeout((function(){t=!0}),1e3),e.setIndex(-1)}}],link:function(t,n,r){var i="";for(var o in t.attrs={placeholder:"start typing...",class:"",id:"",inputclass:"",inputid:""},r)i=o.replace("attr","").toLowerCase(),0===o.indexOf("attr")&&(t.attrs[i]=r[o]);r.clickActivation&&(n[0].onclick=function(e){t.searchParam||(t.completing=!0,t.$apply())});var a=37,s=38,u=39,c=40,l=13,f=27;document.addEventListener("keydown",(function(e){switch(e.keyCode||e.which){case f:t.select(),t.setIndex(-1),t.$apply(),e.preventDefault()}}),!0),document.addEventListener("blur",(function(e){setTimeout((function(){t.select(),t.setIndex(-1),t.$apply()}),200)}),!0),n[0].addEventListener("keydown",(function(n){var r=n.keyCode||n.which,i=angular.element(this).find("li").length;switch(r){case s:if((e=t.getIndex()-1)<-1)e=i-1;else if(e>=i){e=-1,t.setIndex(e),t.preSelectOff();break}t.setIndex(e),-1!==e&&t.preSelect(angular.element(angular.element(this).find("li")[e]).text()),t.$apply();break;case c:if((e=t.getIndex()+1)<-1)e=i-1;else if(e>=i){e=-1,t.setIndex(e),t.preSelectOff(),t.$apply();break}t.setIndex(e),-1!==e&&t.preSelect(angular.element(angular.element(this).find("li")[e]).text());break;case a:break;case u:case l:-1!==(e=t.getIndex())&&t.select(angular.element(angular.element(this).find("li")[e]).text()),t.setIndex(-1),t.$apply();break;case f:t.select(),t.setIndex(-1),t.$apply(),n.preventDefault();break;default:return}-1===t.getIndex()&&r!=l||n.preventDefault()}))},templateUrl:"js/libs/angular-autocomplete/ac_template.html"}})),n.filter("highlight",["$sce",function(e){return function(t,n){if("function"==typeof t)return"";if(n){var r="("+n.split(/\ /).join(" |")+"|"+n.split(/\ /).join("|")+")",i=new RegExp(r,"gi");r.length&&(t=t.replace(i,'<span class="highlight">$1</span>'))}return e.trustAsHtml(t)}}]),n.directive("suggestion",(function(){return{restrict:"A",require:"^autocomplete",link:function(e,t,n,r){t.bind("mouseenter",(function(){r.preSelect(n.val),r.setIndex(n.index)})),t.bind("mouseleave",(function(){r.preSelectOff()}))}}}))},function(e,t){angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.bindHtml","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.position","ui.bootstrap.datepicker","ui.bootstrap.dropdown","ui.bootstrap.modal","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.transition","ui.bootstrap.typeahead"]),angular.module("ui.bootstrap.tpls",["template/accordion/accordion-group.html","template/accordion/accordion.html","template/alert/alert.html","template/carousel/carousel.html","template/carousel/slide.html","template/datepicker/datepicker.html","template/datepicker/day.html","template/datepicker/month.html","template/datepicker/popup.html","template/datepicker/year.html","template/modal/backdrop.html","template/modal/window.html","template/pagination/pager.html","template/pagination/pagination.html","template/tooltip/tooltip-html-popup.html","template/tooltip/tooltip-html-unsafe-popup.html","template/tooltip/tooltip-popup.html","template/tooltip/tooltip-template-popup.html","template/popover/popover-template.html","template/popover/popover.html","template/progressbar/bar.html","template/progressbar/progress.html","template/progressbar/progressbar.html","template/rating/rating.html","template/tabs/tab.html","template/tabs/tabset.html","template/timepicker/timepicker.html","template/typeahead/typeahead-match.html","template/typeahead/typeahead-popup.html"]),angular.module("ui.bootstrap.collapse",[]).directive("collapse",["$animate",function(e){return{link:function(t,n,r){function i(){n.removeClass("collapse").addClass("collapsing"),e.addClass(n,"in",{to:{height:n[0].scrollHeight+"px"}}).then(o)}function o(){n.removeClass("collapsing"),n.css({height:"auto"})}function a(){n.css({height:n[0].scrollHeight+"px"}).removeClass("collapse").addClass("collapsing"),e.removeClass(n,"in",{to:{height:"0"}}).then(s)}function s(){n.css({height:"0"}),n.removeClass("collapsing"),n.addClass("collapse")}t.$watch(r.collapse,(function(e){e?a():i()}))}}}]),angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse"]).constant("accordionConfig",{closeOthers:!0}).controller("AccordionController",["$scope","$attrs","accordionConfig",function(e,t,n){this.groups=[],this.closeOthers=function(r){(angular.isDefined(t.closeOthers)?e.$eval(t.closeOthers):n.closeOthers)&&angular.forEach(this.groups,(function(e){e!==r&&(e.isOpen=!1)}))},this.addGroup=function(e){var t=this;this.groups.push(e),e.$on("$destroy",(function(){t.removeGroup(e)}))},this.removeGroup=function(e){var t=this.groups.indexOf(e);-1!==t&&this.groups.splice(t,1)}}]).directive("accordion",(function(){return{restrict:"EA",controller:"AccordionController",transclude:!0,replace:!1,templateUrl:"template/accordion/accordion.html"}})).directive("accordionGroup",(function(){return{require:"^accordion",restrict:"EA",transclude:!0,replace:!0,templateUrl:"template/accordion/accordion-group.html",scope:{heading:"@",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(e){this.heading=e}},link:function(e,t,n,r){r.addGroup(e),e.$watch("isOpen",(function(t){t&&r.closeOthers(e)})),e.toggleOpen=function(){e.isDisabled||(e.isOpen=!e.isOpen)}}}})).directive("accordionHeading",(function(){return{restrict:"EA",transclude:!0,template:"",replace:!0,require:"^accordionGroup",link:function(e,t,n,r,i){r.setHeading(i(e,angular.noop))}}})).directive("accordionTransclude",(function(){return{require:"^accordionGroup",link:function(e,t,n,r){e.$watch((function(){return r[n.accordionTransclude]}),(function(e){e&&(t.html(""),t.append(e))}))}}})),angular.module("ui.bootstrap.alert",[]).controller("AlertController",["$scope","$attrs",function(e,t){e.closeable="close"in t,this.close=e.close}]).directive("alert",(function(){return{restrict:"EA",controller:"AlertController",templateUrl:"template/alert/alert.html",transclude:!0,replace:!0,scope:{type:"@",close:"&"}}})).directive("dismissOnTimeout",["$timeout",function(e){return{require:"alert",link:function(t,n,r,i){e((function(){i.close()}),parseInt(r.dismissOnTimeout,10))}}}]),angular.module("ui.bootstrap.bindHtml",[]).directive("bindHtmlUnsafe",(function(){return function(e,t,n){t.addClass("ng-binding").data("$binding",n.bindHtmlUnsafe),e.$watch(n.bindHtmlUnsafe,(function(e){t.html(e||"")}))}})),angular.module("ui.bootstrap.buttons",[]).constant("buttonConfig",{activeClass:"active",toggleEvent:"click"}).controller("ButtonsController",["buttonConfig",function(e){this.activeClass=e.activeClass||"active",this.toggleEvent=e.toggleEvent||"click"}]).directive("btnRadio",(function(){return{require:["btnRadio","ngModel"],controller:"ButtonsController",link:function(e,t,n,r){var i=r[0],o=r[1];o.$render=function(){t.toggleClass(i.activeClass,angular.equals(o.$modelValue,e.$eval(n.btnRadio)))},t.bind(i.toggleEvent,(function(){var r=t.hasClass(i.activeClass);(!r||angular.isDefined(n.uncheckable))&&e.$apply((function(){o.$setViewValue(r?null:e.$eval(n.btnRadio)),o.$render()}))}))}}})).directive("btnCheckbox",(function(){return{require:["btnCheckbox","ngModel"],controller:"ButtonsController",link:function(e,t,n,r){function i(){return o(n.btnCheckboxTrue,!0)}function o(t,n){var r=e.$eval(t);return angular.isDefined(r)?r:n}var a=r[0],s=r[1];s.$render=function(){t.toggleClass(a.activeClass,angular.equals(s.$modelValue,i()))},t.bind(a.toggleEvent,(function(){e.$apply((function(){s.$setViewValue(t.hasClass(a.activeClass)?o(n.btnCheckboxFalse,!1):i()),s.$render()}))}))}}})),angular.module("ui.bootstrap.carousel",[]).controller("CarouselController",["$scope","$interval","$animate",function(e,t,n){function r(e){if(angular.isUndefined(l[e].index))return l[e];var t;for(l.length,t=0;t<l.length;++t)if(l[t].index==e)return l[t]}function i(){o();var n=+e.interval;!isNaN(n)&&n>0&&(s=t(a,n))}function o(){s&&(t.cancel(s),s=null)}function a(){var t=+e.interval;u&&!isNaN(t)&&t>0?e.next():e.pause()}var s,u,c=this,l=c.slides=e.slides=[],f=-1;c.currentSlide=null;var d=!1;c.select=e.select=function(t,r){var o=c.indexOfSlide(t);void 0===r&&(r=o>c.getCurrentIndex()?"next":"prev"),t&&t!==c.currentSlide&&(d||(angular.extend(t,{direction:r,active:!0}),angular.extend(c.currentSlide||{},{direction:r,active:!1}),n.enabled()&&!e.noTransition&&t.$element&&(e.$currentTransition=!0,t.$element.one("$animate:close",(function(){e.$currentTransition=null}))),c.currentSlide=t,f=o,i()))},e.$on("$destroy",(function(){d=!0})),c.getCurrentIndex=function(){return c.currentSlide&&angular.isDefined(c.currentSlide.index)?+c.currentSlide.index:f},c.indexOfSlide=function(e){return angular.isDefined(e.index)?+e.index:l.indexOf(e)},e.next=function(){var t=(c.getCurrentIndex()+1)%l.length;return e.$currentTransition?void 0:c.select(r(t),"next")},e.prev=function(){var t=c.getCurrentIndex()-1<0?l.length-1:c.getCurrentIndex()-1;return e.$currentTransition?void 0:c.select(r(t),"prev")},e.isActive=function(e){return c.currentSlide===e},e.$watch("interval",i),e.$on("$destroy",o),e.play=function(){u||(u=!0,i())},e.pause=function(){e.noPause||(u=!1,o())},c.addSlide=function(t,n){t.$element=n,l.push(t),1===l.length||t.active?(c.select(l[l.length-1]),1==l.length&&e.play()):t.active=!1},c.removeSlide=function(e){angular.isDefined(e.index)&&l.sort((function(e,t){return+e.index>+t.index}));var t=l.indexOf(e);l.splice(t,1),l.length>0&&e.active?c.select(t>=l.length?l[t-1]:l[t]):f>t&&f--}}]).directive("carousel",[function(){return{restrict:"EA",transclude:!0,replace:!0,controller:"CarouselController",require:"carousel",templateUrl:"template/carousel/carousel.html",scope:{interval:"=",noTransition:"=",noPause:"="}}}]).directive("slide",(function(){return{require:"^carousel",restrict:"EA",transclude:!0,replace:!0,templateUrl:"template/carousel/slide.html",scope:{active:"=?",index:"=?"},link:function(e,t,n,r){r.addSlide(e,t),e.$on("$destroy",(function(){r.removeSlide(e)})),e.$watch("active",(function(t){t&&r.select(e)}))}}})).animation(".item",["$animate",function(e){return{beforeAddClass:function(t,n,r){if("active"==n&&t.parent()&&!t.parent().scope().noTransition){var i=!1,o=t.isolateScope().direction,a="next"==o?"left":"right";return t.addClass(o),e.addClass(t,a).then((function(){i||t.removeClass(a+" "+o),r()})),function(){i=!0}}r()},beforeRemoveClass:function(t,n,r){if("active"==n&&t.parent()&&!t.parent().scope().noTransition){var i=!1,o="next"==t.isolateScope().direction?"left":"right";return e.addClass(t,o).then((function(){i||t.removeClass(o),r()})),function(){i=!0}}r()}}}]),angular.module("ui.bootstrap.dateparser",[]).service("dateParser",["$locale","orderByFilter",function(e,t){function n(e){var n=[],r=e.split("");return angular.forEach(i,(function(t,i){var o=e.indexOf(i);if(o>-1){e=e.split(""),r[o]="("+t.regex+")",e[o]="$";for(var a=o+1,s=o+i.length;s>a;a++)r[a]="",e[a]="$";e=e.join(""),n.push({index:o,apply:t.apply})}})),{regex:new RegExp("^"+r.join("")+"$"),map:t(n,"index")}}var r=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;this.parsers={};var i={yyyy:{regex:"\\d{4}",apply:function(e){this.year=+e}},yy:{regex:"\\d{2}",apply:function(e){this.year=+e+2e3}},y:{regex:"\\d{1,4}",apply:function(e){this.year=+e}},MMMM:{regex:e.DATETIME_FORMATS.MONTH.join("|"),apply:function(t){this.month=e.DATETIME_FORMATS.MONTH.indexOf(t)}},MMM:{regex:e.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(t){this.month=e.DATETIME_FORMATS.SHORTMONTH.indexOf(t)}},MM:{regex:"0[1-9]|1[0-2]",apply:function(e){this.month=e-1}},M:{regex:"[1-9]|1[0-2]",apply:function(e){this.month=e-1}},dd:{regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e}},d:{regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e}},EEEE:{regex:e.DATETIME_FORMATS.DAY.join("|")},EEE:{regex:e.DATETIME_FORMATS.SHORTDAY.join("|")},HH:{regex:"(?:0|1)[0-9]|2[0-3]",apply:function(e){this.hours=+e}},H:{regex:"1?[0-9]|2[0-3]",apply:function(e){this.hours=+e}},mm:{regex:"[0-5][0-9]",apply:function(e){this.minutes=+e}},m:{regex:"[0-9]|[1-5][0-9]",apply:function(e){this.minutes=+e}},sss:{regex:"[0-9][0-9][0-9]",apply:function(e){this.milliseconds=+e}},ss:{regex:"[0-5][0-9]",apply:function(e){this.seconds=+e}},s:{regex:"[0-9]|[1-5][0-9]",apply:function(e){this.seconds=+e}}};this.parse=function(t,i,o){if(!angular.isString(t)||!i)return t;i=(i=e.DATETIME_FORMATS[i]||i).replace(r,"\\$&"),this.parsers[i]||(this.parsers[i]=n(i));var a=this.parsers[i],s=a.regex,u=a.map,c=t.match(s);if(c&&c.length){var l,f;l=o?{year:o.getFullYear(),month:o.getMonth(),date:o.getDate(),hours:o.getHours(),minutes:o.getMinutes(),seconds:o.getSeconds(),milliseconds:o.getMilliseconds()}:{year:1900,month:0,date:1,hours:0,minutes:0,seconds:0,milliseconds:0};for(var d=1,p=c.length;p>d;d++){var h=u[d-1];h.apply&&h.apply.call(l,c[d])}return function(e,t,n){return!(1>n)&&(1===t&&n>28?29===n&&(e%4==0&&e%100!=0||e%400==0):3!==t&&5!==t&&8!==t&&10!==t||31>n)}(l.year,l.month,l.date)&&(f=new Date(l.year,l.month,l.date,l.hours,l.minutes,l.seconds,l.milliseconds||0)),f}}}]),angular.module("ui.bootstrap.position",[]).factory("$position",["$document","$window",function(e,t){function n(e){return"static"===(function(e,n){return e.currentStyle?e.currentStyle[n]:t.getComputedStyle?t.getComputedStyle(e)[n]:e.style[n]}(e,"position")||"static")}var r=function(t){for(var r=e[0],i=t.offsetParent||r;i&&i!==r&&n(i);)i=i.offsetParent;return i||r};return{position:function(t){var n=this.offset(t),i={top:0,left:0},o=r(t[0]);o!=e[0]&&((i=this.offset(angular.element(o))).top+=o.clientTop-o.scrollTop,i.left+=o.clientLeft-o.scrollLeft);var a=t[0].getBoundingClientRect();return{width:a.width||t.prop("offsetWidth"),height:a.height||t.prop("offsetHeight"),top:n.top-i.top,left:n.left-i.left}},offset:function(n){var r=n[0].getBoundingClientRect();return{width:r.width||n.prop("offsetWidth"),height:r.height||n.prop("offsetHeight"),top:r.top+(t.pageYOffset||e[0].documentElement.scrollTop),left:r.left+(t.pageXOffset||e[0].documentElement.scrollLeft)}},positionElements:function(e,t,n,r){var i,o,a,s,u=n.split("-"),c=u[0],l=u[1]||"center";i=r?this.offset(e):this.position(e),o=t.prop("offsetWidth"),a=t.prop("offsetHeight");var f={center:function(){return i.left+i.width/2-o/2},left:function(){return i.left},right:function(){return i.left+i.width}},d={center:function(){return i.top+i.height/2-a/2},top:function(){return i.top},bottom:function(){return i.top+i.height}};switch(c){case"right":s={top:d[l](),left:f[c]()};break;case"left":s={top:d[l](),left:i.left-o};break;case"bottom":s={top:d[c](),left:f[l]()};break;default:s={top:i.top-a,left:f[l]()}}return s}}}]),angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.position"]).constant("datepickerConfig",{formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",datepickerMode:"day",minMode:"day",maxMode:"year",showWeeks:!0,startingDay:0,yearRange:20,minDate:null,maxDate:null,shortcutPropagation:!1}).controller("DatepickerController",["$scope","$attrs","$parse","$interpolate","$timeout","$log","dateFilter","datepickerConfig",function(e,t,n,r,i,o,a,s){var u=this,c={$setViewValue:angular.noop};this.modes=["day","month","year"],angular.forEach(["formatDay","formatMonth","formatYear","formatDayHeader","formatDayTitle","formatMonthTitle","minMode","maxMode","showWeeks","startingDay","yearRange","shortcutPropagation"],(function(n,i){u[n]=angular.isDefined(t[n])?8>i?r(t[n])(e.$parent):e.$parent.$eval(t[n]):s[n]})),angular.forEach(["minDate","maxDate"],(function(r){t[r]?e.$parent.$watch(n(t[r]),(function(e){u[r]=e?new Date(e):null,u.refreshView()})):u[r]=s[r]?new Date(s[r]):null})),e.datepickerMode=e.datepickerMode||s.datepickerMode,e.maxMode=u.maxMode,e.uniqueId="datepicker-"+e.$id+"-"+Math.floor(1e4*Math.random()),angular.isDefined(t.initDate)?(this.activeDate=e.$parent.$eval(t.initDate)||new Date,e.$parent.$watch(t.initDate,(function(e){e&&(c.$isEmpty(c.$modelValue)||c.$invalid)&&(u.activeDate=e,u.refreshView())}))):this.activeDate=new Date,e.isActive=function(t){return 0===u.compare(t.date,u.activeDate)&&(e.activeDateId=t.uid,!0)},this.init=function(e){(c=e).$render=function(){u.render()}},this.render=function(){if(c.$viewValue){var e=new Date(c.$viewValue),t=!isNaN(e);t?this.activeDate=e:o.error('Datepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.'),c.$setValidity("date",t)}this.refreshView()},this.refreshView=function(){if(this.element){this._refreshView();var e=c.$viewValue?new Date(c.$viewValue):null;c.$setValidity("date-disabled",!e||this.element&&!this.isDisabled(e))}},this.createDateObject=function(e,t){var n=c.$viewValue?new Date(c.$viewValue):null;return{date:e,label:a(e,t),selected:n&&0===this.compare(e,n),disabled:this.isDisabled(e),current:0===this.compare(e,new Date),customClass:this.customClass(e)}},this.isDisabled=function(n){return this.minDate&&this.compare(n,this.minDate)<0||this.maxDate&&this.compare(n,this.maxDate)>0||t.dateDisabled&&e.dateDisabled({date:n,mode:e.datepickerMode})},this.customClass=function(t){return e.customClass({date:t,mode:e.datepickerMode})},this.split=function(e,t){for(var n=[];e.length>0;)n.push(e.splice(0,t));return n},e.select=function(t){if(e.datepickerMode===u.minMode){var n=c.$viewValue?new Date(c.$viewValue):new Date(0,0,0,0,0,0,0);n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),c.$setViewValue(n),c.$render()}else u.activeDate=t,e.datepickerMode=u.modes[u.modes.indexOf(e.datepickerMode)-1]},e.move=function(e){var t=u.activeDate.getFullYear()+e*(u.step.years||0),n=u.activeDate.getMonth()+e*(u.step.months||0);u.activeDate.setFullYear(t,n,1),u.refreshView()},e.toggleMode=function(t){t=t||1,e.datepickerMode===u.maxMode&&1===t||e.datepickerMode===u.minMode&&-1===t||(e.datepickerMode=u.modes[u.modes.indexOf(e.datepickerMode)+t])},e.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};var l=function(){i((function(){u.element[0].focus()}),0,!1)};e.$on("datepicker.focus",l),e.keydown=function(t){var n=e.keys[t.which];if(n&&!t.shiftKey&&!t.altKey)if(t.preventDefault(),u.shortcutPropagation||t.stopPropagation(),"enter"===n||"space"===n){if(u.isDisabled(u.activeDate))return;e.select(u.activeDate),l()}else!t.ctrlKey||"up"!==n&&"down"!==n?(u.handleKeyDown(n,t),u.refreshView()):(e.toggleMode("up"===n?1:-1),l())}}]).directive("datepicker",(function(){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/datepicker.html",scope:{datepickerMode:"=?",dateDisabled:"&",customClass:"&",shortcutPropagation:"&?"},require:["datepicker","?^ngModel"],controller:"DatepickerController",link:function(e,t,n,r){var i=r[0],o=r[1];o&&i.init(o)}}})).directive("daypicker",["dateFilter",function(e){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/day.html",require:"^datepicker",link:function(t,n,r,i){function o(e,t){return 1!==t||e%4!=0||e%100==0&&e%400!=0?s[t]:29}function a(e){var t=new Date(e);t.setDate(t.getDate()+4-(t.getDay()||7));var n=t.getTime();return t.setMonth(0),t.setDate(1),Math.floor(Math.round((n-t)/864e5)/7)+1}t.showWeeks=i.showWeeks,i.step={months:1},i.element=n;var s=[31,28,31,30,31,30,31,31,30,31,30,31];i._refreshView=function(){var n=i.activeDate.getFullYear(),r=i.activeDate.getMonth(),o=new Date(n,r,1),s=i.startingDay-o.getDay(),u=s>0?7-s:-s,c=new Date(o);u>0&&c.setDate(1-u);for(var l=function(e,t){var n=new Array(t),r=new Date(e),i=0;for(r.setHours(12);t>i;)n[i++]=new Date(r),r.setDate(r.getDate()+1);return n}(c,42),f=0;42>f;f++)l[f]=angular.extend(i.createDateObject(l[f],i.formatDay),{secondary:l[f].getMonth()!==r,uid:t.uniqueId+"-"+f});t.labels=new Array(7);for(var d=0;7>d;d++)t.labels[d]={abbr:e(l[d].date,i.formatDayHeader),full:e(l[d].date,"EEEE")};if(t.title=e(i.activeDate,i.formatDayTitle),t.rows=i.split(l,7),t.showWeeks){t.weekNumbers=[];for(var p=(11-i.startingDay)%7,h=t.rows.length,g=0;h>g;g++)t.weekNumbers.push(a(t.rows[g][p].date))}},i.compare=function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())},i.handleKeyDown=function(e){var t=i.activeDate.getDate();if("left"===e)t-=1;else if("up"===e)t-=7;else if("right"===e)t+=1;else if("down"===e)t+=7;else if("pageup"===e||"pagedown"===e){var n=i.activeDate.getMonth()+("pageup"===e?-1:1);i.activeDate.setMonth(n,1),t=Math.min(o(i.activeDate.getFullYear(),i.activeDate.getMonth()),t)}else"home"===e?t=1:"end"===e&&(t=o(i.activeDate.getFullYear(),i.activeDate.getMonth()));i.activeDate.setDate(t)},i.refreshView()}}}]).directive("monthpicker",["dateFilter",function(e){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/month.html",require:"^datepicker",link:function(t,n,r,i){i.step={years:1},i.element=n,i._refreshView=function(){for(var n=new Array(12),r=i.activeDate.getFullYear(),o=0;12>o;o++)n[o]=angular.extend(i.createDateObject(new Date(r,o,1),i.formatMonth),{uid:t.uniqueId+"-"+o});t.title=e(i.activeDate,i.formatMonthTitle),t.rows=i.split(n,3)},i.compare=function(e,t){return new Date(e.getFullYear(),e.getMonth())-new Date(t.getFullYear(),t.getMonth())},i.handleKeyDown=function(e){var t=i.activeDate.getMonth();if("left"===e)t-=1;else if("up"===e)t-=3;else if("right"===e)t+=1;else if("down"===e)t+=3;else if("pageup"===e||"pagedown"===e){var n=i.activeDate.getFullYear()+("pageup"===e?-1:1);i.activeDate.setFullYear(n)}else"home"===e?t=0:"end"===e&&(t=11);i.activeDate.setMonth(t)},i.refreshView()}}}]).directive("yearpicker",["dateFilter",function(){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/year.html",require:"^datepicker",link:function(e,t,n,r){function i(e){return parseInt((e-1)/o,10)*o+1}var o=r.yearRange;r.step={years:o},r.element=t,r._refreshView=function(){for(var t=new Array(o),n=0,a=i(r.activeDate.getFullYear());o>n;n++)t[n]=angular.extend(r.createDateObject(new Date(a+n,0,1),r.formatYear),{uid:e.uniqueId+"-"+n});e.title=[t[0].label,t[o-1].label].join(" - "),e.rows=r.split(t,5)},r.compare=function(e,t){return e.getFullYear()-t.getFullYear()},r.handleKeyDown=function(e){var t=r.activeDate.getFullYear();"left"===e?t-=1:"up"===e?t-=5:"right"===e?t+=1:"down"===e?t+=5:"pageup"===e||"pagedown"===e?t+=("pageup"===e?-1:1)*r.step.years:"home"===e?t=i(r.activeDate.getFullYear()):"end"===e&&(t=i(r.activeDate.getFullYear())+o-1),r.activeDate.setFullYear(t)},r.refreshView()}}}]).constant("datepickerPopupConfig",{datepickerPopup:"yyyy-MM-dd",html5Types:{date:"yyyy-MM-dd","datetime-local":"yyyy-MM-ddTHH:mm:ss.sss",month:"yyyy-MM"},currentText:"Today",clearText:"Clear",closeText:"Done",closeOnDateSelection:!0,appendToBody:!1,showButtonBar:!0}).directive("datepickerPopup",["$compile","$parse","$document","$position","dateFilter","dateParser","datepickerPopupConfig",function(e,t,n,r,i,o,a){return{restrict:"EA",require:"ngModel",scope:{isOpen:"=?",currentText:"@",clearText:"@",closeText:"@",dateDisabled:"&",customClass:"&"},link:function(s,u,c,l){function f(e){return e.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()}))}var d,p=angular.isDefined(c.closeOnDateSelection)?s.$parent.$eval(c.closeOnDateSelection):a.closeOnDateSelection,h=angular.isDefined(c.datepickerAppendToBody)?s.$parent.$eval(c.datepickerAppendToBody):a.appendToBody;s.showButtonBar=angular.isDefined(c.showButtonBar)?s.$parent.$eval(c.showButtonBar):a.showButtonBar,s.getText=function(e){return s[e+"Text"]||a[e+"Text"]};var g=!1;if(a.html5Types[c.type]?(d=a.html5Types[c.type],g=!0):(d=c.datepickerPopup||a.datepickerPopup,c.$observe("datepickerPopup",(function(e){var t=e||a.datepickerPopup;if(t!==d&&(d=t,l.$modelValue=null,!d))throw new Error("datepickerPopup must have a date format specified.")}))),!d)throw new Error("datepickerPopup must have a date format specified.");if(g&&c.datepickerPopup)throw new Error("HTML5 date input types do not support custom formats.");var m=angular.element("<div datepicker-popup-wrap><div datepicker></div></div>");m.attr({"ng-model":"date","ng-change":"dateSelection()"});var v=angular.element(m.children()[0]);if(g&&"month"==c.type&&(v.attr("datepicker-mode",'"month"'),v.attr("min-mode","month")),c.datepickerOptions){var y=s.$parent.$eval(c.datepickerOptions);y.initDate&&(s.initDate=y.initDate,v.attr("init-date","initDate"),delete y.initDate),angular.forEach(y,(function(e,t){v.attr(f(t),e)}))}s.watchData={},angular.forEach(["minDate","maxDate","datepickerMode","initDate","shortcutPropagation"],(function(e){if(c[e]){var n=t(c[e]);if(s.$parent.$watch(n,(function(t){s.watchData[e]=t})),v.attr(f(e),"watchData."+e),"datepickerMode"===e){var r=n.assign;s.$watch("watchData."+e,(function(e,t){e!==t&&r(s.$parent,e)}))}}})),c.dateDisabled&&v.attr("date-disabled","dateDisabled({ date: date, mode: mode })"),c.showWeeks&&v.attr("show-weeks",c.showWeeks),c.customClass&&v.attr("custom-class","customClass({ date: date, mode: mode })"),g?l.$formatters.push((function(e){return s.date=e,e})):(l.$$parserName="date",l.$validators.date=function(e,t){var n=e||t;if(angular.isNumber(n)&&(n=new Date(n)),n){if(angular.isDate(n)&&!isNaN(n))return!0;if(angular.isString(n)){var r=o.parse(n,d)||new Date(n);return!isNaN(r)}return!1}return!0},l.$parsers.unshift((function(e){if(angular.isNumber(e)&&(e=new Date(e)),!e)return null;if(angular.isDate(e)&&!isNaN(e))return e;if(angular.isString(e)){var t=o.parse(e,d,s.date)||new Date(e);return isNaN(t)?void 0:t}})),l.$formatters.push((function(e){return s.date=e,l.$isEmpty(e)?e:i(e,d)}))),s.dateSelection=function(e){angular.isDefined(e)&&(s.date=e);var t=s.date?i(s.date,d):"";u.val(t),l.$setViewValue(t),p&&(s.isOpen=!1,u[0].focus())},l.$viewChangeListeners.push((function(){s.date=o.parse(l.$viewValue,d,s.date)||new Date(l.$viewValue)}));var b=function(e){s.isOpen&&e.target!==u[0]&&s.$apply((function(){s.isOpen=!1}))},_=function(e){s.keydown(e)};u.bind("keydown",_),s.keydown=function(e){27===e.which?(e.preventDefault(),s.isOpen&&e.stopPropagation(),s.close()):40!==e.which||s.isOpen||(s.isOpen=!0)},s.$watch("isOpen",(function(e){e?(s.$broadcast("datepicker.focus"),s.position=h?r.offset(u):r.position(u),s.position.top=s.position.top+u.prop("offsetHeight"),n.bind("click",b)):n.unbind("click",b)})),s.select=function(e){if("today"===e){var t=new Date;angular.isDate(s.date)?(e=new Date(s.date)).setFullYear(t.getFullYear(),t.getMonth(),t.getDate()):e=new Date(t.setHours(0,0,0,0))}s.dateSelection(e)},s.close=function(){s.isOpen=!1,u[0].focus()};var w=e(m)(s);m.remove(),h?n.find("body").append(w):u.after(w),s.$on("$destroy",(function(){w.remove(),u.unbind("keydown",_),n.unbind("click",b)}))}}}]).directive("datepickerPopupWrap",(function(){return{restrict:"EA",replace:!0,transclude:!0,templateUrl:"template/datepicker/popup.html",link:function(e,t){t.bind("click",(function(e){e.preventDefault(),e.stopPropagation()}))}}})),angular.module("ui.bootstrap.dropdown",["ui.bootstrap.position"]).constant("dropdownConfig",{openClass:"open"}).service("dropdownService",["$document","$rootScope",function(e,t){var n=null;this.open=function(t){n||(e.bind("click",r),e.bind("keydown",i)),n&&n!==t&&(n.isOpen=!1),n=t},this.close=function(t){n===t&&(n=null,e.unbind("click",r),e.unbind("keydown",i))};var r=function(e){if(n&&(!e||"disabled"!==n.getAutoClose())){var r=n.getToggleElement();if(!(e&&r&&r[0].contains(e.target))){var i=n.getElement();e&&"outsideClick"===n.getAutoClose()&&i&&i[0].contains(e.target)||(n.isOpen=!1,t.$$phase||n.$apply())}}},i=function(e){27===e.which&&(n.focusToggleElement(),r())}}]).controller("DropdownController",["$scope","$attrs","$parse","dropdownConfig","dropdownService","$animate","$position","$document",function(e,t,n,r,i,o,a,s){var u,c=this,l=e.$new(),f=r.openClass,d=angular.noop,p=t.onToggle?n(t.onToggle):angular.noop,h=!1;this.init=function(r){c.$element=r,t.isOpen&&(u=n(t.isOpen),d=u.assign,e.$watch(u,(function(e){l.isOpen=!!e}))),(h=angular.isDefined(t.dropdownAppendToBody))&&c.dropdownMenu&&(s.find("body").append(c.dropdownMenu),r.on("$destroy",(function(){c.dropdownMenu.remove()})))},this.toggle=function(e){return l.isOpen=arguments.length?!!e:!l.isOpen},this.isOpen=function(){return l.isOpen},l.getToggleElement=function(){return c.toggleElement},l.getAutoClose=function(){return t.autoClose||"always"},l.getElement=function(){return c.$element},l.focusToggleElement=function(){c.toggleElement&&c.toggleElement[0].focus()},l.$watch("isOpen",(function(t,n){if(h&&c.dropdownMenu){var r=a.positionElements(c.$element,c.dropdownMenu,"bottom-left",!0);c.dropdownMenu.css({top:r.top+"px",left:r.left+"px",display:t?"block":"none"})}o[t?"addClass":"removeClass"](c.$element,f),t?(l.focusToggleElement(),i.open(l)):i.close(l),d(e,t),angular.isDefined(t)&&t!==n&&p(e,{open:!!t})})),e.$on("$locationChangeSuccess",(function(){l.isOpen=!1})),e.$on("$destroy",(function(){l.$destroy()}))}]).directive("dropdown",(function(){return{controller:"DropdownController",link:function(e,t,n,r){r.init(t)}}})).directive("dropdownMenu",(function(){return{restrict:"AC",require:"?^dropdown",link:function(e,t,n,r){r&&(r.dropdownMenu=t)}}})).directive("dropdownToggle",(function(){return{require:"?^dropdown",link:function(e,t,n,r){if(r){r.toggleElement=t;var i=function(i){i.preventDefault(),t.hasClass("disabled")||n.disabled||e.$apply((function(){r.toggle()}))};t.bind("click",i),t.attr({"aria-haspopup":!0,"aria-expanded":!1}),e.$watch(r.isOpen,(function(e){t.attr("aria-expanded",!!e)})),e.$on("$destroy",(function(){t.unbind("click",i)}))}}}})),angular.module("ui.bootstrap.modal",[]).factory("$$stackedMap",(function(){return{createNew:function(){var e=[];return{add:function(t,n){e.push({key:t,value:n})},get:function(t){for(var n=0;n<e.length;n++)if(t==e[n].key)return e[n]},keys:function(){for(var t=[],n=0;n<e.length;n++)t.push(e[n].key);return t},top:function(){return e[e.length-1]},remove:function(t){for(var n=-1,r=0;r<e.length;r++)if(t==e[r].key){n=r;break}return e.splice(n,1)[0]},removeTop:function(){return e.splice(e.length-1,1)[0]},length:function(){return e.length}}}}})).directive("modalBackdrop",["$timeout",function(e){function t(t){t.animate=!1,e((function(){t.animate=!0}))}return{restrict:"EA",replace:!0,templateUrl:"template/modal/backdrop.html",compile:function(e,n){return e.addClass(n.backdropClass),t}}}]).directive("modalWindow",["$modalStack","$q",function(e,t){return{restrict:"EA",scope:{index:"@",animate:"="},replace:!0,transclude:!0,templateUrl:function(e,t){return t.templateUrl||"template/modal/window.html"},link:function(n,r,i){r.addClass(i.windowClass||""),n.size=i.size,n.close=function(t){var n=e.getTop();n&&n.value.backdrop&&"static"!=n.value.backdrop&&t.target===t.currentTarget&&(t.preventDefault(),t.stopPropagation(),e.dismiss(n.key,"backdrop click"))},n.$isRendered=!0;var o=t.defer();i.$observe("modalRender",(function(e){"true"==e&&o.resolve()})),o.promise.then((function(){n.animate=!0;var t=r[0].querySelectorAll("[autofocus]");t.length?t[0].focus():r[0].focus();var i=e.getTop();i&&e.modalRendered(i.key)}))}}}]).directive("modalAnimationClass",[function(){return{compile:function(e,t){t.modalAnimation&&e.addClass(t.modalAnimationClass)}}}]).directive("modalTransclude",(function(){return{link:function(e,t,n,r,i){i(e.$parent,(function(e){t.empty(),t.append(e)}))}}})).factory("$modalStack",["$animate","$timeout","$document","$compile","$rootScope","$$stackedMap",function(e,t,n,r,i,o){function a(){for(var e=-1,t=p.keys(),n=0;n<t.length;n++)p.get(t[n]).value.backdrop&&(e=n);return e}function s(e){var t=n.find("body").eq(0),r=p.get(e).value;p.remove(e),u(r.modalDomEl,r.modalScope,(function(){t.toggleClass(d,p.length()>0),function(){if(l&&-1==a()){u(l,f,(function(){null})),l=void 0,f=void 0}}()}))}function u(n,r,o){function a(){a.done||(a.done=!0,n.remove(),r.$destroy(),o&&o())}r.animate=!1,n.attr("modal-animation")&&e.enabled()?n.one("$animate:close",(function(){i.$evalAsync(a)})):t(a)}function c(e,t,n){return!e.value.modalScope.$broadcast("modal.closing",t,n).defaultPrevented}var l,f,d="modal-open",p=o.createNew(),h={};return i.$watch(a,(function(e){f&&(f.index=e)})),n.bind("keydown",(function(e){var t;27===e.which&&((t=p.top())&&t.value.keyboard&&(e.preventDefault(),i.$apply((function(){h.dismiss(t.key,"escape key press")}))))})),h.open=function(e,t){var o=n[0].activeElement;p.add(e,{deferred:t.deferred,renderDeferred:t.renderDeferred,modalScope:t.scope,backdrop:t.backdrop,keyboard:t.keyboard});var s=n.find("body").eq(0),u=a();if(u>=0&&!l){(f=i.$new(!0)).index=u;var c=angular.element('<div modal-backdrop="modal-backdrop"></div>');c.attr("backdrop-class",t.backdropClass),t.animation&&c.attr("modal-animation","true"),l=r(c)(f),s.append(l)}var h=angular.element('<div modal-window="modal-window"></div>');h.attr({"template-url":t.windowTemplateUrl,"window-class":t.windowClass,size:t.size,index:p.length()-1,animate:"animate"}).html(t.content),t.animation&&h.attr("modal-animation","true");var g=r(h)(t.scope);p.top().value.modalDomEl=g,p.top().value.modalOpener=o,s.append(g),s.addClass(d)},h.close=function(e,t){var n=p.get(e);return n&&c(n,t,!0)?(n.value.deferred.resolve(t),s(e),n.value.modalOpener.focus(),!0):!n},h.dismiss=function(e,t){var n=p.get(e);return n&&c(n,t,!1)?(n.value.deferred.reject(t),s(e),n.value.modalOpener.focus(),!0):!n},h.dismissAll=function(e){for(var t=this.getTop();t&&this.dismiss(t.key,e);)t=this.getTop()},h.getTop=function(){return p.top()},h.modalRendered=function(e){var t=p.get(e);t&&t.value.renderDeferred.resolve()},h}]).provider("$modal",(function(){var e={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$injector","$rootScope","$q","$templateRequest","$controller","$modalStack",function(t,n,r,i,o,a){function s(e){return e.template?r.when(e.template):i(angular.isFunction(e.templateUrl)?e.templateUrl():e.templateUrl)}function u(e){var n=[];return angular.forEach(e,(function(e){(angular.isFunction(e)||angular.isArray(e))&&n.push(r.when(t.invoke(e)))})),n}var c={open:function(t){var i=r.defer(),c=r.defer(),l=r.defer(),f={result:i.promise,opened:c.promise,rendered:l.promise,close:function(e){return a.close(f,e)},dismiss:function(e){return a.dismiss(f,e)}};if((t=angular.extend({},e.options,t)).resolve=t.resolve||{},!t.template&&!t.templateUrl)throw new Error("One of template or templateUrl options is required.");var d=r.all([s(t)].concat(u(t.resolve)));return d.then((function(e){var r=(t.scope||n).$new();r.$close=f.close,r.$dismiss=f.dismiss;var s,u={},c=1;t.controller&&(u.$scope=r,u.$modalInstance=f,angular.forEach(t.resolve,(function(t,n){u[n]=e[c++]})),s=o(t.controller,u),t.controllerAs&&(r[t.controllerAs]=s)),a.open(f,{scope:r,deferred:i,renderDeferred:l,content:e[0],animation:t.animation,backdrop:t.backdrop,keyboard:t.keyboard,backdropClass:t.backdropClass,windowClass:t.windowClass,windowTemplateUrl:t.windowTemplateUrl,size:t.size})}),(function(e){i.reject(e)})),d.then((function(){c.resolve(!0)}),(function(e){c.reject(e)})),f}};return c}]};return e})),angular.module("ui.bootstrap.pagination",[]).controller("PaginationController",["$scope","$attrs","$parse",function(e,t,n){var r=this,i={$setViewValue:angular.noop},o=t.numPages?n(t.numPages).assign:angular.noop;this.init=function(a,s){i=a,this.config=s,i.$render=function(){r.render()},t.itemsPerPage?e.$parent.$watch(n(t.itemsPerPage),(function(t){r.itemsPerPage=parseInt(t,10),e.totalPages=r.calculateTotalPages()})):this.itemsPerPage=s.itemsPerPage,e.$watch("totalItems",(function(){e.totalPages=r.calculateTotalPages()})),e.$watch("totalPages",(function(t){o(e.$parent,t),e.page>t?e.selectPage(t):i.$render()}))},this.calculateTotalPages=function(){var t=this.itemsPerPage<1?1:Math.ceil(e.totalItems/this.itemsPerPage);return Math.max(t||0,1)},this.render=function(){e.page=parseInt(i.$viewValue,10)||1},e.selectPage=function(t,n){e.page!==t&&t>0&&t<=e.totalPages&&(n&&n.target&&n.target.blur(),i.$setViewValue(t),i.$render())},e.getText=function(t){return e[t+"Text"]||r.config[t+"Text"]},e.noPrevious=function(){return 1===e.page},e.noNext=function(){return e.page===e.totalPages}}]).constant("paginationConfig",{itemsPerPage:10,boundaryLinks:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0}).directive("pagination",["$parse","paginationConfig",function(e,t){return{restrict:"EA",scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@"},require:["pagination","?ngModel"],controller:"PaginationController",templateUrl:"template/pagination/pagination.html",replace:!0,link:function(n,r,i,o){function a(e,t,n){return{number:e,text:t,active:n}}var s=o[0],u=o[1];if(u){var c=angular.isDefined(i.maxSize)?n.$parent.$eval(i.maxSize):t.maxSize,l=angular.isDefined(i.rotate)?n.$parent.$eval(i.rotate):t.rotate;n.boundaryLinks=angular.isDefined(i.boundaryLinks)?n.$parent.$eval(i.boundaryLinks):t.boundaryLinks,n.directionLinks=angular.isDefined(i.directionLinks)?n.$parent.$eval(i.directionLinks):t.directionLinks,s.init(u,t),i.maxSize&&n.$parent.$watch(e(i.maxSize),(function(e){c=parseInt(e,10),s.render()}));var f=s.render;s.render=function(){f(),n.page>0&&n.page<=n.totalPages&&(n.pages=function(e,t){var n=[],r=1,i=t,o=angular.isDefined(c)&&t>c;o&&(l?(i=(r=Math.max(e-Math.floor(c/2),1))+c-1)>t&&(r=(i=t)-c+1):(r=(Math.ceil(e/c)-1)*c+1,i=Math.min(r+c-1,t)));for(var s=r;i>=s;s++){var u=a(s,s,s===e);n.push(u)}if(o&&!l){if(r>1){var f=a(r-1,"...",!1);n.unshift(f)}if(t>i){var d=a(i+1,"...",!1);n.push(d)}}return n}(n.page,n.totalPages))}}}}}]).constant("pagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("pager",["pagerConfig",function(e){return{restrict:"EA",scope:{totalItems:"=",previousText:"@",nextText:"@"},require:["pager","?ngModel"],controller:"PaginationController",templateUrl:"template/pagination/pager.html",replace:!0,link:function(t,n,r,i){var o=i[0],a=i[1];a&&(t.align=angular.isDefined(r.align)?t.$parent.$eval(r.align):e.align,o.init(a,e))}}}]),angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).provider("$tooltip",(function(){var e={placement:"top",animation:!0,popupDelay:0,useContentExp:!1},t={mouseenter:"mouseleave",click:"click",focus:"blur"},n={};this.options=function(e){angular.extend(n,e)},this.setTriggers=function(e){angular.extend(t,e)},this.$get=["$window","$compile","$timeout","$document","$position","$interpolate",function(r,i,o,a,s,u){return function(r,c,l,f){function d(e){var n=e||f.trigger||l;return{show:n,hide:t[n]||n}}f=angular.extend({},e,n,f);var p=function(e){return e.replace(/[A-Z]/g,(function(e,t){return(t?"-":"")+e.toLowerCase()}))}(r),h=u.startSymbol(),g=u.endSymbol(),m="<div "+p+'-popup title="'+h+"title"+g+'" '+(f.useContentExp?'content-exp="contentExp()" ':'content="'+h+"content"+g+'" ')+'placement="'+h+"placement"+g+'" popup-class="'+h+"popupClass"+g+'" animation="animation" is-open="isOpen"origin-scope="origScope" ></div>';return{restrict:"EA",compile:function(){var e=i(m);return function(t,n,i){function u(){q.isOpen?p():l()}function l(){(!x||t.$eval(i[c+"Enable"]))&&(q.popupClass=i[c+"Class"],function(){var e=i[c+"Placement"];q.placement=angular.isDefined(e)?e:f.placement}(),function(){var e=i[c+"PopupDelay"],t=parseInt(e,10);q.popupDelay=isNaN(t)?f.popupDelay:t}(),q.popupDelay?_||(_=o(h,q.popupDelay,!1)).then((function(e){e()})):h()())}function p(){t.$apply((function(){g()}))}function h(){return _=null,b&&(o.cancel(b),b=null),(f.useContentExp?q.contentExp():q.content)?(v&&m(),y=q.$new(),v=e(y,(function(e){w?a.find("body").append(e):n.after(e)})),y.$watch((function(){o(S,0,!1)})),f.useContentExp&&y.$watch("contentExp()",(function(e){!e&&q.isOpen&&g()})),v.css({top:0,left:0,display:"block"}),q.$digest(),S(),q.isOpen=!0,q.$apply(),S):angular.noop}function g(){q.isOpen=!1,o.cancel(_),_=null,q.animation?b||(b=o(m,500)):m()}function m(){b=null,v&&(v.remove(),v=null),y&&(y.$destroy(),y=null)}var v,y,b,_,w=!!angular.isDefined(f.appendToBody)&&f.appendToBody,$=d(void 0),x=angular.isDefined(i[c+"Enable"]),q=t.$new(!0),S=function(){if(v){var e=s.positionElements(n,v,q.placement,w);e.top+="px",e.left+="px",v.css(e)}};q.origScope=t,q.isOpen=!1,q.contentExp=function(){return t.$eval(i[r])},f.useContentExp||i.$observe(r,(function(e){q.content=e,!e&&q.isOpen&&g()})),i.$observe("disabled",(function(e){e&&q.isOpen&&g()})),i.$observe(c+"Title",(function(e){q.title=e}));var E=function(){n.unbind($.show,l),n.unbind($.hide,p)};!function(){var e=i[c+"Trigger"];E(),($=d(e)).show===$.hide?n.bind($.show,u):(n.bind($.show,l),n.bind($.hide,p))}();var k=t.$eval(i[c+"Animation"]);q.animation=angular.isDefined(k)?!!k:f.animation;var C=t.$eval(i[c+"AppendToBody"]);(w=angular.isDefined(C)?C:w)&&t.$on("$locationChangeSuccess",(function(){q.isOpen&&g()})),t.$on("$destroy",(function(){o.cancel(b),o.cancel(_),E(),m(),q=null}))}}}}}]})).directive("tooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(e,t,n,r){return{link:function(i,o,a){var s,u,c,l=i.$eval(a.tooltipTemplateTranscludeScope),f=0,d=function(){u&&(u.remove(),u=null),s&&(s.$destroy(),s=null),c&&(e.leave(c).then((function(){u=null})),u=c,c=null)};i.$watch(t.parseAsResourceUrl(a.tooltipTemplateTransclude),(function(t){var a=++f;t?(r(t,!0).then((function(r){if(a===f){var i=l.$new(),u=n(r)(i,(function(t){d(),e.enter(t,o)}));c=u,(s=i).$emit("$includeContentLoaded",t)}}),(function(){a===f&&(d(),i.$emit("$includeContentError",t))})),i.$emit("$includeContentRequested",t)):d()})),i.$on("$destroy",d)}}}]).directive("tooltipClasses",(function(){return{restrict:"A",link:function(e,t,n){e.placement&&t.addClass(e.placement),e.popupClass&&t.addClass(e.popupClass),e.animation()&&t.addClass(n.tooltipAnimationClass)}}})).directive("tooltipPopup",(function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-popup.html"}})).directive("tooltip",["$tooltip",function(e){return e("tooltip","tooltip","mouseenter")}]).directive("tooltipTemplatePopup",(function(){return{restrict:"EA",replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"template/tooltip/tooltip-template-popup.html"}})).directive("tooltipTemplate",["$tooltip",function(e){return e("tooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("tooltipHtmlPopup",(function(){return{restrict:"EA",replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-popup.html"}})).directive("tooltipHtml",["$tooltip",function(e){return e("tooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]).directive("tooltipHtmlUnsafePopup",(function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-unsafe-popup.html"}})).value("tooltipHtmlUnsafeSuppressDeprecated",!1).directive("tooltipHtmlUnsafe",["$tooltip","tooltipHtmlUnsafeSuppressDeprecated","$log",function(e,t,n){return t||n.warn("tooltip-html-unsafe is now deprecated. Use tooltip-html or tooltip-template instead."),e("tooltipHtmlUnsafe","tooltip","mouseenter")}]),angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("popoverTemplatePopup",(function(){return{restrict:"EA",replace:!0,scope:{title:"@",contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"template/popover/popover-template.html"}})).directive("popoverTemplate",["$tooltip",function(e){return e("popoverTemplate","popover","click",{useContentExp:!0})}]).directive("popoverPopup",(function(){return{restrict:"EA",replace:!0,scope:{title:"@",content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover.html"}})).directive("popover",["$tooltip",function(e){return e("popover","popover","click")}]),angular.module("ui.bootstrap.progressbar",[]).constant("progressConfig",{animate:!0,max:100}).controller("ProgressController",["$scope","$attrs","progressConfig",function(e,t,n){var r=this,i=angular.isDefined(t.animate)?e.$parent.$eval(t.animate):n.animate;this.bars=[],e.max=angular.isDefined(e.max)?e.max:n.max,this.addBar=function(t,n){i||n.css({transition:"none"}),this.bars.push(t),t.$watch("value",(function(n){t.percent=+(100*n/e.max).toFixed(2)})),t.$on("$destroy",(function(){n=null,r.removeBar(t)}))},this.removeBar=function(e){this.bars.splice(this.bars.indexOf(e),1)}}]).directive("progress",(function(){return{restrict:"EA",replace:!0,transclude:!0,controller:"ProgressController",require:"progress",scope:{},templateUrl:"template/progressbar/progress.html"}})).directive("bar",(function(){return{restrict:"EA",replace:!0,transclude:!0,require:"^progress",scope:{value:"=",max:"=?",type:"@"},templateUrl:"template/progressbar/bar.html",link:function(e,t,n,r){r.addBar(e,t)}}})).directive("progressbar",(function(){return{restrict:"EA",replace:!0,transclude:!0,controller:"ProgressController",scope:{value:"=",max:"=?",type:"@"},templateUrl:"template/progressbar/progressbar.html",link:function(e,t,n,r){r.addBar(e,angular.element(t.children()[0]))}}})),angular.module("ui.bootstrap.rating",[]).constant("ratingConfig",{max:5,stateOn:null,stateOff:null}).controller("RatingController",["$scope","$attrs","ratingConfig",function(e,t,n){var r={$setViewValue:angular.noop};this.init=function(i){(r=i).$render=this.render,r.$formatters.push((function(e){return angular.isNumber(e)&&e<<0!==e&&(e=Math.round(e)),e})),this.stateOn=angular.isDefined(t.stateOn)?e.$parent.$eval(t.stateOn):n.stateOn,this.stateOff=angular.isDefined(t.stateOff)?e.$parent.$eval(t.stateOff):n.stateOff;var o=angular.isDefined(t.ratingStates)?e.$parent.$eval(t.ratingStates):new Array(angular.isDefined(t.max)?e.$parent.$eval(t.max):n.max);e.range=this.buildTemplateObjects(o)},this.buildTemplateObjects=function(e){for(var t=0,n=e.length;n>t;t++)e[t]=angular.extend({index:t},{stateOn:this.stateOn,stateOff:this.stateOff},e[t]);return e},e.rate=function(t){!e.readonly&&t>=0&&t<=e.range.length&&(r.$setViewValue(t),r.$render())},e.enter=function(t){e.readonly||(e.value=t),e.onHover({value:t})},e.reset=function(){e.value=r.$viewValue,e.onLeave()},e.onKeydown=function(t){/(37|38|39|40)/.test(t.which)&&(t.preventDefault(),t.stopPropagation(),e.rate(e.value+(38===t.which||39===t.which?1:-1)))},this.render=function(){e.value=r.$viewValue}}]).directive("rating",(function(){return{restrict:"EA",require:["rating","ngModel"],scope:{readonly:"=?",onHover:"&",onLeave:"&"},controller:"RatingController",templateUrl:"template/rating/rating.html",replace:!0,link:function(e,t,n,r){var i=r[0],o=r[1];i.init(o)}}})),angular.module("ui.bootstrap.tabs",[]).controller("TabsetController",["$scope",function(e){var t,n=this,r=n.tabs=e.tabs=[];n.select=function(e){angular.forEach(r,(function(t){t.active&&t!==e&&(t.active=!1,t.onDeselect())})),e.active=!0,e.onSelect()},n.addTab=function(e){r.push(e),1===r.length&&!1!==e.active?e.active=!0:e.active?n.select(e):e.active=!1},n.removeTab=function(e){var i=r.indexOf(e);if(e.active&&r.length>1&&!t){var o=i==r.length-1?i-1:i+1;n.select(r[o])}r.splice(i,1)},e.$on("$destroy",(function(){t=!0}))}]).directive("tabset",(function(){return{restrict:"EA",transclude:!0,replace:!0,scope:{type:"@"},controller:"TabsetController",templateUrl:"template/tabs/tabset.html",link:function(e,t,n){e.vertical=!!angular.isDefined(n.vertical)&&e.$parent.$eval(n.vertical),e.justified=!!angular.isDefined(n.justified)&&e.$parent.$eval(n.justified)}}})).directive("tab",["$parse","$log",function(e,t){return{require:"^tabset",restrict:"EA",replace:!0,templateUrl:"template/tabs/tab.html",transclude:!0,scope:{active:"=?",heading:"@",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},compile:function(n,r,i){return function(n,r,o,a){n.$watch("active",(function(e){e&&a.select(n)})),n.disabled=!1,o.disable&&n.$parent.$watch(e(o.disable),(function(e){n.disabled=!!e})),o.disabled&&(t.warn('Use of "disabled" attribute has been deprecated, please use "disable"'),n.$parent.$watch(e(o.disabled),(function(e){n.disabled=!!e}))),n.select=function(){n.disabled||(n.active=!0)},a.addTab(n),n.$on("$destroy",(function(){a.removeTab(n)})),n.$transcludeFn=i}}}}]).directive("tabHeadingTransclude",[function(){return{restrict:"A",require:"^tab",link:function(e,t){e.$watch("headingElement",(function(e){e&&(t.html(""),t.append(e))}))}}}]).directive("tabContentTransclude",(function(){return{restrict:"A",require:"^tabset",link:function(e,t,n){var r=e.$eval(n.tabContentTransclude);r.$transcludeFn(r.$parent,(function(e){angular.forEach(e,(function(e){!function(e){return e.tagName&&(e.hasAttribute("tab-heading")||e.hasAttribute("data-tab-heading")||"tab-heading"===e.tagName.toLowerCase()||"data-tab-heading"===e.tagName.toLowerCase())}(e)?t.append(e):r.headingElement=e}))}))}}})),angular.module("ui.bootstrap.timepicker",[]).constant("timepickerConfig",{hourStep:1,minuteStep:1,showMeridian:!0,meridians:null,readonlyInput:!1,mousewheel:!0,arrowkeys:!0}).controller("TimepickerController",["$scope","$attrs","$parse","$log","$locale","timepickerConfig",function(e,t,n,r,i,o){function a(){var t=parseInt(e.hours,10);return(e.showMeridian?t>0&&13>t:t>=0&&24>t)?(e.showMeridian&&(12===t&&(t=0),e.meridian===g[1]&&(t+=12)),t):void 0}function s(){var t=parseInt(e.minutes,10);return t>=0&&60>t?t:void 0}function u(e){return angular.isDefined(e)&&e.toString().length<2?"0"+e:e.toString()}function c(e){l(),h.$setViewValue(new Date(p)),f(e)}function l(){h.$setValidity("time",!0),e.invalidHours=!1,e.invalidMinutes=!1}function f(t){var n=p.getHours(),r=p.getMinutes();e.showMeridian&&(n=0===n||12===n?12:n%12),e.hours="h"===t?n:u(n),"m"!==t&&(e.minutes=u(r)),e.meridian=p.getHours()<12?g[0]:g[1]}function d(e){var t=new Date(p.getTime()+6e4*e);p.setHours(t.getHours(),t.getMinutes()),c()}var p=new Date,h={$setViewValue:angular.noop},g=angular.isDefined(t.meridians)?e.$parent.$eval(t.meridians):o.meridians||i.DATETIME_FORMATS.AMPMS;this.init=function(n,r){(h=n).$render=this.render,h.$formatters.unshift((function(e){return e?new Date(e):null}));var i=r.eq(0),a=r.eq(1);(angular.isDefined(t.mousewheel)?e.$parent.$eval(t.mousewheel):o.mousewheel)&&this.setupMousewheelEvents(i,a),(angular.isDefined(t.arrowkeys)?e.$parent.$eval(t.arrowkeys):o.arrowkeys)&&this.setupArrowkeyEvents(i,a),e.readonlyInput=angular.isDefined(t.readonlyInput)?e.$parent.$eval(t.readonlyInput):o.readonlyInput,this.setupInputEvents(i,a)};var m=o.hourStep;t.hourStep&&e.$parent.$watch(n(t.hourStep),(function(e){m=parseInt(e,10)}));var v=o.minuteStep;t.minuteStep&&e.$parent.$watch(n(t.minuteStep),(function(e){v=parseInt(e,10)})),e.showMeridian=o.showMeridian,t.showMeridian&&e.$parent.$watch(n(t.showMeridian),(function(t){if(e.showMeridian=!!t,h.$error.time){var n=a(),r=s();angular.isDefined(n)&&angular.isDefined(r)&&(p.setHours(n),c())}else f()})),this.setupMousewheelEvents=function(t,n){var r=function(e){e.originalEvent&&(e=e.originalEvent);var t=e.wheelDelta?e.wheelDelta:-e.deltaY;return e.detail||t>0};t.bind("mousewheel wheel",(function(t){e.$apply(r(t)?e.incrementHours():e.decrementHours()),t.preventDefault()})),n.bind("mousewheel wheel",(function(t){e.$apply(r(t)?e.incrementMinutes():e.decrementMinutes()),t.preventDefault()}))},this.setupArrowkeyEvents=function(t,n){t.bind("keydown",(function(t){38===t.which?(t.preventDefault(),e.incrementHours(),e.$apply()):40===t.which&&(t.preventDefault(),e.decrementHours(),e.$apply())})),n.bind("keydown",(function(t){38===t.which?(t.preventDefault(),e.incrementMinutes(),e.$apply()):40===t.which&&(t.preventDefault(),e.decrementMinutes(),e.$apply())}))},this.setupInputEvents=function(t,n){if(e.readonlyInput)return e.updateHours=angular.noop,void(e.updateMinutes=angular.noop);var r=function(t,n){h.$setViewValue(null),h.$setValidity("time",!1),angular.isDefined(t)&&(e.invalidHours=t),angular.isDefined(n)&&(e.invalidMinutes=n)};e.updateHours=function(){var e=a();angular.isDefined(e)?(p.setHours(e),c("h")):r(!0)},t.bind("blur",(function(){!e.invalidHours&&e.hours<10&&e.$apply((function(){e.hours=u(e.hours)}))})),e.updateMinutes=function(){var e=s();angular.isDefined(e)?(p.setMinutes(e),c("m")):r(void 0,!0)},n.bind("blur",(function(){!e.invalidMinutes&&e.minutes<10&&e.$apply((function(){e.minutes=u(e.minutes)}))}))},this.render=function(){var e=h.$viewValue;isNaN(e)?(h.$setValidity("time",!1),r.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):(e&&(p=e),l(),f())},e.incrementHours=function(){d(60*m)},e.decrementHours=function(){d(60*-m)},e.incrementMinutes=function(){d(v)},e.decrementMinutes=function(){d(-v)},e.toggleMeridian=function(){d(720*(p.getHours()<12?1:-1))}}]).directive("timepicker",(function(){return{restrict:"EA",require:["timepicker","?^ngModel"],controller:"TimepickerController",replace:!0,scope:{},templateUrl:"template/timepicker/timepicker.html",link:function(e,t,n,r){var i=r[0],o=r[1];o&&i.init(o,t.find("input"))}}})),angular.module("ui.bootstrap.transition",[]).value("$transitionSuppressDeprecated",!1).factory("$transition",["$q","$timeout","$rootScope","$log","$transitionSuppressDeprecated",function(e,t,n,r,i){function o(e){for(var t in e)if(void 0!==s.style[t])return e[t]}i||r.warn("$transition is now deprecated. Use $animate from ngAnimate instead.");var a=function(r,i,o){o=o||{};var s=e.defer(),u=a[o.animation?"animationEndEventName":"transitionEndEventName"],c=function(){n.$apply((function(){r.unbind(u,c),s.resolve(r)}))};return u&&r.bind(u,c),t((function(){angular.isString(i)?r.addClass(i):angular.isFunction(i)?i(r):angular.isObject(i)&&r.css(i),u||s.resolve(r)})),s.promise.cancel=function(){u&&r.unbind(u,c),s.reject("Transition cancelled")},s.promise},s=document.createElement("trans");return a.transitionEndEventName=o({WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}),a.animationEndEventName=o({WebkitTransition:"webkitAnimationEnd",MozTransition:"animationend",OTransition:"oAnimationEnd",transition:"animationend"}),a}]),angular.module("ui.bootstrap.typeahead",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).factory("typeaheadParser",["$parse",function(e){var t=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(n){var r=n.match(t);if(!r)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+n+'".');return{itemName:r[3],source:e(r[4]),viewMapper:e(r[2]||r[1]),modelMapper:e(r[1])}}}}]).directive("typeahead",["$compile","$parse","$q","$timeout","$document","$position","typeaheadParser",function(e,t,n,r,i,o,a){var s=[9,13,27,38,40];return{require:"ngModel",link:function(u,c,l,f){var d,p=u.$eval(l.typeaheadMinLength)||1,h=u.$eval(l.typeaheadWaitMs)||0,g=!1!==u.$eval(l.typeaheadEditable),m=t(l.typeaheadLoading).assign||angular.noop,v=t(l.typeaheadOnSelect),y=l.typeaheadInputFormatter?t(l.typeaheadInputFormatter):void 0,b=!!l.typeaheadAppendToBody&&u.$eval(l.typeaheadAppendToBody),_=!1!==u.$eval(l.typeaheadFocusFirst),w=t(l.ngModel).assign,$=a.parse(l.typeahead),x=u.$new();u.$on("$destroy",(function(){x.$destroy()}));var q="typeahead-"+x.$id+"-"+Math.floor(1e4*Math.random());c.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":q});var S=angular.element("<div typeahead-popup></div>");S.attr({id:q,matches:"matches",active:"activeIdx",select:"select(activeIdx)",query:"query",position:"position"}),angular.isDefined(l.typeaheadTemplateUrl)&&S.attr("template-url",l.typeaheadTemplateUrl);var E=function(){x.matches=[],x.activeIdx=-1,c.attr("aria-expanded",!1)},k=function(e){return q+"-option-"+e};x.$watch("activeIdx",(function(e){0>e?c.removeAttr("aria-activedescendant"):c.attr("aria-activedescendant",k(e))}));var C=function(e){var t={$viewValue:e};m(u,!0),n.when($.source(u,t)).then((function(n){var r=e===f.$viewValue;if(r&&d)if(n&&n.length>0){x.activeIdx=_?0:-1,x.matches.length=0;for(var i=0;i<n.length;i++)t[$.itemName]=n[i],x.matches.push({id:k(i),label:$.viewMapper(x,t),model:n[i]});x.query=e,x.position=b?o.offset(c):o.position(c),x.position.top=x.position.top+c.prop("offsetHeight"),c.attr("aria-expanded",!0)}else E();r&&m(u,!1)}),(function(){E(),m(u,!1)}))};E(),x.query=void 0;var O,T=function(){O&&r.cancel(O)};f.$parsers.unshift((function(e){return d=!0,e&&e.length>=p?h>0?(T(),function(e){O=r((function(){C(e)}),h)}(e)):C(e):(m(u,!1),T(),E()),g?e:e?void f.$setValidity("editable",!1):(f.$setValidity("editable",!0),e)})),f.$formatters.push((function(e){var t,n={};return g||f.$setValidity("editable",!0),y?(n.$model=e,y(u,n)):(n[$.itemName]=e,t=$.viewMapper(u,n),n[$.itemName]=void 0,t!==$.viewMapper(u,n)?t:e)})),x.select=function(e){var t,n,i={};i[$.itemName]=n=x.matches[e].model,t=$.modelMapper(u,i),w(u,t),f.$setValidity("editable",!0),f.$setValidity("parse",!0),v(u,{$item:n,$model:t,$label:$.viewMapper(u,i)}),E(),r((function(){c[0].focus()}),0,!1)},c.bind("keydown",(function(e){0!==x.matches.length&&-1!==s.indexOf(e.which)&&(-1!=x.activeIdx||13!==e.which&&9!==e.which)&&(e.preventDefault(),40===e.which?(x.activeIdx=(x.activeIdx+1)%x.matches.length,x.$digest()):38===e.which?(x.activeIdx=(x.activeIdx>0?x.activeIdx:x.matches.length)-1,x.$digest()):13===e.which||9===e.which?x.$apply((function(){x.select(x.activeIdx)})):27===e.which&&(e.stopPropagation(),E(),x.$digest()))})),c.bind("blur",(function(){d=!1}));var D=function(e){c[0]!==e.target&&(E(),x.$digest())};i.bind("click",D),u.$on("$destroy",(function(){i.unbind("click",D),b&&A.remove(),S.remove()}));var A=e(S)(x);b?i.find("body").append(A):c.after(A)}}}]).directive("typeaheadPopup",(function(){return{restrict:"EA",scope:{matches:"=",query:"=",active:"=",position:"=",select:"&"},replace:!0,templateUrl:"template/typeahead/typeahead-popup.html",link:function(e,t,n){e.templateUrl=n.templateUrl,e.isOpen=function(){return e.matches.length>0},e.isActive=function(t){return e.active==t},e.selectActive=function(t){e.active=t},e.selectMatch=function(t){e.select({activeIdx:t})}}}})).directive("typeaheadMatch",["$templateRequest","$compile","$parse",function(e,t,n){return{restrict:"EA",scope:{index:"=",match:"=",query:"="},link:function(r,i,o){var a=n(o.templateUrl)(r.$parent)||"template/typeahead/typeahead-match.html";e(a).then((function(e){t(e.trim())(r,(function(e){i.replaceWith(e)}))}))}}}]).filter("typeaheadHighlight",(function(){return function(e,t){return t?(""+e).replace(new RegExp(function(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}(t),"gi"),"<strong>$&</strong>"):e}})),angular.module("template/accordion/accordion-group.html",[]).run(["$templateCache",function(e){e.put("template/accordion/accordion-group.html",'<div class="panel panel-default">\n <div class="panel-heading">\n <h4 class="panel-title">\n <a href="javascript:void(0)" tabindex="0" class="accordion-toggle" ng-click="toggleOpen()" accordion-transclude="heading"><span ng-class="{\'text-muted\': isDisabled}">{{heading}}</span></a>\n </h4>\n </div>\n <div class="panel-collapse collapse" collapse="!isOpen">\n\t <div class="panel-body" ng-transclude></div>\n </div>\n</div>\n')}]),angular.module("template/accordion/accordion.html",[]).run(["$templateCache",function(e){e.put("template/accordion/accordion.html",'<div class="panel-group" ng-transclude></div>')}]),angular.module("template/alert/alert.html",[]).run(["$templateCache",function(e){e.put("template/alert/alert.html",'<div class="alert" ng-class="[\'alert-\' + (type || \'warning\'), closeable ? \'alert-dismissable\' : null]" role="alert">\n <button ng-show="closeable" type="button" class="close" ng-click="close()">\n <span aria-hidden="true">&times;</span>\n <span class="sr-only">Close</span>\n </button>\n <div ng-transclude></div>\n</div>\n')}]),angular.module("template/carousel/carousel.html",[]).run(["$templateCache",function(e){e.put("template/carousel/carousel.html",'<div ng-mouseenter="pause()" ng-mouseleave="play()" class="carousel" ng-swipe-right="prev()" ng-swipe-left="next()">\n <ol class="carousel-indicators" ng-show="slides.length > 1">\n <li ng-repeat="slide in slides | orderBy:\'index\' track by $index" ng-class="{active: isActive(slide)}" ng-click="select(slide)"></li>\n </ol>\n <div class="carousel-inner" ng-transclude></div>\n <a class="left carousel-control" ng-click="prev()" ng-show="slides.length > 1"><span class="glyphicon glyphicon-chevron-left"></span></a>\n <a class="right carousel-control" ng-click="next()" ng-show="slides.length > 1"><span class="glyphicon glyphicon-chevron-right"></span></a>\n</div>\n')}]),angular.module("template/carousel/slide.html",[]).run(["$templateCache",function(e){e.put("template/carousel/slide.html",'<div ng-class="{\n \'active\': active\n }" class="item text-center" ng-transclude></div>\n')}]),angular.module("template/datepicker/datepicker.html",[]).run(["$templateCache",function(e){e.put("template/datepicker/datepicker.html",'<div ng-switch="datepickerMode" role="application" ng-keydown="keydown($event)">\n <daypicker ng-switch-when="day" tabindex="0"></daypicker>\n <monthpicker ng-switch-when="month" tabindex="0"></monthpicker>\n <yearpicker ng-switch-when="year" tabindex="0"></yearpicker>\n</div>')}]),angular.module("template/datepicker/day.html",[]).run(["$templateCache",function(e){e.put("template/datepicker/day.html",'<table role="grid" aria-labelledby="{{uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n <thead>\n <tr>\n <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n <th colspan="{{5 + showWeeks}}"><button id="{{uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n </tr>\n <tr>\n <th ng-show="showWeeks" class="text-center"></th>\n <th ng-repeat="label in labels track by $index" class="text-center"><small aria-label="{{label.full}}">{{label.abbr}}</small></th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat="row in rows track by $index">\n <td ng-show="showWeeks" class="text-center h6"><em>{{ weekNumbers[$index] }}</em></td>\n <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{dt.uid}}" aria-disabled="{{!!dt.disabled}}" ng-class="dt.customClass">\n <button type="button" style="width:100%;" class="btn btn-default btn-sm" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="{\'text-muted\': dt.secondary, \'text-info\': dt.current}">{{dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("template/datepicker/month.html",[]).run(["$templateCache",function(e){e.put("template/datepicker/month.html",'<table role="grid" aria-labelledby="{{uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n <thead>\n <tr>\n <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n <th><button id="{{uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat="row in rows track by $index">\n <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{dt.uid}}" aria-disabled="{{!!dt.disabled}}">\n <button type="button" style="width:100%;" class="btn btn-default" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="{\'text-info\': dt.current}">{{dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("template/datepicker/popup.html",[]).run(["$templateCache",function(e){e.put("template/datepicker/popup.html",'<ul class="dropdown-menu" ng-style="{display: (isOpen && \'block\') || \'none\', top: position.top+\'px\', left: position.left+\'px\'}" ng-keydown="keydown($event)">\n\t<li ng-transclude></li>\n\t<li ng-if="showButtonBar" style="padding:10px 9px 2px">\n\t\t<span class="btn-group pull-left">\n\t\t\t<button type="button" class="btn btn-sm btn-info" ng-click="select(\'today\')">{{ getText(\'current\') }}</button>\n\t\t\t<button type="button" class="btn btn-sm btn-danger" ng-click="select(null)">{{ getText(\'clear\') }}</button>\n\t\t</span>\n\t\t<button type="button" class="btn btn-sm btn-success pull-right" ng-click="close()">{{ getText(\'close\') }}</button>\n\t</li>\n</ul>\n')}]),angular.module("template/datepicker/year.html",[]).run(["$templateCache",function(e){e.put("template/datepicker/year.html",'<table role="grid" aria-labelledby="{{uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n <thead>\n <tr>\n <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n <th colspan="3"><button id="{{uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat="row in rows track by $index">\n <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{dt.uid}}" aria-disabled="{{!!dt.disabled}}">\n <button type="button" style="width:100%;" class="btn btn-default" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="{\'text-info\': dt.current}">{{dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("template/modal/backdrop.html",[]).run(["$templateCache",function(e){e.put("template/modal/backdrop.html",'<div class="modal-backdrop"\n modal-animation-class="fade"\n ng-class="{in: animate}"\n ng-style="{\'z-index\': 1040 + (index && 1 || 0) + index*10}"\n></div>\n')}]),angular.module("template/modal/window.html",[]).run(["$templateCache",function(e){e.put("template/modal/window.html",'<div modal-render="{{$isRendered}}" tabindex="-1" role="dialog" class="modal"\n modal-animation-class="fade"\n\tng-class="{in: animate}" ng-style="{\'z-index\': 1050 + index*10, display: \'block\'}" ng-click="close($event)">\n <div class="modal-dialog" ng-class="size ? \'modal-\' + size : \'\'"><div class="modal-content" modal-transclude></div></div>\n</div>\n')}]),angular.module("template/pagination/pager.html",[]).run(["$templateCache",function(e){e.put("template/pagination/pager.html",'<ul class="pager">\n <li ng-class="{disabled: noPrevious(), previous: align}"><a href ng-click="selectPage(page - 1, $event)">{{getText(\'previous\')}}</a></li>\n <li ng-class="{disabled: noNext(), next: align}"><a href ng-click="selectPage(page + 1, $event)">{{getText(\'next\')}}</a></li>\n</ul>')}]),angular.module("template/pagination/pagination.html",[]).run(["$templateCache",function(e){e.put("template/pagination/pagination.html",'<ul class="pagination">\n <li ng-if="boundaryLinks" ng-class="{disabled: noPrevious()}"><a href ng-click="selectPage(1, $event)">{{getText(\'first\')}}</a></li>\n <li ng-if="directionLinks" ng-class="{disabled: noPrevious()}"><a href ng-click="selectPage(page - 1, $event)">{{getText(\'previous\')}}</a></li>\n <li ng-repeat="page in pages track by $index" ng-class="{active: page.active}"><a href ng-click="selectPage(page.number, $event)">{{page.text}}</a></li>\n <li ng-if="directionLinks" ng-class="{disabled: noNext()}"><a href ng-click="selectPage(page + 1, $event)">{{getText(\'next\')}}</a></li>\n <li ng-if="boundaryLinks" ng-class="{disabled: noNext()}"><a href ng-click="selectPage(totalPages, $event)">{{getText(\'last\')}}</a></li>\n</ul>')}]),angular.module("template/tooltip/tooltip-html-popup.html",[]).run(["$templateCache",function(e){e.put("template/tooltip/tooltip-html-popup.html",'<div class="tooltip"\n tooltip-animation-class="fade"\n tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner" ng-bind-html="contentExp()"></div>\n</div>\n')}]),angular.module("template/tooltip/tooltip-html-unsafe-popup.html",[]).run(["$templateCache",function(e){e.put("template/tooltip/tooltip-html-unsafe-popup.html",'<div class="tooltip"\n tooltip-animation-class="fade"\n tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner" bind-html-unsafe="content"></div>\n</div>\n')}]),angular.module("template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(e){e.put("template/tooltip/tooltip-popup.html",'<div class="tooltip"\n tooltip-animation-class="fade"\n tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner" ng-bind="content"></div>\n</div>\n')}]),angular.module("template/tooltip/tooltip-template-popup.html",[]).run(["$templateCache",function(e){e.put("template/tooltip/tooltip-template-popup.html",'<div class="tooltip"\n tooltip-animation-class="fade"\n tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner"\n tooltip-template-transclude="contentExp()"\n tooltip-template-transclude-scope="originScope()"></div>\n</div>\n')}]),angular.module("template/popover/popover-template.html",[]).run(["$templateCache",function(e){e.put("template/popover/popover-template.html",'<div class="popover"\n tooltip-animation-class="fade"\n tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="arrow"></div>\n\n <div class="popover-inner">\n <h3 class="popover-title" ng-bind="title" ng-if="title"></h3>\n <div class="popover-content"\n tooltip-template-transclude="contentExp()"\n tooltip-template-transclude-scope="originScope()"></div>\n </div>\n</div>\n')}]),angular.module("template/popover/popover-window.html",[]).run(["$templateCache",function(e){e.put("template/popover/popover-window.html",'<div class="popover {{placement}}" ng-class="{ in: isOpen, fade: animation }">\n <div class="arrow"></div>\n\n <div class="popover-inner">\n <h3 class="popover-title" ng-bind="title" ng-show="title"></h3>\n <div class="popover-content" tooltip-template-transclude></div>\n </div>\n</div>\n')}]),angular.module("template/popover/popover.html",[]).run(["$templateCache",function(e){e.put("template/popover/popover.html",'<div class="popover"\n tooltip-animation-class="fade"\n tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="arrow"></div>\n\n <div class="popover-inner">\n <h3 class="popover-title" ng-bind="title" ng-if="title"></h3>\n <div class="popover-content" ng-bind="content"></div>\n </div>\n</div>\n')}]),angular.module("template/progressbar/bar.html",[]).run(["$templateCache",function(e){e.put("template/progressbar/bar.html",'<div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" ng-transclude></div>\n')}]),angular.module("template/progressbar/progress.html",[]).run(["$templateCache",function(e){e.put("template/progressbar/progress.html",'<div class="progress" ng-transclude></div>')}]),angular.module("template/progressbar/progressbar.html",[]).run(["$templateCache",function(e){e.put("template/progressbar/progressbar.html",'<div class="progress">\n <div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" ng-transclude></div>\n</div>\n')}]),angular.module("template/rating/rating.html",[]).run(["$templateCache",function(e){e.put("template/rating/rating.html",'<span ng-mouseleave="reset()" ng-keydown="onKeydown($event)" tabindex="0" role="slider" aria-valuemin="0" aria-valuemax="{{range.length}}" aria-valuenow="{{value}}">\n <i ng-repeat="r in range track by $index" ng-mouseenter="enter($index + 1)" ng-click="rate($index + 1)" class="glyphicon" ng-class="$index < value && (r.stateOn || \'glyphicon-star\') || (r.stateOff || \'glyphicon-star-empty\')">\n <span class="sr-only">({{ $index < value ? \'*\' : \' \' }})</span>\n </i>\n</span>')}]),angular.module("template/tabs/tab.html",[]).run(["$templateCache",function(e){e.put("template/tabs/tab.html",'<li ng-class="{active: active, disabled: disabled}">\n <a href ng-click="select()" tab-heading-transclude>{{heading}}</a>\n</li>\n')}]),angular.module("template/tabs/tabset.html",[]).run(["$templateCache",function(e){e.put("template/tabs/tabset.html",'<div>\n <ul class="nav nav-{{type || \'tabs\'}}" ng-class="{\'nav-stacked\': vertical, \'nav-justified\': justified}" ng-transclude></ul>\n <div class="tab-content">\n <div class="tab-pane" \n ng-repeat="tab in tabs" \n ng-class="{active: tab.active}"\n tab-content-transclude="tab">\n </div>\n </div>\n</div>\n')}]),angular.module("template/timepicker/timepicker.html",[]).run(["$templateCache",function(e){e.put("template/timepicker/timepicker.html",'<table>\n\t<tbody>\n\t\t<tr class="text-center">\n\t\t\t<td><a ng-click="incrementHours()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n\t\t\t<td>&nbsp;</td>\n\t\t\t<td><a ng-click="incrementMinutes()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n\t\t\t<td ng-show="showMeridian"></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td class="form-group" ng-class="{\'has-error\': invalidHours}">\n\t\t\t\t<input style="width:50px;" type="text" ng-model="hours" ng-change="updateHours()" class="form-control text-center" ng-readonly="readonlyInput" maxlength="2">\n\t\t\t</td>\n\t\t\t<td>:</td>\n\t\t\t<td class="form-group" ng-class="{\'has-error\': invalidMinutes}">\n\t\t\t\t<input style="width:50px;" type="text" ng-model="minutes" ng-change="updateMinutes()" class="form-control text-center" ng-readonly="readonlyInput" maxlength="2">\n\t\t\t</td>\n\t\t\t<td ng-show="showMeridian"><button type="button" class="btn btn-default text-center" ng-click="toggleMeridian()">{{meridian}}</button></td>\n\t\t</tr>\n\t\t<tr class="text-center">\n\t\t\t<td><a ng-click="decrementHours()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n\t\t\t<td>&nbsp;</td>\n\t\t\t<td><a ng-click="decrementMinutes()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n\t\t\t<td ng-show="showMeridian"></td>\n\t\t</tr>\n\t</tbody>\n</table>\n')}]),angular.module("template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(e){e.put("template/typeahead/typeahead-match.html",'<a tabindex="-1" bind-html-unsafe="match.label | typeaheadHighlight:query"></a>')}]),angular.module("template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(e){e.put("template/typeahead/typeahead-popup.html",'<ul class="dropdown-menu" ng-show="isOpen()" ng-style="{top: position.top+\'px\', left: position.left+\'px\'}" style="display: block;" role="listbox" aria-hidden="{{!isOpen()}}">\n <li ng-repeat="match in matches track by $index" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)" ng-click="selectMatch($index)" role="option" id="{{match.id}}">\n <div typeahead-match index="$index" match="match" query="query" template-url="templateUrl"></div>\n </li>\n</ul>\n')}]),!angular.$$csp()&&angular.element(document).find("head").prepend('<style type="text/css">.ng-animate.item:not(.left):not(.right){-webkit-transition:0s ease-in-out left;transition:0s ease-in-out left}</style>')},function(e,t){angular.module("ng-context-menu",[]).factory("ContextMenuService",(function(){return{element:null,menuElement:null,container:null}})).directive("contextMenu",["$document","ContextMenuService",function(e,t){return{restrict:"A",scope:{callback:"&contextMenu",disabled:"&contextMenuDisabled"},link:function(n,r,i){var o=!1;function a(e){e.removeClass("open"),o=!1}function s(e){!n.disabled()&&o&&27===e.keyCode&&n.$apply((function(){a(t.menuElement)}))}function u(e){n.disabled()||!o||2===e.button&&e.target===t.element||n.$apply((function(){a(t.menuElement)}))}r.bind("contextmenu",(function(r){n.disabled()||(null!==t.menuElement&&a(t.menuElement),t.menuElement=angular.element(document.getElementById(i.target)),void 0!==i.contextMenuContainer&&(t.container=angular.element(i.contextMenuContainer)),t.element=r.target,r.preventDefault(),r.stopPropagation(),n.$apply((function(){n.callback({$event:r}),function(t,n,r){n.addClass("open"),r&&r.append(n);var i=e[0].documentElement,a=(window.pageXOffset||i.scrollLeft)-(i.clientLeft||0),s=(window.pageYOffset||i.scrollTop)-(i.clientTop||0),u=n[0].scrollHeight,c=i.clientHeight+s,l=u+t.pageY,f=Math.max(t.pageY-s,0);l>c&&(f-=l-c),n.css("top",f+"px"),n.css("left",Math.max(t.pageX-a,0)+"px"),o=!0}(r,t.menuElement,t.container)})))})),e.bind("keyup",s),e.bind("click",u),e.bind("contextmenu",u),n.$on("$destroy",(function(){e.unbind("keyup",s),e.unbind("click",u),e.unbind("contextmenu",u)}))}}}])},function(e,t){!function(e,t,n){"use strict";e.map(["localStorage","sessionStorage"],(function(r){var i={cookiePrefix:"fallback:"+r+":",cookieOptions:{path:"/",domain:n.domain,expires:"localStorage"===r?{expires:365}:void 0}};try{e.support[r]=r in t&&null!==t[r]}catch(t){e.support[r]=!1}e[r]=function(o,a){var s=e.extend({},i,e[r].options);return this.getItem=function(n){var i=function(n){return JSON.parse(e.support[r]?t[r].getItem(n):e.cookie(s.cookiePrefix+n))};if("string"==typeof n)return i(n);for(var o=[],a=n.length;a--;)o[a]=i(n[a]);return o},this.setItem=function(n,i){return i=JSON.stringify(i),e.support[r]?t[r].setItem(n,i):e.cookie(s.cookiePrefix+n,i,s.cookieOptions)},this.removeItem=function(n){return e.support[r]?t[r].removeItem(n):e.cookie(s.cookiePrefix+n,null,e.extend(s.cookieOptions,{expires:-1}))},this.clear=function(){if(e.support[r])return t[r].clear();var i=new RegExp("^"+s.cookiePrefix,""),o=e.extend(s.cookieOptions,{expires:-1});n.cookie&&""!==n.cookie&&e.map(n.cookie.split(";"),(function(t){i.test(t=e.trim(t))&&e.cookie(t.substr(0,t.indexOf("=")),null,o)}))},void 0!==o?void 0!==a?null===a?this.removeItem(o):this.setItem(o,a):this.getItem(o):this},e[r].options=i}))}(jQuery,window,document)},function(e,t){angular.module("ivpusic.cookie",["ipCookie"]),angular.module("ipCookie",["ng"]).factory("ipCookie",["$document",function(e){"use strict";return function(){function t(t,n,r){var i,o,a,s,u,c,l,f,d;if(r=r||{},void 0!==n)return n="object"==typeof n?JSON.stringify(n):String(n),"number"==typeof r.expires&&(d=r.expires,r.expires=new Date,-1===d?r.expires=new Date("Thu, 01 Jan 1970 00:00:00 GMT"):void 0!==r.expirationUnit?"hours"===r.expirationUnit?r.expires.setHours(r.expires.getHours()+d):"minutes"===r.expirationUnit?r.expires.setMinutes(r.expires.getMinutes()+d):"seconds"===r.expirationUnit?r.expires.setSeconds(r.expires.getSeconds()+d):r.expires.setDate(r.expires.getDate()+d):r.expires.setDate(r.expires.getDate()+d)),e[0].cookie=[encodeURIComponent(t),"=",encodeURIComponent(n),r.expires?"; expires="+r.expires.toUTCString():"",r.path?"; path="+r.path:"",r.domain?"; domain="+r.domain:"",r.secure?"; secure":""].join("");for(o=[],(f=e[0].cookie)&&(o=f.split("; ")),i={},l=!1,a=0;a<o.length;++a)if(o[a]&&(u=(s=o[a]).indexOf("="),c=s.substring(0,u),n=decodeURIComponent(s.substring(u+1)),void 0===t||t===c)){try{i[c]=JSON.parse(n)}catch(e){i[c]=n}if(t===c)return i[c];l=!0}return l&&void 0===t?i:void 0}return t.remove=function(e,n){var r=void 0!==t(e);return r&&(n||(n={}),n.expires=-1,t(e,"",n)),r},t}()}])},function(e,t){!function(){"use strict";var e={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,COMMAND:91,MAP:{91:"COMMAND",8:"BACKSPACE",9:"TAB",13:"ENTER",16:"SHIFT",17:"CTRL",18:"ALT",19:"PAUSEBREAK",20:"CAPSLOCK",27:"ESC",32:"SPACE",33:"PAGE_UP",34:"PAGE_DOWN",35:"END",36:"HOME",37:"LEFT",38:"UP",39:"RIGHT",40:"DOWN",43:"+",44:"PRINTSCREEN",45:"INSERT",46:"DELETE",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NUMLOCK",145:"SCROLLLOCK",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},isControl:function(t){switch(t.which){case e.COMMAND:case e.SHIFT:case e.CTRL:case e.ALT:return!0}return!!(t.metaKey||t.ctrlKey||t.altKey)},isFunctionKey:function(e){return(e=e.which?e.which:e)>=112&&e<=123},isVerticalMovement:function(t){return~[e.UP,e.DOWN].indexOf(t)},isHorizontalMovement:function(t){return~[e.LEFT,e.RIGHT,e.BACKSPACE,e.DELETE].indexOf(t)},toSeparator:function(t){var n={ENTER:"\n",TAB:"\t",SPACE:" "}[t];return n||(e[t]?void 0:t)}};function t(e){return angular.isUndefined(e)||null===e}void 0===angular.element.prototype.querySelectorAll&&(angular.element.prototype.querySelectorAll=function(e){return angular.element(this[0].querySelectorAll(e))}),void 0===angular.element.prototype.closest&&(angular.element.prototype.closest=function(e){for(var t=this[0],n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;t;){if(n.bind(t)(e))return t;t=t.parentElement}return!1});var n=0,r=angular.module("ui.select",[]).constant("uiSelectConfig",{theme:"bootstrap",searchEnabled:!0,sortable:!1,placeholder:"",refreshDelay:1e3,closeOnSelect:!0,skipFocusser:!1,dropdownPosition:"auto",removeSelected:!0,resetSearchInput:!0,generateId:function(){return n++},appendToBody:!1,spinnerEnabled:!1,spinnerClass:"glyphicon glyphicon-refresh ui-select-spin",backspaceReset:!0}).service("uiSelectMinErr",(function(){var e=angular.$$minErr("ui.select");return function(){var t=e.apply(this,arguments),n=t.message.replace(new RegExp("\nhttp://errors.angularjs.org/.*"),"");return new Error(n)}})).directive("uisTranscludeAppend",(function(){return{link:function(e,t,n,r,i){i(e,(function(e){t.append(e)}))}}})).filter("highlight",(function(){return function(e,t){return t&&e?(""+e).replace(new RegExp((""+t).replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),"gi"),'<span class="ui-select-highlight">$&</span>'):e}})).factory("uisOffset",["$document","$window",function(e,t){return function(n){var r=n[0].getBoundingClientRect();return{width:r.width||n.prop("offsetWidth"),height:r.height||n.prop("offsetHeight"),top:r.top+(t.pageYOffset||e[0].documentElement.scrollTop),left:r.left+(t.pageXOffset||e[0].documentElement.scrollLeft)}}}]);r.factory("$$uisDebounce",["$timeout",function(e){return function(t,n){var r;return function(){var i=this,o=Array.prototype.slice.call(arguments);r&&e.cancel(r),r=e((function(){t.apply(i,o)}),n)}}}]),r.directive("uiSelectChoices",["uiSelectConfig","uisRepeatParser","uiSelectMinErr","$compile","$window",function(e,t,n,r,i){return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(t){return t.addClass("ui-select-choices"),(t.parent().attr("theme")||e.theme)+"/choices.tpl.html"},compile:function(r,o){if(!o.repeat)throw n("repeat","Expected 'repeat' expression.");var a=o.groupBy,s=o.groupFilter;if(a){var u=r.querySelectorAll(".ui-select-choices-group");if(1!==u.length)throw n("rows","Expected 1 .ui-select-choices-group but got '{0}'.",u.length);u.attr("ng-repeat",t.getGroupNgRepeatExpression())}var c=t.parse(o.repeat),l=r.querySelectorAll(".ui-select-choices-row");if(1!==l.length)throw n("rows","Expected 1 .ui-select-choices-row but got '{0}'.",l.length);l.attr("ng-repeat",c.repeatExpression(a)).attr("ng-if","$select.open");var f=r.querySelectorAll(".ui-select-choices-row-inner");if(1!==f.length)throw n("rows","Expected 1 .ui-select-choices-row-inner but got '{0}'.",f.length);return f.attr("uis-transclude-append",""),(i.document.addEventListener?l:f).attr("ng-click","$select.select("+c.itemName+",$select.skipFocusser,$event)"),function(t,n,i,o){o.parseRepeatAttr(i.repeat,a,s),o.disableChoiceExpression=i.uiDisableChoice,o.onHighlightCallback=i.onHighlight,o.minimumInputLength=parseInt(i.minimumInputLength)||0,o.dropdownPosition=i.position?i.position.toLowerCase():e.dropdownPosition,t.$watch("$select.search",(function(e){e&&!o.open&&o.multiple&&o.activate(!1,!0),o.activeIndex=o.tagging.isActivated?-1:0,!i.minimumInputLength||o.search.length>=i.minimumInputLength?o.refresh(i.refresh):o.items=[]})),i.$observe("refreshDelay",(function(){var n=t.$eval(i.refreshDelay);o.refreshDelay=void 0!==n?n:e.refreshDelay})),t.$watch("$select.open",(function(e){e?(r.attr("role","listbox"),o.refresh(i.refresh)):n.removeAttr("role")}))}}}}]),r.controller("uiSelectCtrl",["$scope","$element","$timeout","$filter","$$uisDebounce","uisRepeatParser","uiSelectMinErr","uiSelectConfig","$parse","$injector","$window",function(n,r,i,o,a,s,u,c,l,f,d){var p,h=this;if(h.placeholder=c.placeholder,h.searchEnabled=c.searchEnabled,h.sortable=c.sortable,h.refreshDelay=c.refreshDelay,h.paste=c.paste,h.resetSearchInput=c.resetSearchInput,h.refreshing=!1,h.spinnerEnabled=c.spinnerEnabled,h.spinnerClass=c.spinnerClass,h.removeSelected=c.removeSelected,h.closeOnSelect=!0,h.skipFocusser=!1,h.search="",h.activeIndex=0,h.items=[],h.open=!1,h.focus=!1,h.disabled=!1,h.selected=void 0,h.dropdownPosition="auto",h.focusser=void 0,h.multiple=void 0,h.disableChoiceExpression=void 0,h.tagging={isActivated:!1,fct:void 0},h.taggingTokens={isActivated:!1,tokens:void 0},h.lockChoiceExpression=void 0,h.clickTriggeredSelect=!1,h.$filter=o,h.$element=r,h.$animate=function(){try{return f.get("$animate")}catch(e){return null}}(),h.searchInput=r.querySelectorAll("input.ui-select-search"),1!==h.searchInput.length)throw u("searchInput","Expected 1 input.ui-select-search but got '{0}'.",h.searchInput.length);function g(){h.resetSearchInput&&(h.search="",h.selected&&h.items.length&&!h.multiple&&(h.activeIndex=function(e,t,n){if(e.findIndex)return e.findIndex(t,n);for(var r,i=Object(e),o=i.length>>>0,a=0;a<o;a++)if(r=i[a],t.call(n,r,a,i))return a;return-1}(h.items,(function(e){return angular.equals(this,e)}),h.selected)))}h.isEmpty=function(){return t(h.selected)||""===h.selected||h.multiple&&0===h.selected.length},h.activate=function(e,t){if(h.disabled||h.open)h.open&&!h.searchEnabled&&h.close();else{t||g(),n.$broadcast("uis:activate"),h.open=!0,h.activeIndex=h.activeIndex>=h.items.length?0:h.activeIndex,-1===h.activeIndex&&!1!==h.taggingLabel&&(h.activeIndex=0);var o=r.querySelectorAll(".ui-select-choices-content"),a=r.querySelectorAll(".ui-select-search");if(h.$animate&&h.$animate.on&&h.$animate.enabled(o[0])){var s=function(t,n){"start"===n&&0===h.items.length?(h.$animate.off("removeClass",a[0],s),i((function(){h.focusSearchInput(e)}))):"close"===n&&(h.$animate.off("enter",o[0],s),i((function(){h.focusSearchInput(e)})))};h.items.length>0?h.$animate.on("enter",o[0],s):h.$animate.on("removeClass",a[0],s)}else i((function(){h.focusSearchInput(e),!h.tagging.isActivated&&h.items.length>1&&w()}))}},h.focusSearchInput=function(e){h.search=e||h.search,h.searchInput[0].focus()},h.findGroupByName=function(e){return h.groups&&h.groups.filter((function(t){return t.name===e}))[0]},h.parseRepeatAttr=function(e,t,r){h.setItemsFn=t?function(e){var i=n.$eval(t);if(h.groups=[],angular.forEach(e,(function(e){var t=angular.isFunction(i)?i(e):e[i],n=h.findGroupByName(t);n?n.items.push(e):h.groups.push({name:t,items:[e]})})),r){var o=n.$eval(r);angular.isFunction(o)?h.groups=o(h.groups):angular.isArray(o)&&(h.groups=function(e,t){var n,r,i=[];for(n=0;n<t.length;n++)for(r=0;r<e.length;r++)e[r].name==[t[n]]&&i.push(e[r]);return i}(h.groups,o))}h.items=[],h.groups.forEach((function(e){h.items=h.items.concat(e.items)}))}:function(e){h.items=e||[]},h.parserResult=s.parse(e),h.isGrouped=!!t,h.itemProperty=h.parserResult.itemName;var i=h.parserResult.source,o=function(){var e=i(n);n.$uisSource=Object.keys(e).map((function(t){var n={};return n[h.parserResult.keyName]=t,n.value=e[t],n}))};h.parserResult.keyName&&(o(),h.parserResult.source=l("$uisSource"+h.parserResult.filters),n.$watch(i,(function(e,t){e!==t&&o()}),!0)),h.refreshItems=function(e){e=e||h.parserResult.source(n);var t=h.selected;if(h.isEmpty()||angular.isArray(t)&&!t.length||!h.multiple||!h.removeSelected)h.setItemsFn(e);else if(null!=e){var r=e.filter((function(e){return angular.isArray(t)?t.every((function(t){return!angular.equals(e,t)})):!angular.equals(e,t)}));h.setItemsFn(r)}"auto"!==h.dropdownPosition&&"up"!==h.dropdownPosition||n.calculateDropdownPos(),n.$broadcast("uis:refresh")},n.$watchCollection(h.parserResult.source,(function(e){if(null==e)h.items=[];else{if(!angular.isArray(e))throw u("items","Expected an array but got '{0}'.",e);h.refreshItems(e),angular.isDefined(h.ngModel.$modelValue)&&(h.ngModel.$modelValue=null)}}))},h.refresh=function(e){void 0!==e&&(p&&i.cancel(p),p=i((function(){if(n.$select.search.length>=n.$select.minimumInputLength){var t=n.$eval(e);t&&angular.isFunction(t.then)&&!h.refreshing&&(h.refreshing=!0,t.finally((function(){h.refreshing=!1})))}}),h.refreshDelay))},h.isActive=function(e){if(!h.open)return!1;var t=h.items.indexOf(e[h.itemProperty]),n=t==h.activeIndex;return!(!n||t<0)&&(n&&!angular.isUndefined(h.onHighlightCallback)&&e.$eval(h.onHighlightCallback),n)};var m=function(e){return h.selected&&angular.isArray(h.selected)&&h.selected.filter((function(t){return angular.equals(t,e)})).length>0},v=[];function y(e){return v.indexOf(e)>-1}h.isDisabled=function(e){if(h.open){var t=e[h.itemProperty],n=!1;if(h.items.indexOf(t)>=0&&(angular.isDefined(h.disableChoiceExpression)||h.multiple)){if(t.isTag)return!1;h.multiple&&(n=m(t)),!n&&angular.isDefined(h.disableChoiceExpression)&&(n=!!e.$eval(h.disableChoiceExpression)),function(e,t){var n=v.indexOf(e);t&&-1===n&&v.push(e),!t&&n>-1&&v.splice(n,1)}(t,n)}return n}},h.select=function(e,r,i){if(t(e)||!y(e)){if(!h.items&&!h.search&&!h.tagging.isActivated)return;if(!e||!y(e)){if(h.clickTriggeredSelect=!1,i&&("click"===i.type||"touchend"===i.type)&&e&&(h.clickTriggeredSelect=!0),h.tagging.isActivated&&!1===h.clickTriggeredSelect){if(!1===h.taggingLabel)if(h.activeIndex<0){if(void 0===e&&(e=void 0!==h.tagging.fct?h.tagging.fct(h.search):h.search),!e||angular.equals(h.items[0],e))return}else e=h.items[h.activeIndex];else if(0===h.activeIndex){if(void 0===e)return;if(void 0!==h.tagging.fct&&"string"==typeof e){if(!(e=h.tagging.fct(e)))return}else"string"==typeof e&&(e=e.replace(h.taggingLabel,"").trim())}if(m(e))return void h.close(r)}g(),n.$broadcast("uis:select",e),h.closeOnSelect&&h.close(r)}}},h.close=function(e){h.open&&(h.ngModel&&h.ngModel.$setTouched&&h.ngModel.$setTouched(),h.open=!1,g(),n.$broadcast("uis:close",e))},h.setFocus=function(){h.focus||h.focusInput[0].focus()},h.clear=function(e){h.select(null),e.stopPropagation(),i((function(){h.focusser[0].focus()}),0,!1)},h.toggle=function(e){h.open?(h.close(),e.preventDefault(),e.stopPropagation()):h.activate()},h.isLocked=function(){return!1},n.$watch((function(){return angular.isDefined(h.lockChoiceExpression)&&""!==h.lockChoiceExpression}),(function(e){if(!e)return;var t=[];h.isLocked=function(e,n){var r=!1,i=h.selected[n];return i&&(e?function(e,n){var r=t.indexOf(e);n&&-1===r&&t.push(e),!n&&r>-1&&t.splice(r,1)}(i,r=!!e.$eval(h.lockChoiceExpression)):r=function(e){return t.indexOf(e)>-1}(i)),r}}));var b=null,_=!1;function w(){var e=r.querySelectorAll(".ui-select-choices-content"),t=e.querySelectorAll(".ui-select-choices-row");if(t.length<1)throw u("choices","Expected multiple .ui-select-choices-row but got '{0}'.",t.length);if(!(h.activeIndex<0)){var n=t[h.activeIndex],i=n.offsetTop+n.clientHeight-e[0].scrollTop,o=e[0].offsetHeight;i>o?e[0].scrollTop+=i-o:i<n.clientHeight&&(h.isGrouped&&0===h.activeIndex?e[0].scrollTop=0:e[0].scrollTop-=n.clientHeight-i)}}h.sizeSearchInput=function(){var e=h.searchInput[0],t=h.$element[0],r=function(){return t.clientWidth*!!e.offsetParent},o=function(t){if(0===t)return!1;var n=t-e.offsetLeft;return n<50&&(n=t),h.searchInput.css("width",n+"px"),!0};h.searchInput.css("width","10px"),i((function(){null!==b||o(r())||(b=n.$watch((function(){_||(_=!0,n.$$postDigest((function(){_=!1,o(r())&&(b(),b=null)})))}),angular.noop))}))},h.searchInput.on("keydown",(function(t){var r=t.which;~[e.ENTER,e.ESC].indexOf(r)&&(t.preventDefault(),t.stopPropagation()),n.$apply((function(){var n=!1;if((h.items.length>0||h.tagging.isActivated)&&(function(t){var n=!0;switch(t){case e.DOWN:if(!h.open&&h.multiple)h.activate(!1,!0);else if(h.activeIndex<h.items.length-1)for(var r=++h.activeIndex;y(h.items[r])&&r<h.items.length;)h.activeIndex=++r;break;case e.UP:var i=0===h.search.length&&h.tagging.isActivated?-1:0;if(!h.open&&h.multiple)h.activate(!1,!0);else if(h.activeIndex>i)for(var o=--h.activeIndex;y(h.items[o])&&o>i;)h.activeIndex=--o;break;case e.TAB:h.multiple&&!h.open||h.select(h.items[h.activeIndex],!0);break;case e.ENTER:h.open&&(h.tagging.isActivated||h.activeIndex>=0)?h.select(h.items[h.activeIndex],h.skipFocusser):h.activate(!1,!0);break;case e.ESC:h.close();break;default:n=!1}return n}(r)||h.searchEnabled||(t.preventDefault(),t.stopPropagation()),h.taggingTokens.isActivated)){for(var o=0;o<h.taggingTokens.tokens.length;o++)h.taggingTokens.tokens[o]===e.MAP[t.keyCode]&&h.search.length>0&&(n=!0);n&&i((function(){h.searchInput.triggerHandler("tagged");var n=h.search.replace(e.MAP[t.keyCode],"").trim();h.tagging.fct&&(n=h.tagging.fct(n)),n&&h.select(n,!0)}))}})),e.isVerticalMovement(r)&&h.items.length>0&&w(),r!==e.ENTER&&r!==e.ESC||(t.preventDefault(),t.stopPropagation())})),h.searchInput.on("paste",(function(t){var n;if(n=window.clipboardData&&window.clipboardData.getData?window.clipboardData.getData("Text"):(t.originalEvent||t).clipboardData.getData("text/plain"),(n=h.search+n)&&n.length>0)if(h.taggingTokens.isActivated){for(var r=[],i=0;i<h.taggingTokens.tokens.length;i++){var o=e.toSeparator(h.taggingTokens.tokens[i])||h.taggingTokens.tokens[i];if(n.indexOf(o)>-1){r=n.split(o);break}}0===r.length&&(r=[n]);var a=h.search;angular.forEach(r,(function(e){var t=h.tagging.fct?h.tagging.fct(e):e;t&&h.select(t,!0)})),h.search=a||"",t.preventDefault(),t.stopPropagation()}else h.paste&&(h.paste(n),h.search="",t.preventDefault(),t.stopPropagation())})),h.searchInput.on("tagged",(function(){i((function(){g()}))}));var $=a((function(){h.sizeSearchInput()}),50);angular.element(d).bind("resize",$),n.$on("$destroy",(function(){h.searchInput.off("keyup keydown tagged blur paste"),angular.element(d).off("resize",$)})),n.$watch("$select.activeIndex",(function(e){e&&r.find("input").attr("aria-activedescendant","ui-select-choices-row-"+h.generatedId+"-"+e)})),n.$watch("$select.open",(function(e){e||r.find("input").removeAttr("aria-activedescendant")}))}]),r.directive("uiSelect",["$document","uiSelectConfig","uiSelectMinErr","uisOffset","$compile","$parse","$timeout",function(e,t,n,r,i,o,a){return{restrict:"EA",templateUrl:function(e,n){return(n.theme||t.theme)+(angular.isDefined(n.multiple)?"/select-multiple.tpl.html":"/select.tpl.html")},replace:!0,transclude:!0,require:["uiSelect","^ngModel"],scope:!0,controller:"uiSelectCtrl",controllerAs:"$select",compile:function(i,s){var u=/{(.*)}\s*{(.*)}/.exec(s.ngClass);if(u){var c="{"+u[1]+", "+u[2]+"}";s.ngClass=c,i.attr("ng-class",c)}return angular.isDefined(s.multiple)?i.append("<ui-select-multiple/>").removeAttr("multiple"):i.append("<ui-select-single/>"),s.inputId&&(i.querySelectorAll("input.ui-select-search")[0].id=s.inputId),function(i,s,u,c,l){var f=c[0],d=c[1];function p(e){if(f.open){if(!(window.jQuery?window.jQuery.contains(s[0],e.target):s[0].contains(e.target))&&!f.clickTriggeredSelect){var t;if(f.skipFocusser)t=!0;else{var n=angular.element(e.target).controller("uiSelect");(t=n&&n!==f)||(t=~["input","button","textarea","select"].indexOf(e.target.tagName.toLowerCase()))}f.close(t),i.$digest()}f.clickTriggeredSelect=!1}}f.generatedId=t.generateId(),f.baseTitle=u.title||"Select box",f.focusserTitle=f.baseTitle+" focus",f.focusserId="focusser-"+f.generatedId,f.closeOnSelect=angular.isDefined(u.closeOnSelect)?o(u.closeOnSelect)():t.closeOnSelect,i.$watch("skipFocusser",(function(){var e=i.$eval(u.skipFocusser);f.skipFocusser=void 0!==e?e:t.skipFocusser})),f.onSelectCallback=o(u.onSelect),f.onRemoveCallback=o(u.onRemove),f.ngModel=d,f.choiceGrouped=function(e){return f.isGrouped&&e&&e.name},u.tabindex&&u.$observe("tabindex",(function(e){f.focusInput.attr("tabindex",e),s.removeAttr("tabindex")})),i.$watch((function(){return i.$eval(u.searchEnabled)}),(function(e){f.searchEnabled=void 0!==e?e:t.searchEnabled})),i.$watch("sortable",(function(){var e=i.$eval(u.sortable);f.sortable=void 0!==e?e:t.sortable})),u.$observe("backspaceReset",(function(){var e=i.$eval(u.backspaceReset);f.backspaceReset=void 0===e||e})),u.$observe("limit",(function(){f.limit=angular.isDefined(u.limit)?parseInt(u.limit,10):void 0})),i.$watch("removeSelected",(function(){var e=i.$eval(u.removeSelected);f.removeSelected=void 0!==e?e:t.removeSelected})),u.$observe("disabled",(function(){f.disabled=void 0!==u.disabled&&u.disabled})),u.$observe("resetSearchInput",(function(){var e=i.$eval(u.resetSearchInput);f.resetSearchInput=void 0===e||e})),u.$observe("paste",(function(){f.paste=i.$eval(u.paste)})),u.$observe("tagging",(function(){if(void 0!==u.tagging){var e=i.$eval(u.tagging);f.tagging={isActivated:!0,fct:!0!==e?e:void 0}}else f.tagging={isActivated:!1,fct:void 0}})),u.$observe("taggingLabel",(function(){void 0!==u.tagging&&("false"===u.taggingLabel?f.taggingLabel=!1:f.taggingLabel=void 0!==u.taggingLabel?u.taggingLabel:"(new)")})),u.$observe("taggingTokens",(function(){if(void 0!==u.tagging){var e=void 0!==u.taggingTokens?u.taggingTokens.split("|"):[",","ENTER"];f.taggingTokens={isActivated:!0,tokens:e}}})),u.$observe("spinnerEnabled",(function(){var e=i.$eval(u.spinnerEnabled);f.spinnerEnabled=void 0!==e?e:t.spinnerEnabled})),u.$observe("spinnerClass",(function(){var e=u.spinnerClass;f.spinnerClass=void 0!==e?u.spinnerClass:t.spinnerClass})),angular.isDefined(u.autofocus)&&a((function(){f.setFocus()})),angular.isDefined(u.focusOn)&&i.$on(u.focusOn,(function(){a((function(){f.setFocus()}))})),e.on("click",p),i.$on("$destroy",(function(){e.off("click",p)})),l(i,(function(e){var t=angular.element("<div>").append(e),r=t.querySelectorAll(".ui-select-match");if(r.removeAttr("ui-select-match"),r.removeAttr("data-ui-select-match"),1!==r.length)throw n("transcluded","Expected 1 .ui-select-match but got '{0}'.",r.length);s.querySelectorAll(".ui-select-match").replaceWith(r);var i=t.querySelectorAll(".ui-select-choices");if(i.removeAttr("ui-select-choices"),i.removeAttr("data-ui-select-choices"),1!==i.length)throw n("transcluded","Expected 1 .ui-select-choices but got '{0}'.",i.length);s.querySelectorAll(".ui-select-choices").replaceWith(i);var o=t.querySelectorAll(".ui-select-no-choice");o.removeAttr("ui-select-no-choice"),o.removeAttr("data-ui-select-no-choice"),1==o.length&&s.querySelectorAll(".ui-select-no-choice").replaceWith(o)}));var h=i.$eval(u.appendToBody);(void 0!==h?h:t.appendToBody)&&(i.$watch("$select.open",(function(t){var n;t?(n=r(s),(g=angular.element('<div class="ui-select-placeholder"></div>'))[0].style.width=n.width+"px",g[0].style.height=n.height+"px",s.after(g),m=s[0].style.width,e.find("body").append(s),s[0].style.position="absolute",s[0].style.left=n.left+"px",s[0].style.top=n.top+"px",s[0].style.width=n.width+"px"):v()})),i.$on("$destroy",(function(){v()})));var g=null,m="";function v(){null!==g&&(g.replaceWith(s),g=null,s[0].style.position="",s[0].style.left="",s[0].style.top="",s[0].style.width=m,f.setFocus())}var y=null;i.$watch("$select.open",(function(){"auto"!==f.dropdownPosition&&"up"!==f.dropdownPosition||i.calculateDropdownPos()}));var b=function(e,t){e=e||r(s),t=t||r(y),y[0].style.position="absolute",y[0].style.top=-1*t.height+"px",s.addClass("direction-up")},_=function(){a((function(){if("up"===f.dropdownPosition)b();else{s.removeClass("direction-up");var t=r(s),n=r(y),i=e[0].documentElement.scrollTop||e[0].body.scrollTop;t.top+t.height+n.height>i+e[0].documentElement.clientHeight?b(t,n):function(e,t){s.removeClass("direction-up"),e=e||r(s),t=t||r(y),y[0].style.position="",y[0].style.top=""}(t,n)}y[0].style.opacity=1}))},w=!1;i.calculateDropdownPos=function(){if(f.open){if(0===(y=angular.element(s).querySelectorAll(".ui-select-dropdown")).length)return;if(""!==f.search||w||(y[0].style.opacity=0,w=!0),!r(y).height&&f.$animate&&f.$animate.on&&f.$animate.enabled(y)){var e=!0;f.$animate.on("enter",y,(function(t,n){"close"===n&&e&&(_(),e=!1)}))}else _()}else{if(null===y||0===y.length)return;y[0].style.opacity=0,y[0].style.position="",y[0].style.top="",s.removeClass("direction-up")}}}}}}]),r.directive("uiSelectMatch",["uiSelectConfig",function(e){return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(n){n.addClass("ui-select-match");var r=n.parent();return(t(r,"theme")||e.theme)+(angular.isDefined(t(r,"multiple"))?"/match-multiple.tpl.html":"/match.tpl.html")},link:function(t,n,r,i){function o(e){i.allowClear=!!angular.isDefined(e)&&(""===e||"true"===e.toLowerCase())}i.lockChoiceExpression=r.uiLockChoice,r.$observe("placeholder",(function(t){i.placeholder=void 0!==t?t:e.placeholder})),r.$observe("allowClear",o),o(r.allowClear),i.multiple&&i.sizeSearchInput()}};function t(e,t){return e[0].hasAttribute(t)?e.attr(t):e[0].hasAttribute("data-"+t)?e.attr("data-"+t):e[0].hasAttribute("x-"+t)?e.attr("x-"+t):void 0}}]),r.directive("uiSelectMultiple",["uiSelectMinErr","$timeout",function(n,r){return{restrict:"EA",require:["^uiSelect","^ngModel"],controller:["$scope","$timeout",function(e,t){var n,r=this,i=e.$select;angular.isUndefined(i.selected)&&(i.selected=[]),e.$evalAsync((function(){n=e.ngModel})),r.activeMatchIndex=-1,r.updateModel=function(){n.$setViewValue(Date.now()),r.refreshComponent()},r.refreshComponent=function(){i.refreshItems&&i.refreshItems(),i.sizeSearchInput&&i.sizeSearchInput()},r.removeChoice=function(n){if(i.isLocked(null,n))return!1;var o=i.selected[n],a={};return a[i.parserResult.itemName]=o,i.selected.splice(n,1),r.activeMatchIndex=-1,i.sizeSearchInput(),t((function(){i.onRemoveCallback(e,{$item:o,$model:i.parserResult.modelMapper(e,a)})})),r.updateModel(),!0},r.getPlaceholder=function(){if(!i.selected||!i.selected.length)return i.placeholder}}],controllerAs:"$selectMultiple",link:function(i,o,a,s){var u=s[0],c=i.ngModel=s[1],l=i.$selectMultiple;function f(e){return void 0!==e&&void 0!==u.search&&e.filter((function(e){return void 0!==u.search.toUpperCase()&&void 0!==e&&e.toUpperCase()===u.search.toUpperCase()})).length>0}function d(e,t){var n=-1;if(angular.isArray(e))for(var r=angular.copy(e),i=0;i<r.length;i++)if(void 0===u.tagging.fct)r[i]+" "+u.taggingLabel===t&&(n=i);else{var o=r[i];angular.isObject(o)&&(o.isTag=!0),angular.equals(o,t)&&(n=i)}return n}u.multiple=!0,u.focusInput=u.searchInput,c.$isEmpty=function(e){return!e||0===e.length},c.$parsers.unshift((function(){for(var e,t={},n=[],r=u.selected.length-1;r>=0;r--)(t={})[u.parserResult.itemName]=u.selected[r],e=u.parserResult.modelMapper(i,t),n.unshift(e);return n})),c.$formatters.unshift((function(e){var t,n=u.parserResult&&u.parserResult.source(i,{$select:{search:""}}),r={};if(!n)return e;var o=[],a=function(e,n){if(e&&e.length){for(var a=e.length-1;a>=0;a--){if(r[u.parserResult.itemName]=e[a],t=u.parserResult.modelMapper(i,r),u.parserResult.trackByExp){var s=/(\w*)\./.exec(u.parserResult.trackByExp),c=/\.([^\s]+)/.exec(u.parserResult.trackByExp);if(s&&s.length>0&&s[1]==u.parserResult.itemName&&c&&c.length>0&&t[c[1]]==n[c[1]])return o.unshift(e[a]),!0}if(angular.equals(t,n))return o.unshift(e[a]),!0}return!1}};if(!e)return o;for(var s=e.length-1;s>=0;s--)a(u.selected,e[s])||a(n,e[s])||o.unshift(e[s]);return o})),i.$watchCollection((function(){return c.$modelValue}),(function(e,t){t!=e&&(angular.isDefined(c.$modelValue)&&(c.$modelValue=null),l.refreshComponent())})),c.$render=function(){if(!angular.isArray(c.$viewValue)){if(!t(c.$viewValue))throw n("multiarr","Expected model value to be array but got '{0}'",c.$viewValue);c.$viewValue=[]}u.selected=c.$viewValue,l.refreshComponent(),i.$evalAsync()},i.$on("uis:select",(function(e,t){if(!(u.selected.length>=u.limit)){u.selected.push(t);var n={};n[u.parserResult.itemName]=t,r((function(){u.onSelectCallback(i,{$item:t,$model:u.parserResult.modelMapper(i,n)})})),l.updateModel()}})),i.$on("uis:activate",(function(){l.activeMatchIndex=-1})),i.$watch("$select.disabled",(function(e,t){t&&!e&&u.sizeSearchInput()})),u.searchInput.on("keydown",(function(t){var n=t.which;i.$apply((function(){var r=!1;e.isHorizontalMovement(n)&&(r=function(t){var n,r=(f=u.searchInput[0],angular.isNumber(f.selectionStart)?f.selectionStart:f.value.length),i=u.selected.length,o=i-1,a=l.activeMatchIndex,s=l.activeMatchIndex+1,c=l.activeMatchIndex-1;var f;if(r>0||u.search.length&&t==e.RIGHT)return!1;function d(){switch(t){case e.LEFT:return~l.activeMatchIndex?c:o;case e.RIGHT:return~l.activeMatchIndex&&a!==o?s:(u.activate(),!1);case e.BACKSPACE:return~l.activeMatchIndex?l.removeChoice(a)?c:a:o;case e.DELETE:return!!~l.activeMatchIndex&&(l.removeChoice(l.activeMatchIndex),a)}}u.close(),n=d(),u.selected.length&&!1!==n?l.activeMatchIndex=Math.min(o,Math.max(0,n)):l.activeMatchIndex=-1;return!0}(n)),r&&n!=e.TAB&&(t.preventDefault(),t.stopPropagation())}))})),u.searchInput.on("keyup",(function(t){if(e.isVerticalMovement(t.which)||i.$evalAsync((function(){u.activeIndex=!1===u.taggingLabel?-1:0})),u.tagging.isActivated&&u.search.length>0){if(t.which===e.TAB||e.isControl(t)||e.isFunctionKey(t)||t.which===e.ESC||e.isVerticalMovement(t.which))return;if(u.activeIndex=!1===u.taggingLabel?-1:0,!1===u.taggingLabel)return;var n,r,o,a=angular.copy(u.items),s=angular.copy(u.items),c=!1,l=-1;if(void 0!==u.tagging.fct){if((r=u.$filter("filter")(a,{isTag:!0})).length>0&&(o=r[0]),a.length>0&&o&&(c=!0,a=a.slice(1,a.length),s=s.slice(1,s.length)),n=u.tagging.fct(u.search),s.some((function(e){return angular.equals(e,n)}))||u.selected.some((function(e){return angular.equals(e,n)})))return void i.$evalAsync((function(){u.activeIndex=0,u.items=a}));n&&(n.isTag=!0)}else{if((r=u.$filter("filter")(a,(function(e){return e.match(u.taggingLabel)}))).length>0&&(o=r[0]),void 0!==a[0]&&a.length>0&&o&&(c=!0,a=a.slice(1,a.length),s=s.slice(1,s.length)),n=u.search+" "+u.taggingLabel,d(u.selected,u.search)>-1)return;if(f(s.concat(u.selected)))return void(c&&(a=s,i.$evalAsync((function(){u.activeIndex=0,u.items=a}))));if(f(s))return void(c&&(u.items=s.slice(1,s.length)))}c&&(l=d(u.selected,n)),l>-1?a=a.slice(l+1,a.length-1):(a=[],n&&a.push(n),a=a.concat(s)),i.$evalAsync((function(){if(u.activeIndex=0,u.items=a,u.isGrouped){var e=n?a.slice(1):a;u.setItemsFn(e),n&&(u.items.unshift(n),u.groups.unshift({name:"",items:[n],tagging:!0}))}}))}})),u.searchInput.on("blur",(function(){r((function(){l.activeMatchIndex=-1}))}))}}}]),r.directive("uiSelectNoChoice",["uiSelectConfig",function(e){return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(t){return t.addClass("ui-select-no-choice"),(t.parent().attr("theme")||e.theme)+"/no-choice.tpl.html"}}}]),r.directive("uiSelectSingle",["$timeout","$compile",function(n,r){return{restrict:"EA",require:["^uiSelect","^ngModel"],link:function(i,o,a,s){var u=s[0],c=s[1];c.$parsers.unshift((function(e){if(t(e))return e;var n={};return n[u.parserResult.itemName]=e,u.parserResult.modelMapper(i,n)})),c.$formatters.unshift((function(e){if(t(e))return e;var n=u.parserResult&&u.parserResult.source(i,{$select:{search:""}}),r={};if(n){var o=function(t){return r[u.parserResult.itemName]=t,u.parserResult.modelMapper(i,r)===e};if(u.selected&&o(u.selected))return u.selected;for(var a=n.length-1;a>=0;a--)if(o(n[a]))return n[a]}return e})),i.$watch("$select.selected",(function(e){c.$viewValue!==e&&c.$setViewValue(e)})),c.$render=function(){u.selected=c.$viewValue},i.$on("uis:select",(function(e,r){u.selected=r;var o={};o[u.parserResult.itemName]=r,n((function(){u.onSelectCallback(i,{$item:r,$model:t(r)?r:u.parserResult.modelMapper(i,o)})}))})),i.$on("uis:close",(function(e,t){n((function(){u.focusser.prop("disabled",!1),t||u.focusser[0].focus()}),0,!1)})),i.$on("uis:activate",(function(){l.prop("disabled",!0)}));var l=angular.element("<input ng-disabled='$select.disabled' class='ui-select-focusser ui-select-offscreen' type='text' id='{{ $select.focusserId }}' aria-label='{{ $select.focusserTitle }}' aria-haspopup='true' role='button' />");r(l)(i),u.focusser=l,u.focusInput=l,o.parent().append(l),l.bind("focus",(function(){i.$evalAsync((function(){u.focus=!0}))})),l.bind("blur",(function(){i.$evalAsync((function(){u.focus=!1}))})),l.bind("keydown",(function(t){if(t.which===e.BACKSPACE&&!1!==u.backspaceReset)return t.preventDefault(),t.stopPropagation(),u.select(void 0),void i.$apply();t.which===e.TAB||e.isControl(t)||e.isFunctionKey(t)||t.which===e.ESC||(t.which!=e.DOWN&&t.which!=e.UP&&t.which!=e.ENTER&&t.which!=e.SPACE||(t.preventDefault(),t.stopPropagation(),u.activate()),i.$digest())})),l.bind("keyup input",(function(t){t.which===e.TAB||e.isControl(t)||e.isFunctionKey(t)||t.which===e.ESC||t.which==e.ENTER||t.which===e.BACKSPACE||(u.activate(l.val()),l.val(""),i.$digest())}))}}}]),r.directive("uiSelectSort",["$timeout","uiSelectConfig","uiSelectMinErr",function(e,t,n){return{require:["^^uiSelect","^ngModel"],link:function(t,r,i,o){if(null===t[i.uiSelectSort])throw n("sort","Expected a list to sort");var a=o[0],s=o[1],u=angular.extend({axis:"horizontal"},t.$eval(i.uiSelectSortOptions)).axis;t.$watch((function(){return a.sortable}),(function(e){e?r.attr("draggable",!0):r.removeAttr("draggable")})),r.on("dragstart",(function(e){r.addClass("dragging"),(e.dataTransfer||e.originalEvent.dataTransfer).setData("text",t.$index.toString())})),r.on("dragend",(function(){f("dragging")}));var c,l=function(e,t){this.splice(t,0,this.splice(e,1)[0])},f=function(e){angular.forEach(a.$element.querySelectorAll("."+e),(function(t){angular.element(t).removeClass(e)}))},d=function(e){e.preventDefault(),("vertical"===u?e.offsetY||e.layerY||(e.originalEvent?e.originalEvent.offsetY:0):e.offsetX||e.layerX||(e.originalEvent?e.originalEvent.offsetX:0))<this["vertical"===u?"offsetHeight":"offsetWidth"]/2?(f("dropping-after"),r.addClass("dropping-before")):(f("dropping-before"),r.addClass("dropping-after"))},p=function(t){t.preventDefault();var n=parseInt((t.dataTransfer||t.originalEvent.dataTransfer).getData("text"),10);e.cancel(c),c=e((function(){h(n)}),20)},h=function(e){var n=t.$eval(i.uiSelectSort),o=n[e],a=null;a=r.hasClass("dropping-before")?e<t.$index?t.$index-1:t.$index:e<t.$index?t.$index:t.$index+1,l.apply(n,[e,a]),s.$setViewValue(Date.now()),t.$apply((function(){t.$emit("uiSelectSort:change",{array:n,item:o,from:e,to:a})})),f("dropping"),f("dropping-before"),f("dropping-after"),r.off("drop",p)};r.on("dragenter",(function(){r.hasClass("dragging")||(r.addClass("dropping"),r.on("dragover",d),r.on("drop",p))})),r.on("dragleave",(function(e){e.target==r&&(f("dropping"),f("dropping-before"),f("dropping-after"),r.off("dragover",d),r.off("drop",p))}))}}}]),r.directive("uisOpenClose",["$parse","$timeout",function(e,t){return{restrict:"A",require:"uiSelect",link:function(n,r,i,o){o.onOpenCloseCallback=e(i.uisOpenClose),n.$watch("$select.open",(function(e,r){e!==r&&t((function(){o.onOpenCloseCallback(n,{isOpen:e})}))}))}}}]),r.service("uisRepeatParser",["uiSelectMinErr","$parse",function(e,t){this.parse=function(n){var r;if(!(r=n.match(/^\s*(?:([\s\S]+?)\s+as\s+)?(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+(\s*[\s\S]+?)?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/)))throw e("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",n);var i=r[5],o="";if(r[3]){i=r[5].replace(/(^\()|(\)$)/g,"");var a=r[5].match(/^\s*(?:[\s\S]+?)(?:[^\|]|\|\|)+([\s\S]*)\s*$/);a&&a[1].trim()&&(o=a[1],i=i.replace(o,""))}return{itemName:r[4]||r[2],keyName:r[3],source:t(i),filters:o,trackByExp:r[6],modelMapper:t(r[1]||r[4]||r[2]),repeatExpression:function(e){var t=this.itemName+" in "+(e?"$group.items":"$select.items");return this.trackByExp&&(t+=" track by "+this.trackByExp),t}}},this.getGroupNgRepeatExpression=function(){return"$group in $select.groups track by $group.name"}}])}(),angular.module("ui.select").run(["$templateCache",function(e){e.put("bootstrap/choices.tpl.html",'<ul class="ui-select-choices ui-select-choices-content ui-select-dropdown dropdown-menu" ng-show="$select.open && $select.items.length > 0"><li class="ui-select-choices-group" id="ui-select-choices-{{ $select.generatedId }}"><div class="divider" ng-show="$select.isGrouped && $index > 0"></div><div ng-show="$select.isGrouped" class="ui-select-choices-group-label dropdown-header" ng-bind="$group.name"></div><div ng-attr-id="ui-select-choices-row-{{ $select.generatedId }}-{{$index}}" class="ui-select-choices-row" ng-class="{active: $select.isActive(this), disabled: $select.isDisabled(this)}" role="option"><span class="ui-select-choices-row-inner"></span></div></li></ul>'),e.put("bootstrap/match-multiple.tpl.html",'<span class="ui-select-match"><span ng-repeat="$item in $select.selected track by $index"><span class="ui-select-match-item btn btn-default btn-xs" tabindex="-1" type="button" ng-disabled="$select.disabled" ng-click="$selectMultiple.activeMatchIndex = $index;" ng-class="{\'btn-primary\':$selectMultiple.activeMatchIndex === $index, \'select-locked\':$select.isLocked(this, $index)}" ui-select-sort="$select.selected"><span class="close ui-select-match-close" ng-hide="$select.disabled" ng-click="$selectMultiple.removeChoice($index)">&nbsp;&times;</span> <span uis-transclude-append=""></span></span></span></span>'),e.put("bootstrap/match.tpl.html",'<div class="ui-select-match" ng-hide="$select.open && $select.searchEnabled" ng-disabled="$select.disabled" ng-class="{\'btn-default-focus\':$select.focus}"><span tabindex="-1" class="btn btn-default form-control ui-select-toggle" aria-label="{{ $select.baseTitle }} activate" ng-disabled="$select.disabled" ng-click="$select.activate()" style="outline: 0;"><span ng-show="$select.isEmpty()" class="ui-select-placeholder text-muted">{{$select.placeholder}}</span> <span ng-hide="$select.isEmpty()" class="ui-select-match-text pull-left" ng-class="{\'ui-select-allow-clear\': $select.allowClear && !$select.isEmpty()}" ng-transclude=""></span> <i class="caret pull-right" ng-click="$select.toggle($event)"></i> <a ng-show="$select.allowClear && !$select.isEmpty() && ($select.disabled !== true)" aria-label="{{ $select.baseTitle }} clear" style="margin-right: 10px" ng-click="$select.clear($event)" class="btn btn-xs btn-link pull-right"><i class="glyphicon glyphicon-remove" aria-hidden="true"></i></a></span></div>'),e.put("bootstrap/no-choice.tpl.html",'<ul class="ui-select-no-choice dropdown-menu" ng-show="$select.items.length == 0"><li ng-transclude=""></li></ul>'),e.put("bootstrap/select-multiple.tpl.html",'<div class="ui-select-container ui-select-multiple ui-select-bootstrap dropdown form-control" ng-class="{open: $select.open}"><div><div class="ui-select-match"></div><input type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" class="ui-select-search input-xs" placeholder="{{$selectMultiple.getPlaceholder()}}" ng-disabled="$select.disabled" ng-click="$select.activate()" ng-model="$select.search" role="combobox" aria-expanded="{{$select.open}}" aria-label="{{$select.baseTitle}}" ng-class="{\'spinner\': $select.refreshing}" ondrop="return false;"></div><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div>'),e.put("bootstrap/select.tpl.html",'<div class="ui-select-container ui-select-bootstrap dropdown" ng-class="{open: $select.open}"><div class="ui-select-match"></div><span ng-show="$select.open && $select.refreshing && $select.spinnerEnabled" class="ui-select-refreshing {{$select.spinnerClass}}"></span> <input type="search" autocomplete="off" tabindex="-1" aria-expanded="true" aria-label="{{ $select.baseTitle }}" aria-owns="ui-select-choices-{{ $select.generatedId }}" class="form-control ui-select-search" ng-class="{ \'ui-select-search-hidden\' : !$select.searchEnabled }" placeholder="{{$select.placeholder}}" ng-model="$select.search" ng-show="$select.open"><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div>'),e.put("select2/choices.tpl.html",'<ul tabindex="-1" class="ui-select-choices ui-select-choices-content select2-results"><li class="ui-select-choices-group" ng-class="{\'select2-result-with-children\': $select.choiceGrouped($group) }"><div ng-show="$select.choiceGrouped($group)" class="ui-select-choices-group-label select2-result-label" ng-bind="$group.name"></div><ul id="ui-select-choices-{{ $select.generatedId }}" ng-class="{\'select2-result-sub\': $select.choiceGrouped($group), \'select2-result-single\': !$select.choiceGrouped($group) }"><li role="option" ng-attr-id="ui-select-choices-row-{{ $select.generatedId }}-{{$index}}" class="ui-select-choices-row" ng-class="{\'select2-highlighted\': $select.isActive(this), \'select2-disabled\': $select.isDisabled(this)}"><div class="select2-result-label ui-select-choices-row-inner"></div></li></ul></li></ul>'),e.put("select2/match-multiple.tpl.html",'<span class="ui-select-match"><li class="ui-select-match-item select2-search-choice" ng-repeat="$item in $select.selected track by $index" ng-class="{\'select2-search-choice-focus\':$selectMultiple.activeMatchIndex === $index, \'select2-locked\':$select.isLocked(this, $index)}" ui-select-sort="$select.selected"><span uis-transclude-append=""></span> <a href="javascript:;" class="ui-select-match-close select2-search-choice-close" ng-click="$selectMultiple.removeChoice($index)" tabindex="-1"></a></li></span>'),e.put("select2/match.tpl.html",'<a class="select2-choice ui-select-match" ng-class="{\'select2-default\': $select.isEmpty()}" ng-click="$select.toggle($event)" aria-label="{{ $select.baseTitle }} select"><span ng-show="$select.isEmpty()" class="select2-chosen">{{$select.placeholder}}</span> <span ng-hide="$select.isEmpty()" class="select2-chosen" ng-transclude=""></span> <abbr ng-if="$select.allowClear && !$select.isEmpty()" class="select2-search-choice-close" ng-click="$select.clear($event)"></abbr> <span class="select2-arrow ui-select-toggle"><b></b></span></a>'),e.put("select2/no-choice.tpl.html",'<div class="ui-select-no-choice dropdown" ng-show="$select.items.length == 0"><div class="dropdown-content"><div data-selectable="" ng-transclude=""></div></div></div>'),e.put("select2/select-multiple.tpl.html",'<div class="ui-select-container ui-select-multiple select2 select2-container select2-container-multi" ng-class="{\'select2-container-active select2-dropdown-open open\': $select.open, \'select2-container-disabled\': $select.disabled}"><ul class="select2-choices"><span class="ui-select-match"></span><li class="select2-search-field"><input type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="combobox" aria-expanded="true" aria-owns="ui-select-choices-{{ $select.generatedId }}" aria-label="{{ $select.baseTitle }}" aria-activedescendant="ui-select-choices-row-{{ $select.generatedId }}-{{ $select.activeIndex }}" class="select2-input ui-select-search" placeholder="{{$selectMultiple.getPlaceholder()}}" ng-disabled="$select.disabled" ng-hide="$select.disabled" ng-model="$select.search" ng-click="$select.activate()" style="width: 34px;" ondrop="return false;"></li></ul><div class="ui-select-dropdown select2-drop select2-with-searchbox select2-drop-active" ng-class="{\'select2-display-none\': !$select.open || $select.items.length === 0}"><div class="ui-select-choices"></div></div></div>'),e.put("select2/select.tpl.html",'<div class="ui-select-container select2 select2-container" ng-class="{\'select2-container-active select2-dropdown-open open\': $select.open, \'select2-container-disabled\': $select.disabled, \'select2-container-active\': $select.focus, \'select2-allowclear\': $select.allowClear && !$select.isEmpty()}"><div class="ui-select-match"></div><div class="ui-select-dropdown select2-drop select2-with-searchbox select2-drop-active" ng-class="{\'select2-display-none\': !$select.open}"><div class="search-container" ng-class="{\'ui-select-search-hidden\':!$select.searchEnabled, \'select2-search\':$select.searchEnabled}"><input type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" ng-class="{\'select2-active\': $select.refreshing}" role="combobox" aria-expanded="true" aria-owns="ui-select-choices-{{ $select.generatedId }}" aria-label="{{ $select.baseTitle }}" class="ui-select-search select2-input" ng-model="$select.search"></div><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div></div>'),e.put("selectize/choices.tpl.html",'<div ng-show="$select.open" class="ui-select-choices ui-select-dropdown selectize-dropdown" ng-class="{\'single\': !$select.multiple, \'multi\': $select.multiple}"><div class="ui-select-choices-content selectize-dropdown-content"><div class="ui-select-choices-group optgroup"><div ng-show="$select.isGrouped" class="ui-select-choices-group-label optgroup-header" ng-bind="$group.name"></div><div role="option" class="ui-select-choices-row" ng-class="{active: $select.isActive(this), disabled: $select.isDisabled(this)}"><div class="option ui-select-choices-row-inner" data-selectable=""></div></div></div></div></div>'),e.put("selectize/match-multiple.tpl.html",'<div class="ui-select-match" data-value="" ng-repeat="$item in $select.selected track by $index" ng-click="$selectMultiple.activeMatchIndex = $index;" ng-class="{\'active\':$selectMultiple.activeMatchIndex === $index}" ui-select-sort="$select.selected"><span class="ui-select-match-item" ng-class="{\'select-locked\':$select.isLocked(this, $index)}"><span uis-transclude-append=""></span> <span class="remove ui-select-match-close" ng-hide="$select.disabled" ng-click="$selectMultiple.removeChoice($index)">&times;</span></span></div>'),e.put("selectize/match.tpl.html",'<div ng-hide="$select.searchEnabled && ($select.open || $select.isEmpty())" class="ui-select-match"><span ng-show="!$select.searchEnabled && ($select.isEmpty() || $select.open)" class="ui-select-placeholder text-muted">{{$select.placeholder}}</span> <span ng-hide="$select.isEmpty() || $select.open" ng-transclude=""></span></div>'),e.put("selectize/no-choice.tpl.html",'<div class="ui-select-no-choice selectize-dropdown" ng-show="$select.items.length == 0"><div class="selectize-dropdown-content"><div data-selectable="" ng-transclude=""></div></div></div>'),e.put("selectize/select-multiple.tpl.html",'<div class="ui-select-container selectize-control multi plugin-remove_button" ng-class="{\'open\': $select.open}"><div class="selectize-input" ng-class="{\'focus\': $select.open, \'disabled\': $select.disabled, \'selectize-focus\' : $select.focus}" ng-click="$select.open && !$select.searchEnabled ? $select.toggle($event) : $select.activate()"><div class="ui-select-match"></div><input type="search" autocomplete="off" tabindex="-1" class="ui-select-search" ng-class="{\'ui-select-search-hidden\':!$select.searchEnabled}" placeholder="{{$selectMultiple.getPlaceholder()}}" ng-model="$select.search" ng-disabled="$select.disabled" aria-expanded="{{$select.open}}" aria-label="{{ $select.baseTitle }}" ondrop="return false;"></div><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div>'),e.put("selectize/select.tpl.html",'<div class="ui-select-container selectize-control single" ng-class="{\'open\': $select.open}"><div class="selectize-input" ng-class="{\'focus\': $select.open, \'disabled\': $select.disabled, \'selectize-focus\' : $select.focus}" ng-click="$select.open && !$select.searchEnabled ? $select.toggle($event) : $select.activate()"><div class="ui-select-match"></div><input type="search" autocomplete="off" tabindex="-1" class="ui-select-search ui-select-toggle" ng-class="{\'ui-select-search-hidden\':!$select.searchEnabled}" ng-click="$select.toggle($event)" placeholder="{{$select.placeholder}}" ng-model="$select.search" ng-hide="!$select.isEmpty() && !$select.open" ng-disabled="$select.disabled" aria-label="{{ $select.baseTitle }}"></div><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div>')}])},function(e,t,n){},function(e,t,n){e.exports=window.fetch||(window.fetch=n(328).default||n(328))},function(e,t,n){"use strict";n.r(t),t.default=function(e,t){return t=t||{},new Promise((function(n,r){var i=new XMLHttpRequest,o=[],a=[],s={},u=function(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(JSON.parse(i.responseText))},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:u,headers:{keys:function(){return o},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var c in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){o.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?s[t]+","+n:n})),n(u())},i.onerror=r,i.withCredentials="include"==t.credentials,t.headers)i.setRequestHeader(c,t.headers[c]);i.send(t.body||null)}))}},function(e,t,n){var r=n(43);e.exports=r.Promise},function(e,t,n){var r,i,o,a=n(43),s=n(31),u=n(81),c=n(98),l=n(303),f=n(207),d=n(331),p=a.location,h=a.setImmediate,g=a.clearImmediate,m=a.process,v=a.MessageChannel,y=a.Dispatch,b=0,_={},w=function(e){if(_.hasOwnProperty(e)){var t=_[e];delete _[e],t()}},$=function(e){return function(){w(e)}},x=function(e){w(e.data)},q=function(e){a.postMessage(e+"",p.protocol+"//"+p.host)};h&&g||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return _[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(b),b},g=function(e){delete _[e]},"process"==u(m)?r=function(e){m.nextTick($(e))}:y&&y.now?r=function(e){y.now($(e))}:v&&!d?(o=(i=new v).port2,i.port1.onmessage=x,r=c(o.postMessage,o,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(q)||"file:"===p.protocol?r="onreadystatechange"in f("script")?function(e){l.appendChild(f("script")).onreadystatechange=function(){l.removeChild(this),w(e)}}:function(e){setTimeout($(e),0)}:(r=q,a.addEventListener("message",x,!1))),e.exports={set:h,clear:g}},function(e,t,n){var r=n(315);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},function(e,t,n){var r=n(51),i=n(50),o=n(333);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(99),i=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){var r=n(228);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(37)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){var r=n(74),i=n(157).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(r(e))}},function(e,t,n){var r=n(37);t.f=r},function(e,t,n){var r=n(297),i=n(56),o=n(338),a=n(61).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},function(e,t,n){var r;e.exports=(r=r||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},i=r.lib={},o=i.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=i.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(o=0;o<i;o+=4)t[r+o>>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],i=function(t){t=t;var n=987654321,r=4294967295;return function(){var i=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o<t;o+=4){var s=i(4294967296*(n||e.random()));n=987654071*s(),r.push(4294967296*s()|0)}return new a.init(r,t)}}),s=r.enc={},u=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},c=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},f=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,s=i/(4*o),u=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*o,c=e.min(4*u,i);if(u){for(var l=0;l<u;l+=o)this._doProcessBlock(r,l);var f=r.splice(0,u);n.sigBytes-=c}return new a.init(f,c)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),d=(i.Hasher=f.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new d.HMAC.init(e,n).finalize(t)}}}),r.algo={});return r}(Math),r)},function(e,t,n){var r=n(116),i=n(342),o=n(232),a=n(168),s=n(233),u=n(103),c=n(343),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=a(e),t=s(t,!0),c)try{return l(e,t)}catch(e){}if(u(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(116),i=n(71),o=n(481);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(70),i=n(144),o=n(103),a=n(234),s=n(345),u=n(482),c=u.get,l=u.enforce,f=String(String).split("String");(e.exports=function(e,t,n,s){var u,c=!!s&&!!s.unsafe,d=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),(u=l(n)).source||(u.source=f.join("string"==typeof t?t:""))),e!==r?(c?!p&&e[t]&&(d=!0):delete e[t],d?e[t]=n:i(e,t,n)):d?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},function(e,t,n){var r=n(235),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(347),i=n(348),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t,n){var r=n(484),i=n(235);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.9.1",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t){e.exports={}},function(e,t,n){var r=n(487),i=n(70),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},function(e,t,n){var r=n(103),i=n(168),o=n(489).indexOf,a=n(349);e.exports=function(e,t){var n,s=i(e),u=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~o(c,n)||c.push(n));return c}},function(e,t,n){var r=n(145),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(143),i=n(496),o=n(236)("species");e.exports=function(e,t){var n;return i(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[o])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){var r=n(497),i=n(357),o=n(71);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){return!Symbol.sham&&(r?38===i:i>37&&i<41)}))},function(e,t,n){var r,i,o=n(70),a=n(498),s=o.process,u=s&&s.versions,c=u&&u.v8;c?i=(r=c.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=r[1]),e.exports=i&&+i},function(e,t,n){var r=n(71),i=n(236),o=n(357),a=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){var r=n(71);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){"use strict";var r=n(115),i=n(237);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(e,t){e.exports="\t\n\v\f\r   \u2028\u2029\ufeff"},function(e,t,n){"use strict";var r=n(28),i=n(89),o=n(518),a=n(519),s=n(31),u=1..toFixed,c=Math.floor,l=function(e,t,n){return 0===t?n:t%2==1?l(e,t-1,n*e):l(e*e,t/2,n)};r({target:"Number",proto:!0,forced:u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){u.call({})}))},{toFixed:function(e){var t,n,r,s,u=o(this),f=i(e),d=[0,0,0,0,0,0],p="",h="0",g=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*d[n],d[n]=r%1e7,r=c(r/1e7)},m=function(e){for(var t=6,n=0;--t>=0;)n+=d[t],d[t]=c(n/e),n=n%e*1e7},v=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==d[e]){var n=String(d[e]);t=""===t?n:t+a.call("0",7-n.length)+n}return t};if(f<0||f>20)throw RangeError("Incorrect fraction digits");if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(p="-",u=-u),u>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(u*l(2,69,1))-69)<0?u*l(2,-t,1):u/l(2,t,1),n*=4503599627370496,(t=52-t)>0){for(g(0,n),r=f;r>=7;)g(1e7,0),r-=7;for(g(l(10,r,1),0),r=t-1;r>=23;)m(1<<23),r-=23;m(1<<r),g(1,1),m(2),h=v()}else g(0,n),g(1<<-t,0),h=v()+a.call("0",f);return h=f>0?p+((s=h.length)<=f?"0."+a.call("0",f-s)+h:h.slice(0,s-f)+"."+h.slice(s-f)):p+h}})},,,,,,function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?o(a(e),(function(a){var s=encodeURIComponent(r(a))+n;return i(e[a])?o(e[a],(function(e){return s+encodeURIComponent(r(e))})).join(t):s+encodeURIComponent(r(e[a]))})).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t,n){"use strict";t.decode=t.parse=n(537),t.encode=t.stringify=n(368)},function(e,t,n){var r=n(31),i=n(37),o=n(88),a=i("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},function(e,t,n){"use strict";var r=n(55),i=n(31),o=n(135),a=n(212),s=n(153),u=n(65),c=n(154),l=Object.assign,f=Object.defineProperty;e.exports=!l||i((function(){if(r&&1!==l({b:1},l(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||"abcdefghijklmnopqrst"!=o(l({},t)).join("")}))?function(e,t){for(var n=u(e),i=arguments.length,l=1,f=a.f,d=s.f;i>l;)for(var p,h=c(arguments[l++]),g=f?o(h).concat(f(h)):o(h),m=g.length,v=0;m>v;)p=g[v++],r&&!d.call(h,p)||(n[p]=h[p]);return n}:l},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"Severity",(function(){return a})),n.d(t,"Status",(function(){return s})),n.d(t,"addGlobalEventProcessor",(function(){return v})),n.d(t,"addBreadcrumb",(function(){return R})),n.d(t,"captureException",(function(){return I})),n.d(t,"captureEvent",(function(){return M})),n.d(t,"captureMessage",(function(){return P})),n.d(t,"configureScope",(function(){return j})),n.d(t,"getHubFromCarrier",(function(){return T})),n.d(t,"getCurrentHub",(function(){return C})),n.d(t,"Hub",(function(){return S})),n.d(t,"makeMain",(function(){return k})),n.d(t,"Scope",(function(){return g})),n.d(t,"startTransaction",(function(){return z})),n.d(t,"SDK_VERSION",(function(){return W})),n.d(t,"setContext",(function(){return F})),n.d(t,"setExtra",(function(){return U})),n.d(t,"setExtras",(function(){return N})),n.d(t,"setTag",(function(){return B})),n.d(t,"setTags",(function(){return L})),n.d(t,"setUser",(function(){return H})),n.d(t,"withScope",(function(){return V})),n.d(t,"BrowserClient",(function(){return et})),n.d(t,"injectReportDialog",(function(){return Me})),n.d(t,"eventFromException",(function(){return ye})),n.d(t,"eventFromMessage",(function(){return be})),n.d(t,"defaultIntegrations",(function(){return lt})),n.d(t,"forceLoad",(function(){return ht})),n.d(t,"init",(function(){return ft})),n.d(t,"lastEventId",(function(){return pt})),n.d(t,"onLoad",(function(){return gt})),n.d(t,"showReportDialog",(function(){return dt})),n.d(t,"flush",(function(){return mt})),n.d(t,"close",(function(){return vt})),n.d(t,"wrap",(function(){return yt})),n.d(t,"SDK_NAME",(function(){return bt})),n.d(t,"Integrations",(function(){return $t})),n.d(t,"Transports",(function(){return o}));var r={};n.r(r),n.d(r,"FunctionToString",(function(){return tt})),n.d(r,"InboundFilters",(function(){return rt}));var i={};n.r(i),n.d(i,"GlobalHandlers",(function(){return at})),n.d(i,"TryCatch",(function(){return ot})),n.d(i,"Breadcrumbs",(function(){return Qe})),n.d(i,"LinkedErrors",(function(){return st})),n.d(i,"UserAgent",(function(){return ct}));var o={};n.r(o),n.d(o,"BaseTransport",(function(){return Oe})),n.d(o,"FetchTransport",(function(){return Te})),n.d(o,"XHRTransport",(function(){return De}));var a,s,u=n(4);!function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(a||(a={})),function(e){e.fromString=function(t){switch(t){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;case"log":default:return e.Log}}}(a||(a={})),function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"}(s||(s={})),function(e){e.fromHttpCode=function(t){return t>=200&&t<300?e.Success:429===t?e.RateLimit:t>=400&&t<500?e.Invalid:t>=500?e.Failed:e.Unknown}}(s||(s={}));var c,l=n(48),f=n(864);!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(c||(c={}));var d,p=function(){function e(e){var t=this;this._state=c.PENDING,this._handlers=[],this._resolve=function(e){t._setResult(c.RESOLVED,e)},this._reject=function(e){t._setResult(c.REJECTED,e)},this._setResult=function(e,n){t._state===c.PENDING&&(Object(l.m)(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==c.PENDING){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e.done||(t._state===c.RESOLVED&&e.onfulfilled&&e.onfulfilled(t._value),t._state===c.REJECTED&&e.onrejected&&e.onrejected(t._value),e.done=!0)}))}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.resolve=function(t){return new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){return new e((function(n,r){if(Array.isArray(t))if(0!==t.length){var i=t.length,o=[];t.forEach((function(t,a){e.resolve(t).then((function(e){o[a]=e,0===(i-=1)&&n(o)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},e.prototype.then=function(t,n){var r=this;return new e((function(e,i){r._attachHandler({done:!1,onfulfilled:function(n){if(t)try{return void e(t(n))}catch(e){return void i(e)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(e){return void i(e)}else i(t)}})}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var i,o;return n.then((function(e){o=!1,i=e,t&&t()}),(function(e){o=!0,i=e,t&&t()})).then((function(){o?r(i):e(i)}))}))},e.prototype.toString=function(){return"[object SyncPromise]"},e}(),h=n(60),g=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=Object(u.e)(t._breadcrumbs),n._tags=Object(u.a)({},t._tags),n._extra=Object(u.a)({},t._extra),n._contexts=Object(u.a)({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=Object(u.e)(t._eventProcessors)),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.setTags=function(e){return this._tags=Object(u.a)(Object(u.a)({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=Object(u.a)(Object(u.a)({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=Object(u.a)(Object(u.a)({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=Object(u.a)(Object(u.a)({},this._extra),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return null===t?delete this._contexts[e]:this._contexts=Object(u.a)(Object(u.a)({},this._contexts),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e,t,n,r,i=this.getSpan();return(null===(e=i)||void 0===e?void 0:e.transaction)?null===(t=i)||void 0===t?void 0:t.transaction:(null===(r=null===(n=i)||void 0===n?void 0:n.spanRecorder)||void 0===r?void 0:r.spans[0])?i.spanRecorder.spans[0]:void 0},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"==typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=Object(u.a)(Object(u.a)({},this._tags),t._tags),this._extra=Object(u.a)(Object(u.a)({},this._extra),t._extra),this._contexts=Object(u.a)(Object(u.a)({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint)):Object(l.h)(t)&&(t=t,this._tags=Object(u.a)(Object(u.a)({},this._tags),t.tags),this._extra=Object(u.a)(Object(u.a)({},this._extra),t.extra),this._contexts=Object(u.a)(Object(u.a)({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint)),this},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n=Object(u.a)({timestamp:Object(f.a)()},e);return this._breadcrumbs=void 0!==t&&t>=0?Object(u.e)(this._breadcrumbs,[n]).slice(-t):Object(u.e)(this._breadcrumbs,[n]),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){var n;if(this._extra&&Object.keys(this._extra).length&&(e.extra=Object(u.a)(Object(u.a)({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=Object(u.a)(Object(u.a)({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=Object(u.a)(Object(u.a)({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=Object(u.a)(Object(u.a)({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=Object(u.a)({trace:this._span.getTraceContext()},e.contexts);var r=null===(n=this._span.transaction)||void 0===n?void 0:n.name;r&&(e.tags=Object(u.a)({transaction:r},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=Object(u.e)(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(Object(u.e)(m(),this._eventProcessors),e,t)},e.prototype._notifyEventProcessors=function(e,t,n,r){var i=this;return void 0===r&&(r=0),new p((function(o,a){var s=e[r];if(null===t||"function"!=typeof s)o(t);else{var c=s(Object(u.a)({},t),n);Object(l.m)(c)?c.then((function(t){return i._notifyEventProcessors(e,t,n,r+1).then(o)})).then(null,a):i._notifyEventProcessors(e,c,n,r+1).then(o).then(null,a)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function m(){var e=Object(h.e)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function v(e){m().push(e)}!function(e){e.Ok="ok",e.Exited="exited",e.Crashed="crashed",e.Abnormal="abnormal"}(d||(d={}));var y=Object(h.e)(),b="Sentry Logger ",_=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(h.c)((function(){y.console.log(b+"[Log]: "+e.join(" "))}))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(h.c)((function(){y.console.warn(b+"[Warn]: "+e.join(" "))}))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(h.c)((function(){y.console.error(b+"[Error]: "+e.join(" "))}))},e}();y.__SENTRY__=y.__SENTRY__||{};var w=y.__SENTRY__.logger||(y.__SENTRY__.logger=new _),$=n(150),x=n(79),q=function(){function e(e){this.errors=0,this.sid=Object(h.i)(),this.timestamp=Date.now(),this.started=Date.now(),this.duration=0,this.status=d.Ok,this.init=!0,e&&this.update(e)}return e.prototype.update=function(e){void 0===e&&(e={}),e.user&&(e.user.ip_address&&(this.ipAddress=e.user.ip_address),e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||Date.now(),e.sid&&(this.sid=32===e.sid.length?e.sid:Object(h.i)()),void 0!==e.init&&(this.init=e.init),e.did&&(this.did=""+e.did),"number"==typeof e.started&&(this.started=e.started),"number"==typeof e.duration?this.duration=e.duration:this.duration=this.timestamp-this.started,e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),e.ipAddress&&(this.ipAddress=e.ipAddress),e.userAgent&&(this.userAgent=e.userAgent),"number"==typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):this.status===d.Ok?this.update({status:d.Exited}):this.update()},e.prototype.toJSON=function(){return Object(x.a)({sid:""+this.sid,init:this.init,started:new Date(this.started).toISOString(),timestamp:new Date(this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:Object(x.a)({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},e}(),S=function(){function e(e,t,n){void 0===t&&(t=new g),void 0===n&&(n=3),this._version=n,this._stack=[{}],this.getStackTop().scope=t,this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()},e.prototype.pushScope=function(){var e=g.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e},e.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=Object(h.i)(),r=t;if(!t){var i=void 0;try{throw new Error("Sentry syntheticException")}catch(e){i=e}r={originalException:e,syntheticException:i}}return this._invokeClient("captureException",e,Object(u.a)(Object(u.a)({},r),{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var r=this._lastEventId=Object(h.i)(),i=n;if(!n){var o=void 0;try{throw new Error(e)}catch(e){o=e}i={originalException:e,syntheticException:o}}return this._invokeClient("captureMessage",e,t,Object(u.a)(Object(u.a)({},i),{event_id:r})),r},e.prototype.captureEvent=function(e,t){var n=this._lastEventId=Object(h.i)();return this._invokeClient("captureEvent",e,Object(u.a)(Object(u.a)({},t),{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop(),r=n.scope,i=n.client;if(r&&i){var o=i.getOptions&&i.getOptions()||{},a=o.beforeBreadcrumb,s=void 0===a?null:a,c=o.maxBreadcrumbs,l=void 0===c?100:c;if(!(l<=0)){var d=Object(f.a)(),p=Object(u.a)({timestamp:d},e),g=s?Object(h.c)((function(){return s(p,t)})):p;null!==g&&r.addBreadcrumb(g,Math.min(l,100))}}},e.prototype.setUser=function(e){var t=this.getScope();t&&t.setUser(e)},e.prototype.setTags=function(e){var t=this.getScope();t&&t.setTags(e)},e.prototype.setExtras=function(e){var t=this.getScope();t&&t.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getScope();n&&n.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getScope();n&&n.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getScope();n&&n.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop(),n=t.scope,r=t.client;n&&r&&e(n)},e.prototype.run=function(e){var t=k(this);try{e(this)}finally{k(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return w.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e){return this._callExtensionMethod("startSpan",e)},e.prototype.startTransaction=function(e,t){return this._callExtensionMethod("startTransaction",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype.captureSession=function(e){if(void 0===e&&(e=!1),e)return this.endSession();this._sendSessionUpdate()},e.prototype.endSession=function(){var e,t,n,r,i;null===(n=null===(t=null===(e=this.getStackTop())||void 0===e?void 0:e.scope)||void 0===t?void 0:t.getSession())||void 0===n||n.close(),this._sendSessionUpdate(),null===(i=null===(r=this.getStackTop())||void 0===r?void 0:r.scope)||void 0===i||i.setSession()},e.prototype.startSession=function(e){var t=this.getStackTop(),n=t.scope,r=t.client,i=r&&r.getOptions()||{},o=i.release,a=i.environment,s=new q(Object(u.a)(Object(u.a)({release:o,environment:a},n&&{user:n.getUser()}),e));if(n){var c=n.getSession&&n.getSession();c&&c.status===d.Ok&&c.update({status:d.Exited}),this.endSession(),n.setSession(s)}return s},e.prototype._sendSessionUpdate=function(){var e=this.getStackTop(),t=e.scope,n=e.client;if(t){var r=t.getSession&&t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}},e.prototype._invokeClient=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this.getStackTop(),o=i.scope,a=i.client;a&&a[e]&&(t=a)[e].apply(t,Object(u.e)(n,[o]))},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=E(),i=r.__SENTRY__;if(i&&i.extensions&&"function"==typeof i.extensions[e])return i.extensions[e].apply(this,t);w.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function E(){var e=Object(h.e)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function k(e){var t=E(),n=T(t);return D(t,e),n}function C(){var e=E();return O(e)&&!T(e).isOlderThan(3)||D(e,new S),Object($.b)()?function(e){var t,n,r;try{var i=null===(r=null===(n=null===(t=E().__SENTRY__)||void 0===t?void 0:t.extensions)||void 0===n?void 0:n.domain)||void 0===r?void 0:r.active;if(!i)return T(e);if(!O(i)||T(i).isOlderThan(3)){var o=T(e).getStackTop();D(i,new S(o.client,g.clone(o.scope)))}return T(i)}catch(t){return T(e)}}(e):T(e)}function O(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function T(e){return e&&e.__SENTRY__&&e.__SENTRY__.hub||(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=new S),e.__SENTRY__.hub}function D(e,t){return!!e&&(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=t,!0)}function A(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=C();if(r&&r[e])return r[e].apply(r,Object(u.e)(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function I(e,t){var n;try{throw new Error("Sentry syntheticException")}catch(e){n=e}return A("captureException",e,{captureContext:t,originalException:e,syntheticException:n})}function P(e,t){var n;try{throw new Error(e)}catch(e){n=e}var r="string"!=typeof t?{captureContext:t}:void 0;return A("captureMessage",e,"string"==typeof t?t:void 0,Object(u.a)({originalException:e,syntheticException:n},r))}function M(e){return A("captureEvent",e)}function j(e){A("configureScope",e)}function R(e){A("addBreadcrumb",e)}function F(e,t){A("setContext",e,t)}function N(e){A("setExtras",e)}function L(e){A("setTags",e)}function U(e,t){A("setExtra",e,t)}function B(e,t){A("setTag",e,t)}function H(e){A("setUser",e)}function V(e){A("withScope",e)}function z(e,t){return A("startTransaction",Object(u.a)({},e),t)}var W="6.3.5",Y=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n]);return e});var G=function(e){function SentryError(t){var n=this.constructor,r=e.call(this,t)||this;return r.message=t,r.name=n.prototype.constructor.name,Y(r,n.prototype),r}return Object(u.b)(SentryError,e),SentryError}(Error),X=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,K=function(){function e(e){"string"==typeof e?this._fromString(e):this._fromComponents(e),this._validate()}return e.prototype.toString=function(e){void 0===e&&(e=!1);var t=this,n=t.host,r=t.path,i=t.pass,o=t.port,a=t.projectId;return t.protocol+"://"+t.publicKey+(e&&i?":"+i:"")+"@"+n+(o?":"+o:"")+"/"+(r?r+"/":r)+a},e.prototype._fromString=function(e){var t=X.exec(e);if(!t)throw new G("Invalid Dsn");var n=Object(u.c)(t.slice(1),6),r=n[0],i=n[1],o=n[2],a=void 0===o?"":o,s=n[3],c=n[4],l=void 0===c?"":c,f="",d=n[5],p=d.split("/");if(p.length>1&&(f=p.slice(0,-1).join("/"),d=p.pop()),d){var h=d.match(/^\d+/);h&&(d=h[0])}this._fromComponents({host:s,pass:a,path:f,projectId:d,port:l,protocol:r,publicKey:i})},e.prototype._fromComponents=function(e){"user"in e&&!("publicKey"in e)&&(e.publicKey=e.user),this.user=e.publicKey||"",this.protocol=e.protocol,this.publicKey=e.publicKey||"",this.pass=e.pass||"",this.host=e.host,this.port=e.port||"",this.path=e.path||"",this.projectId=e.projectId},e.prototype._validate=function(){var e=this;if(["protocol","publicKey","host","projectId"].forEach((function(t){if(!e[t])throw new G("Invalid Dsn: "+t+" missing")})),!this.projectId.match(/^\d+$/))throw new G("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new G("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new G("Invalid Dsn: Invalid port "+this.port)},e}(),J=n(111),Z=[];function Q(e){var t={};return function(e){var t=e.defaultIntegrations&&Object(u.e)(e.defaultIntegrations)||[],n=e.integrations,r=[];if(Array.isArray(n)){var i=n.map((function(e){return e.name})),o=[];t.forEach((function(e){-1===i.indexOf(e.name)&&-1===o.indexOf(e.name)&&(r.push(e),o.push(e.name))})),n.forEach((function(e){-1===o.indexOf(e.name)&&(r.push(e),o.push(e.name))}))}else"function"==typeof n?(r=n(t),r=Array.isArray(r)?r:[r]):r=Object(u.e)(t);var a=r.map((function(e){return e.name}));return-1!==a.indexOf("Debug")&&r.push.apply(r,Object(u.e)(r.splice(a.indexOf("Debug"),1))),r}(e).forEach((function(e){t[e.name]=e,function(e){-1===Z.indexOf(e.name)&&(e.setupOnce(v,C),Z.push(e.name),w.log("Integration installed: "+e.name))}(e)})),t}var ee=function(){function e(e,t){this._integrations={},this._processing=0,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=new K(t.dsn))}return e.prototype.captureException=function(e,t,n){var r=this,i=t&&t.event_id;return this._process(this._getBackend().eventFromException(e,t).then((function(e){return r._captureEvent(e,t,n)})).then((function(e){i=e}))),i},e.prototype.captureMessage=function(e,t,n,r){var i=this,o=n&&n.event_id,a=Object(l.i)(e)?this._getBackend().eventFromMessage(String(e),t,n):this._getBackend().eventFromException(e,n);return this._process(a.then((function(e){return i._captureEvent(e,n,r)})).then((function(e){o=e}))),o},e.prototype.captureEvent=function(e,t,n){var r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((function(e){r=e}))),r},e.prototype.captureSession=function(e){"string"!=typeof e.release?w.warn("Discarded session because of missing or non-string release"):(this._sendSession(e),e.update({init:!1}))},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.flush=function(e){var t=this;return this._isClientProcessing(e).then((function(n){return t._getBackend().getTransport().close(e).then((function(e){return n&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.setupIntegrations=function(){this._isEnabled()&&(this._integrations=Q(this._options))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return w.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._updateSessionFromEvent=function(e,t){var n,r,i,o=!1,a=!1,s=t.exception&&t.exception.values;if(s){a=!0;try{for(var c=Object(u.f)(s),l=c.next();!l.done;l=c.next()){var f=l.value.mechanism;if(f&&!1===f.handled){o=!0;break}}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}var p=t.user;if(!e.userAgent){var h=t.request?t.request.headers:{};for(var g in h)if("user-agent"===g.toLowerCase()){i=h[g];break}}e.update(Object(u.a)(Object(u.a)({},o&&{status:d.Crashed}),{user:p,userAgent:i,errors:e.errors+Number(a||o)})),this.captureSession(e)},e.prototype._sendSession=function(e){this._getBackend().sendSession(e)},e.prototype._isClientProcessing=function(e){var t=this;return new p((function(n){var r=0,i=setInterval((function(){0==t._processing?(clearInterval(i),n(!0)):(r+=1,e&&r>=e&&(clearInterval(i),n(!1)))}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var r=this,i=this.getOptions().normalizeDepth,o=void 0===i?3:i,a=Object(u.a)(Object(u.a)({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:Object(h.i)()),timestamp:e.timestamp||Object(f.a)()});this._applyClientOptions(a),this._applyIntegrationsMetadata(a);var s=t;n&&n.captureContext&&(s=g.clone(s).update(n.captureContext));var c=p.resolve(a);return s&&(c=s.applyToEvent(a,n)),c.then((function(e){return"number"==typeof o&&o>0?r._normalizeEvent(e,o):e}))},e.prototype._normalizeEvent=function(e,t){if(!e)return null;var n=Object(u.a)(Object(u.a)(Object(u.a)(Object(u.a)(Object(u.a)({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return Object(u.a)(Object(u.a)({},e),e.data&&{data:Object(x.d)(e.data,t)})}))}),e.user&&{user:Object(x.d)(e.user,t)}),e.contexts&&{contexts:Object(x.d)(e.contexts,t)}),e.extra&&{extra:Object(x.d)(e.extra,t)});return e.contexts&&e.contexts.trace&&(n.contexts.trace=e.contexts.trace),n},e.prototype._applyClientOptions=function(e){var t=this.getOptions(),n=t.environment,r=t.release,i=t.dist,o=t.maxValueLength,a=void 0===o?250:o;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=Object(J.d)(e.message,a));var s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=Object(J.d)(s.value,a));var u=e.request;u&&u.url&&(u.url=Object(J.d)(u.url,a))},e.prototype._applyIntegrationsMetadata=function(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=Object(u.e)(e.sdk.integrations||[],t))},e.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},e.prototype._captureEvent=function(e,t,n){return this._processEvent(e,t,n).then((function(e){return e.event_id}),(function(e){w.error(e)}))},e.prototype._processEvent=function(e,t,n){var r=this,i=this.getOptions(),o=i.beforeSend,a=i.sampleRate;if(!this._isEnabled())return p.reject(new G("SDK not enabled, will not send event."));var s="transaction"===e.type;return!s&&"number"==typeof a&&Math.random()>a?p.reject(new G("Discarding event because it's not included in the random sample (sampling rate = "+a+")")):this._prepareEvent(e,n,t).then((function(e){if(null===e)throw new G("An event processor returned null, will not send event.");if(t&&t.data&&!0===t.data.__sentry__||s||!o)return e;var n=o(e,t);if(void 0===n)throw new G("`beforeSend` method has to return `null` or a valid event.");return Object(l.m)(n)?n.then((function(e){return e}),(function(e){throw new G("beforeSend rejected with "+e)})):n})).then((function(e){if(null===e)throw new G("`beforeSend` returned `null`, will not send event.");var t=n&&n.getSession&&n.getSession();return!s&&t&&r._updateSessionFromEvent(t,e),r._sendEvent(e),e})).then(null,(function(e){if(e instanceof G)throw e;throw r.captureException(e,{data:{__sentry__:!0},originalException:e}),new G("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))},e.prototype._process=function(e){var t=this;this._processing+=1,e.then((function(e){return t._processing-=1,e}),(function(e){return t._processing-=1,e}))},e}(),te=function(){function e(){}return e.prototype.sendEvent=function(e){return p.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:s.Skipped})},e.prototype.close=function(e){return p.resolve(!0)},e}(),ne=function(){function e(e){this._options=e,this._options.dsn||w.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype.eventFromException=function(e,t){throw new G("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new G("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,(function(e){w.error("Error while sending event: "+e)}))},e.prototype.sendSession=function(e){this._transport.sendSession?this._transport.sendSession(e).then(null,(function(e){w.error("Error while sending session: "+e)})):w.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.getTransport=function(){return this._transport},e.prototype._setupTransport=function(){return new te},e}();function re(){if(!("fetch"in Object(h.e)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function ie(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function oe(){if(!re())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}var ae=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,se=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ue=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ce=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,le=/\((\S*)(?::(\d+))(?::(\d+))\)/,fe=/Minified React error #\d+;/i;function de(e){var t=null,n=0;e&&("number"==typeof e.framesToPop?n=e.framesToPop:fe.test(e.message)&&(n=1));try{if(t=function(e){if(!e||!e.stacktrace)return null;for(var t,n=e.stacktrace,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,i=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,o=n.split("\n"),a=[],s=0;s<o.length;s+=2){var u=null;(t=r.exec(o[s]))?u={url:t[2],func:t[3],args:[],line:+t[1],column:null}:(t=i.exec(o[s]))&&(u={url:t[6],func:t[3]||t[4],args:t[5]?t[5].split(","):[],line:+t[1],column:+t[2]}),u&&(!u.func&&u.line&&(u.func="?"),a.push(u))}if(!a.length)return null;return{message:he(e),name:e.name,stack:a}}(e))return pe(t,n)}catch(e){}try{if(t=function(e){if(!e||!e.stack)return null;for(var t,n,r,i=[],o=e.stack.split("\n"),a=0;a<o.length;++a){if(n=ae.exec(o[a])){var s=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(t=le.exec(n[2]))&&(n[2]=t[1],n[3]=t[2],n[4]=t[3]);var u=n[2]&&0===n[2].indexOf("address at ")?n[2].substr("address at ".length):n[2],c=n[1]||"?",l=-1!==c.indexOf("safari-extension"),f=-1!==c.indexOf("safari-web-extension");(l||f)&&(c=-1!==c.indexOf("@")?c.split("@")[0]:"?",u=l?"safari-extension:"+u:"safari-web-extension:"+u),r={url:u,func:c,args:s?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=ue.exec(o[a]))r={url:n[2],func:n[1]||"?",args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=se.exec(o[a])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(t=ce.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=t[1],n[4]=t[2],n[5]=""):0!==a||n[5]||void 0===e.columnNumber||(i[0].column=e.columnNumber+1),r={url:n[3],func:n[1]||"?",args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!r.func&&r.line&&(r.func="?"),i.push(r)}if(!i.length)return null;return{message:he(e),name:e.name,stack:i}}(e))return pe(t,n)}catch(e){}return{message:he(e),name:e&&e.name,stack:[],failed:!0}}function pe(e,t){try{return Object(u.a)(Object(u.a)({},e),{stack:e.stack.slice(t)})}catch(t){return e}}function he(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function ge(e){var t=ve(e.stack),n={type:e.name,value:e.message};return t&&t.length&&(n.stacktrace={frames:t}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function me(e){return{exception:{values:[ge(e)]}}}function ve(e){if(!e||!e.length)return[];var t=e,n=t[0].func||"",r=t[t.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map((function(e){return{colno:null===e.column?void 0:e.column,filename:e.url||t[0].url,function:e.func||"?",in_app:!0,lineno:null===e.line?void 0:e.line}})).reverse()}function ye(e,t,n){var r=_e(t,n&&n.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return Object(h.a)(r,{handled:!0,type:"generic"}),r.level=a.Error,n&&n.event_id&&(r.event_id=n.event_id),p.resolve(r)}function be(e,t,n,r){void 0===n&&(n=a.Info);var i=we(t,r&&r.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),p.resolve(i)}function _e(e,t,n){var r;if(void 0===n&&(n={}),Object(l.e)(e)&&e.error)return r=me(de(e=e.error));if(Object(l.a)(e)||Object(l.b)(e)){var i=e,o=i.name||(Object(l.a)(i)?"DOMError":"DOMException"),a=i.message?o+": "+i.message:o;return r=we(a,t,n),Object(h.b)(r,a),"code"in i&&(r.tags=Object(u.a)(Object(u.a)({},r.tags),{"DOMException.code":""+i.code})),r}return Object(l.d)(e)?r=me(de(e)):Object(l.h)(e)||Object(l.f)(e)?(r=function(e,t,n){var r={exception:{values:[{type:Object(l.f)(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+Object(x.b)(e)}]},extra:{__serialized__:Object(x.e)(e)}};if(t){var i=ve(de(t).stack);r.stacktrace={frames:i}}return r}(e,t,n.rejection),Object(h.a)(r,{synthetic:!0}),r):(r=we(e,t,n),Object(h.b)(r,""+e,void 0),Object(h.a)(r,{synthetic:!0}),r)}function we(e,t,n){void 0===n&&(n={});var r={message:e};if(n.attachStacktrace&&t){var i=ve(de(t).stack);r.stacktrace={frames:i}}return r}function $e(e){if(e.metadata&&e.metadata.sdk){var t=e.metadata.sdk;return{name:t.name,version:t.version}}}function xe(e,t){return t?(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=Object(u.e)(e.sdk.integrations||[],t.integrations||[]),e.sdk.packages=Object(u.e)(e.sdk.packages||[],t.packages||[]),e):e}function qe(e,t){var n=$e(t);return{body:JSON.stringify(Object(u.a)({sent_at:(new Date).toISOString()},n&&{sdk:n}))+"\n"+JSON.stringify({type:"session"})+"\n"+JSON.stringify(e),type:"session",url:t.getEnvelopeEndpointWithUrlEncodedAuth()}}function Se(e,t){var n=$e(t),r=e.type||"event",i="transaction"===r,o=e.debug_meta||{},a=o.transactionSampling,s=Object(u.d)(o,["transactionSampling"]),c=a||{},l=c.method,f=c.rate;0===Object.keys(s).length?delete e.debug_meta:e.debug_meta=s;var d={body:JSON.stringify(n?xe(e,t.metadata.sdk):e),type:r,url:i?t.getEnvelopeEndpointWithUrlEncodedAuth():t.getStoreEndpointWithUrlEncodedAuth()};if(i){var p=JSON.stringify(Object(u.a)({event_id:e.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}))+"\n"+JSON.stringify({type:e.type,sample_rates:[{id:l,rate:f}]})+"\n"+d.body;d.body=p}return d}var Ee=function(){function e(e,t){void 0===t&&(t={}),this.dsn=e,this._dsnObject=new K(e),this.metadata=t}return e.prototype.getDsn=function(){return this._dsnObject},e.prototype.getBaseApiEndpoint=function(){var e=this._dsnObject,t=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return t+"//"+e.host+n+(e.path?"/"+e.path:"")+"/api/"},e.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},e.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},e.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},e.prototype.getStoreEndpointPath=function(){var e=this._dsnObject;return(e.path?"/"+e.path:"")+"/api/"+e.projectId+"/store/"},e.prototype.getRequestHeaders=function(e,t){var n=this._dsnObject,r=["Sentry sentry_version=7"];return r.push("sentry_client="+e+"/"+t),r.push("sentry_key="+n.publicKey),n.pass&&r.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}},e.prototype.getReportDialogEndpoint=function(e){void 0===e&&(e={});var t=this._dsnObject,n=this.getBaseApiEndpoint()+"embed/error-page/",r=[];for(var i in r.push("dsn="+t.toString()),e)if("dsn"!==i)if("user"===i){if(!e.user)continue;e.user.name&&r.push("name="+encodeURIComponent(e.user.name)),e.user.email&&r.push("email="+encodeURIComponent(e.user.email))}else r.push(encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return r.length?n+"?"+r.join("&"):n},e.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},e.prototype._getIngestEndpoint=function(e){return""+this.getBaseApiEndpoint()+this._dsnObject.projectId+"/"+e+"/"},e.prototype._encodedAuth=function(){var e={sentry_key:this._dsnObject.publicKey,sentry_version:"7"};return Object(x.f)(e)},e}(),ke=function(){function e(e){this._limit=e,this._buffer=[]}return e.prototype.isReady=function(){return void 0===this._limit||this.length()<this._limit},e.prototype.add=function(e){var t=this;return this.isReady()?(-1===this._buffer.indexOf(e)&&this._buffer.push(e),e.then((function(){return t.remove(e)})).then(null,(function(){return t.remove(e).then(null,(function(){}))})),e):p.reject(new G("Not adding Promise due to buffer limit reached."))},e.prototype.remove=function(e){return this._buffer.splice(this._buffer.indexOf(e),1)[0]},e.prototype.length=function(){return this._buffer.length},e.prototype.drain=function(e){var t=this;return new p((function(n){var r=setTimeout((function(){e&&e>0&&n(!1)}),e);p.all(t._buffer).then((function(){clearTimeout(r),n(!0)})).then(null,(function(){n(!0)}))}))},e}(),Ce={event:"error",transaction:"transaction",session:"session"},Oe=function(){function e(e){this.options=e,this._buffer=new ke(30),this._rateLimits={},this._api=new Ee(e.dsn,e._metadata),this.url=this._api.getStoreEndpointWithUrlEncodedAuth()}return e.prototype.sendEvent=function(e){throw new G("Transport Class has to implement `sendEvent` method")},e.prototype.close=function(e){return this._buffer.drain(e)},e.prototype._handleResponse=function(e){var t=e.requestType,n=e.response,r=e.headers,i=e.resolve,o=e.reject,a=s.fromHttpCode(n.status);this._handleRateLimit(r)&&w.warn("Too many requests, backing off until: "+this._disabledUntil(t)),a!==s.Success?o(n):i({status:a})},e.prototype._disabledUntil=function(e){var t=Ce[e];return this._rateLimits[t]||this._rateLimits.all},e.prototype._isRateLimited=function(e){return this._disabledUntil(e)>new Date(Date.now())},e.prototype._handleRateLimit=function(e){var t,n,r,i,o=Date.now(),a=e["x-sentry-rate-limits"],s=e["retry-after"];if(a){try{for(var c=Object(u.f)(a.trim().split(",")),l=c.next();!l.done;l=c.next()){var f=l.value.split(":",2),d=parseInt(f[0],10),p=1e3*(isNaN(d)?60:d);try{for(var g=(r=void 0,Object(u.f)(f[1].split(";"))),m=g.next();!m.done;m=g.next()){var v=m.value;this._rateLimits[v||"all"]=new Date(o+p)}}catch(e){r={error:e}}finally{try{m&&!m.done&&(i=g.return)&&i.call(g)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return!0}return!!s&&(this._rateLimits.all=new Date(o+Object(h.g)(o,s)),!0)},e}();var Te=function(e){function t(t,n){void 0===n&&(n=function(){var e,t,n=Object(h.e)();if(ie(n.fetch))return n.fetch.bind(n);var r=n.document,i=n.fetch;if("function"==typeof(null===(e=r)||void 0===e?void 0:e.createElement))try{var o=r.createElement("iframe");o.hidden=!0,r.head.appendChild(o),(null===(t=o.contentWindow)||void 0===t?void 0:t.fetch)&&(i=o.contentWindow.fetch),r.head.removeChild(o)}catch(e){w.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return i.bind(n)}());var r=e.call(this,t)||this;return r._fetch=n,r}return Object(u.b)(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(Se(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(qe(e,this._api),e)},t.prototype._sendRequest=function(e,t){var n=this;if(this._isRateLimited(e.type))return Promise.reject({event:t,type:e.type,reason:"Transport locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429});var r={body:e.body,method:"POST",referrerPolicy:oe()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(r,this.options.fetchParameters),void 0!==this.options.headers&&(r.headers=this.options.headers),this._buffer.add(new p((function(t,i){n._fetch(e.url,r).then((function(r){var o={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};n._handleResponse({requestType:e.type,response:r,headers:o,resolve:t,reject:i})})).catch(i)})))},t}(Oe),De=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.b)(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(Se(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(qe(e,this._api),e)},t.prototype._sendRequest=function(e,t){var n=this;return this._isRateLimited(e.type)?Promise.reject({event:t,type:e.type,reason:"Transport locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429}):this._buffer.add(new p((function(t,r){var i=new XMLHttpRequest;for(var o in i.onreadystatechange=function(){if(4===i.readyState){var o={"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")};n._handleResponse({requestType:e.type,response:i,headers:o,resolve:t,reject:r})}},i.open("POST",e.url),n.options.headers)n.options.headers.hasOwnProperty(o)&&i.setRequestHeader(o,n.options.headers[o]);i.send(e.body)})))},t}(Oe),Ae=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.b)(t,e),t.prototype.eventFromException=function(e,t){return ye(this._options,e,t)},t.prototype.eventFromMessage=function(e,t,n){return void 0===t&&(t=a.Info),be(this._options,e,t,n)},t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=Object(u.a)(Object(u.a)({},this._options.transportOptions),{dsn:this._options.dsn,_metadata:this._options._metadata});return this._options.transport?new this._options.transport(t):re()?new Te(t):new De(t)},t}(ne),Ie=0;function shouldIgnoreOnError(){return Ie>0}function ignoreNextOnError(){Ie+=1,setTimeout((function(){Ie-=1}))}function Pe(e,t,n){if(void 0===t&&(t={}),"function"!=typeof e)return e;try{if(e.__sentry__)return e;if(e.__sentry_wrapped__)return e.__sentry_wrapped__}catch(t){return e}var r=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var i=r.map((function(e){return Pe(e,t)}));return e.handleEvent?e.handleEvent.apply(this,i):e.apply(this,i)}catch(e){throw ignoreNextOnError(),V((function(n){n.addEventProcessor((function(e){var n=Object(u.a)({},e);return t.mechanism&&(Object(h.b)(n,void 0,void 0),Object(h.a)(n,t.mechanism)),n.extra=Object(u.a)(Object(u.a)({},n.extra),{arguments:r}),n})),I(e)})),e}};try{for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch(e){}e.prototype=e.prototype||{},r.prototype=e.prototype,Object.defineProperty(e,"__sentry_wrapped__",{enumerable:!1,value:r}),Object.defineProperties(r,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:e}});try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:function(){return e.name}})}catch(e){}return r}function Me(e){if(void 0===e&&(e={}),e.eventId)if(e.dsn){var t=document.createElement("script");t.async=!0,t.src=new Ee(e.dsn).getReportDialogEndpoint(e),e.onLoad&&(t.onload=e.onLoad),(document.head||document.body).appendChild(t)}else w.error("Missing dsn option in showReportDialog call");else w.error("Missing eventId option in showReportDialog call")}var je,Re=n(199),Fe=Object(h.e)(),Ne={},Le={};function Ue(e){if(!Le[e])switch(Le[e]=!0,e){case"console":!function(){if(!("console"in Fe))return;["debug","info","warn","error","log","assert"].forEach((function(e){e in Fe.console&&Object(x.c)(Fe.console,e,(function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];He("console",{args:n,level:e}),t&&Function.prototype.apply.call(t,Fe.console,n)}}))}))}();break;case"dom":!function(){if(!("document"in Fe))return;var e=He.bind(null,"dom"),t=Ge(e,!0);Fe.document.addEventListener("click",t,!1),Fe.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((function(t){var n=Fe[t]&&Fe[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Object(x.c)(n,"addEventListener",(function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{var o=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=o[n]=o[n]||{refCount:0};if(!a.handler){var s=Ge(e);a.handler=s,t.call(this,n,s,i)}a.refCount+=1}catch(e){}return t.call(this,n,r,i)}})),Object(x.c)(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{var i=this.__sentry_instrumentation_handlers__||{},o=i[t];o&&(o.refCount-=1,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in Fe))return;var e=[],t=[],n=XMLHttpRequest.prototype;Object(x.c)(n,"open",(function(n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=this,a=r[1];o.__sentry_xhr__={method:Object(l.k)(r[0])?r[0].toUpperCase():r[0],url:r[1]},Object(l.k)(a)&&"POST"===o.__sentry_xhr__.method&&a.match(/sentry_key/)&&(o.__sentry_own_request__=!0);var s=function(){if(4===o.readyState){try{o.__sentry_xhr__&&(o.__sentry_xhr__.status_code=o.status)}catch(e){}try{var n=e.indexOf(o);if(-1!==n){e.splice(n);var i=t.splice(n)[0];o.__sentry_xhr__&&void 0!==i[0]&&(o.__sentry_xhr__.body=i[0])}}catch(e){}He("xhr",{args:r,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:o})}};return"onreadystatechange"in o&&"function"==typeof o.onreadystatechange?Object(x.c)(o,"onreadystatechange",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return s(),e.apply(o,t)}})):o.addEventListener("readystatechange",s),n.apply(o,r)}})),Object(x.c)(n,"send",(function(n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e.push(this),t.push(r),He("xhr",{args:r,startTimestamp:Date.now(),xhr:this}),n.apply(this,r)}}))}();break;case"fetch":!function(){if(!function(){if(!re())return!1;var e=Object(h.e)();if(ie(e.fetch))return!0;var t=!1,n=e.document;if(n&&"function"==typeof n.createElement)try{var r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=ie(r.contentWindow.fetch)),n.head.removeChild(r)}catch(e){w.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t}())return;Object(x.c)(Fe,"fetch",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r={args:t,fetchData:{method:Ve(t),url:ze(t)},startTimestamp:Date.now()};return He("fetch",Object(u.a)({},r)),e.apply(Fe,t).then((function(e){return He("fetch",Object(u.a)(Object(u.a)({},r),{endTimestamp:Date.now(),response:e})),e}),(function(e){throw He("fetch",Object(u.a)(Object(u.a)({},r),{endTimestamp:Date.now(),error:e})),e}))}}))}();break;case"history":!function(){if(e=Object(h.e)(),t=e.chrome,n=t&&t.app&&t.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState,n||!r)return;var e,t,n,r;var i=Fe.onpopstate;function o(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length>2?t[2]:void 0;if(r){var i=je,o=String(r);je=o,He("history",{from:i,to:o})}return e.apply(this,t)}}Fe.onpopstate=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Fe.location.href,r=je;if(je=n,He("history",{from:r,to:n}),i)try{return i.apply(this,e)}catch(e){}},Object(x.c)(Fe.history,"pushState",o),Object(x.c)(Fe.history,"replaceState",o)}();break;case"error":!function instrumentError(){Xe=Fe.onerror,Fe.onerror=function(e,t,n,r,i){return He("error",{column:r,error:i,line:n,msg:e,url:t}),!!Xe&&Xe.apply(this,arguments)}}();break;case"unhandledrejection":Ke=Fe.onunhandledrejection,Fe.onunhandledrejection=function(e){return He("unhandledrejection",e),!Ke||Ke.apply(this,arguments)};break;default:w.warn("unknown instrumentation type:",e)}}function Be(e){e&&"string"==typeof e.type&&"function"==typeof e.callback&&(Ne[e.type]=Ne[e.type]||[],Ne[e.type].push(e.callback),Ue(e.type))}function He(e,t){var n,r;if(e&&Ne[e])try{for(var i=Object(u.f)(Ne[e]||[]),o=i.next();!o.done;o=i.next()){var a=o.value;try{a(t)}catch(t){w.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+Object(Re.a)(a)+"\nError: "+t)}}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}function Ve(e){return void 0===e&&(e=[]),"Request"in Fe&&Object(l.g)(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function ze(e){return void 0===e&&(e=[]),"string"==typeof e[0]?e[0]:"Request"in Fe&&Object(l.g)(e[0],Request)?e[0].url:String(e[0])}var We,Ye;function Ge(e,t){return void 0===t&&(t=!1),function(n){if(n&&Ye!==n&&!function(e){if("keypress"!==e.type)return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(void 0===We||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(Ye,n))&&(e({event:n,name:r,global:t}),Ye=n),clearTimeout(We),We=Fe.setTimeout((function(){We=void 0}),1e3)}}}var Xe=null;var Ke=null;var Je,Ze=n(286),Qe=function(){function e(t){this.name=e.id,this._options=Object(u.a)({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype.addSentryBreadcrumb=function(e){this._options.sentry&&C().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:Object(h.d)(e)},{event:e})},e.prototype.setupOnce=function(){var e=this;this._options.console&&Be({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._consoleBreadcrumb.apply(e,Object(u.e)(t))},type:"console"}),this._options.dom&&Be({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._domBreadcrumb.apply(e,Object(u.e)(t))},type:"dom"}),this._options.xhr&&Be({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._xhrBreadcrumb.apply(e,Object(u.e)(t))},type:"xhr"}),this._options.fetch&&Be({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._fetchBreadcrumb.apply(e,Object(u.e)(t))},type:"fetch"}),this._options.history&&Be({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._historyBreadcrumb.apply(e,Object(u.e)(t))},type:"history"})},e.prototype._consoleBreadcrumb=function(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:a.fromString(e.level),message:Object(J.b)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: "+(Object(J.b)(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1)}C().addBreadcrumb(t,{input:e.args,level:e.level})},e.prototype._domBreadcrumb=function(e){var t;try{t=e.event.target?Object(Ze.a)(e.event.target):Object(Ze.a)(e.event)}catch(e){t="<unknown>"}0!==t.length&&C().addBreadcrumb({category:"ui."+e.name,message:t},{event:e.event,name:e.name,global:e.global})},e.prototype._xhrBreadcrumb=function(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;var t=e.xhr.__sentry_xhr__||{},n=t.method,r=t.url,i=t.status_code,o=t.body;C().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:i},type:"http"},{xhr:e.xhr,input:o})}else;},e.prototype._fetchBreadcrumb=function(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?C().addBreadcrumb({category:"fetch",data:e.fetchData,level:a.Error,type:"http"},{data:e.error,input:e.args}):C().addBreadcrumb({category:"fetch",data:Object(u.a)(Object(u.a)({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))},e.prototype._historyBreadcrumb=function(e){var t=Object(h.e)(),n=e.from,r=e.to,i=Object(h.h)(t.location.href),o=Object(h.h)(n),a=Object(h.h)(r);o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),C().addBreadcrumb({category:"navigation",data:{from:n,to:r}})},e.id="Breadcrumbs",e}(),et=function(e){function t(t){void 0===t&&(t={});return t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:W}],version:W},e.call(this,Ae,t)||this}return Object(u.b)(t,e),t.prototype.showReportDialog=function(e){void 0===e&&(e={}),Object(h.e)().document&&(this._isEnabled()?Me(Object(u.a)(Object(u.a)({},e),{dsn:e.dsn||this.getDsn()})):w.error("Trying to call showReportDialog with Sentry Client disabled"))},t.prototype._prepareEvent=function(t,n,r){return t.platform=t.platform||"javascript",e.prototype._prepareEvent.call(this,t,n,r)},t.prototype._sendEvent=function(t){var n=this.getIntegration(Qe);n&&n.addSentryBreadcrumb(t),e.prototype._sendEvent.call(this,t)},t}(ee),tt=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){Je=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.__sentry_original__||this;return Je.apply(n,e)}},e.id="FunctionToString",e}(),nt=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],rt=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(){v((function(t){var n=C();if(!n)return t;var r=n.getIntegration(e);if(r){var i=n.getClient(),o=i?i.getOptions():{},a="function"==typeof r._mergeOptions?r._mergeOptions(o):{};return"function"!=typeof r._shouldDropEvent?t:r._shouldDropEvent(t,a)?null:t}return t}))},e.prototype._shouldDropEvent=function(e,t){return this._isSentryError(e,t)?(w.warn("Event dropped due to being internal Sentry Error.\nEvent: "+Object(h.d)(e)),!0):this._isIgnoredError(e,t)?(w.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+Object(h.d)(e)),!0):this._isDeniedUrl(e,t)?(w.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+Object(h.d)(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0):!this._isAllowedUrl(e,t)&&(w.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+Object(h.d)(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0)},e.prototype._isSentryError=function(e,t){if(!t.ignoreInternal)return!1;try{return e&&e.exception&&e.exception.values&&e.exception.values[0]&&"SentryError"===e.exception.values[0].type||!1}catch(e){return!1}},e.prototype._isIgnoredError=function(e,t){return!(!t.ignoreErrors||!t.ignoreErrors.length)&&this._getPossibleEventMessages(e).some((function(e){return t.ignoreErrors.some((function(t){return Object(J.a)(e,t)}))}))},e.prototype._isDeniedUrl=function(e,t){if(!t.denyUrls||!t.denyUrls.length)return!1;var n=this._getEventFilterUrl(e);return!!n&&t.denyUrls.some((function(e){return Object(J.a)(n,e)}))},e.prototype._isAllowedUrl=function(e,t){if(!t.allowUrls||!t.allowUrls.length)return!0;var n=this._getEventFilterUrl(e);return!n||t.allowUrls.some((function(e){return Object(J.a)(n,e)}))},e.prototype._mergeOptions=function(e){return void 0===e&&(e={}),{allowUrls:Object(u.e)(this._options.whitelistUrls||[],this._options.allowUrls||[],e.whitelistUrls||[],e.allowUrls||[]),denyUrls:Object(u.e)(this._options.blacklistUrls||[],this._options.denyUrls||[],e.blacklistUrls||[],e.denyUrls||[]),ignoreErrors:Object(u.e)(this._options.ignoreErrors||[],e.ignoreErrors||[],nt),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal}},e.prototype._getPossibleEventMessages=function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,r=void 0===n?"":n,i=t.value,o=void 0===i?"":i;return[""+o,r+": "+o]}catch(t){return w.error("Cannot extract message for event "+Object(h.d)(e)),[]}return[]},e.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace){var t=e.stacktrace.frames;return t&&t[t.length-1].filename||null}if(e.exception){var n=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return n&&n[n.length-1].filename||null}return null}catch(t){return w.error("Cannot extract url for event "+Object(h.d)(e)),null}},e.id="InboundFilters",e}();var it=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],ot=function(){function e(t){this.name=e.id,this._options=Object(u.a)({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return e.prototype.setupOnce=function(){var e=Object(h.e)();(this._options.setTimeout&&Object(x.c)(e,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&Object(x.c)(e,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&Object(x.c)(e,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&Object(x.c)(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget)&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:it).forEach(this._wrapEventTarget.bind(this))},e.prototype._wrapTimeFunction=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[0];return t[0]=Pe(r,{mechanism:{data:{function:Object(Re.a)(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}},e.prototype._wrapRAF=function(e){return function(t){return e.call(this,Pe(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Object(Re.a)(e)},handled:!0,type:"instrument"}}))}},e.prototype._wrapEventTarget=function(e){var t=Object(h.e)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Object(x.c)(n,"addEventListener",(function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=Pe(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:Object(Re.a)(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.call(this,n,Pe(r,{mechanism:{data:{function:"addEventListener",handler:Object(Re.a)(r),target:e},handled:!0,type:"instrument"}}),i)}})),Object(x.c)(n,"removeEventListener",(function(e){return function(t,n,r){var i,o=n;try{var a=null===(i=o)||void 0===i?void 0:i.__sentry_wrapped__;a&&e.call(this,t,a,r)}catch(e){}return e.call(this,t,o,r)}})))},e.prototype._wrapXHR=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this,i=["onload","onerror","onprogress","onreadystatechange"];return i.forEach((function(e){e in r&&"function"==typeof r[e]&&Object(x.c)(r,e,(function(t){var n={mechanism:{data:{function:e,handler:Object(Re.a)(t)},handled:!0,type:"instrument"}};return t.__sentry_original__&&(n.mechanism.data.handler=Object(Re.a)(t.__sentry_original__)),Pe(t,n)}))})),e.apply(this,t)}},e.id="TryCatch",e}(),at=function(){function e(t){this.name=e.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=Object(u.a)({onerror:!0,onunhandledrejection:!0},t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(w.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(w.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},e.prototype._installGlobalOnErrorHandler=function(){var t=this;this._onErrorHandlerInstalled||(Be({callback:function(n){var r=n.error,i=C(),o=i.getIntegration(e),a=r&&!0===r.__sentry_own_request__;if(o&&!shouldIgnoreOnError()&&!a){var s=i.getClient(),u=Object(l.i)(r)?t._eventFromIncompleteOnError(n.msg,n.url,n.line,n.column):t._enhanceEventWithInitialFrame(_e(r,void 0,{attachStacktrace:s&&s.getOptions().attachStacktrace,rejection:!1}),n.url,n.line,n.column);Object(h.a)(u,{handled:!1,type:"onerror"}),i.captureEvent(u,{originalException:r})}},type:"error"}),this._onErrorHandlerInstalled=!0)},e.prototype._installGlobalOnUnhandledRejectionHandler=function(){var t=this;this._onUnhandledRejectionHandlerInstalled||(Be({callback:function(n){var r=n;try{"reason"in n?r=n.reason:"detail"in n&&"reason"in n.detail&&(r=n.detail.reason)}catch(e){}var i=C(),o=i.getIntegration(e),s=r&&!0===r.__sentry_own_request__;if(!o||shouldIgnoreOnError()||s)return!0;var u=i.getClient(),c=Object(l.i)(r)?t._eventFromRejectionWithPrimitive(r):_e(r,void 0,{attachStacktrace:u&&u.getOptions().attachStacktrace,rejection:!0});c.level=a.Error,Object(h.a)(c,{handled:!1,type:"onunhandledrejection"}),i.captureEvent(c,{originalException:r})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},e.prototype._eventFromIncompleteOnError=function(e,t,n,r){var i,o=Object(l.e)(e)?e.message:e;if(Object(l.k)(o)){var a=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);a&&(i=a[1],o=a[2])}var s={exception:{values:[{type:i||"Error",value:o}]}};return this._enhanceEventWithInitialFrame(s,t,n,r)},e.prototype._eventFromRejectionWithPrimitive=function(e){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(e)}]}}},e.prototype._enhanceEventWithInitialFrame=function(e,t,n,r){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].stacktrace=e.exception.values[0].stacktrace||{},e.exception.values[0].stacktrace.frames=e.exception.values[0].stacktrace.frames||[];var i=isNaN(parseInt(r,10))?void 0:r,o=isNaN(parseInt(n,10))?void 0:n,a=Object(l.k)(t)&&t.length>0?t:Object(h.f)();return 0===e.exception.values[0].stacktrace.frames.length&&e.exception.values[0].stacktrace.frames.push({colno:i,filename:a,function:"?",in_app:!0,lineno:o}),e},e.id="GlobalHandlers",e}(),st=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){v((function(t,n){var r=C().getIntegration(e);return r?r._handler(t,n):t}))},e.prototype._handler=function(e,t){if(!(e.exception&&e.exception.values&&t&&Object(l.g)(t.originalException,Error)))return e;var n=this._walkErrorTree(t.originalException,this._key);return e.exception.values=Object(u.e)(n,e.exception.values),e},e.prototype._walkErrorTree=function(e,t,n){if(void 0===n&&(n=[]),!Object(l.g)(e[t],Error)||n.length+1>=this._limit)return n;var r=ge(de(e[t]));return this._walkErrorTree(e[t],t,Object(u.e)([r],n))},e.id="LinkedErrors",e}(),ut=Object(h.e)(),ct=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){v((function(t){var n,r,i;if(C().getIntegration(e)){if(!ut.navigator&&!ut.location&&!ut.document)return t;var o=(null===(n=t.request)||void 0===n?void 0:n.url)||(null===(r=ut.location)||void 0===r?void 0:r.href),a=(ut.document||{}).referrer,s=(ut.navigator||{}).userAgent,c=Object(u.a)(Object(u.a)(Object(u.a)({},null===(i=t.request)||void 0===i?void 0:i.headers),a&&{Referer:a}),s&&{"User-Agent":s}),l=Object(u.a)(Object(u.a)({},o&&{url:o}),{headers:c});return Object(u.a)(Object(u.a)({},t),{request:l})}return t}))},e.id="UserAgent",e}(),lt=[new r.InboundFilters,new r.FunctionToString,new ot,new Qe,new at,new st,new ct];function ft(e){if(void 0===e&&(e={}),void 0===e.defaultIntegrations&&(e.defaultIntegrations=lt),void 0===e.release){var t=Object(h.e)();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),function(e,t){!0===t.debug&&w.enable();var n=C(),r=new e(t);n.bindClient(r)}(et,e),e.autoSessionTracking&&function(){if(void 0===Object(h.e)().document)return void w.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");var e=C();if("function"!=typeof e.startSession||"function"!=typeof e.captureSession)return;e.startSession(),e.captureSession(),Be({callback:function(){e.startSession(),e.captureSession()},type:"history"})}()}function dt(e){void 0===e&&(e={}),e.eventId||(e.eventId=C().lastEventId());var t=C().getClient();t&&t.showReportDialog(e)}function pt(){return C().lastEventId()}function ht(){}function gt(e){e()}function mt(e){var t=C().getClient();return t?t.flush(e):p.reject(!1)}function vt(e){var t=C().getClient();return t?t.close(e):p.reject(!1)}function yt(e){return Pe(e)()}var bt="sentry.javascript.browser",_t={},wt=Object(h.e)();wt.Sentry&&wt.Sentry.Integrations&&(_t=wt.Sentry.Integrations);var $t=Object(u.a)(Object(u.a)(Object(u.a)({},_t),r),i)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return e.prototype.memoize=function(e){if(this._hasWeakSet)return!!this._inner.has(e)||(this._inner.add(e),!1);for(var t=0;t<this._inner.length;t++){if(this._inner[t]===e)return!0}return this._inner.push(e),!1},e.prototype.unmemoize=function(e){if(this._hasWeakSet)this._inner.delete(e);else for(var t=0;t<this._inner.length;t++)if(this._inner[t]===e){this._inner.splice(t,1);break}},e}()},,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(43),i=n(209),o=r.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){var r=n(50);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){var r=n(31);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){"use strict";var r=n(221),i=n(220);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(e,t,n){"use strict";var r=n(138).forEach,i=n(225),o=n(100),a=i("forEach"),s=o("forEach");e.exports=a&&s?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){(function(t){e.exports=t.$=n(472)}).call(this,n(44))},function(e,t,n){var r,i,o;i="undefined"!=typeof window?window:this,o=function(n,i){var o=[],a=n.document,s=o.slice,u=o.concat,c=o.push,l=o.indexOf,f={},d=f.toString,p=f.hasOwnProperty,h={},g=function(e,t){return new g.fn.init(e,t)},m=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,v=/^-ms-/,y=/-([\da-z])/gi,b=function(e,t){return t.toUpperCase()};function _(e){var t=!!e&&"length"in e&&e.length,n=g.type(e);return"function"!==n&&!g.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}g.fn=g.prototype={jquery:"2.2.4",constructor:g,selector:"",length:0,toArray:function(){return s.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:s.call(this)},pushStack:function(e){var t=g.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return g.each(this,e)},map:function(e){return this.pushStack(g.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:o.sort,splice:o.splice},g.extend=g.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||g.isFunction(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],a!==(r=e[t])&&(c&&r&&(g.isPlainObject(r)||(i=g.isArray(r)))?(i?(i=!1,o=n&&g.isArray(n)?n:[]):o=n&&g.isPlainObject(n)?n:{},a[t]=g.extend(c,o,r)):void 0!==r&&(a[t]=r));return a},g.extend({expando:"jQuery"+("2.2.4"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===g.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=e&&e.toString();return!g.isArray(e)&&t-parseFloat(t)+1>=0},isPlainObject:function(e){var t;if("object"!==g.type(e)||e.nodeType||g.isWindow(e))return!1;if(e.constructor&&!p.call(e,"constructor")&&!p.call(e.constructor.prototype||{},"isPrototypeOf"))return!1;for(t in e);return void 0===t||p.call(e,t)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[d.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;(e=g.trim(e))&&(1===e.indexOf("use strict")?((t=a.createElement("script")).text=e,a.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(v,"ms-").replace(y,b)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,r=0;if(_(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(m,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(_(Object(e))?g.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:l.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(_(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return u.apply([],a)},guid:1,proxy:function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),g.isFunction(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||g.guid++,i},now:Date.now,support:h}),"function"==typeof Symbol&&(g.fn[Symbol.iterator]=o[Symbol.iterator]),g.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){f["[object "+t+"]"]=t.toLowerCase()}));var w=function(e){var t,n,r,i,o,a,s,u,c,l,f,d,p,h,g,m,v,y,b,_="sizzle"+1*new Date,w=e.document,$=0,x=0,q=ie(),S=ie(),E=ie(),k=function(e,t){return e===t&&(f=!0),0},C={}.hasOwnProperty,O=[],T=O.pop,D=O.push,A=O.push,I=O.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},M="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",j="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",F="\\["+j+"*("+R+")(?:"+j+"*([*^$|!~]?=)"+j+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+j+"*\\]",N=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",L=new RegExp(j+"+","g"),U=new RegExp("^"+j+"+|((?:^|[^\\\\])(?:\\\\.)*)"+j+"+$","g"),B=new RegExp("^"+j+"*,"+j+"*"),H=new RegExp("^"+j+"*([>+~]|"+j+")"+j+"*"),V=new RegExp("="+j+"*([^\\]'\"]*?)"+j+"*\\]","g"),z=new RegExp(N),W=new RegExp("^"+R+"$"),Y={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+j+"*(even|odd|(([+-]|)(\\d*)n|)"+j+"*(?:([+-]|)"+j+"*(\\d+)|))"+j+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+j+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+j+"*((?:-\\d)?\\d*)"+j+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,Q=/'|\\/g,ee=new RegExp("\\\\([\\da-f]{1,6}"+j+"?|("+j+")|.)","ig"),te=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},ne=function(){d()};try{A.apply(O=I.call(w.childNodes),w.childNodes),O[w.childNodes.length].nodeType}catch(e){A={apply:O.length?function(e,t){D.apply(e,I.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function re(e,t,r,i){var o,s,c,l,f,h,v,y,$=t&&t.ownerDocument,x=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==x&&9!==x&&11!==x)return r;if(!i&&((t?t.ownerDocument||t:w)!==p&&d(t),t=t||p,g)){if(11!==x&&(h=J.exec(e)))if(o=h[1]){if(9===x){if(!(c=t.getElementById(o)))return r;if(c.id===o)return r.push(c),r}else if($&&(c=$.getElementById(o))&&b(t,c)&&c.id===o)return r.push(c),r}else{if(h[2])return A.apply(r,t.getElementsByTagName(e)),r;if((o=h[3])&&n.getElementsByClassName&&t.getElementsByClassName)return A.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!E[e+" "]&&(!m||!m.test(e))){if(1!==x)$=t,y=e;else if("object"!==t.nodeName.toLowerCase()){for((l=t.getAttribute("id"))?l=l.replace(Q,"\\$&"):t.setAttribute("id",l=_),s=(v=a(e)).length,f=W.test(l)?"#"+l:"[id='"+l+"']";s--;)v[s]=f+" "+he(v[s]);y=v.join(","),$=Z.test(e)&&de(t.parentNode)||t}if(y)try{return A.apply(r,$.querySelectorAll(y)),r}catch(e){}finally{l===_&&t.removeAttribute("id")}}}return u(e.replace(U,"$1"),t,r,i)}function ie(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function oe(e){return e[_]=!0,e}function ae(e){var t=p.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function se(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function ue(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ce(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function le(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function fe(e){return oe((function(t){return t=+t,oe((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function de(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=re.support={},o=re.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},d=re.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:w;return a!==p&&9===a.nodeType&&a.documentElement?(h=(p=a).documentElement,g=!o(p),(i=p.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",ne,!1):i.attachEvent&&i.attachEvent("onunload",ne)),n.attributes=ae((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ae((function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=K.test(p.getElementsByClassName),n.getById=ae((function(e){return h.appendChild(e).id=_,!p.getElementsByName||!p.getElementsByName(_).length})),n.getById?(r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}},r.filter.ID=function(e){var t=e.replace(ee,te);return function(e){return e.getAttribute("id")===t}}):(delete r.find.ID,r.filter.ID=function(e){var t=e.replace(ee,te);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},v=[],m=[],(n.qsa=K.test(p.querySelectorAll))&&(ae((function(e){h.appendChild(e).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+j+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+j+"*(?:value|"+M+")"),e.querySelectorAll("[id~="+_+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||m.push(".#.+[+~]")})),ae((function(e){var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+j+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")}))),(n.matchesSelector=K.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ae((function(e){n.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),v.push("!=",N)})),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),t=K.test(h.compareDocumentPosition),b=t||K.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},k=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===p||e.ownerDocument===w&&b(w,e)?-1:t===p||t.ownerDocument===w&&b(w,t)?1:l?P(l,e)-P(l,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===p?-1:t===p?1:i?-1:o?1:l?P(l,e)-P(l,t):0;if(i===o)return ue(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?ue(a[r],s[r]):a[r]===w?-1:s[r]===w?1:0},p):p},re.matches=function(e,t){return re(e,null,null,t)},re.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&d(e),t=t.replace(V,"='$1']"),n.matchesSelector&&g&&!E[t+" "]&&(!v||!v.test(t))&&(!m||!m.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return re(t,p,null,[e]).length>0},re.contains=function(e,t){return(e.ownerDocument||e)!==p&&d(e),b(e,t)},re.attr=function(e,t){(e.ownerDocument||e)!==p&&d(e);var i=r.attrHandle[t.toLowerCase()],o=i&&C.call(r.attrHandle,t.toLowerCase())?i(e,t,!g):void 0;return void 0!==o?o:n.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},re.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},re.uniqueSort=function(e){var t,r=[],i=0,o=0;if(f=!n.detectDuplicates,l=!n.sortStable&&e.slice(0),e.sort(k),f){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return l=null,e},i=re.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=re.selectors={cacheLength:50,createPseudo:oe,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ee,te),e[3]=(e[3]||e[4]||e[5]||"").replace(ee,te),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||re.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&re.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&z.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ee,te).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=q[e+" "];return t||(t=new RegExp("(^|"+j+")"+e+"("+j+"|$)"))&&q(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=re.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(L," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var c,l,f,d,p,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!u&&!s,b=!1;if(m){if(o){for(;g;){for(d=t;d=d[g];)if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&y){for(b=(p=(c=(l=(f=(d=m)[_]||(d[_]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]||[])[0]===$&&c[1])&&c[2],d=p&&m.childNodes[p];d=++p&&d&&d[g]||(b=p=0)||h.pop();)if(1===d.nodeType&&++b&&d===t){l[e]=[$,p,b];break}}else if(y&&(b=p=(c=(l=(f=(d=t)[_]||(d[_]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]||[])[0]===$&&c[1]),!1===b)for(;(d=++p&&d&&d[g]||(b=p=0)||h.pop())&&((s?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++b||(y&&((l=(f=d[_]||(d[_]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]=[$,b]),d!==t)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||re.error("unsupported pseudo: "+e);return i[_]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?oe((function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=P(e,o[a])]=!(n[r]=o[a])})):function(e){return i(e,0,n)}):i}},pseudos:{not:oe((function(e){var t=[],n=[],r=s(e.replace(U,"$1"));return r[_]?oe((function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:oe((function(e){return function(t){return re(e,t).length>0}})),contains:oe((function(e){return e=e.replace(ee,te),function(t){return(t.textContent||t.innerText||i(t)).indexOf(e)>-1}})),lang:oe((function(e){return W.test(e||"")||re.error("unsupported lang: "+e),e=e.replace(ee,te).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return X.test(e.nodeName)},input:function(e){return G.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:fe((function(){return[0]})),last:fe((function(e,t){return[t-1]})),eq:fe((function(e,t,n){return[n<0?n+t:n]})),even:fe((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:fe((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:fe((function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e})),gt:fe((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=ce(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=le(t);function pe(){}function he(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function ge(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=x++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,a){var s,u,c,l=[$,o];if(a){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||i){if((s=(u=(c=t[_]||(t[_]={}))[t.uniqueID]||(c[t.uniqueID]={}))[r])&&s[0]===$&&s[1]===o)return l[2]=s[2];if(u[r]=l,l[2]=e(t,n,a))return!0}}}function me(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function ve(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,c=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),c&&t.push(s)));return a}function ye(e,t,n,r,i,o){return r&&!r[_]&&(r=ye(r)),i&&!i[_]&&(i=ye(i,o)),oe((function(o,a,s,u){var c,l,f,d=[],p=[],h=a.length,g=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)re(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:ve(g,d,e,s,u),v=n?i||(o?e:h||r)?[]:a:m;if(n&&n(m,v,s,u),r)for(c=ve(v,p),r(c,[],s,u),l=c.length;l--;)(f=c[l])&&(v[p[l]]=!(m[p[l]]=f));if(o){if(i||e){if(i){for(c=[],l=v.length;l--;)(f=v[l])&&c.push(m[l]=f);i(null,v=[],c,u)}for(l=v.length;l--;)(f=v[l])&&(c=i?P(o,f):d[l])>-1&&(o[c]=!(a[c]=f))}}else v=ve(v===a?v.splice(h,v.length):v),i?i(null,a,v,u):A.apply(a,v)}))}function be(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],u=a?1:0,l=ge((function(e){return e===t}),s,!0),f=ge((function(e){return P(t,e)>-1}),s,!0),d=[function(e,n,r){var i=!a&&(r||n!==c)||((t=n).nodeType?l(e,n,r):f(e,n,r));return t=null,i}];u<o;u++)if(n=r.relative[e[u].type])d=[ge(me(d),n)];else{if((n=r.filter[e[u].type].apply(null,e[u].matches))[_]){for(i=++u;i<o&&!r.relative[e[i].type];i++);return ye(u>1&&me(d),u>1&&he(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(U,"$1"),n,u<i&&be(e.slice(u,i)),i<o&&be(e=e.slice(i)),i<o&&he(e))}d.push(n)}return me(d)}return pe.prototype=r.filters=r.pseudos,r.setFilters=new pe,a=re.tokenize=function(e,t){var n,i,o,a,s,u,c,l=S[e+" "];if(l)return t?0:l.slice(0);for(s=e,u=[],c=r.preFilter;s;){for(a in n&&!(i=B.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),n=!1,(i=H.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(U," ")}),s=s.slice(n.length)),r.filter)!(i=Y[a].exec(s))||c[a]&&!(i=c[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?re.error(e):S(e,u).slice(0)},s=re.compile=function(e,t){var n,i=[],o=[],s=E[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=be(t[n]))[_]?i.push(s):o.push(s);(s=E(e,function(e,t){var n=t.length>0,i=e.length>0,o=function(o,a,s,u,l){var f,h,m,v=0,y="0",b=o&&[],_=[],w=c,x=o||i&&r.find.TAG("*",l),q=$+=null==w?1:Math.random()||.1,S=x.length;for(l&&(c=a===p||a||l);y!==S&&null!=(f=x[y]);y++){if(i&&f){for(h=0,a||f.ownerDocument===p||(d(f),s=!g);m=e[h++];)if(m(f,a||p,s)){u.push(f);break}l&&($=q)}n&&((f=!m&&f)&&v--,o&&b.push(f))}if(v+=y,n&&y!==v){for(h=0;m=t[h++];)m(b,_,a,s);if(o){if(v>0)for(;y--;)b[y]||_[y]||(_[y]=T.call(u));_=ve(_)}A.apply(u,_),l&&!o&&_.length>0&&v+t.length>1&&re.uniqueSort(u)}return l&&($=q,c=w),b};return n?oe(o):o}(o,i))).selector=e}return s},u=re.select=function(e,t,i,o){var u,c,l,f,d,p="function"==typeof e&&e,h=!o&&a(e=p.selector||e);if(i=i||[],1===h.length){if((c=h[0]=h[0].slice(0)).length>2&&"ID"===(l=c[0]).type&&n.getById&&9===t.nodeType&&g&&r.relative[c[1].type]){if(!(t=(r.find.ID(l.matches[0].replace(ee,te),t)||[])[0]))return i;p&&(t=t.parentNode),e=e.slice(c.shift().value.length)}for(u=Y.needsContext.test(e)?0:c.length;u--&&(l=c[u],!r.relative[f=l.type]);)if((d=r.find[f])&&(o=d(l.matches[0].replace(ee,te),Z.test(c[0].type)&&de(t.parentNode)||t))){if(c.splice(u,1),!(e=o.length&&he(c)))return A.apply(i,o),i;break}}return(p||s(e,h))(o,t,!g,i,!t||Z.test(e)&&de(t.parentNode)||t),i},n.sortStable=_.split("").sort(k).join("")===_,n.detectDuplicates=!!f,d(),n.sortDetached=ae((function(e){return 1&e.compareDocumentPosition(p.createElement("div"))})),ae((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||se("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ae((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||se("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ae((function(e){return null==e.getAttribute("disabled")}))||se(M,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),re}(n);g.find=w,g.expr=w.selectors,g.expr[":"]=g.expr.pseudos,g.uniqueSort=g.unique=w.uniqueSort,g.text=w.getText,g.isXMLDoc=w.isXML,g.contains=w.contains;var $=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&g(e).is(n))break;r.push(e)}return r},x=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},q=g.expr.match.needsContext,S=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,E=/^.[^:#\[\.,]*$/;function k(e,t,n){if(g.isFunction(t))return g.grep(e,(function(e,r){return!!t.call(e,r,e)!==n}));if(t.nodeType)return g.grep(e,(function(e){return e===t!==n}));if("string"==typeof t){if(E.test(t))return g.filter(t,e,n);t=g.filter(t,e)}return g.grep(e,(function(e){return l.call(t,e)>-1!==n}))}g.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?g.find.matchesSelector(r,e)?[r]:[]:g.find.matches(e,g.grep(t,(function(e){return 1===e.nodeType})))},g.fn.extend({find:function(e){var t,n=this.length,r=[],i=this;if("string"!=typeof e)return this.pushStack(g(e).filter((function(){for(t=0;t<n;t++)if(g.contains(i[t],this))return!0})));for(t=0;t<n;t++)g.find(e,i[t],r);return(r=this.pushStack(n>1?g.unique(r):r)).selector=this.selector?this.selector+" "+e:e,r},filter:function(e){return this.pushStack(k(this,e||[],!1))},not:function(e){return this.pushStack(k(this,e||[],!0))},is:function(e){return!!k(this,"string"==typeof e&&q.test(e)?g(e):e||[],!1).length}});var C,O=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(g.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||C,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:O.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof g?t[0]:t,g.merge(this,g.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:a,!0)),S.test(r[1])&&g.isPlainObject(t))for(r in t)g.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=a.getElementById(r[2]))&&i.parentNode&&(this.length=1,this[0]=i),this.context=a,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):g.isFunction(e)?void 0!==n.ready?n.ready(e):e(g):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),g.makeArray(e,this))}).prototype=g.fn,C=g(a);var T=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}g.fn.extend({has:function(e){var t=g(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(g.contains(this,t[e]))return!0}))},closest:function(e,t){for(var n,r=0,i=this.length,o=[],a=q.test(e)||"string"!=typeof e?g(e,t||this.context):0;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&g.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?g.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?l.call(g(e),this[0]):l.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(g.uniqueSort(g.merge(this.get(),g(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),g.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return $(e,"parentNode")},parentsUntil:function(e,t,n){return $(e,"parentNode",n)},next:function(e){return A(e,"nextSibling")},prev:function(e){return A(e,"previousSibling")},nextAll:function(e){return $(e,"nextSibling")},prevAll:function(e){return $(e,"previousSibling")},nextUntil:function(e,t,n){return $(e,"nextSibling",n)},prevUntil:function(e,t,n){return $(e,"previousSibling",n)},siblings:function(e){return x((e.parentNode||{}).firstChild,e)},children:function(e){return x(e.firstChild)},contents:function(e){return e.contentDocument||g.merge([],e.childNodes)}},(function(e,t){g.fn[e]=function(n,r){var i=g.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=g.filter(r,i)),this.length>1&&(D[e]||g.uniqueSort(i),T.test(e)&&i.reverse()),this.pushStack(i)}}));var I,P=/\S+/g;function M(){a.removeEventListener("DOMContentLoaded",M),n.removeEventListener("load",M),g.ready()}g.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return g.each(e.match(P)||[],(function(e,n){t[n]=!0})),t}(e):g.extend({},e);var t,n,r,i,o=[],a=[],s=-1,u=function(){for(i=e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},c={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){g.each(n,(function(n,r){g.isFunction(r)?e.unique&&c.has(r)||o.push(r):r&&r.length&&"string"!==g.type(r)&&t(r)}))}(arguments),n&&!t&&u()),this},remove:function(){return g.each(arguments,(function(e,t){for(var n;(n=g.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--})),this},has:function(e){return e?g.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||u()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},g.extend({Deferred:function(e){var t=[["resolve","done",g.Callbacks("once memory"),"resolved"],["reject","fail",g.Callbacks("once memory"),"rejected"],["notify","progress",g.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return g.Deferred((function(n){g.each(t,(function(t,o){var a=g.isFunction(e[t])&&e[t];i[o[1]]((function(){var e=a&&a.apply(this,arguments);e&&g.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===r?n.promise():this,a?[e]:arguments)}))})),e=null})).promise()},promise:function(e){return null!=e?g.extend(e,r):r}},i={};return r.pipe=r.then,g.each(t,(function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add((function(){n=s}),t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith})),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=s.call(arguments),a=o.length,u=1!==a||e&&g.isFunction(e.promise)?a:0,c=1===u?e:g.Deferred(),l=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?s.call(arguments):i,r===t?c.notifyWith(n,r):--u||c.resolveWith(n,r)}};if(a>1)for(t=new Array(a),n=new Array(a),r=new Array(a);i<a;i++)o[i]&&g.isFunction(o[i].promise)?o[i].promise().progress(l(i,n,t)).done(l(i,r,o)).fail(c.reject):--u;return u||c.resolveWith(r,o),c.promise()}}),g.fn.ready=function(e){return g.ready.promise().done(e),this},g.extend({isReady:!1,readyWait:1,holdReady:function(e){e?g.readyWait++:g.ready(!0)},ready:function(e){(!0===e?--g.readyWait:g.isReady)||(g.isReady=!0,!0!==e&&--g.readyWait>0||(I.resolveWith(a,[g]),g.fn.triggerHandler&&(g(a).triggerHandler("ready"),g(a).off("ready"))))}}),g.ready.promise=function(e){return I||(I=g.Deferred(),"complete"===a.readyState||"loading"!==a.readyState&&!a.documentElement.doScroll?n.setTimeout(g.ready):(a.addEventListener("DOMContentLoaded",M),n.addEventListener("load",M))),I.promise(e)},g.ready.promise();var j=function(e,t,n,r,i,o,a){var s=0,u=e.length,c=null==n;if("object"===g.type(n))for(s in i=!0,n)j(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,g.isFunction(r)||(a=!0),c&&(a?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(g(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:c?t.call(e):u?t(e[0],n):o},R=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function F(){this.expando=g.expando+F.uid++}F.uid=1,F.prototype={register:function(e,t){var n=t||{};return e.nodeType?e[this.expando]=n:Object.defineProperty(e,this.expando,{value:n,writable:!0,configurable:!0}),e[this.expando]},cache:function(e){if(!R(e))return{};var t=e[this.expando];return t||(t={},R(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[t]=n;else for(r in t)i[r]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][t]},access:function(e,t,n){var r;return void 0===t||t&&"string"==typeof t&&void 0===n?void 0!==(r=this.get(e,t))?r:this.get(e,g.camelCase(t)):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r,i,o=e[this.expando];if(void 0!==o){if(void 0===t)this.register(e);else{g.isArray(t)?r=t.concat(t.map(g.camelCase)):(i=g.camelCase(t),r=t in o?[t,i]:(r=i)in o?[r]:r.match(P)||[]),n=r.length;for(;n--;)delete o[r[n]]}(void 0===t||g.isEmptyObject(o))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!g.isEmptyObject(t)}};var N=new F,L=new F,U=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,B=/[A-Z]/g;function H(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(B,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:U.test(n)?g.parseJSON(n):n)}catch(e){}L.set(e,t,n)}else n=void 0;return n}g.extend({hasData:function(e){return L.hasData(e)||N.hasData(e)},data:function(e,t,n){return L.access(e,t,n)},removeData:function(e,t){L.remove(e,t)},_data:function(e,t,n){return N.access(e,t,n)},_removeData:function(e,t){N.remove(e,t)}}),g.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=L.get(o),1===o.nodeType&&!N.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=g.camelCase(r.slice(5)),H(o,r,i[r]));N.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each((function(){L.set(this,e)})):j(this,(function(t){var n,r;if(o&&void 0===t)return void 0!==(n=L.get(o,e)||L.get(o,e.replace(B,"-$&").toLowerCase()))?n:(r=g.camelCase(e),void 0!==(n=L.get(o,r))||void 0!==(n=H(o,r,void 0))?n:void 0);r=g.camelCase(e),this.each((function(){var n=L.get(this,r);L.set(this,r,t),e.indexOf("-")>-1&&void 0!==n&&L.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){L.remove(this,e)}))}}),g.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=N.get(e,t),n&&(!r||g.isArray(n)?r=N.access(e,t,g.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=g.queue(e,t),r=n.length,i=n.shift(),o=g._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){g.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return N.get(e,n)||N.access(e,n,{empty:g.Callbacks("once memory").add((function(){N.remove(e,[t+"queue",n])}))})}}),g.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?g.queue(this[0],e):void 0===t?this:this.each((function(){var n=g.queue(this,e,t);g._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&g.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){g.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=g.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=N.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var V=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,z=new RegExp("^(?:([+-])=|)("+V+")([a-z%]*)$","i"),W=["Top","Right","Bottom","Left"],Y=function(e,t){return e=t||e,"none"===g.css(e,"display")||!g.contains(e.ownerDocument,e)};function G(e,t,n,r){var i,o=1,a=20,s=r?function(){return r.cur()}:function(){return g.css(e,t,"")},u=s(),c=n&&n[3]||(g.cssNumber[t]?"":"px"),l=(g.cssNumber[t]||"px"!==c&&+u)&&z.exec(g.css(e,t));if(l&&l[3]!==c){c=c||l[3],n=n||[],l=+u||1;do{l/=o=o||".5",g.style(e,t,l+c)}while(o!==(o=s()/u)&&1!==o&&--a)}return n&&(l=+l||+u||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=l,r.end=i)),i}var X=/^(?:checkbox|radio)$/i,K=/<([\w:-]+)/,J=/^$|\/(?:java|ecma)script/i,Z={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Q(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&g.nodeName(e,t)?g.merge([e],n):n}function ee(e,t){for(var n=0,r=e.length;n<r;n++)N.set(e[n],"globalEval",!t||N.get(t[n],"globalEval"))}Z.optgroup=Z.option,Z.tbody=Z.tfoot=Z.colgroup=Z.caption=Z.thead,Z.th=Z.td;var te,ne,re=/<|&#?\w+;/;function ie(e,t,n,r,i){for(var o,a,s,u,c,l,f=t.createDocumentFragment(),d=[],p=0,h=e.length;p<h;p++)if((o=e[p])||0===o)if("object"===g.type(o))g.merge(d,o.nodeType?[o]:o);else if(re.test(o)){for(a=a||f.appendChild(t.createElement("div")),s=(K.exec(o)||["",""])[1].toLowerCase(),u=Z[s]||Z._default,a.innerHTML=u[1]+g.htmlPrefilter(o)+u[2],l=u[0];l--;)a=a.lastChild;g.merge(d,a.childNodes),(a=f.firstChild).textContent=""}else d.push(t.createTextNode(o));for(f.textContent="",p=0;o=d[p++];)if(r&&g.inArray(o,r)>-1)i&&i.push(o);else if(c=g.contains(o.ownerDocument,o),a=Q(f.appendChild(o),"script"),c&&ee(a),n)for(l=0;o=a[l++];)J.test(o.type||"")&&n.push(o);return f}te=a.createDocumentFragment().appendChild(a.createElement("div")),(ne=a.createElement("input")).setAttribute("type","radio"),ne.setAttribute("checked","checked"),ne.setAttribute("name","t"),te.appendChild(ne),h.checkClone=te.cloneNode(!0).cloneNode(!0).lastChild.checked,te.innerHTML="<textarea>x</textarea>",h.noCloneChecked=!!te.cloneNode(!0).lastChild.defaultValue;var oe=/^key/,ae=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,se=/^([^.]*)(?:\.(.+)|)/;function ue(){return!0}function ce(){return!1}function le(){try{return a.activeElement}catch(e){}}function fe(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)fe(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=ce;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return g().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=g.guid++)),e.each((function(){g.event.add(this,t,i,r,n)}))}g.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,c,l,f,d,p,h,m,v=N.get(e);if(v)for(n.handler&&(n=(o=n).handler,i=o.selector),n.guid||(n.guid=g.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(t){return void 0!==g&&g.event.triggered!==t.type?g.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(P)||[""]).length;c--;)p=m=(s=se.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),p&&(f=g.event.special[p]||{},p=(i?f.delegateType:f.bindType)||p,f=g.event.special[p]||{},l=g.extend({type:p,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&g.expr.match.needsContext.test(i),namespace:h.join(".")},o),(d=u[p])||((d=u[p]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(p,a)),f.add&&(f.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,l):d.push(l),g.event.global[p]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,c,l,f,d,p,h,m,v=N.hasData(e)&&N.get(e);if(v&&(u=v.events)){for(c=(t=(t||"").match(P)||[""]).length;c--;)if(p=m=(s=se.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),p){for(f=g.event.special[p]||{},d=u[p=(r?f.delegateType:f.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)l=d[o],!i&&m!==l.origType||n&&n.guid!==l.guid||s&&!s.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(d.splice(o,1),l.selector&&d.delegateCount--,f.remove&&f.remove.call(e,l));a&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||g.removeEvent(e,p,v.handle),delete u[p])}else for(p in u)g.event.remove(e,p+t[c],n,r,!0);g.isEmptyObject(u)&&N.remove(e,"handle events")}},dispatch:function(e){e=g.event.fix(e);var t,n,r,i,o,a=[],u=s.call(arguments),c=(N.get(this,"events")||{})[e.type]||[],l=g.event.special[e.type]||{};if(u[0]=e,e.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,e)){for(a=g.event.handlers.call(this,e,c),t=0;(i=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(o.namespace)||(e.handleObj=o,e.data=o.data,void 0!==(r=((g.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u))&&!1===(e.result=r)&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,a=[],s=t.delegateCount,u=e.target;if(s&&u.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&(!0!==u.disabled||"click"!==e.type)){for(r=[],n=0;n<s;n++)void 0===r[i=(o=t[n]).selector+" "]&&(r[i]=o.needsContext?g(i,this).index(u)>-1:g.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&a.push({elem:u,handlers:r})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,o=t.button;return null==e.pageX&&null!=t.clientX&&(r=(n=e.target.ownerDocument||a).documentElement,i=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},fix:function(e){if(e[g.expando])return e;var t,n,r,i=e.type,o=e,s=this.fixHooks[i];for(s||(this.fixHooks[i]=s=ae.test(i)?this.mouseHooks:oe.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new g.Event(o),t=r.length;t--;)e[n=r[t]]=o[n];return e.target||(e.target=a),3===e.target.nodeType&&(e.target=e.target.parentNode),s.filter?s.filter(e,o):e},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==le()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===le()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&g.nodeName(this,"input"))return this.click(),!1},_default:function(e){return g.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},g.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},g.Event=function(e,t){if(!(this instanceof g.Event))return new g.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ue:ce):this.type=e,t&&g.extend(this,t),this.timeStamp=e&&e.timeStamp||g.now(),this[g.expando]=!0},g.Event.prototype={constructor:g.Event,isDefaultPrevented:ce,isPropagationStopped:ce,isImmediatePropagationStopped:ce,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ue,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ue,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ue,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},g.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){g.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||g.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),g.fn.extend({on:function(e,t,n,r){return fe(this,e,t,n,r)},one:function(e,t,n,r){return fe(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,g(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=ce),this.each((function(){g.event.remove(this,e,n,t)}))}});var de=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,pe=/<script|<style|<link/i,he=/checked\s*(?:[^=]|=\s*.checked.)/i,ge=/^true\/(.*)/,me=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function ve(e,t){return g.nodeName(e,"table")&&g.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function ye(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function be(e){var t=ge.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function _e(e,t){var n,r,i,o,a,s,u,c;if(1===t.nodeType){if(N.hasData(e)&&(o=N.access(e),a=N.set(t,o),c=o.events))for(i in delete a.handle,a.events={},c)for(n=0,r=c[i].length;n<r;n++)g.event.add(t,i,c[i][n]);L.hasData(e)&&(s=L.access(e),u=g.extend({},s),L.set(t,u))}}function we(e,t,n,r){t=u.apply([],t);var i,o,a,s,c,l,f=0,d=e.length,p=d-1,m=t[0],v=g.isFunction(m);if(v||d>1&&"string"==typeof m&&!h.checkClone&&he.test(m))return e.each((function(i){var o=e.eq(i);v&&(t[0]=m.call(this,i,o.html())),we(o,t,n,r)}));if(d&&(o=(i=ie(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=g.map(Q(i,"script"),ye)).length;f<d;f++)c=i,f!==p&&(c=g.clone(c,!0,!0),s&&g.merge(a,Q(c,"script"))),n.call(e[f],c,f);if(s)for(l=a[a.length-1].ownerDocument,g.map(a,be),f=0;f<s;f++)c=a[f],J.test(c.type||"")&&!N.access(c,"globalEval")&&g.contains(l,c)&&(c.src?g._evalUrl&&g._evalUrl(c.src):g.globalEval(c.textContent.replace(me,"")))}return e}function $e(e,t,n){for(var r,i=t?g.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||g.cleanData(Q(r)),r.parentNode&&(n&&g.contains(r.ownerDocument,r)&&ee(Q(r,"script")),r.parentNode.removeChild(r));return e}g.extend({htmlPrefilter:function(e){return e.replace(de,"<$1></$2>")},clone:function(e,t,n){var r,i,o,a,s,u,c,l=e.cloneNode(!0),f=g.contains(e.ownerDocument,e);if(!(h.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||g.isXMLDoc(e)))for(a=Q(l),r=0,i=(o=Q(e)).length;r<i;r++)s=o[r],u=a[r],c=void 0,"input"===(c=u.nodeName.toLowerCase())&&X.test(s.type)?u.checked=s.checked:"input"!==c&&"textarea"!==c||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||Q(e),a=a||Q(l),r=0,i=o.length;r<i;r++)_e(o[r],a[r]);else _e(e,l);return(a=Q(l,"script")).length>0&&ee(a,!f&&Q(e,"script")),l},cleanData:function(e){for(var t,n,r,i=g.event.special,o=0;void 0!==(n=e[o]);o++)if(R(n)){if(t=n[N.expando]){if(t.events)for(r in t.events)i[r]?g.event.remove(n,r):g.removeEvent(n,r,t.handle);n[N.expando]=void 0}n[L.expando]&&(n[L.expando]=void 0)}}}),g.fn.extend({domManip:we,detach:function(e){return $e(this,e,!0)},remove:function(e){return $e(this,e)},text:function(e){return j(this,(function(e){return void 0===e?g.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return we(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||ve(this,e).appendChild(e)}))},prepend:function(){return we(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=ve(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return we(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return we(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(g.cleanData(Q(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return g.clone(this,e,t)}))},html:function(e){return j(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!pe.test(e)&&!Z[(K.exec(e)||["",""])[1].toLowerCase()]){e=g.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(g.cleanData(Q(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return we(this,arguments,(function(t){var n=this.parentNode;g.inArray(this,e)<0&&(g.cleanData(Q(this)),n&&n.replaceChild(t,this))}),e)}}),g.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){g.fn[e]=function(e){for(var n,r=[],i=g(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),g(i[a])[t](n),c.apply(r,n.get());return this.pushStack(r)}}));var xe,qe={HTML:"block",BODY:"block"};function Se(e,t){var n=g(t.createElement(e)).appendTo(t.body),r=g.css(n[0],"display");return n.detach(),r}function Ee(e){var t=a,n=qe[e];return n||("none"!==(n=Se(e,t))&&n||((t=(xe=(xe||g("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),n=Se(e,t),xe.detach()),qe[e]=n),n}var ke=/^margin/,Ce=new RegExp("^("+V+")(?!px)[a-z%]+$","i"),Oe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},Te=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,r||[]),t)e.style[o]=a[o];return i},De=a.documentElement;function Ae(e,t,n){var r,i,o,a,s=e.style;return""!==(a=(n=n||Oe(e))?n.getPropertyValue(t)||n[t]:void 0)&&void 0!==a||g.contains(e.ownerDocument,e)||(a=g.style(e,t)),n&&!h.pixelMarginRight()&&Ce.test(a)&&ke.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o),void 0!==a?a+"":a}function Ie(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){var e,t,r,i,o=a.createElement("div"),s=a.createElement("div");function u(){s.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",s.innerHTML="",De.appendChild(o);var a=n.getComputedStyle(s);e="1%"!==a.top,i="2px"===a.marginLeft,t="4px"===a.width,s.style.marginRight="50%",r="4px"===a.marginRight,De.removeChild(o)}s.style&&(s.style.backgroundClip="content-box",s.cloneNode(!0).style.backgroundClip="",h.clearCloneStyle="content-box"===s.style.backgroundClip,o.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",o.appendChild(s),g.extend(h,{pixelPosition:function(){return u(),e},boxSizingReliable:function(){return null==t&&u(),t},pixelMarginRight:function(){return null==t&&u(),r},reliableMarginLeft:function(){return null==t&&u(),i},reliableMarginRight:function(){var e,t=s.appendChild(a.createElement("div"));return t.style.cssText=s.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",s.style.width="1px",De.appendChild(o),e=!parseFloat(n.getComputedStyle(t).marginRight),De.removeChild(o),s.removeChild(t),e}}))}();var Pe=/^(none|table(?!-c[ea]).+)/,Me={position:"absolute",visibility:"hidden",display:"block"},je={letterSpacing:"0",fontWeight:"400"},Re=["Webkit","O","Moz","ms"],Fe=a.createElement("div").style;function Ne(e){if(e in Fe)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=Re.length;n--;)if((e=Re[n]+t)in Fe)return e}function Le(e,t,n){var r=z.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Ue(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=g.css(e,n+W[o],!0,i)),r?("content"===n&&(a-=g.css(e,"padding"+W[o],!0,i)),"margin"!==n&&(a-=g.css(e,"border"+W[o]+"Width",!0,i))):(a+=g.css(e,"padding"+W[o],!0,i),"padding"!==n&&(a+=g.css(e,"border"+W[o]+"Width",!0,i)));return a}function Be(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Oe(e),a="border-box"===g.css(e,"boxSizing",!1,o);if(i<=0||null==i){if(((i=Ae(e,t,o))<0||null==i)&&(i=e.style[t]),Ce.test(i))return i;r=a&&(h.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+Ue(e,t,n||(a?"border":"content"),r,o)+"px"}function He(e,t){for(var n,r,i,o=[],a=0,s=e.length;a<s;a++)(r=e[a]).style&&(o[a]=N.get(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&Y(r)&&(o[a]=N.access(r,"olddisplay",Ee(r.nodeName)))):(i=Y(r),"none"===n&&i||N.set(r,"olddisplay",i?n:g.css(r,"display"))));for(a=0;a<s;a++)(r=e[a]).style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}function Ve(e,t,n,r,i){return new Ve.prototype.init(e,t,n,r,i)}g.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ae(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=g.camelCase(t),u=e.style;if(t=g.cssProps[s]||(g.cssProps[s]=Ne(s)||s),a=g.cssHooks[t]||g.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:u[t];"string"==(o=typeof n)&&(i=z.exec(n))&&i[1]&&(n=G(e,t,i),o="number"),null!=n&&n==n&&("number"===o&&(n+=i&&i[3]||(g.cssNumber[s]?"":"px")),h.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u[t]=n))}},css:function(e,t,n,r){var i,o,a,s=g.camelCase(t);return t=g.cssProps[s]||(g.cssProps[s]=Ne(s)||s),(a=g.cssHooks[t]||g.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Ae(e,t,r)),"normal"===i&&t in je&&(i=je[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),g.each(["height","width"],(function(e,t){g.cssHooks[t]={get:function(e,n,r){if(n)return Pe.test(g.css(e,"display"))&&0===e.offsetWidth?Te(e,Me,(function(){return Be(e,t,r)})):Be(e,t,r)},set:function(e,n,r){var i,o=r&&Oe(e),a=r&&Ue(e,t,r,"border-box"===g.css(e,"boxSizing",!1,o),o);return a&&(i=z.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=g.css(e,t)),Le(0,n,a)}}})),g.cssHooks.marginLeft=Ie(h.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ae(e,"marginLeft"))||e.getBoundingClientRect().left-Te(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),g.cssHooks.marginRight=Ie(h.reliableMarginRight,(function(e,t){if(t)return Te(e,{display:"inline-block"},Ae,[e,"marginRight"])})),g.each({margin:"",padding:"",border:"Width"},(function(e,t){g.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+W[r]+t]=o[r]||o[r-2]||o[0];return i}},ke.test(e)||(g.cssHooks[e+t].set=Le)})),g.fn.extend({css:function(e,t){return j(this,(function(e,t,n){var r,i,o={},a=0;if(g.isArray(t)){for(r=Oe(e),i=t.length;a<i;a++)o[t[a]]=g.css(e,t[a],!1,r);return o}return void 0!==n?g.style(e,t,n):g.css(e,t)}),e,t,arguments.length>1)},show:function(){return He(this,!0)},hide:function(){return He(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){Y(this)?g(this).show():g(this).hide()}))}}),g.Tween=Ve,Ve.prototype={constructor:Ve,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||g.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(g.cssNumber[n]?"":"px")},cur:function(){var e=Ve.propHooks[this.prop];return e&&e.get?e.get(this):Ve.propHooks._default.get(this)},run:function(e){var t,n=Ve.propHooks[this.prop];return this.options.duration?this.pos=t=g.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Ve.propHooks._default.set(this),this}},Ve.prototype.init.prototype=Ve.prototype,Ve.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=g.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){g.fx.step[e.prop]?g.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[g.cssProps[e.prop]]&&!g.cssHooks[e.prop]?e.elem[e.prop]=e.now:g.style(e.elem,e.prop,e.now+e.unit)}}},Ve.propHooks.scrollTop=Ve.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},g.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},g.fx=Ve.prototype.init,g.fx.step={};var ze,We,Ye=/^(?:toggle|show|hide)$/,Ge=/queueHooks$/;function Xe(){return n.setTimeout((function(){ze=void 0})),ze=g.now()}function Ke(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=W[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function Je(e,t,n){for(var r,i=(Ze.tweeners[t]||[]).concat(Ze.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function Ze(e,t,n){var r,i,o=0,a=Ze.prefilters.length,s=g.Deferred().always((function(){delete u.elem})),u=function(){if(i)return!1;for(var t=ze||Xe(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),o=0,a=c.tweens.length;o<a;o++)c.tweens[o].run(r);return s.notifyWith(e,[c,r,n]),r<1&&a?n:(s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:g.extend({},t),opts:g.extend(!0,{specialEasing:{},easing:g.easing._default},n),originalProperties:t,originalOptions:n,startTime:ze||Xe(),duration:n.duration,tweens:[],createTween:function(t,n){var r=g.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),l=c.props;for(function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=g.camelCase(n)],o=e[n],g.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=g.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(l,c.opts.specialEasing);o<a;o++)if(r=Ze.prefilters[o].call(c,e,l,c.opts))return g.isFunction(r.stop)&&(g._queueHooks(c.elem,c.opts.queue).stop=g.proxy(r.stop,r)),r;return g.map(l,Je,c),g.isFunction(c.opts.start)&&c.opts.start.call(e,c),g.fx.timer(g.extend(u,{elem:e,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}g.Animation=g.extend(Ze,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return G(n.elem,e,z.exec(t),n),n}]},tweener:function(e,t){g.isFunction(e)?(t=e,e=["*"]):e=e.match(P);for(var n,r=0,i=e.length;r<i;r++)n=e[r],Ze.tweeners[n]=Ze.tweeners[n]||[],Ze.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,c,l=this,f={},d=e.style,p=e.nodeType&&Y(e),h=N.get(e,"fxshow");for(r in n.queue||(null==(s=g._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,u=s.empty.fire,s.empty.fire=function(){s.unqueued||u()}),s.unqueued++,l.always((function(){l.always((function(){s.unqueued--,g.queue(e,"fx").length||s.empty.fire()}))}))),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===("none"===(c=g.css(e,"display"))?N.get(e,"olddisplay")||Ee(e.nodeName):c)&&"none"===g.css(e,"float")&&(d.display="inline-block")),n.overflow&&(d.overflow="hidden",l.always((function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}))),t)if(i=t[r],Ye.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(p?"hide":"show")){if("show"!==i||!h||void 0===h[r])continue;p=!0}f[r]=h&&h[r]||g.style(e,r)}else c=void 0;if(g.isEmptyObject(f))"inline"===("none"===c?Ee(e.nodeName):c)&&(d.display=c);else for(r in h?"hidden"in h&&(p=h.hidden):h=N.access(e,"fxshow",{}),o&&(h.hidden=!p),p?g(e).show():l.done((function(){g(e).hide()})),l.done((function(){var t;for(t in N.remove(e,"fxshow"),f)g.style(e,t,f[t])})),f)a=Je(p?h[r]:0,r,l),r in h||(h[r]=a.start,p&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}],prefilter:function(e,t){t?Ze.prefilters.unshift(e):Ze.prefilters.push(e)}}),g.speed=function(e,t,n){var r=e&&"object"==typeof e?g.extend({},e):{complete:n||!n&&t||g.isFunction(e)&&e,duration:e,easing:n&&t||t&&!g.isFunction(t)&&t};return r.duration=g.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in g.fx.speeds?g.fx.speeds[r.duration]:g.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){g.isFunction(r.old)&&r.old.call(this),r.queue&&g.dequeue(this,r.queue)},r},g.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Y).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=g.isEmptyObject(e),o=g.speed(t,n,r),a=function(){var t=Ze(this,g.extend({},e),o);(i||N.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",o=g.timers,a=N.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&Ge.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||g.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=N.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=g.timers,a=r?r.length:0;for(n.finish=!0,g.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),g.each(["toggle","show","hide"],(function(e,t){var n=g.fn[t];g.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(Ke(t,!0),e,r,i)}})),g.each({slideDown:Ke("show"),slideUp:Ke("hide"),slideToggle:Ke("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){g.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),g.timers=[],g.fx.tick=function(){var e,t=0,n=g.timers;for(ze=g.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||g.fx.stop(),ze=void 0},g.fx.timer=function(e){g.timers.push(e),e()?g.fx.start():g.timers.pop()},g.fx.interval=13,g.fx.start=function(){We||(We=n.setInterval(g.fx.tick,g.fx.interval))},g.fx.stop=function(){n.clearInterval(We),We=null},g.fx.speeds={slow:600,fast:200,_default:400},g.fn.delay=function(e,t){return e=g.fx&&g.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,r){var i=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(i)}}))},function(){var e=a.createElement("input"),t=a.createElement("select"),n=t.appendChild(a.createElement("option"));e.type="checkbox",h.checkOn=""!==e.value,h.optSelected=n.selected,t.disabled=!0,h.optDisabled=!n.disabled,(e=a.createElement("input")).value="t",e.type="radio",h.radioValue="t"===e.value}();var Qe,et=g.expr.attrHandle;g.fn.extend({attr:function(e,t){return j(this,g.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){g.removeAttr(this,e)}))}}),g.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?g.prop(e,t,n):(1===o&&g.isXMLDoc(e)||(t=t.toLowerCase(),i=g.attrHooks[t]||(g.expr.match.bool.test(t)?Qe:void 0)),void 0!==n?null===n?void g.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=g.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&g.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(P);if(o&&1===e.nodeType)for(;n=o[i++];)r=g.propFix[n]||n,g.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)}}),Qe={set:function(e,t,n){return!1===t?g.removeAttr(e,n):e.setAttribute(n,n),n}},g.each(g.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=et[t]||g.find.attr;et[t]=function(e,t,r){var i,o;return r||(o=et[t],et[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,et[t]=o),i}}));var tt=/^(?:input|select|textarea|button)$/i,nt=/^(?:a|area)$/i;g.fn.extend({prop:function(e,t){return j(this,g.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[g.propFix[e]||e]}))}}),g.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&g.isXMLDoc(e)||(t=g.propFix[t]||t,i=g.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=g.find.attr(e,"tabindex");return t?parseInt(t,10):tt.test(e.nodeName)||nt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(g.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),g.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){g.propFix[this.toLowerCase()]=this}));var rt=/[\t\r\n\f]/g;function it(e){return e.getAttribute&&e.getAttribute("class")||""}g.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,u=0;if(g.isFunction(e))return this.each((function(t){g(this).addClass(e.call(this,t,it(this)))}));if("string"==typeof e&&e)for(t=e.match(P)||[];n=this[u++];)if(i=it(n),r=1===n.nodeType&&(" "+i+" ").replace(rt," ")){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=g.trim(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,u=0;if(g.isFunction(e))return this.each((function(t){g(this).removeClass(e.call(this,t,it(this)))}));if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(P)||[];n=this[u++];)if(i=it(n),r=1===n.nodeType&&(" "+i+" ").replace(rt," ")){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=g.trim(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):g.isFunction(e)?this.each((function(n){g(this).toggleClass(e.call(this,n,it(this),t),t)})):this.each((function(){var t,r,i,o;if("string"===n)for(r=0,i=g(this),o=e.match(P)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||((t=it(this))&&N.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":N.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+it(n)+" ").replace(rt," ").indexOf(t)>-1)return!0;return!1}});var ot=/\r/g,at=/[\x20\t\r\n\f]+/g;g.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=g.isFunction(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,g(this).val()):e)?i="":"number"==typeof i?i+="":g.isArray(i)&&(i=g.map(i,(function(e){return null==e?"":e+""}))),(t=g.valHooks[this.type]||g.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=g.valHooks[i.type]||g.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(ot,""):null==n?"":n:void 0}}),g.extend({valHooks:{option:{get:function(e){var t=g.find.attr(e,"value");return null!=t?t:g.trim(g.text(e)).replace(at," ")}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||i<0,a=o?null:[],s=o?i+1:r.length,u=i<0?s:o?i:0;u<s;u++)if(((n=r[u]).selected||u===i)&&(h.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!g.nodeName(n.parentNode,"optgroup"))){if(t=g(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,o=g.makeArray(t),a=i.length;a--;)((r=i[a]).selected=g.inArray(g.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),g.each(["radio","checkbox"],(function(){g.valHooks[this]={set:function(e,t){if(g.isArray(t))return e.checked=g.inArray(g(e).val(),t)>-1}},h.checkOn||(g.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var st=/^(?:focusinfocus|focusoutblur)$/;g.extend(g.event,{trigger:function(e,t,r,i){var o,s,u,c,l,f,d,h=[r||a],m=p.call(e,"type")?e.type:e,v=p.call(e,"namespace")?e.namespace.split("."):[];if(s=u=r=r||a,3!==r.nodeType&&8!==r.nodeType&&!st.test(m+g.event.triggered)&&(m.indexOf(".")>-1&&(v=m.split("."),m=v.shift(),v.sort()),l=m.indexOf(":")<0&&"on"+m,(e=e[g.expando]?e:new g.Event(m,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:g.makeArray(t,[e]),d=g.event.special[m]||{},i||!d.trigger||!1!==d.trigger.apply(r,t))){if(!i&&!d.noBubble&&!g.isWindow(r)){for(c=d.delegateType||m,st.test(c+m)||(s=s.parentNode);s;s=s.parentNode)h.push(s),u=s;u===(r.ownerDocument||a)&&h.push(u.defaultView||u.parentWindow||n)}for(o=0;(s=h[o++])&&!e.isPropagationStopped();)e.type=o>1?c:d.bindType||m,(f=(N.get(s,"events")||{})[e.type]&&N.get(s,"handle"))&&f.apply(s,t),(f=l&&s[l])&&f.apply&&R(s)&&(e.result=f.apply(s,t),!1===e.result&&e.preventDefault());return e.type=m,i||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(h.pop(),t)||!R(r)||l&&g.isFunction(r[m])&&!g.isWindow(r)&&((u=r[l])&&(r[l]=null),g.event.triggered=m,r[m](),g.event.triggered=void 0,u&&(r[l]=u)),e.result}},simulate:function(e,t,n){var r=g.extend(new g.Event,n,{type:e,isSimulated:!0});g.event.trigger(r,null,t)}}),g.fn.extend({trigger:function(e,t){return this.each((function(){g.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return g.event.trigger(e,t,n,!0)}}),g.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(e,t){g.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}})),g.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),h.focusin="onfocusin"in n,h.focusin||g.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){g.event.simulate(t,e.target,g.event.fix(e))};g.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=N.access(r,t);i||r.addEventListener(e,n,!0),N.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=N.access(r,t)-1;i?N.access(r,t,i):(r.removeEventListener(e,n,!0),N.remove(r,t))}}}));var ut=n.location,ct=g.now(),lt=/\?/;g.parseJSON=function(e){return JSON.parse(e+"")},g.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||g.error("Invalid XML: "+e),t};var ft=/#.*$/,dt=/([?&])_=[^&]*/,pt=/^(.*?):[ \t]*([^\r\n]*)$/gm,ht=/^(?:GET|HEAD)$/,gt=/^\/\//,mt={},vt={},yt="*/".concat("*"),bt=a.createElement("a");function _t(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(P)||[];if(g.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function wt(e,t,n,r){var i={},o=e===vt;function a(s){var u;return i[s]=!0,g.each(e[s]||[],(function(e,s){var c=s(t,n,r);return"string"!=typeof c||o||i[c]?o?!(u=c):void 0:(t.dataTypes.unshift(c),a(c),!1)})),u}return a(t.dataTypes[0])||!i["*"]&&a("*")}function $t(e,t){var n,r,i=g.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&g.extend(!0,e,r),e}bt.href=ut.href,g.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ut.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ut.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":yt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":g.parseJSON,"text xml":g.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?$t($t(e,g.ajaxSettings),t):$t(g.ajaxSettings,e)},ajaxPrefilter:_t(mt),ajaxTransport:_t(vt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,o,s,u,c,l,f,d=g.ajaxSetup({},t),p=d.context||d,h=d.context&&(p.nodeType||p.jquery)?g(p):g.event,m=g.Deferred(),v=g.Callbacks("once memory"),y=d.statusCode||{},b={},_={},w=0,$="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(2===w){if(!s)for(s={};t=pt.exec(o);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===w?o:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return w||(e=_[n]=_[n]||e,b[e]=t),this},overrideMimeType:function(e){return w||(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(w<2)for(t in e)y[t]=[y[t],e[t]];else x.always(e[x.status]);return this},abort:function(e){var t=e||$;return r&&r.abort(t),q(0,t),this}};if(m.promise(x).complete=v.add,x.success=x.done,x.error=x.fail,d.url=((e||d.url||ut.href)+"").replace(ft,"").replace(gt,ut.protocol+"//"),d.type=t.method||t.type||d.method||d.type,d.dataTypes=g.trim(d.dataType||"*").toLowerCase().match(P)||[""],null==d.crossDomain){c=a.createElement("a");try{c.href=d.url,c.href=c.href,d.crossDomain=bt.protocol+"//"+bt.host!=c.protocol+"//"+c.host}catch(e){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=g.param(d.data,d.traditional)),wt(mt,d,t,x),2===w)return x;for(f in(l=g.event&&d.global)&&0==g.active++&&g.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!ht.test(d.type),i=d.url,d.hasContent||(d.data&&(i=d.url+=(lt.test(i)?"&":"?")+d.data,delete d.data),!1===d.cache&&(d.url=dt.test(i)?i.replace(dt,"$1_="+ct++):i+(lt.test(i)?"&":"?")+"_="+ct++)),d.ifModified&&(g.lastModified[i]&&x.setRequestHeader("If-Modified-Since",g.lastModified[i]),g.etag[i]&&x.setRequestHeader("If-None-Match",g.etag[i])),(d.data&&d.hasContent&&!1!==d.contentType||t.contentType)&&x.setRequestHeader("Content-Type",d.contentType),x.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+yt+"; q=0.01":""):d.accepts["*"]),d.headers)x.setRequestHeader(f,d.headers[f]);if(d.beforeSend&&(!1===d.beforeSend.call(p,x,d)||2===w))return x.abort();for(f in $="abort",{success:1,error:1,complete:1})x[f](d[f]);if(r=wt(vt,d,t,x)){if(x.readyState=1,l&&h.trigger("ajaxSend",[x,d]),2===w)return x;d.async&&d.timeout>0&&(u=n.setTimeout((function(){x.abort("timeout")}),d.timeout));try{w=1,r.send(b,q)}catch(e){if(!(w<2))throw e;q(-1,e)}}else q(-1,"No Transport");function q(e,t,a,s){var c,f,b,_,$,q=t;2!==w&&(w=2,u&&n.clearTimeout(u),r=void 0,o=s||"",x.readyState=e>0?4:0,c=e>=200&&e<300||304===e,a&&(_=function(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(d,x,a)),_=function(e,t,n,r){var i,o,a,s,u,c={},l=e.dataTypes.slice();if(l[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(o=l.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=l.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=c[u+" "+o]||c["* "+o]))for(i in c)if((s=i.split(" "))[1]===o&&(a=c[u+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[i]:!0!==c[i]&&(o=s[0],l.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(d,_,x,c),c?(d.ifModified&&(($=x.getResponseHeader("Last-Modified"))&&(g.lastModified[i]=$),($=x.getResponseHeader("etag"))&&(g.etag[i]=$)),204===e||"HEAD"===d.type?q="nocontent":304===e?q="notmodified":(q=_.state,f=_.data,c=!(b=_.error))):(b=q,!e&&q||(q="error",e<0&&(e=0))),x.status=e,x.statusText=(t||q)+"",c?m.resolveWith(p,[f,q,x]):m.rejectWith(p,[x,q,b]),x.statusCode(y),y=void 0,l&&h.trigger(c?"ajaxSuccess":"ajaxError",[x,d,c?f:b]),v.fireWith(p,[x,q]),l&&(h.trigger("ajaxComplete",[x,d]),--g.active||g.event.trigger("ajaxStop")))}return x},getJSON:function(e,t,n){return g.get(e,t,n,"json")},getScript:function(e,t){return g.get(e,void 0,t,"script")}}),g.each(["get","post"],(function(e,t){g[t]=function(e,n,r,i){return g.isFunction(n)&&(i=i||r,r=n,n=void 0),g.ajax(g.extend({url:e,type:t,dataType:i,data:n,success:r},g.isPlainObject(e)&&e))}})),g._evalUrl=function(e){return g.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},g.fn.extend({wrapAll:function(e){var t;return g.isFunction(e)?this.each((function(t){g(this).wrapAll(e.call(this,t))})):(this[0]&&(t=g(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this)},wrapInner:function(e){return g.isFunction(e)?this.each((function(t){g(this).wrapInner(e.call(this,t))})):this.each((function(){var t=g(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=g.isFunction(e);return this.each((function(n){g(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(){return this.parent().each((function(){g.nodeName(this,"body")||g(this).replaceWith(this.childNodes)})).end()}}),g.expr.filters.hidden=function(e){return!g.expr.filters.visible(e)},g.expr.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0};var xt=/%20/g,qt=/\[\]$/,St=/\r?\n/g,Et=/^(?:submit|button|image|reset|file)$/i,kt=/^(?:input|select|textarea|keygen)/i;function Ct(e,t,n,r){var i;if(g.isArray(t))g.each(t,(function(t,i){n||qt.test(e)?r(e,i):Ct(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==g.type(t))r(e,t);else for(i in t)Ct(e+"["+i+"]",t[i],n,r)}g.param=function(e,t){var n,r=[],i=function(e,t){t=g.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=g.ajaxSettings&&g.ajaxSettings.traditional),g.isArray(e)||e.jquery&&!g.isPlainObject(e))g.each(e,(function(){i(this.name,this.value)}));else for(n in e)Ct(n,e[n],t,i);return r.join("&").replace(xt,"+")},g.fn.extend({serialize:function(){return g.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=g.prop(this,"elements");return e?g.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!g(this).is(":disabled")&&kt.test(this.nodeName)&&!Et.test(e)&&(this.checked||!X.test(e))})).map((function(e,t){var n=g(this).val();return null==n?null:g.isArray(n)?g.map(n,(function(e){return{name:t.name,value:e.replace(St,"\r\n")}})):{name:t.name,value:n.replace(St,"\r\n")}})).get()}}),g.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Ot={0:200,1223:204},Tt=g.ajaxSettings.xhr();h.cors=!!Tt&&"withCredentials"in Tt,h.ajax=Tt=!!Tt,g.ajaxTransport((function(e){var t,r;if(h.cors||Tt&&!e.crossDomain)return{send:function(i,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Ot[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout((function(){t&&r()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),g.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return g.globalEval(e),e}}}),g.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),g.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain)return{send:function(r,i){t=g("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),a.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Dt=[],At=/(=)\?(?=&|$)|\?\?/;g.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Dt.pop()||g.expando+"_"+ct++;return this[e]=!0,e}}),g.ajaxPrefilter("json jsonp",(function(e,t,r){var i,o,a,s=!1!==e.jsonp&&(At.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&At.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=g.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(At,"$1"+i):!1!==e.jsonp&&(e.url+=(lt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||g.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=n[i],n[i]=function(){a=arguments},r.always((function(){void 0===o?g(n).removeProp(i):n[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,Dt.push(i)),a&&g.isFunction(o)&&o(a[0]),a=o=void 0})),"script"})),g.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||a;var r=S.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=ie([e],t,i),i&&i.length&&g(i).remove(),g.merge([],r.childNodes))};var It=g.fn.load;function Pt(e){return g.isWindow(e)?e:9===e.nodeType&&e.defaultView}g.fn.load=function(e,t,n){if("string"!=typeof e&&It)return It.apply(this,arguments);var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=g.trim(e.slice(s)),e=e.slice(0,s)),g.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&g.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){o=arguments,a.html(r?g("<div>").append(g.parseHTML(e)).find(r):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},g.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){g.fn[t]=function(e){return this.on(t,e)}})),g.expr.filters.animated=function(e){return g.grep(g.timers,(function(t){return e===t.elem})).length},g.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,c=g.css(e,"position"),l=g(e),f={};"static"===c&&(e.style.position="relative"),s=l.offset(),o=g.css(e,"top"),u=g.css(e,"left"),("absolute"===c||"fixed"===c)&&(o+u).indexOf("auto")>-1?(a=(r=l.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),g.isFunction(t)&&(t=t.call(e,n,g.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):l.css(f)}},g.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){g.offset.setOffset(this,e,t)}));var t,n,r=this[0],i={top:0,left:0},o=r&&r.ownerDocument;return o?(t=o.documentElement,g.contains(t,r)?(i=r.getBoundingClientRect(),n=Pt(o),{top:i.top+n.pageYOffset-t.clientTop,left:i.left+n.pageXOffset-t.clientLeft}):i):void 0},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===g.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),g.nodeName(e[0],"html")||(r=e.offset()),r.top+=g.css(e[0],"borderTopWidth",!0),r.left+=g.css(e[0],"borderLeftWidth",!0)),{top:t.top-r.top-g.css(n,"marginTop",!0),left:t.left-r.left-g.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===g.css(e,"position");)e=e.offsetParent;return e||De}))}}),g.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;g.fn[e]=function(r){return j(this,(function(e,r,i){var o=Pt(e);if(void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i}),e,r,arguments.length)}})),g.each(["top","left"],(function(e,t){g.cssHooks[t]=Ie(h.pixelPosition,(function(e,n){if(n)return n=Ae(e,t),Ce.test(n)?g(e).position()[t]+"px":n}))})),g.each({Height:"height",Width:"width"},(function(e,t){g.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){g.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===i?"margin":"border");return j(this,(function(t,n,r){var i;return g.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?g.css(t,n,a):g.style(t,n,r,a)}),t,o?r:void 0,o,null)}}))})),g.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},size:function(){return this.length}}),g.fn.andSelf=g.fn.addBack,void 0===(r=function(){return g}.apply(t,[]))||(e.exports=r);var Mt=n.jQuery,jt=n.$;return g.noConflict=function(e){return n.$===g&&(n.$=jt),e&&n.jQuery===g&&(n.jQuery=Mt),g},i||(n.jQuery=n.$=g),g},"object"==typeof e.exports?e.exports=i.document?o(i,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return o(e)}:o(i)},function(e,t,n){n(474),e.exports=angular},function(e,t){!function(e){"use strict";var t={objectMaxDepth:5,urlErrorParamsEnabled:!0};function n(e){if(!N(e))return t;F(e.objectMaxDepth)&&(t.objectMaxDepth=r(e.objectMaxDepth)?e.objectMaxDepth:NaN),F(e.urlErrorParamsEnabled)&&X(e.urlErrorParamsEnabled)&&(t.urlErrorParamsEnabled=e.urlErrorParamsEnabled)}function r(e){return B(e)&&e>0}function i(e,n){n=n||Error;var r="https://errors.angularjs.org/1.8.0/",i=r.replace(".","\\.")+"[\\s\\S]*",o=new RegExp(i,"g");return function(){var i,a,s=arguments[0],u=arguments[1],c="["+(e?e+":":"")+s+"] ",l=le(arguments,2).map((function(e){return Be(e,t.objectMaxDepth)}));if(c+=u.replace(/\{\d+\}/g,(function(e){var t=+e.slice(1,-1);return t<l.length?l[t].replace(o,""):e})),c+="\n"+r+(e?e+"/":"")+s,t.urlErrorParamsEnabled)for(a=0,i="?";a<l.length;a++,i="&")c+=i+"p"+a+"="+encodeURIComponent(l[a]);return new n(c)}}var o,a,s,u,c=/^\/(.+)\/([a-z]*)$/,l=Object.prototype.hasOwnProperty,f=function(e){return U(e)?e.toLowerCase():e},d=function(e){return U(e)?e.toUpperCase():e},p=[].slice,h=[].splice,g=[].push,m=Object.prototype.toString,v=Object.getPrototypeOf,y=i("ng"),b=e.angular||(e.angular={}),_=0;function w(e){if(null==e||Y(e))return!1;if(V(e)||U(e)||a&&e instanceof a)return!0;var t="length"in Object(e)&&e.length;return B(t)&&(t>=0&&t-1 in e||"function"==typeof e.item)}function $(e,t,n){var r,i;if(e)if(z(e))for(r in e)"prototype"!==r&&"length"!==r&&"name"!==r&&e.hasOwnProperty(r)&&t.call(n,e[r],r,e);else if(V(e)||w(e)){var o="object"!=typeof e;for(r=0,i=e.length;r<i;r++)(o||r in e)&&t.call(n,e[r],r,e)}else if(e.forEach&&e.forEach!==$)e.forEach(t,n,e);else if(L(e))for(r in e)t.call(n,e[r],r,e);else if("function"==typeof e.hasOwnProperty)for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e);else for(r in e)l.call(e,r)&&t.call(n,e[r],r,e);return e}function x(e,t,n){for(var r=Object.keys(e).sort(),i=0;i<r.length;i++)t.call(n,e[r[i]],r[i]);return r}function q(e){return function(t,n){e(n,t)}}function S(){return++_}function E(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function k(e,t,n){for(var r=e.$$hashKey,i=0,o=t.length;i<o;++i){var a=t[i];if(N(a)||z(a))for(var s=Object.keys(a),u=0,c=s.length;u<c;u++){var l=s[u],f=a[l];n&&N(f)?H(f)?e[l]=new Date(f.valueOf()):W(f)?e[l]=new RegExp(f):f.nodeName?e[l]=f.cloneNode(!0):ee(f)?e[l]=f.clone():"__proto__"!==l&&(N(e[l])||(e[l]=V(f)?[]:{}),k(e[l],[f],!0)):e[l]=f}}return E(e,r),e}function C(e){return k(e,p.call(arguments,1),!1)}function O(e){return k(e,p.call(arguments,1),!0)}function T(e){return parseInt(e,10)}o=e.document.documentMode;var D=Number.isNaN||function(e){return e!=e};function A(e,t){return C(Object.create(e),t)}function I(){}function P(e){return e}function M(e){return function(){return e}}function j(e){return z(e.toString)&&e.toString!==m}function R(e){return void 0===e}function F(e){return void 0!==e}function N(e){return null!==e&&"object"==typeof e}function L(e){return null!==e&&"object"==typeof e&&!v(e)}function U(e){return"string"==typeof e}function B(e){return"number"==typeof e}function H(e){return"[object Date]"===m.call(e)}function V(e){return Array.isArray(e)||e instanceof Array}function isError(e){switch(m.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}}function z(e){return"function"==typeof e}function W(e){return"[object RegExp]"===m.call(e)}function Y(e){return e&&e.window===e}function G(e){return e&&e.$evalAsync&&e.$watch}function X(e){return"boolean"==typeof e}function K(e){return e&&z(e.then)}I.$inject=[],P.$inject=[];var J=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/;var Z=function(e){return U(e)?e.trim():e},Q=function(e){return e.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};function ee(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function te(e){return f(e.nodeName||e[0]&&e[0].nodeName)}function ne(e,t){return-1!==Array.prototype.indexOf.call(e,t)}function re(e,t){var n=e.indexOf(t);return n>=0&&e.splice(n,1),n}function ie(e,t,n){var i,o,a=[],s=[];if(n=r(n)?n:NaN,t){if((o=t)&&B(o.length)&&J.test(m.call(o))||(i=t,"[object ArrayBuffer]"===m.call(i)))throw y("cpta","Can't copy! TypedArray destination cannot be mutated.");if(e===t)throw y("cpi","Can't copy! Source and destination are identical.");return V(t)?t.length=0:$(t,(function(e,n){"$$hashKey"!==n&&delete t[n]})),a.push(e),s.push(t),u(e,t,n)}return c(e,n);function u(e,t,n){if(--n<0)return"...";var r,i=t.$$hashKey;if(V(e))for(var o=0,a=e.length;o<a;o++)t.push(c(e[o],n));else if(L(e))for(r in e)t[r]=c(e[r],n);else if(e&&"function"==typeof e.hasOwnProperty)for(r in e)e.hasOwnProperty(r)&&(t[r]=c(e[r],n));else for(r in e)l.call(e,r)&&(t[r]=c(e[r],n));return E(t,i),t}function c(e,t){if(!N(e))return e;var n=a.indexOf(e);if(-1!==n)return s[n];if(Y(e)||G(e))throw y("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var r=!1,i=function(e){switch(m.call(e)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new e.constructor(c(e.buffer),e.byteOffset,e.length);case"[object ArrayBuffer]":if(!e.slice){var t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}return e.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new e.constructor(e.valueOf());case"[object RegExp]":var n=new RegExp(e.source,e.toString().match(/[^/]*$/)[0]);return n.lastIndex=e.lastIndex,n;case"[object Blob]":return new e.constructor([e],{type:e.type})}if(z(e.cloneNode))return e.cloneNode(!0)}(e);return void 0===i&&(i=V(e)?[]:Object.create(v(e)),r=!0),a.push(e),s.push(i),r?u(e,i,t):i}}function oe(e,t){return e===t||e!=e&&t!=t}function ae(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;var n,r,i,o=typeof e;if(o===typeof t&&"object"===o){if(!V(e)){if(H(e))return!!H(t)&&oe(e.getTime(),t.getTime());if(W(e))return!!W(t)&&e.toString()===t.toString();if(G(e)||G(t)||Y(e)||Y(t)||V(t)||H(t)||W(t))return!1;for(r in i=Fe(),e)if("$"!==r.charAt(0)&&!z(e[r])){if(!ae(e[r],t[r]))return!1;i[r]=!0}for(r in t)if(!(r in i)&&"$"!==r.charAt(0)&&F(t[r])&&!z(t[r]))return!1;return!0}if(!V(t))return!1;if((n=e.length)===t.length){for(r=0;r<n;r++)if(!ae(e[r],t[r]))return!1;return!0}}return!1}var se=function(){if(!F(se.rules)){var t=e.document.querySelector("[ng-csp]")||e.document.querySelector("[data-ng-csp]");if(t){var n=t.getAttribute("ng-csp")||t.getAttribute("data-ng-csp");se.rules={noUnsafeEval:!n||-1!==n.indexOf("no-unsafe-eval"),noInlineStyle:!n||-1!==n.indexOf("no-inline-style")}}else se.rules={noUnsafeEval:function(){try{return new Function(""),!1}catch(e){return!0}}(),noInlineStyle:!1}}return se.rules},ue=function(){if(F(ue.name_))return ue.name_;var t,n,r,i,o=qe.length;for(n=0;n<o;++n)if(r=qe[n],t=e.document.querySelector("["+r.replace(":","\\:")+"jq]")){i=t.getAttribute(r+"jq");break}return ue.name_=i};function ce(e,t,n){return e.concat(p.call(t,n))}function le(e,t){return p.call(e,t||0)}function fe(e,t){var n=arguments.length>2?le(arguments,2):[];return!z(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,ce(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function de(t,n){var r=n;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?r=void 0:Y(n)?r="$WINDOW":n&&e.document===n?r="$DOCUMENT":G(n)&&(r="$SCOPE"),r}function pe(e,t){if(!R(e))return B(t)||(t=t?2:null),JSON.stringify(e,de,t)}function he(e){return U(e)?JSON.parse(e):e}var ge=/:/g;function me(e,t){e=e.replace(ge,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return D(n)?t:n}function ve(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}function ye(e,t,n){n=n?-1:1;var r=e.getTimezoneOffset();return ve(e,n*(me(t,r)-r))}function be(e){e=a(e).clone().empty();var t=a("<div></div>").append(e).html();try{return e[0].nodeType===Le?f(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,(function(e,t){return"<"+f(t)}))}catch(e){return f(t)}}function _e(e){try{return decodeURIComponent(e)}catch(e){}}function we(e){var t={};return $((e||"").split("&"),(function(e){var n,r,i;e&&(r=e=e.replace(/\+/g,"%20"),-1!==(n=e.indexOf("="))&&(r=e.substring(0,n),i=e.substring(n+1)),F(r=_e(r))&&(i=!F(i)||_e(i),l.call(t,r)?V(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i))})),t}function $e(e){return xe(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function xe(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}var qe=["ng-","data-ng-","ng:","x-ng-"];var Se=function(t){var n=t.currentScript;if(!n)return!0;if(!(n instanceof e.HTMLScriptElement||n instanceof e.SVGScriptElement))return!1;var r=n.attributes;return[r.getNamedItem("src"),r.getNamedItem("href"),r.getNamedItem("xlink:href")].every((function(e){if(!e)return!0;if(!e.value)return!1;var n=t.createElement("a");if(n.href=e.value,t.location.origin===n.origin)return!0;switch(n.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}}))}(e.document);function Ee(t,n){var r,i,o={};if($(qe,(function(e){var n=e+"app";!r&&t.hasAttribute&&t.hasAttribute(n)&&(r=t,i=t.getAttribute(n))})),$(qe,(function(e){var n,o=e+"app";!r&&(n=t.querySelector("["+o.replace(":","\\:")+"]"))&&(r=n,i=n.getAttribute(o))})),r){if(!Se)return void e.console.error("AngularJS: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match.");o.strictDi=null!==function(e,t){var n,r,i=qe.length;for(r=0;r<i;++r)if(n=qe[r]+t,U(n=e.getAttribute(n)))return n;return null}(r,"strict-di"),n(r,i?[i]:[],o)}}function ke(t,n,r){N(r)||(r={});r=C({strictDi:!1},r);var i=function(){if((t=a(t)).injector()){var i=t[0]===e.document?"document":be(t);throw y("btstrpd","App already bootstrapped with this element '{0}'",i.replace(/</,"&lt;").replace(/>/,"&gt;"))}(n=n||[]).unshift(["$provide",function(e){e.value("$rootElement",t)}]),r.debugInfoEnabled&&n.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),n.unshift("ng");var o=Kt(n,r.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,r){e.$apply((function(){t.data("$injector",r),n(t)(e)}))}]),o},o=/^NG_ENABLE_DEBUG_INFO!/,s=/^NG_DEFER_BOOTSTRAP!/;if(e&&o.test(e.name)&&(r.debugInfoEnabled=!0,e.name=e.name.replace(o,"")),e&&!s.test(e.name))return i();e.name=e.name.replace(s,""),b.resumeBootstrap=function(e){return $(e,(function(e){n.push(e)})),i()},z(b.resumeDeferredBootstrap)&&b.resumeDeferredBootstrap()}function Ce(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function Oe(e){var t=b.element(e).injector();if(!t)throw y("test","no injector found for element argument to getTestability");return t.get("$$testability")}var Te=/[A-Z]/g;function De(e,t){return t=t||"_",e.replace(Te,(function(e,n){return(n?t:"")+e.toLowerCase()}))}var Ae=!1;function Ie(){ft.legacyXHTMLReplacement=!0}function Pe(e,t,n){if(!e)throw y("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function Me(e,t,n){return n&&V(e)&&(e=e[e.length-1]),Pe(z(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function je(e,t){if("hasOwnProperty"===e)throw y("badname","hasOwnProperty is not a valid {0} name",t)}function Re(e){for(var t,n=e[0],r=e[e.length-1],i=1;n!==r&&(n=n.nextSibling);i++)(t||e[i]!==n)&&(t||(t=a(p.call(e,0,i))),t.push(n));return t||e}function Fe(){return Object.create(null)}function Ne(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=!j(e)||V(e)||H(e)?pe(e):e.toString()}return e}var Le=3;function Ue(e,t){if(V(e)){t=t||[];for(var n=0,r=e.length;n<r;n++)t[n]=e[n]}else if(N(e))for(var i in t=t||{},e)"$"===i.charAt(0)&&"$"===i.charAt(1)||(t[i]=e[i]);return t||e}function Be(e,t){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):R(e)?"undefined":"string"!=typeof e?function(e,t){var n=[];return r(t)&&(e=b.copy(e,null,t)),JSON.stringify(e,(function(e,t){if(N(t=de(e,t))){if(n.indexOf(t)>=0)return"...";n.push(t)}return t}))}(e,t):e}var He={full:"1.8.0",major:1,minor:8,dot:0,codeName:"nested-vaccination"};ft.expando="ng339";var Ve=ft.cache={},ze=1;ft._data=function(e){return this.cache[e[this.expando]]||{}};var We=/-([a-z])/g,Ye=/^-ms-/,Ge={mouseleave:"mouseout",mouseenter:"mouseover"},Xe=i("jqLite");function Ke(e,t){return t.toUpperCase()}function Je(e){return e.replace(We,Ke)}var Ze=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Qe=/<|&#?\w+;/,et=/<([\w:-]+)/,tt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,nt={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};nt.tbody=nt.tfoot=nt.colgroup=nt.caption=nt.thead,nt.th=nt.td;var rt={option:[1,'<select multiple="multiple">',"</select>"],_default:[0,"",""]};for(var it in nt){var ot=nt[it],at=ot.slice().reverse();rt[it]=[at.length,"<"+at.join("><")+">","</"+ot.join("></")+">"]}function st(e){return!Qe.test(e)}function ut(e){var t=e.nodeType;return 1===t||!t||9===t}function ct(t,n){var r,i,a,s,u,c=n.createDocumentFragment(),l=[];if(st(t))l.push(n.createTextNode(t));else{if(r=c.appendChild(n.createElement("div")),i=(et.exec(t)||["",""])[1].toLowerCase(),s=ft.legacyXHTMLReplacement?t.replace(tt,"<$1></$2>"):t,o<10)for(a=rt[i]||rt._default,r.innerHTML=a[1]+s+a[2],u=a[0];u--;)r=r.firstChild;else{for(u=(a=nt[i]||[]).length;--u>-1;)r.appendChild(e.document.createElement(a[u])),r=r.firstChild;r.innerHTML=s}l=ce(l,r.childNodes),(r=c.firstChild).textContent=""}return c.textContent="",c.innerHTML="",$(l,(function(e){c.appendChild(e)})),c}rt.optgroup=rt.option;var lt=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))};function ft(t){if(t instanceof ft)return t;var n,r,i,o;if(U(t)&&(t=Z(t),n=!0),!(this instanceof ft)){if(n&&"<"!==t.charAt(0))throw Xe("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new ft(t)}n?xt(this,(r=t,i=i||e.document,(o=Ze.exec(r))?[i.createElement(o[1])]:(o=ct(r,i))?o.childNodes:[])):z(t)?Ct(t):xt(this,t)}function dt(e){return e.cloneNode(!0)}function pt(e,t){!t&&ut(e)&&a.cleanData([e]),e.querySelectorAll&&a.cleanData(e.querySelectorAll("*"))}function ht(e){var t;for(t in e)return!1;return!0}function gt(e){var t=e.ng339,n=t&&Ve[t],r=n&&n.events,i=n&&n.data;i&&!ht(i)||r&&!ht(r)||(delete Ve[t],e.ng339=void 0)}function mt(e,t,n,r){if(F(r))throw Xe("offargs","jqLite#off() does not support the `selector` argument");var i=yt(e),o=i&&i.events,a=i&&i.handle;if(a){if(t){var s=function(t){var r=o[t];F(n)&&re(r||[],n),F(n)&&r&&r.length>0||(e.removeEventListener(t,a),delete o[t])};$(t.split(" "),(function(e){s(e),Ge[e]&&s(Ge[e])}))}else for(t in o)"$destroy"!==t&&e.removeEventListener(t,a),delete o[t];gt(e)}}function vt(e,t){var n=e.ng339,r=n&&Ve[n];r&&(t?delete r.data[t]:r.data={},gt(e))}function yt(e,t){var n=e.ng339,r=n&&Ve[n];return t&&!r&&(e.ng339=n=++ze,r=Ve[n]={events:{},data:{},handle:void 0}),r}function bt(e,t,n){if(ut(e)){var r,i=F(n),o=!i&&t&&!N(t),a=!t,s=yt(e,!o),u=s&&s.data;if(i)u[Je(t)]=n;else{if(a)return u;if(o)return u&&u[Je(t)];for(r in t)u[Je(r)]=t[r]}}}function _t(e,t){return!!e.getAttribute&&(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1}function wt(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=n;$(t.split(" "),(function(e){e=Z(e),r=r.replace(" "+e+" "," ")})),r!==n&&e.setAttribute("class",Z(r))}}function $t(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=n;$(t.split(" "),(function(e){e=Z(e),-1===r.indexOf(" "+e+" ")&&(r+=e+" ")})),r!==n&&e.setAttribute("class",Z(r))}}function xt(e,t){if(t)if(t.nodeType)e[e.length++]=t;else{var n=t.length;if("number"==typeof n&&t.window!==t){if(n)for(var r=0;r<n;r++)e[e.length++]=t[r]}else e[e.length++]=t}}function qt(e,t){return St(e,"$"+(t||"ngController")+"Controller")}function St(e,t,n){9===e.nodeType&&(e=e.documentElement);for(var r=V(t)?t:[t];e;){for(var i=0,o=r.length;i<o;i++)if(F(n=a.data(e,r[i])))return n;e=e.parentNode||11===e.nodeType&&e.host}}function Et(e){for(pt(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function kt(e,t){t||pt(e);var n=e.parentNode;n&&n.removeChild(e)}function Ct(t){function n(){e.document.removeEventListener("DOMContentLoaded",n),e.removeEventListener("load",n),t()}"complete"===e.document.readyState?e.setTimeout(t):(e.document.addEventListener("DOMContentLoaded",n),e.addEventListener("load",n))}var Ot=ft.prototype={ready:Ct,toString:function(){var e=[];return $(this,(function(t){e.push(""+t)})),"["+e.join(", ")+"]"},eq:function(e){return a(e>=0?this[e]:this[this.length+e])},length:0,push:g,sort:[].sort,splice:[].splice},Tt={};$("multiple,selected,checked,disabled,readOnly,required,open".split(","),(function(e){Tt[f(e)]=e}));var Dt={};$("input,select,option,textarea,button,form,details".split(","),(function(e){Dt[e]=!0}));var At={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};function It(e,t){var n=Tt[t.toLowerCase()];return n&&Dt[te(e)]&&n}function Pt(e,t,n){n.call(e,t)}function Mt(e,t,n){var r=t.relatedTarget;r&&(r===e||lt.call(e,r))||n.call(e,t)}function jt(){this.$get=function(){return C(ft,{hasClass:function(e,t){return e.attr&&(e=e[0]),_t(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),$t(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),wt(e,t)}})}}function Rt(e,t){var n=e&&e.$$hashKey;if(n)return"function"==typeof n&&(n=e.$$hashKey()),n;var r=typeof e;return n="function"===r||"object"===r&&null!==e?e.$$hashKey=r+":"+(t||S)():r+":"+e}$({data:bt,removeData:vt,hasData:function(e){for(var t in Ve[e.ng339])return!0;return!1},cleanData:function(e){for(var t=0,n=e.length;t<n;t++)vt(e[t]),mt(e[t])}},(function(e,t){ft[t]=e})),$({data:bt,inheritedData:St,scope:function(e){return a.data(e,"$scope")||St(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return a.data(e,"$isolateScope")||a.data(e,"$isolateScopeNoTemplate")},controller:qt,injector:function(e){return St(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:_t,css:function(e,t,n){if(t=function(e){return Je(e.replace(Ye,"ms-"))}(t),!F(n))return e.style[t];e.style[t]=n},attr:function(e,t,n){var r,i=e.nodeType;if(i!==Le&&2!==i&&8!==i&&e.getAttribute){var o=f(t),a=Tt[o];if(!F(n))return r=e.getAttribute(t),a&&null!==r&&(r=o),null===r?void 0:r;null===n||!1===n&&a?e.removeAttribute(t):e.setAttribute(t,a?o:n)}},prop:function(e,t,n){if(!F(n))return e[t];e[t]=n},text:function(){return e.$dv="",e;function e(e,t){if(R(t)){var n=e.nodeType;return 1===n||n===Le?e.textContent:""}e.textContent=t}}(),val:function(e,t){if(R(t)){if(e.multiple&&"select"===te(e)){var n=[];return $(e.options,(function(e){e.selected&&n.push(e.value||e.text)})),n}return e.value}e.value=t},html:function(e,t){if(R(t))return e.innerHTML;pt(e,!0),e.innerHTML=t},empty:Et},(function(e,t){ft.prototype[t]=function(t,n){var r,i,o=this.length;if(e!==Et&&R(2===e.length&&e!==_t&&e!==qt?t:n)){if(N(t)){for(r=0;r<o;r++)if(e===bt)e(this[r],t);else for(i in t)e(this[r],i,t[i]);return this}for(var a=e.$dv,s=R(a)?Math.min(o,1):o,u=0;u<s;u++){var c=e(this[u],t,n);a=a?a+c:c}return a}for(r=0;r<o;r++)e(this[r],t,n);return this}})),$({removeData:vt,on:function(e,t,n,r){if(F(r))throw Xe("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(ut(e)){var i=yt(e,!0),o=i.events,a=i.handle;a||(a=i.handle=function(e,t){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=t[r||n.type],o=i?i.length:0;if(o){if(R(n.immediatePropagationStopped)){var a=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),a&&a.call(n)}}n.isImmediatePropagationStopped=function(){return!0===n.immediatePropagationStopped};var s=i.specialHandlerWrapper||Pt;o>1&&(i=Ue(i));for(var u=0;u<o;u++)n.isImmediatePropagationStopped()||s(e,n,i[u])}};return n.elem=e,n}(e,o));for(var s=t.indexOf(" ")>=0?t.split(" "):[t],u=s.length,c=function(t,r,i){var s=o[t];s||((s=o[t]=[]).specialHandlerWrapper=r,"$destroy"===t||i||e.addEventListener(t,a)),s.push(n)};u--;)t=s[u],Ge[t]?(c(Ge[t],Mt),c(t,void 0,!0)):c(t)}},off:mt,one:function(e,t,n){(e=a(e)).on(t,(function r(){e.off(t,n),e.off(t,r)})),e.on(t,n)},replaceWith:function(e,t){var n,r=e.parentNode;pt(e),$(new ft(t),(function(t){n?r.insertBefore(t,n.nextSibling):r.replaceChild(t,e),n=t}))},children:function(e){var t=[];return $(e.childNodes,(function(e){1===e.nodeType&&t.push(e)})),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(1===n||11===n)for(var r=0,i=(t=new ft(t)).length;r<i;r++){var o=t[r];e.appendChild(o)}},prepend:function(e,t){if(1===e.nodeType){var n=e.firstChild;$(new ft(t),(function(t){e.insertBefore(t,n)}))}},wrap:function(e,t){var n,r,i;n=e,r=a(t).eq(0).clone()[0],(i=n.parentNode)&&i.replaceChild(r,n),r.appendChild(n)},remove:kt,detach:function(e){kt(e,!0)},after:function(e,t){var n=e,r=e.parentNode;if(r)for(var i=0,o=(t=new ft(t)).length;i<o;i++){var a=t[i];r.insertBefore(a,n.nextSibling),n=a}},addClass:$t,removeClass:wt,toggleClass:function(e,t,n){t&&$(t.split(" "),(function(t){var r=n;R(r)&&(r=!_t(e,t)),(r?$t:wt)(e,t)}))},parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:dt,triggerHandler:function(e,t,n){var r,i,o,a=t.type||t,s=yt(e),u=s&&s.events,c=u&&u[a];c&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:I,type:a,target:e},t.type&&(r=C(r,t)),i=Ue(c),o=n?[r].concat(n):[r],$(i,(function(t){r.isImmediatePropagationStopped()||t.apply(e,o)})))}},(function(e,t){ft.prototype[t]=function(t,n,r){for(var i,o=0,s=this.length;o<s;o++)R(i)?F(i=e(this[o],t,n,r))&&(i=a(i)):xt(i,e(this[o],t,n,r));return F(i)?i:this}})),ft.prototype.bind=ft.prototype.on,ft.prototype.unbind=ft.prototype.off;var Ft=Object.create(null);function Nt(){this._keys=[],this._values=[],this._lastKey=NaN,this._lastIndex=-1}Nt.prototype={_idx:function(e){return e!==this._lastKey&&(this._lastKey=e,this._lastIndex=this._keys.indexOf(e)),this._lastIndex},_transformKey:function(e){return D(e)?Ft:e},get:function(e){e=this._transformKey(e);var t=this._idx(e);if(-1!==t)return this._values[t]},has:function(e){return e=this._transformKey(e),-1!==this._idx(e)},set:function(e,t){e=this._transformKey(e);var n=this._idx(e);-1===n&&(n=this._lastIndex=this._keys.length),this._keys[n]=e,this._values[n]=t},delete:function(e){e=this._transformKey(e);var t=this._idx(e);return-1!==t&&(this._keys.splice(t,1),this._values.splice(t,1),this._lastKey=NaN,this._lastIndex=-1,!0)}};var Lt=Nt,Ut=[function(){this.$get=[function(){return Lt}]}],Bt=/^([^(]+?)=>/,Ht=/^[^(]*\(\s*([^)]*)\)/m,Vt=/,/,zt=/^\s*(_?)(\S+?)\1\s*$/,Wt=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Yt=i("$injector");function Gt(e){return Function.prototype.toString.call(e)}function Xt(e){var t=Gt(e).replace(Wt,"");return t.match(Bt)||t.match(Ht)}function Kt(e,t){t=!0===t;var n={},r=[],i=new Lt,a={$provide:{provider:p(h),factory:p(m),service:p((function(e,t){return m(e,["$injector",function(e){return e.instantiate(t)}])})),value:p((function(e,t){return m(e,M(t),!1)})),constant:p((function(e,t){je(e,"constant"),a[e]=t,c[e]=t})),decorator:function(e,t){var n=s.get(e+"Provider"),r=n.$get;n.$get=function(){var e=f.invoke(r,n);return f.invoke(t,null,{$delegate:e})}}}},s=a.$injector=y(a,(function(e,t){throw b.isString(t)&&r.push(t),Yt("unpr","Unknown provider: {0}",r.join(" <- "))})),c={},l=y(c,(function(e,t){var n=s.get(e+"Provider",t);return f.invoke(n.$get,n,void 0,e)})),f=l;a.$injectorProvider={$get:M(l)},f.modules=s.modules=Fe();var d=v(e);return(f=l.get("$injector")).strictDi=t,$(d,(function(e){e&&f.invoke(e)})),f.loadNewModules=function(e){$(v(e),(function(e){e&&f.invoke(e)}))},f;function p(e){return function(t,n){if(!N(t))return e(t,n);$(t,q(e))}}function h(e,t){if(je(e,"service"),(z(t)||V(t))&&(t=s.instantiate(t)),!t.$get)throw Yt("pget","Provider '{0}' must define $get factory method.",e);return a[e+"Provider"]=t}function g(e,t){return function(){var n=f.invoke(t,this);if(R(n))throw Yt("undef","Provider '{0}' must return a value from $get factory method.",e);return n}}function m(e,t,n){return h(e,{$get:!1!==n?g(e,t):t})}function v(e){Pe(R(e)||V(e),"modulesToLoad","not an array");var t,n=[];return $(e,(function(e){if(!i.get(e)){i.set(e,!0);try{U(e)?(t=u(e),f.modules[e]=t,n=n.concat(v(t.requires)).concat(t._runBlocks),r(t._invokeQueue),r(t._configBlocks)):z(e)||V(e)?n.push(s.invoke(e)):Me(e,"module")}catch(t){throw V(e)&&(e=e[e.length-1]),t.message&&t.stack&&-1===t.stack.indexOf(t.message)&&(t=t.message+"\n"+t.stack),Yt("modulerr","Failed to instantiate module {0} due to:\n{1}",e,t.stack||t.message||t)}}function r(e){var t,n;for(t=0,n=e.length;t<n;t++){var r=e[t],i=s.get(r[0]);i[r[1]].apply(i,r[2])}}})),n}function y(e,i){function s(t,o){if(e.hasOwnProperty(t)){if(e[t]===n)throw Yt("cdep","Circular dependency found: {0}",t+" <- "+r.join(" <- "));return e[t]}try{return r.unshift(t),e[t]=n,e[t]=i(t,o),e[t]}catch(r){throw e[t]===n&&delete e[t],r}finally{r.shift()}}function u(e,n,r){for(var i=[],o=Kt.$$annotate(e,t,r),a=0,u=o.length;a<u;a++){var c=o[a];if("string"!=typeof c)throw Yt("itkn","Incorrect injection token! Expected service name as string, got {0}",c);i.push(n&&n.hasOwnProperty(c)?n[c]:s(c,r))}return i}return{invoke:function(e,t,n,r){"string"==typeof n&&(r=n,n=null);var i=u(e,n,r);return V(e)&&(e=e[e.length-1]),function(e){if(o||"function"!=typeof e)return!1;var t=e.$$ngIsClass;return X(t)||(t=e.$$ngIsClass=/^class\b/.test(Gt(e))),t}(e)?(i.unshift(null),new(Function.prototype.bind.apply(e,i))):e.apply(t,i)},instantiate:function(e,t,n){var r=V(e)?e[e.length-1]:e,i=u(e,t,n);return i.unshift(null),new(Function.prototype.bind.apply(r,i))},get:s,annotate:Kt.$$annotate,has:function(t){return a.hasOwnProperty(t+"Provider")||e.hasOwnProperty(t)}}}}function Jt(){var t=!0;this.disableAutoScrolling=function(){t=!1},this.$get=["$window","$location","$rootScope",function(n,r,i){var o=n.document;function s(e){if(e){e.scrollIntoView();var t=function(){var e=u.yOffset;if(z(e))e=e();else if(ee(e)){var t=e[0];e="fixed"!==n.getComputedStyle(t).position?0:t.getBoundingClientRect().bottom}else B(e)||(e=0);return e}();if(t){var r=e.getBoundingClientRect().top;n.scrollBy(0,r-t)}}else n.scrollTo(0,0)}function u(e){var t,n,i;(e=U(e)?e:B(e)?e.toString():r.hash())?(t=o.getElementById(e))?s(t):(n=o.getElementsByName(e),i=null,Array.prototype.some.call(n,(function(e){if("a"===te(e))return i=e,!0})),(t=i)?s(t):"top"===e&&s(null)):s(null)}return t&&i.$watch((function(){return r.hash()}),(function(t,n){var r,o;t===n&&""===t||(r=function(){i.$evalAsync(u)},"complete"===(o=o||e).document.readyState?o.setTimeout(r):a(o).on("load",r))})),u}]}Kt.$$annotate=function(e,t,n){var r,i;if("function"==typeof e){if(!(r=e.$inject)){if(r=[],e.length){if(t)throw U(n)&&n||(n=e.name||function(e){var t=Xt(e);return t?"function("+(t[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}(e)),Yt("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);$(Xt(e)[1].split(Vt),(function(e){e.replace(zt,(function(e,t,n){r.push(n)}))}))}e.$inject=r}}else V(e)?(Me(e[i=e.length-1],"fn"),r=e.slice(0,i)):Me(e,"fn",!0);return r};var Zt=i("$animate");function Qt(e,t){return e||t?e?t?(V(e)&&(e=e.join(" ")),V(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function en(e){return N(e)?e:{}}var tn=function(){this.$get=I},nn=function(){var e=new Lt,t=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){return{enabled:I,on:I,off:I,pin:I,push:function(a,s,u,c){c&&c(),(u=u||{}).from&&a.css(u.from),u.to&&a.css(u.to),(u.addClass||u.removeClass)&&function(n,a,s){var u=e.get(n)||{},c=i(u,a,!0),l=i(u,s,!1);(c||l)&&(e.set(n,u),t.push(n),1===t.length&&r.$$postDigest(o))}(a,u.addClass,u.removeClass);var l=new n;return l.complete(),l}};function i(e,t,n){var r=!1;return t&&$(t=U(t)?t.split(" "):V(t)?t:[],(function(t){t&&(r=!0,e[t]=n)})),r}function o(){$(t,(function(t){var n=e.get(t);if(n){var r=function(e){U(e)&&(e=e.split(" "));var t=Fe();return $(e,(function(e){e.length&&(t[e]=!0)})),t}(t.attr("class")),i="",o="";$(n,(function(e,t){e!==!!r[t]&&(e?i+=(i.length?" ":"")+t:o+=(o.length?" ":"")+t)})),$(t,(function(e){i&&$t(e,i),o&&wt(e,o)})),e.delete(t)}})),t.length=0}}]},rn=["$provide",function(e){var t=this,n=null,r=null;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Zt("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";t.$$registeredAnimations[n.substr(1)]=i,e.factory(i,r)},this.customFilter=function(e){return 1===arguments.length&&(r=z(e)?e:null),r},this.classNameFilter=function(e){if(1===arguments.length&&(n=e instanceof RegExp?e:null)){var t=new RegExp("[(\\s|\\/)]ng-animate[(\\s|\\/)]");if(t.test(n.toString()))throw n=null,Zt("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',"ng-animate")}return n},this.$get=["$$animateQueue",function(e){function t(e,t,n){if(n){var r=function(e){for(var t=0;t<e.length;t++){var n=e[t];if(1===n.nodeType)return n}}(n);!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(e):t.prepend(e)}return{on:e.on,off:e.off,pin:e.pin,enabled:e.enabled,cancel:function(e){e.cancel&&e.cancel()},enter:function(n,r,i,o){return r=r&&a(r),i=i&&a(i),t(n,r=r||i.parent(),i),e.push(n,"enter",en(o))},move:function(n,r,i,o){return r=r&&a(r),i=i&&a(i),t(n,r=r||i.parent(),i),e.push(n,"move",en(o))},leave:function(t,n){return e.push(t,"leave",en(n),(function(){t.remove()}))},addClass:function(t,n,r){return(r=en(r)).addClass=Qt(r.addclass,n),e.push(t,"addClass",r)},removeClass:function(t,n,r){return(r=en(r)).removeClass=Qt(r.removeClass,n),e.push(t,"removeClass",r)},setClass:function(t,n,r,i){return(i=en(i)).addClass=Qt(i.addClass,n),i.removeClass=Qt(i.removeClass,r),e.push(t,"setClass",i)},animate:function(t,n,r,i,o){return(o=en(o)).from=o.from?C(o.from,n):n,o.to=o.to?C(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=Qt(o.tempClasses,i),e.push(t,"animate",o)}}}]}],on=function(){this.$get=["$$rAF",function(e){var t=[];function n(n){t.push(n),t.length>1||e((function(){for(var e=0;e<t.length;e++)t[e]();t=[]}))}return function(){var e=!1;return n((function(){e=!0})),function(t){e?t():n(t)}}}]},an=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(e,t,n,r,i){function o(e){this.setHost(e);var t=n();this._doneCallbacks=[],this._tick=function(e){r()?function(e){i(e,0,!1)}(e):t(e)},this._state=0}return o.chain=function(e,t){var n=0;!function r(){if(n===e.length)return void t(!0);e[n]((function(e){!1!==e?(n++,r()):t(!1)}))}()},o.all=function(e,t){var n=0,r=!0;function i(i){r=r&&i,++n===e.length&&t(r)}$(e,(function(e){e.done(i)}))},o.prototype={setHost:function(e){this.host=e||{}},done:function(e){2===this._state?e():this._doneCallbacks.push(e)},progress:I,getPromise:function(){if(!this.promise){var t=this;this.promise=e((function(e,n){t.done((function(t){!1===t?n():e()}))}))}return this.promise},then:function(e,t){return this.getPromise().then(e,t)},catch:function(e){return this.getPromise().catch(e)},finally:function(e){return this.getPromise().finally(e)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(e){var t=this;0===t._state&&(t._state=1,t._tick((function(){t._resolve(e)})))},_resolve:function(e){2!==this._state&&($(this._doneCallbacks,(function(t){t(e)})),this._doneCallbacks.length=0,this._state=2)}},o}]},sn=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(e,t,n){return function(t,r){var i=r||{};i.$$prepared||(i=ie(i)),i.cleanupStyles&&(i.from=i.to=null),i.from&&(t.css(i.from),i.from=null);var o,a=new n;return{start:s,end:s};function s(){return e((function(){!function(){i.addClass&&(t.addClass(i.addClass),i.addClass=null);i.removeClass&&(t.removeClass(i.removeClass),i.removeClass=null);i.to&&(t.css(i.to),i.to=null)}(),o||a.complete(),o=!0})),a}}}]};function un(e,t,n,r,i){var o=this,s=e.location,u=e.history,c=e.setTimeout,l=e.clearTimeout,f={},d=i(n);o.isMock=!1,o.$$completeOutstandingRequest=d.completeTask,o.$$incOutstandingRequestCount=d.incTaskCount,o.notifyWhenNoOutstandingRequests=d.notifyWhenNoPendingTasks;var p,h,g=s.href,m=t.find("base"),v=null,y=r.history?function(){try{return u.state}catch(e){}}:I;q(),o.url=function(t,n,i){if(R(i)&&(i=null),s!==e.location&&(s=e.location),u!==e.history&&(u=e.history),t){var a=h===i;if(t=si(t).href,g===t&&(!r.history||a))return o;var c=g&&ar(g)===ar(t);return g=t,h=i,!r.history||c&&a?(c||(v=t),n?s.replace(t):c?s.hash=function(e){var t=e.indexOf("#");return-1===t?"":e.substr(t)}(t):s.href=t,s.href!==t&&(v=t)):(u[n?"replaceState":"pushState"](i,"",t),q()),v&&(v=t),o}return function(e){return e.replace(/#$/,"")}(v||s.href)},o.state=function(){return p};var b=[],_=!1;function w(){v=null,S()}var x=null;function q(){ae(p=R(p=y())?null:p,x)&&(p=x),x=p,h=p}function S(){var e=h;q(),g===o.url()&&e===p||(g=o.url(),h=p,$(b,(function(e){e(o.url(),p)})))}o.onUrlChange=function(t){return _||(r.history&&a(e).on("popstate",w),a(e).on("hashchange",w),_=!0),b.push(t),t},o.$$applicationDestroyed=function(){a(e).off("hashchange popstate",w)},o.$$checkUrlChange=S,o.baseHref=function(){var e=m.attr("href");return e?e.replace(/^(https?:)?\/\/[^/]*/,""):""},o.defer=function(e,t,n){var r;return t=t||0,n=n||d.DEFAULT_TASK_TYPE,d.incTaskCount(n),r=c((function(){delete f[r],d.completeTask(e,n)}),t),f[r]=n,r},o.defer.cancel=function(e){if(f.hasOwnProperty(e)){var t=f[e];return delete f[e],l(e),d.completeTask(I,t),!0}return!1}}function cn(){this.$get=["$window","$log","$sniffer","$document","$$taskTrackerFactory",function(e,t,n,r,i){return new un(e,r,t,n,i)}]}function ln(){this.$get=function(){var e={};function t(t,n){if(t in e)throw i("$cacheFactory")("iid","CacheId '{0}' is already taken!",t);var r=0,o=C({},n,{id:t}),a=Fe(),s=n&&n.capacity||Number.MAX_VALUE,u=Fe(),c=null,l=null;return e[t]={put:function(e,t){if(!R(t)){if(s<Number.MAX_VALUE)f(u[e]||(u[e]={key:e}));return e in a||r++,a[e]=t,r>s&&this.remove(l.key),t}},get:function(e){if(s<Number.MAX_VALUE){var t=u[e];if(!t)return;f(t)}return a[e]},remove:function(e){if(s<Number.MAX_VALUE){var t=u[e];if(!t)return;t===c&&(c=t.p),t===l&&(l=t.n),d(t.n,t.p),delete u[e]}e in a&&(delete a[e],r--)},removeAll:function(){a=Fe(),r=0,u=Fe(),c=l=null},destroy:function(){a=null,o=null,u=null,delete e[t]},info:function(){return C({},o,{size:r})}};function f(e){e!==c&&(l?l===e&&(l=e.n):l=e,d(e.n,e.p),d(e,c),(c=e).n=null)}function d(e,t){e!==t&&(e&&(e.p=t),t&&(t.n=e))}}return t.info=function(){var t={};return $(e,(function(e,n){t[n]=e.info()})),t},t.get=function(t){return e[t]},t}}function fn(){this.$get=["$cacheFactory",function(e){return e("templates")}]}var dn=i("$compile");var pn=new function(){};function hn(t,n){var r={},i=/^\s*directive:\s*([\w-]+)\s+(.*)$/,s=/(([\w-]+)(?::([^;]+))?;?)/,u=function(e){var t,n={},r=e.split(",");for(t=0;t<r.length;t++)n[r[t]]=!0;return n}("ngSrc,ngSrcset,src,srcset"),c=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,d=/^(on[a-z]+|formaction)$/,p=Fe();function h(e,t,n){var r=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,i=Fe();return $(e,(function(e,o){if((e=e.trim())in p)i[o]=p[e];else{var a=e.match(r);if(!a)throw dn("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",t,o,e,n?"controller bindings definition":"isolate scope definition");i[o]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||o},a[4]&&(p[e]=i[o])}})),i}function g(e,t){var n={isolateScope:null,bindToController:null};if(N(e.scope)&&(!0===e.bindToController?(n.bindToController=h(e.scope,t,!0),n.isolateScope={}):n.isolateScope=h(e.scope,t,!1)),N(e.bindToController)&&(n.bindToController=h(e.bindToController,t,!0)),n.bindToController&&!e.controller)throw dn("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);return n}this.directive=function e(n,i){return Pe(n,"name"),je(n,"directive"),U(n)?(!function(e){var t=e.charAt(0);if(!t||t!==f(t))throw dn("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",e);if(e!==e.trim())throw dn("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",e)}(n),Pe(i,"directiveFactory"),r.hasOwnProperty(n)||(r[n]=[],t.factory(n+"Directive",["$injector","$exceptionHandler",function(e,t){var i=[];return $(r[n],(function(r,o){try{var a=e.invoke(r);z(a)?a={compile:M(a)}:!a.compile&&a.link&&(a.compile=M(a.link)),a.priority=a.priority||0,a.index=o,a.name=a.name||n,a.require=function(e){var t=e.require||e.controller&&e.name;return!V(t)&&N(t)&&$(t,(function(e,n){var r=e.match(c);e.substring(r[0].length)||(t[n]=r[0]+n)})),t}(a),a.restrict=function(e,t){if(e&&(!U(e)||!/[EACM]/.test(e)))throw dn("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",e,t);return e||"EA"}(a.restrict,n),a.$$moduleName=r.$$moduleName,i.push(a)}catch(e){t(e)}})),i}])),r[n].push(i)):$(n,q(e)),this},this.component=function e(t,n){if(!U(t))return $(t,q(fe(this,e))),this;var r=n.controller||function(){};function i(e){function t(t){return z(t)||V(t)?function(n,r){return e.invoke(t,this,{$element:n,$attrs:r})}:t}var i=n.template||n.templateUrl?n.template:"",o={controller:r,controllerAs:xn(n.controller)||n.controllerAs||"$ctrl",template:t(i),templateUrl:t(n.templateUrl),transclude:n.transclude,scope:{},bindToController:n.bindings||{},restrict:"E",require:n.require};return $(n,(function(e,t){"$"===t.charAt(0)&&(o[t]=e)})),o}return $(n,(function(e,t){"$"===t.charAt(0)&&(i[t]=e,z(r)&&(r[t]=e))})),i.$inject=["$injector"],this.directive(t,i)},this.aHrefSanitizationWhitelist=function(e){return F(e)?(n.aHrefSanitizationWhitelist(e),this):n.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(e){return F(e)?(n.imgSrcSanitizationWhitelist(e),this):n.imgSrcSanitizationWhitelist()};var v=!0;this.debugInfoEnabled=function(e){return F(e)?(v=e,this):v};var y=!1;this.strictComponentBindingsEnabled=function(e){return F(e)?(y=e,this):y};var b=10;this.onChangesTtl=function(e){return arguments.length?(b=e,this):b};var _=!0;this.commentDirectivesEnabled=function(e){return arguments.length?(_=e,this):_};var w=!0;this.cssClassDirectivesEnabled=function(e){return arguments.length?(w=e,this):w};var x=Fe();this.addPropertySecurityContext=function(e,t,n){var r=e.toLowerCase()+"|"+t.toLowerCase();if(r in x&&x[r]!==n)throw dn("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",e,t,x[r],n);return x[r]=n,this},function(){function e(e,t){$(t,(function(t){x[t.toLowerCase()]=e}))}e(Hr.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),e(Hr.CSS,["*|style"]),e(Hr.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),e(Hr.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),e(Hr.RESOURCE_URL,["*|formAction","applet|code","applet|codebase","base|href","embed|src","frame|src","form|action","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])}(),this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate",function(t,n,p,h,q,S,E,k,O){var T,D=/^\w/,M=e.document.createElement("div"),j=_,F=w,L=b;function B(){try{if(!--L)throw T=void 0,dn("infchng","{0} $onChanges() iterations reached. Aborting!\n",b);E.$apply((function(){for(var e=0,t=T.length;e<t;++e)try{T[e]()}catch(e){p(e)}T=void 0}))}finally{L++}}function H(e,t){if(!e)return e;if(!U(e))throw dn("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',t,e.toString());for(var n="",r=Z(e),i=/\s/.test(r)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,o=r.split(i),a=Math.floor(o.length/2),s=0;s<a;s++){var u=2*s;n+=k.getTrustedMediaUrl(Z(o[u])),n+=" "+Z(o[u+1])}var c=Z(o[2*s]).split(/\s/);return n+=k.getTrustedMediaUrl(Z(c[0])),2===c.length&&(n+=" "+Z(c[1])),n}function W(e,t){if(t){var n,r,i,o=Object.keys(t);for(n=0,r=o.length;n<r;n++)this[i=o[n]]=t[i]}else this.$attr={};this.$$element=e}function Y(e,t){try{e.addClass(t)}catch(e){}}W.prototype={$normalize:yn,$addClass:function(e){e&&e.length>0&&O.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&O.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=bn(e,t);n&&n.length&&O.addClass(this.$$element,n);var r=bn(t,e);r&&r.length&&O.removeClass(this.$$element,r)},$set:function(e,t,n,r){var i=It(this.$$element[0],e),o=function(e){return At[e]}(e),a=e;i?(this.$$element.prop(e,t),r=i):o&&(this[o]=t,a=o),this[e]=t,r?this.$attr[e]=r:(r=this.$attr[e])||(this.$attr[e]=r=De(e,"-")),"img"===te(this.$$element)&&"srcset"===e&&(this[e]=t=H(t,"$set('srcset', value)")),!1!==n&&(null===t||R(t)?this.$$element.removeAttr(r):D.test(r)?i&&!1===t?this.$$element.removeAttr(r):this.$$element.attr(r,t):function(e,t,n){M.innerHTML="<span "+t+">";var r=M.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,e.attributes.setNamedItem(i)}(this.$$element[0],r,t));var s=this.$$observers;s&&$(s[a],(function(e){try{e(t)}catch(e){p(e)}}))},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers=Fe()),i=r[e]||(r[e]=[]);return i.push(t),E.$evalAsync((function(){i.$$inter||!n.hasOwnProperty(e)||R(n[e])||t(n[e])})),function(){re(i,t)}}};var K=n.startSymbol(),J=n.endSymbol(),Q="{{"===K&&"}}"===J?P:function(e){return e.replace(/\{\{/g,K).replace(/}}/g,J)},ee=/^ng(Attr|Prop|On)([A-Z].*)$/,ne=/^(.+)Start$/;return ie.$$addBindingInfo=v?function(e,t){var n=e.data("$binding")||[];V(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:I,ie.$$addBindingClass=v?function(e){Y(e,"ng-binding")}:I,ie.$$addScopeInfo=v?function(e,t,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";e.data(i,t)}:I,ie.$$addScopeClass=v?function(e,t){Y(e,t?"ng-isolate-scope":"ng-scope")}:I,ie.$$createComment=function(t,n){var r="";return v&&(r=" "+(t||"")+": ",n&&(r+=n+" ")),e.document.createComment(r)},ie;function ie(e,t,n,r,i){e instanceof a||(e=a(e));var o=se(e,t,e,n,r,i);ie.$$addScopeClass(e);var s=null;return function(t,n,r){if(!e)throw dn("multilink","This element has already been linked.");Pe(t,"scope"),i&&i.needsNewScope&&(t=t.$parent.$new());var u,c,l,f=(r=r||{}).parentBoundTranscludeFn,d=r.transcludeControllers,p=r.futureParentElement;if(f&&f.$$boundTransclude&&(f=f.$$boundTransclude),s||(c=(u=p)&&u[0],s=c&&"foreignobject"!==te(c)&&m.call(c).match(/SVG/)?"svg":"html"),l="html"!==s?a(Ee(s,a("<div></div>").append(e).html())):n?Ot.clone.call(e):e,d)for(var h in d)l.data("$"+h+"Controller",d[h].instance);return ie.$$addScopeInfo(l,t),n&&n(l,t),o&&o(t,l,l,f),n||(e=o=null),l}}function se(e,t,n,r,i,s){for(var u,c,l,f,d,p,h,g=[],m=V(e)||e instanceof a,v=0;v<e.length;v++)u=new W,11===o&&ue(e,v,m),(l=(c=de(e[v],[],u,0===v?r:void 0,i)).length?me(c,e[v],u,t,n,null,[],[],s):null)&&l.scope&&ie.$$addScopeClass(u.$$element),d=l&&l.terminal||!(f=e[v].childNodes)||!f.length?null:se(f,l?(l.transcludeOnThisElement||!l.templateOnThisElement)&&l.transclude:t),(l||d)&&(g.push(v,l,d),p=!0,h=h||l),s=null;return p?function(e,n,r,i){var o,s,u,c,l,f,d,p,m;if(h){var v=n.length;for(m=new Array(v),l=0;l<g.length;l+=3)d=g[l],m[d]=n[d]}else m=n;for(l=0,f=g.length;l<f;)u=m[g[l++]],o=g[l++],s=g[l++],o?(o.scope?(c=e.$new(),ie.$$addScopeInfo(a(u),c)):c=e,p=o.transcludeOnThisElement?ce(e,o.transclude,i):!o.templateOnThisElement&&i?i:!i&&t?ce(e,t):null,o(s,c,u,r,p)):s&&s(e,u.childNodes,void 0,i)}:null}function ue(e,t,n){var r,i=e[t],o=i.parentNode;if(i.nodeType===Le)for(;(r=o?i.nextSibling:e[t+1])&&r.nodeType===Le;)i.nodeValue=i.nodeValue+r.nodeValue,r.parentNode&&r.parentNode.removeChild(r),n&&r===e[t+1]&&e.splice(t+1,1)}function ce(e,t,n){function r(r,i,o,a,s){return r||((r=e.$new(!1,s)).$$transcluded=!0),t(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})}var i=r.$$slots=Fe();for(var o in t.$$slots)t.$$slots[o]?i[o]=ce(e,t.$$slots[o],n):i[o]=null;return r}function de(e,t,r,o,a){var u,c,l,f=e.nodeType,d=r.$attr;switch(f){case 1:_e(t,yn(c=te(e)),"E",o,a);for(var p,h,g,m,v,y=e.attributes,b=0,_=y&&y.length;b<_;b++){var w,$=!1,x=!1,q=!1,S=!1,E=!1;h=(p=y[b]).name,m=p.value,(v=(g=yn(h.toLowerCase())).match(ee))?(q="Attr"===v[1],S="Prop"===v[1],E="On"===v[1],h=h.replace(mn,"").toLowerCase().substr(4+v[1].length).replace(/_(.)/g,(function(e,t){return t.toUpperCase()}))):(w=g.match(ne))&&we(w[1])&&($=h,x=h.substr(0,h.length-5)+"end",h=h.substr(0,h.length-6)),S||E?(r[g]=m,d[g]=p.name,S?Ce(e,t,g,h):Oe(t,g,h)):(d[g=yn(h.toLowerCase())]=h,!q&&r.hasOwnProperty(g)||(r[g]=m,It(e,g)&&(r[g]=!0)),Te(e,t,m,g,q),_e(t,g,"A",o,a,$,x))}if("input"===c&&"hidden"===e.getAttribute("type")&&e.setAttribute("autocomplete","off"),!F)break;if(N(l=e.className)&&(l=l.animVal),U(l)&&""!==l)for(;u=s.exec(l);)_e(t,g=yn(u[2]),"C",o,a)&&(r[g]=Z(u[3])),l=l.substr(u.index+u[0].length);break;case Le:!function(e,t){var r=n(t,!0);r&&e.push({priority:0,compile:function(e){var t=e.parent(),n=!!t.length;return n&&ie.$$addBindingClass(t),function(e,t){var i=t.parent();n||ie.$$addBindingClass(i),ie.$$addBindingInfo(i,r.expressions),e.$watch(r,(function(e){t[0].nodeValue=e}))}}})}(t,e.nodeValue);break;case 8:if(!j)break;!function(e,t,n,r,o){try{var a=i.exec(e.nodeValue);if(a){var s=yn(a[1]);_e(t,s,"M",r,o)&&(n[s]=Z(a[2]))}}catch(e){}}(e,t,r,o,a)}return t.sort(qe),t}function pe(e,t,n){var r=[],i=0;if(t&&e.hasAttribute&&e.hasAttribute(t))do{if(!e)throw dn("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);1===e.nodeType&&(e.hasAttribute(t)&&i++,e.hasAttribute(n)&&i--),r.push(e),e=e.nextSibling}while(i>0);else r.push(e);return a(r)}function he(e,t,n){return function(r,i,o,a,s){return i=pe(i[0],t,n),e(r,i,o,a,s)}}function ge(e,t,n,r,i,o){var a;return e?ie(t,n,r,i,o):function(){return a||(a=ie(t,n,r,i,o),t=n=o=null),a.apply(this,arguments)}}function me(t,n,r,i,o,s,u,c,l){l=l||{};for(var f,d,h,g,m,v=-Number.MAX_VALUE,y=l.newScopeDirective,b=l.controllerDirectives,_=l.newIsolateScopeDirective,w=l.templateDirective,x=l.nonTlbTranscludeDirective,q=!1,E=!1,k=l.hasElementTranscludeDirective,O=r.$$element=a(n),T=s,D=i,A=!1,I=!1,P=0,M=t.length;P<M;P++){var j=(f=t[P]).$$start,F=f.$$end;if(j&&(O=pe(n,j,F)),h=void 0,v>f.priority)break;if((m=f.scope)&&(f.templateUrl||(N(m)?(Se("new/isolated scope",_||y,f,O),_=f):Se("new/isolated scope",_,f,O)),y=y||f),d=f.name,!A&&(f.replace&&(f.templateUrl||f.template)||f.transclude&&!f.$$tlb)){for(var L,U=P+1;L=t[U++];)if(L.transclude&&!L.$$tlb||L.replace&&(L.templateUrl||L.template)){I=!0;break}A=!0}if(!f.templateUrl&&f.controller&&(b=b||Fe(),Se("'"+d+"' controller",b[d],f,O),b[d]=f),m=f.transclude)if(q=!0,f.$$tlb||(Se("transclusion",x,f,O),x=f),"element"===m)k=!0,v=f.priority,h=O,O=r.$$element=a(ie.$$createComment(d,r[d])),n=O[0],Ae(o,le(h),n),D=ge(I,h,i,v,T&&T.name,{nonTlbTranscludeDirective:x});else{var B=Fe();if(N(m)){h=e.document.createDocumentFragment();var H=Fe(),Y=Fe();for(var X in $(m,(function(e,t){var n="?"===e.charAt(0);e=n?e.substring(1):e,H[e]=t,B[t]=null,Y[t]=n})),$(O.contents(),(function(t){var n=H[yn(te(t))];n?(Y[n]=!0,B[n]=B[n]||e.document.createDocumentFragment(),B[n].appendChild(t)):h.appendChild(t)})),$(Y,(function(e,t){if(!e)throw dn("reqslot","Required transclusion slot `{0}` was not filled.",t)})),B)if(B[X]){var K=a(B[X].childNodes);B[X]=ge(I,K,i)}h=a(h.childNodes)}else h=a(dt(n)).contents();O.empty(),(D=ge(I,h,i,void 0,void 0,{needsNewScope:f.$$isolateScope||f.$$newScope})).$$slots=B}if(f.template)if(E=!0,Se("template",w,f,O),w=f,m=z(f.template)?f.template(O,r):f.template,m=Q(m),f.replace){if(T=f,h=st(m)?[]:_n(Ee(f.templateNamespace,Z(m))),n=h[0],1!==h.length||1!==n.nodeType)throw dn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",d,"");Ae(o,O,n);var J={$attr:{}},ee=de(n,[],J),ne=t.splice(P+1,t.length-(P+1));(_||y)&&ye(ee,_,y),t=t.concat(ee).concat(ne),$e(r,J),M=t.length}else O.html(m);if(f.templateUrl)E=!0,Se("template",w,f,O),w=f,f.replace&&(T=f),ae=xe(t.splice(P,t.length-P),O,r,o,q&&D,u,c,{controllerDirectives:b,newScopeDirective:y!==f&&y,newIsolateScopeDirective:_,templateDirective:w,nonTlbTranscludeDirective:x}),M=t.length;else if(f.compile)try{g=f.compile(O,r,D);var re=f.$$originalDirective||f;z(g)?oe(null,fe(re,g),j,F):g&&oe(fe(re,g.pre),fe(re,g.post),j,F)}catch(e){p(e,be(O))}f.terminal&&(ae.terminal=!0,v=Math.max(v,f.priority))}return ae.scope=y&&!0===y.scope,ae.transcludeOnThisElement=q,ae.templateOnThisElement=E,ae.transclude=D,l.hasElementTranscludeDirective=k,ae;function oe(e,t,n,r){e&&(n&&(e=he(e,n,r)),e.require=f.require,e.directiveName=d,(_===f||f.$$isolateScope)&&(e=Ie(e,{isolateScope:!0})),u.push(e)),t&&(n&&(t=he(t,n,r)),t.require=f.require,t.directiveName=d,(_===f||f.$$isolateScope)&&(t=Ie(t,{isolateScope:!0})),c.push(t))}function ae(e,t,i,o,s){var l,f,d,h,g,m,v,x,q,E;for(var O in n===i?(q=r,x=r.$$element):q=new W(x=a(i),r),g=t,_?h=t.$new(!0):y&&(g=t.$parent),s&&((v=function(e,t,n,r){var i;G(e)||(r=n,n=t,t=e,e=void 0);k&&(i=m);n||(n=k?x.parent():x);if(!r)return s(e,t,i,n,I);var o=s.$$slots[r];if(o)return o(e,t,i,n,I);if(R(o))throw dn("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,be(x))}).$$boundTransclude=s,v.isSlotFilled=function(e){return!!s.$$slots[e]}),b&&(m=function(e,t,n,r,i,o,a){var s=Fe();for(var u in r){var c=r[u],l={$scope:c===a||c.$$isolateScope?i:o,$element:e,$attrs:t,$transclude:n},f=c.controller;"@"===f&&(f=t[c.name]);var d=S(f,l,!0,c.controllerAs);s[c.name]=d,e.data("$"+c.name+"Controller",d.instance)}return s}(x,q,v,b,h,t,_)),_&&(ie.$$addScopeInfo(x,h,!0,!(w&&(w===_||w===_.$$originalDirective))),ie.$$addScopeClass(x,!0),h.$$isolateBindings=_.$$isolateBindings,(E=Re(t,q,h,h.$$isolateBindings,_)).removeWatches&&h.$on("$destroy",E.removeWatches)),m){var T=b[O],D=m[O],A=T.$$bindings.bindToController;D.instance=D(),x.data("$"+T.name+"Controller",D.instance),D.bindingInfo=Re(g,q,D.instance,A,T)}for($(b,(function(e,t){var n=e.require;e.bindToController&&!V(n)&&N(n)&&C(m[t].instance,ve(t,n,x,m))})),$(m,(function(e){var t=e.instance;if(z(t.$onChanges))try{t.$onChanges(e.bindingInfo.initialChanges)}catch(e){p(e)}if(z(t.$onInit))try{t.$onInit()}catch(e){p(e)}z(t.$doCheck)&&(g.$watch((function(){t.$doCheck()})),t.$doCheck()),z(t.$onDestroy)&&g.$on("$destroy",(function(){t.$onDestroy()}))})),l=0,f=u.length;l<f;l++)Me(d=u[l],d.isolateScope?h:t,x,q,d.require&&ve(d.directiveName,d.require,x,m),v);var I=t;for(_&&(_.template||null===_.templateUrl)&&(I=h),e&&e(I,i.childNodes,void 0,s),l=c.length-1;l>=0;l--)Me(d=c[l],d.isolateScope?h:t,x,q,d.require&&ve(d.directiveName,d.require,x,m),v);$(m,(function(e){var t=e.instance;z(t.$postLink)&&t.$postLink()}))}}function ve(e,t,n,r){var i;if(U(t)){var o=t.match(c),a=t.substring(o[0].length),s=o[1]||o[3],u="?"===o[2];if("^^"===s?n=n.parent():i=(i=r&&r[a])&&i.instance,!i){var l="$"+a+"Controller";i="^^"===s&&n[0]&&9===n[0].nodeType?null:s?n.inheritedData(l):n.data(l)}if(!i&&!u)throw dn("ctreq","Controller '{0}', required by directive '{1}', can't be found!",a,e)}else if(V(t)){i=[];for(var f=0,d=t.length;f<d;f++)i[f]=ve(e,t[f],n,r)}else N(t)&&(i={},$(t,(function(t,o){i[o]=ve(e,t,n,r)})));return i||null}function ye(e,t,n){for(var r=0,i=e.length;r<i;r++)e[r]=A(e[r],{$$isolateScope:t,$$newScope:n})}function _e(e,n,i,o,a,s,u){if(n===a)return null;var c=null;if(r.hasOwnProperty(n))for(var l,f=t.get(n+"Directive"),d=0,p=f.length;d<p;d++)if(l=f[d],(R(o)||o>l.priority)&&-1!==l.restrict.indexOf(i)){if(s&&(l=A(l,{$$start:s,$$end:u})),!l.$$bindings){var h=l.$$bindings=g(l,l.name);N(h.isolateScope)&&(l.$$isolateBindings=h.isolateScope)}e.push(l),c=l}return c}function we(e){if(r.hasOwnProperty(e))for(var n=t.get(e+"Directive"),i=0,o=n.length;i<o;i++)if(n[i].multiElement)return!0;return!1}function $e(e,t){var n=t.$attr,r=e.$attr;$(e,(function(r,i){"$"!==i.charAt(0)&&(t[i]&&t[i]!==r&&(r.length?r+=("style"===i?";":" ")+t[i]:r=t[i]),e.$set(i,r,!0,n[i]))})),$(t,(function(t,i){e.hasOwnProperty(i)||"$"===i.charAt(0)||(e[i]=t,"class"!==i&&"style"!==i&&(r[i]=n[i]))}))}function xe(e,t,n,r,i,o,s,u){var c,l,f=[],d=t[0],g=e.shift(),m=A(g,{templateUrl:null,transclude:null,replace:null,$$originalDirective:g}),v=z(g.templateUrl)?g.templateUrl(t,n):g.templateUrl,y=g.templateNamespace;return t.empty(),h(v).then((function(p){var h,b,_,w;if(p=Q(p),g.replace){if(_=st(p)?[]:_n(Ee(y,Z(p))),h=_[0],1!==_.length||1!==h.nodeType)throw dn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",g.name,v);b={$attr:{}},Ae(r,t,h);var x=de(h,[],b);N(g.scope)&&ye(x,!0),e=x.concat(e),$e(n,b)}else h=d,t.html(p);for(e.unshift(m),c=me(e,h,n,i,t,g,o,s,u),$(r,(function(e,n){e===h&&(r[n]=t[0])})),l=se(t[0].childNodes,i);f.length;){var q=f.shift(),S=f.shift(),E=f.shift(),k=f.shift(),C=t[0];if(!q.$$destroyed){if(S!==d){var O=S.className;u.hasElementTranscludeDirective&&g.replace||(C=dt(h)),Ae(E,a(S),C),Y(a(C),O)}w=c.transcludeOnThisElement?ce(q,c.transclude,k):k,c(l,q,C,r,w)}}f=null})).catch((function(e){isError(e)&&p(e)})),function(e,t,n,r,i){var o=i;t.$$destroyed||(f?f.push(t,n,r,o):(c.transcludeOnThisElement&&(o=ce(t,c.transclude,i)),c(l,t,n,r,o)))}}function qe(e,t){var n=t.priority-e.priority;return 0!==n?n:e.name!==t.name?e.name<t.name?-1:1:e.index-t.index}function Se(e,t,n,r){function i(e){return e?" (module: "+e+")":""}if(t)throw dn("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,i(t.$$moduleName),n.name,i(n.$$moduleName),e,be(r))}function Ee(t,n){switch(t=f(t||"html")){case"svg":case"math":var r=e.document.createElement("div");return r.innerHTML="<"+t+">"+n+"</"+t+">",r.childNodes[0].childNodes;default:return n}}function ke(e){return H(k.valueOf(e),"ng-prop-srcset")}function Ce(e,t,n,r){if(d.test(r))throw dn("nodomevents","Property bindings for HTML DOM event properties are disallowed");var i=te(e),o=function(e,t){var n=t.toLowerCase();return x[e+"|"+n]||x["*|"+n]}(i,r),a=P;"srcset"!==r||"img"!==i&&"source"!==i?o&&(a=k.getTrusted.bind(k,o)):a=ke,t.push({priority:100,compile:function(e,t){var i=q(t[n]),o=q(t[n],(function(e){return k.valueOf(e)}));return{pre:function(e,t){function n(){var n=i(e);t[0][r]=a(n)}n(),e.$watch(o,n)}}}})}function Oe(e,t,n){e.push(Do(q,E,p,t,n,!1))}function Te(e,t,r,i,o){var a=te(e),s=function(e,t){return"srcdoc"===t?k.HTML:"src"===t||"ngSrc"===t?-1===["img","video","audio","source","track"].indexOf(e)?k.RESOURCE_URL:k.MEDIA_URL:"xlinkHref"===t?"image"===e?k.MEDIA_URL:"a"===e?k.URL:k.RESOURCE_URL:"form"===e&&"action"===t||"base"===e&&"href"===t||"link"===e&&"href"===t?k.RESOURCE_URL:"a"!==e||"href"!==t&&"ngHref"!==t?void 0:k.URL}(a,i),c=!o,l=u[i]||o,f=n(r,c,s,l);if(f){if("multiple"===i&&"select"===a)throw dn("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",be(e));if(d.test(i))throw dn("nodomevents","Interpolations for HTML DOM event attributes are disallowed");t.push({priority:100,compile:function(){return{pre:function(e,t,o){var a=o.$$observers||(o.$$observers=Fe()),u=o[i];u!==r&&(f=u&&n(u,!0,s,l),r=u),f&&(o[i]=f(e),(a[i]||(a[i]=[])).$$inter=!0,(o.$$observers&&o.$$observers[i].$$scope||e).$watch(f,(function(e,t){"class"===i&&e!==t?o.$updateClass(e,t):o.$set(i,e)})))}}}})}}function Ae(t,n,r){var i,o,s=n[0],u=n.length,c=s.parentNode;if(t)for(i=0,o=t.length;i<o;i++)if(t[i]===s){t[i++]=r;for(var l=i,f=l+u-1,d=t.length;l<d;l++,f++)f<d?t[l]=t[f]:delete t[l];t.length-=u-1,t.context===s&&(t.context=r);break}c&&c.replaceChild(r,s);var p=e.document.createDocumentFragment();for(i=0;i<u;i++)p.appendChild(n[i]);for(a.hasData(s)&&(a.data(r,a.data(s)),a(s).off("$destroy")),a.cleanData(p.querySelectorAll("*")),i=1;i<u;i++)delete n[i];n[0]=r,n.length=1}function Ie(e,t){return C((function(){return e.apply(null,arguments)}),e,t)}function Me(e,t,n,r,i,o){try{e(t,n,r,i,o)}catch(e){p(e,be(n))}}function je(e,t){if(y)throw dn("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",e,t)}function Re(e,t,r,i,o){var a,s=[],u={};function c(t,n,i){z(r.$onChanges)&&!oe(n,i)&&(T||(e.$$postDigest(B),T=[]),a||(a={},T.push(f)),a[t]&&(i=a[t].previousValue),a[t]=new gn(i,n))}function f(){r.$onChanges(a),a=void 0}return $(i,(function(i,a){var f,d,p,h,g,m=i.attrName,v=i.optional;switch(i.mode){case"@":v||l.call(t,m)||(je(m,o.name),r[a]=t[m]=void 0),g=t.$observe(m,(function(e){if(U(e)||X(e)){var t=r[a];c(a,e,t),r[a]=e}})),t.$$observers[m].$$scope=e,U(f=t[m])?r[a]=n(f)(e):X(f)&&(r[a]=f),u[a]=new gn(pn,r[a]),s.push(g);break;case"=":if(!l.call(t,m)){if(v)break;je(m,o.name),t[m]=void 0}if(v&&!t[m])break;d=q(t[m]),h=d.literal?ae:oe,p=d.assign||function(){throw f=r[a]=d(e),dn("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",t[m],m,o.name)},f=r[a]=d(e);var y=function(t){return h(t,r[a])||(h(t,f)?p(e,t=r[a]):r[a]=t),f=t};y.$stateful=!0,g=i.collection?e.$watchCollection(t[m],y):e.$watch(q(t[m],y),null,d.literal),s.push(g);break;case"<":if(!l.call(t,m)){if(v)break;je(m,o.name),t[m]=void 0}if(v&&!t[m])break;var b=(d=q(t[m])).literal,_=r[a]=d(e);u[a]=new gn(pn,r[a]),g=e[i.collection?"$watchCollection":"$watch"](d,(function(e,t){if(t===e){if(t===_||b&&ae(t,_))return;t=_}c(a,e,t),r[a]=e})),s.push(g);break;case"&":if(v||l.call(t,m)||je(m,o.name),(d=t.hasOwnProperty(m)?q(t[m]):I)===I&&v)break;r[a]=function(t){return d(e,t)}}})),{initialChanges:u,removeWatches:s.length&&function(){for(var e=0,t=s.length;e<t;++e)s[e]()}}}}]}function gn(e,t){this.previousValue=e,this.currentValue=t}hn.$inject=["$provide","$$sanitizeUriProvider"],gn.prototype.isFirstChange=function(){return this.previousValue===pn};var mn=/^((?:x|data)[:\-_])/i,vn=/[:\-_]+(.)/g;function yn(e){return e.replace(mn,"").replace(vn,(function(e,t,n){return n?t.toUpperCase():t}))}function bn(e,t){var n="",r=e.split(/\s+/),i=t.split(/\s+/);e:for(var o=0;o<r.length;o++){for(var a=r[o],s=0;s<i.length;s++)if(a===i[s])continue e;n+=(n.length>0?" ":"")+a}return n}function _n(e){var t=(e=a(e)).length;if(t<=1)return e;for(;t--;){var n=e[t];(8===n.nodeType||n.nodeType===Le&&""===n.nodeValue.trim())&&h.call(e,t,1)}return e}var wn=i("$controller"),$n=/^(\S+)(\s+as\s+([\w$]+))?$/;function xn(e,t){if(t&&U(t))return t;if(U(e)){var n=$n.exec(e);if(n)return n[3]}}function qn(){var e={};this.has=function(t){return e.hasOwnProperty(t)},this.register=function(t,n){je(t,"controller"),N(t)?C(e,t):e[t]=n},this.$get=["$injector",function(t){return function(r,i,o,a){var s,u,c,l;if(o=!0===o,a&&U(a)&&(l=a),U(r)){if(!(u=r.match($n)))throw wn("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);if(c=u[1],l=l||u[3],!(r=e.hasOwnProperty(c)?e[c]:function(e,t,n){if(!t)return e;for(var r,i=t.split("."),o=e,a=i.length,s=0;s<a;s++)r=i[s],e&&(e=(o=e)[r]);return!n&&z(e)?fe(o,e):e}(i.$scope,c,!0)))throw wn("ctrlreg","The controller with the name '{0}' is not registered.",c);Me(r,c,!0)}if(o){var f=(V(r)?r[r.length-1]:r).prototype;return s=Object.create(f||null),l&&n(i,l,s,c||r.name),C((function(){var e=t.invoke(r,s,i,c);return e!==s&&(N(e)||z(e))&&(s=e,l&&n(i,l,s,c||r.name)),s}),{instance:s,identifier:l})}return s=t.instantiate(r,i,c),l&&n(i,l,s,c||r.name),s};function n(e,t,n,r){if(!e||!N(e.$scope))throw i("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,t);e.$scope[t]=n}}]}function Sn(){this.$get=["$window",function(e){return a(e.document)}]}function En(){this.$get=["$document","$rootScope",function(e,t){var n=e[0],r=n&&n.hidden;function i(){r=n.hidden}return e.on("visibilitychange",i),t.$on("$destroy",(function(){e.off("visibilitychange",i)})),function(){return r}}]}function kn(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}var Cn=function(){this.$get=["$document",function(e){return function(t){return t?!t.nodeType&&t instanceof a&&(t=t[0]):t=e[0].body,t.offsetWidth+1}}]},On={"Content-Type":"application/json;charset=utf-8"},Tn=/^\[|^\{(?!\{)/,Dn={"[":/]$/,"{":/}$/},An=/^\)]\}',?\n/,In=i("$http");function Pn(e){return N(e)?H(e)?e.toISOString():pe(e):e}function Mn(){this.$get=function(){return function(e){if(!e)return"";var t=[];return x(e,(function(e,n){null===e||R(e)||z(e)||(V(e)?$(e,(function(e){t.push(xe(n)+"="+xe(Pn(e)))})):t.push(xe(n)+"="+xe(Pn(e))))})),t.join("&")}}}function jn(){this.$get=function(){return function(e){if(!e)return"";var t=[];return function e(n,r,i){V(n)?$(n,(function(t,n){e(t,r+"["+(N(t)?n:"")+"]")})):N(n)&&!H(n)?x(n,(function(t,n){e(t,r+(i?"":"[")+n+(i?"":"]"))})):(z(n)&&(n=n()),t.push(xe(r)+"="+(null==n?"":xe(Pn(n)))))}(e,"",!0),t.join("&")}}}function Rn(e,t){if(U(e)){var n=e.replace(An,"").trim();if(n){var r=t("Content-Type"),i=r&&0===r.indexOf("application/json");if(i||(a=(o=n).match(Tn))&&Dn[a[0]].test(o))try{e=he(n)}catch(t){if(!i)return e;throw In("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',e,t)}}}var o,a;return e}function Fn(e){var t,n=Fe();function r(e,t){e&&(n[e]=n[e]?n[e]+", "+t:t)}return U(e)?$(e.split("\n"),(function(e){t=e.indexOf(":"),r(f(Z(e.substr(0,t))),Z(e.substr(t+1)))})):N(e)&&$(e,(function(e,t){r(f(t),Z(e))})),n}function Nn(e){var t;return function(n){if(t||(t=Fn(e)),n){var r=t[f(n)];return void 0===r&&(r=null),r}return t}}function Ln(e,t,n,r){return z(r)?r(e,t,n):($(r,(function(r){e=r(e,t,n)})),e)}function Un(e){return 200<=e&&e<300}function Bn(){var e=this.defaults={transformResponse:[Rn],transformRequest:[function(e){return!N(e)||(t=e,"[object File]"===m.call(t))||function(e){return"[object Blob]"===m.call(e)}(e)||function(e){return"[object FormData]"===m.call(e)}(e)?e:pe(e);var t}],headers:{common:{Accept:"application/json, text/plain, */*"},post:Ue(On),put:Ue(On),patch:Ue(On)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},t=!1;this.useApplyAsync=function(e){return F(e)?(t=!!e,this):t};var n=this.interceptors=[],r=this.xsrfWhitelistedOrigins=[];this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(o,a,s,u,c,l,p,h){var g=u("$http");e.paramSerializer=U(e.paramSerializer)?p.get(e.paramSerializer):e.paramSerializer;var m=[];$(n,(function(e){m.unshift(U(e)?p.get(e):p.invoke(e))}));var v,y=(v=[oi].concat(r.map(si)),function(e){var t=si(e);return v.some(ui.bind(null,t))});function b(n){if(!N(n))throw i("$http")("badreq","Http request configuration must be an object. Received: {0}",n);if(!U(h.valueOf(n.url)))throw i("$http")("badreq","Http request configuration url must be a string or a $sce trusted object. Received: {0}",n.url);var r=C({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse,paramSerializer:e.paramSerializer,jsonpCallbackParam:e.jsonpCallbackParam},n);r.headers=function(t){var n,r,i,o=e.headers,a=C({},t.headers);o=C({},o.common,o[f(t.method)]);e:for(n in o){for(i in r=f(n),a)if(f(i)===r)continue e;a[n]=o[n]}return function(e,t){var n,r={};return $(e,(function(e,i){z(e)?null!=(n=e(t))&&(r[i]=n):r[i]=e})),r}(a,Ue(t))}(n),r.method=d(r.method),r.paramSerializer=U(r.paramSerializer)?p.get(r.paramSerializer):r.paramSerializer,o.$$incOutstandingRequestCount("$http");var u=[],v=[],_=l.resolve(r);return $(m,(function(e){(e.request||e.requestError)&&u.unshift(e.request,e.requestError),(e.response||e.responseError)&&v.push(e.response,e.responseError)})),_=w(_,u),_=(_=w(_=_.then((function(n){var r=n.headers,i=Ln(n.data,Nn(r),void 0,n.transformRequest);R(i)&&$(r,(function(e,t){"content-type"===f(t)&&delete r[t]}));R(n.withCredentials)&&!R(e.withCredentials)&&(n.withCredentials=e.withCredentials);return function(n,r){var i,o,u=l.defer(),d=u.promise,p=n.headers,m="jsonp"===f(n.method),v=n.url;m?v=h.getTrustedResourceUrl(v):U(v)||(v=h.valueOf(v));v=function(e,t){t.length>0&&(e+=(-1===e.indexOf("?")?"?":"&")+t);return e}(v,n.paramSerializer(n.params)),m&&(v=function(e,t){var n=e.split("?");if(n.length>2)throw In("badjsonp",'Illegal use more than one "?", in url, "{1}"',e);return $(we(n[1]),(function(n,r){if("JSON_CALLBACK"===n)throw In("badjsonp",'Illegal use of JSON_CALLBACK in url, "{0}"',e);if(r===t)throw In("badjsonp",'Illegal use of callback param, "{0}", in url, "{1}"',t,e)})),e+=(-1===e.indexOf("?")?"?":"&")+t+"=JSON_CALLBACK"}(v,n.jsonpCallbackParam));b.pendingRequests.push(n),d.then(S,S),!n.cache&&!e.cache||!1===n.cache||"GET"!==n.method&&"JSONP"!==n.method||(i=N(n.cache)?n.cache:N(e.cache)?e.cache:g);i&&(F(o=i.get(v))?K(o)?o.then(q,q):V(o)?x(o[1],o[0],Ue(o[2]),o[3],o[4]):x(o,200,{},"OK","complete"):i.put(v,d));if(R(o)){var _=y(n.url)?s()[n.xsrfCookieName||e.xsrfCookieName]:void 0;_&&(p[n.xsrfHeaderName||e.xsrfHeaderName]=_),a(n.method,v,r,(function(e,n,r,o,a){i&&(Un(e)?i.put(v,[e,n,Fn(r),o,a]):i.remove(v));function s(){x(n,e,r,o,a)}t?c.$applyAsync(s):(s(),c.$$phase||c.$apply())}),p,n.timeout,n.withCredentials,n.responseType,w(n.eventHandlers),w(n.uploadEventHandlers))}return d;function w(e){if(e){var n={};return $(e,(function(e,r){n[r]=function(n){function r(){e(n)}t?c.$applyAsync(r):c.$$phase?r():c.$apply(r)}})),n}}function x(e,t,r,i,o){(Un(t=t>=-1?t:0)?u.resolve:u.reject)({data:e,status:t,headers:Nn(r),config:n,statusText:i,xhrStatus:o})}function q(e){x(e.data,e.status,Ue(e.headers()),e.statusText,e.xhrStatus)}function S(){var e=b.pendingRequests.indexOf(n);-1!==e&&b.pendingRequests.splice(e,1)}}(n,i).then(x,x)})),v)).finally((function(){o.$$completeOutstandingRequest(I,"$http")}));function w(e,t){for(var n=0,r=t.length;n<r;){var i=t[n++],o=t[n++];e=e.then(i,o)}return t.length=0,e}function x(e){var t=C({},e);return t.data=Ln(e.data,e.headers,e.status,r.transformResponse),Un(e.status)?t:l.reject(t)}}return b.pendingRequests=[],function(e){$(arguments,(function(e){b[e]=function(t,n){return b(C({},n||{},{method:e,url:t}))}}))}("get","delete","head","jsonp"),function(e){$(arguments,(function(e){b[e]=function(t,n,r){return b(C({},r||{},{method:e,url:t,data:n}))}}))}("post","put","patch"),b.defaults=e,b}]}function Hn(){this.$get=function(){return function(){return new e.XMLHttpRequest}}}function Vn(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(e,t,n,r){return function(e,t,n,r,i){return function(o,a,s,u,c,l,d,p,h,g){if(a=a||e.url(),"jsonp"===f(o))var m=r.createCallback(a),v=function(e,t,n){e=e.replace("JSON_CALLBACK",t);var o=i.createElement("script"),a=null;return o.type="text/javascript",o.src=e,o.async=!0,a=function(e){o.removeEventListener("load",a),o.removeEventListener("error",a),i.body.removeChild(o),o=null;var s=-1,u="unknown";e&&("load"!==e.type||r.wasCalled(t)||(e={type:"error"}),u=e.type,s="error"===e.type?404:200),n&&n(s,u)},o.addEventListener("load",a),o.addEventListener("error",a),i.body.appendChild(o),a}(a,m,(function(e,t){var n=200===e&&r.getResponse(m);x(u,e,n,"",t,"complete"),r.removeCallback(m)}));else{var y=t(o,a),b=!1;y.open(o,a,!0),$(c,(function(e,t){F(e)&&y.setRequestHeader(t,e)})),y.onload=function(){var e=y.statusText||"",t="response"in y?y.response:y.responseText,n=1223===y.status?204:y.status;0===n&&(n=t?200:"file"===si(a).protocol?404:0),x(u,n,t,y.getAllResponseHeaders(),e,"complete")};if(y.onerror=function(){x(u,-1,null,null,"","error")},y.ontimeout=function(){x(u,-1,null,null,"","timeout")},y.onabort=function(){x(u,-1,null,null,"",b?"timeout":"abort")},$(h,(function(e,t){y.addEventListener(t,e)})),$(g,(function(e,t){y.upload.addEventListener(t,e)})),d&&(y.withCredentials=!0),p)try{y.responseType=p}catch(e){if("json"!==p)throw e}y.send(R(s)?null:s)}if(l>0)var _=n((function(){w("timeout")}),l);else K(l)&&l.then((function(){w(F(l.$$timeoutId)?"timeout":"abort")}));function w(e){b="timeout"===e,v&&v(),y&&y.abort()}function x(e,t,r,i,o,a){F(_)&&n.cancel(_),v=y=null,e(t,r,i,o,a)}}}(e,r,e.defer,t,n[0])}]}var zn=b.$interpolateMinErr=i("$interpolate");function Wn(){var e="{{",t="}}";this.startSymbol=function(t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){var o=e.length,a=t.length,s=new RegExp(e.replace(/./g,c),"g"),u=new RegExp(t.replace(/./g,c),"g");function c(e){return"\\\\\\"+e}function l(n){return n.replace(s,e).replace(u,t)}function f(e,t,n,r){var i=e.$watch((function(e){return i(),r(e)}),t,n);return i}function d(s,u,c,d){var p=c===i.URL||c===i.MEDIA_URL;if(!s.length||-1===s.indexOf(e)){if(u)return;var h=l(s);p&&(h=i.getTrusted(c,h));var g=M(h);return g.exp=s,g.expressions=[],g.$$watchDelegate=f,g}d=!!d;for(var m,v,y,b,_,w=0,$=[],x=s.length,q=[],S=[];w<x;){if(-1===(m=s.indexOf(e,w))||-1===(v=s.indexOf(t,m+o))){w!==x&&q.push(l(s.substring(w)));break}w!==m&&q.push(l(s.substring(w,m))),b=s.substring(m+o,v),$.push(b),w=v+a,S.push(q.length),q.push("")}_=1===q.length&&1===S.length;var E=p&&_?void 0:function(e){try{return e=c&&!p?i.getTrusted(c,e):i.valueOf(e),d&&!F(e)?e:Ne(e)}catch(e){r(zn.interr(s,e))}};if(y=$.map((function(e){return n(e,E)})),!u||$.length){var k=function(e){for(var t=0,n=$.length;t<n;t++){if(d&&R(e[t]))return;q[S[t]]=e[t]}return p?i.getTrusted(c,_?q[0]:q.join("")):(c&&q.length>1&&zn.throwNoconcat(s),q.join(""))};return C((function(e){var t=0,n=$.length,i=new Array(n);try{for(;t<n;t++)i[t]=y[t](e);return k(i)}catch(e){r(zn.interr(s,e))}}),{exp:s,expressions:$,$$watchDelegate:function(e,t){var n;return e.$watchGroup(y,(function(r,i){var o=k(r);t.call(this,o,r!==i?n:o,e),n=o}))}})}}return d.startSymbol=function(){return e},d.endSymbol=function(){return t},d}]}zn.throwNoconcat=function(e){throw zn("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required. See http://docs.angularjs.org/api/ng.$sce",e)},zn.interr=function(e,t){return zn("interr","Can't interpolate: {0}\n{1}",e,t.toString())};var Yn=i("$interval");function Gn(){this.$get=["$$intervalFactory","$window",function(e,t){var n={},r=function(e){t.clearInterval(e),delete n[e]},i=e((function(e,r,i){var o=t.setInterval(e,r);return n[o]=i,o}),r);return i.cancel=function(e){if(!e)return!1;if(!e.hasOwnProperty("$$intervalId"))throw Yn("badprom","`$interval.cancel()` called with a promise that was not generated by `$interval()`.");if(!n.hasOwnProperty(e.$$intervalId))return!1;var t=e.$$intervalId,i=n[t];return Fr(i.promise),i.reject("canceled"),r(t),!0},i}]}function Xn(){this.$get=["$browser","$q","$$q","$rootScope",function(e,t,n,r){return function(i,o){return function(a,s,u,c){var l=arguments.length>4,f=l?le(arguments,4):[],d=0,p=F(c)&&!c,h=(p?n:t).defer(),g=h.promise;function m(){l?a.apply(null,f):a(d)}function v(){p?e.defer(m):r.$evalAsync(m),h.notify(d++),u>0&&d>=u&&(h.resolve(d),o(g.$$intervalId)),p||r.$apply()}return u=F(u)?u:0,g.$$intervalId=i(v,s,h,p),g}}}]}var Kn=function(){this.$get=function(){var e=b.callbacks,t={};return{createCallback:function(n){var r="_"+(e.$$counter++).toString(36),i="angular.callbacks."+r,o=function(e){var t=function(e){t.data=e,t.called=!0};return t.id=e,t}(r);return t[i]=e[r]=o,i},wasCalled:function(e){return t[e].called},getResponse:function(e){return t[e].data},removeCallback:function(n){var r=t[n];delete e[r.id],delete t[n]}}}},Jn=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,Zn={http:80,https:443,ftp:21},Qn=i("$location");function er(e,t,n){var r,i=(r=[],$(t,(function(e,t){V(e)?$(e,(function(e){r.push(xe(t,!0)+(!0===e?"":"="+xe(e,!0)))})):r.push(xe(t,!0)+(!0===e?"":"="+xe(e,!0)))})),r.length?r.join("&"):""),o=n?"#"+$e(n):"";return function(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=$e(t[n].replace(/%2F/g,"/"));return t.join("/")}(e)+(i?"?"+i:"")+o}function tr(e,t){var n=si(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=T(n.port)||Zn[n.protocol]||null}var nr=/^\s*[\\/]{2,}/;function rr(e,t,n){if(nr.test(e))throw Qn("badpath",'Invalid url "{0}".',e);var r="/"!==e.charAt(0);r&&(e="/"+e);var i=si(e),o=r&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname;t.$$path=function(e,t){for(var n=e.split("/"),r=n.length;r--;)n[r]=decodeURIComponent(n[r]),t&&(n[r]=n[r].replace(/\//g,"%2F"));return n.join("/")}(o,n),t.$$search=we(i.search),t.$$hash=decodeURIComponent(i.hash),t.$$path&&"/"!==t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function ir(e,t){return e.slice(0,t.length)===t}function or(e,t){if(ir(t,e))return t.substr(e.length)}function ar(e){var t=e.indexOf("#");return-1===t?e:e.substr(0,t)}function sr(e,t,n){this.$$html5=!0,n=n||"",tr(e,this),this.$$parse=function(e){var n=or(t,e);if(!U(n))throw Qn("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,t);rr(n,this,!0),this.$$path||(this.$$path="/"),this.$$compose()},this.$$normalizeUrl=function(e){return t+e.substr(1)},this.$$parseLinkUrl=function(r,i){return i&&"#"===i[0]?(this.hash(i.slice(1)),!0):(F(o=or(e,r))?(a=o,s=n&&F(o=or(n,o))?t+(or("/",o)||o):e+a):F(o=or(t,r))?s=t+o:t===r+"/"&&(s=t),s&&this.$$parse(s),!!s);var o,a,s}}function ur(e,t,n){tr(e,this),this.$$parse=function(r){var i,o=or(e,r)||or(t,r);R(o)||"#"!==o.charAt(0)?this.$$html5?i=o:(i="",R(o)&&(e=r,this.replace())):R(i=or(n,o))&&(i=o),rr(i,this,!1),this.$$path=function(e,t,n){var r,i=/^\/[A-Z]:(\/.*)/;ir(t,n)&&(t=t.replace(n,""));if(i.exec(t))return e;return(r=i.exec(e))?r[1]:e}(this.$$path,i,e),this.$$compose()},this.$$normalizeUrl=function(t){return e+(t?n+t:"")},this.$$parseLinkUrl=function(t,n){return ar(e)===ar(t)&&(this.$$parse(t),!0)}}function cr(e,t,n){this.$$html5=!0,ur.apply(this,arguments),this.$$parseLinkUrl=function(r,i){return i&&"#"===i[0]?(this.hash(i.slice(1)),!0):(e===ar(r)?o=r:(a=or(t,r))?o=e+n+a:t===r+"/"&&(o=t),o&&this.$$parse(o),!!o);var o,a},this.$$normalizeUrl=function(t){return e+n+t}}var lr={$$absUrl:"",$$html5:!1,$$replace:!1,$$compose:function(){this.$$url=er(this.$$path,this.$$search,this.$$hash),this.$$absUrl=this.$$normalizeUrl(this.$$url),this.$$urlUpdatedByLocation=!0},absUrl:fr("$$absUrl"),url:function(e){if(R(e))return this.$$url;var t=Jn.exec(e);return(t[1]||""===e)&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||""===e)&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:fr("$$protocol"),host:fr("$$host"),port:fr("$$port"),path:dr("$$path",(function(e){return"/"===(e=null!==e?e.toString():"").charAt(0)?e:"/"+e})),search:function(e,t){switch(arguments.length){case 0:return this.$$search;case 1:if(U(e)||B(e))e=e.toString(),this.$$search=we(e);else{if(!N(e))throw Qn("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");$(e=ie(e,{}),(function(t,n){null==t&&delete e[n]})),this.$$search=e}break;default:R(t)||null===t?delete this.$$search[e]:this.$$search[e]=t}return this.$$compose(),this},hash:dr("$$hash",(function(e){return null!==e?e.toString():""})),replace:function(){return this.$$replace=!0,this}};function fr(e){return function(){return this[e]}}function dr(e,t){return function(n){return R(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function pr(){var e="!",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return F(t)?(e=t,this):e},this.html5Mode=function(e){return X(e)?(t.enabled=e,this):N(e)?(X(e.enabled)&&(t.enabled=e.enabled),X(e.requireBase)&&(t.requireBase=e.requireBase),(X(e.rewriteLinks)||U(e.rewriteLinks))&&(t.rewriteLinks=e.rewriteLinks),this):t},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,s){var u,c,l,f,d=r.baseHref(),p=r.url();if(t.enabled){if(!d&&t.requireBase)throw Qn("nobase","$location in HTML5 mode requires a <base> tag to be present!");l=(f=p).substring(0,f.indexOf("/",f.indexOf("//")+2))+(d||"/"),c=i.history?sr:cr}else l=ar(p),c=ur;var h=function(e){return e.substr(0,ar(e).lastIndexOf("/")+1)}(l);(u=new c(l,h,"#"+e)).$$parseLinkUrl(p,p),u.$$state=r.state();var g=/^\s*(javascript|mailto):/i;function m(e,t,n){var i=u.url(),o=u.$$state;try{r.url(e,t,n),u.$$state=r.state()}catch(e){throw u.url(i),u.$$state=o,e}}o.on("click",(function(e){var i=t.rewriteLinks;if(i&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!==e.which&&2!==e.button){for(var s=a(e.target);"a"!==te(s[0]);)if(s[0]===o[0]||!(s=s.parent())[0])return;if(!U(i)||!R(s.attr(i))){var c=s.prop("href"),l=s.attr("href")||s.attr("xlink:href");N(c)&&"[object SVGAnimatedString]"===c.toString()&&(c=si(c.animVal).href),g.test(c)||!c||s.attr("target")||e.isDefaultPrevented()||u.$$parseLinkUrl(c,l)&&(e.preventDefault(),u.absUrl()!==r.url()&&n.$apply())}}})),u.absUrl()!==p&&r.url(u.absUrl(),!0);var v=!0;return r.onUrlChange((function(e,t){ir(e,h)?(n.$evalAsync((function(){var r,i=u.absUrl(),o=u.$$state;u.$$parse(e),u.$$state=t,r=n.$broadcast("$locationChangeStart",e,i,t,o).defaultPrevented,u.absUrl()===e&&(r?(u.$$parse(i),u.$$state=o,m(i,!1,o)):(v=!1,y(i,o)))})),n.$$phase||n.$digest()):s.location.href=e})),n.$watch((function(){if(v||u.$$urlUpdatedByLocation){u.$$urlUpdatedByLocation=!1;var e=r.url(),t=u.absUrl(),o=r.state(),a=u.$$replace,s=!((c=e)===(l=t)||si(c).href===si(l).href)||u.$$html5&&i.history&&o!==u.$$state;(v||s)&&(v=!1,n.$evalAsync((function(){var t=u.absUrl(),r=n.$broadcast("$locationChangeStart",t,e,u.$$state,o).defaultPrevented;u.absUrl()===t&&(r?(u.$$parse(e),u.$$state=o):(s&&m(t,a,o===u.$$state?null:u.$$state),y(e,o)))})))}var c,l;u.$$replace=!1})),u;function y(e,t){n.$broadcast("$locationChangeSuccess",u.absUrl(),e,u.$$state,t)}}]}function hr(){var e=!0,t=this;this.debugEnabled=function(t){return F(t)?(e=t,this):e},this.$get=["$window",function(n){var r,i=o||/\bEdge\//.test(n.navigator&&n.navigator.userAgent);return{log:a("log"),info:a("info"),warn:a("warn"),error:a("error"),debug:(r=a("debug"),function(){e&&r.apply(t,arguments)})};function formatError(e){return isError(e)&&(e.stack&&i?e=e.message&&-1===e.stack.indexOf(e.message)?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}function a(e){var t=n.console||{},r=t[e]||t.log||I;return function(){var e=[];return $(arguments,(function(t){e.push(formatError(t))})),Function.prototype.apply.call(r,t,e)}}}]}$([cr,ur,sr],(function(e){e.prototype=Object.create(lr),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e!==sr||!this.$$html5)throw Qn("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=R(t)?null:t,this.$$urlUpdatedByLocation=!0,this}}));var gr=i("$parse"),mr={}.constructor.prototype.valueOf;function vr(e){return e+""}var yr=Fe();$("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),(function(e){yr[e]=!0}));var br={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},_r=function(e){this.options=e};_r.prototype={constructor:_r,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index<this.text.length;){var t=this.text.charAt(this.index);if('"'===t||"'"===t)this.readString(t);else if(this.isNumber(t)||"."===t&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{var n=t+this.peek(),r=n+this.peek(2),i=yr[t],o=yr[n],a=yr[r];if(i||o||a){var s=a?r:o?n:t;this.tokens.push({index:this.index,text:s,operator:!0}),this.index+=s.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(e,t){return-1!==t.indexOf(e)},peek:function(e){var t=e||1;return this.index+t<this.text.length&&this.text.charAt(this.index+t)},isNumber:function(e){return"0"<=e&&e<="9"&&"string"==typeof e},isWhitespace:function(e){return" "===e||"\r"===e||"\t"===e||"\n"===e||"\v"===e||" "===e},isIdentifierStart:function(e){return this.options.isIdentifierStart?this.options.isIdentifierStart(e,this.codePointAt(e)):this.isValidIdentifierStart(e)},isValidIdentifierStart:function(e){return"a"<=e&&e<="z"||"A"<=e&&e<="Z"||"_"===e||"$"===e},isIdentifierContinue:function(e){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(e,this.codePointAt(e)):this.isValidIdentifierContinue(e)},isValidIdentifierContinue:function(e,t){return this.isValidIdentifierStart(e,t)||this.isNumber(e)},codePointAt:function(e){return 1===e.length?e.charCodeAt(0):(e.charCodeAt(0)<<10)+e.charCodeAt(1)-56613888},peekMultichar:function(){var e=this.text.charAt(this.index),t=this.peek();if(!t)return e;var n=e.charCodeAt(0),r=t.charCodeAt(0);return n>=55296&&n<=56319&&r>=56320&&r<=57343?e+t:e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var r=F(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw gr("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,r,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var n=f(this.text.charAt(this.index));if("."===n||this.isNumber(n))e+=n;else{var r=this.peek();if("e"===n&&this.isExpOperator(r))e+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"===e.charAt(e.length-1))e+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!==e.charAt(e.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:t,text:e,constant:!0,value:Number(e)})},readIdent:function(){var e=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var t=this.peekMultichar();if(!this.isIdentifierContinue(t))break;this.index+=t.length}this.tokens.push({index:e,text:this.text.slice(e,this.index),identifier:!0})},readString:function(e){var t=this.index;this.index++;for(var n="",r=e,i=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);if(r+=o,i){if("u"===o){var a=this.text.substring(this.index+1,this.index+5);a.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+a+"]"),this.index+=4,n+=String.fromCharCode(parseInt(a,16))}else{n+=br[o]||o}i=!1}else if("\\"===o)i=!0;else{if(o===e)return this.index++,void this.tokens.push({index:t,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",t)}};var wr=function(e,t){this.lexer=e,this.options=t};function $r(e,t){return void 0!==e?e:t}function xr(e,t){return void 0===e?t:void 0===t?e:e+t}wr.Program="Program",wr.ExpressionStatement="ExpressionStatement",wr.AssignmentExpression="AssignmentExpression",wr.ConditionalExpression="ConditionalExpression",wr.LogicalExpression="LogicalExpression",wr.BinaryExpression="BinaryExpression",wr.UnaryExpression="UnaryExpression",wr.CallExpression="CallExpression",wr.MemberExpression="MemberExpression",wr.Identifier="Identifier",wr.Literal="Literal",wr.ArrayExpression="ArrayExpression",wr.Property="Property",wr.ObjectExpression="ObjectExpression",wr.ThisExpression="ThisExpression",wr.LocalsExpression="LocalsExpression",wr.NGValueParameter="NGValueParameter",wr.prototype={ast:function(e){this.text=e,this.tokens=this.lexer.lex(e);var t=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var e=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:wr.Program,body:e}},expressionStatement:function(){return{type:wr.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e=this.expression();this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();if(this.expect("=")){if(!Er(e))throw gr("lval","Trying to assign a value to a non l-value");e={type:wr.AssignmentExpression,left:e,right:this.assignment(),operator:"="}}return e},ternary:function(){var e,t,n=this.logicalOR();return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:wr.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:wr.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:wr.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:wr.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:wr.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:wr.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:wr.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:wr.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e,t;for(this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=ie(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:wr.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());t=this.expect("(","[",".");)"("===t.text?(e={type:wr.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:wr.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:wr.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],n={type:wr.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return n},parseArguments:function(){var e=[];if(")"!==this.peekToken().text)do{e.push(this.filterChain())}while(this.expect(","));return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:wr.Identifier,name:e.text}},constant:function(){return{type:wr.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:wr.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:wr.Property,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.expression()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.expression()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.expression(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.expression()):this.throwError("invalid key",this.peek()),t.push(e)}while(this.expect(","));return this.consume("}"),{type:wr.ObjectExpression,properties:t}},throwError:function(e,t){throw gr("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(0===this.tokens.length)throw gr("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw gr("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,n,r){return this.peekAhead(0,e,t,n,r)},peekAhead:function(e,t,n,r,i){if(this.tokens.length>e){var o=this.tokens[e],a=o.text;if(a===t||a===n||a===r||a===i||!t&&!n&&!r&&!i)return o}return!1},expect:function(e,t,n,r){var i=this.peek(e,t,n,r);return!!i&&(this.tokens.shift(),i)},selfReferential:{this:{type:wr.ThisExpression},$locals:{type:wr.LocalsExpression}}};function qr(e,t,n){var r,i,o,a=e.isPure=function(e,t){switch(e.type){case wr.MemberExpression:if(e.computed)return!1;break;case wr.UnaryExpression:return 1;case wr.BinaryExpression:return"+"!==e.operator&&1;case wr.CallExpression:return!1}return void 0===t?2:t}(e,n);switch(e.type){case wr.Program:r=!0,$(e.body,(function(e){qr(e.expression,t,a),r=r&&e.expression.constant})),e.constant=r;break;case wr.Literal:e.constant=!0,e.toWatch=[];break;case wr.UnaryExpression:qr(e.argument,t,a),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case wr.BinaryExpression:qr(e.left,t,a),qr(e.right,t,a),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case wr.LogicalExpression:qr(e.left,t,a),qr(e.right,t,a),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case wr.ConditionalExpression:qr(e.test,t,a),qr(e.alternate,t,a),qr(e.consequent,t,a),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case wr.Identifier:e.constant=!1,e.toWatch=[e];break;case wr.MemberExpression:qr(e.object,t,a),e.computed&&qr(e.property,t,a),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=e.constant?[]:[e];break;case wr.CallExpression:o=!!e.filter&&function(e,t){return!e(t).$stateful}(t,e.callee.name),r=o,i=[],$(e.arguments,(function(e){qr(e,t,a),r=r&&e.constant,i.push.apply(i,e.toWatch)})),e.constant=r,e.toWatch=o?i:[e];break;case wr.AssignmentExpression:qr(e.left,t,a),qr(e.right,t,a),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case wr.ArrayExpression:r=!0,i=[],$(e.elements,(function(e){qr(e,t,a),r=r&&e.constant,i.push.apply(i,e.toWatch)})),e.constant=r,e.toWatch=i;break;case wr.ObjectExpression:r=!0,i=[],$(e.properties,(function(e){qr(e.value,t,a),r=r&&e.value.constant,i.push.apply(i,e.value.toWatch),e.computed&&(qr(e.key,t,!1),r=r&&e.key.constant,i.push.apply(i,e.key.toWatch))})),e.constant=r,e.toWatch=i;break;case wr.ThisExpression:case wr.LocalsExpression:e.constant=!1,e.toWatch=[]}}function Sr(e){if(1===e.length){var t=e[0].expression,n=t.toWatch;return 1!==n.length||n[0]!==t?n:void 0}}function Er(e){return e.type===wr.Identifier||e.type===wr.MemberExpression}function kr(e){if(1===e.body.length&&Er(e.body[0].expression))return{type:wr.AssignmentExpression,left:e.body[0].expression,right:{type:wr.NGValueParameter},operator:"="}}function Cr(e){this.$filter=e}function Or(e){this.$filter=e}function Tr(e,t,n){this.ast=new wr(e,n),this.astCompiler=n.csp?new Or(t):new Cr(t)}function Dr(e){return z(e.valueOf)?e.valueOf():mr.call(e)}function Ar(){var e,t,n=Fe(),r={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(e,t){r[e]=t},this.setIdentifierFns=function(n,r){return e=n,t=r,this},this.$get=["$filter",function(i){var o={csp:se().noUnsafeEval,literals:ie(r),isIdentifierStart:z(e)&&e,isIdentifierContinue:z(t)&&t};return a.$$getAst=function(e){return new Tr(new _r(o),i,o).getAst(e).ast},a;function a(e,t){var r,a;switch(typeof e){case"string":if(e=e.trim(),!(r=n[a=e]))r=new Tr(new _r(o),i,o).parse(e),n[a]=d(r);return p(r,t);case"function":return p(e,t);default:return p(I,t)}}function s(e,t,n){return null==e||null==t?e===t:!("object"==typeof e&&"object"==typeof(e=Dr(e))&&!n)&&(e===t||e!=e&&t!=t)}function u(e,t,n,r,i){var o,a=r.inputs;if(1===a.length){var u=s;return a=a[0],e.$watch((function(e){var t=a(e);return s(t,u,a.isPure)||(o=r(e,void 0,void 0,[t]),u=t&&Dr(t)),o}),t,n,i)}for(var c=[],l=[],f=0,d=a.length;f<d;f++)c[f]=s,l[f]=null;return e.$watch((function(e){for(var t=!1,n=0,i=a.length;n<i;n++){var u=a[n](e);(t||(t=!s(u,c[n],a[n].isPure)))&&(l[n]=u,c[n]=u&&Dr(u))}return t&&(o=r(e,void 0,void 0,l)),o}),t,n,i)}function c(e,t,n,r,i){var o,a,s=r.literal?l:F,u=r.$$intercepted||r,c=r.$$interceptor||P,f=r.inputs&&!u.inputs;return h.literal=r.literal,h.constant=r.constant,h.inputs=r.inputs,d(h),o=e.$watch(h,t,n,i);function p(){s(a)&&o()}function h(e,t,n,r){return a=f&&r?r[0]:u(e,t,n,r),s(a)&&e.$$postDigest(p),c(a)}}function l(e){var t=!0;return $(e,(function(e){F(e)||(t=!1)})),t}function f(e,t,n,r){var i=e.$watch((function(e){return i(),r(e)}),t,n);return i}function d(e){return e.constant?e.$$watchDelegate=f:e.oneTime?e.$$watchDelegate=c:e.inputs&&(e.$$watchDelegate=u),e}function p(e,t){if(!t)return e;e.$$interceptor&&(t=function(e,t){function n(n){return t(e(n))}return n.$stateful=e.$stateful||t.$stateful,n.$$pure=e.$$pure&&t.$$pure,n}(e.$$interceptor,t),e=e.$$intercepted);var n=!1,r=function(r,i,o,a){var s=n&&a?a[0]:e(r,i,o,a);return t(s)};return r.$$intercepted=e,r.$$interceptor=t,r.literal=e.literal,r.oneTime=e.oneTime,r.constant=e.constant,t.$stateful||(n=!e.inputs,r.inputs=e.inputs?e.inputs:[e],t.$$pure||(r.inputs=r.inputs.map((function(e){return 2===e.isPure?function(t){return e(t)}:e})))),d(r)}}]}function Ir(){var e=!0;this.$get=["$rootScope","$exceptionHandler",function(t,n){return Mr((function(e){t.$evalAsync(e)}),n,e)}],this.errorOnUnhandledRejections=function(t){return F(t)?(e=t,this):e}}function Pr(){var e=!0;this.$get=["$browser","$exceptionHandler",function(t,n){return Mr((function(e){t.defer(e)}),n,e)}],this.errorOnUnhandledRejections=function(t){return F(t)?(e=t,this):e}}function Mr(e,t,n){var r=i("$q",TypeError),o=0,a=[];function s(){return new u}function u(){var e=this.promise=new c;this.resolve=function(t){d(e,t)},this.reject=function(t){p(e,t)},this.notify=function(t){g(e,t)}}function c(){this.$$state={status:0}}function l(){for(;!o&&a.length;){var e=a.shift();if(!jr(e)){Rr(e);var n="Possibly unhandled rejection: "+Be(e.value);isError(e.value)?t(e.value,n):t(n)}}}function f(r){!n||r.pending||2!==r.status||jr(r)||(0===o&&0===a.length&&e(l),a.push(r)),!r.processScheduled&&r.pending&&(r.processScheduled=!0,++o,e((function(){!function(r){var i,a,s;s=r.pending,r.processScheduled=!1,r.pending=void 0;try{for(var u=0,c=s.length;u<c;++u){Rr(r),a=s[u][0],i=s[u][r.status];try{z(i)?d(a,i(r.value)):1===r.status?d(a,r.value):p(a,r.value)}catch(e){p(a,e),e&&!0===e.$$passToExceptionHandler&&t(e)}}}finally{--o,n&&0===o&&e(l)}}(r)})))}function d(e,t){e.$$state.status||(t===e?h(e,r("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):function e(t,n){var r,i=!1;try{(N(n)||z(n))&&(r=n.then),z(r)?(t.$$state.status=-1,r.call(n,o,a,(function(e){g(t,e)}))):(t.$$state.value=n,t.$$state.status=1,f(t.$$state))}catch(e){a(e)}function o(n){i||(i=!0,e(t,n))}function a(e){i||(i=!0,h(t,e))}}(e,t))}function p(e,t){e.$$state.status||h(e,t)}function h(e,t){e.$$state.value=t,e.$$state.status=2,f(e.$$state)}function g(n,r){var i=n.$$state.pending;n.$$state.status<=0&&i&&i.length&&e((function(){for(var e,n,o=0,a=i.length;o<a;o++){n=i[o][0],e=i[o][3];try{g(n,z(e)?e(r):r)}catch(e){t(e)}}}))}function m(e){var t=new c;return p(t,e),t}function v(e,t,n){var r=null;try{z(n)&&(r=n())}catch(e){return m(e)}return K(r)?r.then((function(){return t(e)}),m):t(e)}function y(e,t,n,r){var i=new c;return d(i,e),i.then(t,n,r)}C(c.prototype,{then:function(e,t,n){if(R(e)&&R(t)&&R(n))return this;var r=new c;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,e,t,n]),this.$$state.status>0&&f(this.$$state),r},catch:function(e){return this.then(null,e)},finally:function(e,t){return this.then((function(t){return v(t,b,e)}),(function(t){return v(t,m,e)}),t)}});var b=y;function _(e){if(!z(e))throw r("norslvr","Expected resolverFn, got '{0}'",e);var t=new c;return e((function(e){d(t,e)}),(function(e){p(t,e)})),t}return _.prototype=c.prototype,_.defer=s,_.reject=m,_.when=y,_.resolve=b,_.all=function(e){var t=new c,n=0,r=V(e)?[]:{};return $(e,(function(e,i){n++,y(e).then((function(e){r[i]=e,--n||d(t,r)}),(function(e){p(t,e)}))})),0===n&&d(t,r),t},_.race=function(e){var t=s();return $(e,(function(e){y(e).then(t.resolve,t.reject)})),t.promise},_}function jr(e){return!!e.pur}function Rr(e){e.pur=!0}function Fr(e){e.$$state&&Rr(e.$$state)}function Nr(){this.$get=["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame,r=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,i=!!n,o=i?function(e){var t=n(e);return function(){r(t)}}:function(e){var n=t(e,16.66,!1);return function(){t.cancel(n)}};return o.supported=i,o}]}function Lr(){var e=10,t=i("$rootScope"),n=null,r=null;this.digestTtl=function(t){return arguments.length&&(e=t),e},this.$get=["$exceptionHandler","$parse","$browser",function(i,a,s){function u(e){e.currentScope.$$destroyed=!0}function c(){this.$id=S(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$suspended=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}c.prototype={constructor:c,$new:function(e,t){var n;return t=t||this,e?(n=new c).$root=this.$root:(this.$$ChildScope||(this.$$ChildScope=function(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=S(),this.$$ChildScope=null,this.$$suspended=!1}return t.prototype=e,t}(this)),n=new this.$$ChildScope),n.$parent=t,n.$$prevSibling=t.$$childTail,t.$$childHead?(t.$$childTail.$$nextSibling=n,t.$$childTail=n):t.$$childHead=t.$$childTail=n,(e||t!==this)&&n.$on("$destroy",u),n},$watch:function(e,t,r,i){var o=a(e),s=z(t)?t:I;if(o.$$watchDelegate)return o.$$watchDelegate(this,s,r,o,e);var u=this,c=u.$$watchers,l={fn:s,last:_,get:o,exp:i||e,eq:!!r};return n=null,c||((c=u.$$watchers=[]).$$digestWatchIndex=-1),c.unshift(l),c.$$digestWatchIndex++,y(this,1),function(){var e=re(c,l);e>=0&&(y(u,-1),e<c.$$digestWatchIndex&&c.$$digestWatchIndex--),n=null}},$watchGroup:function(e,t){var n=new Array(e.length),r=new Array(e.length),i=[],o=this,a=!1,s=!0;if(!e.length){var u=!0;return o.$evalAsync((function(){u&&t(r,r,o)})),function(){u=!1}}if(1===e.length)return this.$watch(e[0],(function(e,i,o){r[0]=e,n[0]=i,t(r,e===i?r:n,o)}));function c(){a=!1;try{s?(s=!1,t(r,r,o)):t(r,n,o)}finally{for(var i=0;i<e.length;i++)n[i]=r[i]}}return $(e,(function(e,t){var n=o.$watch(e,(function(e){r[t]=e,a||(a=!0,o.$evalAsync(c))}));i.push(n)})),function(){for(;i.length;)i.shift()()}},$watchCollection:function(e,t){g.$$pure=a(e).literal,g.$stateful=!g.$$pure;var n,r,i,o=this,s=t.length>1,u=0,c=a(e,g),f=[],d={},p=!0,h=0;function g(e){var t,i,o,a;if(!R(n=e)){if(N(n))if(w(n)){r!==f&&(h=(r=f).length=0,u++),t=n.length,h!==t&&(u++,r.length=h=t);for(var s=0;s<t;s++)a=r[s],o=n[s],a!=a&&o!=o||a===o||(u++,r[s]=o)}else{for(i in r!==d&&(r=d={},h=0,u++),t=0,n)l.call(n,i)&&(t++,o=n[i],a=r[i],i in r?a!=a&&o!=o||a===o||(u++,r[i]=o):(h++,r[i]=o,u++));if(h>t)for(i in u++,r)l.call(n,i)||(h--,delete r[i])}else r!==n&&(r=n,u++);return u}}return this.$watch(c,(function(){if(p?(p=!1,t(n,n,o)):t(n,i,o),s)if(N(n))if(w(n)){i=new Array(n.length);for(var e=0;e<n.length;e++)i[e]=n[e]}else for(var r in i={},n)l.call(n,r)&&(i[r]=n[r]);else i=n}))},$digest:function(){var o,a,u,c,l,h,y,b,w,$=e,q=d.length?f:this,S=[];m("$digest"),s.$$checkUrlChange(),this===f&&null!==r&&(s.defer.cancel(r),x()),n=null;do{l=!1,y=q;for(var E=0;E<d.length;E++){try{(0,(w=d[E]).fn)(w.scope,w.locals)}catch(e){i(e)}n=null}d.length=0;e:do{if(c=!y.$$suspended&&y.$$watchers)for(c.$$digestWatchIndex=c.length;c.$$digestWatchIndex--;)try{if(o=c[c.$$digestWatchIndex])if((a=(0,o.get)(y))===(u=o.last)||(o.eq?ae(a,u):D(a)&&D(u))){if(o===n){l=!1;break e}}else l=!0,n=o,o.last=o.eq?ie(a,null):a,(0,o.fn)(a,u===_?a:u,y),$<5&&(S[b=4-$]||(S[b]=[]),S[b].push({msg:z(o.exp)?"fn: "+(o.exp.name||o.exp.toString()):o.exp,newVal:a,oldVal:u}))}catch(e){i(e)}if(!(h=!y.$$suspended&&y.$$watchersCount&&y.$$childHead||y!==q&&y.$$nextSibling))for(;y!==q&&!(h=y.$$nextSibling);)y=y.$parent}while(y=h);if((l||d.length)&&!$--)throw v(),t("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",e,S)}while(l||d.length);for(v();g<p.length;)try{p[g++]()}catch(e){i(e)}p.length=g=0,s.$$checkUrlChange()},$suspend:function(){this.$$suspended=!0},$isSuspended:function(){return this.$$suspended},$resume:function(){this.$$suspended=!1},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;for(var t in this.$broadcast("$destroy"),this.$$destroyed=!0,this===f&&s.$$applicationDestroyed(),y(this,-this.$$watchersCount),this.$$listenerCount)b(this,this.$$listenerCount[t],t);e&&e.$$childHead===this&&(e.$$childHead=this.$$nextSibling),e&&e.$$childTail===this&&(e.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=I,this.$on=this.$watch=this.$watchGroup=function(){return I},this.$$listeners={},this.$$nextSibling=null,function e(t){9===o&&(t.$$childHead&&e(t.$$childHead),t.$$nextSibling&&e(t.$$nextSibling)),t.$parent=t.$$nextSibling=t.$$prevSibling=t.$$childHead=t.$$childTail=t.$root=t.$$watchers=null}(this)}},$eval:function(e,t){return a(e)(this,t)},$evalAsync:function(e,t){f.$$phase||d.length||s.defer((function(){d.length&&f.$digest()}),null,"$evalAsync"),d.push({scope:this,fn:a(e),locals:t})},$$postDigest:function(e){p.push(e)},$apply:function(e){try{m("$apply");try{return this.$eval(e)}finally{v()}}catch(e){i(e)}finally{try{f.$digest()}catch(e){throw i(e),e}}},$applyAsync:function(e){var t=this;e&&h.push((function(){t.$eval(e)})),e=a(e),null===r&&(r=s.defer((function(){f.$apply(x)}),null,"$applyAsync"))},$on:function(e,t){var n=this.$$listeners[e];n||(this.$$listeners[e]=n=[]),n.push(t);var r=this;do{r.$$listenerCount[e]||(r.$$listenerCount[e]=0),r.$$listenerCount[e]++}while(r=r.$parent);var i=this;return function(){var r=n.indexOf(t);-1!==r&&(delete n[r],b(i,1,e))}},$emit:function(e,t){var n,r,o,a=[],s=this,u=!1,c={name:e,targetScope:s,stopPropagation:function(){u=!0},preventDefault:function(){c.defaultPrevented=!0},defaultPrevented:!1},l=ce([c],arguments,1);do{for(n=s.$$listeners[e]||a,c.currentScope=s,r=0,o=n.length;r<o;r++)if(n[r])try{n[r].apply(null,l)}catch(e){i(e)}else n.splice(r,1),r--,o--;if(u)break;s=s.$parent}while(s);return c.currentScope=null,c},$broadcast:function(e,t){var n=this,r=n,o=n,a={name:e,targetScope:n,preventDefault:function(){a.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[e])return a;for(var s,u,c,l=ce([a],arguments,1);r=o;){for(a.currentScope=r,u=0,c=(s=r.$$listeners[e]||[]).length;u<c;u++)if(s[u])try{s[u].apply(null,l)}catch(e){i(e)}else s.splice(u,1),u--,c--;if(!(o=r.$$listenerCount[e]&&r.$$childHead||r!==n&&r.$$nextSibling))for(;r!==n&&!(o=r.$$nextSibling);)r=r.$parent}return a.currentScope=null,a}};var f=new c,d=f.$$asyncQueue=[],p=f.$$postDigestQueue=[],h=f.$$applyAsyncQueue=[],g=0;return f;function m(e){if(f.$$phase)throw t("inprog","{0} already in progress",f.$$phase);f.$$phase=e}function v(){f.$$phase=null}function y(e,t){do{e.$$watchersCount+=t}while(e=e.$parent)}function b(e,t,n){do{e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n]}while(e=e.$parent)}function _(){}function x(){for(;h.length;)try{h.shift()()}catch(e){i(e)}r=null}}]}function Ur(){var e=/^\s*(https?|s?ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return F(t)?(e=t,this):e},this.imgSrcSanitizationWhitelist=function(e){return F(e)?(t=e,this):t},this.$get=function(){return function(n,r){var i=r?t:e,o=si(n&&n.trim()).href;return""===o||o.match(i)?n:"unsafe:"+o}}}Cr.prototype={compile:function(e){var t=this;this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},qr(e,t.$filter);var n,r="";if(this.stage="assign",n=kr(e)){this.state.computing="assign";var i=this.nextId();this.recurse(n,i),this.return_(i),r="fn.assign="+this.generateFunction("assign","s,v,l")}var o=Sr(e.body);t.stage="inputs",$(o,(function(e,n){var r="fn"+n;t.state[r]={vars:[],body:[],own:{}},t.state.computing=r;var i=t.nextId();t.recurse(e,i),t.return_(i),t.state.inputs.push({name:r,isPure:e.isPure}),e.watchId=n})),this.state.computing="fn",this.stage="main",this.recurse(e);var a='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+r+this.watchFns()+"return fn;",s=new Function("$filter","getStringValue","ifDefined","plus",a)(this.$filter,vr,$r,xr);return this.state=this.stage=void 0,s},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return $(t,(function(t){e.push("var "+t.name+"="+n.generateFunction(t.name,"s")),t.isPure&&e.push(t.name,".isPure="+JSON.stringify(t.isPure)+";")})),t.length&&e.push("fn.inputs=["+t.map((function(e){return e.name})).join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return $(this.state.filters,(function(n,r){e.push(n+"=$filter("+t.escape(r)+")")})),e.length?"var "+e.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(e,t,n,r,i,o){var a,s,u,c,l,f=this;if(r=r||I,!o&&F(e.watchId))return t=t||this.nextId(),void this.if_("i",this.lazyAssign(t,this.computedMember("i",e.watchId)),this.lazyRecurse(e,t,n,r,i,!0));switch(e.type){case wr.Program:$(e.body,(function(t,n){f.recurse(t.expression,void 0,void 0,(function(e){s=e})),n!==e.body.length-1?f.current().body.push(s,";"):f.return_(s)}));break;case wr.Literal:c=this.escape(e.value),this.assign(t,c),r(t||c);break;case wr.UnaryExpression:this.recurse(e.argument,void 0,void 0,(function(e){s=e})),c=e.operator+"("+this.ifDefined(s,0)+")",this.assign(t,c),r(c);break;case wr.BinaryExpression:this.recurse(e.left,void 0,void 0,(function(e){a=e})),this.recurse(e.right,void 0,void 0,(function(e){s=e})),c="+"===e.operator?this.plus(a,s):"-"===e.operator?this.ifDefined(a,0)+e.operator+this.ifDefined(s,0):"("+a+")"+e.operator+"("+s+")",this.assign(t,c),r(c);break;case wr.LogicalExpression:t=t||this.nextId(),f.recurse(e.left,t),f.if_("&&"===e.operator?t:f.not(t),f.lazyRecurse(e.right,t)),r(t);break;case wr.ConditionalExpression:t=t||this.nextId(),f.recurse(e.test,t),f.if_(t,f.lazyRecurse(e.alternate,t),f.lazyRecurse(e.consequent,t)),r(t);break;case wr.Identifier:t=t||this.nextId(),n&&(n.context="inputs"===f.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),n.computed=!1,n.name=e.name),f.if_("inputs"===f.stage||f.not(f.getHasOwnProperty("l",e.name)),(function(){f.if_("inputs"===f.stage||"s",(function(){i&&1!==i&&f.if_(f.isNull(f.nonComputedMember("s",e.name)),f.lazyAssign(f.nonComputedMember("s",e.name),"{}")),f.assign(t,f.nonComputedMember("s",e.name))}))}),t&&f.lazyAssign(t,f.nonComputedMember("l",e.name))),r(t);break;case wr.MemberExpression:a=n&&(n.context=this.nextId())||this.nextId(),t=t||this.nextId(),f.recurse(e.object,a,void 0,(function(){f.if_(f.notNull(a),(function(){e.computed?(s=f.nextId(),f.recurse(e.property,s),f.getStringValue(s),i&&1!==i&&f.if_(f.not(f.computedMember(a,s)),f.lazyAssign(f.computedMember(a,s),"{}")),c=f.computedMember(a,s),f.assign(t,c),n&&(n.computed=!0,n.name=s)):(i&&1!==i&&f.if_(f.isNull(f.nonComputedMember(a,e.property.name)),f.lazyAssign(f.nonComputedMember(a,e.property.name),"{}")),c=f.nonComputedMember(a,e.property.name),f.assign(t,c),n&&(n.computed=!1,n.name=e.property.name))}),(function(){f.assign(t,"undefined")})),r(t)}),!!i);break;case wr.CallExpression:t=t||this.nextId(),e.filter?(s=f.filter(e.callee.name),u=[],$(e.arguments,(function(e){var t=f.nextId();f.recurse(e,t),u.push(t)})),c=s+"("+u.join(",")+")",f.assign(t,c),r(t)):(s=f.nextId(),a={},u=[],f.recurse(e.callee,s,a,(function(){f.if_(f.notNull(s),(function(){$(e.arguments,(function(t){f.recurse(t,e.constant?void 0:f.nextId(),void 0,(function(e){u.push(e)}))})),c=a.name?f.member(a.context,a.name,a.computed)+"("+u.join(",")+")":s+"("+u.join(",")+")",f.assign(t,c)}),(function(){f.assign(t,"undefined")})),r(t)})));break;case wr.AssignmentExpression:s=this.nextId(),a={},this.recurse(e.left,void 0,a,(function(){f.if_(f.notNull(a.context),(function(){f.recurse(e.right,s),c=f.member(a.context,a.name,a.computed)+e.operator+s,f.assign(t,c),r(t||c)}))}),1);break;case wr.ArrayExpression:u=[],$(e.elements,(function(t){f.recurse(t,e.constant?void 0:f.nextId(),void 0,(function(e){u.push(e)}))})),c="["+u.join(",")+"]",this.assign(t,c),r(t||c);break;case wr.ObjectExpression:u=[],l=!1,$(e.properties,(function(e){e.computed&&(l=!0)})),l?(t=t||this.nextId(),this.assign(t,"{}"),$(e.properties,(function(e){e.computed?(a=f.nextId(),f.recurse(e.key,a)):a=e.key.type===wr.Identifier?e.key.name:""+e.key.value,s=f.nextId(),f.recurse(e.value,s),f.assign(f.member(t,a,e.computed),s)}))):($(e.properties,(function(t){f.recurse(t.value,e.constant?void 0:f.nextId(),void 0,(function(e){u.push(f.escape(t.key.type===wr.Identifier?t.key.name:""+t.key.value)+":"+e)}))})),c="{"+u.join(",")+"}",this.assign(t,c)),r(t||c);break;case wr.ThisExpression:this.assign(t,"s"),r(t||"s");break;case wr.LocalsExpression:this.assign(t,"l"),r(t||"l");break;case wr.NGValueParameter:this.assign(t,"v"),r(t||"v")}},getHasOwnProperty:function(e,t){var n=e+"."+t,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),r[n]},assign:function(e,t){if(e)return this.current().body.push(e,"=",t,";"),e},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,n){if(!0===e)t();else{var r=this.current().body;r.push("if(",e,"){"),t(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(e){return"!("+e+")"},isNull:function(e){return e+"==null"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(t)?e+"."+t:e+'["'+t.replace(/[^$_a-zA-Z0-9]/g,this.stringEscapeFn)+'"]'},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,n){return n?this.computedMember(e,t):this.nonComputedMember(e,t)},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},lazyRecurse:function(e,t,n,r,i,o){var a=this;return function(){a.recurse(e,t,n,r,i,o)}},lazyAssign:function(e,t){var n=this;return function(){n.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(U(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(B(e))return e.toString();if(!0===e)return"true";if(!1===e)return"false";if(null===e)return"null";if(void 0===e)return"undefined";throw gr("esc","IMPOSSIBLE")},nextId:function(e,t){var n="v"+this.state.nextId++;return e||this.current().vars.push(n+(t?"="+t:"")),n},current:function(){return this.state[this.state.computing]}},Or.prototype={compile:function(e){var t,n,r=this;qr(e,r.$filter),(t=kr(e))&&(n=this.recurse(t));var i,o=Sr(e.body);o&&(i=[],$(o,(function(e,t){var n=r.recurse(e);n.isPure=e.isPure,e.input=n,i.push(n),e.watchId=t})));var a=[];$(e.body,(function(e){a.push(r.recurse(e.expression))}));var s=0===e.body.length?I:1===e.body.length?a[0]:function(e,t){var n;return $(a,(function(r){n=r(e,t)})),n};return n&&(s.assign=function(e,t,r){return n(e,r,t)}),i&&(s.inputs=i),s},recurse:function(e,t,n){var r,i,o,a=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case wr.Literal:return this.value(e.value,t);case wr.UnaryExpression:return i=this.recurse(e.argument),this["unary"+e.operator](i,t);case wr.BinaryExpression:case wr.LogicalExpression:return r=this.recurse(e.left),i=this.recurse(e.right),this["binary"+e.operator](r,i,t);case wr.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case wr.Identifier:return a.identifier(e.name,t,n);case wr.MemberExpression:return r=this.recurse(e.object,!1,!!n),e.computed||(i=e.property.name),e.computed&&(i=this.recurse(e.property)),e.computed?this.computedMember(r,i,t,n):this.nonComputedMember(r,i,t,n);case wr.CallExpression:return o=[],$(e.arguments,(function(e){o.push(a.recurse(e))})),e.filter&&(i=this.$filter(e.callee.name)),e.filter||(i=this.recurse(e.callee,!0)),e.filter?function(e,n,r,a){for(var s=[],u=0;u<o.length;++u)s.push(o[u](e,n,r,a));var c=i.apply(void 0,s,a);return t?{context:void 0,name:void 0,value:c}:c}:function(e,n,r,a){var s,u=i(e,n,r,a);if(null!=u.value){for(var c=[],l=0;l<o.length;++l)c.push(o[l](e,n,r,a));s=u.value.apply(u.context,c)}return t?{value:s}:s};case wr.AssignmentExpression:return r=this.recurse(e.left,!0,1),i=this.recurse(e.right),function(e,n,o,a){var s=r(e,n,o,a),u=i(e,n,o,a);return s.context[s.name]=u,t?{value:u}:u};case wr.ArrayExpression:return o=[],$(e.elements,(function(e){o.push(a.recurse(e))})),function(e,n,r,i){for(var a=[],s=0;s<o.length;++s)a.push(o[s](e,n,r,i));return t?{value:a}:a};case wr.ObjectExpression:return o=[],$(e.properties,(function(e){e.computed?o.push({key:a.recurse(e.key),computed:!0,value:a.recurse(e.value)}):o.push({key:e.key.type===wr.Identifier?e.key.name:""+e.key.value,computed:!1,value:a.recurse(e.value)})})),function(e,n,r,i){for(var a={},s=0;s<o.length;++s)o[s].computed?a[o[s].key(e,n,r,i)]=o[s].value(e,n,r,i):a[o[s].key]=o[s].value(e,n,r,i);return t?{value:a}:a};case wr.ThisExpression:return function(e){return t?{value:e}:e};case wr.LocalsExpression:return function(e,n){return t?{value:n}:n};case wr.NGValueParameter:return function(e,n,r){return t?{value:r}:r}}},"unary+":function(e,t){return function(n,r,i,o){var a=e(n,r,i,o);return a=F(a)?+a:0,t?{value:a}:a}},"unary-":function(e,t){return function(n,r,i,o){var a=e(n,r,i,o);return a=F(a)?-a:-0,t?{value:a}:a}},"unary!":function(e,t){return function(n,r,i,o){var a=!e(n,r,i,o);return t?{value:a}:a}},"binary+":function(e,t,n){return function(r,i,o,a){var s=xr(e(r,i,o,a),t(r,i,o,a));return n?{value:s}:s}},"binary-":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a),u=t(r,i,o,a),c=(F(s)?s:0)-(F(u)?u:0);return n?{value:c}:c}},"binary*":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)*t(r,i,o,a);return n?{value:s}:s}},"binary/":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)/t(r,i,o,a);return n?{value:s}:s}},"binary%":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)%t(r,i,o,a);return n?{value:s}:s}},"binary===":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)===t(r,i,o,a);return n?{value:s}:s}},"binary!==":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)!==t(r,i,o,a);return n?{value:s}:s}},"binary==":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)==t(r,i,o,a);return n?{value:s}:s}},"binary!=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)!=t(r,i,o,a);return n?{value:s}:s}},"binary<":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)<t(r,i,o,a);return n?{value:s}:s}},"binary>":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)>t(r,i,o,a);return n?{value:s}:s}},"binary<=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)<=t(r,i,o,a);return n?{value:s}:s}},"binary>=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)>=t(r,i,o,a);return n?{value:s}:s}},"binary&&":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)&&t(r,i,o,a);return n?{value:s}:s}},"binary||":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)||t(r,i,o,a);return n?{value:s}:s}},"ternary?:":function(e,t,n,r){return function(i,o,a,s){var u=e(i,o,a,s)?t(i,o,a,s):n(i,o,a,s);return r?{value:u}:u}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(e,t,n){return function(r,i,o,a){var s=i&&e in i?i:r;n&&1!==n&&s&&null==s[e]&&(s[e]={});var u=s?s[e]:void 0;return t?{context:s,name:e,value:u}:u}},computedMember:function(e,t,n,r){return function(i,o,a,s){var u,c,l=e(i,o,a,s);return null!=l&&(u=vr(u=t(i,o,a,s)),r&&1!==r&&l&&!l[u]&&(l[u]={}),c=l[u]),n?{context:l,name:u,value:c}:c}},nonComputedMember:function(e,t,n,r){return function(i,o,a,s){var u=e(i,o,a,s);r&&1!==r&&u&&null==u[t]&&(u[t]={});var c=null!=u?u[t]:void 0;return n?{context:u,name:t,value:c}:c}},inputs:function(e,t){return function(n,r,i,o){return o?o[t]:e(n,r,i)}}},Tr.prototype={constructor:Tr,parse:function(e){var t=this.getAst(e),n=this.astCompiler.compile(t.ast);return n.literal=function(e){return 0===e.body.length||1===e.body.length&&(e.body[0].expression.type===wr.Literal||e.body[0].expression.type===wr.ArrayExpression||e.body[0].expression.type===wr.ObjectExpression)}(t.ast),n.constant=function(e){return e.constant}(t.ast),n.oneTime=t.oneTime,n},getAst:function(e){var t=!1;return":"===(e=e.trim()).charAt(0)&&":"===e.charAt(1)&&(t=!0,e=e.substring(2)),{ast:this.ast.ast(e),oneTime:t}}};var Br=i("$sce"),Hr={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Vr=/_([a-z])/g;function zr(e){return e.replace(Vr,Ke)}function Wr(e){var t=[];return F(e)&&$(e,(function(e){t.push(function(e){if("self"===e)return e;if(U(e)){if(e.indexOf("***")>-1)throw Br("iwcard","Illegal sequence *** in string matcher. String: {0}",e);return e=Q(e).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+e+"$")}if(W(e))return new RegExp("^"+e.source+"$");throw Br("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}(e))})),t}function Yr(){this.SCE_CONTEXTS=Hr;var t=["self"],n=[];this.resourceUrlWhitelist=function(e){return arguments.length&&(t=Wr(e)),t},this.resourceUrlBlacklist=function(e){return arguments.length&&(n=Wr(e)),n},this.$get=["$injector","$$sanitizeUri",function(r,i){var o=function(e){throw Br("unsafe","Attempting to use an unsafe value in a safe context.")};function a(t,n){return"self"===t?ui(n,oi)||function(t){return ui(t,function(){if(e.document.baseURI)return e.document.baseURI;ri||((ri=e.document.createElement("a")).href=".",ri=ri.cloneNode(!1));return ri.href}())}(n):!!t.exec(n.href)}function s(e){var t=function(e){this.$$unwrapTrustedValue=function(){return e}};return e&&(t.prototype=new e),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}r.has("$sanitize")&&(o=r.get("$sanitize"));var u=s(),c={};return c[Hr.HTML]=s(u),c[Hr.CSS]=s(u),c[Hr.MEDIA_URL]=s(u),c[Hr.URL]=s(c[Hr.MEDIA_URL]),c[Hr.JS]=s(u),c[Hr.RESOURCE_URL]=s(c[Hr.URL]),{trustAs:function(e,t){var n=c.hasOwnProperty(e)?c[e]:null;if(!n)throw Br("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||R(t)||""===t)return t;if("string"!=typeof t)throw Br("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new n(t)},getTrusted:function(e,r){if(null===r||R(r)||""===r)return r;var s=c.hasOwnProperty(e)?c[e]:null;if(s&&r instanceof s)return r.$$unwrapTrustedValue();if(z(r.$$unwrapTrustedValue)&&(r=r.$$unwrapTrustedValue()),e===Hr.MEDIA_URL||e===Hr.URL)return i(r.toString(),e===Hr.MEDIA_URL);if(e===Hr.RESOURCE_URL){if(function(e){var r,i,o=si(e.toString()),s=!1;for(r=0,i=t.length;r<i;r++)if(a(t[r],o)){s=!0;break}if(s)for(r=0,i=n.length;r<i;r++)if(a(n[r],o)){s=!1;break}return s}(r))return r;throw Br("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",r.toString())}if(e===Hr.HTML)return o(r);throw Br("unsafe","Attempting to use an unsafe value in a safe context.")},valueOf:function(e){return e instanceof u?e.$$unwrapTrustedValue():e}}}]}function Gr(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(t,n){if(e&&o<8)throw Br("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode. You can fix this by adding the text <!doctype html> to the top of your HTML document. See http://docs.angularjs.org/api/ng.$sce for more information.");var r=Ue(Hr);r.isEnabled=function(){return e},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,e||(r.trustAs=r.getTrusted=function(e,t){return t},r.valueOf=P),r.parseAs=function(e,n){var i=t(n);return i.literal&&i.constant?i:t(n,(function(t){return r.getTrusted(e,t)}))};var i=r.parseAs,a=r.getTrusted,s=r.trustAs;return $(Hr,(function(e,t){var n=f(t);r[zr("parse_as_"+n)]=function(t){return i(e,t)},r[zr("get_trusted_"+n)]=function(t){return a(e,t)},r[zr("trust_as_"+n)]=function(t){return s(e,t)}})),r}]}function Xr(){this.$get=["$window","$document",function(e,t){var n={},r=!(!(e.nw&&e.nw.process)&&e.chrome&&(e.chrome.app&&e.chrome.app.runtime||!e.chrome.app&&e.chrome.runtime&&e.chrome.runtime.id))&&e.history&&e.history.pushState,i=T((/android (\d+)/.exec(f((e.navigator||{}).userAgent))||[])[1]),a=/Boxee/i.test((e.navigator||{}).userAgent),s=t[0]||{},u=s.body&&s.body.style,c=!1,l=!1;return u&&(c=!(!("transition"in u)&&!("webkitTransition"in u)),l=!(!("animation"in u)&&!("webkitAnimation"in u))),{history:!(!r||i<4||a),hasEvent:function(e){if("input"===e&&o)return!1;if(R(n[e])){var t=s.createElement("div");n[e]="on"+e in t}return n[e]},csp:se(),transitions:c,animations:l,android:i}}]}function Kr(){this.$get=M((function(e){return new Jr(e)}))}function Jr(e){var t={},n=[],r=this.ALL_TASKS_TYPE="$$all$$",i=this.DEFAULT_TASK_TYPE="$$default$$";function o(){var e=n.pop();return e&&e.cb}function a(e){for(var t=n.length-1;t>=0;--t){var r=n[t];if(r.type===e)return n.splice(t,1),r.cb}}this.completeTask=function(n,s){s=s||i;try{n()}finally{!function(e){t[e=e||i]&&(t[e]--,t[r]--)}(s);var u=t[s],c=t[r];if(!c||!u)for(var l,f=c?a:o;l=f(s);)try{l()}catch(t){e.error(t)}}},this.incTaskCount=function(e){t[e=e||i]=(t[e]||0)+1,t[r]=(t[r]||0)+1},this.notifyWhenNoPendingTasks=function(e,i){t[i=i||r]?n.push({type:i,cb:e}):e()}}var Zr=i("$templateRequest");function Qr(){var e;this.httpOptions=function(t){return t?(e=t,this):e},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(t,n,r,i,o){function a(s,u){a.totalPendingRequests++,U(s)&&!R(n.get(s))||(s=o.getTrustedResourceUrl(s));var c=r.defaults&&r.defaults.transformResponse;return V(c)?c=c.filter((function(e){return e!==Rn})):c===Rn&&(c=null),r.get(s,C({cache:n,transformResponse:c},e)).finally((function(){a.totalPendingRequests--})).then((function(e){return n.put(s,e.data)}),(function handleError(e){u||(e=Zr("tpload","Failed to load template: {0} (HTTP status: {1} {2})",s,e.status,e.statusText),t(e));return i.reject(e)}))}return a.totalPendingRequests=0,a}]}function ei(){this.$get=["$rootScope","$browser","$location",function(e,t,n){var r={findBindings:function(e,t,n){var r=e.getElementsByClassName("ng-binding"),i=[];return $(r,(function(e){var r=b.element(e).data("$binding");r&&$(r,(function(r){n?new RegExp("(^|\\s)"+Q(t)+"(\\s|\\||$)").test(r)&&i.push(e):-1!==r.indexOf(t)&&i.push(e)}))})),i},findModels:function(e,t,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o="["+r[i]+"model"+(n?"=":"*=")+'"'+t+'"]',a=e.querySelectorAll(o);if(a.length)return a}},getLocation:function(){return n.url()},setLocation:function(t){t!==n.url()&&(n.url(t),e.$digest())},whenStable:function(e){t.notifyWhenNoOutstandingRequests(e)}};return r}]}var ti=i("$timeout");function ni(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(e,t,n,r,i){var o={};function a(a,s,u){z(a)||(u=s,s=a,a=I);var c,l=le(arguments,3),f=F(u)&&!u,d=(f?r:n).defer(),p=d.promise;return c=t.defer((function(){try{d.resolve(a.apply(null,l))}catch(e){d.reject(e),i(e)}finally{delete o[p.$$timeoutId]}f||e.$apply()}),s,"$timeout"),p.$$timeoutId=c,o[c]=d,p}return a.cancel=function(e){if(!e)return!1;if(!e.hasOwnProperty("$$timeoutId"))throw ti("badprom","`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.");if(!o.hasOwnProperty(e.$$timeoutId))return!1;var n=e.$$timeoutId,r=o[n];return Fr(r.promise),r.reject("canceled"),delete o[n],t.defer.cancel(n)},a}]}var ri,ii=e.document.createElement("a"),oi=si(e.location.href);ii.href="http://[::1]";var ai="[::1]"===ii.hostname;function si(e){if(!U(e))return e;var t=e;o&&(ii.setAttribute("href",t),t=ii.href),ii.setAttribute("href",t);var n=ii.hostname;return!ai&&n.indexOf(":")>-1&&(n="["+n+"]"),{href:ii.href,protocol:ii.protocol?ii.protocol.replace(/:$/,""):"",host:ii.host,search:ii.search?ii.search.replace(/^\?/,""):"",hash:ii.hash?ii.hash.replace(/^#/,""):"",hostname:n,port:ii.port,pathname:"/"===ii.pathname.charAt(0)?ii.pathname:"/"+ii.pathname}}function ui(e,t){return e=si(e),t=si(t),e.protocol===t.protocol&&e.host===t.host}function ci(){this.$get=M(e)}function li(e){var t=e[0]||{},n={},r="";function i(e){try{return decodeURIComponent(e)}catch(t){return e}}return function(){var e,o,a,s,u,c=function(e){try{return e.cookie||""}catch(e){return""}}(t);if(c!==r)for(e=(r=c).split("; "),n={},a=0;a<e.length;a++)(s=(o=e[a]).indexOf("="))>0&&(u=i(o.substring(0,s)),R(n[u])&&(n[u]=i(o.substring(s+1))));return n}}function fi(){this.$get=li}function di(e){function t(n,r){if(N(n)){var i={};return $(n,(function(e,n){i[n]=t(n,e)})),i}return e.factory(n+"Filter",r)}this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+"Filter")}}],t("currency",mi),t("date",Ci),t("filter",pi),t("json",Oi),t("limitTo",Ai),t("lowercase",Ti),t("number",vi),t("orderBy",Pi),t("uppercase",Di)}function pi(){return function(e,t,n,r){if(!w(e)){if(null==e)return e;throw i("filter")("notarray","Expected array but received: {0}",e)}var o,a;switch(r=r||"$",gi(t)){case"function":o=t;break;case"boolean":case"null":case"number":case"string":a=!0;case"object":o=function(e,t,n,r){var i=N(e)&&n in e;!0===t?t=ae:z(t)||(t=function(e,t){return!R(e)&&(null===e||null===t?e===t:!(N(t)||N(e)&&!j(e))&&(e=f(""+e),t=f(""+t),-1!==e.indexOf(t)))});return function(o){return i&&!N(o)?hi(o,e[n],t,n,!1):hi(o,e,t,n,r)}}(t,n,r,a);break;default:return e}return Array.prototype.filter.call(e,o)}}function hi(e,t,n,r,i,o){var a=gi(e),s=gi(t);if("string"===s&&"!"===t.charAt(0))return!hi(e,t.substring(1),n,r,i);if(V(e))return e.some((function(e){return hi(e,t,n,r,i)}));switch(a){case"object":var u;if(i){for(u in e)if(u.charAt&&"$"!==u.charAt(0)&&hi(e[u],t,n,r,!0))return!0;return!o&&hi(e,t,n,r,!1)}if("object"===s){for(u in t){var c=t[u];if(!z(c)&&!R(c)){var l=u===r;if(!hi(l?e:e[u],c,n,r,l,l))return!1}}return!0}return n(e,t);case"function":return!1;default:return n(e,t)}}function gi(e){return null===e?"null":typeof e}li.$inject=["$document"],di.$inject=["$provide"];function mi(e){var t=e.NUMBER_FORMATS;return function(e,n,r){R(n)&&(n=t.CURRENCY_SYM),R(r)&&(r=t.PATTERNS[1].maxFrac);var i=n?/\u00A4/g:/\s*\u00A4\s*/g;return null==e?e:yi(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(i,n)}}function vi(e){var t=e.NUMBER_FORMATS;return function(e,n){return null==e?e:yi(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function yi(e,t,n,r,i){if(!U(e)&&!B(e)||isNaN(e))return"";var o,a=!isFinite(e),s=!1,u=Math.abs(e)+"",c="";if(a)c="∞";else{(function(e,t,n,r){var i=e.d,o=i.length-e.i,a=(t=R(t)?Math.min(Math.max(n,o),r):+t)+e.i,s=i[a];if(a>0){i.splice(Math.max(e.i,a));for(var u=a;u<i.length;u++)i[u]=0}else{o=Math.max(0,o),e.i=1,i.length=Math.max(1,a=t+1),i[0]=0;for(var c=1;c<a;c++)i[c]=0}if(s>=5)if(a-1<0){for(var l=0;l>a;l--)i.unshift(0),e.i++;i.unshift(1),e.i++}else i[a-1]++;for(;o<Math.max(0,t);o++)i.push(0);var f=i.reduceRight((function(e,t,n,r){return t+=e,r[n]=t%10,Math.floor(t/10)}),0);f&&(i.unshift(f),e.i++)})(o=function(e){var t,n,r,i,o,a=0;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;"0"===e.charAt(r);r++);if(r===(o=e.length))t=[0],n=1;else{for(o--;"0"===e.charAt(o);)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=+e.charAt(r)}return n>22&&(t=t.splice(0,21),a=n-1,n=1),{d:t,e:a,i:n}}(u),i,t.minFrac,t.maxFrac);var l=o.d,f=o.i,d=o.e,p=[];for(s=l.reduce((function(e,t){return e&&!t}),!0);f<0;)l.unshift(0),f++;f>0?p=l.splice(f,l.length):(p=l,l=[0]);var h=[];for(l.length>=t.lgSize&&h.unshift(l.splice(-t.lgSize,l.length).join(""));l.length>t.gSize;)h.unshift(l.splice(-t.gSize,l.length).join(""));l.length&&h.unshift(l.join("")),c=h.join(n),p.length&&(c+=r+p.join("")),d&&(c+="e+"+d)}return e<0&&!s?t.negPre+c+t.negSuf:t.posPre+c+t.posSuf}function bi(e,t,n,r){var i="";for((e<0||r&&e<=0)&&(r?e=1-e:(e=-e,i="-")),e=""+e;e.length<t;)e="0"+e;return n&&(e=e.substr(e.length-t)),i+e}function _i(e,t,n,r,i){return n=n||0,function(o){var a=o["get"+e]();return(n>0||a>-n)&&(a+=n),0===a&&-12===n&&(a=12),bi(a,t,r,i)}}function wi(e,t,n){return function(r,i){var o=r["get"+e]();return i[d((n?"STANDALONE":"")+(t?"SHORT":"")+e)][o]}}function $i(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}function xi(e){return function(t){var n,r=$i(t.getFullYear()),i=+(n=t,new Date(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay())))-+r;return bi(1+Math.round(i/6048e5),e)}}function qi(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}mi.$inject=["$locale"],vi.$inject=["$locale"];var Si={yyyy:_i("FullYear",4,0,!1,!0),yy:_i("FullYear",2,0,!0,!0),y:_i("FullYear",1,0,!1,!0),MMMM:wi("Month"),MMM:wi("Month",!0),MM:_i("Month",2,1),M:_i("Month",1,1),LLLL:wi("Month",!1,!0),dd:_i("Date",2),d:_i("Date",1),HH:_i("Hours",2),H:_i("Hours",1),hh:_i("Hours",2,-12),h:_i("Hours",1,-12),mm:_i("Minutes",2),m:_i("Minutes",1),ss:_i("Seconds",2),s:_i("Seconds",1),sss:_i("Milliseconds",3),EEEE:wi("Day"),EEE:wi("Day",!0),a:function(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]},Z:function(e,t,n){var r=-1*n,i=r>=0?"+":"";return i+=bi(Math[r>0?"floor":"ceil"](r/60),2)+bi(Math.abs(r%60),2)},ww:xi(2),w:xi(1),G:qi,GG:qi,GGG:qi,GGGG:function(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}},Ei=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,ki=/^-?\d+$/;function Ci(e){var t=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,r,i){var o,a,s="",u=[];if(r=r||"mediumDate",r=e.DATETIME_FORMATS[r]||r,U(n)&&(n=ki.test(n)?T(n):function(e){var n;if(n=e.match(t)){var r=new Date(0),i=0,o=0,a=n[8]?r.setUTCFullYear:r.setFullYear,s=n[8]?r.setUTCHours:r.setHours;n[9]&&(i=T(n[9]+n[10]),o=T(n[9]+n[11])),a.call(r,T(n[1]),T(n[2])-1,T(n[3]));var u=T(n[4]||0)-i,c=T(n[5]||0)-o,l=T(n[6]||0),f=Math.round(1e3*parseFloat("0."+(n[7]||0)));return s.call(r,u,c,l,f),r}return e}(n)),B(n)&&(n=new Date(n)),!H(n)||!isFinite(n.getTime()))return n;for(;r;)(a=Ei.exec(r))?r=(u=ce(u,a,1)).pop():(u.push(r),r=null);var c=n.getTimezoneOffset();return i&&(c=me(i,c),n=ye(n,i,!0)),$(u,(function(t){s+=(o=Si[t])?o(n,e.DATETIME_FORMATS,c):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),s}}function Oi(){return function(e,t){return R(t)&&(t=2),pe(e,t)}}Ci.$inject=["$locale"];var Ti=M(f),Di=M(d);function Ai(){return function(e,t,n){return t=Math.abs(Number(t))===1/0?Number(t):T(t),D(t)?e:(B(e)&&(e=e.toString()),w(e)?(n=(n=!n||isNaN(n)?0:T(n))<0?Math.max(0,e.length+n):n,t>=0?Ii(e,n,n+t):0===n?Ii(e,t,e.length):Ii(e,Math.max(0,n+t),n)):e)}}function Ii(e,t,n){return U(e)?e.slice(t,n):p.call(e,t,n)}function Pi(e){return function(r,o,a,s){if(null==r)return r;if(!w(r))throw i("orderBy")("notarray","Expected array but received: {0}",r);V(o)||(o=[o]),0===o.length&&(o=["+"]);var u=o.map((function(t){var n=1,r=P;if(z(t))r=t;else if(U(t)&&("+"!==t.charAt(0)&&"-"!==t.charAt(0)||(n="-"===t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(r=e(t)).constant)){var i=r();r=function(e){return e[i]}}return{get:r,descending:n}})),c=a?-1:1,l=z(s)?s:n,f=Array.prototype.map.call(r,(function(e,n){return{value:e,tieBreaker:{value:n,type:"number",index:n},predicateValues:u.map((function(r){return function(e,n){var r=typeof e;null===e?r="null":"object"===r&&(e=function(e){if(z(e.valueOf)&&t(e=e.valueOf()))return e;if(j(e)&&t(e=e.toString()))return e;return e}(e));return{value:e,type:r,index:n}}(r.get(e),n)}))}}));return f.sort((function(e,t){for(var r=0,i=u.length;r<i;r++){var o=l(e.predicateValues[r],t.predicateValues[r]);if(o)return o*u[r].descending*c}return(l(e.tieBreaker,t.tieBreaker)||n(e.tieBreaker,t.tieBreaker))*c})),r=f.map((function(e){return e.value}))};function t(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function n(e,t){var n=0,r=e.type,i=t.type;if(r===i){var o=e.value,a=t.value;"string"===r?(o=o.toLowerCase(),a=a.toLowerCase()):"object"===r&&(N(o)&&(o=e.index),N(a)&&(a=t.index)),o!==a&&(n=o<a?-1:1)}else n="undefined"===r?1:"undefined"===i?-1:"null"===r?1:"null"===i||r<i?-1:1;return n}}function Mi(e){return z(e)&&(e={link:e}),e.restrict=e.restrict||"AC",M(e)}Pi.$inject=["$parse"];var ji=M({restrict:"E",compile:function(e,t){if(!t.href&&!t.xlinkHref)return function(e,t){if("a"===t[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===m.call(t.prop("href"))?"xlink:href":"href";t.on("click",(function(e){t.attr(n)||e.preventDefault()}))}}}}),Ri={};$(Tt,(function(e,t){if("multiple"!==e){var n=yn("ng-"+t),r=i;"checked"===e&&(r=function(e,t,r){r.ngModel!==r[n]&&i(e,0,r)}),Ri[n]=function(){return{restrict:"A",priority:100,link:r}}}function i(e,r,i){e.$watch(i[n],(function(e){i.$set(t,!!e)}))}})),$(At,(function(e,t){Ri[t]=function(){return{priority:100,link:function(e,n,r){if("ngPattern"===t&&"/"===r.ngPattern.charAt(0)){var i=r.ngPattern.match(c);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}e.$watch(r[t],(function(e){r.$set(t,e)}))}}}})),$(["src","srcset","href"],(function(e){var t=yn("ng-"+e);Ri[t]=["$sce",function(n){return{priority:99,link:function(r,i,a){var s=e,u=e;"href"===e&&"[object SVGAnimatedString]"===m.call(i.prop("href"))&&(u="xlinkHref",a.$attr[u]="xlink:href",s=null),a.$set(t,n.getTrustedMediaUrl(a[t])),a.$observe(t,(function(t){t?(a.$set(u,t),o&&s&&i.prop(s,a[u])):"href"===e&&a.$set(u,null)}))}}}]}));var Fi={$addControl:I,$getControls:M([]),$$renameControl:function(e,t){e.$name=t},$removeControl:I,$setValidity:I,$setDirty:I,$setPristine:I,$setSubmitted:I,$$setSubmitted:I};function Ni(e,t,n,r,i){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=i(t.name||t.ngForm||"")(n),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.$$parentForm=Fi,this.$$element=e,this.$$animate=r,Hi(this)}Ni.$inject=["$element","$attrs","$scope","$animate","$interpolate"],Ni.prototype={$rollbackViewValue:function(){$(this.$$controls,(function(e){e.$rollbackViewValue()}))},$commitViewValue:function(){$(this.$$controls,(function(e){e.$commitViewValue()}))},$addControl:function(e){je(e.$name,"input"),this.$$controls.push(e),e.$name&&(this[e.$name]=e),e.$$parentForm=this},$getControls:function(){return Ue(this.$$controls)},$$renameControl:function(e,t){var n=e.$name;this[n]===e&&delete this[n],this[t]=e,e.$name=t},$removeControl:function(e){e.$name&&this[e.$name]===e&&delete this[e.$name],$(this.$pending,(function(t,n){this.$setValidity(n,null,e)}),this),$(this.$error,(function(t,n){this.$setValidity(n,null,e)}),this),$(this.$$success,(function(t,n){this.$setValidity(n,null,e)}),this),re(this.$$controls,e),e.$$parentForm=Fi},$setDirty:function(){this.$$animate.removeClass(this.$$element,No),this.$$animate.addClass(this.$$element,Lo),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,No,Lo+" ng-submitted"),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,$(this.$$controls,(function(e){e.$setPristine()}))},$setUntouched:function(){$(this.$$controls,(function(e){e.$setUntouched()}))},$setSubmitted:function(){for(var e=this;e.$$parentForm&&e.$$parentForm!==Fi;)e=e.$$parentForm;e.$$setSubmitted()},$$setSubmitted:function(){this.$$animate.addClass(this.$$element,"ng-submitted"),this.$submitted=!0,$(this.$$controls,(function(e){e.$$setSubmitted&&e.$$setSubmitted()}))}},Vi({clazz:Ni,set:function(e,t,n){var r=e[t];r?-1===r.indexOf(n)&&r.push(n):e[t]=[n]},unset:function(e,t,n){var r=e[t];r&&(re(r,n),0===r.length&&delete e[t])}});var Li=function(e){return["$timeout","$parse",function(t,n){return{name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:Ni,compile:function(n,i){n.addClass(No).addClass(Ro);var o=i.name?"name":!(!e||!i.ngForm)&&"ngForm";return{pre:function(e,n,i,a){var s=a[0];if(!("action"in i)){var u=function(t){e.$apply((function(){s.$commitViewValue(),s.$setSubmitted()})),t.preventDefault()};n[0].addEventListener("submit",u),n.on("$destroy",(function(){t((function(){n[0].removeEventListener("submit",u)}),0,!1)}))}(a[1]||s.$$parentForm).$addControl(s);var c=o?r(s.$name):I;o&&(c(e,s),i.$observe(o,(function(t){s.$name!==t&&(c(e,void 0),s.$$parentForm.$$renameControl(s,t),(c=r(s.$name))(e,s))}))),n.on("$destroy",(function(){s.$$parentForm.$removeControl(s),c(e,void 0),C(s,Fi)}))}}}};function r(e){return""===e?n('this[""]').assign:n(e).assign||I}}]},Ui=Li(),Bi=Li(!0);function Hi(e){e.$$classCache={},e.$$classCache[Fo]=!(e.$$classCache[Ro]=e.$$element.hasClass(Ro))}function Vi(e){var t=e.clazz,n=e.set,r=e.unset;function i(e,t,n){n&&!e.$$classCache[t]?(e.$$animate.addClass(e.$$element,t),e.$$classCache[t]=!0):!n&&e.$$classCache[t]&&(e.$$animate.removeClass(e.$$element,t),e.$$classCache[t]=!1)}function o(e,t,n){t=t?"-"+De(t,"-"):"",i(e,Ro+t,!0===n),i(e,Fo+t,!1===n)}t.prototype.$setValidity=function(e,t,a){var s;R(t)?function(e,t,r,i){e[t]||(e[t]={});n(e[t],r,i)}(this,"$pending",e,a):function(e,t,n,i){e[t]&&r(e[t],n,i);zi(e[t])&&(e[t]=void 0)}(this,"$pending",e,a),X(t)?t?(r(this.$error,e,a),n(this.$$success,e,a)):(n(this.$error,e,a),r(this.$$success,e,a)):(r(this.$error,e,a),r(this.$$success,e,a)),this.$pending?(i(this,"ng-pending",!0),this.$valid=this.$invalid=void 0,o(this,"",null)):(i(this,"ng-pending",!1),this.$valid=zi(this.$error),this.$invalid=!this.$valid,o(this,"",this.$valid)),o(this,e,s=this.$pending&&this.$pending[e]?void 0:!this.$error[e]&&(!!this.$$success[e]||null)),this.$$parentForm.$setValidity(e,s,this)}}function zi(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}var Wi=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Yi=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Gi=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,Xi=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Ki=/^(\d{4,})-(\d{2})-(\d{2})$/,Ji=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Zi=/^(\d{4,})-W(\d\d)$/,Qi=/^(\d{4,})-(\d\d)$/,eo=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,to=Fe();$("date,datetime-local,month,time,week".split(","),(function(e){to[e]=!0}));var no={text:function(e,t,n,r,i,o){io(e,t,n,r,i,o),ro(r)},date:ao("date",Ki,oo(Ki,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":ao("datetimelocal",Ji,oo(Ji,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:ao("time",eo,oo(eo,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:ao("week",Zi,(function(e,t){if(H(e))return e;if(U(e)){Zi.lastIndex=0;var n=Zi.exec(e);if(n){var r=+n[1],i=+n[2],o=0,a=0,s=0,u=0,c=$i(r),l=7*(i-1);return t&&(o=t.getHours(),a=t.getMinutes(),s=t.getSeconds(),u=t.getMilliseconds()),new Date(r,0,c.getDate()+l,o,a,s,u)}}return NaN}),"yyyy-Www"),month:ao("month",Qi,oo(Qi,["yyyy","MM"]),"yyyy-MM"),number:function(e,t,n,r,i,o,a,s){var u;if(so(e,t,n,r,"number"),uo(r),io(e,t,n,r,i,o),F(n.min)||n.ngMin){var c=n.min||s(n.ngMin)(e);u=co(c),r.$validators.min=function(e,t){return r.$isEmpty(t)||R(u)||t>=u},n.$observe("min",(function(e){e!==c&&(u=co(e),c=e,r.$validate())}))}if(F(n.max)||n.ngMax){var l=n.max||s(n.ngMax)(e),f=co(l);r.$validators.max=function(e,t){return r.$isEmpty(t)||R(f)||t<=f},n.$observe("max",(function(e){e!==l&&(f=co(e),l=e,r.$validate())}))}if(F(n.step)||n.ngStep){var d=n.step||s(n.ngStep)(e),p=co(d);r.$validators.step=function(e,t){return r.$isEmpty(t)||R(p)||po(t,u||0,p)},n.$observe("step",(function(e){e!==d&&(p=co(e),d=e,r.$validate())}))}},url:function(e,t,n,r,i,o){io(e,t,n,r,i,o),ro(r),r.$validators.url=function(e,t){var n=e||t;return r.$isEmpty(n)||Yi.test(n)}},email:function(e,t,n,r,i,o){io(e,t,n,r,i,o),ro(r),r.$validators.email=function(e,t){var n=e||t;return r.$isEmpty(n)||Gi.test(n)}},radio:function(e,t,n,r){var i=!n.ngTrim||"false"!==Z(n.ngTrim);R(n.name)&&t.attr("name",S());t.on("change",(function(e){var o;t[0].checked&&(o=n.value,i&&(o=Z(o)),r.$setViewValue(o,e&&e.type))})),r.$render=function(){var e=n.value;i&&(e=Z(e)),t[0].checked=e===r.$viewValue},n.$observe("value",r.$render)},range:function(e,t,n,r,i,o){so(e,t,n,r,"range"),uo(r),io(e,t,n,r,i,o);var a=r.$$hasNativeValidators&&"range"===t[0].type,s=a?0:void 0,u=a?100:void 0,c=a?1:void 0,l=t[0].validity,f=F(n.min),d=F(n.max),p=F(n.step),h=r.$render;r.$render=a&&F(l.rangeUnderflow)&&F(l.rangeOverflow)?function(){h(),r.$setViewValue(t.val())}:h,f&&(s=co(n.min),r.$validators.min=a?function(){return!0}:function(e,t){return r.$isEmpty(t)||R(s)||t>=s},g("min",(function(e){if(s=co(e),D(r.$modelValue))return;if(a){var n=t.val();s>n&&(n=s,t.val(n)),r.$setViewValue(n)}else r.$validate()})));d&&(u=co(n.max),r.$validators.max=a?function(){return!0}:function(e,t){return r.$isEmpty(t)||R(u)||t<=u},g("max",(function(e){if(u=co(e),D(r.$modelValue))return;if(a){var n=t.val();u<n&&(t.val(u),n=u<s?s:u),r.$setViewValue(n)}else r.$validate()})));p&&(c=co(n.step),r.$validators.step=a?function(){return!l.stepMismatch}:function(e,t){return r.$isEmpty(t)||R(c)||po(t,s||0,c)},g("step",(function(e){if(c=co(e),D(r.$modelValue))return;a?r.$viewValue!==t.val()&&r.$setViewValue(t.val()):r.$validate()})));function g(e,r){t.attr(e,n[e]);var i=n[e];n.$observe(e,(function(e){e!==i&&(i=e,r(e))}))}},checkbox:function(e,t,n,r,i,o,a,s){var u=ho(s,e,"ngTrueValue",n.ngTrueValue,!0),c=ho(s,e,"ngFalseValue",n.ngFalseValue,!1);t.on("change",(function(e){r.$setViewValue(t[0].checked,e&&e.type)})),r.$render=function(){t[0].checked=r.$viewValue},r.$isEmpty=function(e){return!1===e},r.$formatters.push((function(e){return ae(e,u)})),r.$parsers.push((function(e){return e?u:c}))},hidden:I,button:I,submit:I,reset:I,file:I};function ro(e){e.$formatters.push((function(t){return e.$isEmpty(t)?t:t.toString()}))}function io(e,t,n,r,i,o){var a,s=f(t[0].type);if(!i.android){var u=!1;t.on("compositionstart",(function(){u=!0})),t.on("compositionupdate",(function(e){(R(e.data)||""===e.data)&&(u=!1)})),t.on("compositionend",(function(){u=!1,c()}))}var c=function(e){if(a&&(o.defer.cancel(a),a=null),!u){var i=t.val(),c=e&&e.type;"password"===s||n.ngTrim&&"false"===n.ngTrim||(i=Z(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,c)}};if(i.hasEvent("input"))t.on("input",c);else{var l=function(e,t,n){a||(a=o.defer((function(){a=null,t&&t.value===n||c(e)})))};t.on("keydown",(function(e){var t=e.keyCode;91===t||15<t&&t<19||37<=t&&t<=40||l(e,this,this.value)})),i.hasEvent("paste")&&t.on("paste cut drop",l)}t.on("change",c),to[s]&&r.$$hasNativeValidators&&s===n.type&&t.on("keydown wheel mousedown",(function(e){if(!a){var t=this.validity,n=t.badInput,r=t.typeMismatch;a=o.defer((function(){a=null,t.badInput===n&&t.typeMismatch===r||c(e)}))}})),r.$render=function(){var e=r.$isEmpty(r.$viewValue)?"":r.$viewValue;t.val()!==e&&t.val(e)}}function oo(e,t){return function(n,r){var i,o;if(H(n))return n;if(U(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Wi.test(n))return new Date(n);if(e.lastIndex=0,i=e.exec(n)){i.shift(),o=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},$(i,(function(e,n){n<t.length&&(o[t[n]]=+e)}));var a=new Date(o.yyyy,o.MM-1,o.dd,o.HH,o.mm,o.ss||0,1e3*o.sss||0);return o.yyyy<100&&a.setFullYear(o.yyyy),a}}return NaN}}function ao(e,t,n,r){return function(i,o,a,s,u,c,l,f){so(i,o,a,s,e),io(0,o,a,s,u,c);var d,p,h="time"===e||"datetimelocal"===e;if(s.$parsers.push((function(n){return s.$isEmpty(n)?null:t.test(n)?w(n,d):void(s.$$parserName=e)})),s.$formatters.push((function(e){if(e&&!H(e))throw Uo("datefmt","Expected `{0}` to be a date",e);if(b(e)){d=e;var t=s.$options.getOption("timezone");return t&&(p=t,d=ye(d,t,!0)),function(e,t){var n=r;h&&U(s.$options.getOption("timeSecondsFormat"))&&(n=r.replace("ss.sss",s.$options.getOption("timeSecondsFormat")).replace(/:$/,""));var i=l("date")(e,n,t);h&&s.$options.getOption("timeStripZeroSeconds")&&(i=i.replace(/(?::00)?(?:\.000)?$/,""));return i}(e,t)}return d=null,p=null,""})),F(a.min)||a.ngMin){var g=a.min||f(a.ngMin)(i),m=_(g);s.$validators.min=function(e){return!b(e)||R(m)||n(e)>=m},a.$observe("min",(function(e){e!==g&&(m=_(e),g=e,s.$validate())}))}if(F(a.max)||a.ngMax){var v=a.max||f(a.ngMax)(i),y=_(v);s.$validators.max=function(e){return!b(e)||R(y)||n(e)<=y},a.$observe("max",(function(e){e!==v&&(y=_(e),v=e,s.$validate())}))}function b(e){return e&&!(e.getTime&&e.getTime()!=e.getTime())}function _(e){return F(e)&&!H(e)?w(e)||void 0:e}function w(e,t){var r=s.$options.getOption("timezone");p&&p!==r&&(t=ve(t,me(p)));var i=n(e,t);return!isNaN(i)&&r&&(i=ye(i,r)),i}}}function so(e,t,n,r,i){var o=t[0];(r.$$hasNativeValidators=N(o.validity))&&r.$parsers.push((function(e){var n=t.prop("validity")||{};if(!n.badInput&&!n.typeMismatch)return e;r.$$parserName=i}))}function uo(e){e.$parsers.push((function(t){return e.$isEmpty(t)?null:Xi.test(t)?parseFloat(t):void(e.$$parserName="number")})),e.$formatters.push((function(t){if(!e.$isEmpty(t)){if(!B(t))throw Uo("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t}))}function co(e){return F(e)&&!B(e)&&(e=parseFloat(e)),D(e)?void 0:e}function lo(e){return(0|e)===e}function fo(e){var t=e.toString(),n=t.indexOf(".");if(-1===n){if(-1<e&&e<1){var r=/e-(\d+)$/.exec(t);if(r)return Number(r[1])}return 0}return t.length-n-1}function po(e,t,n){var r=Number(e),i=!lo(r),o=!lo(t),a=!lo(n);if(i||o||a){var s=i?fo(r):0,u=o?fo(t):0,c=a?fo(n):0,l=Math.max(s,u,c),f=Math.pow(10,l);r*=f,t*=f,n*=f,i&&(r=Math.round(r)),o&&(t=Math.round(t)),a&&(n=Math.round(n))}return(r-t)%n==0}function ho(e,t,n,r,i){var o;if(F(r)){if(!(o=e(r)).constant)throw Uo("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(t)}return i}var go=["$browser","$sniffer","$filter","$parse",function(e,t,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,a,s){s[0]&&(no[f(a.type)]||no.text)(i,o,a,s[0],t,e,n,r)}}}}],mo=function(){var e={configurable:!0,enumerable:!1,get:function(){return this.getAttribute("value")||""},set:function(e){this.setAttribute("value",e)}};return{restrict:"E",priority:200,compile:function(t,n){if("hidden"===f(n.type))return{pre:function(t,n,r,i){var o=n[0];o.parentNode&&o.parentNode.insertBefore(o,o.nextSibling),Object.defineProperty&&Object.defineProperty(o,"value",e)}}}}},vo=/^(true|false|\d+)$/,yo=function(){function e(e,t,n){var r=F(n)?n:9===o?"":null;e.prop("value",r),t.$set("value",n)}return{restrict:"A",priority:100,compile:function(t,n){return vo.test(n.ngValue)?function(t,n,r){e(n,r,t.$eval(r.ngValue))}:function(t,n,r){t.$watch(r.ngValue,(function(t){e(n,r,t)}))}}}},bo=["$compile",function(e){return{restrict:"AC",compile:function(t){return e.$$addBindingClass(t),function(t,n,r){e.$$addBindingInfo(n,r.ngBind),n=n[0],t.$watch(r.ngBind,(function(e){n.textContent=Ne(e)}))}}}}],_o=["$interpolate","$compile",function(e,t){return{compile:function(n){return t.$$addBindingClass(n),function(n,r,i){var o=e(r.attr(i.$attr.ngBindTemplate));t.$$addBindingInfo(r,o.expressions),r=r[0],i.$observe("ngBindTemplate",(function(e){r.textContent=R(e)?"":e}))}}}}],wo=["$sce","$parse","$compile",function(e,t,n){return{restrict:"A",compile:function(r,i){var o=t(i.ngBindHtml),a=t(i.ngBindHtml,(function(t){return e.valueOf(t)}));return n.$$addBindingClass(r),function(t,r,i){n.$$addBindingInfo(r,i.ngBindHtml),t.$watch(a,(function(){var n=o(t);r.html(e.getTrustedHtml(n)||"")}))}}}}],$o=M({restrict:"A",require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push((function(){e.$eval(n.ngChange)}))}});function xo(e,t){var n;return e="ngClass"+e,["$parse",function(a){return{restrict:"AC",link:function(s,u,c){var l,f=u.data("$classCounts"),d=!0;function p(e,t){var n=[];return $(e,(function(e){(t>0||f[e])&&(f[e]=(f[e]||0)+t,f[e]===+(t>0)&&n.push(e))})),n.join(" ")}f||(f=Fe(),u.data("$classCounts",f)),"ngClass"!==e&&(n||(n=a("$index",(function(e){return 1&e}))),s.$watch(n,(function(e){e===t?(n=p(i(n=l),1),c.$addClass(n)):function(e){e=p(i(e),-1),c.$removeClass(e)}(l);var n;d=e}))),s.$watch(a(c[e],o),(function(e){d===t&&function(e,t){var n=i(e),o=i(t),a=r(n,o),s=r(o,n),u=p(a,-1),l=p(s,1);c.$addClass(l),c.$removeClass(u)}(l,e);l=e}))}}}];function r(e,t){if(!e||!e.length)return[];if(!t||!t.length)return e;var n=[];e:for(var r=0;r<e.length;r++){for(var i=e[r],o=0;o<t.length;o++)if(i===t[o])continue e;n.push(i)}return n}function i(e){return e&&e.split(" ")}function o(e){if(!e)return e;var t=e;return V(e)?t=e.map(o).join(" "):N(e)?t=Object.keys(e).filter((function(t){return e[t]})).join(" "):U(e)||(t=e+""),t}}var qo=xo("",!0),So=xo("Odd",0),Eo=xo("Even",1),ko=Mi({compile:function(e,t){t.$set("ngCloak",void 0),e.removeClass("ng-cloak")}}),Co=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Oo={},To={blur:!0,focus:!0};function Do(e,t,n,r,i,o){return{restrict:"A",compile:function(a,s){var u=e(s[r]);return function(e,r){r.on(i,(function(r){var i=function(){u(e,{$event:r})};if(t.$$phase)if(o)e.$evalAsync(i);else try{i()}catch(e){n(e)}else e.$apply(i)}))}}}}$("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),(function(e){var t=yn("ng-"+e);Oo[t]=["$parse","$rootScope","$exceptionHandler",function(n,r,i){return Do(n,r,i,t,e,To[e])}]}));var Ao=["$animate","$compile",function(e,t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,a){var s,u,c;n.$watch(i.ngIf,(function(n){n?u||a((function(n,o){u=o,n[n.length++]=t.$$createComment("end ngIf",i.ngIf),s={clone:n},e.enter(n,r.parent(),r)})):(c&&(c.remove(),c=null),u&&(u.$destroy(),u=null),s&&(c=Re(s.clone),e.leave(c).done((function(e){!1!==e&&(c=null)})),s=null))}))}}}],Io=["$templateRequest","$anchorScroll","$animate",function(e,t,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:b.noop,compile:function(r,i){var o=i.ngInclude||i.src,a=i.onload||"",s=i.autoscroll;return function(r,i,u,c,l){var f,d,p,h=0,g=function(){d&&(d.remove(),d=null),f&&(f.$destroy(),f=null),p&&(n.leave(p).done((function(e){!1!==e&&(d=null)})),d=p,p=null)};r.$watch(o,(function(o){var u=function(e){!1===e||!F(s)||s&&!r.$eval(s)||t()},d=++h;o?(e(o,!0).then((function(e){if(!r.$$destroyed&&d===h){var t=r.$new();c.template=e;var s=l(t,(function(e){g(),n.enter(e,null,i).done(u)}));p=s,(f=t).$emit("$includeContentLoaded",o),r.$eval(a)}}),(function(){r.$$destroyed||d===h&&(g(),r.$emit("$includeContentError",o))})),r.$emit("$includeContentRequested",o)):(g(),c.template=null)}))}}}}],Po=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){if(m.call(r[0]).match(/SVG/))return r.empty(),void t(ct(o.template,e.document).childNodes)(n,(function(e){r.append(e)}),{futureParentElement:r});r.html(o.template),t(r.contents())(n)}}}],Mo=Mi({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),jo=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,n,r){var i=n.ngList||", ",o="false"!==n.ngTrim,a=o?Z(i):i;r.$parsers.push((function(e){if(!R(e)){var t=[];return e&&$(e.split(a),(function(e){e&&t.push(o?Z(e):e)})),t}})),r.$formatters.push((function(e){if(V(e))return e.join(i)})),r.$isEmpty=function(e){return!e||!e.length}}}},Ro="ng-valid",Fo="ng-invalid",No="ng-pristine",Lo="ng-dirty",Uo=i("ngModel");function Bo(e,t,n,r,i,o,a,s,u){var c;this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=u(n.name||"",!1)(e),this.$$parentForm=Fi,this.$options=Ho,this.$$updateEvents="",this.$$updateEventHandler=this.$$updateEventHandler.bind(this),this.$$parsedNgModel=i(n.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$parserName="parse",this.$$currentValidationRunId=0,this.$$scope=e,this.$$rootScope=e.$root,this.$$attr=n,this.$$element=r,this.$$animate=o,this.$$timeout=a,this.$$parse=i,this.$$q=s,this.$$exceptionHandler=t,Hi(this),(c=this).$$scope.$watch((function(e){var t=c.$$ngModelGet(e);return t===c.$modelValue||c.$modelValue!=c.$modelValue&&t!=t||c.$$setModelValue(t),t}))}Bo.$inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"],Bo.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var e=this.$$parse(this.$$attr.ngModel+"()"),t=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(t){var n=this.$$parsedNgModel(t);return z(n)&&(n=e(t)),n},this.$$ngModelSet=function(e,n){z(this.$$parsedNgModel(e))?t(e,{$$$p:n}):this.$$parsedNgModelAssign(e,n)}}else if(!this.$$parsedNgModel.assign)throw Uo("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,be(this.$$element))},$render:I,$isEmpty:function(e){return R(e)||""===e||null===e||e!=e},$$updateEmptyClasses:function(e){this.$isEmpty(e)?(this.$$animate.removeClass(this.$$element,"ng-not-empty"),this.$$animate.addClass(this.$$element,"ng-empty")):(this.$$animate.removeClass(this.$$element,"ng-empty"),this.$$animate.addClass(this.$$element,"ng-not-empty"))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,Lo),this.$$animate.addClass(this.$$element,No)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,No),this.$$animate.addClass(this.$$element,Lo),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,"ng-untouched","ng-touched")},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,"ng-touched","ng-untouched")},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate:function(){if(!D(this.$modelValue)){var e=this.$$lastCommittedViewValue,t=this.$$rawModelValue,n=this.$valid,r=this.$modelValue,i=this.$options.getOption("allowInvalid"),o=this;this.$$runValidators(t,e,(function(e){i||n===e||(o.$modelValue=e?t:void 0,o.$modelValue!==r&&o.$$writeModelToScope())}))}},$$runValidators:function(e,t,n){this.$$currentValidationRunId++;var r,i,o=this.$$currentValidationRunId,a=this;(function(){var e=a.$$parserName;if(!R(a.$$parserValid))return a.$$parserValid||($(a.$validators,(function(e,t){s(t,null)})),$(a.$asyncValidators,(function(e,t){s(t,null)}))),s(e,a.$$parserValid),a.$$parserValid;s(e,null);return!0})()?!function(){var n=!0;if($(a.$validators,(function(r,i){var o=Boolean(r(e,t));n=n&&o,s(i,o)})),!n)return $(a.$asyncValidators,(function(e,t){s(t,null)})),!1;return!0}()?u(!1):(r=[],i=!0,$(a.$asyncValidators,(function(n,o){var a=n(e,t);if(!K(a))throw Uo("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",a);s(o,void 0),r.push(a.then((function(){s(o,!0)}),(function(){i=!1,s(o,!1)})))})),r.length?a.$$q.all(r).then((function(){u(i)}),I):u(!0)):u(!1);function s(e,t){o===a.$$currentValidationRunId&&a.$setValidity(e,t)}function u(e){o===a.$$currentValidationRunId&&n(e)}},$commitViewValue:function(){var e=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==e||""===e&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(e),this.$$lastCommittedViewValue=e,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){var e=this.$$lastCommittedViewValue,t=this;if(this.$$parserValid=!R(e)||void 0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(var n=0;n<this.$parsers.length;n++)if(R(e=this.$parsers[n](e))){this.$$parserValid=!1;break}D(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));var r=this.$modelValue,i=this.$options.getOption("allowInvalid");function o(){t.$modelValue!==r&&t.$$writeModelToScope()}this.$$rawModelValue=e,i&&(this.$modelValue=e,o()),this.$$runValidators(e,this.$$lastCommittedViewValue,(function(n){i||(t.$modelValue=n?e:void 0,o())}))},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue),$(this.$viewChangeListeners,(function(e){try{e()}catch(e){this.$$exceptionHandler(e)}}),this)},$setViewValue:function(e,t){this.$viewValue=e,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(t)},$$debounceViewValueCommit:function(e){var t=this.$options.getOption("debounce");B(t[e])?t=t[e]:B(t.default)&&-1===this.$options.getOption("updateOn").indexOf(e)?t=t.default:B(t["*"])&&(t=t["*"]),this.$$timeout.cancel(this.$$pendingDebounce);var n=this;t>0?this.$$pendingDebounce=this.$$timeout((function(){n.$commitViewValue()}),t):this.$$rootScope.$$phase?this.$commitViewValue():this.$$scope.$apply((function(){n.$commitViewValue()}))},$overrideModelOptions:function(e){this.$options=this.$options.createChild(e),this.$$setUpdateOnEvents()},$processModelValue:function(){var e=this.$$format();this.$viewValue!==e&&(this.$$updateEmptyClasses(e),this.$viewValue=this.$$lastCommittedViewValue=e,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,I))},$$format:function(){for(var e=this.$formatters,t=e.length,n=this.$modelValue;t--;)n=e[t](n);return n},$$setModelValue:function(e){this.$modelValue=this.$$rawModelValue=e,this.$$parserValid=void 0,this.$processModelValue()},$$setUpdateOnEvents:function(){this.$$updateEvents&&this.$$element.off(this.$$updateEvents,this.$$updateEventHandler),this.$$updateEvents=this.$options.getOption("updateOn"),this.$$updateEvents&&this.$$element.on(this.$$updateEvents,this.$$updateEventHandler)},$$updateEventHandler:function(e){this.$$debounceViewValueCommit(e&&e.type)}},Vi({clazz:Bo,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]}});var Ho,Vo=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Bo,priority:1,compile:function(t){return t.addClass(No).addClass("ng-untouched").addClass(Ro),{pre:function(e,t,n,r){var i=r[0],o=r[1]||i.$$parentForm,a=r[2];a&&(i.$options=a.$options),i.$$initGetterSetters(),o.$addControl(i),n.$observe("name",(function(e){i.$name!==e&&i.$$parentForm.$$renameControl(i,e)})),e.$on("$destroy",(function(){i.$$parentForm.$removeControl(i)}))},post:function(t,n,r,i){var o=i[0];function a(){o.$setTouched()}o.$$setUpdateOnEvents(),n.on("blur",(function(){o.$touched||(e.$$phase?t.$evalAsync(a):t.$apply(a))}))}}}}}],zo=/(\s+|^)default(\s+|$)/;function Wo(e){this.$$options=e}Wo.prototype={getOption:function(e){return this.$$options[e]},createChild:function(e){var t=!1;return $(e=C({},e),(function(n,r){"$inherit"===n?"*"===r?t=!0:(e[r]=this.$$options[r],"updateOn"===r&&(e.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===r&&(e.updateOnDefault=!1,e[r]=Z(n.replace(zo,(function(){return e.updateOnDefault=!0," "}))))}),this),t&&(delete e["*"],Go(e,this.$$options)),Go(e,Ho.$$options),new Wo(e)}},Ho=new Wo({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var Yo=function(){function e(e,t){this.$$attrs=e,this.$$scope=t}return e.$inject=["$attrs","$scope"],e.prototype={$onInit:function(){var e=this.parentCtrl?this.parentCtrl.$options:Ho,t=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=e.createChild(t)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:e}};function Go(e,t){$(t,(function(t,n){F(e[n])||(e[n]=t)}))}var Xo=Mi({terminal:!0,priority:1e3}),Ko=i("ngOptions"),Jo=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,Zo=["$compile","$document","$parse",function(t,n,r){var i=e.document.createElement("option"),o=e.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(e,t,n,r){r[0].registerOption=I},post:function(e,s,u,c){for(var l=c[0],f=c[1],d=u.multiple,p=0,h=s.children(),g=h.length;p<g;p++)if(""===h[p].value){l.hasEmptyOption=!0,l.emptyOption=h.eq(p);break}s.empty();var m,v=!!l.emptyOption;a(i.cloneNode(!1)).val("?");var y=function(e,t,n){var i=e.match(Jo);if(!i)throw Ko("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",e,be(t));var o=i[5]||i[7],a=i[6],s=/ as /.test(i[0])&&i[1],u=i[9],c=r(i[2]?i[1]:o),l=s&&r(s)||c,f=u&&r(u),d=u?function(e,t){return f(n,t)}:function(e){return Rt(e)},p=function(e,t){return d(e,b(e,t))},h=r(i[2]||i[1]),g=r(i[3]||""),m=r(i[4]||""),v=r(i[8]),y={},b=a?function(e,t){return y[a]=t,y[o]=e,y}:function(e){return y[o]=e,y};function _(e,t,n,r,i){this.selectValue=e,this.viewValue=t,this.label=n,this.group=r,this.disabled=i}function $(e){var t;if(!a&&w(e))t=e;else for(var n in t=[],e)e.hasOwnProperty(n)&&"$"!==n.charAt(0)&&t.push(n);return t}return{trackBy:u,getTrackByValue:p,getWatchables:r(v,(function(e){for(var t=[],r=$(e=e||[]),o=r.length,a=0;a<o;a++){var s=e===r?a:r[a],u=e[s],c=b(u,s),l=d(u,c);if(t.push(l),i[2]||i[1]){var f=h(n,c);t.push(f)}if(i[4]){var p=m(n,c);t.push(p)}}return t})),getOptions:function(){for(var e=[],t={},r=v(n)||[],i=$(r),o=i.length,a=0;a<o;a++){var s=r===i?a:i[a],c=r[s],f=b(c,s),y=l(n,f),w=d(y,f),x=new _(w,y,h(n,f),g(n,f),m(n,f));e.push(x),t[w]=x}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[p(e)]},getViewValueFromOption:function(e){return u?ie(e.viewValue):e.viewValue}}}}}(u.ngOptions,s,e),b=n[0].createDocumentFragment();function _(e,t){var n=i.cloneNode(!1);t.appendChild(n),function(e,t){e.element=t,t.disabled=e.disabled,e.label!==t.label&&(t.label=e.label,t.textContent=e.label);t.value=e.selectValue}(e,n)}function x(e){var t=m.getOptionFromViewValue(e),n=t&&t.element;return n&&!n.selected&&(n.selected=!0),t}l.generateUnknownOptionValue=function(e){return"?"},d?(l.writeValue=function(e){if(m){var t=e&&e.map(x)||[];m.items.forEach((function(e){e.element.selected&&!ne(t,e)&&(e.element.selected=!1)}))}},l.readValue=function(){var e=s.val()||[],t=[];return $(e,(function(e){var n=m.selectValueMap[e];n&&!n.disabled&&t.push(m.getViewValueFromOption(n))})),t},y.trackBy&&e.$watchCollection((function(){if(V(f.$viewValue))return f.$viewValue.map((function(e){return y.getTrackByValue(e)}))}),(function(){f.$render()}))):(l.writeValue=function(e){if(m){var t=s[0].options[s[0].selectedIndex],n=m.getOptionFromViewValue(e);t&&t.removeAttribute("selected"),n?(s[0].value!==n.selectValue&&(l.removeUnknownOption(),s[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):l.selectUnknownOrEmptyOption(e)}},l.readValue=function(){var e=m.selectValueMap[s.val()];return e&&!e.disabled?(l.unselectEmptyOption(),l.removeUnknownOption(),m.getViewValueFromOption(e)):null},y.trackBy&&e.$watch((function(){return y.getTrackByValue(f.$viewValue)}),(function(){f.$render()}))),v&&(t(l.emptyOption)(e),s.prepend(l.emptyOption),8===l.emptyOption[0].nodeType?(l.hasEmptyOption=!1,l.registerOption=function(e,t){""===t.val()&&(l.hasEmptyOption=!0,l.emptyOption=t,l.emptyOption.removeClass("ng-scope"),f.$render(),t.on("$destroy",(function(){var e=l.$isEmptyOptionSelected();l.hasEmptyOption=!1,l.emptyOption=void 0,e&&f.$render()})))}):l.emptyOption.removeClass("ng-scope")),e.$watchCollection(y.getWatchables,(function(){var e=m&&l.readValue();if(m)for(var t=m.items.length-1;t>=0;t--){var n=m.items[t];F(n.group)?kt(n.element.parentNode):kt(n.element)}m=y.getOptions();var r={};if(m.items.forEach((function(e){var t;F(e.group)?((t=r[e.group])||(t=o.cloneNode(!1),b.appendChild(t),t.label=null===e.group?"null":e.group,r[e.group]=t),_(e,t)):_(e,b)})),s[0].appendChild(b),f.$render(),!f.$isEmpty(e)){var i=l.readValue();(y.trackBy||d?ae(e,i):e===i)||(f.$setViewValue(i),f.$render())}}))}}}}],Qo=["$locale","$interpolate","$log",function(e,t,n){var r=/{}/g,i=/^when(Minus)?(.+)$/;return{link:function(o,a,s){var u,c=s.count,l=s.$attr.when&&a.attr(s.$attr.when),d=s.offset||0,p=o.$eval(l)||{},h={},g=t.startSymbol(),m=t.endSymbol(),v=g+c+"-"+d+m,y=b.noop;function _(e){a.text(e||"")}$(s,(function(e,t){var n=i.exec(t);if(n){var r=(n[1]?"-":"")+f(n[2]);p[r]=a.attr(s.$attr[t])}})),$(p,(function(e,n){h[n]=t(e.replace(r,v))})),o.$watch(c,(function(t){var r=parseFloat(t),i=D(r);if(i||r in p||(r=e.pluralCat(r-d)),!(r===u||i&&D(u))){y();var a=h[r];R(a)?(null!=t&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+l),y=I,_()):y=o.$watch(a,_),u=r}}))}}}],ea=i("ngRef"),ta=["$parse",function(e){return{priority:-1,restrict:"A",compile:function(t,n){var r=yn(te(t)),i=e(n.ngRef),o=i.assign||function(){throw ea("nonassign",'Expression in ngRef="{0}" is non-assignable!',n.ngRef)};return function(e,t,a){var s;if(a.hasOwnProperty("ngRefRead")){if("$element"===a.ngRefRead)s=t;else if(!(s=t.data("$"+a.ngRefRead+"Controller")))throw ea("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',a.ngRefRead,n.ngRef)}else s=t.data("$"+r+"Controller");o(e,s=s||t),t.on("$destroy",(function(){i(e)===s&&o(e,null)}))}}}}],na=["$parse","$animate","$compile",function(e,t,n){var r=i("ngRepeat"),o=function(e,t,n,r,i,o,a){e[n]=r,i&&(e[i]=o),e.$index=t,e.$first=0===t,e.$last=t===a-1,e.$middle=!(e.$first||e.$last),e.$odd=!(e.$even=0==(1&t))},a=function(e){return e.clone[0]},s=function(e){return e.clone[e.clone.length-1]},u=function(e,t,n){return Rt(n)},c=function(e,t){return t};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(i,f){var d=f.ngRepeat,p=n.$$createComment("end ngRepeat",d),h=d.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!h)throw r("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",d);var g=h[1],m=h[2],v=h[3],y=h[4];if(!(h=g.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/)))throw r("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",g);var b,_=h[3]||h[1],x=h[2];if(v&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(v)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(v)))throw r("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",v);if(y){var q={$id:Rt},S=e(y);b=function(e,t,n,r){return x&&(q[x]=t),q[_]=n,q.$index=r,S(e,q)}}return function(e,n,i,f,h){var g=Fe();e.$watchCollection(m,(function(i){var f,m,y,S,E,k,C,O,T,D,A,I,P=n[0],M=Fe();if(v&&(e[v]=i),w(i))T=i,O=b||u;else for(var j in O=b||c,T=[],i)l.call(i,j)&&"$"!==j.charAt(0)&&T.push(j);for(S=T.length,A=new Array(S),f=0;f<S;f++)if(E=i===T?f:T[f],k=i[E],C=O(e,E,k,f),g[C])D=g[C],delete g[C],M[C]=D,A[f]=D;else{if(M[C])throw $(A,(function(e){e&&e.scope&&(g[e.id]=e)})),r("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",d,C,k);A[f]={id:C,scope:void 0,clone:void 0},M[C]=!0}for(var R in q&&(q[_]=void 0),g){if(I=Re((D=g[R]).clone),t.leave(I),I[0].parentNode)for(f=0,m=I.length;f<m;f++)I[f].$$NG_REMOVED=!0;D.scope.$destroy()}for(f=0;f<S;f++)if(E=i===T?f:T[f],k=i[E],(D=A[f]).scope){y=P;do{y=y.nextSibling}while(y&&y.$$NG_REMOVED);a(D)!==y&&t.move(Re(D.clone),null,P),P=s(D),o(D.scope,f,_,k,x,E,S)}else h((function(e,n){D.scope=n;var r=p.cloneNode(!1);e[e.length++]=r,t.enter(e,null,P),P=r,D.clone=e,M[D.id]=D,o(D.scope,f,_,k,x,E,S)}));g=M}))}}}}],ra=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngShow,(function(t){e[t?"removeClass":"addClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})}))}}}],ia=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngHide,(function(t){e[t?"addClass":"removeClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})}))}}}],oa=Mi((function(e,t,n){e.$watchCollection(n.ngStyle,(function(e,n){n&&e!==n&&$(n,(function(e,n){t.css(n,"")})),e&&t.css(e)}))})),aa=["$animate","$compile",function(e,t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,i,o){var a=i.ngSwitch||i.on,s=[],u=[],c=[],l=[],f=function(e,t){return function(n){!1!==n&&e.splice(t,1)}};n.$watch(a,(function(n){for(var r,i;c.length;)e.cancel(c.pop());for(r=0,i=l.length;r<i;++r){var a=Re(u[r].clone);l[r].$destroy(),(c[r]=e.leave(a)).done(f(c,r))}u.length=0,l.length=0,(s=o.cases["!"+n]||o.cases["?"])&&$(s,(function(n){n.transclude((function(r,i){l.push(i);var o=n.element;r[r.length++]=t.$$createComment("end ngSwitchWhen");var a={clone:r};u.push(a),e.enter(r,o.parent(),o)}))}))}))}}}],sa=Mi({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){$(n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter((function(e,t,n){return n[t-1]!==e})),(function(e){r.cases["!"+e]=r.cases["!"+e]||[],r.cases["!"+e].push({transclude:i,element:t})}))}}),ua=Mi({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:t})}}),ca=i("ngTransclude"),la=["$compile",function(e){return{restrict:"EAC",compile:function(t){var n=e(t.contents());return t.empty(),function(e,t,r,i,o){if(!o)throw ca("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",be(t));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");var a=r.ngTransclude||r.ngTranscludeSlot;function s(){n(e,(function(e){t.append(e)}))}o((function(e,n){e.length&&function(e){for(var t=0,n=e.length;t<n;t++){var r=e[t];if(r.nodeType!==Le||r.nodeValue.trim())return!0}}(e)?t.append(e):(s(),n.$destroy())}),null,a),a&&!o.isSlotFilled(a)&&s()}}}}],fa=["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t,n){if("text/ng-template"===n.type){var r=n.id,i=t[0].text;e.put(r,i)}}}}],da={$setViewValue:I,$render:I};function pa(e,t){e.prop("selected",t),e.attr("selected",t)}var ha=["$element","$scope",function(t,n){var r=this,i=new Lt;r.selectValueMap={},r.ngModelCtrl=da,r.multiple=!1,r.unknownOption=a(e.document.createElement("option")),r.hasEmptyOption=!1,r.emptyOption=void 0,r.renderUnknownOption=function(e){var n=r.generateUnknownOptionValue(e);r.unknownOption.val(n),t.prepend(r.unknownOption),pa(r.unknownOption,!0),t.val(n)},r.updateUnknownOption=function(e){var n=r.generateUnknownOptionValue(e);r.unknownOption.val(n),pa(r.unknownOption,!0),t.val(n)},r.generateUnknownOptionValue=function(e){return"? "+Rt(e)+" ?"},r.removeUnknownOption=function(){r.unknownOption.parent()&&r.unknownOption.remove()},r.selectEmptyOption=function(){r.emptyOption&&(t.val(""),pa(r.emptyOption,!0))},r.unselectEmptyOption=function(){r.hasEmptyOption&&pa(r.emptyOption,!1)},n.$on("$destroy",(function(){r.renderUnknownOption=I})),r.readValue=function(){var e=t.val(),n=e in r.selectValueMap?r.selectValueMap[e]:e;return r.hasOption(n)?n:null},r.writeValue=function(e){var n=t[0].options[t[0].selectedIndex];if(n&&pa(a(n),!1),r.hasOption(e)){r.removeUnknownOption();var i=Rt(e);t.val(i in r.selectValueMap?i:e);var o=t[0].options[t[0].selectedIndex];pa(a(o),!0)}else r.selectUnknownOrEmptyOption(e)},r.addOption=function(e,t){if(8!==t[0].nodeType){je(e,'"option value"'),""===e&&(r.hasEmptyOption=!0,r.emptyOption=t);var n=i.get(e)||0;i.set(e,n+1),s()}},r.removeOption=function(e){var t=i.get(e);t&&(1===t?(i.delete(e),""===e&&(r.hasEmptyOption=!1,r.emptyOption=void 0)):i.set(e,t-1))},r.hasOption=function(e){return!!i.get(e)},r.$hasEmptyOption=function(){return r.hasEmptyOption},r.$isUnknownOptionSelected=function(){return t[0].options[0]===r.unknownOption[0]},r.$isEmptyOptionSelected=function(){return r.hasEmptyOption&&t[0].options[t[0].selectedIndex]===r.emptyOption[0]},r.selectUnknownOrEmptyOption=function(e){null==e&&r.emptyOption?(r.removeUnknownOption(),r.selectEmptyOption()):r.unknownOption.parent().length?r.updateUnknownOption(e):r.renderUnknownOption(e)};var o=!1;function s(){o||(o=!0,n.$$postDigest((function(){o=!1,r.ngModelCtrl.$render()})))}var u=!1;function c(e){u||(u=!0,n.$$postDigest((function(){n.$$destroyed||(u=!1,r.ngModelCtrl.$setViewValue(r.readValue()),e&&r.ngModelCtrl.$render())})))}r.registerOption=function(e,t,n,i,o){var a,u;n.$attr.ngValue?n.$observe("value",(function(e){var n,i=t.prop("selected");F(u)&&(r.removeOption(a),delete r.selectValueMap[u],n=!0),u=Rt(e),a=e,r.selectValueMap[u]=e,r.addOption(e,t),t.attr("value",u),n&&i&&c()})):i?n.$observe("value",(function(e){var n;r.readValue();var i=t.prop("selected");F(a)&&(r.removeOption(a),n=!0),a=e,r.addOption(e,t),n&&i&&c()})):o?e.$watch(o,(function(e,i){n.$set("value",e);var o=t.prop("selected");i!==e&&r.removeOption(i),r.addOption(e,t),i&&o&&c()})):r.addOption(n.value,t);n.$observe("disabled",(function(e){("true"===e||e&&t.prop("selected"))&&(r.multiple?c(!0):(r.ngModelCtrl.$setViewValue(null),r.ngModelCtrl.$render()))})),t.on("$destroy",(function(){var e=r.readValue(),t=n.value;r.removeOption(t),s(),(r.multiple&&e&&-1!==e.indexOf(t)||e===t)&&c(!0)}))}}],ga=function(){return{restrict:"E",require:["select","?ngModel"],controller:ha,priority:1,link:{pre:function(e,t,n,r){var i=r[0],o=r[1];if(!o)return void(i.registerOption=I);if(i.ngModelCtrl=o,t.on("change",(function(){i.removeUnknownOption(),e.$apply((function(){o.$setViewValue(i.readValue())}))})),n.multiple){i.multiple=!0,i.readValue=function(){var e=[];return $(t.find("option"),(function(t){if(t.selected&&!t.disabled){var n=t.value;e.push(n in i.selectValueMap?i.selectValueMap[n]:n)}})),e},i.writeValue=function(e){$(t.find("option"),(function(t){var n=!!e&&(ne(e,t.value)||ne(e,i.selectValueMap[t.value]));n!==t.selected&&pa(a(t),n)}))};var s,u=NaN;e.$watch((function(){u!==o.$viewValue||ae(s,o.$viewValue)||(s=Ue(o.$viewValue),o.$render()),u=o.$viewValue})),o.$isEmpty=function(e){return!e||0===e.length}}},post:function(e,t,n,r){var i=r[1];if(!i)return;var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}}},ma=["$interpolate",function(e){return{restrict:"E",priority:100,compile:function(t,n){var r,i;return F(n.ngValue)||(F(n.value)?r=e(n.value,!0):(i=e(t.text(),!0))||n.$set("value",t.text())),function(e,t,n){var o=t.parent(),a=o.data("$selectController")||o.parent().data("$selectController");a&&a.registerOption(e,t,n,r,i)}}}}],va=["$parse",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var o=r.hasOwnProperty("required")||e(r.ngRequired)(t);r.ngRequired||(r.required=!0),i.$validators.required=function(e,t){return!o||!i.$isEmpty(t)},r.$observe("required",(function(e){o!==e&&(o=e,i.$validate())}))}}}}],ya=["$parse",function(e){return{restrict:"A",require:"?ngModel",compile:function(t,n){var r,i;return n.ngPattern&&(r=n.ngPattern,i="/"===n.ngPattern.charAt(0)&&c.test(n.ngPattern)?function(){return n.ngPattern}:e(n.ngPattern)),function(e,t,n,o){if(o){var a=n.pattern;n.ngPattern?a=i(e):r=n.pattern;var s=wa(a,r,t);n.$observe("pattern",(function(e){var n=s;s=wa(e,r,t),(n&&n.toString())!==(s&&s.toString())&&o.$validate()})),o.$validators.pattern=function(e,t){return o.$isEmpty(t)||R(s)||s.test(t)}}}}}}],ba=["$parse",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var o=r.maxlength||e(r.ngMaxlength)(t),a=$a(o);r.$observe("maxlength",(function(e){o!==e&&(a=$a(e),o=e,i.$validate())})),i.$validators.maxlength=function(e,t){return a<0||i.$isEmpty(t)||t.length<=a}}}}}],_a=["$parse",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var o=r.minlength||e(r.ngMinlength)(t),a=$a(o)||-1;r.$observe("minlength",(function(e){o!==e&&(a=$a(e)||-1,o=e,i.$validate())})),i.$validators.minlength=function(e,t){return i.$isEmpty(t)||t.length>=a}}}}}];function wa(e,t,n){if(e){if(U(e)&&(e=new RegExp("^"+e+"$")),!e.test)throw i("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",t,e,be(n));return e}}function $a(e){var t=T(e);return D(t)?-1:t}e.angular.bootstrap?e.console&&console.log("WARNING: Tried to load AngularJS more than once."):(!function(){var t;if(!Ae){var n=ue();(s=R(n)?e.jQuery:n?e[n]:void 0)&&s.fn.on?(a=s,C(s.fn,{scope:Ot.scope,isolateScope:Ot.isolateScope,controller:Ot.controller,injector:Ot.injector,inheritedData:Ot.inheritedData})):a=ft,t=a.cleanData,a.cleanData=function(e){for(var n,r,i=0;null!=(r=e[i]);i++)(n=(a._data(r)||{}).events)&&n.$destroy&&a(r).triggerHandler("$destroy");t(e)},b.element=a,Ae=!0}}(),function(t){C(t,{errorHandlingConfig:n,bootstrap:ke,copy:ie,extend:C,merge:O,equals:ae,element:a,forEach:$,injector:Kt,noop:I,bind:fe,toJson:pe,fromJson:he,identity:P,isUndefined:R,isDefined:F,isString:U,isFunction:z,isObject:N,isNumber:B,isElement:ee,isArray:V,version:He,isDate:H,callbacks:{$$counter:0},getTestability:Oe,reloadWithDebugInfo:Ce,UNSAFE_restoreLegacyJqLiteXHTMLReplacement:Ie,$$minErr:i,$$csp:se,$$encodeUriSegment:$e,$$encodeUriQuery:xe,$$lowercase:f,$$stringify:Ne,$$uppercase:d}),(u=function(e){var t=i("$injector"),n=i("ng");function r(e,t,n){return e[t]||(e[t]=n())}var o=r(e,"angular",Object);return o.$$minErr=o.$$minErr||i,r(o,"module",(function(){var e={};return function(i,o,a){var s={};return function(e,t){if("hasOwnProperty"===e)throw n("badname","hasOwnProperty is not a valid {0} name",t)}(i,"module"),o&&e.hasOwnProperty(i)&&(e[i]=null),r(e,i,(function(){if(!o)throw t("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",i);var e=[],r=[],u=[],c=f("$injector","invoke","push",r),l={_invokeQueue:e,_configBlocks:r,_runBlocks:u,info:function(e){if(F(e)){if(!N(e))throw n("aobj","Argument '{0}' must be an object","value");return s=e,this}return s},requires:o,name:i,provider:d("$provide","provider"),factory:d("$provide","factory"),service:d("$provide","service"),value:f("$provide","value"),constant:f("$provide","constant","unshift"),decorator:d("$provide","decorator",r),animation:d("$animateProvider","register"),filter:d("$filterProvider","register"),controller:d("$controllerProvider","register"),directive:d("$compileProvider","directive"),component:d("$compileProvider","component"),config:c,run:function(e){return u.push(e),this}};return a&&c(a),l;function f(t,n,r,i){return i||(i=e),function(){return i[r||"push"]([t,n,arguments]),l}}function d(t,n,r){return r||(r=e),function(e,o){return o&&z(o)&&(o.$$moduleName=i),r.push([t,n,arguments]),l}}}))}}))}(e))("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:Ur}),e.provider("$compile",hn).directive({a:ji,input:go,textarea:go,form:Ui,script:fa,select:ga,option:ma,ngBind:bo,ngBindHtml:wo,ngBindTemplate:_o,ngClass:qo,ngClassEven:Eo,ngClassOdd:So,ngCloak:ko,ngController:Co,ngForm:Bi,ngHide:ia,ngIf:Ao,ngInclude:Io,ngInit:Mo,ngNonBindable:Xo,ngPluralize:Qo,ngRef:ta,ngRepeat:na,ngShow:ra,ngStyle:oa,ngSwitch:aa,ngSwitchWhen:sa,ngSwitchDefault:ua,ngOptions:Zo,ngTransclude:la,ngModel:Vo,ngList:jo,ngChange:$o,pattern:ya,ngPattern:ya,required:va,ngRequired:va,minlength:_a,ngMinlength:_a,maxlength:ba,ngMaxlength:ba,ngValue:yo,ngModelOptions:Yo}).directive({ngInclude:Po,input:mo}).directive(Ri).directive(Oo),e.provider({$anchorScroll:Jt,$animate:rn,$animateCss:sn,$$animateJs:tn,$$animateQueue:nn,$$AnimateRunner:an,$$animateAsyncRun:on,$browser:cn,$cacheFactory:ln,$controller:qn,$document:Sn,$$isDocumentHidden:En,$exceptionHandler:kn,$filter:di,$$forceReflow:Cn,$interpolate:Wn,$interval:Gn,$$intervalFactory:Xn,$http:Bn,$httpParamSerializer:Mn,$httpParamSerializerJQLike:jn,$httpBackend:Vn,$xhrFactory:Hn,$jsonpCallbacks:Kn,$location:pr,$log:hr,$parse:Ar,$rootScope:Lr,$q:Ir,$$q:Pr,$sce:Gr,$sceDelegate:Yr,$sniffer:Xr,$$taskTrackerFactory:Kr,$templateCache:fn,$templateRequest:Qr,$$testability:ei,$timeout:ni,$window:ci,$$rAF:Nr,$$jqLite:jt,$$Map:Ut,$$cookieReader:fi})}]).info({angularVersion:"1.8.0"})}(b),b.module("ngLocale",[],["$provide",function(e){var t="one",n="other";e.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(e,r){var i=0|e,o=function(e,t){var n=t;void 0===n&&(n=Math.min(function(e){var t=(e+="").indexOf(".");return-1==t?0:e.length-t-1}(e),3));var r=Math.pow(10,n);return{v:n,f:(e*r|0)%r}}(e,r);return 1==i&&0==o.v?t:n}})}]),a((function(){Ee(e.document,ke)})))}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend(window.angular.element("<style>").text('@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}'))},function(e,t){!function(e,t){"use strict";var n,r,i,o,a,s,u,c,l,f,d=t.$$minErr("$sanitize");t.module("ngSanitize",[]).provider("$sanitize",(function(){var p=!1,h=!1;this.$get=["$$sanitizeUri",function(e){return p=!0,h&&r(S,x),function(t){var n=[];return l(t,f(n,(function(t,n){return!/^unsafe:/.test(e(t,n))}))),n.join("")}}],this.enableSvg=function(e){return a(e)?(h=e,this):h},this.addValidElements=function(e){return p||(o(e)&&(e={htmlElements:e}),A(x,e.svgElements),A(v,e.htmlVoidElements),A(S,e.htmlVoidElements),A(S,e.htmlElements)),this},this.addValidAttrs=function(e){return p||r(O,D(e,!0)),this},n=t.bind,r=t.extend,i=t.forEach,o=t.isArray,a=t.isDefined,s=t.$$lowercase,u=t.noop,l=function(e,t){null==e?e="":"string"!=typeof e&&(e=""+e);var n=I(e);if(!n)return"";var r=5;do{if(0===r)throw d("uinput","Failed to sanitize html because the input is unstable");r--,e=n.innerHTML,n=I(e)}while(e!==n.innerHTML);var i=n.firstChild;for(;i;){switch(i.nodeType){case 1:t.start(i.nodeName.toLowerCase(),P(i.attributes));break;case 3:t.chars(i.textContent)}var o;if(!((o=i.firstChild)||(1===i.nodeType&&t.end(i.nodeName.toLowerCase()),o=R("nextSibling",i))))for(;null==o&&(i=R("parentNode",i))!==n;)o=R("nextSibling",i),1===i.nodeType&&t.end(i.nodeName.toLowerCase());i=o}for(;i=n.firstChild;)n.removeChild(i)},f=function(e,t){var r=!1,o=n(e,e.push);return{start:function(e,n){e=s(e),!r&&q[e]&&(r=e),r||!0!==S[e]||(o("<"),o(e),i(n,(function(n,r){var i=s(r),a="img"===e&&"src"===i||"background"===i;!0!==O[i]||!0===E[i]&&!t(n,a)||(o(" "),o(r),o('="'),o(M(n)),o('"'))})),o(">"))},end:function(e){e=s(e),r||!0!==S[e]||!0===v[e]||(o("</"),o(e),o(">")),e==r&&(r=!1)},chars:function(e){r||o(M(e))}}},c=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))};var g=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,m=/([^#-~ |!])/g,v=T("area,br,col,hr,img,wbr"),y=T("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),b=T("rp,rt"),_=r({},b,y),w=r({},y,T("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul")),$=r({},b,T("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),x=T("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan"),q=T("script,style"),S=r({},v,w,$,_),E=T("background,cite,href,longdesc,src,xlink:href,xml:base"),k=T("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),C=T("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),O=r({},E,C,k);function T(e,t){return D(e.split(","),t)}function D(e,t){var n,r={};for(n=0;n<e.length;n++)r[t?s(e[n]):e[n]]=!0;return r}function A(e,t){t&&t.length&&r(e,D(t))}var I=function(e,t){var n;if(!t||!t.implementation)throw d("noinert","Can't create an inert html document");var r=((n=t.implementation.createHTMLDocument("inert")).documentElement||n.getDocumentElement()).querySelector("body");return r.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',r.querySelector("svg")?(r.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',r.querySelector("svg img")?function(t){t="<remove></remove>"+t;try{var n=(new e.DOMParser).parseFromString(t,"text/html").body;return n.firstChild.remove(),n}catch(e){return}}:function(e){r.innerHTML=e,t.documentMode&&j(r);return r}):function(t){t="<remove></remove>"+t;try{t=encodeURI(t)}catch(e){return}var n=new e.XMLHttpRequest;n.responseType="document",n.open("GET","data:text/html;charset=utf-8,"+t,!1),n.send(null);var r=n.response.body;return r.firstChild.remove(),r}}(e,e.document);function P(e){for(var t={},n=0,r=e.length;n<r;n++){var i=e[n];t[i.name]=i.value}return t}function M(e){return e.replace(/&/g,"&amp;").replace(g,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(m,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function j(t){for(;t;){if(t.nodeType===e.Node.ELEMENT_NODE)for(var n=t.attributes,r=0,i=n.length;r<i;r++){var o=n[r],a=o.name.toLowerCase();"xmlns:ns1"!==a&&0!==a.lastIndexOf("ns1:",0)||(t.removeAttributeNode(o),r--,i--)}var s=t.firstChild;s&&j(s),t=R("nextSibling",t)}}function R(e,t){var n=t[e];if(n&&c.call(t,n))throw d("elclob","Failed to sanitize html because the element is clobbered: {0}",t.outerHTML||t.outerText);return n}})).info({angularVersion:"1.8.0"}),t.module("ngSanitize").filter("linky",["$sanitize",function(e){var n=/((s?ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,r=/^mailto:/i,i=t.$$minErr("linky"),o=t.isDefined,a=t.isFunction,s=t.isObject,c=t.isString;return function(t,l,d){if(null==t||""===t)return t;if(!c(t))throw i("notstring","Expected string but received: {0}",t);for(var p,h,g,m=a(d)?d:s(d)?function(){return d}:function(){return{}},v=t,y=[];p=v.match(n);)h=p[0],p[2]||p[4]||(h=(p[3]?"http://":"mailto:")+h),g=p.index,b(v.substr(0,g)),_(h,p[0].replace(r,"")),v=v.substring(g+p[0].length);return b(v),e(y.join(""));function b(e){var t,n;e&&y.push((t=e,f(n=[],u).chars(t),n.join("")))}function _(e,t){var n,r=m(e);for(n in y.push("<a "),r)y.push(n+'="'+r[n]+'" ');o(l)&&!("target"in r)&&y.push('target="',l,'" '),y.push('href="',e.replace(/"/g,"&quot;"),'">'),b(t),y.push("</a>")}}}])}(window,window.angular)},function(e,t,n){var r,i,o,a,s,u,c,l,f=n(43),d=n(96).f,p=n(81),h=n(330).set,g=n(331),m=f.MutationObserver||f.WebKitMutationObserver,v=f.process,y=f.Promise,b="process"==p(v),_=d(f,"queueMicrotask"),w=_&&_.value;w||(r=function(){var e,t;for(b&&(e=v.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(e){throw i?a():o=void 0,e}}o=void 0,e&&e.enter()},b?a=function(){v.nextTick(r)}:m&&!g?(s=!0,u=document.createTextNode(""),new m(r).observe(u,{characterData:!0}),a=function(){u.data=s=!s}):y&&y.resolve?(c=y.resolve(void 0),l=c.then,a=function(){l.call(c,r)}):a=function(){h.call(f,r)}),e.exports=w||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},function(e,t,n){var r=n(43);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,n){"use strict";var r=n(99),i=n(50),o=[].slice,a={},s=function(e,t,n){if(!(t in a)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";a[t]=Function("C,a","return new C("+r.join(",")+")")}return a[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=o.call(arguments,1),a=function(){var r=n.concat(o.call(arguments));return this instanceof a?s(t,r.length,r):t.apply(e,r)};return i(t.prototype)&&(a.prototype=t.prototype),a}},function(e,t,n){"use strict";var r=n(115),i=n(169),o=n(168),a=n(491),s=[].join,u=i!=Object,c=a("join",",");r({target:"Array",proto:!0,forced:u||!c},{join:function(e){return s.call(o(this),void 0===e?",":e)}})},function(e,t,n){var r=n(70),i=n(143),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,n){var r,i,o,a=n(483),s=n(70),u=n(143),c=n(144),l=n(103),f=n(235),d=n(346),p=n(349),h=s.WeakMap;if(a){var g=f.state||(f.state=new h),m=g.get,v=g.has,y=g.set;r=function(e,t){return t.facade=e,y.call(g,e,t),t},i=function(e){return m.call(g,e)||{}},o=function(e){return v.call(g,e)}}else{var b=d("state");p[b]=!0,r=function(e,t){return t.facade=e,c(e,b,t),t},i=function(e){return l(e,b)?e[b]:{}},o=function(e){return l(e,b)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(70),i=n(345),o=r.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},function(e,t){e.exports=!1},function(e,t,n){var r=n(103),i=n(486),o=n(341),a=n(172);e.exports=function(e,t){for(var n=i(t),s=a.f,u=o.f,c=0;c<n.length;c++){var l=n[c];r(e,l)||s(e,l,u(t,l))}}},function(e,t,n){var r=n(350),i=n(488),o=n(354),a=n(173);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(70);e.exports=r},function(e,t,n){var r=n(351),i=n(353).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(168),i=n(174),o=n(352),a=function(e){return function(t,n,a){var s,u=r(t),c=i(u.length),l=o(a,c);if(e&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){var r=n(71),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==c||n!=u&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},function(e,t,n){"use strict";var r=n(71);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},function(e,t,n){"use strict";var r=n(115),i=n(493).map;r({target:"Array",proto:!0,forced:!n(358)("map")},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(494),i=n(169),o=n(117),a=n(174),s=n(355),u=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,l=4==e,f=6==e,d=7==e,p=5==e||f;return function(h,g,m,v){for(var y,b,_=o(h),w=i(_),$=r(g,m,3),x=a(w.length),q=0,S=v||s,E=t?S(h,x):n||d?S(h,0):void 0;x>q;q++)if((p||q in w)&&(b=$(y=w[q],q,_),e))if(t)E[q]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return q;case 2:u.call(E,y)}else switch(e){case 4:return!1;case 7:u.call(E,y)}return f?-1:c||l?l:E}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterOut:c(7)}},function(e,t,n){var r=n(495);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var r=n(170);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(170),i=n(70);e.exports="process"==r(i.process)},function(e,t,n){var r=n(350);e.exports=r("navigator","userAgent")||""},function(e,t,n){var r=n(356);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){"use strict";var r=n(115),i=n(352),o=n(145),a=n(174),s=n(117),u=n(355),c=n(501),l=n(358)("splice"),f=Math.max,d=Math.min;r({target:"Array",proto:!0,forced:!l},{splice:function(e,t){var n,r,l,p,h,g,m=s(this),v=a(m.length),y=i(e,v),b=arguments.length;if(0===b?n=r=0:1===b?(n=0,r=v-y):(n=b-2,r=d(f(o(t),0),v-y)),v+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(l=u(m,r),p=0;p<r;p++)(h=y+p)in m&&c(l,p,m[h]);if(l.length=r,n<r){for(p=y;p<v-r;p++)g=p+n,(h=p+r)in m?m[g]=m[h]:delete m[g];for(p=v;p>v-r+n;p--)delete m[p-1]}else if(n>r)for(p=v-r;p>y;p--)g=p+n-1,(h=p+r-1)in m?m[g]=m[h]:delete m[g];for(p=0;p<n;p++)m[p+y]=arguments[p+2];return m.length=v-r+n,l}})},function(e,t,n){"use strict";var r=n(233),i=n(172),o=n(232);e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},function(e,t,n){var r=n(116),i=n(172).f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/;r&&!("name"in o)&&i(o,"name",{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(e){return""}}})},function(e,t,n){var r=n(115),i=n(504);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(e,t,n){"use strict";var r=n(116),i=n(71),o=n(505),a=n(354),s=n(342),u=n(117),c=n(169),l=Object.assign,f=Object.defineProperty;e.exports=!l||i((function(){if(r&&1!==l({b:1},l(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||"abcdefghijklmnopqrst"!=o(l({},t)).join("")}))?function(e,t){for(var n=u(e),i=arguments.length,l=1,f=a.f,d=s.f;i>l;)for(var p,h=c(arguments[l++]),g=f?o(h).concat(f(h)):o(h),m=g.length,v=0;m>v;)p=g[v++],r&&!d.call(h,p)||(n[p]=h[p]);return n}:l},function(e,t,n){var r=n(351),i=n(353);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(115),i=n(71),o=n(117),a=n(507),s=n(359);r({target:"Object",stat:!0,forced:i((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(o(e))}})},function(e,t,n){var r=n(103),i=n(117),o=n(346),a=n(359),s=o("IE_PROTO"),u=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},function(e,t,n){"use strict";var r=n(173);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var r=n(71);function i(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},function(e,t,n){"use strict";var r=n(511),i=n(173),o=n(174),a=n(145),s=n(171),u=n(512),c=n(514),l=n(515),f=Math.max,d=Math.min;r("replace",2,(function(e,t,n,r){var p=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,h=r.REPLACE_KEEPS_$0,g=p?"$":"$0";return[function(n,r){var i=s(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,i,r):t.call(String(i),n,r)},function(e,r){if(!p&&h||"string"==typeof r&&-1===r.indexOf(g)){var s=n(t,e,this,r);if(s.done)return s.value}var m=i(e),v=String(this),y="function"==typeof r;y||(r=String(r));var b=m.global;if(b){var _=m.unicode;m.lastIndex=0}for(var w=[];;){var $=l(m,v);if(null===$)break;if(w.push($),!b)break;""===String($[0])&&(m.lastIndex=u(v,o(m.lastIndex),_))}for(var x,q="",S=0,E=0;E<w.length;E++){$=w[E];for(var k=String($[0]),C=f(d(a($.index),v.length),0),O=[],T=1;T<$.length;T++)O.push(void 0===(x=$[T])?x:String(x));var D=$.groups;if(y){var A=[k].concat(O,C,v);void 0!==D&&A.push(D);var I=String(r.apply(void 0,A))}else I=c(k,v,C,O,D,r);C>=S&&(q+=v.slice(S,C)+I,S=C+k.length)}return q+v.slice(S)}]}))},function(e,t,n){"use strict";n(360);var r=n(344),i=n(71),o=n(236),a=n(237),s=n(144),u=o("species"),c=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),l="$0"==="a".replace(/./,"$0"),f=o("replace"),d=!!/./[f]&&""===/./[f]("a","$0"),p=!i((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,f){var h=o(e),g=!i((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),m=g&&!i((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!g||!m||"replace"===e&&(!c||!l||d)||"split"===e&&!p){var v=/./[h],y=n(h,""[e],(function(e,t,n,r,i){return t.exec===a?g&&!i?{done:!0,value:v.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),b=y[0],_=y[1];r(String.prototype,e,b),r(RegExp.prototype,h,2==t?function(e,t){return _.call(e,this,t)}:function(e){return _.call(e,this)})}f&&s(RegExp.prototype[h],"sham",!0)}},function(e,t,n){"use strict";var r=n(513).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){var r=n(145),i=n(171),o=function(e){return function(t,n){var o,a,s=String(i(t)),u=r(n),c=s.length;return u<0||u>=c?e?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},function(e,t,n){var r=n(117),i=Math.floor,o="".replace,a=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,u,c,l){var f=n+e.length,d=u.length,p=s;return void 0!==c&&(c=r(c),p=a),o.call(l,p,(function(r,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(f);case"<":a=c[o.slice(1,-1)];break;default:var s=+o;if(0===s)return r;if(s>d){var l=i(s/10);return 0===l?r:l<=d?void 0===u[l-1]?o.charAt(1):u[l-1]+o.charAt(1):r}a=u[s-1]}return void 0===a?"":a}))}},function(e,t,n){var r=n(170),i=n(237);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var o=n.call(e,t);if("object"!=typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},function(e,t,n){var r=n(68),i="["+n(361)+"]",o=RegExp("^"+i+i+"*"),a=RegExp(i+i+"*$"),s=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(o,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:s(1),end:s(2),trim:s(3)}},function(e,t,n){var r=n(31),i=n(361);e.exports=function(e){return r((function(){return!!i[e]()||"…"!="…"[e]()||i[e].name!==e}))}},function(e,t,n){var r=n(81);e.exports=function(e){if("number"!=typeof e&&"Number"!=r(e))throw TypeError("Incorrect invocation");return+e}},function(e,t,n){"use strict";var r=n(89),i=n(68);e.exports="".repeat||function(e){var t=String(i(this)),n="",o=r(e);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,o){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var c=e.length;u>0&&c>u&&(c=u);for(var l=0;l<c;++l){var f,d,p,h,g=e[l].replace(s,"%20"),m=g.indexOf(n);m>=0?(f=g.substr(0,m),d=g.substr(m+1)):(f=g,d=""),p=decodeURIComponent(f),h=decodeURIComponent(d),r(a,p)?i(a[p])?a[p].push(h):a[p]=[a[p],h]:a[p]=h}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},,function(e,t,n){"use strict";var r=/[^\0-\u007E]/,i=/[.\u3002\uFF0E\uFF61]/g,o="Overflow: input needs wider integers to process",a=Math.floor,s=String.fromCharCode,u=function(e){return e+22+75*(e<26)},c=function(e,t,n){var r=0;for(e=n?a(e/700):e>>1,e+=a(e/t);e>455;r+=36)e=a(e/35);return a(r+36*e/(e+38))},l=function(e){var t,n,r=[],i=(e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}(e)).length,l=128,f=0,d=72;for(t=0;t<e.length;t++)(n=e[t])<128&&r.push(s(n));var p=r.length,h=p;for(p&&r.push("-");h<i;){var g=2147483647;for(t=0;t<e.length;t++)(n=e[t])>=l&&n<g&&(g=n);var m=h+1;if(g-l>a((2147483647-f)/m))throw RangeError(o);for(f+=(g-l)*m,l=g,t=0;t<e.length;t++){if((n=e[t])<l&&++f>2147483647)throw RangeError(o);if(n==l){for(var v=f,y=36;;y+=36){var b=y<=d?1:y>=d+26?26:y-d;if(v<b)break;var _=v-b,w=36-b;r.push(s(u(b+_%w))),v=a(_/w)}r.push(s(u(v))),d=c(f,m,h==p),f=0,++h}}++f,++l}return r.join("")};e.exports=function(e){var t,n,o=[],a=e.toLowerCase().replace(i,".").split(".");for(t=0;t<a.length;t++)n=a[t],o.push(r.test(n)?"xn--"+l(n):n);return o.join(".")}},function(e,t,n){"use strict";n(10);var r=n(28),i=n(83),o=n(370),a=n(64),s=n(223),u=n(97),c=n(304),l=n(82),f=n(137),d=n(56),p=n(98),h=n(220),g=n(51),m=n(50),v=n(113),y=n(112),b=n(541),_=n(164),w=n(37),$=i("fetch"),x=i("Headers"),q=w("iterator"),S=l.set,E=l.getterFor("URLSearchParams"),k=l.getterFor("URLSearchParamsIterator"),C=/\+/g,O=Array(4),T=function(e){return O[e-1]||(O[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},D=function(e){try{return decodeURIComponent(e)}catch(t){return e}},A=function(e){var t=e.replace(C," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(T(n--),D);return t}},I=/[!'()~]|%20/g,P={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},M=function(e){return P[e]},j=function(e){return encodeURIComponent(e).replace(I,M)},R=function(e,t){if(t)for(var n,r,i=t.split("&"),o=0;o<i.length;)(n=i[o++]).length&&(r=n.split("="),e.push({key:A(r.shift()),value:A(r.join("="))}))},F=function(e){this.entries.length=0,R(this.entries,e)},N=function(e,t){if(e<t)throw TypeError("Not enough arguments")},L=c((function(e,t){S(this,{type:"URLSearchParamsIterator",iterator:b(E(e).entries),kind:t})}),"Iterator",(function(){var e=k(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n})),U=function(){f(this,U,"URLSearchParams");var e,t,n,r,i,o,a,s,u,c=arguments.length>0?arguments[0]:void 0,l=this,p=[];if(S(l,{type:"URLSearchParams",entries:p,updateURL:function(){},updateSearchParams:F}),void 0!==c)if(m(c))if("function"==typeof(e=_(c)))for(n=(t=e.call(c)).next;!(r=n.call(t)).done;){if((a=(o=(i=b(g(r.value))).next).call(i)).done||(s=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");p.push({key:a.value+"",value:s.value+""})}else for(u in c)d(c,u)&&p.push({key:u,value:c[u]+""});else R(p,"string"==typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},B=U.prototype;s(B,{append:function(e,t){N(arguments.length,2);var n=E(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){N(arguments.length,1);for(var t=E(this),n=t.entries,r=e+"",i=0;i<n.length;)n[i].key===r?n.splice(i,1):i++;t.updateURL()},get:function(e){N(arguments.length,1);for(var t=E(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){N(arguments.length,1);for(var t=E(this).entries,n=e+"",r=[],i=0;i<t.length;i++)t[i].key===n&&r.push(t[i].value);return r},has:function(e){N(arguments.length,1);for(var t=E(this).entries,n=e+"",r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){N(arguments.length,1);for(var n,r=E(this),i=r.entries,o=!1,a=e+"",s=t+"",u=0;u<i.length;u++)(n=i[u]).key===a&&(o?i.splice(u--,1):(o=!0,n.value=s));o||i.push({key:a,value:s}),r.updateURL()},sort:function(){var e,t,n,r=E(this),i=r.entries,o=i.slice();for(i.length=0,n=0;n<o.length;n++){for(e=o[n],t=0;t<n;t++)if(i[t].key>e.key){i.splice(t,0,e);break}t===n&&i.push(e)}r.updateURL()},forEach:function(e){for(var t,n=E(this).entries,r=p(e,arguments.length>1?arguments[1]:void 0,3),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new L(this,"keys")},values:function(){return new L(this,"values")},entries:function(){return new L(this,"entries")}},{enumerable:!0}),a(B,q,B.entries),a(B,"toString",(function(){for(var e,t=E(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(j(e.key)+"="+j(e.value));return n.join("&")}),{enumerable:!0}),u(U,"URLSearchParams"),r({global:!0,forced:!o},{URLSearchParams:U}),o||"function"!=typeof $||"function"!=typeof x||r({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,r,i=[e];return arguments.length>1&&(t=arguments[1],m(t)&&(n=t.body,"URLSearchParams"===h(n)&&((r=t.headers?new x(t.headers):new x).has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=v(t,{body:y(0,String(n)),headers:y(0,r)}))),i.push(t)),$.apply(this,i)}}),e.exports={URLSearchParams:U,getState:E}},function(e,t,n){var r=n(51),i=n(164);e.exports=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r=n(60),i=n(150),o={nowSeconds:function(){return Date.now()/1e3}};var a=Object(i.b)()?function(){try{return Object(i.a)(e,"perf_hooks").performance}catch(e){return}}():function(){var e=Object(r.e)().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),s=void 0===a?o:{nowSeconds:function(){return(a.timeOrigin+a.now())/1e3}},u=o.nowSeconds.bind(o);s.nowSeconds.bind(s),function(){var e=Object(r.e)().performance;if(e){var t=e.now(),n=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,o=i<36e5,a=e.timing&&e.timing.navigationStart,s="number"==typeof a?Math.abs(a+t-n):36e5;return o||s<36e5?i<=s?("timeOrigin",e.timeOrigin):("navigationStart",a):("dateNow",n)}"none"}()}).call(this,n(334)(e))}]]);
/*! For license information please see main-c1c3b438579d06184b94.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.main=t():(e.Frontend=e.Frontend||{},e.Frontend.main=t())}(window,(function(){return function(e){function t(t){for(var r,i,c=t[0],s=t[1],u=t[2],d=0,f=[];d<c.length;d++)i=c[d],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&f.push(o[i][0]),o[i]=0;for(r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r]);for(l&&l(t);f.length;)f.shift()();return a.push.apply(a,u||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],r=!0,c=1;c<n.length;c++){var s=n[c];0!==o[s]&&(r=!1)}r&&(a.splice(t--,1),e=i(i.s=n[0]))}return e}var r={},o={14:0},a=[];function i(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var c=window.webpackJsonp=window.webpackJsonp||[],s=c.push.bind(c);c.push=t,c=c.slice();for(var u=0;u<c.length;u++)t(c[u]);var l=s;return a.push([843,0]),n()}({118:function(e,t,n){"use strict";var r=n(146);function AlgoliaSearchError(e,t){var r=n(119),o=this;"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):o.stack=(new Error).stack||"Cannot get a stacktrace, browser is too old",this.name="AlgoliaSearchError",this.message=e||"Unknown error",t&&r(t,(function(e,t){o[t]=e}))}function createCustomError(e,t){function AlgoliaSearchCustomError(){var n=Array.prototype.slice.call(arguments,0);"string"!=typeof n[0]&&n.unshift(t),AlgoliaSearchError.apply(this,n),this.name="AlgoliaSearch"+e+"Error"}return r(AlgoliaSearchCustomError,AlgoliaSearchError),AlgoliaSearchCustomError}r(AlgoliaSearchError,Error),e.exports={AlgoliaSearchError:AlgoliaSearchError,UnparsableJSON:createCustomError("UnparsableJSON","Could not parse the incoming response as JSON, see err.more for details"),RequestTimeout:createCustomError("RequestTimeout","Request timed out before getting a response"),Network:createCustomError("Network","Network issue, see err.more for details"),JSONPScriptFail:createCustomError("JSONPScriptFail","<script> was loaded but did not call our provided callback"),ValidUntilNotFound:createCustomError("ValidUntilNotFound","The SecuredAPIKey does not have a validUntil parameter."),JSONPScriptError:createCustomError("JSONPScriptError","<script> unable to load due to an `error` event on it"),ObjectNotFound:createCustomError("ObjectNotFound","Object not found"),Unknown:createCustomError("Unknown","Unknown error occured")}},119:function(e,t){var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,t,o){if("[object Function]"!==r.call(t))throw new TypeError("iterator must be a function");var a=e.length;if(a===+a)for(var i=0;i<a;i++)t.call(o,e[i],i,e);else for(var c in e)n.call(e,c)&&t.call(o,e[c],c,e)}},120:function(e,t,n){var r=n(119);e.exports=function(e,t){var n=[];return r(e,(function(r,o){n.push(t(r,o,e))})),n}},142:function(e,t,n){"use strict";function r(){try{var e;return(e=$).localStorage.apply(e,arguments)}catch(e){return console.error("localStorage exception",e),null}}angular.module("localStorage",[]).value("localStorage",r)},146:function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},167:function(e,t,n){"use strict";n(8),n(6),n(22),n(12),n(15),n(7),n(16),n(10),n(11),n(13),n(5);function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n(3).a.factory("queuedHttp",["$http","$q",function(e,t){var n=[],o=!1,a=function e(){if(!o){var t=n.shift();return null!=t?(o=!0,t().then((function(){return o=!1,e()})).catch((function(){return o=!1,e()}))):void 0}},i=function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];var c={},s=[],u=[];c.then=function(e,t){return s.push(e),null!=t&&u.push(t),c},c.catch=function(e){return u.push(e),c};var l=function(){return e.apply(void 0,r(Array.from(o||[]))).then((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.from(s).map((function(e){return e.apply(void 0,r(Array.from(t||[])))}))})).catch((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.from(u).map((function(e){return e.apply(void 0,r(Array.from(t||[])))}))}))};return n.push(l),a(),c};return i.post=function(e,t){return i({method:"POST",url:e,data:t})},i}])},175:function(e,t,n){(function(r){function o(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}(t=e.exports=n(528)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),!n)return;var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,a=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(o++,"%c"===e&&(a=o))})),e.splice(a,0,r)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=o,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(o())}).call(this,n(101))},229:function(e,t){angular.module("RecursionHelper",[]).factory("RecursionHelper",["$compile",function(e){return{compile:function(t,n){angular.isFunction(n)&&(n={post:n});var r,o=t.contents().remove();return{pre:n&&n.pre?n.pre:null,post:function(t,a){r||(r=e(o)),r(t,(function(e){a.append(e)})),n&&n.post&&n.post.apply(null,arguments)}}}}}])},230:function(e,t,n){"use strict";var r=n(3),o=n(67);r.a.controller("FreeTrialModalController",["$scope",function(e){e.buttonClass="btn-primary",e.startFreeTrial=function(t,n){return Object(o.b)(t,n,e)},e.paywallPrompt=function(e){return Object(o.a)(e)}}]),r.a.controller("UpgradeModalController",["$scope",function(e){e.buttonClass="btn-primary",e.upgradePlan=function(t){return Object(o.c)(t,e)}}])},238:function(e,t,n){"use strict";n(7),n(29);var r=n(34),o=n.n(r),a=n(3),i=(n(142),0),c=new Date;a.a.factory("eventTracking",["$http","localStorage",function(e,t){var n=function(){var e=t("mbEvents");return null==e&&t("mbEvents",e={}),e},r=function(e){return n()[e]||!1},a=function(e){var r=n();return r[e]=!0,t("mbEvents",r)};return{send:function(e,t,n,r){return ga("send","event",e,t,n,r)},sendGAOnce:function(e,t,n,o){if(!r(t))return a(t),this.send(e,t,n,o)},editingSessionHeartbeat:function(){if(c<=new Date){e({url:"/editingSession/".concat(window.project_id),method:"PUT",headers:{"X-CSRF-Token":window.csrfToken}});var t=++i<=2?30:i<=6?60*(i-2):300;return c=o()().add(t,"seconds").toDate()}},sendMB:function(e,t){null==t&&(t={}),fetch("/event/".concat(e),{method:"POST",body:JSON.stringify(t),keepalive:!0,headers:{"X-CSRF-Token":window.csrfToken,"Content-Type":"application/json",Accept:"application/json"}})},sendMBSampled:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.01;Math.random()<n&&this.sendMB(e,t)},sendMBOnce:function(e,t){r(e)||(a(e),this.sendMB(e,t))},eventInCache:function(e){return r(e)}}}]);$(".navbar a").on("click",(function(e){var t=$(e.target).attr("href");if(null!=t)return ga("send","event","navigation","top menu bar",t)}))},239:function(e,t,n){"use strict";n(36),n(59);var r=n(3);r.a.controller("SystemMessagesController",["$http","$scope",function(e,t){t.messages=[];var n=function(){!document.hidden&&navigator.onLine&&e.get("/system/messages").then((function(e){e.headers("content-type").includes("json")&&(t.messages=e.data)})).catch((function(){}))};n(),setInterval(n,9e5)}]);r.a.controller("SystemMessageController",["$scope","$sce",function(e,t){return e.hidden=$.localStorage("systemMessage.hide.".concat(e.message._id)),e.protected="protected"===e.message._id,e.htmlContent=e.message.content,e.hide=function(){if(!e.protected)return e.hidden=!0,$.localStorage("systemMessage.hide.".concat(e.message._id),!0)}}])},24:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n(10),n(163),n(7),n(6),n(11),n(26),n(57),n(22),n(8),n(5),n(13);var r=n(9),o=n.n(r),a=new Map;function i(e,t){if(a.has(e))return a.get(e);var n=document.head.querySelector('meta[name="'.concat(e,'"]'));if(!n)return t;var r,o=n.content;switch(n.dataset.type){case"boolean":r=n.hasAttribute("content");break;case"json":r=o?JSON.parse(o):void 0;break;default:r=o}return a.set(e,r),r}window.data=window.data||{},Array.from(document.querySelectorAll('meta[name^="ol-"]')).map((function(e){return e.name})).sort().forEach((function(e){var t=e.slice("ol-".length);o.a.set(window,t,i(e)),o.a.set(window.data,t,i(e))}))},240:function(e,t){e.exports=function(e,t){var n=!1;return function(){return n||(console.warn(t),n=!0),e.apply(this,arguments)}}},241:function(e,t){e.exports=function(e,t){var n=e.toLowerCase().replace(/[\.\(\)]/g,"");return"algoliasearch: `"+e+"` was replaced by `"+t+"`. Please see https://github.com/algolia/algoliasearch-client-javascript/wiki/Deprecated#"+n}},242:function(e,t,n){"use strict";var r=n(3);r.a.directive("stopPropagation",["$http",function(e){return{restrict:"A",link:function(e,t,n){return t.bind(n.stopPropagation,(function(e){return e.stopPropagation()}))}}}]);r.a.directive("preventDefault",["$http",function(e){return{restrict:"A",link:function(e,t,n){return t.bind(n.preventDefault,(function(e){return e.preventDefault()}))}}}])},243:function(e,t,n){"use strict";var r=n(3);function o(e){e.focus();var t=e.val();if(null!=e[0].setSelectionRange){var n=t.lastIndexOf(".");return-1===n&&(n=t.length),e[0].setSelectionRange(0,n)}}r.a.directive("focusWhen",["$timeout",function(e){return{restrict:"A",link:function(t,n,r){return t.$watch(r.focusWhen,(function(t){if(t)return e((function(){return n.focus()}))}))}}}]),r.a.directive("focusOn",["$timeout",function(e){return{restrict:"A",link:function(e,t,n){return e.$on(n.focusOn,(function(){return t.focus()}))}}}]),r.a.directive("selectWhen",["$timeout",function(e){return{restrict:"A",link:function(t,n,r){return t.$watch(r.selectWhen,(function(t){if(t)return e((function(){return n.select()}))}))}}}]),r.a.directive("selectOn",["$timeout",function(e){return{restrict:"A",link:function(e,t,n){return e.$on(n.selectOn,(function(){return t.select()}))}}}]),r.a.directive("selectNameWhen",["$timeout",function(e){return{restrict:"A",link:function(t,n,r){return t.$watch(r.selectNameWhen,(function(t){if(t)return e((function(){return o(n)}))}))}}}]),r.a.directive("selectNameOn",(function(){return{restrict:"A",link:function(e,t,n){return e.$on(n.selectNameOn,(function(){return o(t)}))}}})),r.a.directive("focus",["$timeout",function(e){return{scope:{trigger:"@focus"},link:function(t,n){return t.$watch("trigger",(function(t){if("true"===t)return e((function(){return n[0].focus()}))}))}}}])},244:function(e,t,n){"use strict";var r=n(3),o=n(200),a=n.n(o);r.a.directive("fineUpload",["$timeout",function(e){return{scope:{multiple:"=",endpoint:"@",templateId:"@",sizeLimit:"@",allowedExtensions:"=",onCompleteCallback:"=",onUploadCallback:"=",onValidateBatch:"=",onErrorCallback:"=",onSubmitCallback:"=",onCancelCallback:"=",autoUpload:"=",params:"=",control:"="},link:function(e,t,n){var r,o,i=e.multiple||!1,c=e.endpoint,s=e.templateId;o=null!=e.allowedExtensions?{allowedExtensions:e.allowedExtensions}:{},e.sizeLimit&&(o.sizeLimit=e.sizeLimit);var u=e.maxConnections||1,l=e.onCompleteCallback||function(){},d=e.onUploadCallback||function(){},f=e.onErrorCallback||function(){},p=e.onValidateBatch||function(){},m=e.onSubmitCallback||function(){},h=e.onCancelCallback||function(){};r=null==e.autoUpload||e.autoUpload;var y=e.params||{};y._csrf=window.csrfToken;var g=new a.a.FineUploader({element:t[0],multiple:i,autoUpload:r,disabledCancelForFormUploads:!0,validation:o,maxConnections:u,request:{endpoint:c,forceMultipart:!0,params:y,paramsInBody:!1},callbacks:{onComplete:l,onUpload:d,onValidateBatch:p,onError:f,onSubmit:m,onCancel:h},template:s,failedUploadTextDisplay:{mode:"custom",responseProperty:"error"}});return window.q=g,null!=e.control&&(e.control.q=g),g}}}])},245:function(e,t,n){"use strict";n(3).a.directive("onEnter",(function(){return function(e,t,n){return t.bind("keydown keypress",(function(t){if(13===t.which)return e.$apply((function(){return e.$eval(n.onEnter,{event:t})})),t.preventDefault()}))}}))},246:function(e,t,n){"use strict";n(13),n(7),n(5),n(8),n(6),n(12),n(15),n(16),n(10),n(11);function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){s=!0,i=e},f:function(){try{c||null==n.return||n.return()}finally{if(s)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n(3).a.factory("validateCaptcha",(function(){var e=[],t=function(t){var n,o=r(e);try{for(o.s();!(n=o.n()).done;){(0,n.value)(t)}}catch(e){o.e(e)}finally{o.f()}e=[]},n=null;return function(r,o){if(null==r&&(r=function(e){}),"undefined"==typeof grecaptcha||null===grecaptcha||o)return r();if(e.push(r),e.push((function(){return grecaptcha.reset()})),null==n){var a=$("#recaptcha")[0];n=grecaptcha.render(a,{callback:t})}return grecaptcha.execute(n)}}))},247:function(e,t,n){"use strict";n(3).a.factory("validateCaptchaV3",(function(){var e=window.grecaptcha,t=window.ExposedSettings;return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};e&&t&&t.recaptchaSiteKeyV3&&e.ready((function(){e.execute(t.recaptchaSiteKeyV3,{action:n}).then(r)}))}}))},248:function(e,t,n){"use strict";n(21);var r=n(3),o=n(34),a=n.n(o);a.a.updateLocale("en",{calendar:{lastDay:"[Yesterday]",sameDay:"[Today]",nextDay:"[Tomorrow]",lastWeek:"ddd, Do MMM YY",nextWeek:"ddd, Do MMM YY",sameElse:"ddd, Do MMM YY"}}),r.a.filter("formatDate",(function(){return function(e,t){return e?(null==t&&(t="Do MMM YYYY, h:mm a"),a()(e).format(t)):"N/A"}})),r.a.filter("utcDate",(function(){return function(e,t){return e?(null==t&&(t="D MMM YYYY, HH:mm:ss"),a()(e).utc().format(t)+" UTC"):"N/A"}})),r.a.filter("relativeDate",(function(){return function(e){return a()(e).calendar()}})),r.a.filter("fromNowDate",(function(){return function(e){return a()(e).fromNow()}}))},25:function(e,t,n){"use strict";n.d(t,"c",(function(){return y})),n.d(t,"d",(function(){return g})),n.d(t,"e",(function(){return v})),n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return w}));n(27),n(12),n(21),n(46),n(26),n(47),n(114),n(102),n(15),n(16),n(10),n(6),n(11),n(231),n(7),n(29),n(5);var r=n(109);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=["body","headers","method","credentials"];function i(e,t,n,r,o,a,i){try{var c=e[a](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function c(e){i(a,r,o,c,s,"next",e)}function s(e){i(a,r,o,c,s,"throw",e)}c(void 0)}))}}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){return S(e,m(m({},t),{},{method:"GET"}))}function g(e,t){return S(e,m(m({},t),{},{method:"POST"}))}function v(e,t){return S(e,m(m({},t),{},{method:"PUT"}))}function b(e,t){return S(e,m(m({},t),{},{method:"DELETE"}))}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(FetchError,e);var t=l(FetchError);function FetchError(e,n,r,o,a){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,FetchError),(i=t.call(this,e,{statusCode:o?o.status:void 0})).url=n,i.options=r,i.response=o,i.data=a,i}return FetchError}(n.n(r).a);function S(e,t){var n=t.body,r=void 0===n?{}:n,o=t.headers,i=void 0===o?{}:o,c=t.method,u=void 0===c?"GET":c,l=t.credentials,d=void 0===l?"same-origin":l,f=m(m({},s(t,a)),{},{headers:m(m({},i),{},{"Content-Type":"application/json","X-Csrf-Token":window.csrfToken,Accept:"application/json"}),credentials:d,method:u});return"GET"!==u&&"HEAD"!==u&&(f.body=JSON.stringify(r)),new Promise((function(t,n){fetch(e,f).then((function(r){return function(e){return T.apply(this,arguments)}(r).then((function(o){r.ok?t(o):n(new w(r.statusText,e,f,r,o))}),(function(t){n(new w("There was an error parsing the response body",e,f,r).withCause(t))}))}),(function(t){"AbortError"!==t.name&&n(new w("There was an error fetching the JSON",e,f).withCause(t))}))}))}function T(){return(T=c(regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.headers.get("Content-Type"),!/application\/json/.test(n)){e.next=3;break}return e.abrupt("return",t.json());case 3:if(!/text\/plain/.test(n)){e.next=8;break}return e.next=6,t.text();case 6:return r=e.sent,e.abrupt("return",{message:r});case 8:if(!/text\/html/.test(n)){e.next=14;break}return e.next=11,t.text();case 11:if(o=e.sent,/^\s*</.test(o)){e.next=14;break}return e.abrupt("return",{message:o});case 14:return e.abrupt("return",{});case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},277:function(e,t,n){"use strict";var r=n(520),o=n(531);e.exports=o(r,"Browser")},3:function(e,t,n){"use strict";n(18),n(38),n(69);var r=n(24);n.p=Object(r.a)("ol-baseAssetPath");n(317),n(318),n(319),n(9),n(320),n(321),n(322),n(323),n(324),n(166),n(325),n(326),n(327);var o=n(58),a=(n(229),n(36),angular.module("ErrorCatcher",[]));a.config(["$provide",function(e){return e.decorator("$exceptionHandler",["$log","$delegate",function(e,t){return function(e,n){if("Possibly unhandled rejection: canceled"!==e||void 0!==n)return Object(o.a)(e,(function(e){return e.setTag("handler","angular-exception-handler"),e})),t(e,n)}}])}]),a.factory("unAuthHttpResponseInterceptor",["$q","$location",function(e,t){return{responseError:function responseError(t){return[401,403].includes(t.status)&&!(null!=t.config?t.config.disableAutoLoginRedirect:void 0)&&(window.location.pathname.match(/^\/project/)?window.location="/login?redir=".concat(encodeURI(window.location.pathname)):window.location="/login"),e.reject(t)}}}]),a.config(["$httpProvider",function(e){return e.interceptors.push("unAuthHttpResponseInterceptor")}]);n(142);function i(){try{var e;return(e=$).sessionStorage.apply(e,arguments)}catch(e){return console.error("sessionStorage exception",e),null}}angular.module("sessionStorage",[]).value("sessionStorage",i);var c=angular.module("SharelatexApp",["ui.bootstrap","autocomplete","RecursionHelper","ng-context-menu","ngSanitize","ipCookie","ErrorCatcher","localStorage","sessionStorage","ui.select"]).config(["$qProvider","$httpProvider","uiSelectConfig",function(e,t,n){return e.errorOnUnhandledRejections(!1),n.spinnerClass="fa fa-refresh ui-select-spin",r="undefined"!=typeof MathJax&&null!==MathJax?MathJax.Hub:void 0,o=function(e){return e.Config({messageStyle:"none",imageFont:null,"fast-preview":{disabled:!0},"HTML-CSS":{availableFonts:["TeX"],scale:110,matchFontHeight:!1},TeX:{equationNumbers:{autoNumber:"AMS"},useLabelIDs:!1},skipStartupTypeset:!0,tex2jax:{processEscapes:!0,inlineMath:[["\\(","\\)"]],displayMath:[["$$","$$"],["\\[","\\]"]]}})},null!=r?o(r):void 0;var r,o}]);c.run(["$rootScope","$templateCache",function(e,t){e.usersEmail=Object(r.a)("ol-usersEmail"),t.put("bootstrap/match.tpl.html",'<div class="ui-select-match" ng-hide="$select.open && $select.searchEnabled" ng-disabled="$select.disabled" ng-class="{\'btn-default-focus\':$select.focus}"><span tabindex="-1" class="btn btn-default form-control ui-select-toggle" aria-label="{{ $select.baseTitle }} activate" ng-disabled="$select.disabled" ng-click="$select.activate()" style="outline: 0;"><span ng-show="$select.isEmpty()" class="ui-select-placeholder text-muted">{{$select.placeholder}}</span> <span ng-hide="$select.isEmpty()" class="ui-select-match-text pull-left" ng-class="{\'ui-select-allow-clear\': $select.allowClear && !$select.isEmpty()}" ng-transclude=""></span> <i class="caret pull-right" ng-click="$select.toggle($event)"></i> <a ng-show="$select.allowClear && !$select.isEmpty() && ($select.disabled !== true)" aria-label="{{ $select.baseTitle }} clear" style="margin-right: 10px" ng-click="$select.clear($event)" class="btn btn-xs btn-link pull-right"><i class="fa fa-times" aria-hidden="true"></i></a></span></div>')}]);var s=window.location.search.match(/debug=true/);window.sl_debugging=s,window.sl_console=s?console:{log:function(){}};t.a=c},363:function(e,t,n){var r=n(364),o=n(240),a=n(241);function i(e,t){this.indexName=t,this.as=e,this.typeAheadArgs=null,this.typeAheadValueOption=null,this.cache={}}e.exports=i,i.prototype.clearCache=function(){this.cache={}},i.prototype.search=r("query"),i.prototype.similarSearch=o(r("similarQuery"),a("index.similarSearch(query[, callback])","index.search({ similarQuery: query }[, callback])")),i.prototype.browse=function(e,t,r){var o,a,i=n(365),c=this;0===arguments.length||1===arguments.length&&"function"==typeof arguments[0]?(o=0,r=arguments[0],e=void 0):"number"==typeof arguments[0]?(o=arguments[0],"number"==typeof arguments[1]?a=arguments[1]:"function"==typeof arguments[1]&&(r=arguments[1],a=void 0),e=void 0,t=void 0):"object"==typeof arguments[0]?("function"==typeof arguments[1]&&(r=arguments[1]),t=arguments[0],e=void 0):"string"==typeof arguments[0]&&"function"==typeof arguments[1]&&(r=arguments[1],t=void 0),t=i({},t||{},{page:o,hitsPerPage:a,query:e});var s=this.as._getSearchParams(t,"");return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(c.indexName)+"/browse",body:{params:s},hostType:"read",callback:r})},i.prototype.browseFrom=function(e,t){return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/browse",body:{cursor:e},hostType:"read",callback:t})},i.prototype.searchForFacetValues=function(e,t){var r=n(92),o=n(366);if(void 0===e.facetName||void 0===e.facetQuery)throw new Error("Usage: index.searchForFacetValues({facetName, facetQuery, ...params}[, callback])");var a=e.facetName,i=o(r(e),(function(e){return"facetName"===e})),c=this.as._getSearchParams(i,"");return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/facets/"+encodeURIComponent(a)+"/query",hostType:"read",body:{params:c},callback:t})},i.prototype.searchFacet=o((function(e,t){return this.searchForFacetValues(e,t)}),a("index.searchFacet(params[, callback])","index.searchForFacetValues(params[, callback])")),i.prototype._search=function(e,t,n,r){return this.as._jsonRequest({cache:this.cache,method:"POST",url:t||"/1/indexes/"+encodeURIComponent(this.indexName)+"/query",body:{params:e},hostType:"read",fallback:{method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName),body:{params:e}},callback:n,additionalUA:r})},i.prototype.getObject=function(e,t,n){var r=this;1!==arguments.length&&"function"!=typeof t||(n=t,t=void 0);var o="";if(void 0!==t){o="?attributes=";for(var a=0;a<t.length;++a)0!==a&&(o+=","),o+=t[a]}return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(r.indexName)+"/"+encodeURIComponent(e)+o,hostType:"read",callback:n})},i.prototype.getObjects=function(e,t,r){var o=n(66),a=n(120),i="Usage: index.getObjects(arrayOfObjectIDs[, callback])";if(!o(e))throw new Error(i);var c=this;1!==arguments.length&&"function"!=typeof t||(r=t,t=void 0);var s={requests:a(e,(function(e){var n={indexName:c.indexName,objectID:e};return t&&(n.attributesToRetrieve=t.join(",")),n}))};return this.as._jsonRequest({method:"POST",url:"/1/indexes/*/objects",hostType:"read",body:s,callback:r})},i.prototype.as=null,i.prototype.indexName=null,i.prototype.typeAheadArgs=null,i.prototype.typeAheadValueOption=null},364:function(e,t,n){e.exports=function(e,t){return function(n,o,a){if("function"==typeof n&&"object"==typeof o||"object"==typeof a)throw new r.AlgoliaSearchError("index.search usage is index.search(query, params, cb)");0===arguments.length||"function"==typeof n?(a=n,n=""):1!==arguments.length&&"function"!=typeof o||(a=o,o=void 0),"object"==typeof n&&null!==n?(o=n,n=void 0):null==n&&(n="");var i,c="";return void 0!==n&&(c+=e+"="+encodeURIComponent(n)),void 0!==o&&(o.additionalUA&&(i=o.additionalUA,delete o.additionalUA),c=this.as._getSearchParams(o,c)),this._search(c,t,a,i)}};var r=n(118)},365:function(e,t,n){var r=n(119);e.exports=function e(t){var n=Array.prototype.slice.call(arguments);return r(n,(function(n){for(var r in n)n.hasOwnProperty(r)&&("object"==typeof t[r]&&"object"==typeof n[r]?t[r]=e({},t[r],n[r]):void 0!==n[r]&&(t[r]=n[r]))})),t}},366:function(e,t,n){e.exports=function(e,t){var r=n(522),o=n(119),a={};return o(r(e),(function(n){!0!==t(n)&&(a[n]=e[n])})),a}},367:function(e,t){e.exports=function(e,t){t(e,0)}},42:function(e,t,n){"use strict";n(30),n(8),n(6),n(18),n(38),n(13),n(7),n(54),n(12),n(15),n(16),n(10),n(11),n(5);var r=n(108),o=n.n(r);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}t.a={getColorScheme:function(e,t){return this.isDarkTheme(t)?{cursor:"hsl(".concat(e,", 70%, 50%)"),labelBackgroundColor:"hsl(".concat(e,", 70%, 50%)"),highlightBackgroundColor:"hsl(".concat(e,", 100%, 28%);"),strikeThroughBackgroundColor:"hsl(".concat(e,", 100%, 20%);"),strikeThroughForegroundColor:"hsl(".concat(e,", 100%, 60%);")}:{cursor:"hsl(".concat(e,", 70%, 50%)"),labelBackgroundColor:"hsl(".concat(e,", 70%, 50%)"),highlightBackgroundColor:"hsl(".concat(e,", 70%, 85%);"),strikeThroughBackgroundColor:"hsl(".concat(e,", 70%, 95%);"),strikeThroughForegroundColor:"hsl(".concat(e,", 70%, 40%);")}},isDarkTheme:function(e){var t=e.find(".ace_editor").css("background-color"),n=a(Array.from(t.match(/rgb\(([0-9]+), ([0-9]+), ([0-9]+)\)/)),4),r=(n[0],n[1]),o=n[2],i=n[3];return(r=parseInt(r,10))+(o=parseInt(o,10))+(i=parseInt(i,10))<384},ANONYMOUS_HUE:100,OWN_HUE:200,OWN_HUE_BLOCKED_SIZE:20,TOTAL_HUES:360,getHueForUserId:function(e){if(null==e||"anonymous-user"===e)return this.ANONYMOUS_HUE;if(window.user.id===e)return this.OWN_HUE;var t=this.getHueForId(e);return t>this.OWN_HUE-this.OWN_HUE_BLOCKED_SIZE&&t<this.OWN_HUE+this.OWN_HUE_BLOCKED_SIZE&&(t=(t-=this.OWN_HUE)+this.TOTAL_HUES-this.OWN_HUE_BLOCKED_SIZE),t},getHueForTagId:function(e){return this.getHueForId(e)},getHueForId:function(e){var t=o()(e);return parseInt(t.toString().slice(0,8),16)%(this.TOTAL_HUES-2*this.OWN_HUE_BLOCKED_SIZE)}}},520:function(e,t,n){e.exports=u;var r=n(521),o=n(240),a=n(241),i=n(526),c=n(146),s=n(118);function u(){i.apply(this,arguments)}function l(){throw new s.AlgoliaSearchError("Not implemented in this environment.\nIf you feel this is a mistake, write to support@algolia.com")}c(u,i),u.prototype.deleteIndex=function(e,t){return this._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(e),hostType:"write",callback:t})},u.prototype.moveIndex=function(e,t,n){var r={operation:"move",destination:t};return this._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(e)+"/operation",body:r,hostType:"write",callback:n})},u.prototype.copyIndex=function(e,t,n,r){var o={operation:"copy",destination:t},a=r;if("function"==typeof n)a=n;else if(Array.isArray(n)&&n.length>0)o.scope=n;else if(void 0!==n)throw new Error("the scope given to `copyIndex` was not an array with settings, synonyms or rules");return this._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(e)+"/operation",body:o,hostType:"write",callback:a})},u.prototype.getLogs=function(e,t,r){var o=n(92),a={};return"object"==typeof e?(a=o(e),r=t):0===arguments.length||"function"==typeof e?r=e:1===arguments.length||"function"==typeof t?(r=t,a.offset=e):(a.offset=e,a.length=t),void 0===a.offset&&(a.offset=0),void 0===a.length&&(a.length=10),this._jsonRequest({method:"GET",url:"/1/logs?"+this._getSearchParams(a,""),hostType:"read",callback:r})},u.prototype.listIndexes=function(e,t){var n="";return void 0===e||"function"==typeof e?t=e:n="?page="+e,this._jsonRequest({method:"GET",url:"/1/indexes"+n,hostType:"read",callback:t})},u.prototype.initIndex=function(e){return new r(this,e)},u.prototype.initAnalytics=function(e){return n(530)(this.applicationID,this.apiKey,e)},u.prototype.listUserKeys=o((function(e){return this.listApiKeys(e)}),a("client.listUserKeys()","client.listApiKeys()")),u.prototype.listApiKeys=function(e){return this._jsonRequest({method:"GET",url:"/1/keys",hostType:"read",callback:e})},u.prototype.getUserKeyACL=o((function(e,t){return this.getApiKey(e,t)}),a("client.getUserKeyACL()","client.getApiKey()")),u.prototype.getApiKey=function(e,t){return this._jsonRequest({method:"GET",url:"/1/keys/"+e,hostType:"read",callback:t})},u.prototype.deleteUserKey=o((function(e,t){return this.deleteApiKey(e,t)}),a("client.deleteUserKey()","client.deleteApiKey()")),u.prototype.deleteApiKey=function(e,t){return this._jsonRequest({method:"DELETE",url:"/1/keys/"+e,hostType:"write",callback:t})},u.prototype.restoreApiKey=function(e,t){return this._jsonRequest({method:"POST",url:"/1/keys/"+e+"/restore",hostType:"write",callback:t})},u.prototype.addUserKey=o((function(e,t,n){return this.addApiKey(e,t,n)}),a("client.addUserKey()","client.addApiKey()")),u.prototype.addApiKey=function(e,t,r){var o=n(66),a="Usage: client.addApiKey(arrayOfAcls[, params, callback])";if(!o(e))throw new Error(a);1!==arguments.length&&"function"!=typeof t||(r=t,t=null);var i={acl:e};return t&&(i.validity=t.validity,i.maxQueriesPerIPPerHour=t.maxQueriesPerIPPerHour,i.maxHitsPerQuery=t.maxHitsPerQuery,i.indexes=t.indexes,i.description=t.description,t.queryParameters&&(i.queryParameters=this._getSearchParams(t.queryParameters,"")),i.referers=t.referers),this._jsonRequest({method:"POST",url:"/1/keys",body:i,hostType:"write",callback:r})},u.prototype.addUserKeyWithValidity=o((function(e,t,n){return this.addApiKey(e,t,n)}),a("client.addUserKeyWithValidity()","client.addApiKey()")),u.prototype.updateUserKey=o((function(e,t,n,r){return this.updateApiKey(e,t,n,r)}),a("client.updateUserKey()","client.updateApiKey()")),u.prototype.updateApiKey=function(e,t,r,o){var a=n(66),i="Usage: client.updateApiKey(key, arrayOfAcls[, params, callback])";if(!a(t))throw new Error(i);2!==arguments.length&&"function"!=typeof r||(o=r,r=null);var c={acl:t};return r&&(c.validity=r.validity,c.maxQueriesPerIPPerHour=r.maxQueriesPerIPPerHour,c.maxHitsPerQuery=r.maxHitsPerQuery,c.indexes=r.indexes,c.description=r.description,r.queryParameters&&(c.queryParameters=this._getSearchParams(r.queryParameters,"")),c.referers=r.referers),this._jsonRequest({method:"PUT",url:"/1/keys/"+e,body:c,hostType:"write",callback:o})},u.prototype.startQueriesBatch=o((function(){this._batch=[]}),a("client.startQueriesBatch()","client.search()")),u.prototype.addQueryInBatch=o((function(e,t,n){this._batch.push({indexName:e,query:t,params:n})}),a("client.addQueryInBatch()","client.search()")),u.prototype.sendQueriesBatch=o((function(e){return this.search(this._batch,e)}),a("client.sendQueriesBatch()","client.search()")),u.prototype.batch=function(e,t){if(!n(66)(e))throw new Error("Usage: client.batch(operations[, callback])");return this._jsonRequest({method:"POST",url:"/1/indexes/*/batch",body:{requests:e},hostType:"write",callback:t})},u.prototype.assignUserID=function(e,t){if(!e.userID||!e.cluster)throw new s.AlgoliaSearchError("You have to provide both a userID and cluster",e);return this._jsonRequest({method:"POST",url:"/1/clusters/mapping",hostType:"write",body:{cluster:e.cluster},callback:t,headers:{"x-algolia-user-id":e.userID}})},u.prototype.assignUserIDs=function(e,t){if(!e.userIDs||!e.cluster)throw new s.AlgoliaSearchError("You have to provide both an array of userIDs and cluster",e);return this._jsonRequest({method:"POST",url:"/1/clusters/mapping/batch",hostType:"write",body:{cluster:e.cluster,users:e.userIDs},callback:t})},u.prototype.getTopUserID=function(e){return this._jsonRequest({method:"GET",url:"/1/clusters/mapping/top",hostType:"read",callback:e})},u.prototype.getUserID=function(e,t){if(!e.userID)throw new s.AlgoliaSearchError("You have to provide a userID",{debugData:e});return this._jsonRequest({method:"GET",url:"/1/clusters/mapping/"+e.userID,hostType:"read",callback:t})},u.prototype.listClusters=function(e){return this._jsonRequest({method:"GET",url:"/1/clusters",hostType:"read",callback:e})},u.prototype.listUserIDs=function(e,t){return this._jsonRequest({method:"GET",url:"/1/clusters/mapping",body:e,hostType:"read",callback:t})},u.prototype.removeUserID=function(e,t){if(!e.userID)throw new s.AlgoliaSearchError("You have to provide a userID",{debugData:e});return this._jsonRequest({method:"DELETE",url:"/1/clusters/mapping",hostType:"write",callback:t,headers:{"x-algolia-user-id":e.userID}})},u.prototype.searchUserIDs=function(e,t){return this._jsonRequest({method:"POST",url:"/1/clusters/mapping/search",body:e,hostType:"read",callback:t})},u.prototype.setPersonalizationStrategy=function(e,t){return this._jsonRequest({method:"POST",url:"/1/recommendation/personalization/strategy",body:e,hostType:"write",callback:t})},u.prototype.getPersonalizationStrategy=function(e){return this._jsonRequest({method:"GET",url:"/1/recommendation/personalization/strategy",hostType:"read",callback:e})},u.prototype.destroy=l,u.prototype.enableRateLimitForward=l,u.prototype.disableRateLimitForward=l,u.prototype.useSecuredAPIKey=l,u.prototype.disableSecuredAPIKey=l,u.prototype.generateSecuredApiKey=l,u.prototype.getSecuredApiKeyRemainingValidity=l},521:function(e,t,n){var r=n(146),o=n(363),a=n(240),i=n(241),c=n(367),s=n(118),u=a((function(){}),i("forwardToSlaves","forwardToReplicas"));function l(){o.apply(this,arguments)}function d(e,t,n){return function n(r,o){var a={page:r||0,hitsPerPage:t||100},i=o||[];return e(a).then((function(e){var t=e.hits,r=e.nbHits,o=t.map((function(e){return delete e._highlightResult,e})),c=i.concat(o);return c.length<r?n(a.page+1,c):c}))}().then((function(e){if("function"!=typeof n)return e;n(e)}))}e.exports=l,r(l,o),l.prototype.addObject=function(e,t,n){var r=this;return 1!==arguments.length&&"function"!=typeof t||(n=t,t=void 0),this.as._jsonRequest({method:void 0!==t?"PUT":"POST",url:"/1/indexes/"+encodeURIComponent(r.indexName)+(void 0!==t?"/"+encodeURIComponent(t):""),body:e,hostType:"write",callback:n})},l.prototype.addObjects=function(e,t){if(!n(66)(e))throw new Error("Usage: index.addObjects(arrayOfObjects[, callback])");for(var r={requests:[]},o=0;o<e.length;++o){var a={action:"addObject",body:e[o]};r.requests.push(a)}return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/batch",body:r,hostType:"write",callback:t})},l.prototype.partialUpdateObject=function(e,t,n){1!==arguments.length&&"function"!=typeof t||(n=t,t=void 0);var r=this,o="/1/indexes/"+encodeURIComponent(r.indexName)+"/"+encodeURIComponent(e.objectID)+"/partial";return!1===t&&(o+="?createIfNotExists=false"),this.as._jsonRequest({method:"POST",url:o,body:e,hostType:"write",callback:n})},l.prototype.partialUpdateObjects=function(e,t,r){1!==arguments.length&&"function"!=typeof t||(r=t,t=!0);var o=n(66),a="Usage: index.partialUpdateObjects(arrayOfObjects[, callback])";if(!o(e))throw new Error(a);for(var i=this,c={requests:[]},s=0;s<e.length;++s){var u={action:!0===t?"partialUpdateObject":"partialUpdateObjectNoCreate",objectID:e[s].objectID,body:e[s]};c.requests.push(u)}return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(i.indexName)+"/batch",body:c,hostType:"write",callback:r})},l.prototype.saveObject=function(e,t){return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/"+encodeURIComponent(e.objectID),body:e,hostType:"write",callback:t})},l.prototype.saveObjects=function(e,t){if(!n(66)(e))throw new Error("Usage: index.saveObjects(arrayOfObjects[, callback])");for(var r={requests:[]},o=0;o<e.length;++o){var a={action:"updateObject",objectID:e[o].objectID,body:e[o]};r.requests.push(a)}return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/batch",body:r,hostType:"write",callback:t})},l.prototype.deleteObject=function(e,t){if("function"==typeof e||"string"!=typeof e&&"number"!=typeof e){var n=new s.AlgoliaSearchError(e&&"function"!=typeof e?"ObjectID must be a string":"Cannot delete an object without an objectID");return"function"==typeof(t=e)?t(n):this.as._promise.reject(n)}return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/"+encodeURIComponent(e),hostType:"write",callback:t})},l.prototype.deleteObjects=function(e,t){var r=n(66),o=n(120);if(!r(e))throw new Error("Usage: index.deleteObjects(arrayOfObjectIDs[, callback])");var a={requests:o(e,(function(e){return{action:"deleteObject",objectID:e,body:{objectID:e}}}))};return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/batch",body:a,hostType:"write",callback:t})},l.prototype.deleteByQuery=a((function(e,t,r){var o=n(92),a=n(120),i=this,s=i.as;1===arguments.length||"function"==typeof t?(r=t,t={}):t=o(t),t.attributesToRetrieve="objectID",t.hitsPerPage=1e3,t.distinct=!1,this.clearCache();var u=this.search(e,t).then(l);function l(e){if(0===e.nbHits)return e;var t=a(e.hits,(function(e){return e.objectID}));return i.deleteObjects(t).then(d).then(f)}function d(e){return i.waitTask(e.taskID)}function f(){return i.deleteByQuery(e,t)}if(!r)return u;function p(){c((function(){r(null)}),s._setTimeout||setTimeout)}function m(e){c((function(){r(e)}),s._setTimeout||setTimeout)}u.then(p,m)}),i("index.deleteByQuery()","index.deleteBy()")),l.prototype.deleteBy=function(e,t){return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/deleteByQuery",body:{params:this.as._getSearchParams(e,"")},hostType:"write",callback:t})},l.prototype.browseAll=function(e,t){"object"==typeof e&&(t=e,e=void 0);var r=n(365),o=new(n(524)),a=this.as,i=this,c=a._getSearchParams(r({},t||{},{query:e}),"");function s(e){var t;o._stopped||(t=void 0!==e?{cursor:e}:{params:c},a._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(i.indexName)+"/browse",hostType:"read",body:t,callback:u}))}function u(e,t){o._stopped||(e?o._error(e):(o._result(t),void 0!==t.cursor?s(t.cursor):o._end()))}return s(),o},l.prototype.ttAdapter=a((function(e){var t=this;return function(n,r,o){var a;a="function"==typeof o?o:r,t.search(n,e,(function(e,t){a(e||t.hits)}))}}),"ttAdapter is not necessary anymore and will be removed in the next version,\nhave a look at autocomplete.js (https://github.com/algolia/autocomplete.js)"),l.prototype.waitTask=function(e,t){var n=0,r=this,o=r.as,a=function t(){return o._jsonRequest({method:"GET",hostType:"read",url:"/1/indexes/"+encodeURIComponent(r.indexName)+"/task/"+e}).then((function(e){var r=100*++n*n;return r>5e3&&(r=5e3),"published"!==e.status?o._promise.delay(r).then(t):e}))}();if(!t)return a;a.then((function(e){c((function(){t(null,e)}),o._setTimeout||setTimeout)}),(function(e){c((function(){t(e)}),o._setTimeout||setTimeout)}))},l.prototype.clearIndex=function(e){return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/clear",hostType:"write",callback:e})},l.prototype.getSettings=function(e,t){1===arguments.length&&"function"==typeof e&&(t=e,e={}),e=e||{};var n=encodeURIComponent(this.indexName);return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+n+"/settings?getVersion=2"+(e.advanced?"&advanced="+e.advanced:""),hostType:"read",callback:t})},l.prototype.searchSynonyms=function(e,t){return"function"==typeof e?(t=e,e={}):void 0===e&&(e={}),this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/search",body:e,hostType:"read",callback:t})},l.prototype.exportSynonyms=function(e,t){return d(this.searchSynonyms.bind(this),e,t)},l.prototype.saveSynonym=function(e,t,n){"function"==typeof t?(n=t,t={}):void 0===t&&(t={}),void 0!==t.forwardToSlaves&&u();var r=t.forwardToSlaves||t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/"+encodeURIComponent(e.objectID)+"?forwardToReplicas="+r,body:e,hostType:"write",callback:n})},l.prototype.getSynonym=function(e,t){return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/"+encodeURIComponent(e),hostType:"read",callback:t})},l.prototype.deleteSynonym=function(e,t,n){"function"==typeof t?(n=t,t={}):void 0===t&&(t={}),void 0!==t.forwardToSlaves&&u();var r=t.forwardToSlaves||t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/"+encodeURIComponent(e)+"?forwardToReplicas="+r,hostType:"write",callback:n})},l.prototype.clearSynonyms=function(e,t){"function"==typeof e?(t=e,e={}):void 0===e&&(e={}),void 0!==e.forwardToSlaves&&u();var n=e.forwardToSlaves||e.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/clear?forwardToReplicas="+n,hostType:"write",callback:t})},l.prototype.batchSynonyms=function(e,t,n){"function"==typeof t?(n=t,t={}):void 0===t&&(t={}),void 0!==t.forwardToSlaves&&u();var r=t.forwardToSlaves||t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/batch?forwardToReplicas="+r+"&replaceExistingSynonyms="+(t.replaceExistingSynonyms?"true":"false"),hostType:"write",body:e,callback:n})},l.prototype.searchRules=function(e,t){return"function"==typeof e?(t=e,e={}):void 0===e&&(e={}),this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/search",body:e,hostType:"read",callback:t})},l.prototype.exportRules=function(e,t){return d(this.searchRules.bind(this),e,t)},l.prototype.saveRule=function(e,t,n){if("function"==typeof t?(n=t,t={}):void 0===t&&(t={}),!e.objectID)throw new s.AlgoliaSearchError("Missing or empty objectID field for rule");var r=!0===t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/"+encodeURIComponent(e.objectID)+"?forwardToReplicas="+r,body:e,hostType:"write",callback:n})},l.prototype.getRule=function(e,t){return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/"+encodeURIComponent(e),hostType:"read",callback:t})},l.prototype.deleteRule=function(e,t,n){"function"==typeof t?(n=t,t={}):void 0===t&&(t={});var r=!0===t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/"+encodeURIComponent(e)+"?forwardToReplicas="+r,hostType:"write",callback:n})},l.prototype.clearRules=function(e,t){"function"==typeof e?(t=e,e={}):void 0===e&&(e={});var n=!0===e.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/clear?forwardToReplicas="+n,hostType:"write",callback:t})},l.prototype.batchRules=function(e,t,n){"function"==typeof t?(n=t,t={}):void 0===t&&(t={});var r=!0===t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/batch?forwardToReplicas="+r+"&clearExistingRules="+(!0===t.clearExistingRules?"true":"false"),hostType:"write",body:e,callback:n})},l.prototype.exists=function(e){var t=this.getSettings().then((function(){return!0})).catch((function(e){if(e instanceof s.AlgoliaSearchError&&404===e.statusCode)return!1;throw e}));if("function"!=typeof e)return t;t.then((function(t){e(null,t)})).catch((function(t){e(t)}))},l.prototype.findObject=function(e,t,n){var r=void 0===(t=void 0===t?{}:t).paginate||t.paginate,o=void 0!==t.query?t.query:"",a=this,i=0,c=function(){return t.page=i,a.search(o,t).then((function(t){for(var n=t.hits,o=0;o<n.length;o++){var a=n[o];if(e(a))return{object:a,position:o,page:i}}if(i+=1,!r||i>=t.nbPages)throw new s.ObjectNotFound("Object not found");return c()}))},u=c(i);if(void 0===n)return u;u.then((function(e){n(null,e)})).catch((function(e){n(e)}))},l.prototype.getObjectPosition=function(e,t){for(var n=e.hits,r=0;r<n.length;r++)if(n[r].objectID===t)return r;return-1},l.prototype.setSettings=function(e,t,n){1!==arguments.length&&"function"!=typeof t||(n=t,t={}),void 0!==t.forwardToSlaves&&u();var r=t.forwardToSlaves||t.forwardToReplicas?"true":"false",o=this;return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(o.indexName)+"/settings?forwardToReplicas="+r,hostType:"write",body:e,callback:n})},l.prototype.listUserKeys=a((function(e){return this.listApiKeys(e)}),i("index.listUserKeys()","client.listApiKeys()")),l.prototype.listApiKeys=a((function(e){return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys",hostType:"read",callback:e})}),i("index.listApiKeys()","client.listApiKeys()")),l.prototype.getUserKeyACL=a((function(e,t){return this.getApiKey(e,t)}),i("index.getUserKeyACL()","client.getApiKey()")),l.prototype.getApiKey=a((function(e,t){return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys/"+e,hostType:"read",callback:t})}),i("index.getApiKey()","client.getApiKey()")),l.prototype.deleteUserKey=a((function(e,t){return this.deleteApiKey(e,t)}),i("index.deleteUserKey()","client.deleteApiKey()")),l.prototype.deleteApiKey=a((function(e,t){return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys/"+e,hostType:"write",callback:t})}),i("index.deleteApiKey()","client.deleteApiKey()")),l.prototype.addUserKey=a((function(e,t,n){return this.addApiKey(e,t,n)}),i("index.addUserKey()","client.addApiKey()")),l.prototype.addApiKey=a((function(e,t,r){var o=n(66),a="Usage: index.addApiKey(arrayOfAcls[, params, callback])";if(!o(e))throw new Error(a);1!==arguments.length&&"function"!=typeof t||(r=t,t=null);var i={acl:e};return t&&(i.validity=t.validity,i.maxQueriesPerIPPerHour=t.maxQueriesPerIPPerHour,i.maxHitsPerQuery=t.maxHitsPerQuery,i.description=t.description,t.queryParameters&&(i.queryParameters=this.as._getSearchParams(t.queryParameters,"")),i.referers=t.referers),this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys",body:i,hostType:"write",callback:r})}),i("index.addApiKey()","client.addApiKey()")),l.prototype.addUserKeyWithValidity=a((function(e,t,n){return this.addApiKey(e,t,n)}),i("index.addUserKeyWithValidity()","client.addApiKey()")),l.prototype.updateUserKey=a((function(e,t,n,r){return this.updateApiKey(e,t,n,r)}),i("index.updateUserKey()","client.updateApiKey()")),l.prototype.updateApiKey=a((function(e,t,r,o){var a=n(66),i="Usage: index.updateApiKey(key, arrayOfAcls[, params, callback])";if(!a(t))throw new Error(i);2!==arguments.length&&"function"!=typeof r||(o=r,r=null);var c={acl:t};return r&&(c.validity=r.validity,c.maxQueriesPerIPPerHour=r.maxQueriesPerIPPerHour,c.maxHitsPerQuery=r.maxHitsPerQuery,c.description=r.description,r.queryParameters&&(c.queryParameters=this.as._getSearchParams(r.queryParameters,"")),c.referers=r.referers),this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys/"+e,body:c,hostType:"write",callback:o})}),i("index.updateApiKey()","client.updateApiKey()"))},522:function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=Array.prototype.slice,i=n(523),c=Object.prototype.propertyIsEnumerable,s=!c.call({toString:null},"toString"),u=c.call((function(){}),"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},f={$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&r.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),m=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===o.call(e),a=i(e),c=t&&"[object String]"===o.call(e),f=[];if(!t&&!n&&!a)throw new TypeError("Object.keys called on a non-object");var m=u&&n;if(c&&e.length>0&&!r.call(e,0))for(var h=0;h<e.length;++h)f.push(String(h));if(a&&e.length>0)for(var y=0;y<e.length;++y)f.push(String(y));else for(var g in e)m&&"prototype"===g||!r.call(e,g)||f.push(String(g));if(s)for(var v=function(e){if("undefined"==typeof window||!p)return d(e);try{return d(e)}catch(e){return!1}}(e),b=0;b<l.length;++b)v&&"constructor"===l[b]||!r.call(e,l[b])||f.push(l[b]);return f};m.shim=function(){if(Object.keys){if(!function(){return 2===(Object.keys(arguments)||"").length}(1,2)){var e=Object.keys;Object.keys=function(t){return i(t)?e(a.call(t)):e(t)}}}else Object.keys=m;return Object.keys||m},e.exports=m},523:function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t=r.call(e),n="[object Arguments]"===t;return n||(n="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===r.call(e.callee)),n}},524:function(e,t,n){"use strict";function r(){}e.exports=r,n(146)(r,n(525).EventEmitter),r.prototype.stop=function(){this._stopped=!0,this._clean()},r.prototype._end=function(){this.emit("end"),this._clean()},r.prototype._error=function(e){this.emit("error",e),this._clean()},r.prototype._result=function(e){this.emit("result",e)},r.prototype._clean=function(){this.removeAllListeners("stop"),this.removeAllListeners("end"),this.removeAllListeners("error"),this.removeAllListeners("result")}},525:function(e,t,n){"use strict";var r,o="object"==typeof Reflect?Reflect:null,a=o&&"function"==typeof o.apply?o.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function c(){c.init.call(this)}e.exports=c,e.exports.once=function(e,t){return new Promise((function(n,r){function o(){void 0!==a&&e.removeListener("error",a),n([].slice.call(arguments))}var a;"error"!==t&&(a=function(n){e.removeListener(t,o),r(n)},e.once("error",a)),e.once(t,o)}))},c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var s=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?c.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var o,a,i,c;if(u(n),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),i=a[t]),void 0===i)i=a[t]=n,++e._eventsCount;else if("function"==typeof i?i=a[t]=r?[n,i]:[i,n]:r?i.unshift(n):i.push(n),(o=l(e))>0&&i.length>o&&!i.warned){i.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=i.length,c=s,console&&console.warn&&console.warn(c)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=f.bind(r);return o.listener=n,r.wrapFn=o,o}function m(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):y(o,o.length)}function h(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function y(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(c,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),c.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},c.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},c.prototype.getMaxListeners=function(){return l(this)},c.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var c=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw c.context=i,c}var s=o[e];if(void 0===s)return!1;if("function"==typeof s)a(s,this,t);else{var u=s.length,l=y(s,u);for(n=0;n<u;++n)a(l[n],this,t)}return!0},c.prototype.addListener=function(e,t){return d(this,e,t,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(e,t){return d(this,e,t,!0)},c.prototype.once=function(e,t){return u(t),this.on(e,p(this,e,t)),this},c.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,p(this,e,t)),this},c.prototype.removeListener=function(e,t){var n,r,o,a,i;if(u(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){i=n[a].listener,o=a;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,i||t)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,a=Object.keys(n);for(r=0;r<a.length;++r)"removeListener"!==(o=a[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},c.prototype.listeners=function(e){return m(this,e,!0)},c.prototype.rawListeners=function(e){return m(this,e,!1)},c.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},c.prototype.listenerCount=h,c.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},526:function(e,t,n){(function(t){e.exports=s;var r=n(118),o=n(367),a=n(363),i=n(527),c=t.env.RESET_APP_DATA_TIMER&&parseInt(t.env.RESET_APP_DATA_TIMER,10)||12e4;function s(e,t,o){var a=n(175)("algoliasearch"),i=n(92),c=n(66),s=n(120),l="Usage: algoliasearch(applicationID, apiKey, opts)";if(!0!==o._allowEmptyCredentials&&!e)throw new r.AlgoliaSearchError("Please provide an application ID. "+l);if(!0!==o._allowEmptyCredentials&&!t)throw new r.AlgoliaSearchError("Please provide an API key. "+l);this.applicationID=e,this.apiKey=t,this.hosts={read:[],write:[]},o=o||{},this._timeouts=o.timeouts||{connect:1e3,read:2e3,write:3e4},o.timeout&&(this._timeouts.connect=this._timeouts.read=this._timeouts.write=o.timeout);var d=o.protocol||"https:";if(/:$/.test(d)||(d+=":"),"http:"!==d&&"https:"!==d)throw new r.AlgoliaSearchError("protocol must be `http:` or `https:` (was `"+o.protocol+"`)");if(this._checkAppIdData(),o.hosts)c(o.hosts)?(this.hosts.read=i(o.hosts),this.hosts.write=i(o.hosts)):(this.hosts.read=i(o.hosts.read),this.hosts.write=i(o.hosts.write));else{var f=s(this._shuffleResult,(function(t){return e+"-"+t+".algolianet.com"})),p=(!1===o.dsn?"":"-dsn")+".algolia.net";this.hosts.read=[this.applicationID+p].concat(f),this.hosts.write=[this.applicationID+".algolia.net"].concat(f)}this.hosts.read=s(this.hosts.read,u(d)),this.hosts.write=s(this.hosts.write,u(d)),this.extraHeaders={},this.cache=o._cache||{},this._ua=o._ua,this._useCache=!(void 0!==o._useCache&&!o._cache)||o._useCache,this._useRequestCache=this._useCache&&o._useRequestCache,this._useFallback=void 0===o.useFallback||o.useFallback,this._setTimeout=o._setTimeout,a("init done, %j",this)}function u(e){return function(t){return e+"//"+t.toLowerCase()}}function l(e){if(void 0===Array.prototype.toJSON)return JSON.stringify(e);var t=Array.prototype.toJSON;delete Array.prototype.toJSON;var n=JSON.stringify(e);return Array.prototype.toJSON=t,n}function d(e){var t={};for(var n in e){var r;if(Object.prototype.hasOwnProperty.call(e,n))r="x-algolia-api-key"===n||"x-algolia-application-id"===n?"**hidden for security purposes**":e[n],t[n]=r}return t}s.prototype.initIndex=function(e){return new a(this,e)},s.prototype.setExtraHeader=function(e,t){this.extraHeaders[e.toLowerCase()]=t},s.prototype.getExtraHeader=function(e){return this.extraHeaders[e.toLowerCase()]},s.prototype.unsetExtraHeader=function(e){delete this.extraHeaders[e.toLowerCase()]},s.prototype.addAlgoliaAgent=function(e){var t="; "+e;-1===this._ua.indexOf(t)&&(this._ua+=t)},s.prototype._jsonRequest=function(e){this._checkAppIdData();var t,a,i,c=n(175)("algoliasearch:"+e.url),s=e.additionalUA||"",u=e.cache,f=this,p=0,m=!1,h=f._useFallback&&f._request.fallback&&e.fallback;this.apiKey.length>500&&void 0!==e.body&&(void 0!==e.body.params||void 0!==e.body.requests)?(e.body.apiKey=this.apiKey,i=this._computeRequestHeaders({additionalUA:s,withApiKey:!1,headers:e.headers})):i=this._computeRequestHeaders({additionalUA:s,headers:e.headers}),void 0!==e.body&&(t=l(e.body)),c("request start");var y=[];function g(e,t,n){return f._useCache&&e&&t&&void 0!==t[n]}function v(t,n){if(g(f._useRequestCache,u,a)&&t.catch((function(){delete u[a]})),"function"!=typeof e.callback)return t.then(n);t.then((function(t){o((function(){e.callback(null,n(t))}),f._setTimeout||setTimeout)}),(function(t){o((function(){e.callback(t)}),f._setTimeout||setTimeout)}))}if(f._useCache&&f._useRequestCache&&(a=e.url),f._useCache&&f._useRequestCache&&t&&(a+="_body_"+t),g(f._useRequestCache,u,a)){c("serving request from cache");var b=u[a];return v("function"!=typeof b.then?f._promise.resolve({responseText:b}):b,(function(e){return JSON.parse(e.responseText)}))}var w=function n(o,v){f._checkAppIdData();var b=new Date;if(f._useCache&&!f._useRequestCache&&(a=e.url),f._useCache&&!f._useRequestCache&&t&&(a+="_body_"+v.body),g(!f._useRequestCache,u,a)){c("serving response from cache");var w=u[a];return f._promise.resolve({body:JSON.parse(w),responseText:w})}if(p>=f.hosts[e.hostType].length)return!h||m?(c("could not get any response"),f._promise.reject(new r.AlgoliaSearchError("Cannot connect to the AlgoliaSearch API. Send an email to support@algolia.com to report and resolve the issue. Application id was: "+f.applicationID,{debugData:y}))):(c("switching to fallback"),p=0,v.method=e.fallback.method,v.url=e.fallback.url,v.jsonBody=e.fallback.body,v.jsonBody&&(v.body=l(v.jsonBody)),i=f._computeRequestHeaders({additionalUA:s,headers:e.headers}),v.timeouts=f._getTimeoutsForRequest(e.hostType),f._setHostIndexByType(0,e.hostType),m=!0,n(f._request.fallback,v));var S=f._getHostByType(e.hostType),T=S+v.url,j={body:v.body,jsonBody:v.jsonBody,method:v.method,headers:i,timeouts:v.timeouts,debug:c,forceAuthHeaders:v.forceAuthHeaders};return c("method: %s, url: %s, headers: %j, timeouts: %d",j.method,T,j.headers,j.timeouts),o===f._request.fallback&&c("using fallback"),o.call(f,T,j).then((function(e){var n=e&&e.body&&e.body.message&&e.body.status||e.statusCode||e&&e.body&&200;c("received response: statusCode: %s, computed statusCode: %d, headers: %j",e.statusCode,n,e.headers);var o=2===Math.floor(n/100),s=new Date;if(y.push({currentHost:S,headers:d(i),content:t||null,contentLength:void 0!==t?t.length:null,method:v.method,timeouts:v.timeouts,url:v.url,startTime:b,endTime:s,duration:s-b,statusCode:n}),o)return f._useCache&&!f._useRequestCache&&u&&(u[a]=e.responseText),{responseText:e.responseText,body:e.body};if(4!==Math.floor(n/100))return p+=1,C();c("unrecoverable error");var l=new r.AlgoliaSearchError(e.body&&e.body.message,{debugData:y,statusCode:n});return f._promise.reject(l)}),(function(a){c("error: %s, stack: %s",a.message,a.stack);var s=new Date;y.push({currentHost:S,headers:d(i),content:t||null,contentLength:void 0!==t?t.length:null,method:v.method,timeouts:v.timeouts,url:v.url,startTime:b,endTime:s,duration:s-b}),a instanceof r.AlgoliaSearchError||(a=new r.Unknown(a&&a.message,a));if(p+=1,a instanceof r.Unknown||a instanceof r.UnparsableJSON||p>=f.hosts[e.hostType].length&&(m||!h))return a.debugData=y,f._promise.reject(a);if(a instanceof r.RequestTimeout)return c("retrying request with higher timeout"),f._incrementHostIndex(e.hostType),f._incrementTimeoutMultipler(),v.timeouts=f._getTimeoutsForRequest(e.hostType),n(o,v);return C()}));function C(){return c("retrying request"),f._incrementHostIndex(e.hostType),n(o,v)}}(f._request,{url:e.url,method:e.method,body:t,jsonBody:e.body,timeouts:f._getTimeoutsForRequest(e.hostType),forceAuthHeaders:e.forceAuthHeaders});return f._useCache&&f._useRequestCache&&u&&(u[a]=w),v(w,(function(e){return e.body}))},s.prototype._getSearchParams=function(e,t){if(null==e)return t;for(var n in e)null!==n&&void 0!==e[n]&&e.hasOwnProperty(n)&&(t+=""===t?"":"&",t+=n+"="+encodeURIComponent("[object Array]"===Object.prototype.toString.call(e[n])?l(e[n]):e[n]));return t},s.prototype._computeRequestHeaders=function(e){var t=n(119),r={"x-algolia-agent":e.additionalUA?this._ua+"; "+e.additionalUA:this._ua,"x-algolia-application-id":this.applicationID};return!1!==e.withApiKey&&(r["x-algolia-api-key"]=this.apiKey),this.userToken&&(r["x-algolia-usertoken"]=this.userToken),this.securityTags&&(r["x-algolia-tagfilters"]=this.securityTags),t(this.extraHeaders,(function(e,t){r[t]=e})),e.headers&&t(e.headers,(function(e,t){r[t]=e})),r},s.prototype.search=function(e,t,r){var o=n(66),a=n(120);if(!o(e))throw new Error("Usage: client.search(arrayOfQueries[, callback])");"function"==typeof t?(r=t,t={}):void 0===t&&(t={});var i=this,c={requests:a(e,(function(e){var t="";return void 0!==e.query&&(t+="query="+encodeURIComponent(e.query)),{indexName:e.indexName,params:i._getSearchParams(e.params,t)}}))},s=a(c.requests,(function(e,t){return t+"="+encodeURIComponent("/1/indexes/"+encodeURIComponent(e.indexName)+"?"+e.params)})).join("&");return void 0!==t.strategy&&(c.strategy=t.strategy),this._jsonRequest({cache:this.cache,method:"POST",url:"/1/indexes/*/queries",body:c,hostType:"read",fallback:{method:"GET",url:"/1/indexes/*",body:{params:s}},callback:r})},s.prototype.searchForFacetValues=function(e){var t=n(66),r=n(120),o="Usage: client.searchForFacetValues([{indexName, params: {facetName, facetQuery, ...params}}, ...queries])";if(!t(e))throw new Error(o);var a=this;return a._promise.all(r(e,(function(e){if(!e||void 0===e.indexName||void 0===e.params.facetName||void 0===e.params.facetQuery)throw new Error(o);var t=n(92),r=n(366),i=e.indexName,c=e.params,s=c.facetName,u=r(t(c),(function(e){return"facetName"===e})),l=a._getSearchParams(u,"");return a._jsonRequest({cache:a.cache,method:"POST",url:"/1/indexes/"+encodeURIComponent(i)+"/facets/"+encodeURIComponent(s)+"/query",hostType:"read",body:{params:l}})})))},s.prototype.setSecurityTags=function(e){if("[object Array]"===Object.prototype.toString.call(e)){for(var t=[],n=0;n<e.length;++n)if("[object Array]"===Object.prototype.toString.call(e[n])){for(var r=[],o=0;o<e[n].length;++o)r.push(e[n][o]);t.push("("+r.join(",")+")")}else t.push(e[n]);e=t.join(",")}this.securityTags=e},s.prototype.setUserToken=function(e){this.userToken=e},s.prototype.clearCache=function(){this.cache={}},s.prototype.setRequestTimeout=function(e){e&&(this._timeouts.connect=this._timeouts.read=this._timeouts.write=e)},s.prototype.setTimeouts=function(e){this._timeouts=e},s.prototype.getTimeouts=function(){return this._timeouts},s.prototype._getAppIdData=function(){var e=i.get(this.applicationID);return null!==e&&this._cacheAppIdData(e),e},s.prototype._setAppIdData=function(e){return e.lastChange=(new Date).getTime(),this._cacheAppIdData(e),i.set(this.applicationID,e)},s.prototype._checkAppIdData=function(){var e=this._getAppIdData(),t=(new Date).getTime();return null===e||t-e.lastChange>c?this._resetInitialAppIdData(e):e},s.prototype._resetInitialAppIdData=function(e){var t=e||{};return t.hostIndexes={read:0,write:0},t.timeoutMultiplier=1,t.shuffleResult=t.shuffleResult||function(e){var t,n,r=e.length;for(;0!==r;)n=Math.floor(Math.random()*r),t=e[r-=1],e[r]=e[n],e[n]=t;return e}([1,2,3]),this._setAppIdData(t)},s.prototype._cacheAppIdData=function(e){this._hostIndexes=e.hostIndexes,this._timeoutMultiplier=e.timeoutMultiplier,this._shuffleResult=e.shuffleResult},s.prototype._partialAppIdDataUpdate=function(e){var t=n(119),r=this._getAppIdData();return t(e,(function(e,t){r[t]=e})),this._setAppIdData(r)},s.prototype._getHostByType=function(e){return this.hosts[e][this._getHostIndexByType(e)]},s.prototype._getTimeoutMultiplier=function(){return this._timeoutMultiplier},s.prototype._getHostIndexByType=function(e){return this._hostIndexes[e]},s.prototype._setHostIndexByType=function(e,t){var r=n(92)(this._hostIndexes);return r[t]=e,this._partialAppIdDataUpdate({hostIndexes:r}),e},s.prototype._incrementHostIndex=function(e){return this._setHostIndexByType((this._getHostIndexByType(e)+1)%this.hosts[e].length,e)},s.prototype._incrementTimeoutMultipler=function(){var e=Math.max(this._timeoutMultiplier+1,4);return this._partialAppIdDataUpdate({timeoutMultiplier:e})},s.prototype._getTimeoutsForRequest=function(e){return{connect:this._timeouts.connect*this._timeoutMultiplier,complete:this._timeouts[e]*this._timeoutMultiplier}}}).call(this,n(101))},527:function(e,t,n){(function(t){var r,o=n(175)("algoliasearch:src/hostIndexState.js"),a={state:{},set:function(e,t){return this.state[e]=t,this.state[e]},get:function(e){return this.state[e]||null}},i={set:function(e,n){a.set(e,n);try{var r=JSON.parse(t.localStorage["algoliasearch-client-js"]);return r[e]=n,t.localStorage["algoliasearch-client-js"]=JSON.stringify(r),r[e]}catch(t){return c(e,t)}},get:function(e){try{return JSON.parse(t.localStorage["algoliasearch-client-js"])[e]||null}catch(t){return c(e,t)}}};function c(e,n){return o("localStorage failed with",n),function(){try{t.localStorage.removeItem("algoliasearch-client-js")}catch(e){}}(),(r=a).get(e)}function s(e,t){return 1===arguments.length?r.get(e):r.set(e,t)}function u(){try{return"localStorage"in t&&null!==t.localStorage&&(t.localStorage["algoliasearch-client-js"]||t.localStorage.setItem("algoliasearch-client-js",JSON.stringify({})),!0)}catch(e){return!1}}r=u()?i:a,e.exports={get:s,set:s,supportsLocalStorage:u}}).call(this,n(44))},528:function(e,t,n){var r;function o(e){function n(){if(n.enabled){var e=n,o=+new Date,a=o-(r||o);e.diff=a,e.prev=r,e.curr=o,r=o;for(var i=new Array(arguments.length),c=0;c<i.length;c++)i[c]=arguments[c];i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var s=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;s++;var o=t.formatters[r];if("function"==typeof o){var a=i[s];n=o.call(e,a),i.splice(s,1),s--}return n})),t.formatArgs.call(e,i);var u=n.log||t.log||console.log.bind(console);u.apply(e,i)}}return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),"function"==typeof t.init&&t.init(n),n}(t=e.exports=o.debug=o.default=o).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length,o=0;o<r;o++)n[o]&&("-"===(e=n[o].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(529),t.names=[],t.skips=[],t.formatters={}},529:function(e,t){var n=1e3,r=6e4,o=60*r,a=24*o;function i(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}e.exports=function(e,t){t=t||{};var c,s=typeof e;if("string"===s&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t)return;var i=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*i;case"days":case"day":case"d":return i*a;case"hours":case"hour":case"hrs":case"hr":case"h":return i*o;case"minutes":case"minute":case"mins":case"min":case"m":return i*r;case"seconds":case"second":case"secs":case"sec":case"s":return i*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}(e);if("number"===s&&!1===isNaN(e))return t.long?i(c=e,a,"day")||i(c,o,"hour")||i(c,r,"minute")||i(c,n,"second")||c+" ms":function(e){if(e>=a)return Math.round(e/a)+"d";if(e>=o)return Math.round(e/o)+"h";if(e>=r)return Math.round(e/r)+"m";if(e>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},530:function(e,t,n){e.exports=function(e,t,n){var o={};return(n=n||{}).hosts=n.hosts||["analytics.algolia.com","analytics.algolia.com","analytics.algolia.com","analytics.algolia.com"],n.protocol=n.protocol||"https:",o.as=r(e,t,n),o.getABTests=function(e,t){var n=n||{},r=n.offset||0,o=n.limit||10;return this.as._jsonRequest({method:"GET",url:"/2/abtests?offset="+encodeURIComponent(r)+"&limit="+encodeURIComponent(o),hostType:"read",forceAuthHeaders:!0,callback:t})},o.getABTest=function(e,t){return this.as._jsonRequest({method:"GET",url:"/2/abtests/"+encodeURIComponent(e),hostType:"read",forceAuthHeaders:!0,callback:t})},o.addABTest=function(e,t){return this.as._jsonRequest({method:"POST",url:"/2/abtests",body:e,hostType:"read",forceAuthHeaders:!0,callback:t})},o.stopABTest=function(e,t){return this.as._jsonRequest({method:"POST",url:"/2/abtests/"+encodeURIComponent(e)+"/stop",hostType:"read",forceAuthHeaders:!0,callback:t})},o.deleteABTest=function(e,t){return this.as._jsonRequest({method:"DELETE",url:"/2/abtests/"+encodeURIComponent(e),hostType:"write",forceAuthHeaders:!0,callback:t})},o.waitTask=function(e,t,n){return this.as.initIndex(e).waitTask(t,n)},o};var r=n(277)},531:function(e,t,n){"use strict";var r=n(532),o=r.Promise||n(533).Promise;e.exports=function(e,t){var a=n(146),i=n(118),c=n(534),s=n(535),u=n(536);function l(e,t,r){return(r=n(92)(r||{}))._ua=r._ua||l.ua,new f(e,t,r)}t=t||"",l.version=n(538),l.ua="Algolia for JavaScript ("+l.version+"); "+t,l.initPlaces=u(l),r.__algolia={debug:n(175),algoliasearch:l};var d={hasXMLHttpRequest:"XMLHttpRequest"in r,hasXDomainRequest:"XDomainRequest"in r};function f(){e.apply(this,arguments)}return d.hasXMLHttpRequest&&(d.cors="withCredentials"in new XMLHttpRequest),a(f,e),f.prototype._request=function(e,t){return new o((function(n,r){if(d.cors||d.hasXDomainRequest){e=c(e,t.headers);var o,a,s=t.body,u=d.cors?new XMLHttpRequest:new XDomainRequest,l=!1;o=setTimeout(f,t.timeouts.connect),u.onprogress=function(){l||p()},"onreadystatechange"in u&&(u.onreadystatechange=function(){!l&&u.readyState>1&&p()}),u.onload=function(){if(a)return;var e;clearTimeout(o);try{e={body:JSON.parse(u.responseText),responseText:u.responseText,statusCode:u.status,headers:u.getAllResponseHeaders&&u.getAllResponseHeaders()||{}}}catch(t){e=new i.UnparsableJSON({more:u.responseText})}e instanceof i.UnparsableJSON?r(e):n(e)},u.onerror=function onError(e){if(a)return;clearTimeout(o),r(new i.Network({more:e}))},u instanceof XMLHttpRequest?(u.open(t.method,e,!0),t.forceAuthHeaders&&(u.setRequestHeader("x-algolia-application-id",t.headers["x-algolia-application-id"]),u.setRequestHeader("x-algolia-api-key",t.headers["x-algolia-api-key"]))):u.open(t.method,e),d.cors&&(s&&("POST"===t.method?u.setRequestHeader("content-type","application/x-www-form-urlencoded"):u.setRequestHeader("content-type","application/json")),u.setRequestHeader("accept","application/json")),s?u.send(s):u.send()}else r(new i.Network("CORS not supported"));function f(){a=!0,u.abort(),r(new i.RequestTimeout)}function p(){l=!0,clearTimeout(o),o=setTimeout(f,t.timeouts.complete)}}))},f.prototype._request.fallback=function(e,t){return e=c(e,t.headers),new o((function(n,r){s(e,t,(function(e,t){e?r(e):n(t)}))}))},f.prototype._promise={reject:function(e){return o.reject(e)},resolve:function(e){return o.resolve(e)},delay:function(e){return new o((function(t){setTimeout(t,e)}))},all:function(e){return o.all(e)}},l}},532:function(e,t,n){(function(t){var n;n="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=n}).call(this,n(44))},533:function(e,t,n){(function(t,n){var r;r=function(){"use strict";function e(e){return"function"==typeof e}var r=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},o=0,a=void 0,i=void 0,c=function(e,t){m[o]=e,m[o+1]=t,2===(o+=2)&&(i?i(h):w())},s="undefined"!=typeof window?window:void 0,u=s||{},l=u.MutationObserver||u.WebKitMutationObserver,d="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),f="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function p(){var e=setTimeout;return function(){return e(h,1)}}var m=new Array(1e3);function h(){for(var e=0;e<o;e+=2)(0,m[e])(m[e+1]),m[e]=void 0,m[e+1]=void 0;o=0}var y,g,v,b,w=void 0;function S(e,t){var n=this,r=new this.constructor(C);void 0===r[j]&&R(r);var o=n._state;if(o){var a=arguments[o-1];c((function(){return M(o,r,a,n._result)}))}else I(n,r,e,t);return r}function T(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(C);return _(t,e),t}d?w=function(){return t.nextTick(h)}:l?(g=0,v=new l(h),b=document.createTextNode(""),v.observe(b,{characterData:!0}),w=function(){b.data=g=++g%2}):f?((y=new MessageChannel).port1.onmessage=h,w=function(){return y.port2.postMessage(0)}):w=void 0===s?function(){try{var e=Function("return this")().require("vertx");return void 0!==(a=e.runOnLoop||e.runOnContext)?function(){a(h)}:p()}catch(e){return p()}}():p();var j=Math.random().toString(36).substring(2);function C(){}function P(t,n,r){n.constructor===t.constructor&&r===S&&n.constructor.resolve===T?function(e,t){1===t._state?k(e,t._result):2===t._state?E(e,t._result):I(t,void 0,(function(t){return _(e,t)}),(function(t){return E(e,t)}))}(t,n):void 0===r?k(t,n):e(r)?function(e,t,n){c((function(e){var r=!1,o=function(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}(n,t,(function(n){r||(r=!0,t!==n?_(e,n):k(e,n))}),(function(t){r||(r=!0,E(e,t))}),e._label);!r&&o&&(r=!0,E(e,o))}),e)}(t,n,r):k(t,n)}function _(e,t){if(e===t)E(e,new TypeError("You cannot resolve a promise with itself"));else if(o=typeof(r=t),null===r||"object"!==o&&"function"!==o)k(e,t);else{var n=void 0;try{n=t.then}catch(t){return void E(e,t)}P(e,t,n)}var r,o}function A(e){e._onerror&&e._onerror(e._result),x(e)}function k(e,t){void 0===e._state&&(e._result=t,e._state=1,0!==e._subscribers.length&&c(x,e))}function E(e,t){void 0===e._state&&(e._state=2,e._result=t,c(A,e))}function I(e,t,n,r){var o=e._subscribers,a=o.length;e._onerror=null,o[a]=t,o[a+1]=n,o[a+2]=r,0===a&&e._state&&c(x,e)}function x(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,o=void 0,a=e._result,i=0;i<t.length;i+=3)r=t[i],o=t[i+n],r?M(n,r,o,a):o(a);e._subscribers.length=0}}function M(t,n,r,o){var a=e(r),i=void 0,c=void 0,s=!0;if(a){try{i=r(o)}catch(e){s=!1,c=e}if(n===i)return void E(n,new TypeError("A promises callback cannot return that same promise."))}else i=o;void 0!==n._state||(a&&s?_(n,i):!1===s?E(n,c):1===t?k(n,i):2===t&&E(n,i))}var O=0;function R(e){e[j]=O++,e._state=void 0,e._result=void 0,e._subscribers=[]}var $=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(C),this.promise[j]||R(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&k(this.promise,this._result))):E(this.promise,function validationError(){return new Error("Array Methods must be provided an Array")}())}return e.prototype._enumerate=function(e){for(var t=0;void 0===this._state&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===T){var o=void 0,a=void 0,i=!1;try{o=e.then}catch(e){i=!0,a=e}if(o===S&&void 0!==e._state)this._settledAt(e._state,t,e._result);else if("function"!=typeof o)this._remaining--,this._result[t]=e;else if(n===U){var c=new n(C);i?E(c,a):P(c,e,o),this._willSettleAt(c,t)}else this._willSettleAt(new n((function(t){return t(e)})),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,n){var r=this.promise;void 0===r._state&&(this._remaining--,2===e?E(r,n):this._result[t]=n),0===this._remaining&&k(r,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;I(e,void 0,(function(e){return n._settledAt(1,t,e)}),(function(e){return n._settledAt(2,t,e)}))},e}(),U=function(){function t(e){this[j]=O++,this._result=this._state=void 0,this._subscribers=[],C!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(e,t){try{t((function(t){_(e,t)}),(function(t){E(e,t)}))}catch(t){E(e,t)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return t.prototype.catch=function(e){return this.then(null,e)},t.prototype.finally=function(t){var n=this.constructor;return e(t)?this.then((function(e){return n.resolve(t()).then((function(){return e}))}),(function(e){return n.resolve(t()).then((function(){throw e}))})):this.then(t,t)},t}();return U.prototype.then=S,U.all=function(e){return new $(this,e).promise},U.race=function(e){var t=this;return r(e)?new t((function(n,r){for(var o=e.length,a=0;a<o;a++)t.resolve(e[a]).then(n,r)})):new t((function(e,t){return t(new TypeError("You must pass an array to race."))}))},U.resolve=T,U.reject=function(e){var t=new this(C);return E(t,e),t},U._setScheduler=function(e){i=e},U._setAsap=function(e){c=e},U._asap=c,U.polyfill=function(){var e=void 0;if(void 0!==n)e=n;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===r&&!t.cast)return}e.Promise=U},U.Promise=U,U},e.exports=r()}).call(this,n(101),n(44))},534:function(e,t,n){"use strict";e.exports=function(e,t){/\?/.test(e)?e+="&":e+="?";return e+r(t)};var r=n(368)},535:function(e,t,n){"use strict";e.exports=function(e,t,n){if("GET"!==t.method)return void n(new Error("Method "+t.method+" "+e+" is not supported by JSONP."));t.debug("JSONP: start");var a=!1,i=!1;o+=1;var c=document.getElementsByTagName("head")[0],s=document.createElement("script"),u="algoliaJSONP_"+o,l=!1;window[u]=function(e){!function(){try{delete window[u],delete window[u+"_loaded"]}catch(e){window[u]=window[u+"_loaded"]=void 0}}(),i?t.debug("JSONP: Late answer, ignoring"):(a=!0,p(),n(null,{body:e,responseText:JSON.stringify(e)}))},e+="&callback="+u,t.jsonBody&&t.jsonBody.params&&(e+="&"+t.jsonBody.params);var d=setTimeout((function(){t.debug("JSONP: Script timeout"),i=!0,p(),n(new r.RequestTimeout)}),t.timeouts.complete);function f(){t.debug("JSONP: success"),l||i||(l=!0,a||(t.debug("JSONP: Fail. Script loaded but did not call the callback"),p(),n(new r.JSONPScriptFail)))}function p(){clearTimeout(d),s.onload=null,s.onreadystatechange=null,s.onerror=null,c.removeChild(s)}s.onreadystatechange=function(){"loaded"!==this.readyState&&"complete"!==this.readyState||f()},s.onload=f,s.onerror=function(){t.debug("JSONP: Script error"),l||i||(p(),n(new r.JSONPScriptError))},s.async=!0,s.defer=!0,s.src=e,c.appendChild(s)};var r=n(118),o=0},536:function(e,t,n){e.exports=function(e){return function(t,a,i){var c=n(92);(i=i&&c(i)||{}).hosts=i.hosts||["places-dsn.algolia.net","places-1.algolianet.com","places-2.algolianet.com","places-3.algolianet.com"],0!==arguments.length&&"object"!=typeof t&&void 0!==t||(t="",a="",i._allowEmptyCredentials=!0);var s=e(t,a,i),u=s.initIndex("places");return u.search=o("query","/1/places/query"),u.reverse=function(e,t){var n=r.encode(e);return this.as._jsonRequest({method:"GET",url:"/1/places/reverse?"+n,hostType:"read",callback:t})},u.getObject=function(e,t){return this.as._jsonRequest({method:"GET",url:"/1/places/"+encodeURIComponent(e),hostType:"read",callback:t})},u}};var r=n(369),o=n(364)},538:function(e,t,n){"use strict";e.exports="3.35.1"},58:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i}));n(10),n(7),n(29),n(6),n(11),n(90),n(18),n(54);var r=window.ExposedSettings.sentryDsn?Promise.resolve().then(n.bind(null,445)).then((function(e){var t=0;return e.init({dsn:window.ExposedSettings.sentryDsn,release:window.ExposedSettings.sentryRelease,autoSessionTracking:!1,whitelistUrls:[new RegExp(window.ExposedSettings.sentryAllowedOriginRegex)],ignoreErrors:['SecurityError: Permission denied to access property "pathname" on cross-origin object',/^Missing PDF/,/^AbortError/,"ResizeObserver loop limit exceeded","ResizeObserver loop completed with undelivered notifications."],beforeSend:function(e){return++t>100?null:e}}),e.setUser({id:window.user_id}),e})).catch((function(e){return console.error(e),o()})):o();function o(){return Promise.resolve({captureException:console.error,captureMessage:console.error})}function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.then((function(e){return e.captureException.apply(e,t)}))}function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.then((function(e){return e.captureMessage.apply(e,t)}))}},63:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var r=n(25);function o(e,t,n,r){"function"==typeof window.ga&&window.ga("send","event",e,t,n,r)}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(r.d)("/event/".concat(e),{body:t,keepalive:!0}).catch((function(){}))}},66:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},67:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return i}));n(17);var r=n(63);function o(e,t,n){var o,a=window.open();"function"==typeof ga&&ga("send","event","subscription-funnel","upgraded-free-trial",e),r.b("".concat(e,"-paywall-click")),o="/user/subscription/new?planCode=".concat("collaborator_free_trial_7_days","&ssp=true"),o="".concat(o,"&itm_campaign=").concat(e),t&&(o="".concat(o,"&itm_content=").concat(t)),n&&(n.startedFreeTrial=!0),a.location=o}function a(e,t){var n=window.open();!function(){"function"==typeof ga&&ga("send","event","subscription-funnel","upgraded-plan",e);t&&(t.startedFreeTrial=!0),n.location="/user/subscription"}()}function i(e){r.b("".concat(e,"-paywall-prompt"))}},843:function(e,t,n){"use strict";n.r(t);n(5),n(18),n(53);var r=n(3);r.a.controller("TokenAccessPageController",["$scope","$http","$location","localStorage",function(e,t,n,r){window.S=e,e.mode="accessAttempt",e.v1ImportData=null,e.accessInFlight=!1,e.accessSuccess=!1,e.accessError=!1,e.currentPath=function(){return n.path()},e.buildZipDownloadPath=function(e){return"/overleaf/project/".concat(e,"/download/zip")},e.getProjectName=function(){return e.v1ImportData&&e.v1ImportData.name?e.v1ImportData.name:"This project"},e.post=function(){e.mode="accessAttempt";var n=$("#overleaf-token-access-data").text(),r=JSON.parse(n),o=r.postUrl,a=r.csrfToken;e.accessInFlight=!0,t({method:"POST",url:o,data:{_csrf:a}}).then((function(t){e.accessInFlight=!1,e.accessError=!1;var n=t.data;if(n.redirect){var r=t.data.redirect;if(!r)return console.warn("no redirect supplied in success response data",t),void(e.accessError=!0);window.location.replace(r)}else n.v1Import?(e.mode="v1Import",e.v1ImportData=n.v1Import):(console.warn("invalid data from server in success response",t),e.accessError=!0)}),(function(t){console.warn("error response from server",t),e.accessInFlight=!1,e.accessError=404===t.status?"not_found":"error"}))}}]);n(21),n(22),n(36),n(59),n(91),n(17),n(30),n(45),n(13),n(7),n(8),n(6),n(12),n(15),n(16),n(10),n(11);var o=n(9),a=n.n(o);r.a.service("ProjectListService",(function(){return{getOwnerName:function(e){return"owner"===e.accessLevel?"You":null!=e.owner?this.getUserName(e.owner):"None"},getUserName:function(e){if(e&&e._id===window.user_id)return"You";if(e){var t=e.first_name,n=e.last_name,r=e.email;return t||n?[t,n].filter((function(e){return null!=e})).join(" "):r||"An Overleaf v1 User"}return"None"}}}));function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw a}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}r.a.controller("ProjectPageController",["$scope","$modal","$window","queuedHttp","eventTracking","$timeout","localStorage","ProjectListService",function(e,t,n,r,o,c,s,u){e.projects=window.data.projects,e.tags=window.data.tags,e.notifications=window.data.notifications,e.notificationsInstitution=window.data.notificationsInstitution,e.allSelected=!1,e.selectedProjects=[],e.filter="all",e.predicate="lastUpdated",e.nUntagged=0,e.reverse=!0,e.searchText={value:""},e.$watch("predicate",(function(t){e.comparator="ownerName"===t?f:d})),c((function(){return l()}),10),e.$watch((function(){return e.projects.filter((function(e){return!(null!=e.tags&&0!==e.tags.length||e.archived||e.trashed)})).length}),(function(t){return e.nUntagged=t}));var l=function(){var t=$(".project-list-card");if(t&&t.offset()){var r=t.offset().top,o=t.outerHeight()-t.height(),a=$("footer").outerHeight(),i=n.innerHeight-r-a-o;e.projectListHeight=i}};function d(t,n){var r=0,o=t.type,a=n.type;if("ownerName"!==e.predicate){if(o===a){var i=t.value,c=n.value;"string"===o?(i=i.toLowerCase(),c=c.toLowerCase()):"object"===o&&(angular.isObject(i)&&(i=t.index),angular.isObject(c)&&(c=n.index)),i!==c&&(r=i<c?-1:1)}else r=o<a?-1:1;return r}}function f(t,n){if("ownerName"===e.predicate)return"You"===t.value?"You"===n.value&&t.index<n.index?-1:1:"An Overleaf v1 User"===t.value||"None"===t.value?"An Overleaf v1 User"===n.value||"None"===n.value?t.index<n.index?-1:1:-1:"You"===n.value?-1:"An Overleaf v1 User"===n.value||"None"===n.value?1:t.value>n.value?-1:1}angular.element(n).bind("resize",(function(){l(),e.$apply()})),e.$on("project-list:notifications-received",(function(){return e.$applyAsync((function(){return l()}))}));var p,m={},h=i(e.projects);try{for(h.s();!(p=h.n()).done;){var y=p.value;m[y.id]=y}}catch(e){h.e(e)}finally{h.f()}e.getProjectById=function(e){return m[e]};var g,v=i(e.tags);try{for(v.s();!(g=v.n()).done;){var b,w=g.value,S=i(w.project_ids||[]);try{for(S.s();!(b=S.n()).done;){var T=b.value,j=m[T];j&&(j.tags||(j.tags=[]),j.tags.push(w))}}catch(e){S.e(e)}finally{S.f()}}}catch(e){v.e(e)}finally{v.f()}e.changePredicate=function(t){e.predicate===t&&(e.reverse=!e.reverse),e.predicate=t},e.getSortIconClass=function(t){return t===e.predicate&&e.reverse?"fa-caret-down":t!==e.predicate||e.reverse?"":"fa-caret-up"},e.searchProjects=function(){o.send("project-list-page-interaction","project-search","keydown"),e.updateVisibleProjects()},e.clearSearchText=function(){e.searchText.value="",e.filter="all",e.$emit("search:clear"),e.updateVisibleProjects()},e.setFilter=function(t){e.filter=t,e.updateVisibleProjects()},e.updateSelectedProjects=function(){e.selectedProjects=e.projects.filter((function(e){return e.selected}))},e.getSelectedProjects=function(){return e.selectedProjects},e.getSelectedProjectIds=function(){return e.selectedProjects.map((function(e){return e.id}))},e.getFirstSelectedProject=function(){return e.selectedProjects[0]},e.hasLeavableProjectsSelected=function(){return a.a.some(e.getSelectedProjects(),(function(e){return"owner"!==e.accessLevel&&e.trashed}))},e.hasDeletableProjectsSelected=function(){return a.a.some(e.getSelectedProjects(),(function(e){return"owner"===e.accessLevel&&e.trashed}))},e.updateVisibleProjects=function(){e.visibleProjects=[];var t,n=e.getSelectedTag(),r=i(e.projects);try{for(r.s();!(t=r.n()).done;){var o=t.value,a=!0;""!==e.searchText.value&&-1===o.name.toLowerCase().indexOf(e.searchText.value.toLowerCase())&&(a=!1),"tag"!==e.filter||null==n||n.project_ids.includes(o.id)||(a=!1),"untagged"===e.filter&&(null!=o.tags?o.tags.length:void 0)>0&&(a=!1),"shared"===e.filter&&"owner"===o.accessLevel&&(a=!1),"owned"===e.filter&&"owner"!==o.accessLevel&&(a=!1),"archived"===e.filter?o.archived||(a=!1):o.archived&&(a=!1),"trashed"===e.filter?o.trashed||(a=!1):o.trashed&&(a=!1),a?e.visibleProjects.push(o):o.selected=!1}}catch(e){r.e(e)}finally{r.f()}s("project_list",JSON.stringify({filter:e.filter,selectedTagId:null!=n?n._id:void 0})),e.updateSelectedProjects()},e.getSelectedTag=function(){var t,n=i(e.tags);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.selected)return r}}catch(e){n.e(e)}finally{n.f()}return null},e._removeProjectIdsFromTagArray=function(e,t){var n,r=[],o=[],a=i(e.project_ids);try{for(a.s();!(n=a.n()).done;){var c=n.value;t.includes(c)?o.push(c):r.push(c)}}catch(e){a.e(e)}finally{a.f()}return e.project_ids=r,o},e._removeProjectFromList=function(t){var n=e.projects.indexOf(t);n>-1&&e.projects.splice(n,1)},e.removeSelectedProjectsFromTag=function(t){t.showWhenEmpty=!0;var n,o=e.getSelectedProjectIds(),a=e.getSelectedProjects(),c=e._removeProjectIdsFromTagArray(t,o),s=i(a);try{for(s.s();!(n=s.n()).done;){var u=n.value;u.tags||(u.tags=[]);var l=u.tags.indexOf(t);l>-1&&u.tags.splice(l,1)}}catch(e){s.e(e)}finally{s.f()}var d,f=i(c);try{for(f.s();!(d=f.n()).done;){var p=d.value;r({method:"DELETE",url:"/tag/".concat(t._id,"/project/").concat(p),headers:{"X-CSRF-Token":window.csrfToken}})}}catch(e){f.e(e)}finally{f.f()}e.updateVisibleProjects()},e.removeProjectFromTag=function(t,n){n.showWhenEmpty=!0,t.tags||(t.tags=[]);var o=t.tags.indexOf(n);o>-1&&(e._removeProjectIdsFromTagArray(n,[t.id]),t.tags.splice(o,1),r({method:"DELETE",url:"/tag/".concat(n._id,"/project/").concat(t.id),headers:{"X-CSRF-Token":window.csrfToken}}),e.updateVisibleProjects())},e.addSelectedProjectsToTag=function(t){var n=e.getSelectedProjects();o.send("project-list-page-interaction","project action","addSelectedProjectsToTag");var a,c=[],s=i(e.getSelectedProjectIds());try{for(s.s();!(a=s.n()).done;){var u=a.value;t.project_ids.includes(u)||(t.project_ids.push(u),c.push(u))}}catch(e){s.e(e)}finally{s.f()}var l,d=i(n);try{for(d.s();!(l=d.n()).done;){var f=l.value;f.tags||(f.tags=[]),f.tags.includes(t)||f.tags.push(t)}}catch(e){d.e(e)}finally{d.f()}for(var p=0,m=c;p<m.length;p++){var h=m[p];r.post("/tag/".concat(t._id,"/project/").concat(h),{_csrf:window.csrfToken})}},e.openNewTagModal=function(n){t.open({templateUrl:"newTagModalTemplate",controller:"NewTagModalController"}).result.then((function(t){e.tags.find((function(e){return t.name===e.name}))||(e.tags.push(t),e.addSelectedProjectsToTag(t))}))},e.createProject=function(t,n){return null==n&&(n="none"),r.post("/project/new",{_csrf:window.csrfToken,projectName:t,template:n}).then((function(n){var r=n.data;e.projects.push({name:t,id:r.project_id,accessLevel:"owner",owner:r.owner}),e.updateVisibleProjects()}))},e.openCreateProjectModal=function(n){null==n&&(n="none"),o.send("project-list-page-interaction","new-project",n),t.open({templateUrl:"newProjectModalTemplate",controller:"NewProjectModalController",resolve:{template:function(){return n}},scope:e}).result.then((function(e){return window.location="/project/".concat(e)}))},e.renameProject=function(e,t){return r.post("/project/".concat(e.id,"/rename"),{newProjectName:t,_csrf:window.csrfToken}).then((function(){return e.name=t}))},e.openRenameProjectModal=function(){var n=e.getFirstSelectedProject();n&&"owner"===n.accessLevel&&(o.send("project-list-page-interaction","project action","Rename"),t.open({templateUrl:"renameProjectModalTemplate",controller:"RenameProjectModalController",resolve:{project:function(){return n}},scope:e}))},e.cloneProject=function(t,n){return o.send("project-list-page-interaction","project action","Clone"),r.post("/project/".concat(t.id,"/clone"),{_csrf:window.csrfToken,projectName:n}).then((function(t){var n=t.data;e.projects.push({name:n.name,id:n.project_id,accessLevel:"owner",owner:n.owner}),e.updateVisibleProjects()}))},e.openCloneProjectModal=function(n){n&&t.open({templateUrl:"cloneProjectModalTemplate",controller:"CloneProjectModalController",resolve:{project:function(){return n}},scope:e})};var C=function(e,n){return o.send("project-list-page-interaction","project action",e),t.open({templateUrl:"archiveTrashLeaveOrDeleteProjectsModalTemplate",controller:"ArchiveTrashLeaveOrDeleteProjectsModalController",resolve:{projects:function(){return n},action:function(){return e}}})};e.createArchiveProjectsModal=function(e){return C("archive",e)},e.createTrashProjectsModal=function(e){return C("trash",e)},e.createLeaveProjectsModal=function(e){return C("leave",e)},e.createDeleteProjectsModal=function(e){return C("delete",e)},e.createLeaveOrDeleteProjectsModal=function(e){return C("leaveOrDelete",e)},e.openArchiveProjectsModal=function(){e.createArchiveProjectsModal(e.getSelectedProjects()).result.then((function(){return e.archiveSelectedProjects()}))},e.openTrashProjectsModal=function(){e.createTrashProjectsModal(e.getSelectedProjects()).result.then((function(){return e.trashSelectedProjects()}))},e.openLeaveProjectsModal=function(){e.createLeaveProjectsModal(e.getSelectedProjects()).result.then((function(){return e.leaveSelectedProjects()}))},e.openDeleteProjectsModal=function(){e.createDeleteProjectsModal(e.getSelectedProjects()).result.then((function(){return e.deleteSelectedProjects()}))},e.openLeaveOrDeleteProjectsModal=function(){e.createLeaveOrDeleteProjectsModal(e.getSelectedProjects()).result.then((function(){return e.leaveOrDeleteSelectedProjects()}))},e.archiveSelectedProjects=function(){return e.archiveProjects(e.getSelectedProjects())},e.unarchiveSelectedProjects=function(){return e.unarchiveProjects(e.getSelectedProjects())},e.trashSelectedProjects=function(){return e.trashProjects(e.getSelectedProjects())},e.untrashSelectedProjects=function(){return e.untrashProjects(e.getSelectedProjects())},e.leaveSelectedProjects=function(){return e.leaveProjects(e.getSelectedProjects())},e.deleteSelectedProjects=function(){return e.deleteProjects(e.getSelectedProjects())},e.leaveOrDeleteSelectedProjects=function(){return e.leaveOrDeleteProjects(e.getSelectedProjects())},e.archiveProjects=function(t){var n,r=i(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;o.archived=!0,o.trashed=!1,P(o)}}catch(e){r.e(e)}finally{r.f()}e.updateVisibleProjects()},e.unarchiveProjects=function(t){var n,r=i(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;o.archived=!1,_(o)}}catch(e){r.e(e)}finally{r.f()}e.updateVisibleProjects()},e.trashProjects=function(t){var n,r=i(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;o.trashed=!0,o.archived=!1,A(o)}}catch(e){r.e(e)}finally{r.f()}e.updateVisibleProjects()},e.untrashProjects=function(t){var n,r=i(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;o.trashed=!1,k(o)}}catch(e){r.e(e)}finally{r.f()}e.updateVisibleProjects()},e.leaveProjects=function(t){x(t);var n,r=i(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;E(o)}}catch(e){r.e(e)}finally{r.f()}e.updateVisibleProjects()},e.deleteProjects=function(t){x(t);var n,r=i(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;I(o)}}catch(e){r.e(e)}finally{r.f()}e.updateVisibleProjects()},e.leaveOrDeleteProjects=function(t){x(t);var n,r=i(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;"owner"===o.accessLevel?I(o):E(o)}}catch(e){r.e(e)}finally{r.f()}e.updateVisibleProjects()};var P=function(e){return r({method:"POST",url:"/project/".concat(e.id,"/archive"),headers:{"X-CSRF-Token":window.csrfToken}})},_=function(e){return r({method:"DELETE",url:"/project/".concat(e.id,"/archive"),headers:{"X-CSRF-Token":window.csrfToken}})},A=function(e){return r({method:"POST",url:"/project/".concat(e.id,"/trash"),headers:{"X-CSRF-Token":window.csrfToken}})},k=function(e){return r({method:"DELETE",url:"/project/".concat(e.id,"/trash"),headers:{"X-CSRF-Token":window.csrfToken}})},E=function(e){return r({method:"POST",url:"/project/".concat(e.id,"/leave"),headers:{"X-CSRF-Token":window.csrfToken}})},I=function(e){return r({method:"DELETE",url:"/project/".concat(e.id),headers:{"X-CSRF-Token":window.csrfToken}})},x=function(t){var n,r=t.map((function(e){return e.id})),o=i(e.tags||[]);try{for(o.s();!(n=o.n()).done;){var a=n.value;e._removeProjectIdsFromTagArray(a,r)}}catch(e){o.e(e)}finally{o.f()}var c,s=i(t||[]);try{for(s.s();!(c=s.n()).done;){var u=c.value;e._removeProjectFromList(u)}}catch(e){s.e(e)}finally{s.f()}};e.getValueForCurrentPredicate=function(t){return"ownerName"===e.predicate?u.getOwnerName(t):t[e.predicate]},e.openUploadProjectModal=function(){t.open({templateUrl:"uploadProjectModalTemplate",controller:"UploadProjectModalController"})},e.downloadSelectedProjects=function(){return e.downloadProjectsById(e.getSelectedProjectIds())},e.downloadProjectsById=function(e){var t;return o.send("project-list-page-interaction","project action","Download Zip"),t=e.length>1?"/project/download/zip?project_ids=".concat(e.join(",")):"/project/".concat(e[0],"/download/zip"),window.location=t};var M=JSON.parse(s("project_list"));M&&M.filter?("tag"===M.filter&&M.selectedTagId&&function(t){var n,r=i(e.tags);try{for(r.s();!(n=r.n()).done;){var o=n.value;o._id===t?o.selected=!0:o.selected=!1}}catch(e){r.e(e)}finally{r.f()}}(M.selectedTagId),e.setFilter(M.filter)):e.updateVisibleProjects()}]),r.a.controller("ProjectListItemController",["$scope","$modal","queuedHttp","ProjectListService",function(e,t,n,r){e.projectLink=function(e){return"/project/".concat(e.id)},e.isLinkSharingProject=function(e){return"token"===e.source},e.hasGenericOwnerName=function(){var t=e.project.owner,n=t.first_name,r=t.last_name,o=t.email;return!n&&!r&&!o},e.getOwnerName=r.getOwnerName,e.getUserName=r.getUserName,e.isOwner=function(){return e.project.owner&&window.user_id===e.project.owner._id},e.$watch("project.selected",(function(t){null!=t&&e.updateSelectedProjects()})),e.clone=function(t){t.stopPropagation(),e.openCloneProjectModal(e.project)},e.download=function(t){t.stopPropagation(),e.downloadProjectsById([e.project.id])},e.archive=function(t){t.stopPropagation(),e.createArchiveProjectsModal([e.project]).result.then((function(){e.archiveProjects([e.project])}))},e.unarchive=function(t){t.stopPropagation(),e.unarchiveProjects([e.project])},e.trash=function(t){t.stopPropagation(),e.createTrashProjectsModal([e.project]).result.then((function(){e.trashProjects([e.project])}))},e.untrash=function(t){t.stopPropagation(),e.untrashProjects([e.project])},e.leave=function(t){t.stopPropagation(),e.createLeaveProjectsModal([e.project]).result.then((function(){e.leaveProjects([e.project])}))},e.delete=function(t){t.stopPropagation(),e.createDeleteProjectsModal([e.project]).result.then((function(){e.deleteProjects([e.project])}))}}]),r.a.controller("RenameProjectModalController",["$scope","$modalInstance","$timeout","project","queuedHttp",function(e,t,n,r,o){return e.inputs={projectName:r.name},e.state={inflight:!1,error:!1},t.opened.then((function(){return n((function(){return e.$broadcast("open")}),200)})),e.rename=function(){return e.state.inflight=!0,e.state.error=!1,e.renameProject(r,e.inputs.projectName).then((function(){return e.state.inflight=!1,e.state.error=!1,t.close()})).catch((function(t){var n=t.data,r=t.status;return e.state.inflight=!1,e.state.error=400!==r||{message:n}}))},e.cancel=function(){return t.dismiss("cancel")}}]),r.a.controller("CloneProjectModalController",["$scope","$modalInstance","$timeout","project",function(e,t,n,r){return e.inputs={projectName:r.name+" (Copy)"},e.state={inflight:!1,error:!1},t.opened.then((function(){return n((function(){return e.$broadcast("open")}),200)})),e.clone=function(){return e.state.inflight=!0,e.cloneProject(r,e.inputs.projectName).then((function(){return e.state.inflight=!1,e.state.error=!1,t.close()})).catch((function(t){var n=t.data,r=t.status;return e.state.inflight=!1,e.state.error=400!==r||{message:n}}))},e.cancel=function(){return t.dismiss("cancel")}}]),r.a.controller("NewProjectModalController",["$scope","$modalInstance","$timeout","template",function(e,t,n,r){return e.inputs={projectName:""},e.state={inflight:!1,error:!1},t.opened.then((function(){return n((function(){return e.$broadcast("open")}),200)})),e.create=function(){return e.state.inflight=!0,e.state.error=!1,e.createProject(e.inputs.projectName,r).then((function(n){var r=n.data;return e.state.inflight=!1,e.state.error=!1,t.close(r.project_id)})).catch((function(t){var n=t.data,r=t.status;return e.state.inflight=!1,e.state.error=400!==r||{message:n}}))},e.cancel=function(){return t.dismiss("cancel")}}]),r.a.controller("ArchiveTrashLeaveOrDeleteProjectsModalController",["$scope","$modalInstance","$timeout","projects","action",function(e,t,n,r,o){e.projects=r,e.action=o,e.confirm=function(){return t.close({projects:r,action:o})},e.cancel=function(){return t.dismiss("cancel")}}]),r.a.controller("UploadProjectModalController",["$scope","$modalInstance","$timeout",function(e,t,n){return e.cancel=function(){return t.dismiss("cancel")},e.onComplete=function(e,t,n){if(null!=n.project_id)return window.location="/project/".concat(n.project_id)}}]),r.a.controller("V1ImportModalController",["$scope","$modalInstance","project",function(e,t,n){return e.project=n,e.dismiss=function(){return t.dismiss("cancel")}}]);r.a.controller("ShowErrorModalController",["$scope","$modalInstance","error",function(e,t,n){return e.error=n,e.cancel=function(){return t.dismiss("cancel")}}]),n(26);var s=n(42);function u(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}r.a.controller("TagListController",["$scope","$modal",function(e,t){e.filterProjects=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all";e._clearTags(),e.setFilter(t)},e._clearTags=function(){return e.tags.forEach((function(e){e.selected=!1}))},e.selectTag=function(t){e._clearTags(),t.selected=!0,e.setFilter("tag")},e.selectUntagged=function(){e._clearTags(),e.setFilter("untagged")},e.countProjectsForTag=function(t){return t.project_ids.reduce((function(t,n){var r=e.getProjectById(n);return r?r.archived||r.trashed?t:t+1:t}),0)},e.getHueForTagId=function(e){return s.a.getHueForTagId(e)},e.deleteTag=function(n){t.open({templateUrl:"deleteTagModalTemplate",controller:"DeleteTagModalController",resolve:{tag:function(){return n}}}).result.then((function(){var t,r=u(e.projects);try{for(r.s();!(t=r.n()).done;){var o=t.value;o.tags||(o.tags=[]);var a=o.tags.indexOf(n);a>-1&&o.tags.splice(a,1)}}catch(e){r.e(e)}finally{r.f()}e.tags.splice(e.tags.indexOf(n),1)}))},e.renameTag=function(e){t.open({templateUrl:"renameTagModalTemplate",controller:"RenameTagModalController",resolve:{tag:function(){return e}}}).result.then((function(t){return e.name=t}))}}]),r.a.controller("TagDropdownItemController",["$scope",function(e){e.recalculateProjectsInTag=function(){var t;e.areSelectedProjectsInTag=!1;var n,r=u(e.getSelectedProjectIds());try{for(r.s();!(n=r.n()).done;){var o=n.value;e.tag.project_ids.includes(o)?e.areSelectedProjectsInTag=!0:t=!0}}catch(e){r.e(e)}finally{r.f()}e.areSelectedProjectsInTag&&t&&(e.areSelectedProjectsInTag="partial")},e.addOrRemoveProjectsFromTag=function(){!0===e.areSelectedProjectsInTag?(e.removeSelectedProjectsFromTag(e.tag),e.areSelectedProjectsInTag=!1):!1!==e.areSelectedProjectsInTag&&"partial"!==e.areSelectedProjectsInTag||(e.addSelectedProjectsToTag(e.tag),e.areSelectedProjectsInTag=!0)},e.$watch("selectedProjects",(function(){return e.recalculateProjectsInTag()})),e.recalculateProjectsInTag()}]),r.a.controller("NewTagModalController",["$scope","$modalInstance","$timeout","$http",function(e,t,n,r){e.inputs={newTagName:""},e.state={inflight:!1,error:!1},t.opened.then((function(){return n((function(){return e.$broadcast("open")}),200)})),e.create=function(){var n=e.inputs.newTagName;e.state.inflight=!0,e.state.error=!1,r.post("/tag",{_csrf:window.csrfToken,name:n}).then((function(n){var r=n.data;e.state.inflight=!1,t.close(r)})).catch((function(){e.state.inflight=!1,e.state.error=!0}))},e.cancel=function(){return t.dismiss("cancel")}}]),r.a.controller("RenameTagModalController",["$scope","$modalInstance","$timeout","$http","tag",function(e,t,n,r,o){e.inputs={tagName:o.name},e.state={inflight:!1,error:!1},t.opened.then((function(){return n((function(){return e.$broadcast("open")}),200)})),e.rename=function(){var n=e.inputs.tagName;return e.state.inflight=!0,e.state.error=!1,r.post("/tag/".concat(o._id,"/rename"),{_csrf:window.csrfToken,name:n}).then((function(){e.state.inflight=!1,t.close(n)})).catch((function(){e.state.inflight=!1,e.state.error=!0}))},e.cancel=function(){return t.dismiss("cancel")}}]);r.a.controller("DeleteTagModalController",["$scope","$modalInstance","$http","tag",function(e,t,n,r){e.tag=r,e.state={inflight:!1,error:!1},e.delete=function(){return e.state.inflight=!0,e.state.error=!1,n({method:"DELETE",url:"/tag/".concat(r._id),headers:{"X-CSRF-Token":window.csrfToken}}).then((function(){e.state.inflight=!1,t.close()})).catch((function(){e.state.inflight=!1,e.state.error=!0}))},e.cancel=function(){return t.dismiss("cancel")}}]),n(29),n(52);function d(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var p=window.ExposedSettings;r.a.controller("NotificationsController",["$scope","$http",function(e,t){var n,r=d(e.notifications||[]);try{for(r.s();!(n=r.n()).done;){n.value.hide=!1}}catch(e){r.e(e)}finally{r.f()}e.samlInitPath=p.samlInitPath,e.dismiss=function(e){e._id?t({url:"/notifications/".concat(e._id),method:"DELETE",headers:{"X-Csrf-Token":window.csrfToken}}).then((function(){return e.hide=!0})):e.hide=!0}}]),r.a.controller("DismissableNotificationsController",["$scope","localStorage",function(e,t){e.shouldShowNotification=!0!==t("dismissed-covid-19-notification-extended"),e.dismiss=function(){t("dismissed-covid-19-notification-extended",!0),e.shouldShowNotification=!1}}]),r.a.controller("ProjectInviteNotificationController",["$scope","$http",function(e,t){e.projectName=e.notification.messageOpts.projectName,e.userName=e.notification.messageOpts.userName,e.accept=function(){return e.notification.inflight=!0,t({url:"/project/".concat(e.notification.messageOpts.projectId,"/invite/token/").concat(e.notification.messageOpts.token,"/accept"),method:"POST",headers:{"X-Csrf-Token":window.csrfToken,"X-Requested-With":"XMLHttpRequest"}}).then((function(){e.notification.accepted=!0})).catch((function(t){404===t.status?e.notification.accepted=!0:e.notification.error=!0})).finally((function(){e.notification.inflight=!1}))}}]),r.a.controller("EmailNotificationController",["$scope","$http","UserAffiliationsDataService",function(e,t,n){e.userEmails=window.data.userEmails;e.showConfirmEmail=function(e){return!p.emailConfirmationDisabled&&(!e.confirmedAt&&!e.hide&&!function(e){return!!p.hasSamlFeature&&(!!e.samlProviderId||!(!e.affiliation||!e.affiliation.institution)&&(!!e.affiliation.institution.ssoEnabled||!(!p.hasSamlBeta||!e.affiliation.institution.ssoBeta)))}(e))};var r,o=d(e.userEmails);try{for(o.s();!(r=o.n()).done;){r.value.hide=!1}}catch(e){o.e(e)}finally{o.f()}e.resendConfirmationEmail=function(t){t.confirmationInflight=!0,t.error=!1,t.errorMessage=null,n.resendConfirmationEmail(t.email).then((function(){t.hide=!0,e.$emit("project-list:notifications-received")})).catch((function(n){t.error=!0,t.errorMessage=n.data.message,console.error(n),e.$emit("project-list:notifications-received")})).finally((function(){t.confirmationInflight=!1}))}}]);r.a.controller("LeftHandMenuPromoController",["$scope","UserAffiliationsDataService","eventTracking",function(e,t,n){e.hasProjects=window.data.projects.length>0,e.userHasNoSubscription=window.userHasNoSubscription,e.upgradeSubscription=function(){n.send("subscription-funnel","project-page","upgrade")},e.share=function(){n.send("subscription-funnel","project-page","sharing")};e.withAffiliations=window.data.userAffiliations.length>0,e.userOnPayingUniversity=window.data.userAffiliations.some((function(e){return e.licence&&"free"!==e.licence}))}]),n(167);r.a.controller("AccountSettingsController",["$scope","$http","$modal","eventTracking","UserAffiliationsDataService",function(e,t,n,r,o){e.subscribed=!0,e.unsubscribe=function(){return e.unsubscribing=!0,t({method:"DELETE",url:"/user/newsletter/unsubscribe",headers:{"X-CSRF-Token":window.csrfToken}}).then((function(){e.unsubscribing=!1,e.subscribed=!1})).catch((function(){return e.unsubscribing=!0}))},e.deleteAccount=function(){n.open({templateUrl:"deleteAccountModalTemplate",controller:"DeleteAccountModalController",resolve:{userDefaultEmail:function(){return o.getUserDefaultEmail().then((function(e){return(null!=e?e.email:void 0)||null})).catch((function(){return null}))}}})},e.upgradeIntegration=function(e){return r.send("subscription-funnel","settings-page",e)}}]),r.a.controller("DeleteAccountModalController",["$scope","$modalInstance","$timeout","$http","userDefaultEmail",function(e,t,n,r,o){e.state={isValid:!1,deleteText:"",password:"",confirmSharelatexDelete:!1,inflight:!1,error:null},e.userDefaultEmail=o,t.opened.then((function(){return n((function(){return e.$broadcast("open")}),700)})),e.checkValidation=function(){return e.state.isValid=null!=o&&e.state.deleteText.toLowerCase()===o.toLowerCase()&&e.state.password.length>0&&e.state.confirmSharelatexDelete},e.delete=function(){return e.state.inflight=!0,e.state.error=null,r({method:"POST",url:"/user/delete",headers:{"X-CSRF-Token":window.csrfToken,"Content-Type":"application/json"},data:{password:e.state.password},disableAutoLoginRedirect:!0}).then((function(){t.close(),e.state.inflight=!1,e.state.error=null,setTimeout((function(){return window.location="/login"}),1e3)})).catch((function(t){var n=t.data,r=t.status;e.state.inflight=!1,403===r?e.state.error={code:"InvalidCredentialsError"}:n.error?e.state.error={code:n.error}:e.state.error={code:"UserDeletionError"}}))},e.cancel=function(){return t.dismiss("cancel")}}]);var m=n(24);r.a.controller("ClearSessionsController",["$scope","$http",function(e,t){return e.state={otherSessions:Object(m.a)("ol-otherSessions"),error:!1,success:!1},e.clearSessions=function(){return console.log(">> clearing all sessions"),t({method:"POST",url:"/user/sessions/clear",headers:{"X-CSRF-Token":window.csrfToken}}).then((function(){return e.state.otherSessions=[],e.state.error=!1,e.state.success=!0})).catch((function(){return e.state.error=!0}))}}]),n(230),n(69);r.a.factory("MultiCurrencyPricing",(function(){return{currencyCode:Object(m.a)("ol-recomendedCurrency"),plans:{USD:{symbol:"$",student:{monthly:"$8",annual:"$80"},personal:{monthly:"$10",annual:"$120"},collaborator:{monthly:"$15",annual:"$180"},professional:{monthly:"$30",annual:"$360"}},EUR:{symbol:"€",student:{monthly:"€7",annual:"€70"},personal:{monthly:"€9",annual:"€108"},collaborator:{monthly:"€14",annual:"€168"},professional:{monthly:"€28",annual:"€336"}},GBP:{symbol:"£",student:{monthly:"£6",annual:"£60"},personal:{monthly:"£8",annual:"£96"},collaborator:{monthly:"£12",annual:"£144"},professional:{monthly:"£24",annual:"£288"}},SEK:{symbol:"kr",student:{monthly:"60 kr",annual:"600 kr"},personal:{monthly:"73 kr",annual:"876 kr"},collaborator:{monthly:"110 kr",annual:"1320 kr"},professional:{monthly:"220 kr",annual:"2640 kr"}},CAD:{symbol:"$",student:{monthly:"$9",annual:"$90"},personal:{monthly:"$11",annual:"$132"},collaborator:{monthly:"$17",annual:"$204"},professional:{monthly:"$34",annual:"$408"}},NOK:{symbol:"kr",student:{monthly:"60 kr",annual:"600 kr"},personal:{monthly:"73 kr",annual:"876 kr"},collaborator:{monthly:"110 kr",annual:"1320 kr"},professional:{monthly:"220 kr",annual:"2640 kr"}},DKK:{symbol:"kr",student:{monthly:"50 kr",annual:"500 kr"},personal:{monthly:"60 kr",annual:"720 kr"},collaborator:{monthly:"90 kr",annual:"1080 kr"},professional:{monthly:"180 kr",annual:"2160 kr"}},AUD:{symbol:"$",student:{monthly:"$10",annual:"$100"},personal:{monthly:"$12",annual:"$144"},collaborator:{monthly:"$18",annual:"$216"},professional:{monthly:"$35",annual:"$420"}},NZD:{symbol:"$",student:{monthly:"$10",annual:"$100"},personal:{monthly:"$12",annual:"$144"},collaborator:{monthly:"$18",annual:"$216"},professional:{monthly:"$35",annual:"$420"}},CHF:{symbol:"Fr",student:{monthly:"Fr 8",annual:"Fr 80"},personal:{monthly:"Fr 10",annual:"Fr 120"},collaborator:{monthly:"Fr 15",annual:"Fr 180"},professional:{monthly:"Fr 30",annual:"Fr 360"}},SGD:{symbol:"$",student:{monthly:"$12",annual:"$120"},personal:{monthly:"$13",annual:"$156"},collaborator:{monthly:"$20",annual:"$240"},professional:{monthly:"$40",annual:"$480"}}}}})),r.a.controller("PlansController",["$scope","$modal","eventTracking","MultiCurrencyPricing","$http","$filter","$location",function(e,t,n,r,o,a,i){e.plans=r.plans,e.currencyCode=r.currencyCode,e.trial_len=7,e.planQueryString="_free_trial_7_days",e.ui={view:"monthly"},e.changeCurreny=function(t,n){t.preventDefault(),e.currencyCode=n},e.getCollaboratorPlanCode=function(){return"annual"===e.ui.view?"collaborator-annual":"collaborator".concat(e.planQueryString)},e.getPersonalPlanCode=function(){return"annual"===e.ui.view?"paid-personal-annual":"paid-personal".concat(e.planQueryString)},e.signUpNowClicked=function(t,r){"annual"===e.ui.view&&(t="".concat(t,"_annual")),t=c(t,r),n.sendMB("plans-page-start-trial"),n.send("subscription-funnel","sign_up_now_button",t)},e.switchToMonthly=function(t,n){s(t,"monthly-prices",n),e.ui.view="monthly"},e.switchToStudent=function(t,n){s(t,"student-prices",n),e.ui.view="student"},e.switchToAnnual=function(t,n){s(t,"annual-prices",n),e.ui.view="annual"},e.openGroupPlanModal=function(){var e="".concat(window.location.pathname).concat(window.location.search);history.replaceState(null,document.title,e+"#groups"),t.open({templateUrl:"groupPlanModalPurchaseTemplate",controller:"GroupPlansModalPurchaseController"}).result.finally((function(){return history.replaceState(null,document.title,window.location.pathname)})),n.send("subscription-funnel","plans-page","group-inquiry-potential")},"groups"===i.hash()&&e.openGroupPlanModal();var c=function(e,t){return e};function s(e,t,r){e.preventDefault();var o=c(t,r);n.send("subscription-funnel","plans-page",o)}}]),r.a.controller("GroupPlansModalPurchaseController",["$scope","$modal","$location","$httpParamSerializer",function(e,t,n,r){e.options={plan_codes:[{display:"Collaborator",code:"collaborator"},{display:"Professional",code:"professional"}],currencies:[{display:"USD ($)",code:"USD"},{display:"GBP (£)",code:"GBP"},{display:"EUR (€)",code:"EUR"}],currencySymbols:{USD:"$",EUR:"€",GBP:"£"},sizes:[2,3,4,5,10,20,50],usages:[{display:"Enterprise",code:"enterprise"},{display:"Educational",code:"educational"}]},e.prices=Object(m.a)("ol-groupPlans");var o="USD",a=Object(m.a)("ol-recomendedCurrency");if(["USD","GBP","EUR"].includes(a)&&(o=a),e.selected={plan_code:"collaborator",currency:o,size:"10",usage:"enterprise"},n.search()){if(n.search().usage&&e.options.usages.forEach((function(t){t.code===n.search().usage&&(e.selected.usage=t.code)})),n.search().plan&&e.options.plan_codes.forEach((function(t){t.code===n.search().plan&&(e.selected.plan_code=t.code)})),n.search().number){var i=parseInt(n.search().number,10);-1!==e.options.sizes.indexOf(i)&&(e.selected.size=n.search().number)}n.search().currency&&e.options.currencies.forEach((function(t){t.code===n.search().currency&&(e.selected.currency=t.code)}))}e.recalculatePrice=function(){var t=e.selected,n=t.usage,r=t.plan_code,o=t.currency,a=t.size,i=e.prices[n][r][o][a],c=e.options.currencySymbols[o];e.displayPrice="".concat(c).concat(i)},e.$watch("selected",e.recalculatePrice,!0),e.recalculatePrice(),e.purchase=function(){var t=e.selected,o=t.plan_code,a=t.size,i=t.usage,c=t.currency,s={planCode:"group_".concat(o,"_").concat(a,"_").concat(i),currency:c,itm_campaign:"groups"};n.search().itm_content&&(s.itm_content=n.search().itm_content),window.location="/user/subscription/new?".concat(r(s))}}]);n(27),r.a.controller("PostGatewayController",["$scope",function(e){e.handleGateway=function(){var e=JSON.parse($("#gateway-data").text()).params;e.viaGateway="true",Object.keys(e).forEach((function(t){$("<input>").attr({type:"hidden",name:t,value:e[t]}).appendTo("#gateway")})),$("#gateway").submit()}}]),n(32),n(84);r.a.controller("UserMembershipController",["$scope","queuedHttp",function(e,t){e.users=window.users,e.groupSize=window.groupSize,e.paths=window.paths,e.selectedUsers=[],e.inputs={addMembers:{content:"",error:!1,errorMessage:null,inflightCount:0},removeMembers:{error:!1,errorMessage:null}};return e.addMembers=function(){e.inputs.addMembers.error=!1,e.inputs.addMembers.errorMessage=null,e.inputs.addMembers.inflightCount=0;var n=function(e){var t=e.split(/[\s,]+/);return t=a.a.map(t,(function(e){return e.trim()})),t=a.a.filter(t,(function(e){return-1!==e.indexOf("@")}))}(e.inputs.addMembers.content);return Array.from(n).map((function(n){return e.inputs.addMembers.inflightCount+=1,t.post(window.paths.addMember,{email:n,_csrf:window.csrfToken}).then((function(t){e.inputs.addMembers.inflightCount-=1;var n=t.data;return null!=n.user&&e.users.push(n.user),e.inputs.addMembers.content=""})).catch((function(t){e.inputs.addMembers.inflightCount-=1;var n=t.data;return e.inputs.addMembers.error=!0,e.inputs.addMembers.errorMessage=null!=n.error?n.error.message:void 0}))}))},e.removeMembers=function(){e.inputs.removeMembers.error=!1,e.inputs.removeMembers.errorMessage=null;for(var n=0,r=Array.from(e.selectedUsers);n<r.length;n++){!function(n){var r;if(window.paths.removeInvite&&n.invite&&null==n._id)r="".concat(window.paths.removeInvite,"/").concat(encodeURIComponent(n.email));else{if(!window.paths.removeMember||null==n._id)return;r="".concat(window.paths.removeMember,"/").concat(n._id)}t({method:"DELETE",url:r,headers:{"X-Csrf-Token":window.csrfToken}}).then((function(){var t=e.users.indexOf(n);if(-1!==t)return e.users.splice(t,1)})).catch((function(t){var n=t.data;return e.inputs.removeMembers.error=!0,e.inputs.removeMembers.errorMessage=null!=n.error?n.error.message:void 0}))}(r[n])}return e.updateSelectedUsers},e.updateSelectedUsers=function(){return e.selectedUsers=e.users.filter((function(e){return e.selected}))}}]);r.a.controller("UserMembershipListItemController",["$scope",function(e){return e.$watch("user.selected",(function(t){if(null!=t)return e.updateSelectedUsers()}))}]),r.a.controller("ScribtexPopupController",["$scope","$modal",function(e,t){return t.open({templateUrl:"scribtexModalTemplate"})}]),n(238);r.a.controller("BonusLinksController",["$scope","$modal",function(e,t){return e.openLinkToUsModal=function(){return t.open({templateUrl:"BonusLinkToUsModal",controller:"BonusModalController"})}}]);r.a.controller("BonusModalController",["$scope","$modalInstance",function(e,t){return e.cancel=function(){return t.dismiss()}}]),n(239);r.a.controller("TranslationsPopupController",["$scope","ipCookie","localStorage",function(e,t,n){e.hidei18nNotification=function(){var e=n("hide-i18n-notification");if(null===e){var r=t("hidei18nNotification");return r&&(n("hide-i18n-notification",r),t.remove("hidei18nNotification")),r}return e}(),e.dismiss=function(){n("hide-i18n-notification",!0),e.hidei18nNotification=!0}}]);n(362);var h=a.a.once((function(){return!("undefined"==typeof recurly||!recurly)&&(recurly.configure(Object(m.a)("ol-recurlyApiKey")),!0)}));r.a.controller("MetricsEmailController",["$scope","$http",function(e,t){e.institutionEmailSubscription=function(e){return a.a.find(window.managedInstitutions,(function(t){return t.v1Id===parseInt(e)})).metricsEmail.optedOutUserIds.includes(window.user_id)?"Subscribe":"Unsubscribe"},e.changeInstitutionalEmailSubscription=function(n){return e.subscriptionChanging=!0,t({method:"POST",url:"/institutions/".concat(n,"/emailSubscription"),headers:{"X-CSRF-Token":window.csrfToken}}).then((function(t){window.managedInstitutions=a.a.map(window.managedInstitutions,(function(e){return e.v1Id===parseInt(n)&&(e.metricsEmail.optedOutUserIds=t.data),e})),e.subscriptionChanging=!1}))}}]),r.a.factory("RecurlyPricing",["$q","MultiCurrencyPricing",function(e,t){return{loadDisplayPriceWithTax:function(n,r,o){if(h()){var a=t.plans[r].symbol,i=recurly.Pricing();return e((function(e,t){i.plan(n,{quantity:1}).currency(r).done((function(t){var n=parseFloat(t.next.total),r=n*o;isNaN(r)&&(r=0);var i=n+r;i%1!=0&&(i=i.toFixed(2)),e("".concat(a).concat(i))}))}))}}}}]),r.a.controller("ChangePlanFormController",["$scope","$modal","RecurlyPricing",function(e,t,n){h()&&(e.changePlan=function(){return t.open({templateUrl:"confirmChangePlanModalTemplate",controller:"ConfirmChangePlanController",scope:e})},e.cancelPendingPlanChange=function(){return t.open({templateUrl:"cancelPendingPlanChangeModalTemplate",controller:"CancelPendingPlanChangeController",scope:e})},e.$watch("plan",(function(t){if(t){var r=Object(m.a)("ol-planCodesChangingAtTermEnd");e.planChangesAtTermEnd=!1,r&&r.indexOf(t.planCode)>-1&&(e.planChangesAtTermEnd=!0);var o=t.planCode,a=Object(m.a)("ol-subscription").recurly,i=a.currency,c=a.taxRate;e.price="...",n.loadDisplayPriceWithTax(o,i,c).then((function(t){e.price=t}))}})))}]),r.a.controller("ConfirmChangePlanController",["$scope","$modalInstance","$http",function(e,t,n){return e.confirmChangePlan=function(){var t={plan_code:e.plan.planCode,_csrf:window.csrfToken};return e.genericError=!1,e.inflight=!0,n.post("".concat("/user/subscription/update","?origin=confirmChangePlan"),t).then((function(){return location.reload()})).catch((function(){e.genericError=!0,e.inflight=!1}))},e.cancel=function(){return t.dismiss("cancel")}}]),r.a.controller("CancelPendingPlanChangeController",["$scope","$modalInstance","$http",function(e,t,n){return e.confirmCancelPendingPlanChange=function(){var t={_csrf:window.csrfToken};return e.genericError=!1,e.inflight=!0,n.post("/user/subscription/cancel-pending",t).then((function(){return location.reload()})).catch((function(){e.genericError=!0,e.inflight=!1}))},e.cancel=function(){return t.dismiss("cancel")}}]),r.a.controller("LeaveGroupModalController",["$scope","$modalInstance","$http",function(e,t,n){return e.confirmLeaveGroup=function(){return e.inflight=!0,n({url:"/subscription/group/user",method:"DELETE",params:{subscriptionId:e.subscriptionId,_csrf:window.csrfToken}}).then((function(){return location.reload()})).catch((function(){return console.log("something went wrong changing plan")}))},e.cancel=function(){return t.dismiss("cancel")}}]),r.a.controller("GroupMembershipController",["$scope","$modal",function(e,t){e.removeSelfFromGroup=function(n){return e.subscriptionId=n,t.open({templateUrl:"LeaveGroupModalTemplate",controller:"LeaveGroupModalController",scope:e})}}]),r.a.controller("RecurlySubscriptionController",["$scope",function(e){var t=h(),n=Object(m.a)("ol-subscription");e.showChangePlanButton=t&&!n.groupPlan,window.subscription.recurly.account.has_past_due_invoice&&"true"===window.subscription.recurly.account.has_past_due_invoice._&&(e.showChangePlanButton=!1),e.recurlyLoadError=!t,e.switchToDefaultView=function(){e.showCancellation=!1,e.showChangePlan=!1},e.switchToDefaultView(),e.switchToCancellationView=function(){e.showCancellation=!0,e.showChangePlan=!1},e.switchToChangePlanView=function(){e.showCancellation=!1,e.showChangePlan=!0}}]),r.a.controller("RecurlyCancellationController",["$scope","RecurlyPricing","$http",function(e,t,n){if(h()){var r=Object(m.a)("ol-subscription"),o=new Date;o.setDate(o.getDate()+7);var a=new Date(r.recurly.trial_ends_at),i=a>new Date,c=a<o,s=-1!==r.plan.planCode.indexOf("collaborator")&&-1===r.plan.planCode.indexOf("ann")&&!r.groupPlan,u=i&&c;s&&u?e.showExtendFreeTrial=!0:s&&!u?e.showDowngradeToStudent=!0:e.showBasicCancel=!0;var l=r.recurly,d=l.currency,f=l.taxRate;e.studentPrice="...",t.loadDisplayPriceWithTax("student",d,f).then((function(t){e.studentPrice=t})),e.downgradeToStudent=function(){var t={plan_code:"student",_csrf:window.csrfToken};return e.inflight=!0,n.post("".concat("/user/subscription/update","?origin=downgradeToStudent"),t).then((function(){return location.reload()})).catch((function(){return console.log("something went wrong changing plan")}))},e.cancelSubscription=function(){var t={_csrf:window.csrfToken};return e.inflight=!0,n.post("/user/subscription/cancel",t).then((function(){return location.href="/user/subscription/canceled"})).catch((function(){return console.log("something went wrong changing plan")}))},e.extendTrial=function(){var t={_csrf:window.csrfToken};return e.inflight=!0,n.put("/user/subscription/extend",t).then((function(){return location.reload()})).catch((function(){return console.log("something went wrong changing plan")}))}}}]);r.a.controller("NewSubscriptionController",["$scope","MultiCurrencyPricing","$http","$location","eventTracking",function(e,t,n,r,o){if(window.couponCode=r.search().cc||"",window.plan_code=r.search().planCode||"",window.ITMCampaign=r.search().itm_campaign||"",window.ITMContent=r.search().itm_content||"","undefined"!=typeof recurly&&recurly){e.ui={addCompanyDetails:!1},e.recurlyLoadError=!1,e.currencyCode=t.currencyCode,e.allCurrencies=t.plans,e.availableCurrencies={},e.planCode=window.plan_code,e.switchToStudent=function(){var t=window.plan_code.replace("collaborator","student");o.sendMB("payment-page-switch-to-student",{plan:window.plan_code}),o.send("subscription-funnel","subscription-form-switch-to-student",window.plan_code),window.location="/user/subscription/new?planCode=".concat(t,"&currency=").concat(e.currencyCode,"&cc=").concat(e.data.coupon,"&itm_campaign=").concat(window.ITMCampaign,"&itm_content=").concat(window.ITMContent)},o.sendMB("payment-page-view",{plan:window.plan_code}),o.send("subscription-funnel","subscription-form-viewed",window.plan_code),e.paymentMethod={value:"credit_card"},e.data={first_name:"",last_name:"",postal_code:"",address1:"",address2:"",state:"",city:"",company:"",vat_number:"",country:Object(m.a)("ol-countryCode"),coupon:window.couponCode},e.validation={},e.processing=!1,e.threeDSecureFlow=!1,e.threeDSecureContainer=document.querySelector(".three-d-secure-container"),e.threeDSecureRecurlyContainer=document.querySelector(".three-d-secure-recurly-container"),recurly.configure({publicKey:Object(m.a)("ol-recurlyApiKey"),style:{all:{fontFamily:'"Open Sans", sans-serif',fontSize:"16px",fontColor:"#7a7a7a"},month:{placeholder:"MM"},year:{placeholder:"YY"},cvv:{placeholder:"CVV"}}});var i,c=recurly.Pricing();window.pricing=c,function t(){c.plan(window.plan_code,{quantity:1}).address({country:e.data.country}).tax({tax_code:"digital",vat_number:""}).currency(e.currencyCode).coupon(e.data.coupon).catch((function(n){if("USD"===e.currencyCode||"invalid-currency"!==n.name)throw n;e.currencyCode="USD",t()})).done()}(),c.on("change",(function(){for(var n in e.planName=c.items.plan.name,c.items.plan.trial&&(e.trialLength=c.items.plan.trial.length),e.price=e.trialLength?c.price.next:c.price.now,e.taxes=c.price.taxes,e.monthlyBilling=1===c.items.plan.period.length,e.availableCurrencies={},c.items.plan.price)t.plans[n]&&(e.availableCurrencies[n]=t.plans[n]);if(c.items&&c.items.coupon&&c.items.coupon.discount&&"percent"===c.items.coupon.discount.type){var r=parseInt(c.price.base.plan.unit,10);e.coupon={singleUse:c.items.coupon.single_use,normalPrice:r},c.items.coupon.applies_for_months>0&&c.items.coupon.discount.rate&&c.items.coupon.applies_for_months&&(e.coupon.discountMonths=c.items.coupon.applies_for_months,e.coupon.discountRate=100*c.items.coupon.discount.rate),c.price.taxes[0]&&c.price.taxes[0].rate&&(e.coupon.normalPrice+=r*c.price.taxes[0].rate)}else e.coupon=null;e.$apply()})),e.applyCoupon=function(){return c.coupon(e.data.coupon).done()},e.applyVatNumber=function(){return c.tax({tax_code:"digital",vat_number:e.data.vat_number}).done()},e.changeCurrency=function(t){return e.currencyCode=t,c.currency(t).done()},e.inputHasError=function(e){return null!=e&&(e.$touched&&e.$invalid)},e.isFormValid=function(t){return"paypal"===e.paymentMethod.value?""!==e.data.country:t.$valid},e.updateCountry=function(){return c.address({country:e.data.country}).done()},e.setPaymentMethod=function(t){e.paymentMethod.value=t,e.validation.errorFields={},e.genericError=""};var s=function(t,r,s){if(r&&(i=r),e.validation.errorFields={},null==t){var l={_csrf:window.csrfToken,recurly_token_id:i.id,recurly_three_d_secure_action_result_token_id:s&&s.id,subscriptionDetails:{currencyCode:c.items.currency,plan_code:c.items.plan.code,coupon_code:c.items.coupon?c.items.coupon.code:"",first_name:e.data.first_name,last_name:e.data.last_name,isPaypal:"paypal"===e.paymentMethod.value,address:{address1:e.data.address1,address2:e.data.address2,country:e.data.country,state:e.data.state,zip:e.data.postal_code},ITMCampaign:window.ITMCampaign,ITMContent:window.ITMContent}};return l.subscriptionDetails.isPaypal&&e.ui.addCompanyDetails&&(l.subscriptionDetails.billing_info={},e.data.company&&""!==e.data.company&&(l.subscriptionDetails.billing_info.company=e.data.company),e.data.vat_number&&""!==e.data.vat_number&&(l.subscriptionDetails.billing_info.vat_number=e.data.vat_number)),o.sendMB("payment-page-form-submit",{currencyCode:l.subscriptionDetails.currencyCode,plan_code:l.subscriptionDetails.plan_code,coupon_code:l.subscriptionDetails.coupon_code,isPaypal:l.subscriptionDetails.isPaypal}),o.send("subscription-funnel","subscription-form-submitted",l.subscriptionDetails.plan_code),n.post("/user/subscription/create",l).then((function(){o.sendMB("payment-page-form-success"),o.send("subscription-funnel","subscription-submission-success",l.subscriptionDetails.plan_code),window.location.href="/user/subscription/thank-you"})).catch((function(t){e.processing=!1;var n=t.data;e.genericError=n&&n.message||"Something went wrong processing the request",n.threeDSecureActionTokenId&&u(n.threeDSecureActionTokenId)}))}o.sendMB("payment-page-form-error",t),o.send("subscription-funnel","subscription-error"),e.$evalAsync((function(){e.processing=!1,e.genericError=t.message,a.a.each(t.fields,(function(t){return e.validation.errorFields[t]=!0}))}))};e.submit=function(){if(e.processing=!0,"paypal"===e.paymentMethod.value){var t={description:e.planName};recurly.paypal(t,s)}else{var n=a.a.cloneDeep(e.data);e.ui.addCompanyDetails||(delete n.company,delete n.vat_number),recurly.token(n,s)}};var u=function(t){var n=recurly.Risk().ThreeDSecure({actionTokenId:t});n.on("error",(function(t){e.genericError="Error: ".concat(t.message),e.threeDSecureFlow=!1,e.$apply()})),n.on("token",(function(t){s(null,null,t),e.genericError=null,e.threeDSecureFlow=!1,e.processing=!0,e.$apply()})),e.threeDSecureRecurlyContainer.innerHTML="",e.threeDSecureFlow=!0,n.attach(e.threeDSecureRecurlyContainer),window.setTimeout((function(){e.threeDSecureContainer.scrollIntoView()}),0)};e.countries=[{code:"AF",name:"Afghanistan"},{code:"AX",name:"Åland Islands"},{code:"AL",name:"Albania"},{code:"DZ",name:"Algeria"},{code:"AS",name:"American Samoa"},{code:"AD",name:"Andorra"},{code:"AO",name:"Angola"},{code:"AI",name:"Anguilla"},{code:"AQ",name:"Antarctica"},{code:"AG",name:"Antigua and Barbuda"},{code:"AR",name:"Argentina"},{code:"AM",name:"Armenia"},{code:"AW",name:"Aruba"},{code:"AC",name:"Ascension Island"},{code:"AU",name:"Australia"},{code:"AT",name:"Austria"},{code:"AZ",name:"Azerbaijan"},{code:"BS",name:"Bahamas"},{code:"BH",name:"Bahrain"},{code:"BD",name:"Bangladesh"},{code:"BB",name:"Barbados"},{code:"BY",name:"Belarus"},{code:"BE",name:"Belgium"},{code:"BZ",name:"Belize"},{code:"BJ",name:"Benin"},{code:"BM",name:"Bermuda"},{code:"BT",name:"Bhutan"},{code:"BO",name:"Bolivia"},{code:"BA",name:"Bosnia and Herzegovina"},{code:"BW",name:"Botswana"},{code:"BV",name:"Bouvet Island"},{code:"BR",name:"Brazil"},{code:"BQ",name:"British Antarctic Territory"},{code:"IO",name:"British Indian Ocean Territory"},{code:"VG",name:"British Virgin Islands"},{code:"BN",name:"Brunei"},{code:"BG",name:"Bulgaria"},{code:"BF",name:"Burkina Faso"},{code:"BI",name:"Burundi"},{code:"CV",name:"Cabo Verde"},{code:"KH",name:"Cambodia"},{code:"CM",name:"Cameroon"},{code:"CA",name:"Canada"},{code:"IC",name:"Canary Islands"},{code:"CT",name:"Canton and Enderbury Islands"},{code:"KY",name:"Cayman Islands"},{code:"CF",name:"Central African Republic"},{code:"EA",name:"Ceuta and Melilla"},{code:"TD",name:"Chad"},{code:"CL",name:"Chile"},{code:"CN",name:"China"},{code:"CX",name:"Christmas Island"},{code:"CP",name:"Clipperton Island"},{code:"CC",name:"Cocos [Keeling] Islands"},{code:"CO",name:"Colombia"},{code:"KM",name:"Comoros"},{code:"CG",name:"Congo - Brazzaville"},{code:"CD",name:"Congo - Kinshasa"},{code:"CD",name:"Congo [DRC]"},{code:"CG",name:"Congo [Republic]"},{code:"CK",name:"Cook Islands"},{code:"CR",name:"Costa Rica"},{code:"CI",name:"Côte dIvoire"},{code:"HR",name:"Croatia"},{code:"CU",name:"Cuba"},{code:"CY",name:"Cyprus"},{code:"CZ",name:"Czech Republic"},{code:"DK",name:"Denmark"},{code:"DG",name:"Diego Garcia"},{code:"DJ",name:"Djibouti"},{code:"DM",name:"Dominica"},{code:"DO",name:"Dominican Republic"},{code:"NQ",name:"Dronning Maud Land"},{code:"TL",name:"East Timor"},{code:"EC",name:"Ecuador"},{code:"EG",name:"Egypt"},{code:"SV",name:"El Salvador"},{code:"GQ",name:"Equatorial Guinea"},{code:"ER",name:"Eritrea"},{code:"EE",name:"Estonia"},{code:"ET",name:"Ethiopia"},{code:"FK",name:"Falkland Islands [Islas Malvinas]"},{code:"FK",name:"Falkland Islands"},{code:"FO",name:"Faroe Islands"},{code:"FJ",name:"Fiji"},{code:"FI",name:"Finland"},{code:"FR",name:"France"},{code:"GF",name:"French Guiana"},{code:"PF",name:"French Polynesia"},{code:"FQ",name:"French Southern and Antarctic Territories"},{code:"TF",name:"French Southern Territories"},{code:"GA",name:"Gabon"},{code:"GM",name:"Gambia"},{code:"GE",name:"Georgia"},{code:"DE",name:"Germany"},{code:"GH",name:"Ghana"},{code:"GI",name:"Gibraltar"},{code:"GR",name:"Greece"},{code:"GL",name:"Greenland"},{code:"GD",name:"Grenada"},{code:"GP",name:"Guadeloupe"},{code:"GU",name:"Guam"},{code:"GT",name:"Guatemala"},{code:"GG",name:"Guernsey"},{code:"GW",name:"Guinea-Bissau"},{code:"GN",name:"Guinea"},{code:"GY",name:"Guyana"},{code:"HT",name:"Haiti"},{code:"HM",name:"Heard Island and McDonald Islands"},{code:"HN",name:"Honduras"},{code:"HK",name:"Hong Kong"},{code:"HU",name:"Hungary"},{code:"IS",name:"Iceland"},{code:"IN",name:"India"},{code:"ID",name:"Indonesia"},{code:"IR",name:"Iran"},{code:"IQ",name:"Iraq"},{code:"IE",name:"Ireland"},{code:"IM",name:"Isle of Man"},{code:"IL",name:"Israel"},{code:"IT",name:"Italy"},{code:"CI",name:"Ivory Coast"},{code:"JM",name:"Jamaica"},{code:"JP",name:"Japan"},{code:"JE",name:"Jersey"},{code:"JT",name:"Johnston Island"},{code:"JO",name:"Jordan"},{code:"KZ",name:"Kazakhstan"},{code:"KE",name:"Kenya"},{code:"KI",name:"Kiribati"},{code:"KW",name:"Kuwait"},{code:"KG",name:"Kyrgyzstan"},{code:"LA",name:"Laos"},{code:"LV",name:"Latvia"},{code:"LB",name:"Lebanon"},{code:"LS",name:"Lesotho"},{code:"LR",name:"Liberia"},{code:"LY",name:"Libya"},{code:"LI",name:"Liechtenstein"},{code:"LT",name:"Lithuania"},{code:"LU",name:"Luxembourg"},{code:"MO",name:"Macau SAR China"},{code:"MO",name:"Macau"},{code:"MK",name:"Macedonia [FYROM]"},{code:"MK",name:"Macedonia"},{code:"MG",name:"Madagascar"},{code:"MW",name:"Malawi"},{code:"MY",name:"Malaysia"},{code:"MV",name:"Maldives"},{code:"ML",name:"Mali"},{code:"MT",name:"Malta"},{code:"MH",name:"Marshall Islands"},{code:"MQ",name:"Martinique"},{code:"MR",name:"Mauritania"},{code:"MU",name:"Mauritius"},{code:"YT",name:"Mayotte"},{code:"FX",name:"Metropolitan France"},{code:"MX",name:"Mexico"},{code:"FM",name:"Micronesia"},{code:"MI",name:"Midway Islands"},{code:"MD",name:"Moldova"},{code:"MC",name:"Monaco"},{code:"MN",name:"Mongolia"},{code:"ME",name:"Montenegro"},{code:"MS",name:"Montserrat"},{code:"MA",name:"Morocco"},{code:"MZ",name:"Mozambique"},{code:"MM",name:"Myanmar [Burma]"},{code:"NA",name:"Namibia"},{code:"NR",name:"Nauru"},{code:"NP",name:"Nepal"},{code:"AN",name:"Netherlands Antilles"},{code:"NL",name:"Netherlands"},{code:"NC",name:"New Caledonia"},{code:"NZ",name:"New Zealand"},{code:"NI",name:"Nicaragua"},{code:"NE",name:"Niger"},{code:"NG",name:"Nigeria"},{code:"NU",name:"Niue"},{code:"NF",name:"Norfolk Island"},{code:"KP",name:"North Korea"},{code:"VD",name:"North Vietnam"},{code:"MP",name:"Northern Mariana Islands"},{code:"NO",name:"Norway"},{code:"OM",name:"Oman"},{code:"QO",name:"Outlying Oceania"},{code:"PC",name:"Pacific Islands Trust Territory"},{code:"PK",name:"Pakistan"},{code:"PW",name:"Palau"},{code:"PS",name:"Palestinian Territories"},{code:"PZ",name:"Panama Canal Zone"},{code:"PA",name:"Panama"},{code:"PG",name:"Papua New Guinea"},{code:"PY",name:"Paraguay"},{code:"YD",name:"People's Democratic Republic of Yemen"},{code:"PE",name:"Peru"},{code:"PH",name:"Philippines"},{code:"PN",name:"Pitcairn Islands"},{code:"PL",name:"Poland"},{code:"PT",name:"Portugal"},{code:"PR",name:"Puerto Rico"},{code:"QA",name:"Qatar"},{code:"RE",name:"Réunion"},{code:"RO",name:"Romania"},{code:"RU",name:"Russia"},{code:"RW",name:"Rwanda"},{code:"BL",name:"Saint Barthélemy"},{code:"SH",name:"Saint Helena"},{code:"KN",name:"Saint Kitts and Nevis"},{code:"LC",name:"Saint Lucia"},{code:"MF",name:"Saint Martin"},{code:"PM",name:"Saint Pierre and Miquelon"},{code:"VC",name:"Saint Vincent and the Grenadines"},{code:"WS",name:"Samoa"},{code:"SM",name:"San Marino"},{code:"ST",name:"São Tomé and Príncipe"},{code:"SA",name:"Saudi Arabia"},{code:"SN",name:"Senegal"},{code:"CS",name:"Serbia and Montenegro"},{code:"RS",name:"Serbia"},{code:"SC",name:"Seychelles"},{code:"SL",name:"Sierra Leone"},{code:"SG",name:"Singapore"},{code:"SK",name:"Slovakia"},{code:"SI",name:"Slovenia"},{code:"SB",name:"Solomon Islands"},{code:"SO",name:"Somalia"},{code:"ZA",name:"South Africa"},{code:"GS",name:"South Georgia and the South Sandwich Islands"},{code:"KR",name:"South Korea"},{code:"ES",name:"Spain"},{code:"LK",name:"Sri Lanka"},{code:"SD",name:"Sudan"},{code:"SR",name:"Suriname"},{code:"SJ",name:"Svalbard and Jan Mayen"},{code:"SZ",name:"Swaziland"},{code:"SE",name:"Sweden"},{code:"CH",name:"Switzerland"},{code:"SY",name:"Syria"},{code:"TW",name:"Taiwan"},{code:"TJ",name:"Tajikistan"},{code:"TZ",name:"Tanzania"},{code:"TH",name:"Thailand"},{code:"TL",name:"Timor-Leste"},{code:"TG",name:"Togo"},{code:"TK",name:"Tokelau"},{code:"TO",name:"Tonga"},{code:"TT",name:"Trinidad and Tobago"},{code:"TA",name:"Tristan da Cunha"},{code:"TN",name:"Tunisia"},{code:"TR",name:"Turkey"},{code:"TM",name:"Turkmenistan"},{code:"TC",name:"Turks and Caicos Islands"},{code:"TV",name:"Tuvalu"},{code:"UM",name:"U.S. Minor Outlying Islands"},{code:"PU",name:"U.S. Miscellaneous Pacific Islands"},{code:"VI",name:"U.S. Virgin Islands"},{code:"UG",name:"Uganda"},{code:"UA",name:"Ukraine"},{code:"AE",name:"United Arab Emirates"},{code:"GB",name:"United Kingdom"},{code:"US",name:"United States"},{code:"UY",name:"Uruguay"},{code:"UZ",name:"Uzbekistan"},{code:"VU",name:"Vanuatu"},{code:"VA",name:"Vatican City"},{code:"VE",name:"Venezuela"},{code:"VN",name:"Vietnam"},{code:"WK",name:"Wake Island"},{code:"WF",name:"Wallis and Futuna"},{code:"EH",name:"Western Sahara"},{code:"YE",name:"Yemen"},{code:"ZM",name:"Zambia"},{code:"ZW",name:"Zimbabwe"}]}else e.recurlyLoadError=!0}]),r.a.controller("AnnualUpgradeController",["$scope","$http","$modal",function(e,t,n){e.upgradeComplete=!1;var r={student:"19.2",collaborator:"36"};return e.$watch(e.planName,(function(){if(e.yearlySaving=r[e.planName],"annual"===e.planName)return e.upgradeComplete=!0})),e.completeAnnualUpgrade=function(){var n={planName:e.planName,_csrf:window.csrfToken};return e.inflight=!0,t.post("/user/subscription/upgrade-annual",n).then((function(){return e.upgradeComplete=!0})).catch((function(){return console.log("something went wrong changing plan")}))}}]),r.a.controller("RegisterUsersController",["$scope","queuedHttp",function(e,t){e.users=[],e.inputs={emails:""};return e.registerUsers=function(){var n=function(e){var t=e.split(/[\s,]+/);return t=a.a.map(t,(function(e){return e.trim()})),t=a.a.filter(t,(function(e){return-1!==e.indexOf("@")}))}(e.inputs.emails);return e.error=!1,Array.from(n).map((function(n){return t.post("/admin/register",{email:n,_csrf:window.csrfToken}).then((function(t){var n=t.data;return e.users.push(n),e.inputs.emails=""})).catch((function(){return e.error=!0}))}))}}]),r.a.controller("TeamInviteController",["$scope","$http",function(e,t){e.inflight=!1;var n=Object(m.a)("ol-hasIndividualRecurlySubscription");return e.view=n?"hasIndividualRecurlySubscription":"teamInvite",e.keepPersonalSubscription=function(){return e.view="teamInvite"},e.cancelPersonalSubscription=function(){e.inflight=!0;var n=t.post("/user/subscription/cancel",{_csrf:window.csrfToken});return n.then((function(){return e.inflight=!1,e.view="teamInvite"})),n.catch((function(){e.inflight=!1,e.cancel_error=!0,console.log("the request failed")}))},e.joinTeam=function(){e.inflight=!0;var n=Object(m.a)("ol-inviteToken"),r=t.put("/subscription/invites/".concat(n,"/"),{_csrf:window.csrfToken});return r.then((function(t){var n=t.status;if(e.inflight=!1,e.view="inviteAccepted",200!==n)return e.requestSent=!1})),r.catch((function(){return console.log("the request failed")}))}}]),r.a.controller("UpgradeSubscriptionController",["$scope","eventTracking",function(e,t){e.upgradeSubscription=function(){t.send("subscription-funnel","subscription-page","upgrade"),t.sendMB("subscription-page-upgrade-button-click")}}]),r.a.directive("mathjax",["$compile","$parse",function(e,t){return{link:function(e,t,n){if(MathJax&&MathJax.Hub){if("no-single-dollar"!==n.delimiter){var r=MathJax.Hub.config&&MathJax.Hub.config.tex2jax.inlineMath;a.a.find(r,(function(e){return"$"===e[0]&&"$"===e[1]}))||MathJax.Hub.Config({tex2jax:{inlineMath:r.concat([["$","$"]])}})}setTimeout((function(){MathJax.Hub.Queue(["Typeset",MathJax.Hub,t.get(0)])}),0)}}}}]);var y=n(277),g=n.n(y);r.a.factory("algoliaSearch",(function(){var e,t=Object(m.a)("ol-algolia"),n=a.a.get(t,"indexes.wiki");n&&(e=g()(t.appId,t.apiKey).initIndex(n));return{searchWiki:e?e.search.bind(e):null}}));function v(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}r.a.controller("SearchWikiController",["$scope","algoliaSearch","$modal",function(e,t,n){e.hits=[],e.hits_total=0,e.config_hits_per_page=20,e.processingSearch=!1,e.clearSearchText=function(){e.searchQueryText="",o([])},e.safeApply=function(t){var n=e.$root.$$phase;"$apply"===n||"$digest"===n?e.$eval(t):e.$apply(t)};var r=function(e){var t=e.kb?"how-to/":"latex/",n=encodeURIComponent(e.pageName.replace(/\s/g,"_")),r="";e.sectionName&&""!==e.sectionName&&(r="#"+e.sectionName.replace(/\s/g,"_"));var o=e._highlightResult.sectionName,a=e._highlightResult.pageName.value;o&&o.value&&""!==o&&(a+=" - "+o.value);var i,c=e._highlightResult.content.value,s=[],u=v((c=c.replace(/\n\n+/g,"\n\n")).split("\n"));try{for(u.s();!(i=u.n()).done;){var l=i.value;/^\[edit\]/.test(l)||(c+=l+"\n",/<em>/.test(l)&&s.push(l))}}catch(e){u.e(e)}finally{u.f()}return c=s.join("\n...\n"),{name:a,url:"/learn/".concat(t).concat(n).concat(r),content:c}},o=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e.safeApply((function(){e.hits=t,e.hits_total=n}))};e.search=function(){e.processingSearch=!0;var n=e.searchQueryText;n&&0!==n.length?t.searchWiki(n,{hitsPerPage:e.config_hits_per_page},(function(t,n){if(e.processingSearch=!1,0===n.hits.length)o([]);else{var i=a.a.map(n.hits,r);o(i,n.nbHits)}})):o([])}}]);r.a.controller("LearnController",(function(){}));var w=function(e,t,n,r){var o=this;o.roles=[],o.departments=[],o.countries=[],o.universities=[];var i=[];o.addUniversityToSelection=function(e){return{name:e,isUserSuggested:!0}},o.handleFreeformInputChange=function(e,t){if(null!=e.search&&""!==e.search){var n=e.search;if(null!=(null!=e.tagging?e.tagging.fct:void 0)&&(n=e.tagging.fct(e.search)),null!=t){var r=a.a.find(e.items,(function(n){return n[t]===e.search}));null!=r&&(n=r)}return e.searchInput.scope().$broadcast("uis:select",n)}},r.getCountries().then((function(e){return o.countries=e})),r.getDefaultRoleHints().then((function(e){return o.roles=e})),r.getDefaultDepartmentHints().then((function(e){return i=e})),e.$watch("$ctrl.affiliationData.country",(function(e,t){if(null!=e&&e!==t)return o.affiliationData.university=null,o.affiliationData.role=null,o.affiliationData.department=null,r.getUniversitiesFromCountry(e).then((function(e){return o.universities=e}))})),e.$watch("$ctrl.affiliationData.university",(function(e,t){return null!=e&&e!==t&&(null!=e.departments?e.departments.length:void 0)>0?o.departments=a.a.uniq(e.departments):o.departments=i}))};w.$inject=["$scope","$element","$attrs","UserAffiliationsDataService"];r.a.component("affiliationForm",{bindings:{affiliationData:"=",showUniversityAndCountry:"<",showRoleAndDepartment:"<"},controller:w,templateUrl:"affiliationFormTpl"});var S=function(e,t,n,r){var o=this;o.showHint=!1,o.hasFocus=!1,o.handleFocus=function(){return o.hasFocus=!0,o.suggestion=null},o.handleBlur=function(){return o.showHint=!1,o.hasFocus=!1,o.suggestion=null,o.onBlur()},o.handleKeyDown=function(e){return e.which!==r.TAB&&e.which!==r.ENTER||null==o.suggestion||""===o.suggestion||(e.preventDefault(),o.localNgModel+=o.suggestion),o.suggestion=null,o.showHint=!1},e.$watch("$ctrl.localNgModel",(function(e,t){if(o.hasFocus&&e!==t)return o.suggestion=null,o.showHint=!1,o.getSuggestion({userInput:e}).then((function(t){if(null!=t&&e===o.localNgModel)return o.showHint=!0,o.suggestion=t.replace(e,"")})).catch((function(){return o.suggestion=null}))}))};S.$inject=["$scope","$element","$attrs","Keys"];r.a.component("inputSuggestions",{bindings:{localNgModel:"=ngModel",localNgModelOptions:"=?ngModelOptions",getSuggestion:"&",onBlur:"&?",inputId:"@?",inputName:"@?",inputPlaceholder:"@?",inputType:"@?",inputRequired:"=?"},controller:S,template:['<div class="input-suggestions">','<div class="form-control input-suggestions-shadow">','<span ng-bind="$ctrl.localNgModel"',' class="input-suggestions-shadow-existing"',' ng-show="$ctrl.showHint">',"</span>",'<span ng-bind="$ctrl.suggestion"',' class="input-suggestions-shadow-suggested"',' ng-show="$ctrl.showHint">',"</span>","</div>",'<input type="text"',' class="form-control input-suggestions-main"',' ng-focus="$ctrl.handleFocus()"',' ng-keyDown="$ctrl.handleKeyDown($event)"',' ng-blur="$ctrl.handleBlur()"',' ng-model="$ctrl.localNgModel"',' ng-model-options="$ctrl.localNgModelOptions"',' ng-model-options="{ debounce: 50 }"',' ng-attr-id="{{ ::$ctrl.inputId }}"',' ng-attr-placeholder="{{ ::$ctrl.inputPlaceholder }}"',' ng-attr-type="{{ ::$ctrl.inputType }}"',' ng-attr-name="{{ ::$ctrl.inputName }}"',' ng-required="::$ctrl.inputRequired">',"</div>"].join("")}),n(38),n(54);function T(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}r.a.controller("UserAffiliationsController",["$scope","$rootScope","UserAffiliationsDataService","$q","$window",function(e,t,n,r,o){e.userEmails=[],e.linkedInstitutionIds=[],e.hideInstitutionNotifications={},e.closeInstitutionNotification=function(t){e.hideInstitutionNotifications[t]=!0},e.samlBetaSession=ExposedSettings.hasSamlBeta,e.samlInitPath=ExposedSettings.samlInitPath,e.reconfirmationRemoveEmail=Object(m.a)("ol-reconfirmationRemoveEmail"),e.reconfirmedViaSAML=Object(m.a)("ol-reconfirmedViaSAML");var i=/([^@]+)@(.+)/,c=/^(([^<>()[\]\\.,;:\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,}))$/,s=function(e){var t=e?e.match(i):void 0;return t?{local:t[1],domain:t[2]}:{local:null,domain:null}},u=function(t){return!!ExposedSettings.hasSamlFeature&&(!!t&&(!!t.ssoEnabled||!(!e.samlBetaSession||!t.ssoBeta)))};e.getEmailSuggestion=function(t){var o=s(t);return e.ui.isValidEmail=c.test(t),e.ui.isBlacklistedEmail=!1,e.ui.showManualUniversitySelectionUI=!1,o.domain?(e.ui.isBlacklistedEmail=n.isDomainBlacklisted(o.domain),n.getUniversityDomainFromPartialDomainInput(o.domain).then((function(t){return s(e.newAffiliation.email).domain===t.hostname?(e.newAffiliation.university=t.university,e.newAffiliation.department=t.department,e.newAffiliation.ssoAvailable=function(e){if(!e)return!1;if(!e.confirmed)return!1;var t=e.university;return!!u(t)}(t)):p(),r.resolve("".concat(o.local,"@").concat(t.hostname))})).catch((function(){return p(),r.reject(null)}))):(p(),r.reject(null))},e.linkInstitutionAcct=function(t,n){h(),e.ui.isMakingRequest=!0,e.ui.isProcessing=!0,o.location.href="".concat(e.samlInitPath,"?university_id=").concat(n,"&auto=/user/settings&email=").concat(t)},e.selectUniversityManually=function(){p(),e.ui.showManualUniversitySelectionUI=!0},e.changeAffiliation=function(t){a.a.get(t,["affiliation","institution","id"])&&n.getUniversityDetails(t.affiliation.institution.id).then((function(t){return e.affiliationToChange.university=t})),e.affiliationToChange.email=t.email,e.affiliationToChange.role=t.affiliation.role,e.affiliationToChange.department=t.affiliation.department},e.saveAffiliationChange=function(t){return t.affiliation.role=e.affiliationToChange.role,t.affiliation.department=e.affiliationToChange.department,l(),g(n.addRoleAndDepartment(t.email,t.affiliation.role,t.affiliation.department)).then((function(){return setTimeout((function(){return v()}))}))},e.cancelAffiliationChange=function(e){return l()},e.isChangingAffiliation=function(t){return e.affiliationToChange.email===t},e.showAddEmailForm=function(){return e.ui.showAddEmailUI=!0},e.addNewEmail=function(){var t;return t=e.newAffiliation.university?e.newAffiliation.university.isUserSuggested?n.addUserAffiliationWithUnknownUniversity(e.newAffiliation.email,e.newAffiliation.university.name,e.newAffiliation.country.code,e.newAffiliation.role,e.newAffiliation.department):n.addUserAffiliation(e.newAffiliation.email,e.newAffiliation.university.id,e.newAffiliation.role,e.newAffiliation.department):n.addUserEmail(e.newAffiliation.email),e.ui.isAddingNewEmail=!0,e.ui.showAddEmailUI=!1,g(t).then((function(){d(),f(),setTimeout((function(){return v()}))})).finally((function(){return e.ui.isAddingNewEmail=!1}))},e.setDefaultUserEmail=function(r){return g(n.setDefaultUserEmail(r.email)).then((function(){var n,o=T(e.userEmails||[]);try{for(o.s();!(n=o.n()).done;){n.value.default=!1}}catch(e){o.e(e)}finally{o.f()}r.default=!0,window.usersEmail=r.email,t.usersEmail=r.email}))},e.removeUserEmail=function(t){return e.userEmails=e.userEmails.filter((function(e){return e!==t})),g(n.removeUserEmail(t.email))},e.resendConfirmationEmail=function(t){return h(),e.ui.isResendingConfirmation=!0,g(n.resendConfirmationEmail(t.email)).finally((function(){return e.ui.isResendingConfirmation=!1}))},e.acknowledgeError=function(){return y(),v()};var l=function(){return e.affiliationToChange={email:"",university:null,role:null,department:null}},d=function(){return e.newAffiliation={email:"",country:null,university:null,role:null,department:null}},f=function(){e.ui.showAddEmailUI=!1,e.ui.isValidEmail=!1,e.ui.isBlacklistedEmail=!1,e.ui.showManualUniversitySelectionUI=!1},p=function(){e.newAffiliation={email:e.newAffiliation.email}},h=function(){e.ui.isLoadingEmails=!1,e.ui.isProcessing=!1,e.ui.isResendingConfirmation=!1},y=function(){return e.ui={hasError:!1,errorMessage:"",showChangeAffiliationUI:!1,isMakingRequest:!1,isLoadingEmails:!1,isAddingNewEmail:!1},l(),d(),f()};y();var g=function(t){return e.ui.hasError=!1,e.ui.isMakingRequest=!0,t.catch((function(t){e.ui.hasError=!0,e.ui.errorMessage=a.a.get(t,["data","message"])})).finally((function(){return e.ui.isMakingRequest=!1})),t};e.inReconfirmNotificationPeriod=function(e){return a.a.get(e,["affiliation","inReconfirmNotificationPeriod"])},e.institutionAlreadyLinked=function(t){var n=t.affiliation&&t.affiliation.institution&&t.affiliation.institution&&t.affiliation.institution.id?t.affiliation.institution.id.toString():void 0;return-1!==e.linkedInstitutionIds.indexOf(n)};var v=function(){h(),e.ui.isLoadingEmails=!0,g(n.getUserEmailsEnsureAffiliation()).then((function(t){e.userEmails=t.map((function(e){return e.ssoAvailable=function(e){if(!e)return!1;var t=e.institution;return!!u(t)&&!!t.confirmed}(e.affiliation),e})),e.linkedInstitutionIds=t.filter((function(e){return!!e.samlProviderId})).map((function(e){return e.samlProviderId}))})).finally((function(){return e.ui.isLoadingEmails=!1}))};v()}]);function C(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}for(var _=[{code:"af",name:"Afghanistan"},{code:"ax",name:"Åland Islands"},{code:"al",name:"Albania"},{code:"dz",name:"Algeria"},{code:"as",name:"American Samoa"},{code:"ad",name:"Andorra"},{code:"ao",name:"Angola"},{code:"ai",name:"Anguilla"},{code:"aq",name:"Antarctica"},{code:"ag",name:"Antigua and Barbuda"},{code:"ar",name:"Argentina"},{code:"am",name:"Armenia"},{code:"aw",name:"Aruba"},{code:"au",name:"Australia"},{code:"at",name:"Austria"},{code:"az",name:"Azerbaijan"},{code:"bs",name:"Bahamas"},{code:"bh",name:"Bahrain"},{code:"bd",name:"Bangladesh"},{code:"bb",name:"Barbados"},{code:"by",name:"Belarus"},{code:"be",name:"Belgium"},{code:"bz",name:"Belize"},{code:"bj",name:"Benin"},{code:"bm",name:"Bermuda"},{code:"bt",name:"Bhutan"},{code:"bo",name:"Bolivia"},{code:"bq",name:"Bonaire, Saint Eustatius and Saba"},{code:"ba",name:"Bosnia and Herzegovina"},{code:"bw",name:"Botswana"},{code:"bv",name:"Bouvet Island"},{code:"br",name:"Brazil"},{code:"io",name:"British Indian Ocean Territory"},{code:"vg",name:"British Virgin Islands"},{code:"bn",name:"Brunei"},{code:"bg",name:"Bulgaria"},{code:"bf",name:"Burkina Faso"},{code:"bi",name:"Burundi"},{code:"kh",name:"Cambodia"},{code:"cm",name:"Cameroon"},{code:"ca",name:"Canada"},{code:"cv",name:"Cabo Verde"},{code:"ky",name:"Cayman Islands"},{code:"cf",name:"Central African Republic"},{code:"td",name:"Chad"},{code:"cl",name:"Chile"},{code:"cn",name:"China"},{code:"cx",name:"Christmas Island"},{code:"cc",name:"Cocos (Keeling) Islands"},{code:"co",name:"Colombia"},{code:"km",name:"Comoros"},{code:"cg",name:"Congo"},{code:"ck",name:"Cook Islands"},{code:"cr",name:"Costa Rica"},{code:"ci",name:"Côte d'Ivoire"},{code:"hr",name:"Croatia"},{code:"cu",name:"Cuba"},{code:"cw",name:"Curaçao"},{code:"cy",name:"Cyprus"},{code:"cz",name:"Czech Republic"},{code:"kp",name:"Democratic People's Republic of Korea"},{code:"cd",name:"Democratic Republic of the Congo"},{code:"dk",name:"Denmark"},{code:"dj",name:"Djibouti"},{code:"dm",name:"Dominica"},{code:"do",name:"Dominican Republic"},{code:"ec",name:"Ecuador"},{code:"eg",name:"Egypt"},{code:"sv",name:"El Salvador"},{code:"gq",name:"Equatorial Guinea"},{code:"er",name:"Eritrea"},{code:"ee",name:"Estonia"},{code:"et",name:"Ethiopia"},{code:"fk",name:"Falkland Islands (Malvinas)"},{code:"fo",name:"Faroe Islands"},{code:"fj",name:"Fiji"},{code:"fi",name:"Finland"},{code:"fr",name:"France"},{code:"gf",name:"French Guiana"},{code:"pf",name:"French Polynesia"},{code:"tf",name:"French Southern Territories"},{code:"ga",name:"Gabon"},{code:"gm",name:"Gambia"},{code:"ge",name:"Georgia"},{code:"de",name:"Germany"},{code:"gh",name:"Ghana"},{code:"gi",name:"Gibraltar"},{code:"gr",name:"Greece"},{code:"gl",name:"Greenland"},{code:"gd",name:"Grenada"},{code:"gp",name:"Guadeloupe"},{code:"gu",name:"Guam"},{code:"gt",name:"Guatemala"},{code:"gg",name:"Guernsey"},{code:"gn",name:"Guinea"},{code:"gw",name:"Guinea-Bissau"},{code:"gy",name:"Guyana"},{code:"ht",name:"Haiti"},{code:"hm",name:"Heard Island and McDonald Islands"},{code:"va",name:"Holy See (Vatican City)"},{code:"hn",name:"Honduras"},{code:"hk",name:"Hong Kong"},{code:"hu",name:"Hungary"},{code:"is",name:"Iceland"},{code:"in",name:"India"},{code:"id",name:"Indonesia"},{code:"ir",name:"Iran"},{code:"iq",name:"Iraq"},{code:"ie",name:"Ireland"},{code:"im",name:"Isle of Man"},{code:"il",name:"Israel"},{code:"it",name:"Italy"},{code:"jm",name:"Jamaica"},{code:"jp",name:"Japan"},{code:"je",name:"Jersey"},{code:"jo",name:"Jordan"},{code:"kz",name:"Kazakhstan"},{code:"ke",name:"Kenya"},{code:"ki",name:"Kiribati"},{code:"xk",name:"Kosovo"},{code:"kw",name:"Kuwait"},{code:"kg",name:"Kyrgyzstan"},{code:"la",name:"Laos"},{code:"lv",name:"Latvia"},{code:"lb",name:"Lebanon"},{code:"ls",name:"Lesotho"},{code:"lr",name:"Liberia"},{code:"ly",name:"Libya"},{code:"li",name:"Liechtenstein"},{code:"lt",name:"Lithuania"},{code:"lu",name:"Luxembourg"},{code:"mo",name:"Macao"},{code:"mk",name:"Macedonia"},{code:"mg",name:"Madagascar"},{code:"mw",name:"Malawi"},{code:"my",name:"Malaysia"},{code:"mv",name:"Maldives"},{code:"ml",name:"Mali"},{code:"mt",name:"Malta"},{code:"mh",name:"Marshall Islands"},{code:"mq",name:"Martinique"},{code:"mr",name:"Mauritania"},{code:"mu",name:"Mauritius"},{code:"yt",name:"Mayotte"},{code:"mx",name:"Mexico"},{code:"fm",name:"Micronesia"},{code:"md",name:"Moldova"},{code:"mc",name:"Monaco"},{code:"mn",name:"Mongolia"},{code:"me",name:"Montenegro"},{code:"ms",name:"Montserrat"},{code:"ma",name:"Morocco"},{code:"mz",name:"Mozambique"},{code:"mm",name:"Myanmar"},{code:"na",name:"Namibia"},{code:"nr",name:"Nauru"},{code:"np",name:"Nepal"},{code:"nl",name:"Netherlands"},{code:"an",name:"Netherlands Antilles"},{code:"nc",name:"New Caledonia"},{code:"nz",name:"New Zealand"},{code:"ni",name:"Nicaragua"},{code:"ne",name:"Niger"},{code:"ng",name:"Nigeria"},{code:"nu",name:"Niue"},{code:"nf",name:"Norfolk Island"},{code:"mp",name:"Northern Mariana Islands"},{code:"no",name:"Norway"},{code:"om",name:"Oman"},{code:"pk",name:"Pakistan"},{code:"pw",name:"Palau"},{code:"ps",name:"Palestine"},{code:"pa",name:"Panama"},{code:"pg",name:"Papua New Guinea"},{code:"py",name:"Paraguay"},{code:"pe",name:"Peru"},{code:"ph",name:"Philippines"},{code:"pn",name:"Pitcairn"},{code:"pl",name:"Poland"},{code:"pt",name:"Portugal"},{code:"pr",name:"Puerto Rico"},{code:"qa",name:"Qatar"},{code:"kr",name:"Republic of Korea"},{code:"re",name:"Réunion"},{code:"ro",name:"Romania"},{code:"ru",name:"Russia"},{code:"rw",name:"Rwanda"},{code:"bl",name:"Saint Barthélemy"},{code:"sh",name:"Saint Helena, Ascension and Tristan da Cunha"},{code:"kn",name:"Saint Kitts and Nevis"},{code:"lc",name:"Saint Lucia"},{code:"mf",name:"Saint Martin"},{code:"pm",name:"Saint Pierre and Miquelon"},{code:"vc",name:"Saint Vincent and the Grenadines"},{code:"ws",name:"Samoa"},{code:"sm",name:"San Marino"},{code:"st",name:"Sao Tome and Principe"},{code:"sa",name:"Saudi Arabia"},{code:"sn",name:"Senegal"},{code:"rs",name:"Serbia"},{code:"sc",name:"Seychelles"},{code:"sl",name:"Sierra Leone"},{code:"sg",name:"Singapore"},{code:"sx",name:"Sint Maarten"},{code:"sk",name:"Slovakia"},{code:"si",name:"Slovenia"},{code:"sb",name:"Solomon Islands"},{code:"so",name:"Somalia"},{code:"za",name:"South Africa"},{code:"gs",name:"South Georgia and the South Sandwich Islands"},{code:"ss",name:"South Sudan"},{code:"es",name:"Spain"},{code:"lk",name:"Sri Lanka"},{code:"sd",name:"Sudan"},{code:"sr",name:"Suriname"},{code:"sj",name:"Svalbard and Jan Mayen"},{code:"sz",name:"Swaziland"},{code:"se",name:"Sweden"},{code:"ch",name:"Switzerland"},{code:"sy",name:"Syria"},{code:"tw",name:"Taiwan"},{code:"tj",name:"Tajikistan"},{code:"tz",name:"Tanzania"},{code:"th",name:"Thailand"},{code:"tl",name:"Timor-Leste"},{code:"tg",name:"Togo"},{code:"tk",name:"Tokelau"},{code:"to",name:"Tonga"},{code:"tt",name:"Trinidad and Tobago"},{code:"tn",name:"Tunisia"},{code:"tr",name:"Turkey"},{code:"tm",name:"Turkmenistan"},{code:"tc",name:"Turks and Caicos Islands"},{code:"tv",name:"Tuvalu"},{code:"vi",name:"U.S. Virgin Islands"},{code:"ug",name:"Uganda"},{code:"ua",name:"Ukraine"},{code:"ae",name:"United Arab Emirates"},{code:"gb",name:"United Kingdom"},{code:"us",name:"United States of America"},{code:"um",name:"United States Minor Outlying Islands"},{code:"uy",name:"Uruguay"},{code:"uz",name:"Uzbekistan"},{code:"vu",name:"Vanuatu"},{code:"ve",name:"Venezuela"},{code:"vn",name:"Vietnam"},{code:"wf",name:"Wallis and Futuna"},{code:"eh",name:"Western Sahara"},{code:"ye",name:"Yemen"},{code:"zm",name:"Zambia"},{code:"zw",name:"Zimbabwe"}],A={},k={},E=["Undergraduate Student","Masters Student (MSc, MA, ...)","Doctoral Student (PhD, EngD, ...)","Postdoc","Lecturer","Senior Lecturer","Reader","Associate Professor ","Assistant Professor ","Professor","Emeritus Professor"],I=["Aeronautics & Astronautics","Anesthesia","Anthropology","Applied Physics","Art & Art History","Biochemistry","Bioengineering","Biology","Business School Library","Business, Graduate School of","Cardiothoracic Surgery","Chemical and Systems Biology","Chemical Engineering","Chemistry","Civil & Environmental Engineering","Classics","Communication","Comparative Literature","Comparative Medicine","Computer Science","Dermatology","Developmental Biology","Earth System Science","East Asian Languages and Cultures","Economics","Education, School of","Electrical Engineering","Energy Resources Engineering","English","French and Italian","Genetics","Geological Sciences","Geophysics","German Studies","Health Research & Policy","History","Iberian & Latin American Cultures","Law Library","Law School","Linguistics","Management Science & Engineering","Materials Science & Engineering","Mathematics","Mechanical Engineering","Medical Library","Medicine","Microbiology & Immunology","Molecular & Cellular Physiology","Music","Neurobiology","Neurology & Neurological Sciences","Neurosurgery","Obstetrics and Gynecology","Ophthalmology","Orthopaedic Surgery","Otolaryngology (Head and Neck Surgery)","Pathology","Pediatrics","Philosophy","Physics","Political Science","Psychiatry and Behavioral Sciences","Psychology","Radiation Oncology","Radiology","Religious Studies","Slavic Languages and Literature","Sociology","University Libraries","Statistics","Structural Biology","Surgery","Theater and Performance Studies","Urology"],x={"overleaf.com":!0},M=["br","cn","co","co.jp","co.uk","com","com.au","de","fr","in","info","io","net","no","ru","se","us","com.tw","com.br","pl","it","co.in","com.mx"],O=0,R=["gmail","googlemail","icloud","me","yahoo","ymail","yahoomail","hotmail","live","msn","outlook","gmx","mail","aol","163","mac","qq","o2","libero","126","protonmail","yandex","yeah","web","foxmail"];O<R.length;O++){var U,N=R[O],D=C(M);try{for(D.s();!(U=D.n()).done;){var L=U.value;x["".concat(N,".").concat(L)]=!0}}catch(e){D.e(e)}finally{D.f()}}r.a.factory("UserAffiliationsDataService",["$http","$q",function(e,t){var n=function(){return e.get("/user/emails").then((function(e){return e.data}))},r=function(e){return e.toLowerCase()in x};return{getCountries:function(){return t.resolve(_)},getDefaultRoleHints:function(){return t.resolve(E)},getDefaultDepartmentHints:function(){return t.resolve(I)},getUserEmails:n,getUserEmailsEnsureAffiliation:function(){return e.get("/user/emails?ensureAffiliation=true").then((function(e){return e.data}))},getUserDefaultEmail:function(){return n().then((function(e){return a.a.find(e,(function(e){return e.default}))}))},getUniversitiesFromCountry:function(n){var r;return r=null!=A[n.code]?A[n.code]:e.get("/institutions/list",{params:{country_code:n.code}}).then((function(e){return A[n.code]=e.data})),t.resolve(r)},getUniversityDomainFromPartialDomainInput:function(n){return null!=k[n]?t.resolve(k[n]):e.get("/institutions/domains",{params:{hostname:n,limit:1}}).then((function(e){var n=e.data[0];return null==n||r(n.hostname)?t.reject(null):(k[n.hostname]=n,t.resolve(n))}))},getUniversityDetails:function(t){return e.get("/institutions/list/".concat(t)).then((function(e){return e.data}))},addUserEmail:function(t){return e.post("/user/emails",{email:t,_csrf:window.csrfToken})},addUserAffiliationWithUnknownUniversity:function(t,n,r,o,a){return e.post("/user/emails",{email:t,university:{name:n,country_code:r},role:o,department:a,_csrf:window.csrfToken})},addUserAffiliation:function(t,n,r,o){return e.post("/user/emails",{email:t,university:{id:n},role:r,department:o,_csrf:window.csrfToken})},addRoleAndDepartment:function(t,n,r){return e.post("/user/emails/endorse",{email:t,role:n,department:r,_csrf:window.csrfToken})},setDefaultUserEmail:function(t){return e.post("/user/emails/default",{email:t,_csrf:window.csrfToken})},removeUserEmail:function(t){return e.post("/user/emails/delete",{email:t,_csrf:window.csrfToken})},resendConfirmationEmail:function(t){return e.post("/user/emails/resend_confirmation",{email:t,_csrf:window.csrfToken})},isDomainBlacklisted:r}}]);r.a.controller("UserAffiliationsReconfirmController",["$scope","$http","$window",function(e,t,n){var r=ExposedSettings.samlInitPath;e.reconfirm={},e.ui=e.ui||{},e.userEmails=Object(m.a)("ol-userEmails"),e.reconfirmedViaSAML=Object(m.a)("ol-reconfirmedViaSAML");var o=Object(m.a)("ol-portalAffiliation");o&&(e.portalInReconfirmNotificationPeriod=o&&o.inReconfirmNotificationPeriod,e.userEmail=e.portalInReconfirmNotificationPeriod),e.reconfirmationRemoveEmail=Object(m.a)("ol-reconfirmationRemoveEmail"),e.allInReconfirmNotificationPeriods=Object(m.a)("ol-allInReconfirmNotificationPeriods"),e.requestReconfirmation=function(o,i){var c=i.email;e.ui.isMakingRequest=!0,e.ui.isProcessing=!0,e.reconfirm[c]=e.reconfirm[c]||{};var s=o.currentTarget.getAttribute("data-location"),u=a.a.get(i,["affiliation","institution","id"]);a.a.get(i,["affiliation","institution","ssoEnabled"])?n.location.href="".concat(r,"?university_id=").concat(u,"&reconfirm=").concat(s):function(n){e.ui.hasError=!1,e.ui.isMakingRequest=!0,t.post("/user/emails/send-reconfirmation",{email:n,_csrf:window.csrfToken}).then((function(){e.reconfirm[n].reconfirmationSent=!0})).catch((function(t){e.ui.hasError=!0})).finally((function(){return e.ui.isMakingRequest=!1}))}(c)}}]),r.a.controller("UserOauthController",["$http","$scope","$q",function(e,t,n){var r=function _unlinkError(e,n){t.providers[e].ui.hasError=!0,t.providers[e].ui.errorMessage=n&&n.data&&n.data.message?n.data.message:"error"};t.unlink=function(n){if(window.ExposedSettings.isOverleaf){t.providers[n].ui={hasError:!1,isProcessing:!0};var o={_csrf:window.csrfToken,link:!1,providerId:n};e.post("/user/oauth-unlink",o).catch((function(e){t.providers[n].ui.isProcessing=!1,r(n,e)})).then((function(e){t.providers[n].ui.isProcessing=!1,200===e.status?t.thirdPartyIds[n]=null:r(n,e)}))}},t.ui={hasError:!1,errorMessage:""},t.providers=window.oauthProviders,t.thirdPartyIds=window.thirdPartyIds}]),r.a.constant("Keys",{ENTER:13,TAB:9,ESCAPE:27,SPACE:32,BACKSPACE:8,UP:38,DOWN:40,LEFT:37,RIGHT:39,PERIOD:190,COMMA:188,END:35});r.a.controller("ImportingController",["$interval","$scope","$timeout","$window",function(e,t,n,r){e((function(){t.state.load_progress+=5,t.state.load_progress>100&&(t.state.load_progress=20)}),500),n((function(){r.location.reload()}),5e3),t.state={load_progress:20}}]),r.a.directive("autoSubmitForm",(function(){return{link:function(e,t){t.submit()}}}));n(176),n(166);function q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return F(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}r.a.directive("asyncForm",["$http","validateCaptcha","validateCaptchaV3",function(e,t,n){return{controller:["$scope","$location",function(e,t){return this.getEmail=function(){return e.email},this.getEmailFromQuery=function(){return t.search().email||t.search().new_email},this}],link:function(r,o,a,i){var c,s=a.asyncForm;r[a.name].response=c={},r[a.name].inflight=!1,r.email=r.email||r.usersEmail||i.getEmailFromQuery()||a.newEmail;var u=function(e){for(var t={},n=0,i=Array.from(o.serializeArray());n<i.length;n++){var u=i[n];t[u.name]=u.value}return e&&(t["g-recaptcha-response"]=e),Object.keys(c).forEach((function(e){return delete c[e]})),r[a.name].inflight=!0,d(o.attr("method"))(o.attr("action"),t,{disableAutoLoginRedirect:!0}).then((function(e){var t=e.data,n=e.headers;r[a.name].inflight=!1,c.success=!0,c.error=!1;var o=r[a.onSuccess];if(o)o(e);else{if(t.redir)return ga("send","event",s,"success"),window.location=t.redir;if(t.message)return c.message=t.message,"error"===t.message.type?(c.success=!1,c.error=!0,ga("send","event",s,"failure",t.message)):ga("send","event",s,"success");if(r.$eval(a.asyncFormDownloadResponse)){var i=new Blob([t],{type:n("Content-Type")});location.href=URL.createObjectURL(i)}}})).catch((function(e){var t=e.data,n=e.status;r[a.name].inflight=!1,c.success=!1,c.error=!0,c.status=n,c.data=t;var o,i=r[a.onError];i?i(e):(o=t.message&&t.message.text?t.message.text:t.message,c.message=400===n?{text:o||"Invalid Request. Please correct the data and try again.",type:"error"}:403===n?{text:o||"Session error. Please check you have cookies enabled. If the problem persists, try clearing your cache and cookies.",type:"error"}:429===n?{text:o||"Too many attempts. Please wait for a while and try again.",type:"error"}:{text:o||"Something went wrong talking to the server :(. Please try again.",type:"error"},ga("send","event",s,"failure",t.message))}))},l=function(){return e=function(e){return u(e)},a.captchaActionName&&n(a.captchaActionName),void(null!=a.captcha?t(e):e());var e},d=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"post",n={post:e.post,get:e.get};return n[t.toLowerCase()]};o.on("submit",(function(e){e.preventDefault(),l()})),a.autoSubmit&&l()}}}]),r.a.directive("formMessages",(function(){return{restrict:"E",template:"<div class=\"alert\" ng-class=\"{\n'alert-danger': form.response.message.type == 'error',\n'alert-success': form.response.message.type != 'error'\n}\" ng-show=\"!!form.response.message\" ng-bind-html=\"form.response.message.text\">\n</div>\n<div ng-transclude></div>",transclude:!0,scope:{form:"=for"}}})),r.a.directive("complexPassword",(function(){return{require:["^asyncForm","ngModel"],link:function(e,t,n,r){PassField.Config.blackList=[];var o={pattern:"",length:{min:6,max:72},allowEmpty:!1,allowAnyChars:!1,isMasked:!0,showToggle:!1,showGenerate:!1,showTip:!1,showWarn:!1,checkMode:PassField.CheckModes.STRICT,chars:{digits:"1234567890",letters:"abcdefghijklmnopqrstuvwxyz",letters_up:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",symbols:"@#$%^&*()-_=+[]{};:<>/?!£€.,"}},i=a.a.defaults(window.passwordStrengthOptions||{},o);1===i.length.min&&(i.acceptRate=0),i.length.max>72&&(i.length.max=72),i.length.max>0&&(i.length.max+=1);var c=new PassField.Field("passwordField",i),s=q(Array.from(r),2),u=s[0],l=s[1];l.$parsers.unshift((function(t){var n=c.validatePass(),r=u.getEmail()||window.usersEmail;if(n){if("string"==typeof r&&""!==r){var o=r.split("@")[0];-1===t.indexOf(r)&&-1===t.indexOf(o)||(n=!1,e.complexPasswordErrorMessage="Password can not contain email address")}}else e.complexPasswordErrorMessage=c.getPassValidationMessage();return null!=i.length.max&&t.length>=i.length.max&&(n=!1,e.complexPasswordErrorMessage="Maximum password length ".concat(i.length.max-1," exceeded")),null!=i.length.min&&t.length<i.length.min&&(n=!1,e.complexPasswordErrorMessage="Password too short, minimum ".concat(i.length.min)),l.$setValidity("complexPassword",n),t}))}}}));n(242),n(243),r.a.directive("equals",(function(){return{require:"ngModel",link:function(e,t,n,r){var o="#".concat(n.equals);return t.add(o).on("keyup",(function(){return e.$apply((function(){var e=t.val()===$(o).val();return r.$setValidity("areEqual",e)}))}))}}})),r.a.directive("eventTracking",["eventTracking",function(e){return{scope:{eventTracking:"@",eventSegmentation:"=?"},link:function(t,n,r){var o=r.eventTrackingGa||!1,i=r.eventTrackingMb||!1,c=r.eventTrackingSendOnce?"sendMBOnce":"sendMB",s=r.eventTrackingSendOnce?"sendGAOnce":"send",u=t.eventSegmentation||{};u.page=window.location.pathname;var l=function(n){if(i&&e[c](t.eventTracking,u),o&&e[s](r.eventTrackingGa,r.eventTrackingAction||t.eventTracking,r.eventTrackingLabel||""),n)return $(window).unbind("resize scroll")};if("load"===r.eventTrackingTrigger)return l();if("click"===r.eventTrackingTrigger)return n.on("click",(function(e){return l()}));if("hover"===r.eventTrackingTrigger){var d=null,f=500;return r.eventHoverAmt&&(f=parseInt(r.eventHoverAmt,10)),n.on("mouseenter",(function(){d=setTimeout((function(){return l()}),f)})).on("mouseleave",(function(){return clearTimeout(d)}))}"scroll"!==r.eventTrackingTrigger||e.eventInCache(t.eventTracking)||$(window).on("resize scroll",a.a.throttle((function(){(function(e){var t=e.offset().top,n=t+e.outerHeight(),r=$(window).scrollTop(),o=r+$(window).height();return n>r&&t<o})(n)&&l(!0)}),500))}}}]),n(244),n(245);r.a.directive("selectAllList",(function(){return{controller:["$scope",function(e){this.selectAll=function(){return e.$broadcast("select-all:select")},this.deselectAll=function(){return e.$broadcast("select-all:deselect")},this.clearSelectAllState=function(){return e.$broadcast("select-all:clear")}}],link:function(e,t,n){}}})),r.a.directive("selectAll",(function(){return{require:"^selectAllList",link:function(e,t,n,r){return e.$on("select-all:clear",(function(){return t.prop("checked",!1)})),t.change((function(){return t.is(":checked")?r.selectAll():r.deselectAll(),!0}))}}})),r.a.directive("selectIndividual",(function(){return{require:"^selectAllList",scope:{ngModel:"="},link:function(e,t,n,r){var o=!1;return e.$watch("ngModel",(function(e){if(null!=e&&!o)return r.clearSelectAllState()})),e.$on("select-all:select",(function(){if(!t.prop("disabled"))return o=!0,e.$apply((function(){return e.ngModel=!0})),o=!1})),e.$on("select-all:deselect",(function(){if(!t.prop("disabled"))return o=!0,e.$apply((function(){return e.ngModel=!1})),o=!1})),e.$on("select-all:row-clicked",(function(){if(!t.prop("disabled"))return o=!0,e.$apply((function(){if(e.ngModel=!e.ngModel,!e.ngModel)return r.clearSelectAllState()})),o=!1}))}}}));r.a.directive("selectRow",(function(){return{scope:!0,link:function(e,t,n){return t.on("click",(function(t){return e.$broadcast("select-all:row-clicked")}))}}})),r.a.directive("maxHeight",(function(){return{restrict:"A",link:function(e,t,n){return e.$watch(n.maxHeight,(function(e){if(null!=e)return t.css({"max-height":e})}))}}}));r.a.directive("bookmarkableTabset",["$location",function(e){return{restrict:"A",require:"tabset",link:function(t,n,r,o){var i=function(e){if(e&&""!==e){var t=a.a.find(o.tabs,(function(t){return t.bookmarkableTabId===e}));if(t)return t.select(),n.children()[0].scrollIntoView({behavior:"smooth"})}};t.$applyAsync((function(){var t=e.hash();i(t);var n=document.querySelectorAll(".link-to-tab"),r=function(e){var t=e.currentTarget.getAttribute("href").split("#").pop();i(t)};n&&Array.from(n).map((function(e){return e.addEventListener("click",r)}))}))}}}]),r.a.directive("bookmarkableTab",["$location",function(e){return{restrict:"A",require:"tab",link:function(t,n,r,o){var a=n.isolateScope(),i=r.bookmarkableTab;a&&i&&""!==i&&(a.bookmarkableTabId=i,a.$watch("active",(function(t,n){if(t&&!n&&e.hash()!==i)return e.hash(i)})))}}}]);n(246),n(247),n(248),r.a.controller("LaunchpadController",["$scope","$http","$timeout",function(e,t,n){if(e.adminUserExists=window.data.adminUserExists,e.ideJsPath=window.data.ideJsPath,e.authMethod=window.data.authMethod,e.createAdminSuccess=null,e.createAdminError=null,e.statusChecks={ideJs:{status:"inflight",error:null},websocket:{status:"inflight",error:null},healthCheck:{status:"inflight",error:null}},e.testEmail={emailAddress:"",inflight:!1,status:null},e.shouldShowAdminForm=function(){return!e.adminUserExists},e.onCreateAdminSuccess=function(t){var n=t.status;if(n>=200&&n<300)return e.createAdminSuccess=!0},e.onCreateAdminError=function(){return e.createAdminError=!0},e.sendTestEmail=function(){return e.testEmail.inflight=!0,e.testEmail.status=null,t.post("/launchpad/send_test_email",{email:e.testEmail.emailAddress,_csrf:window.csrfToken}).then((function(t){var n=t.status;if(e.testEmail.inflight=!1,n>=200&&n<300)return e.testEmail.status="ok"})).catch((function(){return e.testEmail.inflight=!1,e.testEmail.status="error"}))},e.tryFetchIdeJs=function(){return e.statusChecks.ideJs.status="inflight",n((function(){return t.get(e.ideJsPath).then((function(t){var n=t.status;if(n>=200&&n<300)return e.statusChecks.ideJs.status="ok"})).catch((function(t){var n=t.status;return e.statusChecks.ideJs.status="error",e.statusChecks.ideJs.error=new Error("Http status: ".concat(n))}))}),1e3)},e.tryOpenWebSocket=function(){return e.statusChecks.websocket.status="inflight",n((function(){if("undefined"==typeof io||null===io)return e.statusChecks.websocket.status="error",void(e.statusChecks.websocket.error="socket.io not loaded");var t=io.connect(null,{reconnect:!1,"connect timeout":3e4,"force new connection":!0});return t.on("connectionAccepted",(function(){return e.statusChecks.websocket.status="ok",e.$apply((function(){}))})),t.on("connectionRejected",(function(t){return e.statusChecks.websocket.status="error",e.statusChecks.websocket.error=t,e.$apply((function(){}))})),t.on("connect_failed",(function(t){return e.statusChecks.websocket.status="error",e.statusChecks.websocket.error=t,e.$apply((function(){}))}))}),1e3)},e.tryHealthCheck=function(){return e.statusChecks.healthCheck.status="inflight",t.get("/health_check").then((function(t){var n=t.status;if(n>=200&&n<300)return e.statusChecks.healthCheck.status="ok"})).catch((function(t){var n=t.status;return e.statusChecks.healthCheck.status="error",e.statusChecks.healthCheck.error=new Error("Http status: ".concat(n))}))},e.runStatusChecks=function(){return n((function(){return e.tryFetchIdeJs()}),1e3),n((function(){return e.tryOpenWebSocket()}),2e3)},e.adminUserExists)return e.runStatusChecks()}]);angular.module("SharelatexApp").config(["$locationProvider",function(e){try{return e.html5Mode({enabled:!0,requireBase:!1,rewriteLinks:!1})}catch(e){return console.error("Error while trying to fix '#' links: ",e)}}]);t.default=angular.bootstrap(document.body,["SharelatexApp"])},92:function(e,t){e.exports=function(e){return JSON.parse(JSON.stringify(e))}}})}));